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

看看能不能提供帮助

相关推荐
YFLICKERH1 天前
【Linux系统】磁盘文件系统
linux
森G1 天前
五、Linux字符设备驱动
linux·arm开发·c++·ubuntu
生信大表哥1 天前
Claude Code / Gemini CLI / Codex CLI 安装大全(Linux 服务器版)
linux·python·ai·r语言·数信院生信服务器
知识分享小能手1 天前
CentOS Stream 9入门学习教程,从入门到精通, Linux文本编辑器 —— 语法详解与实战案例(5)
linux·学习·centos
网安老伯1 天前
什么是网络安全?网络安全包括哪几个方面?学完能做一名黑客吗?
linux·数据库·python·web安全·网络安全·php·xss
tang_vincent1 天前
Linux虚拟内存固定映射区-fixmap
linux
企鹅侠客1 天前
Ubuntu本地部署AnythingLLM实现本地文档RAG
linux·运维·ubuntu·llm
Victoria.a1 天前
Linux环境基础开发工具使用
linux
Nerve1 天前
GalleryPicker:一个基于 Android 官方 Photo Picker API 封装的现代图片/视频选择库
android
被AI抢饭碗的人1 天前
linux:进程间通信
linux·运维·服务器