Wednesday, August 24, 2016

Wireless Android Debug Bridge (ADB)

How to operate ADB in a wireless way

Many of us have used ADB by connecting it to a system with a USB cable. Let's see how we can operate ADB in a wireless way. However, for the initial setup, we need a USB cable.

Prerequisites: 

  1. ADB should be configured and ready to use
  2. Android device and the system should be connected to the same WiFi

Steps:

  1. Connect your Android device to your system using a USB cable.
  2. Turn on USB Debug option in developer menu.
  3. Accept RSA Key dialog (if present).
  4. Type adb devices. The output should be something like:




5. Note down the IP address of your device. Go to the Wifi section and get the IP address by detailing the network you are connected to.
    6. Type adb tcpip 5555 command in command prompt
     The output of the command should be





7. Type adb connect <IP address obtained in step number 5>:5555
8. Sample command would look like




    You are now all set. Disconnect the USB cable and issue ADB commands over the air without any further need for a USB cable.

No comments:

Post a Comment