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

Commit a4d5c189 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix enforceModifyAudioRoutingPermission for system_server"

parents 99f63536 c1062acc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2193,7 +2193,7 @@ public class AudioService extends IAudioService.Stub
    }

    private void enforceModifyAudioRoutingPermission() {
        if (mContext.checkCallingPermission(
        if (mContext.checkCallingOrSelfPermission(
                android.Manifest.permission.MODIFY_AUDIO_ROUTING)
                != PackageManager.PERMISSION_GRANTED) {
            throw new SecurityException("Missing MODIFY_AUDIO_ROUTING permission");