💡
原文中文,约700字,阅读约需2分钟。
📝
内容提要
本文介绍了如何通过adb命令在Android设备上设置和移除代理。设置代理的命令为`adb shell settings put global http_proxy ip:port`,例如`adb shell settings put global http_proxy 172.16.21.14:8888`。要移除代理,需要执行三条命令,并可能需要重启手机。
🎯
关键要点
- 通过adb命令设置Android设备的代理,命令为:adb shell settings put global http_proxy ip:port,例如:adb shell settings put global http_proxy 172.16.21.14:8888。
- 要移除代理,需要执行三条命令:adb shell settings delete global http_proxy,adb shell settings delete global global_http_proxy_host,adb shell settings delete global global_http_proxy_port。
- 部分机型可能需要重启手机才能完全移除代理。
➡️