- 将Android Device 和 PC 置于同一个wifi 局域网下。
- Android Device 通过USB 连接PC,建立adb 连接。
在cmd中输入如下命令
$ adb usb
restarting in USB mode
//通过USB 连接adb
$ adb devices
List of devices attached
######## device
//设置 tcpip
$ adb tcpip 5555
restarting in TCP mode port: 5555
//找到android设备ip地址Settings -> About tablet -> Status -> IP address.
//连接android device
$ adb connect #.#.#.#
connected to #.#.#.#:5555
//拔掉USB线,检查连接状态
$ adb devices
List of devices attached
#.#.#.#:5555 device
//设置成功
使用完成后,关闭adb 连接
$ adb kill-server