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

Commit 42b19dec authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Return False for checkPackagesInPermittedListOrSystem if the package does not exist."

parents b218fd8f 92a69cd5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -10220,6 +10220,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);