命令行中输入
adb shell settings delete global captive_portal_https_url
adb shell settings delete global captive_portal_http_url
输入服务器信息
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204