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

Commit c3d8f009 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

am: f549271b

Change-Id: I92eee74a026e7688ba306573c7a5df68271a4509
parents 1a228355 f549271b
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