# 设置联网测试网站
settings put global captive_portal_detection_enabled 1
settings put global captive_portal_mode 1
settings put global captive_portal_use_https 0
settings put global captive_portal_server connect.rom.miui.com
settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
settings put global captive_https_url https://connect.rom.miui.com/generate_204
# 设置全局代理
# settings put global http_proxy ip:port如:
settings put global http_proxy 192.168.1.83:6868
# 移除代理(需三条指令全部执行,部分机型可能需要重启手机才能完全移除代理):
settings delete global http_proxy
settings delete global global_http_proxy_host
settings delete global global_http_proxy_port
reboot