summaryrefslogtreecommitdiff
path: root/aosp/dynamic_partition_control_android.h
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2021-03-15 16:00:50 -0700
committerTianjie Xu <xunchang@google.com>2021-03-27 07:00:33 +0000
commit9f4dc7f49d76d30aaa14bfc103e8fc619268a1bc (patch)
treedc04096a2c0c00d4b80c388033b4808c60ad4bd5 /aosp/dynamic_partition_control_android.h
parent21a4991833d778725eef1fdbf7866c3aa0f1dbad (diff)
Check the super partiton size in VAB case
When the snapshot is used, we should check that the maximum size of all dynamic partition groups doesn't exceed the super partition size. Bug: 182431975 Test: primary payload fails as expected Pixel21 Change-Id: I5df8976e6b7e011284b29fd554dda80e31305698
Diffstat (limited to 'aosp/dynamic_partition_control_android.h')
-rw-r--r--aosp/dynamic_partition_control_android.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/aosp/dynamic_partition_control_android.h b/aosp/dynamic_partition_control_android.h
index c506ac97..b7aa7eaa 100644
--- a/aosp/dynamic_partition_control_android.h
+++ b/aosp/dynamic_partition_control_android.h
@@ -258,6 +258,13 @@ class DynamicPartitionControlAndroid : public DynamicPartitionControlInterface {
const DeltaArchiveManifest& manifest,
uint64_t* required_size);
+ // Returns true if the allocatable space in super partition is larger than
+ // the size of dynamic partition groups in the manifest.
+ bool CheckSuperPartitionAllocatableSpace(
+ android::fs_mgr::MetadataBuilder* builder,
+ const DeltaArchiveManifest& manifest,
+ bool use_snapshot);
+
enum class DynamicPartitionDeviceStatus {
SUCCESS,
ERROR,