summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2018-10-29 11:00:28 -0700
committerYifan Hong <elsk@google.com>2018-10-30 13:24:48 -0700
commitae04e191ece6333896c98462c224c05ec0d5741a (patch)
tree36f768340138359bf993c4f1b095d9ebb5c6eb55 /scripts/update_payload/format_utils_unittest.py
parentaf65ef11be6ba08ba3a8d2c983e18ad24c109a93 (diff)
BootControlAndroid::GetPartitionDevice checks super metadata
... before checking device mapper. When sideloading, current (source) slot partitions aren't mapped on device mapper in recovery. Hence, When GetPartitionDevice is called: - If device is already mapped, use it - If device isn't mapped but is in metadata, this is a dynamic partition and will be mapped (with force_writable = false, since writable partitions should have been mapped with force_writable in InitPartitionMetadata) - If device isn't mapped and it is not in metadata, this is a static partition. Test: manual sideload incremental update with a device with dynamic partitions Test: update_engine_unittests Fixes: 117101719 Change-Id: I85b490e11cee689846d2bf899b6015f1b320bed9
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions