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:
Todd Kennedy
2017-06-15 06:38:09 -07:00
parent c7ea7effde
commit a708300441

View File

@@ -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);
}