commit | f999e2bdcb6ffee4da8b298e7f9d8d9657b909d8 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Wed Apr 28 22:27:27 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Apr 28 22:27:27 2021 +0000 |
tree | 8ec5898e175b6cee2ac40491f6de74d9107392c6 | |
parent | c52e3d8d5fcc49b87def1af2f48ef7012259d406 [diff] | |
parent | 741c2d4da7dfb6e97bf7819e48b19e3214b5c09b [diff] |
Check for VAB flag before calling UpdateUsesCompression am: 741c2d4da7 Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1674628 Change-Id: Ic11c337a51f952e0b8f49c7012ad8584967aeb2e
diff --git a/aosp/dynamic_partition_control_android.cc b/aosp/dynamic_partition_control_android.cc index ab349a8..93a10bb 100644 --- a/aosp/dynamic_partition_control_android.cc +++ b/aosp/dynamic_partition_control_android.cc
@@ -1470,7 +1470,8 @@ } bool DynamicPartitionControlAndroid::UpdateUsesSnapshotCompression() { - return snapshot_->UpdateUsesCompression(); + return GetVirtualAbFeatureFlag().IsEnabled() && + snapshot_->UpdateUsesCompression(); } } // namespace chromeos_update_engine