diff options
author | Danny Lin <danny@kdrag0n.dev> | 2020-10-06 16:16:44 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-08-15 15:24:56 +0800 |
commit | e67365e2280648fa56824a70c0a100386b7e242d (patch) | |
tree | 90f4a2e177999f3fa42fd686415ff0c62c4fd0db | |
parent | d0dcd8b19bd59235527048daf7a8567bfebe6690 (diff) |
gs201: 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 6 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 RAM.
Change-Id: I745e39b6ff212dfaf9213517d2a2be8ff7384e24
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 3 |
1 files changed, 0 insertions, 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 b512cb01..8394aca3 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -246,9 +246,6 @@ <item>"/system_ext/priv-app/SystemUI/SystemUI.apk"</item> </string-array> - <!-- Should the pinner service pin the Camera application? --> - <bool name="config_pinnerCameraApp">true</bool> - <!-- Should the pinner service pin the Home application? --> <bool name="config_pinnerHomeApp">true</bool> |