欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 财经 > 产业 > android adb 无线连接 (wifi)

android adb 无线连接 (wifi)

2025/2/5 19:54:53 来源:https://blog.csdn.net/jianjiaqqq001/article/details/145182011  浏览:    关键词:android adb 无线连接 (wifi)

常见adb 命令

logcat 
 install 安装

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

adb 有一个提示

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 allpair HOST[:PORT] [PAIRING CODE]pair with a device for secure TCP/IP communication
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无线调试

然后
 

mx@bogon ~ % adb connect 10.8.0.106:42893
connected to 10.8.0.106:42893

看看能不能提供帮助

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com