Lines Matching refs:common
86 import common
88 OPTIONS = common.OPTIONS
98 certmap = common.ReadApkCerts(tf_zip)
155 common.SignFile(unsigned.name, signed.name, keyname, pw,
222 if key not in common.SPECIAL_CERT_STRINGS:
226 common.ZipWriteStr(output_tf_zip, out_info, signed_data)
230 common.ZipWriteStr(output_tf_zip, out_info, data)
237 common.ZipWriteStr(output_tf_zip, out_info, new_data)
244 common.ZipWriteStr(output_tf_zip, out_info, new_data)
263 common.ZipWriteStr(output_tf_zip, out_info, data)
271 recovery_img = common.GetBootableImage(
273 boot_img = common.GetBootableImage(
277 common.ZipWriteStr(output_tf_zip, "SYSTEM/" + fn, data)
279 common.MakeRecoveryPatch(tmpdir, output_sink, recovery_img, boot_img,
294 old_cert16 = base64.b16encode(common.ParseCertificate(f.read())).lower()
297 new_cert16 = base64.b16encode(common.ParseCertificate(f.read())).lower()
373 raise common.ExternalError("can't read META/otakeys.txt from input")
388 raise common.ExternalError(
407 p = common.Run(["java", "-jar",
413 raise common.ExternalError("failed to run dumpkeys")
414 common.ZipWriteStr(output_tf_zip, "RECOVERY/RAMDISK/res/keys",
424 common.ZipWrite(certs_zip, k)
425 common.ZipClose(certs_zip)
426 common.ZipWriteStr(output_tf_zip, "SYSTEM/etc/security/otacerts.zip",
435 common.ZipWriteStr(targetfile_zip, filename, data)
444 common.ZipWriteStr(targetfile_output_zip, "META/misc_info.txt", new_misc_info)
548 args = common.ParseOptions(argv, __doc__,
560 common.Usage(__doc__)
566 misc_info = common.LoadInfoDict(input_zip)
573 key_passwords = common.GetKeyPasswords(set(apk_key_map.values()))
586 common.ZipClose(input_zip)
587 common.ZipClose(output_zip)
597 except common.ExternalError, e: