ADB over Wi-Fi

1.root

$adb root

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

$adb shell setprop persist.adb.tcp.port  && 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.
 

最新文章

  1. Linux网络编程-IO复用技术
  2. tmux简单使用指南
  3. linux之间文件传输问题
  4. Spark Programming--Transformations
  5. 为PHP开发者准备的12个调试工具
  6. matlab常用小函数(二)
  7. Jena 简介:通过 Jena Semantic Web Framework 在 Jave 应用程序中使用 RDF 模型
  8. 201521123048 《Java程序设计》第7周学习总结
  9. APP上传APP Store遇到的各种问题
  10. GIT入门笔记(16)- 分支创建和管理
  11. JAVA 创建对象4种方法
  12. C++第一课:基本语法for Visual Studio 2015[个人见解]
  13. Golang 入门 : 配置代理
  14. 汇编语言--微机CPU的指令系统(五)(位操作指令)
  15. java分页实现
  16. Python网络编程-IO阻塞与非阻塞及多路复用
  17. elasticsearch 安装配置详解
  18. VC++SDK编程——字体及位置示例
  19. FFT 深夜摸鱼小笔记
  20. 【leetcode刷题笔记】Distinct Subsequences

热门文章

  1. sanic官方文档解析之streaming(流动,滚动)和class_based_views(CBV的写法)
  2. A nonrecursive list compacting algorithm
  3. Scaling with Microservices and Vertical Decomposition
  4. Python 中的字节与字节数组
  5. C/C++ 操作符优先级
  6. phpexcel导出后乱码或者是打不开文件必须修复的问题
  7. eclipse4.3 解决没有check out as maven project
  8. 开发工具、Object类(java基础知识十一)
  9. codeforces 691F F. Couple Cover(组合计数)
  10. 分段控制器--UISegmentedControl 基本用法