Android去除WiFi下感叹号

adb shell "settings put global captive_portal_http_url http://www.google.cn/generate_204"
adb shell "settings put global captive_portal_https_url https://www.google.cn/generate_204"

另外还有几个地址:

https://dl.google.com/generate_204
https://www.gstatic.com/generate_204
https://ssl.gstatic.com/generate_204
https://fonts.gstatic.com/generate_204
https://ajax.googleapis.com/generate_204
https://fonts.googleapis.com/generate_204
https://www.google-analytics.com/generate_204
https://www.googleadservices.com/generate_204
https://static.googleadsserving.cn/generate_204
https://connectivitycheck.gstatic.com/generate_204
https://googleads.g.doubleclick.net/generate_204
https://stats.g.doubleclick.net/generate_204
https://www.qualcomm.cn/generate_204

adb shell "settings put global captive_portal_detection_enabled 0"
adb shell "settings put global captive_portal_detection_enabled 1"
adb shell "settings delete global captive_portal_server"

https://developer.android.google.cn/studio/releases/platform-tools.html