Merge "Revise the IllegalArgumentException check" into sc-dev am: 4c4c6d1b2c am: d8560e7a1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14972758 Change-Id: Ie89b7621fe533c7385faaf8833d533008b6e1032
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