在终端模拟器下(要获取ROOT权限才可以)或进入adb shell
cm13 android 6.0
settings put global captive_portal_detection_enabled 0
然后重启手机,然后可以再验证一下
settings get global captive_portal_detection_enabled
android 7.1.2的解决方法
settings put global captive_portal_https_url http://www.google-analytics.com/generate_204