adb 代理配置与移除
前提:设备与电脑同一局域网
配置代理:
adb -s <device> shell settings put global http_proxy <ip:port>
- devices:设备(命令获取:adb devices)
- ip:电脑的ip地址(命令获取:ipconfig)
- port:代理的端口号(抓包软件-proxy-setting)

移除代理:
adb shell settings delete global global_http_proxy_host
adb shell settings delete global global_http_proxy_port
重启设备后生效,adb reboot

浙公网安备 33010602011771号