ADB over Wi-Fi

1.root

$adb root

2.设置tcp端口并重启tcpip服务

$adb shell setprop persist.adb.tcp.port 5555 && adb tcpip

3.连接

$adb connect <the target ip>

注意电脑与手机在同一网络下。

4.官方教程

  https://developer.android.com/guide/topics/connectivity/usb/index.html

  When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adb connection to the Android-powered device via USB. You can still access adb over a network connection. To enable adb over a network connection:

  1. Connect the Android-powered device via USB to your computer.
  2. From your SDK platform-tools/ directory, enter adb tcpip 5555 at the command prompt.
  3. Enter adb connect <device-ip-address>:5555 You should now be connected to the Android-powered device and can issue the usual adbcommands like adb logcat.
  4. To set your device to listen on USB, enter adb usb.
 

 

相关文章:

  • 2021-11-22
  • 2021-11-20
  • 2021-11-02
  • 2021-12-15
  • 2022-03-10
  • 2021-08-22
  • 2022-02-03
  • 2021-04-12
猜你喜欢
  • 2021-12-26
  • 2022-01-26
  • 2022-12-23
  • 2021-05-03
  • 2021-08-04
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案