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

看看能不能提供帮助

相关推荐
hj2862512 小时前
Linux 磁盘管理 + 文件系统 + LVM 笔记整理
linux·运维
莞凰2 小时前
昇腾CANN的“灵脉根基“:Runtime仓库探秘
android·人工智能·transformer
.YYY3 小时前
Linux--如何安装rockyLinux9虚拟机
linux
NiceCloud喜云3 小时前
Claude Files API 深入:从上传、复用到配额管理的工程化指南
android·java·数据库·人工智能·python·json·飞书
ujainu3 小时前
CANN pto-isa:虚拟指令集如何连接编译与执行
android·ascend
kdxiaojie3 小时前
U-Boot分析【学习笔记】(12)
linux·笔记·学习
Bert.Cai4 小时前
Linux let命令详解
linux·运维·服务器
枕星而眠4 小时前
Linux 线程:原理、属性、实战与面试避坑
linux·运维·c语言·面试
晚风予卿云月4 小时前
【Linux】环境变量概念、作用、配置与修改详解
linux·运维·服务器·环境变量
赏金术士4 小时前
第六章:UI组件与Material3主题
android·ui·kotlin·compose