[automerger] clearCallingIdentity before calling into getPackageUidAsUser am: 857326e373 am: b1f2848510 am: 884d2c7360 am: 6a42ea18b3 am: 42ded39df8 am: fb67a0f5f3 am: 2cb239cf3c
Change-Id: I8f405684aae1cdb6aac377861d3387622a20f661
This commit is contained in:
@@ -3863,11 +3863,14 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
}
|
||||
|
||||
private boolean isValidPackageForUid(String packageName, int uid) {
|
||||
final long token = Binder.clearCallingIdentity();
|
||||
try {
|
||||
return uid == mPackageManager.getPackageUid(
|
||||
packageName, UserHandle.getUserId(uid));
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
return false;
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(token);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user