use*_*282 3 proxy android adb http-proxy
我使用以下代码通过命令行工具 adb 设置 Android HTTP 代理。
adb shell settings put global http_proxy <ip>:<port>
Run Code Online (Sandbox Code Playgroud)
但是,当我想撤消代理设置时,以下代码不会删除代理。尽管清除了这些系统属性,Android 设备仍会尝试连接<ip>:<port>
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
Run Code Online (Sandbox Code Playgroud)
我必须重新启动 Android 设备才能删除代理。有没有办法在不重启设备的情况下清理代理?
安卓版本是7.0。
要重现此问题:
# Set up a proxy
adb shell settings put global http_proxy <ip>:<port>
# Remove them
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
# Then open a browser, it will still connect to the proxy ip and port
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1665 次 |
| 最近记录: |