ADB命令备忘录
无线调试功能
1、电脑和手机连接同一个wifi
2、使用usb连接设备
3、输入
$ adb usb
restarting in USB mode
确保ADB正常
4、输入
$ adb devices
List of devices attached
123456abc device
检查连接设备
5、设置tcpip
$ adb tcpip 5555
restarting in TCP mode port: 5555
6、查看手机ip,然后输入
$ adb connect 192.168.1.123
connected to 192.168.1.123:5555
7、拔掉 USB,查看是否连接成功
$ adb devices
List of devices attached
192.168.1.123:5555 device