11April
2021

Debug Android Without Wire

By Avijit 0 comments 5k Times Viewed


Working hard and working smart sometimes can be two different things.
Dorgan

One of the major problems of Android Developers is using a cable while debugging while debugging an android application. That means if you are an android developer and you are developing an android application, and if you are willing to run it in your own android device, you will have to connect the mobile with the pc ( on which you are coding )using a data cable each time. And if you want to see the logcats or if you want to debug, you will have to keep the cable connected whole the time you are coding. It is quite painfull to use or debug the mobile while it is connected to a cable. And also all the pc usb ports don't provide enough current to charge the phone. If your mobile charge is almost finished, you can't charge the mobile as it is connected to pc. There are so so many disadvantages of keeping a mobile connected to pc using a wire. And we, the developers always like to lead a hassle free life.So, to get rid of this problem sometimes some developers use some plugins so that they don't have to be attached with that wire.

ADB wifi plugin
Fig.1 - Adb Wifi plugin

But the ultimate solution is to use some commands...

Before using this commands you need to connect both your devices ( Your android device on which the application will be installed and the pc on where the editor is installed. ) on the same network.

Open up any command prompt and go to ( you can use the cd command ) the Android SDK location (on Windows you can find it inside your user folder if you install it on the default location e.g: C:\Users\YOUR-USERNAME\AppData\Local\Android\sdk\platform-tools). You probably want to add this path to your $PATH variable.

The commands are :

ipconfig

This command shows you details about your current network. You can get your ip and other important information using this command..

ipconfig
Fig.2 - ipconfig command

adb tcpip 5555

Before this command you need to connect your android device with the pc using a cable for once. So connect the android device with your pc using a wire and then enter the command. You will see a output like following.

tcpip
Fig.2 - tcpip command

adb connect [deviceIp]

This command will connect both the devices over wifi. You have to put the local ip of the device after "adb connect" in the command .Then the device will be connected to the pc over wifi. You can now remove the the wire and debug over wifi. You can now also check the connected devices using the following command.

adb devices

adb devices
Fig.2 - adb devices command

Alternatively you can also use some adb wifi plugins with android studio :

  1. Android wifi adb
  2. ADB Wifi
  3. ADB Wi-Fi
  4. ADB WiFi Connect
  5. Android WiFiADB
  6. Android WiFi ADB
  7. ADB Wifi Device Connection
  8. WIFI ADB ULTIMATE
  9. ADB Idea
  10. ADB Android Debug - Remote Device/Remote Cloud Mobile
  11. Air-Adb
  12. AdbCommander for Android
  13. DeX ADB Tool

Tags : ADB, ADB wifi, Android Debug Bridge, Debug, Debug Bridge

Keywords : ADB, ADB Wifi, Anroid Debug Bridge, Debug, Debugging

Some text some message..