How can I use adb over WiFi? [duplicate]

2019-02-04 13:03发布

This question already has an answer here:

I am debugging USB devices connected to my Android phone, this means I cannot use ADB over a USB connection. How can I connect to adb over WiFi?

Note: Similar question here refers to adb over tcp, however, I'm specifically asking about WiFi.

3条回答
【Aperson】
2楼-- · 2019-02-04 13:28
  • Connect Android phone and host machine to same WiFi network
  • Connect Android phone to host machine using USB cable (to start with)
  • Run adb tcpip 5555 from a command prompt
  • Run adb shell "ifconfig | grep -A 1 wlan0 | tail -n 1 | cut -f2 -d: | cut -f1 -d' '" to obtain the phone's IP address (thanks to ereOn)
  • Disconnect USB cable and run adb connect <ip_address>:5555

You can now view logcat output by running adb logcat or by viewing the Android Monitor tab within Android Studio.

查看更多
贪生不怕死
3楼-- · 2019-02-04 13:28

You can adb over wifi using the app Wifi-ADB. The app requires superSU permissions hence the android phone you want to connect over WiFi must be rooted.

查看更多
Explosion°爆炸
4楼-- · 2019-02-04 13:39

if you are using android studio.Just Download the plugin AndroidWifiADB for android studio.enjoy Hope this helps:)

查看更多
登录 后发表回答