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

Commit 05d7f90c authored by shubang's avatar shubang Committed by Automerger Merge Worker
Browse files

TIF: fix issue of using caller-aware methods after clearCallingIdentity() am:...

TIF: fix issue of using caller-aware methods after clearCallingIdentity() am: 05363ef1 am: e55bc915

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15752564

Change-Id: Ifde0bb94cabf013af3fd1d0a63e3b514b12558fe
parents ec3f123b e55bc915
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1981,10 +1981,9 @@ public final class TvInputManagerService extends SystemService {
        public void requestChannelBrowsable(Uri channelUri, int userId)
                throws RemoteException {
            final String callingPackageName = getCallingPackageName();
            final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
                    Binder.getCallingUid(), userId, "requestChannelBrowsable");
            final long identity = Binder.clearCallingIdentity();
            final int callingUid = Binder.getCallingUid();
            final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid,
                userId, "requestChannelBrowsable");
            try {
                Intent intent = new Intent(TvContract.ACTION_CHANNEL_BROWSABLE_REQUESTED);
                List<ResolveInfo> list = getContext().getPackageManager()