瑞芯微Rockchip开发者社区
直播中

张娜

7年用户 894经验值
私信 关注
[问答]

RK3288怎样添加更多的ip地址来满足获取NTP时间的同步呢

RK3288怎样加更多的ip地址来满足获取NTP时间的同步呢?

回帖(1)

倪山骋

2022-3-3 16:05:34
frameworks/base/core/java/android/util/NtpTrustedTime.java

在这里添加更多的ip地址来满足获取NTP时间的同步。backupNtpServers数组里面,添加





我这里多添加的值,以确保主板时间同步正确:

String[] backupNtpServers=new String[]{
        "tw.pool.ntp.org",
        "time.nist.gov",
        "time-a.nist,gov",
        "ntp1.aliyun.com",
        "ntp2.aliyun.com",
        "ntp3.aliyun.com",
        "ntp-sz.chl.la",
        "3.cn.pool.ntp.org",
        "asia.pool.ntp.org",
        "cn.pool.ntp.org",
        "sg.pool.ntp.org",
        "jp.pool.ntp.org",
        "hk.pool.ntp.org",
        "s2g.time.edu.cn",
        "oceania.pool.ntp.org",
        "south-america.pool.ntp.org",
        "north-america.pool.ntp.org"
};
举报

更多回帖

发帖
×
20
完善资料,
赚取积分