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

看看能不能提供帮助

相关推荐
sunxunyong9 小时前
CGroup配置
linux·运维·服务器
hy____1239 小时前
Linux_网络编程套接字
linux·运维·网络
若风的雨10 小时前
【deepseek】 Linux 调度延时分析
linux
2301_8035545210 小时前
linux 以及 c++编程里对于进程,线程的操作
linux·运维·c++
LuDvei10 小时前
windows 中 vs code远程连接linux
linux·运维·服务器·windows
GDAL11 小时前
MANIFEST.in简介
linux·服务器·前端·python
点点滴滴的记录11 小时前
Redis部署在Linux上性能高于Windows
linux·数据库·redis
蜕变的小白11 小时前
基于Linux的天气查询项目
linux·运维·服务器
11 小时前
深度解析Compose中的BoxWithConstraints
android·kotlin·android jetpack
jolimark11 小时前
MySQL--》如何在MySQL中打造高效优化索引
android·mysql·adb