From 6b99fd74ea7a5d99326237999baf1969443c7078 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Tue, 6 Oct 2020 16:16:44 -0700 Subject: [PATCH] avicii: overlay: Don't pin camera 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 somewhat tall order with the ~5.3 GiB of usable RAM that we have - The data that gets pinned may not even be the most critical data for launching the camera Disable pinning of the camera app to save precious RAM on this device. Signed-off-by: Pranav Vashi --- overlay/OPlusFrameworksResCommon/res/values/config.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/overlay/OPlusFrameworksResCommon/res/values/config.xml b/overlay/OPlusFrameworksResCommon/res/values/config.xml index dc281a8..51f594d 100644 --- a/overlay/OPlusFrameworksResCommon/res/values/config.xml +++ b/overlay/OPlusFrameworksResCommon/res/values/config.xml @@ -10,9 +10,6 @@ The default is false. --> true - - true - true