adb connect 192.168.1.1
adb shell settings put global ntp_server ntp1.aliyun.com
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
adb reboot
#恢复原来设置
adb shell settings delete global captive_portal_https_url