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

Commit 307d1706 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Fix leaks of personal apps in setApplicationHidden" into rvc-dev am:...

Merge "Fix leaks of personal apps in setApplicationHidden" into rvc-dev am: deae2467 am: 5f0e550a am: 7dadf595

Change-Id: Ic107653f894468b5d62c6e2a4831dd9d88ce0d39
parents 0e70992e 7dadf595
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -10912,9 +10912,14 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
    private void enforcePackageIsSystemPackage(String packageName, int userId)
            throws RemoteException {
        if (!isSystemApp(mIPackageManager, packageName, userId)) {
            throw new IllegalArgumentException(
                    "The provided package is not a system package");
        boolean isSystem;
        try {
            isSystem = isSystemApp(mIPackageManager, packageName, userId);
        } catch (IllegalArgumentException e) {
            isSystem = false;
        }
        if (!isSystem) {
            throw new IllegalArgumentException("The provided package is not a system package");
        }
    }