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

Commit b58f72e3 authored by JW Wang's avatar JW Wang Committed by Android (Google) Code Review
Browse files

Merge "Don't enable rollback again in pre-reboot verification"

parents 210c931b ae0c65a7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2081,7 +2081,14 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {

        mRelinquished = true;

        return mPm.new VerificationParams(user, stageDir, localObserver, params,
        // TODO(b/169375643): Remove this workaround once b/161121612 is fixed.
        PackageInstaller.SessionParams copiedParams = params.copy();
        if (params.isStaged) {
            // This is called by the pre-reboot verification. Don't enable rollback here since
            // it has been enabled when pre-reboot verification starts.
            copiedParams.installFlags &= ~PackageManager.INSTALL_ENABLE_ROLLBACK;
        }
        return mPm.new VerificationParams(user, stageDir, localObserver, copiedParams,
                mInstallSource, mInstallerUid, mSigningDetails, sessionId);
    }