From 5da641c4ce0eea17b0165d4a2d9e7e5c1fa8150e Mon Sep 17 00:00:00 2001 From: kdrag0n Date: Thu, 11 Mar 2021 12:22:08 +0000 Subject: [PATCH] sm6250-common: overlay: Don't pin camera app in memory The default camera app can be *huge* in some cases, e.g. when the app in question is Google Camera. The system will only pin up to the first 80 MiB of the APK file, as well as the first 80 MiB of its odex. There are several problems with this: - We could easily end up with 160 MiB of camera app files pinned, which is a tall order with the usable RAM that we have - The data that gets pinned may not even be the most critical data for launching the camera Let's disable pinning of the camera app to save precious RAM on this device. Change-Id: Ic2f9edd811879e3f18876a508273a9544d8a23e0 --- overlay/frameworks/base/core/res/res/values/config.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 2bc9285..8e88534 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -241,9 +241,6 @@ "/system/lib64/libsurfaceflinger.so" - - true - true