Using the Android ADB wirelessly with WI-FI

Usually, we use the Android device through the USB of our computer. It is possible to use the device wirelessly through a Wi-Fi connection and thus eliminate some annoyances with the issue of cables, the speed does not vary too much in comparison if we do it through USB.

In order to achieve this, we will follow the following steps:

Step 1: Developer mode is active

Step 2: Make sure your Android device is connected to the same network as your computer

Step 3: Connect your Android device to your computer with usb cable.

  • We open a command line window/terminal and go to the directory in which is our Android SDK and enter the folder “platform-tools”
  • Verificamos que el adb detecte el dispositivo con el comando: adb devices

  • We configure our device to connect through TCP / IP on port 5555 with the command: adb tcpip 5555.

** This step in some devices this step is not necessary, since they are enabled for this function by default

Step 4: Connect your device wirelessly

  • Disconnect the usb cable from your Android device and
  • Verify the ip address of your android device
  • We proceed to connect it wirelessly via wi-fi with the command:   adb connect 5555.

  • It shows us the message that has been connected with the device
  • Verify that the device is connected to: adb devices.

That’s EVERYTHING !!, our device is already configured to be able to use it wirelessly through wi-fi.

We verify its operation:

Compile an Android project and we see that our device appears connected

  • We can also check the operation in the logcat.

  • We can also access the linux terminal of the Android device with the command: adb shell. 

  • To disconnect the wireless connection with the command: adb kill-server and verify that the device no longer exists in the adb list.

By: Emilio Tiñini

Source: Internet Image

Leave a Reply

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

Posts de Prensa Recientes