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

Commit 4d556254 authored by Michael Runge's avatar Michael Runge Committed by Android Git Automerger
Browse files

am 1eb7a595: am 92946baa: am 9d641c41: Merge "Fix public/private key options...

am 1eb7a595: am 92946baa: am 9d641c41: Merge "Fix public/private key options on sign_target_files_apks" into lmp-dev

* commit '1eb7a595':
  Fix public/private key options on sign_target_files_apks
parents 5494df2d 1eb7a595
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -175,10 +175,10 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info,
    out_info = copy.copy(info)

    if (info.filename == "META/misc_info.txt" and
        OPTIONS.replace_verity_public_key):
        OPTIONS.replace_verity_private_key):
      ReplaceVerityPrivateKey(input_tf_zip, output_tf_zip, misc_info, OPTIONS.replace_verity_private_key[1])
    elif (info.filename == "BOOT/RAMDISK/verity_key" and
        OPTIONS.replace_verity_private_key):
        OPTIONS.replace_verity_public_key):
      ReplaceVerityPublicKey(output_tf_zip, OPTIONS.replace_verity_public_key[1])
    elif (info.filename.startswith("BOOT/") or
        info.filename.startswith("RECOVERY/") or
@@ -216,10 +216,10 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info,
                            "SYSTEM/etc/security/otacerts.zip")):
      # don't copy these files if we're regenerating them below
      pass
    elif (OPTIONS.replace_verity_public_key and
    elif (OPTIONS.replace_verity_private_key and
          info.filename == "META/misc_info.txt"):
      pass
    elif (OPTIONS.replace_verity_private_key and
    elif (OPTIONS.replace_verity_public_key and
          info.filename == "BOOT/RAMDISK/verity_key"):
      pass
    else: