如何通过wifi连接adb
Steps:
- 手机通过usb连接电脑
- adb root && adb remount
- adb tcpip 5555
- 手机和电脑 接入同一个路由器,保证手机和电脑在同一个网段,adb不支持跨网段连接
- adb shell ifconfig,查看手机的IP地址,e.g.192.168.31.26
- adb connect 192.168.31.26
connected to 192.168.31.26:5555 - adb -s 192.168.31.26:5555 shell
成功连接adb,断开usb,随时随地使用wifi 连接adb,减少了usb线的制约