# 設定聯網測試網站
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