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

Commit 92a69cd5 authored by Jonathan Scott's avatar Jonathan Scott
Browse files

Return False for checkPackagesInPermittedListOrSystem if the package

does not exist.

Test: Manual
Fixes: 236754852
Change-Id: I6c513e0af940808cb15973d7d0baf692e21d2099
parent 0c867c02
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -10219,6 +10219,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                    ApplicationInfo applicationInfo = mIPackageManager.getApplicationInfo(
                            enabledPackage, PackageManager.MATCH_UNINSTALLED_PACKAGES,
                            userIdToCheck);
                    if (applicationInfo == null) {
                        return false;
                    }
                    systemService = (applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0;
                } catch (RemoteException e) {
                    Slogf.i(LOG_TAG, "Can't talk to package managed", e);