summaryrefslogtreecommitdiff
path: root/aosp/dynamic_partition_control_android.cc
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2020-10-27 13:44:25 -0400
committerKelvin Zhang <zhangkelvin@google.com>2020-11-20 18:53:20 -0500
commit52cb1d75b6992f880058c56d43428b97bb4ed107 (patch)
tree2cf4ef6ffd8ad7696ecd3af98f8af86471263606 /aosp/dynamic_partition_control_android.cc
parentdde2ef4d525af1076b9ccd1a4f736b4de961b2e6 (diff)
Handle resume of VABC updates by emitting labels
To support resuming an update with Virtual AB Compression, we emit labels in between operations. After writing all SOURCE_COPY, we emit label 0. Each time we finished writing an InstallOp, we emit a label incremented by 1. When resuming, we pass the label to CowWriter. Test: treehugger 1. update_device.py ota.zip --extra-headers="SWITCH_SLOT_ON_REBOOT=0" 2. update_device.py ota.zip 3. Verify that 2 did not re-start the entire update, only fs verification and postinstall may re-run. Change-Id: I785cd04a35457181621ed7b8c0be9a46b6004b7b
Diffstat (limited to 'aosp/dynamic_partition_control_android.cc')
0 files changed, 0 insertions, 0 deletions