summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-01-09 17:50:46 -0800
committerYifan Hong <elsk@google.com>2020-01-16 05:05:48 +0000
commitb9d6357b01e91033e76d44d7a4237ebc39a2f1f6 (patch)
tree73b94bd247632ce24780ff809c8cc818819fb79c /scripts/update_payload/format_utils.py
parentf033ecb6329c9bab43c91b1a2af812d3d2dd7daa (diff)
DeltaPerformer: add static PreparePartitionsForUpdate
Expose a static PreparePartitionsForUpdate for implementation of AllocateSpaceForPayload. - If this function is called multiple times with the same 'update_check_response_hash', calls after the first call has no effect. - If this function is called again with a different 'update_check_response_hash', space is re-allocated. - DeltaPerformer::ResetUpdateProgress deletes the stored hash and cause the next PreparePartitionsForUpdate to always re-allocate space. - DeltaPerformer::ParseManifestPartitions now set error code to kNotEnoughSpace when appropriate. Test: apply an OTA manually Bug: 138808058 Change-Id: I6fb60016088a3133af3fc961196f63e7d079ae93
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions