diff options
| author | 2021-09-08 01:16:06 +0000 | |
|---|---|---|
| committer | 2021-09-08 01:16:06 +0000 | |
| commit | 53d4a43face6ef6f15bd2704ffcc2e614cd102c6 (patch) | |
| tree | f544889f7e300d3f2b74b4a7e6861d65cf4d44d2 | |
| parent | f04c496b3bb91c00e1b3e60eb13a34f28a0cca40 (diff) | |
| parent | 1ba7b208c69eef75cf14a9f557967b934d3a093f (diff) | |
TIF: fix issue of using caller-aware methods after clearCallingIdentity() am: 05363ef193 am: e55bc91578 am: 05d7f90c41 am: 1ba7b208c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15752564
Change-Id: I034d729ef1b4199f5295f7de8bc1263faa2ed002
| -rwxr-xr-x | services/core/java/com/android/server/tv/TvInputManagerService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/tv/TvInputManagerService.java b/services/core/java/com/android/server/tv/TvInputManagerService.java index 323ac7b8806e..4668741aed0b 100755 --- a/services/core/java/com/android/server/tv/TvInputManagerService.java +++ b/services/core/java/com/android/server/tv/TvInputManagerService.java @@ -2005,10 +2005,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() |