Captive Portal设置
可以去掉信号标识上面的叹号和叉叉。 不建议关闭检测,关闭检测后会导致无法检测网络是否需要认证, 需要手动打开认证页面或手动打访问页跳转。
#删除变量:(删除以后默认启用)
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
#删除(删除默认用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
adb shell settings put global captive_portal_fallback_url http://captive.v2ex.co/generate_204
adb shell settings put global captive_portal_other_fallback_urls http://captive.v2ex.co/generate_204