赞
踩
usb线,连接手机和电脑
前提条件:
电脑和手机在同一个局域网下,
连接同一个wifi即可
(1)先使用 usb 线连接手机和电脑,设置手机 tcp 连接端口为5555
➜ /Users/xxx
> adb tcpip 5555
restarting in TCP mode port: 5555
(2)确定手机 ip 地址
(3)断开 usb 线,使用 tcpip 连接手机
➜ /Users/xxx
> adb connect 172.16.133.61:5555
connected to 172.16.133.61:5555
查看连接状态:
➜ /Users/xxx
> adb devices
List of devices attached
172.16.133.61:5555 device
然后就可以在无线状态下,随意使用adb命令了。
(4)断开 tcpip 连接
➜ /Users/xxx
> adb disconnect 172.16.133.61:5555
disconnected 172.16.133.61:5555
查看连接状态:
➜ /Users/xxx
> adb devices
List of devices attached
完成✅
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。