Android7.xx以上状态栏感叹号解决

7.0 - 7.1

删除(直接删除则默认使用HTTPS)
adb shell settings delete global captive_portal_use_https
禁用HTTPS(写1启用 写0禁用)
adb shell settings put global captive_portal_use_https 0
查询HTTPS开关状态
adb shell settings get global captive_portal_use_https

删除地址就可以恢复默认的谷歌服务器
adb shell settings delete global captive_portal_server
设置一个可用地址(高通/V2EX都推荐)
adb shell settings put global captive_portal_server captive.v2ex.co
查询当前地址
adb shell settings get global captive_portal_server

7.1.1教程
这个版本把HTTPS和HTTP两个地址分开保存,并通过7.0加入的HTTPS开关来控制使用哪一个地址

删除(删除默认用HTTPS)
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://captive.v2ex.co/generate_204
adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204

7.1.2教程
此版本服务器地址判断逻辑相比7.1.1没有更改,但是检测的开关变了

删除变量:(删除以后默认启用)
adb shell settings delete global captive_portal_mode
关闭检测:
adb shell settings put global captive_portal_mode 0
查看当前状态:
adb shell settings get global captive_portal_mode
服务器地址相关(同7.1.1):

删除(删除默认用HTTPS)
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://captive.v2ex.co/generate_204
adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204
8.0.0和8.1.0和9.0(Android P)同上7.1.2,未做修改

另外,跳过android P开机验证:

adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1

你也可以进rec把验证文件删掉…