Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81641afa authored by Kelvin Zhang's avatar Kelvin Zhang
Browse files

Allow data wipe for full OTAs

Test: th
Change-Id: I7a751b461a5442d22ebca07c98624f35c02dca15
parent 54686043
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1401,7 +1401,7 @@ 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:
  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