1.将手机与PC通过usb线相连。
将手机的ip设置为静态方式
将手机设置为开发者模式
2.在Windows cmd命令中 输入以下命令
2.1 命令行输入adb tcpip 5555;
显示:restarting in TCP mode port: 5555
表示设置成功。
2.2 通过adb connect (ip):5555连接手机
adb connect 192.168.100.109:5555
2.3通过adb devices命令查看手机连接是否成功
使用adb shell命令,进入命令行