Skip to content

Commit 10193b7

Browse files
bdcgoogleAndroid Git Automerger
authored andcommitted
am a51052d: Merge "Move set of persist.sys.dalvik.vm.lib to SystemServer only" into klp-dev
* commit 'a51052d17cf94fcddb5739141132fb9dee75bffb': Move set of persist.sys.dalvik.vm.lib to SystemServer only
2 parents f219469 + a51052d commit 10193b7

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,6 @@ 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-
118106
/*
119107
* Install a TimezoneGetter subclass for ZoneInfo.db
120108
*/

services/java/com/android/server/SystemServer.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,19 @@ public class SystemServer {
11041104
private static native void nativeInit();
11051105

11061106
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+
11071120
if (System.currentTimeMillis() < EARLIEST_SUPPORTED_TIME) {
11081121
// If a device's clock is before 1970 (before 0), a lot of
11091122
// APIs crash dealing with negative numbers, notably

0 commit comments

Comments
 (0)