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

Commit 4f2b227f authored by Tao Bao's avatar Tao Bao Committed by android-build-merger
Browse files

Merge \"Support wiping userdata for A/B OTA packages.\"

am: b727d5bb

Change-Id: I9d6e67c5e71b025f7cb9119b45f05c51f2cfd340
parents 5da565a8 b727d5bb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1279,6 +1279,11 @@ def WriteABOTAPackageWithBrilloScript(target_file, output_file,
  p1.communicate()
  assert p1.returncode == 0, "brillo_update_payload properties failed"

  if OPTIONS.wipe_user_data:
    with open(properties_file, "a") as f:
      f.write("POWERWASH=1\n")
    metadata["ota-wipe"] = "yes"

  # Add the signed payload file and properties into the zip.
  common.ZipWrite(output_zip, properties_file, arcname="payload_properties.txt")
  common.ZipWrite(output_zip, signed_payload_file, arcname="payload.bin",