summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-11-01 22:28:01 +0000
committerTreehugger Robot <treehugger-gerrit@google.com>2019-11-05 18:41:23 +0000
commit2f1ca0367fc818506f86ed95e61b9fe3ec619c6c (patch)
tree9a8e95fb8cf8ace7ce9266474cf28b3082aa3595
parent3f9be772bd1abcfe922fbebf78a846d38191bce9 (diff)
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
-rw-r--r--dynamic_partition_control_android.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/dynamic_partition_control_android.cc b/dynamic_partition_control_android.cc
index bc60c578..c641a6b3 100644
--- a/dynamic_partition_control_android.cc
+++ b/dynamic_partition_control_android.cc
@@ -375,13 +375,6 @@ bool DynamicPartitionControlAndroid::PreparePartitionsForUpdate(
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;