Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB over WiFi connection is lost after disconnecting USB [duplicate]

I was trying to run ADB over wifi following answers provided here, and I connect successfully to the device, but I lose connection after disconnecting the USB. The same result with both manual and plugins ways. Also, I have tried this solution, and this one, but without success.

Solutions that require the device is rooted won't work for me.

like image 881
Ahmed Osama Avatar asked Aug 18 '18 01:08

Ahmed Osama


People also ask

Can you use ADB over Wi-Fi?

To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options. To use adb with a device connected over Wi-Fi, see Connect to a device over Wi-Fi. On Android 4.2 and higher, the Developer options screen is hidden by default.

How do I fix an ADB connection error?

Update the Android Studio and SDK Platform Tools 'No connection could be made ADB error 10061' can be a result of an outdated Android Studio or SDK Platform-tools as it may lead to incompatibility with the OS/host device. Here, updating the Android Studio and SDK Platform Tools may solve the problem.


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.

Other modes caused the connection to be lost, as I have tested on my device running on Android 8.0.0.

like image 83
Ahmed Osama Avatar answered Nov 15 '22 06:11

Ahmed Osama