frameworks/base/services/core/java/com/android/server/timezonedetector/TimeZoneDetectorCallbackImpl.java
public boolean isDeviceTimeZoneInitialized() {
String timeZoneId = getDeviceTimeZone();
return timeZoneId != null && timeZoneId.length() > 0 && !timeZoneId.equals("GMT");
}
@Override
@Nullable
public String getDeviceTimeZone() {
return SystemProperties.get(TIMEZONE_PROPERTY);
}
private static final String TIMEZONE_PROPERTY = "persist.sys.timezone";
private static final String TIMEZONE_PROPERTY = "persist.sys.timezone";
这个是设置时区的属性 persist.sys.timezone
在android源码目录 build/make/core/main.mk
添加默认 persist.sys.timezone默认属性
本文来自投稿,不代表本站立场,如若转载,请注明出处:https://typecho.firshare.cn/archives/3514.html