File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
core/java/com/android/internal/os Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,18 @@ 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
+
106
118
/*
107
119
* Install a TimezoneGetter subclass for ZoneInfo.db
108
120
*/
You can’t perform that action at this time.
0 commit comments