Skip to content

Commit

Permalink
wahoo: Don't pin camera app in memory
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kdrag0n authored and Eamo5 committed Oct 9, 2020
1 parent 22eedb6 commit 73d27c5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,6 @@
<item>"/system/lib64/libsurfaceflinger.so"</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>

Expand Down

0 comments on commit 73d27c5

Please sign in to comment.