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

Commit 4802dadc authored by Amith Yamasani's avatar Amith Yamasani Committed by android-build-merger
Browse files

Merge "Check bluetooth app id instead of uid" into oc-dev am: 094996a2

am: 3a3fdfa5

Change-Id: I2ab94eb4697ac47b34468f961399a413aac4ef58
parents f264a71d 3a3fdfa5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
                }