Wireless ADB - Pattonville-Robotics/2866 GitHub Wiki
How to Set Up Wireless ADB
- Navigate to your /Android/sdk/platform-tools/ directory in a command prompt/terminal. It is located under /Applications on Macs.
- Run the ADB executable (
adb) to verify it works. Typing./adbon a Mac. - Plug in your Android device. You should be able to download applications to it through the wired connection.
- Connect your Android device and your computer to the same network.
- Go to the advanced Wifi settings on your Android device and find the IP address of the device.
- Run the command
./adb kill-server. - Run the command
./adb usb. - Run the command
./adb tcpip 5555. - Run the command
./adb connect device_ip_address, wheredevice_ip_addressis the IP address you found earlier. - You should now be able to unplug your device from the USB connection and send applications to it as normal.
These steps need to be performed every time the phone loses connection.
An Easier Way
- Download Android Studio and install the ADB WIFI plugin
- Connect your phone to your computer using USB
- Ensure the computer and phone are on the same network
- Press the ADB USB to WIFI button
- Disconnect the phone and test the wireless connection