TIF: fix issue of using caller-aware methods after clearCallingIdentity() am: 05363ef193 am: e55bc91578
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15752564 Change-Id: Ifde0bb94cabf013af3fd1d0a63e3b514b12558fe
This commit is contained in:
@@ -1981,10 +1981,9 @@ public final class TvInputManagerService extends SystemService {
|
|||||||
public void requestChannelBrowsable(Uri channelUri, int userId)
|
public void requestChannelBrowsable(Uri channelUri, int userId)
|
||||||
throws RemoteException {
|
throws RemoteException {
|
||||||
final String callingPackageName = getCallingPackageName();
|
final String callingPackageName = getCallingPackageName();
|
||||||
|
final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
|
||||||
|
Binder.getCallingUid(), userId, "requestChannelBrowsable");
|
||||||
final long identity = Binder.clearCallingIdentity();
|
final long identity = Binder.clearCallingIdentity();
|
||||||
final int callingUid = Binder.getCallingUid();
|
|
||||||
final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid,
|
|
||||||
userId, "requestChannelBrowsable");
|
|
||||||
try {
|
try {
|
||||||
Intent intent = new Intent(TvContract.ACTION_CHANNEL_BROWSABLE_REQUESTED);
|
Intent intent = new Intent(TvContract.ACTION_CHANNEL_BROWSABLE_REQUESTED);
|
||||||
List<ResolveInfo> list = getContext().getPackageManager()
|
List<ResolveInfo> list = getContext().getPackageManager()
|
||||||
|
|||||||
Reference in New Issue
Block a user