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

Commit f1b411c5 authored by Jaewan Kim's avatar Jaewan Kim
Browse files

MediaSession2: Don't reject connection requests from trusted apps

This also fixes following test failure
MediaSessionmanager_MediaSession2#testGetSessionTokens_sessionRejected

Test: Confirmed that the test now success
Change-Id: Iffd4f10c78cf341e5c8ef63fe21a30f6a6562343
parent cc120dd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ public class MediaSession2Stub extends IMediaSession2.Stub {
            // media keys to.
            boolean accept = allowedCommands != null || request.isTrusted();
            ControllerInfoImpl impl = ControllerInfoImpl.from(request);
            if (accept && allowedCommands != null) {
            if (accept) {
                if (DEBUG) {
                    Log.d(TAG, "Accepting connection, request=" + request
                            + " allowedCommands=" + allowedCommands);