I have a Nexus 6 device with Android 6.0, stock version without root. To avoid to permanently connect device with usb cable i used this procedure:
- I connected the device by USB cable to PC
- type on terminal
adb tcpip 5555
.
- type
adb connect <device-ip>:5555
to connect in wifi mode.
When i try to deploy an app from Android Studio, the connection is lost.
I used this procedure many times and with other devices (without Android 6) and i have no problem.
Any idea?
My device with Android 6.0.0, too, failed to connect, but after the official upgrade to 6.0.1, this problem was solved.
It works for my G-TiDE V7s (Android 6.0),
I just discovered that I don't need usb cable, not even for the first time as many people think so.
Its just: (do not use usb cable at all)
adb tcpip 5555
Then
adb connect <device-ip>:5555
If you use windows... (no need for cable at all! Root users)
Craigs auto wifi adb..
Auto connects to pc
Auto reconnects if wifi is dropped
The apk contains the windows client
No typing involved at all for rooted users, no scripts, run the app on android boxes/phones all at the same time!
https://play.google.com/store/apps/details?id=controller.adb.craigs.craigswifiadb
After you enter
adb connect <device-ip>:5555
you don't need to connect in Android Studio. It's already connected, just run the project and your phone will be in the list without using a cable.