summaryrefslogtreecommitdiff
path: root/common/boot_control_interface.h
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-10-24 16:56:12 -0700
committerYifan Hong <elsk@google.com>2020-01-28 18:55:17 -0800
commitbae2784f42f598d57b0155cc9336a73782c8def0 (patch)
tree00b468b05b3809bf8e3f41521a58afd55d726126 /common/boot_control_interface.h
parente5a8f23df27bbcf5c6bd3b764819d765a632b18e (diff)
Support sideload full update on VAB
On devices with Virtual A/B, certain regions are snapshotted during the udpate. Snapshots may fail to be created in recovery because fiemap of userdata cannot be retrieved (it may succeed if empty space in super is enough to hold CoW, although this is likely not the case for launch VAB). In this case (on VAB devices when super is not big enough, esp. for launch VAB devices): - sideloading incremental OTAs are not allowed - sideloading full OTAs is similar to flashing. Source partitions are deleted from super. Note that to reduce the difference between launch and retrofit VAB devices, most code only checks GetVirtualAbFeatureFlag().IsEnabled(). IsLaunch() is only used when doing sanity checks and providing more detailed logging information. Test: manually make PrepareSnapshotPartitionsForUpdate fail, then sideload Test: update_engine_unittests Bug: 140749209 Change-Id: I64927c85bfb10b34d8bd19bd88c18663f4a2a917
Diffstat (limited to 'common/boot_control_interface.h')
0 files changed, 0 insertions, 0 deletions