菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
295
0

ADB over Wi-Fi

原创
05/13 14:22
阅读数 73889

 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.
 

 

发表评论

0/200
295 点赞
0 评论
收藏
为你推荐 换一批