ADB over Wi-Fi

 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.
 

 

posted @   f9q  阅读(266)  评论(0编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 【杂谈】分布式事务——高大上的无用知识?
历史上的今天:
2016-01-15 带圈数字1-50
2016-01-15 Support Library(4)ecliplse导入支援包的方法
点击右上角即可分享
微信分享提示