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

Commit 63fb0b1e authored by JW Wang's avatar JW Wang Committed by Automerger Merge Worker
Browse files

Merge "Populate fields for committed staged sessions" into sc-dev am: ec5c85d0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13751605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8ef76d7e45132de538fe3cdbc19c976ac5af7133
parents 2c2a0ace ec5c85d0
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2086,15 +2086,16 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
            try {
                sealLocked();

                // Session that are staged, ready and not multi package will be installed during
                // this boot. As such, we need populate all the fields for successful installation.
                if (isMultiPackage()) {
                // Session that are staged, committed and not multi package will be installed or
                // restart verification during this boot. As such, we need populate all the fields
                // for successful installation.
                if (isMultiPackage() || !isStaged() || !isCommitted()) {
                    return;
                }
                final PackageInstallerSession root = hasParentSessionId()
                        ? allSessions.get(getParentSessionId())
                        : this;
                if (root != null && root.isStagedSessionReady()) {
                if (root != null) {
                    if (isApexSession()) {
                        validateApexInstallLocked();
                    } else {