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

Commit 5599f0f7 authored by Andrew Chant's avatar Andrew Chant Committed by Android (Google) Code Review
Browse files

Merge "Add an extra metadata slot to super[_empty].img."

parents cd38d360 212e5dfb
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -78,10 +78,12 @@ def BuildSuperImageFromDict(info_dict, output):
  block_devices = shlex.split(info_dict.get("super_block_devices", "").strip())
  groups = shlex.split(info_dict.get("super_partition_groups", "").strip())

  if ab_update:
  if ab_update and retrofit:
    cmd += ["--metadata-slots", "2"]
  elif ab_update:
    cmd += ["--metadata-slots", "3"]
  else:
    cmd += ["--metadata-slots", "1"]
    cmd += ["--metadata-slots", "2"]

  if ab_update and retrofit:
    cmd.append("--auto-slot-suffixing")