设置代理

配置代理命令如下:

adb shell settings put global http_proxy ip_address:port

示例,以ip 192.168.1.200 端口 3128为例( 实际配置时以你的代理为准 ):

adb shell settings put global http_proxy 192.168.1.200:3128

移除代理

取消代理命令如下,3条都需要执行:

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

相关文章:

  • 2022-12-23
  • 2022-01-17
  • 2021-12-02
  • 2021-11-20
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-12-06
  • 2021-06-04
相关资源
相似解决方案