Android Wireless Debugging

MJ Manaog
2 min readJun 29, 2020

If you’re a Mac user and don’t have enough USB ports, you might wanna consider using wireless debugging in android.

Steps to do it:

  1. Of course, you must have an android phone 🙄
  2. Enable Developer Options (I am a Samsung user so I can find it on)Settings > About Phone > Software Information > Tap the Build Number until you enable the Developer Options

3. After you enabled Developer Options, go back to Settings, on the bottom-most part of the setting you will see the Developer Options, tap it then enable USB Debugging.

4. If you're using Mac/Linux, you can easily run brew cask install android-platform-tools in the terminal. If you haven't install brew, follow these steps: https://brew.sh/

If you’re using Windows follow these steps: https://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/

5. Connect first your Android device to your PC thru USB cord

6. Run this command on your PC’s terminal to see the attached devices:

adb devices

7. To restart the ADB to TCPIP mode, run this command:

adb tcpip 5555

8. Disconnect your Android device to your PC.

9. Your Android device and PC must be connected in the same network.

10. Check the IP address of your android device. Settings > Connections > WiFi > Select the setting of your network > Copy the IP Address

11. On your PC's terminal, run this command:

adb connect <your_device_ip_address>:5555

More useful commands:

  • adb devices — to see the list of attached devices
  • adb disconnect — to disconnect everything
  • adb reconnect device — kick connection from device side to force reconnect
  • adb reconnect offline — reset offline/unauthorized devices to force reconnect

You must see now your device to the available devices on your Android Studio. This will also work if you’re using Vysor or Genymobile.

--

--