/build/make/tools/releasetools/ |
D | test_sign_target_files_apks.py | 167 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 …]
|
D | img_from_target_files.py | 74 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()
|
D | img_from_target_files | 74 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()
|
D | ota_from_target_files | 715 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 …]
|
D | ota_from_target_files.py | 715 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 …]
|
D | test_common.py | 845 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 …]
|
D | test_validate_target_files.py | 275 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)
|
D | sign_target_files_apks.py | 900 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 …]
|
D | sign_target_files_apks | 900 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 …]
|
D | validate_target_files.py | 69 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)
|
D | test_apex_utils.py | 178 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))
|
D | edify_generator.py | 419 def AddToZip(self, input_zip, output_zip, input_path=None): argument 431 data = input_zip.read("OTA/bin/updater")
|
D | check_target_files_signatures | 309 with zipfile.ZipFile(filename) as input_zip: 310 self.certmap, compressed_extension = common.ReadApkCerts(input_zip)
|
D | check_target_files_signatures.py | 309 with zipfile.ZipFile(filename) as input_zip: 310 self.certmap, compressed_extension = common.ReadApkCerts(input_zip)
|
D | common.py | 1567 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)
|
D | test_ota_from_target_files.py | 887 with zipfile.ZipFile(output_file) as input_zip: 890 property_files._GetPayloadMetadataOffsetAndSize(input_zip))
|