Lines Matching refs:common
167 import common
177 OPTIONS = common.OPTIONS
221 for partition in common.AVB_PARTITIONS:
415 if ((payload_key in common.SPECIAL_CERT_STRINGS and
416 container_key not in common.SPECIAL_CERT_STRINGS) or
417 (payload_key not in common.SPECIAL_CERT_STRINGS and
418 container_key in common.SPECIAL_CERT_STRINGS)):
468 common.SignFile(unsigned.name, signed.name, keyname, pw,
541 common.ZipWriteStr(output_tf_zip, out_info, data)
550 if key not in common.SPECIAL_CERT_STRINGS:
554 common.ZipWriteStr(output_tf_zip, out_info, signed_data)
560 common.ZipWriteStr(output_tf_zip, out_info, data)
569 if (payload_key not in common.SPECIAL_CERT_STRINGS and
570 container_key not in common.SPECIAL_CERT_STRINGS):
586 common.ZipWrite(output_tf_zip, signed_apex, filename)
592 common.ZipWriteStr(output_tf_zip, out_info, data)
601 common.ZipWriteStr(output_tf_zip, out_info, new_data)
608 common.ZipWriteStr(output_tf_zip, out_info, new_data)
646 common.ZipWriteStr(output_tf_zip, out_info, data)
672 public_key = common.ExtractAvbPublicKey(
675 common.ZipWrite(output_tf_zip, public_key, filename)
681 raise common.ExternalError("debuggable boot.img cannot be signed")
688 raise common.ExternalError("debug sepolicy shouldn't be included")
691 common.ZipWriteStr(output_tf_zip, out_info, data)
695 common.ZipWriteStr(output_tf_zip, out_info, data)
759 common.ParseCertificate(old_fp.read())).decode().lower()
762 common.ParseCertificate(new_fp.read())).decode().lower()
867 common.ZipWrite(certs_zip, k)
868 common.ZipClose(certs_zip)
869 common.ZipWriteStr(output_zip, filename, temp_file.getvalue())
876 raise common.ExternalError("can't read META/otakeys.txt from input")
891 raise common.ExternalError(
926 common.ZipWrite(output_zip, key_path, arcname=filename)
952 common.ZipWriteStr(output_zip, "BOOT/cmdline", in_cmdline)
962 p = common.Run(["openssl", "x509", "-in", key_path, "-text"],
972 common.ZipWriteStr(output_zip, "BOOT/cmdline", out_cmdline)
981 misc_info_old = common.LoadDictionaryFromLines(
987 common.ZipWriteStr(output_zip, "META/misc_info.txt", '\n'.join(items))
1314 args = common.ParseOptions(
1365 common.Usage(__doc__)
1368 common.InitLogging()
1375 misc_info = common.LoadInfoDict(input_zip)
1379 apk_keys_info, compressed_extension = common.ReadApkCerts(input_zip)
1393 key_passwords = common.GetKeyPasswords(
1403 common.ZipClose(input_zip)
1404 common.ZipClose(output_zip)
1421 except common.ExternalError as e:
1425 common.Cleanup()