ADB: 安卓5.0之后网络验证,去掉wifi叹号

设验证服务器为谷歌国内网址

adb shell "settings put global captive_portal_server g.cn"
adb shell "settings put global captive_portal_server www.265.com"

关闭验证机制

adb shell "settings put global captive_portal_detection_enabled 0" 
打开为1

查看当前验证服务器

adb shell "settings get global captive_portal_server"

设验证服务器为预设默认网址

adb shell "settings delete global captive_portal_server"

设验证服务器为谷歌国外网址

adb shell "settings put global captive_portal_server clients3.google.com/generate_204"