DO NOT MERGE Fix PermissionManagerService throwing exception for unknown package. am: 03bb8eeeaa
am: 1b91bf22a2
Change-Id: Id599f489f0e94e78840cb82f951821db8f9a7e72
This commit is contained in:
@@ -2098,7 +2098,8 @@ public class PermissionManagerService {
|
||||
|
||||
final PackageParser.Package pkg = mPackageManagerInt.getPackage(packageName);
|
||||
if (pkg == null || pkg.mExtras == null) {
|
||||
throw new IllegalArgumentException("Unknown package: " + packageName);
|
||||
Log.e(TAG, "Unknown package: " + packageName);
|
||||
return;
|
||||
}
|
||||
final BasePermission bp;
|
||||
synchronized(mLock) {
|
||||
@@ -2239,7 +2240,8 @@ public class PermissionManagerService {
|
||||
|
||||
final PackageParser.Package pkg = mPackageManagerInt.getPackage(packageName);
|
||||
if (pkg == null || pkg.mExtras == null) {
|
||||
throw new IllegalArgumentException("Unknown package: " + packageName);
|
||||
Log.e(TAG, "Unknown package: " + packageName);
|
||||
return;
|
||||
}
|
||||
if (mPackageManagerInt.filterAppAccess(pkg, Binder.getCallingUid(), userId)) {
|
||||
throw new IllegalArgumentException("Unknown package: " + packageName);
|
||||
|
||||
Reference in New Issue
Block a user