Home
last modified time | relevance | path

Searched refs:input_zip (Results 1 – 16 of 16) sorted by relevance

/build/make/tools/releasetools/
Dtest_sign_target_files_apks.py167 with zipfile.ZipFile(input_file, 'w') as input_zip:
168 input_zip.writestr('BOOT/cmdline', BOOT_CMDLINE1)
174 with zipfile.ZipFile(input_file, 'r') as input_zip, \
176 ReplaceVerityKeyId(input_zip, output_zip, cert_file)
184 with zipfile.ZipFile(input_file, 'r') as input_zip, \
186 ReplaceVerityKeyId(input_zip, output_zip, cert_file)
198 with zipfile.ZipFile(input_file, 'w') as input_zip:
199 input_zip.writestr('BOOT/cmdline', BOOT_CMDLINE)
202 with zipfile.ZipFile(input_file, 'r') as input_zip, \
204 ReplaceVerityKeyId(input_zip, output_zip, None)
[all …]
Dimg_from_target_files.py74 with zipfile.ZipFile(input_file) as input_zip:
75 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip)
120 with zipfile.ZipFile(input_file) as input_zip:
121 namelist = input_zip.namelist()
147 with zipfile.ZipFile(input_file) as input_zip:
148 namelist = input_zip.namelist()
Dimg_from_target_files74 with zipfile.ZipFile(input_file) as input_zip:
75 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip)
120 with zipfile.ZipFile(input_file) as input_zip:
121 namelist = input_zip.namelist()
147 with zipfile.ZipFile(input_file) as input_zip:
148 namelist = input_zip.namelist()
Dota_from_target_files715 def WriteFullOTAPackage(input_zip, output_file): argument
738 input_zip=input_zip,
746 assert HasRecoveryPatch(input_zip, info_dict=OPTIONS.info_dict)
756 block_diff_dict = GetBlockDifferences(target_zip=input_zip, source_zip=None,
874 script.AddToZip(input_zip, output_zip, input_path=OPTIONS.updater_binary)
1036 def Compute(self, input_zip): argument
1049 return self.GetPropertyFilesString(input_zip, reserve_space=True)
1054 def Finalize(self, input_zip, reserved_length): argument
1078 result = self.GetPropertyFilesString(input_zip, reserve_space=False)
1087 def Verify(self, input_zip, expected): argument
[all …]
Dota_from_target_files.py715 def WriteFullOTAPackage(input_zip, output_file): argument
738 input_zip=input_zip,
746 assert HasRecoveryPatch(input_zip, info_dict=OPTIONS.info_dict)
756 block_diff_dict = GetBlockDifferences(target_zip=input_zip, source_zip=None,
874 script.AddToZip(input_zip, output_zip, input_path=OPTIONS.updater_binary)
1036 def Compute(self, input_zip): argument
1049 return self.GetPropertyFilesString(input_zip, reserve_space=True)
1054 def Finalize(self, input_zip, reserved_length): argument
1078 result = self.GetPropertyFilesString(input_zip, reserve_space=False)
1087 def Verify(self, input_zip, expected): argument
[all …]
Dtest_common.py845 with zipfile.ZipFile(target_files, 'r') as input_zip:
846 certmap, ext = common.ReadApkCerts(input_zip)
858 with zipfile.ZipFile(target_files, 'r') as input_zip:
859 certmap, ext = common.ReadApkCerts(input_zip)
868 with zipfile.ZipFile(target_files, 'r') as input_zip:
869 certmap, ext = common.ReadApkCerts(input_zip)
879 with zipfile.ZipFile(target_files, 'r') as input_zip:
880 certmap, ext = common.ReadApkCerts(input_zip)
892 with zipfile.ZipFile(target_files, 'r') as input_zip:
893 self.assertRaises(ValueError, common.ReadApkCerts, input_zip)
[all …]
Dtest_validate_target_files.py275 with zipfile.ZipFile(input_file, 'w') as input_zip:
277 input_zip.write(os.path.join(input_tmp, name), arcname=name)
281 with zipfile.ZipFile(input_file) as input_zip:
283 ValidateFileConsistency(input_zip, input_tmp, info_dict)
324 with zipfile.ZipFile(input_file, 'w') as input_zip:
326 input_zip.write(os.path.join(input_tmp, name), arcname=name)
328 with zipfile.ZipFile(input_file) as input_zip:
330 ValidateFileConsistency(input_zip, input_tmp, info_dict)
Dsign_target_files_apks.py900 def ReplaceVerityKeyId(input_zip, output_zip, key_path): argument
909 in_cmdline = input_zip.read("BOOT/cmdline").decode()
935 def ReplaceMiscInfoTxt(input_zip, output_zip, misc_info): argument
942 input_zip.read('META/misc_info.txt').decode().split('\n'))
1297 input_zip = zipfile.ZipFile(args[0], "r")
1302 misc_info = common.LoadInfoDict(input_zip)
1306 apk_keys_info, compressed_extension = common.ReadApkCerts(input_zip)
1309 apex_keys_info = ReadApexKeysInfo(input_zip)
1315 input_zip,
1322 platform_api_level, _ = GetApiLevelAndCodename(input_zip)
[all …]
Dsign_target_files_apks900 def ReplaceVerityKeyId(input_zip, output_zip, key_path): argument
909 in_cmdline = input_zip.read("BOOT/cmdline").decode()
935 def ReplaceMiscInfoTxt(input_zip, output_zip, misc_info): argument
942 input_zip.read('META/misc_info.txt').decode().split('\n'))
1297 input_zip = zipfile.ZipFile(args[0], "r")
1302 misc_info = common.LoadInfoDict(input_zip)
1306 apk_keys_info, compressed_extension = common.ReadApkCerts(input_zip)
1309 apex_keys_info = ReadApexKeysInfo(input_zip)
1315 input_zip,
1322 platform_api_level, _ = GetApiLevelAndCodename(input_zip)
[all …]
Dvalidate_target_files.py69 def ValidateFileConsistency(input_zip, input_tmp, info_dict): argument
77 image = common.GetSparseImage(which, input_tmp, input_zip, True)
130 if 'VENDOR/' in input_zip.namelist():
490 with zipfile.ZipFile(args.target_files, 'r') as input_zip:
491 ValidateFileConsistency(input_zip, input_tmp, info_dict)
Dtest_apex_utils.py178 with zipfile.ZipFile(self.apex_with_apk, 'r') as input_zip:
179 name_list = input_zip.namelist()
182 output_zip.writestr(name, input_zip.read(name))
Dedify_generator.py419 def AddToZip(self, input_zip, output_zip, input_path=None): argument
431 data = input_zip.read("OTA/bin/updater")
Dcheck_target_files_signatures309 with zipfile.ZipFile(filename) as input_zip:
310 self.certmap, compressed_extension = common.ReadApkCerts(input_zip)
Dcheck_target_files_signatures.py309 with zipfile.ZipFile(filename) as input_zip:
310 self.certmap, compressed_extension = common.ReadApkCerts(input_zip)
Dcommon.py1567 with zipfile.ZipFile(filename) as input_zip:
1568 names = input_zip.namelist()
1606 def GetUserImage(which, tmpdir, input_zip, argument
1635 info_dict = LoadInfoDict(input_zip)
1647 img = GetSparseImage(which, tmpdir, input_zip, allow_shared_blocks,
1676 def GetSparseImage(which, tmpdir, input_zip, allow_shared_blocks, argument
1730 assert arcname in input_zip.namelist(), \
1733 info = input_zip.getinfo(arcname)
Dtest_ota_from_target_files.py887 with zipfile.ZipFile(output_file) as input_zip:
890 property_files._GetPayloadMetadataOffsetAndSize(input_zip))