设置系统默认时间,当系统起来的时候调用api设置(此时未联网)
diff --git a/frameworks/base/services/java/com/android/server/am/ActivityManagerService.java b/frameworks/base/services/java/com/a
index 6ad148f..ebce4a7 100644
--- a/frameworks/base/services/java/com/android/server/am/ActivityManagerService.java
+++ b/frameworks/base/services/java/com/android/server/am/ActivityManagerService.java
@@ -7559,6 +7559,9 @@ public final class ActivityManagerService extends ActivityManagerNative
}
mSystemReady = true;
+ long l = 1356998452953L; //2013-1-1
+ boolean isSuc = SystemClock.setCurrentTimeMillis(l);
+ Slog.i(TAG, "--------set the system time ------------------isSuc="+isSuc);
if (!mStartRunning) {
return;
}
diff --git a/frameworks/base/services/java/com/android/server/am/ActivityManagerService.java b/frameworks/base/services/java/com/a
index 6ad148f..ebce4a7 100644
--- a/frameworks/base/services/java/com/android/server/am/ActivityManagerService.java
+++ b/frameworks/base/services/java/com/android/server/am/ActivityManagerService.java
@@ -7559,6 +7559,9 @@ public final class ActivityManagerService extends ActivityManagerNative
}
mSystemReady = true;
+ long l = 1356998452953L; //2013-1-1
+ boolean isSuc = SystemClock.setCurrentTimeMillis(l);
+ Slog.i(TAG, "--------set the system time ------------------isSuc="+isSuc);
if (!mStartRunning) {
return;
}