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

Commit 6b5e22d5 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio service: fix BT SCO intent permission again

Commit 2a57ca93 did not address the calling permission
for setMode() method which can also indirectly call
BluetoothHeadset APIs.

Bug 8242429

Change-Id: I8483c0492836192f47984c48629291cb261b001b
parent 80ab68ce
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1533,7 +1533,9 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
            // when entering RINGTONE, IN_CALL or IN_COMMUNICATION mode, clear all
            // SCO connections not started by the application changing the mode
            if (newModeOwnerPid != 0) {
                final long ident = Binder.clearCallingIdentity();
                disconnectBluetoothSco(newModeOwnerPid);
                Binder.restoreCallingIdentity(ident);
            }
        }