V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tonghuashuai
V2EX  ›  Android

Android 系统时间不对有遇到的吗?

  •  
  •   tonghuashuai · 2020-01-20 09:20:39 +08:00 · 11855 次点击
    这是一个创建于 1529 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Pixel 4 xl,使用网络提供的时间和时区,发现快 7 分钟

    第 1 条附言  ·  2020-01-20 14:11:00 +08:00
    用了一楼的办法貌似是可行的,还没重启,到目前为止时间是正确的了。
    8 条回复    2020-01-22 07:41:11 +08:00
    11dad
        1
    11dad  
       2020-01-20 09:26:19 +08:00   ❤️ 1
    我的 2xl 和 s7e 也遇到过,重启时间就不对,遇到几次了,自己调下再设成自动吧
    JamesR
        2
    JamesR  
       2020-01-20 10:16:54 +08:00   ❤️ 2
    彻底解决方法:

    adb shell "settings put global ntp_server pool.ntp.org"

    因为默认 NTP 服务器 Google 的 time 服务器,你被墙着,连不上的。
    augustheart
        3
    augustheart  
       2020-01-20 10:21:23 +08:00
    很多手机的计时精度很差的,只要一段时间没有网络同步时间就能差很多。
    顺便说,kindle 的计时精度真高,为了省电,我 kindle 大半年内一直是飞行模式使用,时间居然差不多(一分钟内)
    hsheng
        4
    hsheng  
       2020-01-20 11:33:21 +08:00 via Android
    @JamesR 为啥不用 cn.pool.ntp.org ?默认的是 time.android.com
    hsheng
        5
    hsheng  
       2020-01-20 11:38:36 +08:00 via Android
    我不知道这个 adb shell settings put global ntp_server 命令,自己写了 overlay 把源代码 frameworks/base/core/res/res/values/config.xml 里的 config_ntpServer 替换了编译的😂😂
    JamesR
        6
    JamesR  
       2020-01-20 11:40:49 +08:00
    @hsheng #4 看个人喜好,以前用过国内的某 NTP 服务器,快是挺快,后来挂了,我公司 N 多机器要改,累死我不说还耽误事,cn 不放心直接排除,用国际 NTP 服务器。
    默认的改时间后试过同步不了,具体域名各版本手机可能有差异。
    ShinichiYao
        7
    ShinichiYao  
       2020-01-20 15:56:08 +08:00
    没插 SIM 卡吧?
    tonghuashuai
        8
    tonghuashuai  
    OP
       2020-01-22 07:41:11 +08:00 via Android
    @ShinichiYao 插了的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   957 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 20:32 · PVG 04:32 · LAX 13:32 · JFK 16:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.