adb配置手机客户端的无线连接

2018-05-04  本文已影响0人  TungChiu

无线连接具体操作步骤:

1. cmd打开命令行,手机通过usb连接到电脑,执行命令adb devices查看设备链接情况,连接接成功后会显示:

        C:\Users\lenovo>adb devices

        List of devices attached

        621QECR44TYYQ  device

2.运行"adb tcpip 5555"开启手机的5555端口

        C:\Users\lenovo>adb tcpip 5555

        restarting in TCP mode port: 5555

3.查看手机ip地址,有2种方式可以查看,第1种可以通过手机wifi中查看自己连接wifi的ip地址,第2种可以通过命令查看"adb shell ip -f inet addr show wlan0"

4.然后运行命令“adb connect 10.170.37.15:5555”

        C:\Users\lenovo>adb connect 10.170.37.15:5555

        connected to 10.170.37.15:5555

5.再次执行命令adb devices,可以看到通过ip连接的设备

        C:\Users\lenovo>adb devices

        List of devices attached

        10.170.37.15:5555      device

通过以上步骤就可以使用无线连接测试手机设备了

参考:https://mp.weixin.qq.com/s/ws68gKtDafFRTOJSZ3eq5Q

上一篇 下一篇

猜你喜欢

热点阅读