1赎瑰、確保電腦和Android手機(jī)在同一局域網(wǎng)內(nèi)
2、將Android手機(jī)與電腦用usb連接破镰,可用 adb devices命令查看
$ adb usb
restarting in USB mode
$ adb devices
List of devices attached
ZX1D63HX9R device
3餐曼、以tcpip模式重啟adb
$ adb tcpip 5556
restarting in TCP mode port: 5556
4、查看手機(jī)所在IP
Go to Settings -> About phone/tablet -> Status -> IP address
5鲜漩、用IP連接Android設(shè)備
$ adb connect 192.168.0.102:5556
already connected to 192.168.0.102:5556
$ adb devices
List of devices attached
ZX1D63HX9R device 192.168.0.102:5556 device
6源譬、拔掉USB,再看看連接的設(shè)備
$ adb devices
List of devices attached
ZX1D63HX9R device 192.168.0.102:5556 device