[automerger] clearCallingIdentity before calling into getPackageUidAsUser am: 857326e373
Change-Id: I2166c2f9ca0a6654e1a88b1d183062eb1564c24d
This commit is contained in:
@@ -3426,11 +3426,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