1. 前言
Nexus 6P刷入Google Android8.1镜像后,WIFI提示"已连接,但无法访问互联网"。
2. 解决方法
进入adb shell后,输入以下命令:
settings put global captive_portal_detection_enabled 1settings put global captive_portal_mode 1settings put global captive_portal_use_https 0settings put global captive_portal_server connect.settings put global captive_portal_http_url http://connect./generate_204settings put global captive_portal_https_url https://connect./generate_204
输入完后,切换飞行模式生效。
3. 其它
注意,目前只在Android8.1镜像上调试过,其它镜像未作尝试。