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

Commit 78f5c26f authored by Dongwon Kang's avatar Dongwon Kang Committed by Android (Google) Code Review
Browse files

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

parents 462eeda6 0c1d448d
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