adb connection by wifi getting killed when a new USB attached/detached

后端 未结 2 1502
别跟我提以往
别跟我提以往 2020-11-27 08:31

I develop on my tablet using android studio. The tablet is connected to the computer by wifi using

adb connect :5555

2条回答
  •  借酒劲吻你
    2020-11-27 09:27

    It is not a adb-connection-by-wifi what gets killed. It is just that USB enumerations affect the sys.usb.* system properties which on many devices is causing restart of adbd regardless whether it's being used over USB or tcpip.

    Do grep "stop adbd" /init*rc to see what I mean.

    You could either comment out those stop adbd lines or just disconnect the USB cable before running your adb connect command.

提交回复
热议问题