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

Commit f549271b authored by Dongwon Kang's avatar Dongwon Kang Committed by android-build-merger
Browse files

Merge "MediaSession: clear identity before accessing service methods" into oc-dev

am: 78f5c26f

Change-Id: I69e4a7c1a21fae45cbc1d192ca1d3d0a5beb37b0
parents cf49af85 78f5c26f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -772,7 +772,12 @@ public class MediaSessionRecord implements IBinder.DeathRecipient {
    private final class SessionStub extends ISession.Stub {
        @Override
        public void destroy() {
            final long token = Binder.clearCallingIdentity();
            try {
                mService.destroySession(MediaSessionRecord.this);
            } finally {
                Binder.restoreCallingIdentity(token);
            }
        }

        @Override