Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7083004 authored by Todd Kennedy's avatar Todd Kennedy
Browse files

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
parent c7ea7eff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
        }