Merge "don't block uninstall of unknown packages" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-06-15 22:05:43 +00:00
committed by Android (Google) Code Review

View File

@@ -19309,7 +19309,7 @@ public class PackageManagerService extends IPackageManager.Stub
synchronized (mPackages) { synchronized (mPackages) {
final PackageSetting ps = mSettings.mPackages.get(packageName); final PackageSetting ps = mSettings.mPackages.get(packageName);
if (ps == null || filterAppAccessLPr(ps, Binder.getCallingUid(), userId)) { if (ps == null || filterAppAccessLPr(ps, Binder.getCallingUid(), userId)) {
return true; return false;
} }
return mSettings.getBlockUninstallLPr(userId, packageName); return mSettings.getBlockUninstallLPr(userId, packageName);
} }