aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2021-03-07 13:18:40 +0530
committerJeferson Rodrigo de Oliveira <jroliveira.oliveira301@gmail.com>2021-03-31 20:57:09 +0200
commit6f4667c9235cd75d74e9f24f2fa5af38243b6fab (patch)
tree6834bff35cf49ab571625ec5c2d1be019d69a31a
parent99976ad26b73250f6b2d18f5929a78ae80aadea7 (diff)
lux: 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 Change-Id: I3bc93204147502bec2e983f7ee37555294db308c
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml7
1 files changed, 7 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 5ee0dd9..544ee5e 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -74,4 +74,11 @@
<!-- Does the device support battery LED? -->
<bool name="config_intrusiveBatteryLed">true</bool>
+
+ <!-- Default list of files pinned by the Pinner Service -->
+ <string-array translatable="false" name="config_defaultPinnerServiceFiles">
+ <item>"/product/priv-app/SystemUIGoogle/SystemUIGoogle.apk"</item>
+ <item>"/product/priv-app/SystemUIGoogle/oat/arm/SystemUIGoogle.odex"</item>
+ <item>"/system/lib/libsurfaceflinger.so"</item>
+ </string-array>
</resources>