android 11 修改时区(上海)& NTP服务器设置

一、NTP服务器设置

代码位置

alps/device/mediatek/system/common/overlay/ntp/frameworks/base/core/res/res/values/config.xml

alps/frameworks/base/core/res/res/values/config.xml

具体代码

diff --git a/alps/device/mediatek/system/common/overlay/ntp/frameworks/base/core/res/res/values/config.xml b/alps/device/mediatek/system/common/overlay/ntp/frameworks/base/core/res/res/values/config.xml
old mode 100644 (file)
new mode 100755 (executable)
index 84e5add..e58f023
--- a/alps/device/mediatek/system/common/overlay/ntp/frameworks/base/core/res/res/values/config.xml
+++ b/alps/device/mediatek/system/common/overlay/ntp/frameworks/base/core/res/res/values/config.xml
@@ -37,5 +37,5 @@
 -->
 
     
-    pool.ntp.org
+    cn.pool.ntp.org
 

\ No newline at end of file

diff --git a/alps/frameworks/base/core/res/res/values/config.xml b/alps/frameworks/base/core/res/res/values/config.xml
old mode 100644 (file)
new mode 100755 (executable)
index 39d20bb..c7aa0d2
--- a/alps/frameworks/base/core/res/res/values/config.xml
+++ b/alps/frameworks/base/core/res/res/values/config.xml
@@ -2030,7 +2030,7 @@
     true
 
     
-    time.android.com
+    cn.pool.ntp.org
     
     86400000
     

代码分析

更改系统时间NTP服务器地址

二、修改为上海时区

代码位置

a/alps/device/mediateksample/w869_cn/custom.prop

具体代码

diff --git a/alps/device/mediateksample/w869_cn/custom.prop b/alps/device/mediateksample/w869_cn/custom.prop
index 36aa039..11af18f 100755 (executable)
--- a/alps/device/mediateksample/w869_cn/custom.prop
+++ b/alps/device/mediateksample/w869_cn/custom.prop
@@ -24,4 +24,6 @@ ro.vendor.xw.lyz_headset=0
 ro.vendor.xw.lyz_backlight=0
 ro.vendor.xw.lyz_memory=0
 ro.vendor.xw.lyz_sim_card=0
-ro.vendor.xw.lyz_storage_equipment=0
\ No newline at end of file
+ro.vendor.xw.lyz_storage_equipment=0
+
+persist.sys.timezone=Asia/Shanghai

代码分析

添加上海时区

你可能感兴趣的:(Android11,android,服务器,java)