From d34eee33d2fb85f2dbf1e1377310fd0d750f4945 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Tue, 6 Oct 2020 16:16:44 -0700 Subject: [PATCH] wahoo: 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 ~3.5 GiB of 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: I745e39b6ff212dfaf9213517d2a2be8ff7384e24 --- 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 a26c8f7b..b6d0fef3 100755 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -306,9 +306,6 @@ "/system/lib64/libsurfaceflinger.so" - - true - true