diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-10-27 04:53:16 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-10-27 04:53:16 +0000 |
commit | 2992dccd43410667dd3701438ddc3e9ed6add234 (patch) | |
tree | 1a2494ca691582578e0a3c1989293bf4e26c0ffb | |
parent | 387b39fc919dc56f04dc53720cd3efa0bc92b870 (diff) | |
parent | 81641afae444f774163d657ec9c3553a4845c099 (diff) | |
download | build-android-s-v2-beta-2.tar.gz |
Merge "Allow data wipe for full OTAs"android-s-v2-preview-2android-s-v2-preview-1android-s-v2-beta-2android-s-v2-preview-1
-rwxr-xr-x | tools/releasetools/ota_from_target_files.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py index 4eb2f0c57a..17f373ebe1 100755 --- a/tools/releasetools/ota_from_target_files.py +++ b/tools/releasetools/ota_from_target_files.py @@ -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 |