Skip to content

Commit 6872435

Browse files
bdcgoogleAndroid Git Automerger
authored andcommitted
am 3a9a208: am e6411e6: Merge "Set persist.sys.dalvik.vm.lib at system server startup" into klp-dev
* commit '3a9a2089852d18ef7abbb9476fc3455bfec5a880': Set persist.sys.dalvik.vm.lib at system server startup
2 parents b9c28ce + 3a9a208 commit 6872435

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

core/java/com/android/internal/os/RuntimeInit.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@ private static final void commonInit() {
103103
/* set default handler; this applies to all threads in the VM */
104104
Thread.setDefaultUncaughtExceptionHandler(new UncaughtHandler());
105105

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+
106118
/*
107119
* Install a TimezoneGetter subclass for ZoneInfo.db
108120
*/

0 commit comments

Comments
 (0)