summaryrefslogtreecommitdiff
path: root/common/boot_control_interface.h
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2018-10-19 14:52:45 -0700
committerYifan Hong <elsk@google.com>2018-10-26 18:23:52 +0000
commit9acd9cb3eda3e274ba137b3fb9e4b598965d5647 (patch)
treec13eafff94dbf8087144ccf1c5737fce3156eb99 /common/boot_control_interface.h
parent398cb549ae896e92bafa3f113ebf54150ee5ecc2 (diff)
Fix false negative NeedResize
BootControlAndroid did not call ResizePartitions when the sizes were all correct to avoid storing metadata more than once (after resuming from an update), and potentially writing to incorrect extents. But, when the update starts, the target metadata slot may contain metadata that happen to exactly matches the size requirements, but have extents that maps to currently running devices. To do this correctly, DeltaPerformer uses PrefsInterface to avoid calling into InitPartitionMetadata again when it is initialized. Hence, BootControlAndroid::InitPartitionMetadata ALWAYS write metadata to the target slot. Also removed tests to reflect this. Test: manual OTA Test: update_engine_unittests Bug: 117182932 Change-Id: I488ab369e42d582c94974791fdb988d12e695bc2
Diffstat (limited to 'common/boot_control_interface.h')
0 files changed, 0 insertions, 0 deletions