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

Commit ec57d7b5 authored by Hyundo Moon's avatar Hyundo Moon Committed by Android (Google) Code Review
Browse files

Merge "MediaSession2: Protect MediaSessionManager APIs with permission" into pi-dev

parents 694a72d3 7a20d306
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ import android.os.Process;
import android.os.ResultReceiver;
import android.support.annotation.GuardedBy;
import android.text.TextUtils;
import android.util.ArrayMap;
import android.util.Log;

import java.lang.ref.WeakReference;
@@ -1234,7 +1233,7 @@ public class MediaSession2Impl implements MediaSession2Provider {
            // Ask server whether the controller is trusted.
            // App cannot know this because apps cannot query enabled notification listener for
            // another package, but system server can do.
            mIsTrusted = manager.isTrusted(uid, packageName);
            mIsTrusted = manager.isTrusted(packageName, pid, uid);
        }

        @Override