ADB via Wi-Fi disconnects when I turn on USB accessory

Asked

Viewed 296 times

2

I’m using ADB via Wi-Fi to work with USB accessories (Android Open Accessory). For some tests you need to disconnect and reconnect the USB cable to your phone. Whenever I connect the USB accessory to my phone, the ADB turns off and I have to turn the ADB back on; this despite being connected to the ADB via Wi-Fi and not cable.

The control 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 accessories?

  • 4

    Why the question does not fit the theme of the site if Android+AOA is software development?

  • I agree with you, I think the question may be part of the scope. I voted to reopen, so at least someone might leave an opinion as to why it shouldn’t be reopened, which at the moment I can’t see.

  • @Daniel Welcome to [en.so]! I believe the question was closed because some users confused their question with a request for technical support like "my device is defective".

1 answer

1


This happens because when you connect the USB cable, the device will detect the USB again and activate as adb input port automatically. for this not to happen you need to force the device to use TCP/IP, but for this the device needs root access. You can create your own script or use some app already ready for this.

how-can-i-connect-to-android-with-adb-over-tcp

I hope I’ve helped

Browser other questions tagged

You are not signed in. Login or sign up in order to post.