目 录CONTENT

文章目录

adb命令

admin
2022-11-03 / 0 评论 / 0 点赞 / 5047 阅读 / 0 字 / 正在检测是否收录...

设置代理方法(无需重启)

adb shell settings put global http_proxy 代理IP地址:端口号

移除代理方法(移除代理后要重启手机才能生效。)

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 forward tcp:8000 tcp:8080
# 查看所有已设置的转发规则
adb forward --list
# 移除转发规则
adb forward --remove tcp:8000
# 移除所有的转发规则
adb forward --remove-all
0

评论区