如何让小米手机不自动关闭无线调试? "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/e0ec6df891e777e8767be8a0a9d682eb.png) 过一段时间无线调试就会自动关闭 重启开启,端口号也变了,很恶心 无
debian 怎么升级 adb 版本? 今天安装了一个最新的 debian12 _,met$$$$$gg. pon@wechat-console ,g$$$$$$$$$$$$$$$P. ------------------ ,g$$P" """Y$$.". OS: Debian GNU/Linux 12 (bookworm) x86_64 ,$$P' `$$$. Host: MS-7917 1.0 ',$$P ,ggs. `$$b: Kernel: 6.1.0-17-amd64 `d$$' ,$P"' . $$$ Uptime: 17 hours, 21 mins $$P d$' , $$P Packages: 2414 (dpkg) $$: $$. - ,d$$' Shell: zsh 5.9 $$; Y$b._ _,d$P' Terminal: node Y$$. `.`"Y$$$$P"' CPU: Intel i7-4790K (8) @ 4.400GHz `$$b "-.__ GPU: NVIDIA GeForce GTX 970 `Y$$ Memory: 2235MiB / 15942MiB `Y$$. `$$b. `Y$$b. `"Y$b._ `""" 然后安装 adb sudo apt-get install android-tools-adb 但是上面的 adb 版本好古老啊 ╰─➤ adb --version 130 ↵ Android Debug Bridge version 1.0.41 Version 29.0.6-debian Installed as /usr/lib/android-sdk/platform-tools/adb 这么老的 "adb" 不支持 "adb pair" 命令 同样是 brew 在 mac 上安装 adb brew install android-platform-tools 版本就很新 ╰─➤ adb --version 130 ↵ Android Debug Bridge version 1.0.41 Version 34.0.5-10900879 Installed as /opt/homebrew/bin/adb Running on Darwin 23.2.0 (arm64) *** ╰─➤ sudo apt update && sudo apt upgrade -y [sudo] pon 的密码: 命中:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease 获取:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease [52.1 kB] 获取:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease [56.5 kB] 获取:4 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages.diff/Index [63.3 kB] 获取:5 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en.diff/Index [51.0 kB] 获取:6 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages T-2024-01-17-2005.03-F-2024-01-17-1406.13.pdiff [21.4 kB] 获取:6 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages T-2024-01-17-2005.03-F-2024-01-17-1406.13.pdiff [21.4 kB] 获取:7 https://security.debian.org/debian-security bookworm-security InRelease [48.0 kB] 获取:8 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en T-2024-01-17-2005.03-F-2024-01-17-1406.13.pdiff [18.6 kB] 获取:8 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en T-2024-01-17-2005.03-F-2024-01-17-1406.13.pdiff [18.6 kB] 获取:9 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB] 获取:10 https://security.debian.org/debian-security bookworm-security/main amd64 Packages [134 kB] 已下载 488 kB,耗时 4秒 (122 kB/s) 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 所有软件包均为最新。 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 正在计算更新... 完成 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。 已经升级过了,还是老的 ╰─➤ adb --version Android Debug Bridge version 1.0.41 Version 29.0.6-debian Installed as /usr/lib/android-sdk/platform-tools/adb 我需要 adb > 30.0.x "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241013/818f8a7128fd56b5c93a2eb2e66b2e59.png) *** 看来不能使用 apt 安装了,需要自己外部安装,写谁相关经验、相关资料可以参考
正经的通过程序从电脑控制手机的方案,除了 adb 还有什么? 这里的正经是指具有很高的可编程性
mac 使用 adb 无法连接到小米手机做无线 adb 调试 "图片.png" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241101/4ad9cf3102aff55f8fd487fae2281a20.png) 已开启小米手机的无线调试功能 在 mac 上检查和手机的连通性 ─➤ nc -zv 192.168.35.66 40613 Connection to 192.168.35.66 port 40613 [tcp/*] succeeded! ─➤ ping 192.168.35.66 PING 192.168.35.66 (192.168.35.66): 56 data bytes 64 bytes from 192.168.35.66: icmp_seq=0 ttl=64 time=54.321 ms 64 bytes from 192.168.35.66: icmp_seq=1 ttl=64 time=71.361 ms 64 bytes from 192.168.35.66: icmp_seq=2 ttl=64 time=90.770 ms ^C --- 192.168.35.66 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 54.321/72.151/90.770/14.891 ms 但是连接就是会失败 ─➤ adb connect 192.168.35.66:40613 failed to connect to 192.168.35.66:40613 mac 上的 adb 版本 ─➤ adb --version Android Debug Bridge version 1.0.41 Version 34.0.5-10900879 Installed as /opt/homebrew/bin/adb Running on Darwin 23.1.0 (arm64) 已经重启过 mac 和 手机,都一样失败 如何排查?