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

Commit 528aed69 authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Check and reset quarantined flag, if feature flag is disabled.

Bug: 269127435
Test: atest PackageManagerTest
Change-Id: I4cee5d18b1326923f01826de9c3c543ad0f5e0cb
parent f131d8be
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.util.Slog;

import com.android.modules.utils.TypedXmlPullParser;
import com.android.modules.utils.TypedXmlSerializer;
import com.android.server.pm.Flags;

import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@@ -141,7 +142,8 @@ public final class SuspendParams {
        PersistableBundle readAppExtras = null;
        PersistableBundle readLauncherExtras = null;

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

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