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

Commit f474c5c3 authored by Sumedh Sen's avatar Sumedh Sen
Browse files

Do not proceed if confirmation snippet is not processed.

Check the stage code after trying to generate confirmation snippet. We
should not proceed if stage is STAGE_ABORTED

Bug: 339555941
Test: atest CtsPackageSchemeTestsWithVisibility
Change-Id: I7e8aef7a118b1149b090b36e8e0aa60a80c09523
parent 20c4f7fb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -446,6 +446,9 @@ class InstallRepository(private val context: Context) {
        // Returns InstallUserActionRequired stage if install details could be successfully
        // computed, else it returns InstallAborted.
        val confirmationSnippet: InstallStage = generateConfirmationSnippet()
        if (confirmationSnippet.stageCode == InstallStage.STAGE_ABORTED) {
            return confirmationSnippet
        }

        val existingUpdateOwner: CharSequence? = getExistingUpdateOwner(newPackageInfo!!)
        return if (sessionId == SessionInfo.INVALID_ID &&