diff options
author | Alessio Balsini <balsini@google.com> | 2019-11-26 11:46:06 +0000 |
---|---|---|
committer | Alessio Balsini <balsini@google.com> | 2019-11-27 10:01:06 +0000 |
commit | 14980e2fbb885f966c5e531b83fee7a12d92b27c (patch) | |
tree | 52409949c50352b220a1d2179756f92ba75843a9 /dynamic_partition_control_android.cc | |
parent | d6aa91fbaaa175f38d7e14e6e84db9d9fe25d687 (diff) |
SkipInstallOperation placeholders
For some devices, some InstallOperations can be skipped during the
update process. An example is the SOURCE_COPY operation with same
source and destination locations for Virtual A/B devices.
This patch extents the DynamicPartitionControl interface with the
ShouldSkipOperation() method to query if given operation should be
skipped or not.
Bug: 141207436
Test: build
Change-Id: I94dbf1d33d531944e04cb2ffcba274106e866d5d
Signed-off-by: Alessio Balsini <balsini@google.com>
Diffstat (limited to 'dynamic_partition_control_android.cc')
-rw-r--r-- | dynamic_partition_control_android.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dynamic_partition_control_android.cc b/dynamic_partition_control_android.cc index 464cdf13..c24aee90 100644 --- a/dynamic_partition_control_android.cc +++ b/dynamic_partition_control_android.cc @@ -104,6 +104,11 @@ FeatureFlag DynamicPartitionControlAndroid::GetVirtualAbFeatureFlag() { return virtual_ab_; } +bool DynamicPartitionControlAndroid::ShouldSkipOperation( + const InstallOperation& operation) { + return false; +} + bool DynamicPartitionControlAndroid::MapPartitionInternal( const std::string& super_device, const std::string& target_partition_name, |