如何通过wifi连接adb,释放你的usb口

2017/07/19 Android

如何通过wifi连接adb

Steps:

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

Search

    Table of Contents