This article explains how to set up wireless debugging to avoid needing a USB cable plugged into an Android Device.
Android Settings
Enable wireless debugging through the Android Settings:
- Developer options must be enabled first
a. Go to Settings -> About Tablet -> Software Information
b. Tap Build Number multiple times until you see "You are now in Developer mode!" - Go to Settings -> Developer Options and toggle on Wireless Debugging
- Tap Allow in the popup to enable it
- Follow steps below for ADB Commands
IDE Plugin
Enable wireless debugging through IDE Plugin:
- Install the “ADB Wireless Plugin” in your IDE (Or something similar in name. May be “Android Wifi ADB” for example). Typically you'd use Android Studio but I needed to use Intellij.
- Connect device to computer with a USB cable
- Connect to device through ADB Wireless Plugin a. The ADB Wireless Plugin menu should show up in the right-side tool menu.
- Unplug the USB cable and follow steps below for ADB Commands
ADB Commands
Set up adb so that commands such as adb logcat
will run:
- Connect the device to your computer with a USB cable. Check that USB debugging is working by running
adb devices
. The device should be listed. - Run
adb tcpip 5555
- Disconnect the USB cable
- Go to the Settings -> About Tablet -> Status to view the IP address of your device
- Run
adb connect <IP address of device>:5555
- Run
adb devices
again and you should see the device
You can now wirelessly run adb commands!
Top comments (0)