1. 设置代理:adb shell settings put global http_proxy 192.168.50.167:8888

  2. 取消代理:

    1
    2
    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
    
  3. 重启手机