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

Commit 859f4f72 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "Restore permission check for mic muting" into lmp-dev

parents 8c94a8f2 4a4fea07
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1564,6 +1564,9 @@ public class AudioService extends IAudioService.Stub {
                callingPackage) != AppOpsManager.MODE_ALLOWED) {
            return;
        }
        if (!checkAudioSettingsPermission("setMicrophoneMute()")) {
            return;
        }

        AudioSystem.muteMicrophone(on);
        // Post a persist microphone msg.