admin管理员组

文章数量:1530845

自 Android 5.0 起,谷歌引入了「Captive Portal」的机制,用于检测 WiFi网络认证是否正常。

该机制默认检测访问的是谷歌服务器,需要科学才能正常访问谷歌服务器,如若没有 WiFi就会出现网络受限的情况,WiFi图标上会出现一个感叹号标志,导致系统误以为你的网络不好,从而使网络不稳定。

解决方法

使用adb命令行工具执行以下命令

#解决网络连接受限、感叹号问题
#取消原网络验证(google连接不上)
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

#也可用小米、华为的url
#小米:
http://connect.rom.miui/generate_204
https://connect.rom.miui/generate_204
#华为:
http://connectivitycheck.platform.hicloud/generate_204
https://connectivitycheck.platform.hicloud/generate_204

解决时间同步问题

#解决时间同步问题
adb shell settings put global ntp server ntp

#1. time.apple (中国区苹果时间服务器)
#2. ntp (中国国家授时中心时间服务器)
#3. ntp1.aliyun (阿里云NTP时间服务器)
#4. ntp.tencent (腾讯云NTP时间服务器)
#5. ntp2.tencent (腾讯云NTP时间服务器)
#6. ntp1.bce.baidu (百度云NTP时间服务器)
#7. ntp4.bce.baidu (百度云NTP时间服务器)
#8. ntp1.google (Google NTP时间服务器)
#9. ntp2.google (Google NTP时间服务器)
#10. ntp3.google (Google NTP时间服务器)
#11. ntp4.google (Google NTP时间服务器)

本文标签: 感叹号时间网络pixelwifi