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

Commit 59b61437 authored by Hui Yu's avatar Hui Yu Committed by Automerger Merge Worker
Browse files

Merge "Don't freeze apps in the power exemption allow list." into tm-dev am: 2ccba9fe

parents a379fc68 2ccba9fe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1482,7 +1482,9 @@ public class OomAdjuster {
        if (!cycleReEval) {
            // Don't reset this flag when doing cycles re-evaluation.
            state.setNoKillOnBgRestrictedAndIdle(false);
            app.mOptRecord.setShouldNotFreeze(false);
            // If this UID is currently allowlisted, it should not be frozen.
            final UidRecord uidRec = app.getUidRecord();
            app.mOptRecord.setShouldNotFreeze(uidRec != null && uidRec.isCurAllowListed());
        }

        final int appUid = app.info.uid;