Merge \\"Support wiping userdata for A/B OTA packages.\\" am: b727d5bb32
am: 4f2b227fae
Change-Id: Icf157b44ecda14a2c289d4826e5a55af67e805d5
This commit is contained in:
@@ -1287,6 +1287,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",
|
||||
|
Reference in New Issue
Block a user