简体   繁体   English

使用用户名和密码连接 ADB 代理

[英]Connect ADB Proxy with UserName and Password

i'm using ADB with command我正在使用带有命令的 ADB

adb shell settings put global http_proxy <ip>:<port>

it's works very good .它的工作非常好。

but i can't login proxy if it had protected with username and password但如果代理受用户名和密码保护,我将无法登录

please help me if you know anything .如果你知道什么,请帮助我。

I made some investigation and find out correct settings to enable http proxy with authentication via adb:我进行了一些调查并找出了正确的设置以通过 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

And to disable proxy:并禁用代理:

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

Unfortunately it is not working in my Wear OS wristwatch.不幸的是,它不适用于我的 Wear OS 手表。 May be you'll be more lucky.也许你会更幸运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM