android 系统中,国外反馈时间不同步问题。修改不同的时间服务器和同步时间。

本文档介绍了在Android系统中遇到的国外反馈时间不同步的问题,并提供了修改配置以使用不同的时间服务器(从time.android.com更改为ntp1.aliyun.com)以解决此问题的详细步骤。同时,还调整了正常的和尝试再次同步的时间间隔,以提高同步成功率。

diff --git a frameworks/core/res/res/values/config.xml b/core/res/res/values/config.xml
index ac7df16..5c32bc6 100644
--- a frameworks/core/res/res/values/config.xml
+++ b frameworks/core/res/res/values/config.xml
@@ -2024,11 +2024,11 @@
     <bool name="config_actionMenuItemAllCaps">true</bool>
 
     <!-- Remote server that can provide NTP responses. -->
-    <string translatable="false" name="config_ntpServer">time.android.com</string>
+    <string translatable="false" name="config_ntpServer">ntp1.aliyun.com</string>
     <!-- Normal polling frequency in milliseconds -->
     <integer name="config_ntpPollingInterval">86400000</integer>
     <!-- Try-again polling interval in milliseconds, in case the network request failed -->
-    <integer name="config_ntpPollingIntervalShorter">60000</integer>
+    <integer name="config_ntpPollingIntervalShorter">6000</integer>
     <!-- Number of times to try again with the shorter interval, before backing
          off until the normal polling interval. A value < 0 indicates infinite. -->
     <integer name="config_ntpRetry">3</integer>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不想写代码的农民工

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值