Adb wifi connection with Android 6.0

2020-03-24 03:45发布

问题:

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:

  1. I connected the device by USB cable to PC
  2. type on terminal adb tcpip 5555.
  3. 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?

回答1:

My device with Android 6.0.0, too, failed to connect, but after the official upgrade to 6.0.1, this problem was solved.



回答2:

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



回答3:

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



回答4:

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.