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: I38705c7727a3b14086a25ecc201642f034b93abd
This commit is contained in:
@@ -2005,10 +2005,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