Partially revert "Sanity check that no downgrade package on launch VAB device."
This partially reverts commit 6e0d0ef979d2d0dd99c586f83fd7edbf356c63c3.
Reason for revert: This breaks factory OTA on launch VAB device where
snapshot_enabled is set to false.
Bug: 138733621
Change-Id: Iee0aa33208238652a55b6d9a6a50f12ba6efde17
Test: manual
diff --git a/dynamic_partition_control_android.cc b/dynamic_partition_control_android.cc
index bc60c57..c641a6b 100644
--- a/dynamic_partition_control_android.cc
+++ b/dynamic_partition_control_android.cc
@@ -375,13 +375,6 @@
return PrepareSnapshotPartitionsForUpdate(
source_slot, target_slot, manifest);
}
-
- if (GetVirtualAbFeatureFlag().IsLaunch() && !target_supports_snapshot_) {
- LOG(ERROR) << "Cannot downgrade to a build that does not support "
- << "snapshots because this device launches with Virtual A/B.";
- return false;
- }
-
if (!snapshot_->CancelUpdate()) {
LOG(ERROR) << "Cannot cancel previous update.";
return false;