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

Commit 58fc7f6b authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix bootloop when apps are quarantined

Don't check the feature flag when loading xml early in the
boot phase before DeviceConfig is available.

Fixes: 305405837
Test: Flash and reboot
Change-Id: I34648e7d4544e757720e4928f399d4c78bbd5b28
parent 4d2514cc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.server.pm.pkg;

import android.annotation.Nullable;
import android.content.pm.Flags;
import android.content.pm.SuspendDialogInfo;
import android.os.BaseBundle;
import android.os.PersistableBundle;
@@ -142,8 +141,7 @@ public final class SuspendParams {
        PersistableBundle readAppExtras = null;
        PersistableBundle readLauncherExtras = null;

        final boolean quarantined = in.getAttributeBoolean(null, ATTR_QUARANTINED, false)
                && Flags.quarantinedEnabled();
        final boolean quarantined = in.getAttributeBoolean(null, ATTR_QUARANTINED, false);

        final int currentDepth = in.getDepth();
        int type;