Merge "AudioService: fix uid check in setBluetoothScoOn"
This commit is contained in:
committed by
Gerrit Code Review
commit
b0ae3e5bfc
@@ -2928,7 +2928,7 @@ public class AudioService extends IAudioService.Stub
|
||||
}
|
||||
|
||||
// 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;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user