Is there a way to disconnect USB device from ADB?
<p>I have a lot of scripts that use ADB to debug Android applications via Wi-Fi with emulators. The problem appears when I charge my Android phone via USB from my computer: ADB sees it and sends commands to my phone instead of emulator.
<strong>Is there a way to disconnect ADB from phone that charges via USB?</strong> I know I can send commands to emulators only via <code>-e</code> switch, as well as send them to specific device via <code>-s</code> switch. However, it is not OK for me, because I have to rewrite a lot of scripts to add more arguments if I want to implement this device selection feature. I don't need workarounds, I just curious does Google <em>force</em> ADB to debug any phone connected via USB that has USB debugging enabled in settings, or it is possible to remove specific USB connected phone from devices list on ADB side?
When I run <code>adb disconnect</code>, USB device remains connected.</p>