adb shell settings delete global captive_portal_http_url adb shell settings delete global captive_portal_https_url adb shell settings put global captive_portal_http_url http://developers.google.cn/generate_204 adb shell settings put global captive_portal_https_url https://developers.google.cn/generate_204
禁用网络检查
1
adb shell settings put global captive_portal_detection_enabled 0
踩坑
如果连接的Wifi需要通过portal验证,由于禁用了网络检查,会导致无法验证
恢复网络检查
1
adb shell settings put global captive_portal_detection_enabled 1