ADB over Wifi
ADB over WiFi
To debug the behaviour of your application while an accessory is plugged, you can't use ADB through a USB cable.
In this case, to debug applications, you need to link your device to ADB over WiFi.
Steps to configure the ADB connection over WiFi
Connect the device and the computer to the same WiFi network
Plug the device to the computer with a USB cable to configure the connection.
On the computer command line type: "adb tcpip 5555"
On the computer command line type: "adb shell ip addr show wlan0" and copy the
IP addressafter the "inet" until the "/". You can also go inside the settings of the device to retrieve the IP address in Settings/about/Status.
On the computer command line type: "adb connect
You can disconnect the device and check with "ADB devices" that the device is still detected.