frameworks\opt\telephony\src\java\com\android\internal\telephony\MccTable.java
开机在读取到sim卡的mccmnc后会走到mcctable中设置时区的代码
private static void setTimezoneFromMccIfNeeded(Context context, int mcc) {
String timezone = SystemProperties.get(ServiceStateTracker.TIMEZONE_PROPERTY);
if (timezone == null || timezone.length() == 0 || isDefaultTimeZone) {
String zoneId = defaultTimeZoneForMcc(mcc);
if (zoneId != null && zoneId.length() > 0) {
// Set time zone based on MCC
AlarmManager alarm =
(AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
alarm.setTimeZone(zoneId);
...
Slog.d(LOG_TAG, "timezone set to "+zoneId);
}
}
}
649

被折叠的 条评论
为什么被折叠?



