无线连接Android设备

 

有时设备处于低电,此时又需要进行设备与PC的数据传输,但是通过USB连接充电速度太慢。这时就可以通过无线进行传输数据,然后通过AC充电。一举两得。

前提:

1.在Android设备的开发者模式-打开USB调试,连接PC端。

2.设备与PC必须处于同一个网络(局域网)环境下

 

在cmd中执行adb -help

connect <host>[:<port>] - connect to a device via TCP/IP ;Port 5555 is used by default if no port numberis specified.

disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.

 

adb devices (先查看设备连接是否正常)

adb tcpip 5555 

or (adb shell setprop service.adb.tcp.port 5555

adb shell stop adbd

adb shell start adbd)

adb connect [ip] (如果没有执行上一命令可能会出现 unable connect to [ip])

 

取消连接

adb disconnect [ip]

posted @ 2016-12-11 18:20  zeotoone  阅读(238)  评论(0编辑  收藏  举报