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

Commit 941ab298 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioService: fix BT SCO audio starting from system server

When a request to use Bluetooth SCO for calls comes from the system
UID, it means this request is from Telecom package and should not
trigger calls to startScoUsingVirtualVoiceCall().

Flag: EXEMPT bug fix
Test: repor steps in bug
Bug: 366363233
Change-Id: I0c7a71fe2b24b3cf995f02f53d15836e3f2974eb
parent 4939cd15
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -389,7 +389,8 @@ public class AudioDeviceBroker {
     */
    private boolean shouldStartScoForUid(int uid) {
        return !(UserHandle.isSameApp(uid, Process.BLUETOOTH_UID)
                || UserHandle.isSameApp(uid, Process.PHONE_UID));
                || UserHandle.isSameApp(uid, Process.PHONE_UID)
                || UserHandle.isSameApp(uid, Process.SYSTEM_UID));
    }

    @GuardedBy("mDeviceStateLock")