Use UpdateUsesSnapshotCompression to determine if VABC is used
Test: th
Change-Id: Ia04f92d46da34fcd28d7e97c24b6e02fd676e1c7
diff --git a/payload_consumer/postinstall_runner_action.cc b/payload_consumer/postinstall_runner_action.cc
index 58d045b..e3e305b 100644
--- a/payload_consumer/postinstall_runner_action.cc
+++ b/payload_consumer/postinstall_runner_action.cc
@@ -76,7 +76,7 @@
CHECK(dynamic_control);
// Mount snapshot partitions for Virtual AB Compression Compression.
- if (dynamic_control->GetVirtualAbCompressionFeatureFlag().IsEnabled()) {
+ if (dynamic_control->UpdateUsesSnapshotCompression()) {
// Before calling MapAllPartitions to map snapshot devices, all CowWriters
// must be closed, and MapAllPartitions() should be called.
dynamic_control->UnmapAllPartitions();