Merge "Allow data wipe for full OTAs"

This commit is contained in:
Treehugger Robot
2021-10-27 04:53:16 +00:00
committed by Gerrit Code Review

View File

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