don't block uninstall of unknown packages
If a package can't be found because it's not installed or it's been filtered due to lack of visibility, don't claim the uninstall should be blocked. Change-Id: I932b77cea5749e5964ca626558bef51cdfdfd17b Fixes: 62450984 Test: Manual
This commit is contained in:
@@ -19364,7 +19364,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
synchronized (mPackages) {
|
||||
final PackageSetting ps = mSettings.mPackages.get(packageName);
|
||||
if (ps == null || filterAppAccessLPr(ps, Binder.getCallingUid(), userId)) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
return mSettings.getBlockUninstallLPr(userId, packageName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user