Issue
I cannot use adb connect
to connect via WiFi to my device (Nexus 5, Android 6), but since I'm developing a cordova plugin using USB OTG, I really need to connect via WiFi.
I tried to adb kill-server
, and all solutions provided on SO, and none is working for me...
Before it was working ok (i.e android 5).
Any idea?
Solution
I had the same issue since the android 6 upgrading. I noticed that for some reason the device is playing "hard to get" when you try to contact it over WIFI.
Try these following steps:
Make sure that
Aggressive Wi-Fi to Cellular handover
under Networking section in the device's developer options is turned off.ping continuously from your pc to the device to make sure it's not in network idle mode
ping -t 192.168.1.10
(windows cmd), unlock the device and even try to surf to some website just to make it get out of the network idle.If ping doesn't work, turn off / on Android Wifi and go back to step 2.
When it replies to the ping, connect it via usb, and:
adb usb
adb tcpip 5555
adb connect 192.168.10.1:5555
In case it's still not connected, try to switch the USB connection mode as MTP / PTP / Camera while the device is connected through USB and repeat these steps over again...
If the above points are not working please try running ADB as admin. For Ubuntu -
`sudo adb start-server`
Answered By - Eliran Kuta
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.