时间不同步问题
前段时间给某款有道的设备刷机后,发现了时间同步的问题,手动改时间发现无用,重启后时间不一致,如果想要与时间服务器同步又同步不上(时间对不上,使用不了https)
可以使用 国家授时中心 提供的NTP服务或者 阿里云的NTP服务.
将 ntp.ntsc.ac.cn 替换成相应的NTP服务器地址即可
尝试在Android上运行(需root):
su
settings put global ntp_server ntp.ntsc.ac.cn
或是在ADB上运行(无需root):
adb shell "settings put global ntp_server ntp.ntsc.ac.cn"
由于Android的时间同步服务并不是时刻运行的,可尝试重启后开关一下自动同步时间,应该就会生效了。
已连接但无法访问互联网
每次使用原生安卓,基本上都会碰到这个问题,因为这个WIFI可用性的测试点用的是Google的,但是Google因为一些原因被屏蔽了,所以无法访问测试点,导致显示网络连接受限
1)adb命令方法
//删除旧的监测点
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_https_url https://connect.rom.miui.com/generate\_204
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate\_204
2)软件修改
CaptiveMgr(必要)
shizuku(可选)
可以使用CaptiveMgr + shizuku方法或root + CaptiveMgr方法
评论区(暂无评论)