Merge "Revise the IllegalArgumentException check" into sc-dev
This commit is contained in:
@@ -17129,10 +17129,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
callerPackageName);
|
||||
synchronized (mLock) {
|
||||
PackageSetting ps = mSettings.getPackageLPr(packageName);
|
||||
if (ps == null) {
|
||||
throw new IllegalArgumentException("Unknown target package " + packageName);
|
||||
}
|
||||
if (shouldFilterApplicationLocked(
|
||||
if (ps == null || shouldFilterApplicationLocked(
|
||||
ps, Binder.getCallingUid(), UserHandle.getCallingUserId())) {
|
||||
throw new IllegalArgumentException("Unknown target package " + packageName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user