我正在使用带有命令的ADB
adb shell settings put global http_proxy <ip>:<port>
效果非常好.
但是如果代理受用户名和密码保护,我无法登录代理
如果你知道什么,请帮助我.
我进行了一些调查并找出了正确的设置,以通过adb启用带有身份验证的http代理:
adb shell settings put global http_proxy 192.168.225.100:3128
adb shell settings put global global_http_proxy_host 192.168.225.100
adb shell settings put global global_http_proxy_port 3128
adb shell settings put global global_http_proxy_username foo
adb shell settings put global global_http_proxy_password bar
要禁用代理:
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
adb shell settings delete global global_http_proxy_username
adb shell settings delete global global_http_proxy_password
adb shell settings delete global global_http_proxy_exclusion_list
adb shell settings delete global global_proxy_pac_url
adb shell reboot
不幸的是,它在我的 Wear OS 手表中不起作用。也许你会更幸运。