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 all
pair 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
看看能不能提供帮助
原文地址:https://blog.csdn.net/jianjiaqqq001/article/details/145182011
免责声明:本站文章内容转载自网络资源,如侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!