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

Commit 0e179cb4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check CAPTURE_MEDIA_OUTPUT permission when it is required." into main

parents 14043354 500b67f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2024,7 +2024,7 @@ Status AudioPolicyService::registerPolicyMixes(const std::vector<media::AudioMix

    if (needCaptureMediaOutput && !(audioserver_permissions() ?
                CHECK_PERM(CAPTURE_MEDIA_OUTPUT, attributionSource.uid)
                : modifyAudioRoutingAllowed())) {
                : captureMediaOutputAllowed(attributionSource))) {
        return binderStatusFromStatusT(PERMISSION_DENIED);
    }