Merge "Allow data wipe for full OTAs" am: 2992dccd43 am: 84cef88745 am: ad5498f449 am: 274daad77a

Original change: https://android-review.googlesource.com/c/platform/build/+/1869634

Change-Id: I36a6e31a9e36fc2ebae4b73cac0b5e531903297b
This commit is contained in:
Treehugger Robot
2021-10-27 06:36:15 +00:00
committed by Automerger Merge Worker

View File

@@ -1401,8 +1401,8 @@ def main(argv):
# We should only allow downgrading incrementals (as opposed to full).
# Otherwise the device may go back from arbitrary build with this full
# OTA package.
if OPTIONS.incremental_source is None:
raise ValueError("Cannot generate downgradable full OTAs")
if OPTIONS.incremental_source is None and OPTIONS.downgrade:
raise ValueError("Cannot generate downgradable full OTAs")
# TODO(xunchang) for retrofit and partial updates, maybe we should rebuild the
# target-file and reload the info_dict. So the info will be consistent with