I'm using ADB over Wi-Fi to work with USB (Android Open Accessory) accessories. For some tests it is necessary to disconnect and reconnect the USB cable to the mobile phone. Whenever I connect the USB accessory to the mobile phone, the ADB switches off and I have to turn the ADB on again; even though it is connected to the ADB over Wi-Fi rather than cable.
The command used is $ adb connect 194.2.2.51:5555; adb -s 194.2.2.51:5555 logcat -v threadtime MinhaApp:V *:S
.
How to make the ADB connected via Wi-Fi not disconnect when connecting / disconnecting USB devices?