From ef7c7d299e4b0bb84f70c20ba3a412cc115c905c Mon Sep 17 00:00:00 2001 From: Igor Murashkin Date: Wed, 12 Feb 2020 15:12:00 -0800 Subject: [PATCH] pinner: Replace camera pinning with iorap prefetching The camera-specific pinning needs to be disabled for iorap to be able to trace the camera APK. Saves 40-70MB of memory system-wide depending on the device. Bug: 149426956 Test: adb shell dumpsys pinner Change-Id: If98eb82a9d741a41e76565d37cfe2dd828e7a653 --- services/core/java/com/android/server/PinnerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/PinnerService.java b/services/core/java/com/android/server/PinnerService.java index 6fb7b267c285b..93859b35fbe09 100644 --- a/services/core/java/com/android/server/PinnerService.java +++ b/services/core/java/com/android/server/PinnerService.java @@ -103,7 +103,7 @@ public final class PinnerService extends SystemService { private static boolean PROP_PIN_CAMERA = DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_RUNTIME_NATIVE_BOOT, "pin_camera", - SystemProperties.getBoolean("pinner.pin_camera", true)); + SystemProperties.getBoolean("pinner.pin_camera", false)); // Pin using pinlist.meta when pinning apps. private static boolean PROP_PIN_PINLIST = SystemProperties.getBoolean( "pinner.use_pinlist", true);