打开windows terminal adb connect WSA的IP和端口 设置代理 adb shell settings put global http_proxy ip:端口 关闭代理(无需重启) adb shell settings put global http_proxy :0
A client is trying to SSH through the HTTP proxy (WSA), it works but the response times are huge. ssh_args = -C -o "ProxyCommand=nc -X connect -x proxy-http:8080 %h %p" It serves its purpose. HTTP proxy isn't designed for that, but has anyone tried it with a different utility...
$WinNetIP=$(Get-NetIPAddress -InterfaceAlias 'vEthernet (WSL)' -AddressFamily IPV4) adb connect 127.0.0.1:58526 adb shell settings put global http_proxy "$($WinNetIP.IPAddress):7890" #7890换成你自己的代理端口 将上述代码保存为 wsaproxy.ps1 ,执行该脚本便可设置代理。编辑...
adb connect 127.0.0.1:58526 # WSA 默认的端口是这个 adb shell "settings put global http_proxy `ip route list match 0 table all scope global | cut -F3`:8080" # 端口为 Proxy 的端口,这里以 8080 为例 # 如果使用的是 Windows PowerShell ,需要将 "`" 替换为 "``...
adbshellsettingsputglobalhttp_proxy:0 注:ADB能连接的前提是你有启动安卓子系统,所以你只要有至少一个APP正在运行。方法三:在系统设置里设置wifi的代理 1、打开你的代理工具设置里的“允许局域网连接”,“AllowLAN”之类的开关。2、启动那个【适用于android的windows子系统】。3、点击右上角的搜索...
adb connect127.0.0.1:58526&& adb shell"settings put global http_proxy `ip route list match 0 table all scope global | cut -F3`:7890" 中间一大段会自动识别宿主机ip 注意修改 7890 端口为你的代理软件的局域网端口,代理软件也需要开启允许局域网连接。
求助怎么恢复原有网络,还有怎样设置联网,APP都是断网的adb shell settings putglobalhttp_proxy加IPv4...
adb connect 127.0.0.1:58526 # WSA 默认的端口是这个 adb shell "settings put global http_proxy `ip route list match 0 table all scope global | cut -F3`:8080" # 端口为 Proxy 的端口,这里以 8080 为例 # 如果使用的是 Windows PowerShell ,需要将 "`" 替换为 "``...
adb shell "settings put global http_proxy `ip route list match 0 table all scope global | cut -F3`:7890" # 端口为代理软件的端口,这里以 7890 为例 # 如果使用的是 Windows PowerShell ,需要将 "`" 替换为 "``" # 此方法电脑重启后貌似会失效,可以在此目录下建立一个 bat 后缀的文件,用记事...
adb shell settings put global http_proxy 172.30.128.1:7890 # ip地址替换为查到的系统IPv4地址 如果想关闭上网,就输入以下代码: adb shell settings put global http_proxy :0 四、后续要安装app,操作步骤 1.打开子系统,高级设置→打开开发人员模式→点开管理开发人员设置,最好也打开亚马逊应用商店(如已开启,...