OSDN Git Service

frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default
authorBrian Carlstrom <bdc@google.com>
Thu, 30 Jan 2014 21:14:01 +0000 (13:14 -0800)
committerThe Android Automerger <android-build@android.com>
Fri, 31 Jan 2014 00:03:29 +0000 (16:03 -0800)
(cherry picked from commit c6c633608ad4cd77ed21227b0bdb11eb79797c31)

Bug: 12798969
Change-Id: Ibb7ed86867e4dca53ad7fe33326b08e6f5e664c4

core/java/com/android/internal/app/ProcessStats.java
services/core/java/com/android/server/SystemServer.java

index eda1db2..4dd4a45 100644 (file)
@@ -1097,7 +1097,7 @@ public final class ProcessStats implements Parcelable {
 
     public boolean evaluateSystemProperties(boolean update) {
         boolean changed = false;
-        String runtime = SystemProperties.get("persist.sys.dalvik.vm.lib",
+        String runtime = SystemProperties.get("persist.sys.dalvik.vm.lib.1",
                 VMRuntime.getRuntime().vmLibrary());
         if (!Objects.equals(runtime, mRuntime)) {
             changed = true;
index b04fc15..1f6235f 100644 (file)
@@ -163,7 +163,7 @@ public final class SystemServer {
         // had to fallback to a different runtime because it is
         // running as root and we need to be the system user to set
         // the property. http://b/11463182
-        SystemProperties.set("persist.sys.dalvik.vm.lib", VMRuntime.getRuntime().vmLibrary());
+        SystemProperties.set("persist.sys.dalvik.vm.lib.1", VMRuntime.getRuntime().vmLibrary());
 
         // Enable the sampling profiler.
         if (SamplingProfilerIntegration.isEnabled()) {