diff options
| author | 2019-11-13 13:19:18 -0800 | |
|---|---|---|
| committer | 2019-11-13 13:19:18 -0800 | |
| commit | 5b790b7612f06bea910d0ba4e3bb46cd2e99f7c2 (patch) | |
| tree | 234fb5fc4f76b79b7ea201f8227fbead125234dc | |
| parent | 59318bab6727eb5f6f5595c0ccd7e7d7325d25e4 (diff) | |
| parent | c62f571265e537e9f4f7c9dfc888b2582f5296ba (diff) | |
Merge "Update ArtManagerService for new profilebootclasspath properties"
am: c62f571265
Change-Id: If7af1c40d793c9c691f0284d9544858e100f675e
| -rw-r--r-- | services/core/java/com/android/server/pm/dex/ArtManagerService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/pm/dex/ArtManagerService.java b/services/core/java/com/android/server/pm/dex/ArtManagerService.java index 9948a3ad47da..b8d3ca56e368 100644 --- a/services/core/java/com/android/server/pm/dex/ArtManagerService.java +++ b/services/core/java/com/android/server/pm/dex/ArtManagerService.java @@ -317,9 +317,13 @@ public class ArtManagerService extends android.content.pm.dex.IArtManager.Stub { case ArtManager.PROFILE_APPS : return SystemProperties.getBoolean("dalvik.vm.usejitprofiles", false); case ArtManager.PROFILE_BOOT_IMAGE: + // The device config property overrides the system property version. + boolean profileBootClassPath = SystemProperties.getBoolean( + "persist.device_config.runtime_native_boot.profilebootclasspath", + SystemProperties.getBoolean("dalvik.vm.profilebootclasspath", false)); return (Build.IS_USERDEBUG || Build.IS_ENG) && SystemProperties.getBoolean("dalvik.vm.usejitprofiles", false) && - SystemProperties.getBoolean("dalvik.vm.profilebootimage", false); + profileBootClassPath; default: throw new IllegalArgumentException("Invalid profile type:" + profileType); } |