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

看看能不能提供帮助

相关推荐
m0_380921804 分钟前
容器虚拟化基础之LXC
linux
cidgur9 分钟前
svn and maven 自动部署shell脚本
linux
孤独野指针*P11 分钟前
MoveIt 机械臂碰撞检测:从环境搭建到障碍物规避
linux·3d·机器人
刘某的Cloud1 小时前
SSH命令建立隧道
linux·运维·ssh·系统·shell
weixin_471525784 小时前
【gdb/sqlite3移植/mqtt】
linux·运维·服务器
大聪明-PLUS4 小时前
TCP/IP 协议族—理论与实践(一)
linux·嵌入式·arm·smarc
阳光明媚sunny7 小时前
Room持久化库中,@Transaction注解的正确使用场景是?
android·数据库
迎風吹頭髮8 小时前
Linux内核架构浅谈2- Linux内核与硬件交互的底层逻辑:硬件抽象层的作用
linux·架构·交互
我是好小孩8 小时前
【Android】六大设计原则
android·java·运维·服务器·设计模式
孙同学要努力9 小时前
《Linux篇》进程状态——浅度、深度睡眠状态、僵尸状态、运行状态
linux·运维