Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adb over wifi killed off after usb disconnect?

Tags:

android

adb

So with my nexus 5 im easily able to do something like this to connect adb over wifi:

adb tcpip 5555
adb connect 192.xxx.x.xx

and then disconnect the usb cable. I have another device im trying to connect (Dell venue 8 tablet) but it seems to disconnect from the adb wifi connection a split second after the usb is pulled.

I use the same commands:

adb tcpip 5555 (<- without another device connected)
adb connect 192.xxx.x.xx (tablet ip here)

Executing adb devices after this shows both the wifi adb connection as well as the usb connection, but with the tablet, as soon as I kill the usb connection, the wifi adb connection also terminates.

Does anyone have any thoughts on why this may be happening?

like image 854
Orbit Avatar asked Aug 04 '15 18:08

Orbit


1 Answers

For some reason, connecting the device in Charge only mode solved the problem. Just make sure "Allow ADB debugging in charge only mode" is enabled before connecting the device.

https://stackoverflow.com/a/51904546/4470297

like image 180
Rochana Lakshitha Avatar answered Oct 18 '22 18:10

Rochana Lakshitha