diff options
author | Tianjie <xunchang@google.com> | 2020-06-30 12:26:25 -0700 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2020-07-09 20:15:08 +0000 |
commit | 24f960986b1337f14eb8e86382cb62aed5d1153c (patch) | |
tree | ea47bdb983a0b692fc02fe2b5e84029d7d6002f7 /payload_consumer/partition_update_generator_android.h | |
parent | d2da7b1990e0fee1c99bf64aa562cef572aaa061 (diff) |
Verify the extents for untouched dynamic partitions during partial update
For partial updates, the metadata for untouched dynamic partitions
are just copied over to the target slot. So, verifying the extents
of these partitions in the target metadata should be sufficient for
correctness. This saves the work to read & hash the bytes on these
partitions for each resumed update.
Bug: 151088567
Test: unit tests pass, apply a partial update
Change-Id: I9d40ed2643e145a1546ea17b146fcdcfb91f213f
Diffstat (limited to 'payload_consumer/partition_update_generator_android.h')
-rw-r--r-- | payload_consumer/partition_update_generator_android.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/payload_consumer/partition_update_generator_android.h b/payload_consumer/partition_update_generator_android.h index 8f33077f..97b7d838 100644 --- a/payload_consumer/partition_update_generator_android.h +++ b/payload_consumer/partition_update_generator_android.h @@ -56,8 +56,7 @@ class PartitionUpdateGeneratorAndroid const std::string& partition_name, const std::string& source_device, const std::string& target_device, - int64_t partition_size, - bool is_dynamic); + int64_t partition_size); std::optional<PartitionUpdate> CreatePartitionUpdate( const std::string& partition_name, |