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

Commit dc297a6d authored by Anton Kulakov's avatar Anton Kulakov Committed by Android (Google) Code Review
Browse files

Merge "Add PROCESS_CAPABILITY_FOREGROUND_AUDIO_CONTROL to sandbox process when...

Merge "Add PROCESS_CAPABILITY_FOREGROUND_AUDIO_CONTROL to sandbox process when bound client has this capability." into main
parents 80f02617 5ef853cb
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2610,6 +2610,15 @@ public class OomAdjuster {
                }
            }

            // Sandbox should be able to control audio only when bound client
            // has this capability.
            if ((cstate.getCurCapability()
                    & PROCESS_CAPABILITY_FOREGROUND_AUDIO_CONTROL) != 0) {
                if (app.isSdkSandbox) {
                    capability |= PROCESS_CAPABILITY_FOREGROUND_AUDIO_CONTROL;
                }
            }

            if (couldRecurse && shouldSkipDueToCycle(app, cstate, procState, adj, cycleReEval)) {
                return false;
            }