Merge "AudioService: fix uid check in setBluetoothScoOn"

This commit is contained in:
android-build-prod (mdb)
2018-05-04 23:19:19 +00:00
committed by Gerrit Code Review

View File

@@ -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;
}