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

Commit 37de99f4 authored by Toni Heidenreich's avatar Toni Heidenreich
Browse files

Do not propagate WIU/BFSL for MediaController.sendCommand

This call is just for exchanging technical information and
shouldn't be used to grant another app permission to start a
foreground service or gain while-in-use permissions.

Manual cherry-pick of ag/33211646

Bug: 339637822
Merged-In: I548a8178a93d9bf0691aa84113147ac86c1ef0a2
Change-Id: I7cedaa5a17501b8e5d4517cf2080d3cb3f4ee8ea
parent 4c6ffbb8
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1236,9 +1236,6 @@ public class MediaSessionRecord implements IBinder.DeathRecipient, MediaSessionR
        public void sendCommand(String packageName, int pid, int uid, String command, Bundle args,
                ResultReceiver cb) {
            try {
                final String reason = TAG + ":" + command;
                mService.tempAllowlistTargetPkgIfPossible(getUid(), getPackageName(),
                        pid, uid, packageName, reason);
                mCb.onCommand(packageName, pid, uid, command, args, cb);
            } catch (RemoteException e) {
                Log.e(TAG, "Remote failure in sendCommand.", e);