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

Commit a4619d33 authored by android-build-prod (mdb)'s avatar android-build-prod (mdb) Committed by android-build-merger
Browse files

Merge "AudioService: fix uid check in setBluetoothScoOn" am: b0ae3e5b am: d9091b96

am: c6aff30a

Change-Id: Ie65f8df82f9cc6e5be112cd79c0ce573e4a5c838
parents 0dd0de02 c6aff30a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3187,7 +3187,7 @@ public class AudioService extends IAudioService.Stub
        }
        }


        // Only enable calls from system components
        // Only enable calls from system components
        if (Binder.getCallingUid() >= FIRST_APPLICATION_UID) {
        if (UserHandle.getCallingAppId() >= FIRST_APPLICATION_UID) {
            mForcedUseForCommExt = on ? AudioSystem.FORCE_BT_SCO : AudioSystem.FORCE_NONE;
            mForcedUseForCommExt = on ? AudioSystem.FORCE_BT_SCO : AudioSystem.FORCE_NONE;
            return;
            return;
        }
        }