miatoll: 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.

Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
This commit is contained in:
kdrag0n 2021-03-11 12:22:08 +00:00 committed by Aryan Gupta
parent d068e65338
commit a6c07829d9

View File

@ -560,9 +560,6 @@
<item>"/system/lib64/libblas.so"</item> <item>"/system/lib64/libblas.so"</item>
</string-array> </string-array>
<!-- Should the pinner service pin the Camera application? -->
<bool name="config_pinnerCameraApp">true</bool>
<!-- Should the pinner service pin the Home application? --> <!-- Should the pinner service pin the Home application? -->
<bool name="config_pinnerHomeApp">true</bool> <bool name="config_pinnerHomeApp">true</bool>