frameworks/base/services/core/java/com/android/server/NetworkTimeUpdateService.java
index 313fa24..4534daa 100644
@@ -87,7 +87,7 @@ public class NetworkTimeUpdateService {
/// M: Support default system time @{
private static final String DECRYPT_STATE = "trigger_restart_framework";
private static final String BOOT_SYS_PROPERTY = "persist.sys.first_time_boot";
- private static int mDefaultYear = 2014;
+ private static int mDefaultYear = 2017;
/// @}
private static final String ACTION_POLL =
@@ -199,7 +199,7 @@ public class NetworkTimeUpdateService {
Time today = new Time(Time.getCurrentTimezone());
today.setToNow();
Log.d(TAG, "First boot:" + tempString + " with date:" + today);
- today.set(1, 4, mDefaultYear);
+ today.set(1, 6, mDefaultYear);
Log.d(TAG, "Set the year to " + mDefaultYear);
SystemProperties.set(BOOT_SYS_PROPERTY, "false");
SystemClock.setCurrentTimeMillis(today.toMillis(false));
---- vendor/mediatek/proprietary/frameworks/base/res/res/values/config.xml ----
index ad95f42..469f66d 100755
@@ -28,7 +28,7 @@
<string name="config_mm_package_name">com.aspire.mm</string>
<!-- default year for first power on-->
- <integer name="default_restore_year">2016</integer>
+ <integer name="default_restore_year">2017</integer>
<!-- Flag indicating whether ntp sync over mobile data connection -->
<bool name="config_ntp_by_mobile">false</bool>
index 313fa24..4534daa 100644
@@ -87,7 +87,7 @@ public class NetworkTimeUpdateService {
/// M: Support default system time @{
private static final String DECRYPT_STATE = "trigger_restart_framework";
private static final String BOOT_SYS_PROPERTY = "persist.sys.first_time_boot";
- private static int mDefaultYear = 2014;
+ private static int mDefaultYear = 2017;
/// @}
private static final String ACTION_POLL =
@@ -199,7 +199,7 @@ public class NetworkTimeUpdateService {
Time today = new Time(Time.getCurrentTimezone());
today.setToNow();
Log.d(TAG, "First boot:" + tempString + " with date:" + today);
- today.set(1, 4, mDefaultYear);
+ today.set(1, 6, mDefaultYear);
Log.d(TAG, "Set the year to " + mDefaultYear);
SystemProperties.set(BOOT_SYS_PROPERTY, "false");
SystemClock.setCurrentTimeMillis(today.toMillis(false));
---- vendor/mediatek/proprietary/frameworks/base/res/res/values/config.xml ----
index ad95f42..469f66d 100755
@@ -28,7 +28,7 @@
<string name="config_mm_package_name">com.aspire.mm</string>
<!-- default year for first power on-->
- <integer name="default_restore_year">2016</integer>
+ <integer name="default_restore_year">2017</integer>
<!-- Flag indicating whether ntp sync over mobile data connection -->
<bool name="config_ntp_by_mobile">false</bool>