Merge "Check bluetooth app id instead of uid" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
094996a2b3
@@ -965,7 +965,7 @@ public class MediaSessionService extends SystemService implements Monitor {
|
||||
final int uid = Binder.getCallingUid();
|
||||
final long token = Binder.clearCallingIdentity();
|
||||
try {
|
||||
if (uid != Process.BLUETOOTH_UID) {
|
||||
if (!UserHandle.isSameApp(uid, Process.BLUETOOTH_UID)) {
|
||||
throw new SecurityException("Only Bluetooth service processes can set"
|
||||
+ " Callback");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user