android adb 无线连接 (wifi)

常见adb 命令

logcat

install 安装

如果去公司忘记拿数据线了 可以使用wifi调试

adb 有一个提示

bash 复制代码
networking:
 connect HOST[:PORT]      connect to a device via TCP/IP [default port=5555]
 disconnect [HOST[:PORT]]
     disconnect from given TCP/IP device [default port=5555], or all
 pair HOST[:PORT] [PAIRING CODE]
     pair with a device for secure TCP/IP communication
java 复制代码
mx@bogon ~ % adb tcpip 5555         
error: no devices/emulators found
mx@bogon ~ % adb connect 10.8.0.106:5555
failed to connect to '10.8.0.106:5555': Connection refused
mx@bogon ~ % adb connect 10.8.0.106:5555
failed to connect to '10.8.0.106:5555': Connection refused
mx@bogon ~ % adb connect 10.8.0.106:5555
failed to connect to '10.8.0.106:5555': Connection refused
mx@bogon ~ % adb connect ip
failed to connect to ip:5555
mx@bogon ~ % adb connect ip
already connected to ip:5555

一开始连接 会失败,最后成功了,小米手机,打开开发者选项,打开wifi无线调试

然后

java 复制代码
mx@bogon ~ % adb connect 10.8.0.106:42893
connected to 10.8.0.106:42893

看看能不能提供帮助

相关推荐
小六学编程21 小时前
Linux 下 gcc / g++ 编译过程详解:从编译到链接
linux·c/c++
许彰午21 小时前
在PowerBuilder里手写XML序列化——没有现成库的年代怎么拼报文
xml·linux·服务器
ReadVersion21 小时前
Ubuntu 22.04 设置时区
linux·运维·ubuntu
dawei.wang21 小时前
embedit报错
linux
流星白龙21 小时前
【MySQL高阶】22.双写缓冲区,重做日志
android·mysql·adb
世人万千丶21 小时前
鸿蒙PC问题解决:窗口配置错误修复指南
android·学习·华为·开源·harmonyos·鸿蒙·鸿蒙系统
赵民勇1 天前
apt.conf.d配置详解
linux
故渊at1 天前
第一板块:Android 系统基石与运行原理 | 第一篇:Android 系统架构分层与 AOSP 规范
android·系统架构·android系统·aosp
故渊at1 天前
系列三:组件化与模块化进阶 | 第12篇 老项目重构实战(绞杀者模式):从单体巨石到组件化架构的无痛迁移
android·重构·架构·模块化·组件化