Adb wifi connection with Android 6.0

2020-03-24 03:50发布

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?

4条回答
在下西门庆
2楼-- · 2020-03-24 04:09

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.

查看更多
男人必须洒脱
3楼-- · 2020-03-24 04:12

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楼-- · 2020-03-24 04:17

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

查看更多
爷的心禁止访问
5楼-- · 2020-03-24 04:32

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

查看更多
登录 后发表回答