Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 221b19e9 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Lower SMS background importance

The messaging app is currently bound with the BIND_NOT_VISIBLE flag
by the system. This keeps it in the oom score 200 slot, which
competes with higher priority processes like foreground services.
Binding with BIND_ALMOST_PERCEPTIBLE will lower its background
importance to 201, keeping it warm in memory for snappier UX but
allows them to die in favor of process doing more important work.

Flag: com.android.server.am.lower_sms_oom_importance
Fixes: 372511805
Test: manual (`adb shell dumpsys activity lru`, background sms
process should have `prcp+1` oom score.)

Change-Id: Ia4fef6afa57ff822e5122e1716ea05462dd1ed48
parent 6c118a5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment