File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
core/java/com/android/internal/os
services/java/com/android/server Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -103,18 +103,6 @@ private static final void commonInit() {
103
103
/* set default handler; this applies to all threads in the VM */
104
104
Thread .setDefaultUncaughtExceptionHandler (new UncaughtHandler ());
105
105
106
- /*
107
- * In case the runtime switched since last boot (such as when
108
- * the old runtime was removed in an OTA), set the system
109
- * property so that it is in sync. We can't do this in
110
- * libnativehelper's JniInvocation::Init code where we already
111
- * had to fallback to a different runtime because it is
112
- * running as root and we need to be the system user to set
113
- * the property. http://b/11463182
114
- */
115
- SystemProperties .set ("persist.sys.dalvik.vm.lib" ,
116
- VMRuntime .getRuntime ().vmLibrary ());
117
-
118
106
/*
119
107
* Install a TimezoneGetter subclass for ZoneInfo.db
120
108
*/
Original file line number Diff line number Diff line change @@ -1104,6 +1104,19 @@ public class SystemServer {
1104
1104
private static native void nativeInit ();
1105
1105
1106
1106
public static void main (String [] args ) {
1107
+
1108
+ /*
1109
+ * In case the runtime switched since last boot (such as when
1110
+ * the old runtime was removed in an OTA), set the system
1111
+ * property so that it is in sync. We can't do this in
1112
+ * libnativehelper's JniInvocation::Init code where we already
1113
+ * had to fallback to a different runtime because it is
1114
+ * running as root and we need to be the system user to set
1115
+ * the property. http://b/11463182
1116
+ */
1117
+ SystemProperties .set ("persist.sys.dalvik.vm.lib" ,
1118
+ VMRuntime .getRuntime ().vmLibrary ());
1119
+
1107
1120
if (System .currentTimeMillis () < EARLIEST_SUPPORTED_TIME ) {
1108
1121
// If a device's clock is before 1970 (before 0), a lot of
1109
1122
// APIs crash dealing with negative numbers, notably
You can’t perform that action at this time.
0 commit comments