diff options
| author | Jorim Jaggi <jjaggi@google.com> | 2018-07-05 14:56:30 +0200 |
|---|---|---|
| committer | Shubh@m <shubhindia123@gmail.com> | 2019-04-13 21:55:51 +0530 |
| commit | 0a66b6acf1479f8b0ef11de773289504821cfe17 (patch) | |
| tree | b63f10e59a751c9e7974faf9661cb42b579cd7e9 | |
| parent | 240884339bb32f390deb6cf35408cd9527a121eb (diff) | |
oneplus2: PIN critical apps and system services that get swapped
Pin critical system apps that always need to be responsive, no
mattter what:
- SystemUI for expanding the notification shade/navigation bar
- SF: Doesn't need introduction, but still gets zram'ed in certain
cases:
Total memory impact: About 5-6 MB (since regularly not all code is
loaded)
Test: Flash device with CL and make sure actions like expanding
notification shade isn't as janky under memory pressure anymore
Bug: 111132016
[aviraxp]: Original code pins the pre-odexed file of SytemUI, but we
do not dexpreopt priv-apps. So pin the SystemUI apk as well
just as what it is for camera pinning.
Change-Id: I3bc93204147502bec2e983f7ee37555294db308c
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 3203c23..2859f1a 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -304,6 +304,10 @@ <item>"/system/framework/boot.vdex"</item> <item>"/system/framework/arm64/boot-core-libart.oat"</item> <item>"/system/framework/boot-core-libart.vdex"</item> + <item>"/system/priv-app/SystemUI/SystemUI.apk"</item> + <item>"/data/dalvik-cache/arm64/system@priv-app@SystemUI@SystemUI.apk@classes.dex"</item> + <item>"/data/dalvik-cache/arm64/system@priv-app@SystemUI@SystemUI.apk@classes.vdex"</item> + <item>"/system/lib64/libsurfaceflinger.so"</item> </string-array> <!-- Keep chosen default camera app pinned in memory for faster launching --> |
