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
3 files changed