/build/make/tools/releasetools/ |
H A D | make_recovery_patch | 26 import common namespace 28 OPTIONS = common.OPTIONS 34 args = common.ParseOptions(argv, __doc__) 37 OPTIONS.info_dict = common.LoadInfoDict(input_dir) 39 recovery_img = common.GetBootableImage("recovery.img", "recovery.img", 41 boot_img = common.GetBootableImage("boot.img", "boot.img", 51 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
|
H A D | make_recovery_patch.py | 26 import common namespace 28 OPTIONS = common.OPTIONS 34 args = common.ParseOptions(argv, __doc__) 37 OPTIONS.info_dict = common.LoadInfoDict(input_dir) 39 recovery_img = common.GetBootableImage("recovery.img", "recovery.img", 41 boot_img = common.GetBootableImage("boot.img", "boot.img", 51 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
|
H A D | test_utils.py | 25 import common namespace 89 sparse_image = common.MakeTempFile(prefix='sparse-', suffix='.img')
|
H A D | img_from_target_files | 41 import common namespace 43 OPTIONS = common.OPTIONS 48 common.ZipWrite( 63 args = common.ParseOptions(argv, __doc__, 71 common.Usage(__doc__) 74 OPTIONS.input_tmp = common.UnzipTemp(args[0], ["IMAGES/*", "OTA/*"]) 89 common.ZipWrite(output_zip, os.path.join(images_path, image), image) 93 common.ZipClose(output_zip) 101 common.CloseInheritedPipes() 103 except common [all...] |
H A D | img_from_target_files.py | 41 import common namespace 43 OPTIONS = common.OPTIONS 48 common.ZipWrite( 63 args = common.ParseOptions(argv, __doc__, 71 common.Usage(__doc__) 74 OPTIONS.input_tmp = common.UnzipTemp(args[0], ["IMAGES/*", "OTA/*"]) 89 common.ZipWrite(output_zip, os.path.join(images_path, image), image) 93 common.ZipClose(output_zip) 101 common.CloseInheritedPipes() 103 except common [all...] |
H A D | check_ota_package_signature.py | 33 import common namespace 40 p1 = common.Run(cmd, stdout=subprocess.PIPE) 107 sig_file = common.MakeTempFile(prefix='sig-') 113 p1 = common.Run(cmd, stdout=subprocess.PIPE) 119 digest_file = common.MakeTempFile(prefix='digest-') 124 decrypted_file = common.MakeTempFile(prefix='decrypted-') 127 p1 = common.Run(cmd, stdout=subprocess.PIPE) 133 p1 = common.Run(cmd, stdout=subprocess.PIPE) 151 common.ZipClose(package_zip) 157 pubkey = common [all...] |
H A D | test_build_image.py | 19 import common namespace 73 input_dir = common.MakeTempDir() 74 output_image = common.MakeTempFile(suffix='.img') 94 common.Cleanup()
|
H A D | validate_target_files.py | 32 import common namespace 43 file_size_rounded_up = common.RoundUpTo4K(file_size) 45 return common.File(file_name, file_data) 68 image = common.GetSparseImage(which, input_tmp, input_zip, True) 121 install-recovery.sh is written in common.py and has the following format: 195 args = common.ParseOptions( 201 common.Usage(__doc__) 210 input_tmp = common.UnzipTemp(args[0]) 212 info_dict = common.LoadInfoDict(input_tmp) 228 common [all...] |
H A D | test_sign_target_files_apks.py | 24 import common namespace 42 common.Cleanup() 102 input_file = common.MakeTempFile(suffix='.zip') 109 output_file = common.MakeTempFile(suffix='.zip') 133 input_file = common.MakeTempFile(suffix='.zip') 137 output_file = common.MakeTempFile(suffix='.zip') 158 base64.b16encode(common.ParseCertificate(cert1)).lower(), 159 base64.b16encode(common.ParseCertificate(cert2)).lower()) 162 base64.b16encode(common.ParseCertificate(cert3)).lower(), 163 base64.b16encode(common [all...] |
H A D | test_blockimgdiff.py | 21 import common namespace 132 common.OPTIONS.cache_size = 7 * 4096 136 common.OPTIONS.cache_size = 6 * 4096 174 common.OPTIONS.cache_size = 15 * 4096
|
H A D | add_img_to_target_files | 58 import common namespace 66 OPTIONS = common.OPTIONS 89 self.name = common.MakeTempFile(prefix=root + '-', suffix=suffix) 95 common.ZipWrite(self._output_zip, self.name, self._zip_name) 141 common.ZipWrite(output_zip, ofile.name, arc_name) 145 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img, 222 common.AppendAVBSigningArgs(cmd, "dtbo") 226 p = common.Run(cmd, stdout=subprocess.PIPE) 331 user_dir = common.MakeTempDir() 339 common [all...] |
H A D | add_img_to_target_files.py | 58 import common namespace 66 OPTIONS = common.OPTIONS 89 self.name = common.MakeTempFile(prefix=root + '-', suffix=suffix) 95 common.ZipWrite(self._output_zip, self.name, self._zip_name) 141 common.ZipWrite(output_zip, ofile.name, arc_name) 145 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img, 222 common.AppendAVBSigningArgs(cmd, "dtbo") 226 p = common.Run(cmd, stdout=subprocess.PIPE) 331 user_dir = common.MakeTempDir() 339 common [all...] |
H A D | build_image.py | 35 import common namespace 39 OPTIONS = common.OPTIONS 358 tempdir_name = common.MakeTempDir(suffix="_verity_images") 397 base_fs_file = common.MakeTempFile(prefix="script_gen_", suffix=".base_fs") 464 in_dir = common.MakeTempDir() 469 merged_fs_config = common.MakeTempFile(prefix="root_fs_config", 895 common.Cleanup()
|
H A D | check_target_files_signatures | 48 import common namespace 56 # if any entry has an extra field of between 1 and 3 bytes (which is common with 67 OPTIONS = common.OPTIONS 91 p = common.Run(["openssl", "x509", "-inform", "DER", "-text"], 114 name = "unknown cert %s (%s)" % (common.sha1(cert).hexdigest()[:12], 133 cert = common.ParseCertificate(f.read()) 147 p = common.Run(["openssl", "pkcs7", 158 cert = common.ParseCertificate(out) 201 p = common.Run(["aapt", "dump", "xmltree", full_filename, 246 self.certmap, compressed_extension = common [all...] |
H A D | check_target_files_signatures.py | 48 import common namespace 56 # if any entry has an extra field of between 1 and 3 bytes (which is common with 67 OPTIONS = common.OPTIONS 91 p = common.Run(["openssl", "x509", "-inform", "DER", "-text"], 114 name = "unknown cert %s (%s)" % (common.sha1(cert).hexdigest()[:12], 133 cert = common.ParseCertificate(f.read()) 147 p = common.Run(["openssl", "pkcs7", 158 cert = common.ParseCertificate(out) 201 p = common.Run(["aapt", "dump", "xmltree", full_filename, 246 self.certmap, compressed_extension = common [all...] |
/build/tools/releasetools/ |
H A D | make_recovery_patch | 26 import common namespace 28 OPTIONS = common.OPTIONS 34 args = common.ParseOptions(argv, __doc__) 37 OPTIONS.info_dict = common.LoadInfoDict(input_dir) 39 recovery_img = common.GetBootableImage("recovery.img", "recovery.img", 41 boot_img = common.GetBootableImage("boot.img", "boot.img", 51 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
|
H A D | make_recovery_patch.py | 26 import common namespace 28 OPTIONS = common.OPTIONS 34 args = common.ParseOptions(argv, __doc__) 37 OPTIONS.info_dict = common.LoadInfoDict(input_dir) 39 recovery_img = common.GetBootableImage("recovery.img", "recovery.img", 41 boot_img = common.GetBootableImage("boot.img", "boot.img", 51 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
|
H A D | test_utils.py | 25 import common namespace 89 sparse_image = common.MakeTempFile(prefix='sparse-', suffix='.img')
|
H A D | img_from_target_files | 41 import common namespace 43 OPTIONS = common.OPTIONS 48 common.ZipWrite( 63 args = common.ParseOptions(argv, __doc__, 71 common.Usage(__doc__) 74 OPTIONS.input_tmp = common.UnzipTemp(args[0], ["IMAGES/*", "OTA/*"]) 89 common.ZipWrite(output_zip, os.path.join(images_path, image), image) 93 common.ZipClose(output_zip) 101 common.CloseInheritedPipes() 103 except common [all...] |
H A D | img_from_target_files.py | 41 import common namespace 43 OPTIONS = common.OPTIONS 48 common.ZipWrite( 63 args = common.ParseOptions(argv, __doc__, 71 common.Usage(__doc__) 74 OPTIONS.input_tmp = common.UnzipTemp(args[0], ["IMAGES/*", "OTA/*"]) 89 common.ZipWrite(output_zip, os.path.join(images_path, image), image) 93 common.ZipClose(output_zip) 101 common.CloseInheritedPipes() 103 except common [all...] |
H A D | check_ota_package_signature.py | 33 import common namespace 40 p1 = common.Run(cmd, stdout=subprocess.PIPE) 107 sig_file = common.MakeTempFile(prefix='sig-') 113 p1 = common.Run(cmd, stdout=subprocess.PIPE) 119 digest_file = common.MakeTempFile(prefix='digest-') 124 decrypted_file = common.MakeTempFile(prefix='decrypted-') 127 p1 = common.Run(cmd, stdout=subprocess.PIPE) 133 p1 = common.Run(cmd, stdout=subprocess.PIPE) 151 common.ZipClose(package_zip) 157 pubkey = common [all...] |
H A D | test_build_image.py | 19 import common namespace 73 input_dir = common.MakeTempDir() 74 output_image = common.MakeTempFile(suffix='.img') 94 common.Cleanup()
|
H A D | validate_target_files.py | 32 import common namespace 43 file_size_rounded_up = common.RoundUpTo4K(file_size) 45 return common.File(file_name, file_data) 68 image = common.GetSparseImage(which, input_tmp, input_zip, True) 121 install-recovery.sh is written in common.py and has the following format: 195 args = common.ParseOptions( 201 common.Usage(__doc__) 210 input_tmp = common.UnzipTemp(args[0]) 212 info_dict = common.LoadInfoDict(input_tmp) 228 common [all...] |
H A D | test_sign_target_files_apks.py | 24 import common namespace 42 common.Cleanup() 102 input_file = common.MakeTempFile(suffix='.zip') 109 output_file = common.MakeTempFile(suffix='.zip') 133 input_file = common.MakeTempFile(suffix='.zip') 137 output_file = common.MakeTempFile(suffix='.zip') 158 base64.b16encode(common.ParseCertificate(cert1)).lower(), 159 base64.b16encode(common.ParseCertificate(cert2)).lower()) 162 base64.b16encode(common.ParseCertificate(cert3)).lower(), 163 base64.b16encode(common [all...] |
H A D | test_blockimgdiff.py | 21 import common namespace 132 common.OPTIONS.cache_size = 7 * 4096 136 common.OPTIONS.cache_size = 6 * 4096 174 common.OPTIONS.cache_size = 15 * 4096
|