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

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

Merge "AudioService: setMasterMute protected by MODIFY_AUDIO_ROUTING"

parents bcd37b9c 582ccf69
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -908,6 +908,7 @@ public class AudioManager {

    /** @hide */
    @UnsupportedAppUsage
    @RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING)
    public void setMasterMute(boolean mute, int flags) {
        final IAudioService service = getService();
        try {
+1 −0
Original line number Diff line number Diff line
@@ -2785,6 +2785,7 @@ public class AudioService extends IAudioService.Stub
    }

    public void setMasterMute(boolean mute, int flags, String callingPackage, int userId) {
        enforceModifyAudioRoutingPermission();
        setMasterMuteInternal(mute, flags, callingPackage, Binder.getCallingUid(),
                userId);
    }