How to achieve Android phone debugging with adb wireless?

To debug an Android phone wirelessly using ADB, you can follow these steps:

  1. Firstly, connect your Android phone to the computer via USB and make sure that the USB debugging mode is enabled. You can find the USB debugging option in the developer options on your phone and enable it.
  2. Open a command line window (Terminal or Command Prompt).
  3. Type the following command to check if the device is connected:
  4. list connected devices
  5. If your device is displayed in the list, it means the connection was successful.
  6. Now, unplug the USB cable, but make sure that both your phone and computer are connected to the same Wi-Fi network.
  7. Enter the following command to retrieve the IP address of the device:
  8. Show the IP address of the wlan0 interface in inet format using adb shell.
  9. Note down the displayed IP address and then enter the following command to start ADB wireless debugging:
  10. Make sure that the ADB is running over TCP/IP on port 5555.
  11. To connect to the device’s IP address and port, enter the following command again.
  12. Establish a connection with the device using the IP address followed by port 5555.
  13. You can now debug your Android phone wirelessly if everything goes smoothly. You can perform operations similar to when connecting through USB, such as installing applications and debugging applications.

Please note that this method may be affected by network configurations, so if you encounter connection issues, please check the network settings and firewall rules.

Leave a Reply 0

Your email address will not be published. Required fields are marked *