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

Skip to content
Commit 0d85b05e authored by David Anderson's avatar David Anderson
Browse files

Warn the user when cancelling in-progress updates.

Previously, update_engine in recovery would fail in certain scenarios.
If the update state was UNVERIFIED on the target slot, or a merge was
in-progress, then CancelUpdate/BeginUpdate would fail. We are now
allowing these states to cancel, so that recovery can always apply a new
update via adb sideload.

However, this will also destroy any existing OTA state, whether or not
the sideload actually makes it as far as applying any bits. A user can
go from "working OS" to "not working OS" without completing a sideload.

To warn about this, add a new dialog to recovery.

Bug: 352538505
Test: apply OTA, boot to recovery during merge
Change-Id: I294ab9b29cedaacfc8af57e779fc3e5032c050b5
parent 78d309ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment