Issue
I develop on my tablet using android studio
.
The tablet is connected to the computer by wifi using
adb connect <ip_andress>:5555
My application contains listeners for USB devices attached/detached
.
But unfourtunately, when I connect/disconnect usb device to/from the tablet, the adb connection is getting killed
, and I can no longer see the device under "adb devices".
Solution
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.
Answered By - Alex P.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.