Home
last modified time | relevance | path

Searched refs:common (Results 1 – 25 of 74) sorted by relevance

123

/build/make/tools/releasetools/
Dtest_common.py27 import common
52 'build.prop': common.PartitionBuildProps.FromDictionary(
68 'build.prop': common.PartitionBuildProps.FromDictionary(
75 'system.build.prop': common.PartitionBuildProps.FromDictionary(
87 'vendor.build.prop': common.PartitionBuildProps.FromDictionary(
104 'build.prop': common.PartitionBuildProps.FromDictionary(
110 'vendor.build.prop': common.PartitionBuildProps.FromDictionary(
135 'build.prop': common.PartitionBuildProps.FromDictionary(
141 'system.build.prop': common.PartitionBuildProps.FromDictionary(
145 'vendor.build.prop': common.PartitionBuildProps.FromDictionary(
[all …]
Dcheck_ota_package_signature.py32 import common
41 cert_dump = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
107 sig_file = common.MakeTempFile(prefix='sig-')
113 sig = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
117 digest_file = common.MakeTempFile(prefix='digest-')
122 decrypted_file = common.MakeTempFile(prefix='decrypted-')
125 common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
129 decrypted_output = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
145 common.ZipClose(package_zip)
151 pubkey = common.MakeTempFile(prefix="key-", suffix=".pem")
[all …]
Dtest_check_partition_sizes.py17 import common
23 self.info_dict = common.LoadDictionaryFromLines("""
43 self.info_dict.update(common.LoadDictionaryFromLines("""
51 self.info_dict.update(common.LoadDictionaryFromLines("""
58 self.info_dict.update(common.LoadDictionaryFromLines("""
68 self.info_dict.update(common.LoadDictionaryFromLines("""
75 self.info_dict.update(common.LoadDictionaryFromLines("""
87 self.info_dict.update(common.LoadDictionaryFromLines("""
98 self.info_dict.update(common.LoadDictionaryFromLines("""
105 self.info_dict.update(common.LoadDictionaryFromLines("""
[all …]
Dmake_recovery_patch.py23 import common
31 OPTIONS = common.OPTIONS
35 args = common.ParseOptions(argv, __doc__)
38 common.InitLogging()
40 OPTIONS.info_dict = common.LoadInfoDict(input_dir)
42 recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
44 boot_img = common.GetBootableImage("boot.img", "boot.img",
63 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
Dmerge_builds.py58 import common
62 OPTIONS = common.OPTIONS
84 framework_dict = common.LoadDictionaryFromFile(
86 vendor_dict = common.LoadDictionaryFromFile(
98 common.MergeDynamicPartitionInfoDicts(
108 framework_dict = common.LoadDictionaryFromFile(
110 vendor_dict = common.LoadDictionaryFromFile(
114 for key in common.LoadListFromFile(OPTIONS.framework_misc_info_keys):
119 for partition in common.AVB_PARTITIONS:
128 vbmeta_partitions = common.AVB_PARTITIONS[:]
[all …]
Dtest_ota_from_target_files.py22 import common
42 target_files = common.MakeTempFile(prefix='target_files-', suffix='.zip')
96 dict_file = common.MakeTempFile()
108 dict_file = common.MakeTempFile()
125 'build.prop': common.PartitionBuildProps.FromDictionary(
137 'build.prop': common.PartitionBuildProps.FromDictionary(
149 'build.prop': common.PartitionBuildProps.FromDictionary(
155 'vendor.build.prop': common.PartitionBuildProps.FromDictionary(
169 common.OPTIONS.incremental_source = None
170 common.OPTIONS.downgrade = False
[all …]
Dapex_utils.py25 import common
26 from common import UnzipTemp, RunAndCheckOutput, MakeTempFile, OPTIONS
33 OPTIONS = common.OPTIONS
83 entries_names = common.RunAndCheckOutput(list_cmd).split()
117 payload_dir = common.MakeTempDir()
120 common.RunAndCheckOutput(extract_cmd)
128 if key_name in common.SPECIAL_CERT_STRINGS:
135 unsigned_apk = common.MakeTempFile()
137 common.SignFile(
145 apex_dir = common.MakeTempDir()
[all …]
Dtest_non_ab_ota.py20 import common
30 common.OPTIONS.no_signing = False
82 'build.prop': common.PartitionBuildProps.FromDictionary(
93 'build.prop': common.PartitionBuildProps.FromDictionary(
99 'vendor.build.prop': common.PartitionBuildProps.FromDictionary(
122 target_info = common.BuildInfo(self.TEST_TARGET_INFO_DICT, None)
126 source_info = common.BuildInfo(source_info_dict, None)
136 target_info = common.BuildInfo(self.TEST_TARGET_INFO_DICT, None)
137 source_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
148 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
[all …]
Dota_from_target_files.py240 import common
330 signing_key = common.MakeTempFile(prefix="key-", suffix=".key")
332 common.RunAndCheckOutput(cmd, verbose=False)
353 out_signature_size_file = common.MakeTempFile("signature_size")
356 common.RunAndCheckOutput(cmd)
365 out_file = common.MakeTempFile(prefix="signed-", suffix=".bin")
367 common.RunAndCheckOutput(cmd)
394 common.RunAndCheckOutput(cmd, stdout=None, stderr=None)
396 common.RunAndCheckOutput(cmd)
411 payload_file = common.MakeTempFile(prefix="payload-", suffix=".bin")
[all …]
Dtest_sign_target_files_apks.py22 import common
166 input_file = common.MakeTempFile(suffix='.zip')
173 output_file = common.MakeTempFile(suffix='.zip')
197 input_file = common.MakeTempFile(suffix='.zip')
201 output_file = common.MakeTempFile(suffix='.zip')
222 base64.b16encode(common.ParseCertificate(cert1)).lower(),
223 base64.b16encode(common.ParseCertificate(cert2)).lower())
226 base64.b16encode(common.ParseCertificate(cert3)).lower(),
227 base64.b16encode(common.ParseCertificate(cert2)).lower())
229 common.OPTIONS.key_map = {
[all …]
Dnon_ab_ota.py20 import common
24 from common import OPTIONS
39 partition_src = common.GetUserImage(name, OPTIONS.source_tmp, source_zip,
45 partition_tgt = common.GetUserImage(name, OPTIONS.target_tmp, target_zip,
61 return common.BlockDifference(name, partition_tgt, partition_src,
83 tgt = common.GetUserImage(partition, OPTIONS.input_tmp, target_zip,
86 block_diff_dict[partition] = common.BlockDifference(partition, tgt,
105 assert all(isinstance(diff, common.BlockDifference)
120 target_info = common.BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
134 staging_file = common.MakeTempFile(suffix='.zip')
[all …]
Dtest_build_image.py20 import common
80 input_dir = common.MakeTempDir()
81 output_image = common.MakeTempFile(suffix='.img')
84 proc = common.Run(command)
115 fs_config = common.MakeTempFile(suffix='.txt')
121 root_dir = common.MakeTempDir()
125 origin_in = common.MakeTempDir()
150 root_dir = common.MakeTempDir()
154 origin_in = common.MakeTempDir()
185 input_dir = common.MakeTempDir()
[all …]
Dimg_from_target_files.py47 import common
56 OPTIONS = common.OPTIONS
76 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip)
104 common.RunAndCheckOutput(cmd)
168 input_tmp = common.UnzipTemp(input_file)
170 super_file = common.MakeTempFile('super_', '.img')
177 common.ZipWrite(output_zip, super_file, 'super.img')
232 args = common.ParseOptions(argv, __doc__,
240 common.Usage(__doc__)
243 common.InitLogging()
[all …]
Dimg_from_target_files47 import common
56 OPTIONS = common.OPTIONS
76 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip)
104 common.RunAndCheckOutput(cmd)
168 input_tmp = common.UnzipTemp(input_file)
170 super_file = common.MakeTempFile('super_', '.img')
177 common.ZipWrite(output_zip, super_file, 'super.img')
232 args = common.ParseOptions(argv, __doc__,
240 common.Usage(__doc__)
243 common.InitLogging()
[all …]
Dtest_verity_utils.py24 import common
34 BLOCK_SIZE = common.BLOCK_SIZE
57 output_file = common.MakeTempFile()
58 raw_image = common.MakeTempFile()
63 common.RunAndCheckOutput(cmd)
219 input_dir = common.MakeTempDir()
220 image = common.MakeTempFile(suffix='.img')
223 common.RunAndCheckOutput(cmd)
228 common.RunAndCheckOutput(cmd)
241 common.ExternalError,
[all …]
Dcheck_target_files_vintf.py31 import common
35 OPTIONS = common.OPTIONS
120 info_dict = common.LoadInfoDict(input_tmp)
143 proc = common.Run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
151 raise common.ExternalError(
175 out = common.RunAndCheckOutput(['checkvintf', '--dump-file-list'])
193 input_tmp = common.UnzipTemp(inp, GetVintfFileList() + UNZIP_PATTERN)
268 args = common.ParseOptions(argv, __doc__)
270 common.Usage(__doc__)
272 common.InitLogging()
[all …]
Dbuild_super_image.py48 import common
141 common.RunAndCheckOutput(cmd)
152 info_dict = common.LoadInfoDict(inp)
177 input_tmp = common.UnzipTemp(inp, UNZIP_PATTERN)
198 return BuildSuperImageFromDict(common.LoadDictionaryFromFile(inp), out)
205 args = common.ParseOptions(argv, __doc__)
208 common.Usage(__doc__)
211 common.InitLogging()
218 common.CloseInheritedPipes()
220 except common.ExternalError:
[all …]
Dsign_target_files_apks167 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:
[all …]
Dtest_add_img_to_target_files.py21 import common
27 from common import AddCareMapForAbOta, GetCareMap
30 OPTIONS = common.OPTIONS
36 OPTIONS.input_tmp = common.MakeTempDir()
96 output_file = common.MakeTempFile(suffix='.zip')
132 'system.build.prop': common.PartitionBuildProps.FromDictionary(
137 'vendor.build.prop': common.PartitionBuildProps.FromDictionary(
164 text_file = common.MakeTempFile(prefix="caremap-", suffix=".txt")
168 common.RunAndCheckOutput(cmd)
218 'system.build.prop': common.PartitionBuildProps.FromDictionary(
[all …]
Dsign_apex.py49 import common
107 args = common.ParseOptions(
122 common.Usage(__doc__)
125 common.InitLogging()
144 except common.ExternalError:
148 common.Cleanup()
Dtest_merge_target_files.py20 import common
50 input_dir = common.MakeTempDir()
51 output_dir = common.MakeTempDir()
139 output_dir = common.MakeTempDir()
142 framework_dir = common.MakeTempDir()
148 vendor_dir = common.MakeTempDir()
173 output_dir = common.MakeTempDir()
176 framework_dir = common.MakeTempDir()
182 conflict_dir = common.MakeTempDir()
194 output_dir = common.MakeTempDir()
[all …]
Dedify_generator.py17 import common
91 code=common.ErrorCode.OEM_PROP_MISMATCH,
104 common.ErrorCode.FINGERPRINT_MISMATCH, " or ".join(fp))
115 common.ErrorCode.THUMBPRINT_MISMATCH, " or ".join(fp))
136 timestamp, common.ErrorCode.OLDER_BUILD, timestamp_text))
143 device, common.ErrorCode.DEVICE_MISMATCH, device)
210 code=common.ErrorCode.BAD_PATCH_FILE)))
219 common.ErrorCode.INSUFFICIENT_CACHE_SPACE))
241 p.fs_type, common.PARTITION_TYPES[p.fs_type],
267 common.ErrorCode.TUNE_PARTITION_FAILURE, partition))
[all …]
Dtest_validate_target_files.py24 import common
37 kernel = common.MakeTempFile(prefix='kernel-')
42 proc = common.Run(cmd)
51 proc = common.Run(cmd)
59 input_tmp = common.MakeTempDir()
74 input_tmp = common.MakeTempDir()
91 input_tmp = common.MakeTempDir()
129 system_root = common.MakeTempDir()
134 proc = common.Run(cmd)
146 input_tmp = common.MakeTempDir()
[all …]
Dadd_img_to_target_files.py61 import common
66 from common import AddCareMapForAbOta
74 OPTIONS = common.OPTIONS
109 common.ZipWrite(self._output_zip, self.name, self._zip_name)
131 common.ZipWrite(output_zip, output_file, arc_name)
139 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img,
179 common.ZipWrite(output_zip, ofile.name, arc_name)
187 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img,
305 common.AppendAVBSigningArgs(cmd, "dtbo")
309 common.RunAndCheckOutput(cmd)
[all …]
Dadd_img_to_target_files61 import common
66 from common import AddCareMapForAbOta
74 OPTIONS = common.OPTIONS
109 common.ZipWrite(self._output_zip, self.name, self._zip_name)
131 common.ZipWrite(output_zip, output_file, arc_name)
139 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img,
179 common.ZipWrite(output_zip, ofile.name, arc_name)
187 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img,
305 common.AppendAVBSigningArgs(cmd, "dtbo")
309 common.RunAndCheckOutput(cmd)
[all …]

123