Lines Matching full:common
86 import common
88 OPTIONS = common.OPTIONS
98 certmap = common.ReadApkCerts(tf_zip)
137 common.SignFile(unsigned.name, signed.name, keyname, pw, align=4)
192 if key not in common.SPECIAL_CERT_STRINGS:
235 recovery_img = common.GetBootableImage(
237 boot_img = common.GetBootableImage(
243 common.MakeRecoveryPatch(tmpdir, output_sink, recovery_img, boot_img,
258 old_cert16 = base64.b16encode(common.ParseCertificate(f.read())).lower()
261 new_cert16 = base64.b16encode(common.ParseCertificate(f.read())).lower()
333 raise common.ExternalError("can't read META/otakeys.txt from input")
348 raise common.ExternalError(
367 p = common.Run(["java", "-jar",
373 raise common.ExternalError("failed to run dumpkeys")
374 common.ZipWriteStr(output_tf_zip, "RECOVERY/RAMDISK/res/keys",
386 common.ZipWriteStr(output_tf_zip, "SYSTEM/etc/security/otacerts.zip",
394 common.ZipWriteStr(targetfile_zip, "BOOT/RAMDISK/verity_key", f.read())
401 common.ZipWriteStr(targetfile_output_zip, "META/misc_info.txt", new_misc_info)
453 args = common.ParseOptions(argv, __doc__,
465 common.Usage(__doc__)
471 misc_info = common.LoadInfoDict(input_zip)
478 key_passwords = common.GetKeyPasswords(set(apk_key_map.values()))
493 except common.ExternalError, e: