/build/make/tools/releasetools/ |
D | test_sign_target_files_apks.py | 237 with zipfile.ZipFile(output_file) as input_zip: 238 self.assertIn(entry_name, input_zip.namelist()) 239 otacerts_file = io.BytesIO(input_zip.read(entry_name)) 245 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 246 input_zip.writestr('SYSTEM/app/App1.apk', "App1-content") 247 input_zip.writestr('SYSTEM/app/App2.apk.gz', "App2-content") 254 with zipfile.ZipFile(input_file) as input_zip: 255 CheckApkAndApexKeysAvailable(input_zip, apk_key_map, None, {}) 256 CheckApkAndApexKeysAvailable(input_zip, apk_key_map, '.gz', {}) 259 CheckApkAndApexKeysAvailable(input_zip, apk_key_map, None, {}) [all …]
|
D | img_from_target_files.py | 77 with zipfile.ZipFile(input_file) as input_zip: 78 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip) 134 with zipfile.ZipFile(input_file) as input_zip: 135 namelist = input_zip.namelist() 137 ab_partitions = input_zip.read( 178 with zipfile.ZipFile(input_file) as input_zip: 179 namelist = input_zip.namelist()
|
D | ota_utils.py | 103 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip: 106 input_zip) 449 with zipfile.ZipFile(input_file.filename, allowZip64=True) as input_zip: 451 PartitionBuildProps.FromInputFile(input_zip, partition, 545 def Compute(self, input_zip): argument 558 return self.GetPropertyFilesString(input_zip, reserve_space=True) 563 def Finalize(self, input_zip, reserved_length): argument 587 result = self.GetPropertyFilesString(input_zip, reserve_space=False) 596 def Verify(self, input_zip, expected): argument 606 actual = self.GetPropertyFilesString(input_zip) [all …]
|
D | test_common.py | 895 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as input_zip: 896 certmap, ext = common.ReadApkCerts(input_zip) 908 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as input_zip: 909 certmap, ext = common.ReadApkCerts(input_zip) 918 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as input_zip: 919 certmap, ext = common.ReadApkCerts(input_zip) 929 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as input_zip: 930 certmap, ext = common.ReadApkCerts(input_zip) 942 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as input_zip: 943 self.assertRaises(ValueError, common.ReadApkCerts, input_zip) [all …]
|
D | test_validate_target_files.py | 274 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 276 input_zip.write(os.path.join(input_tmp, name), arcname=name) 280 with zipfile.ZipFile(input_file) as input_zip: 282 ValidateFileConsistency(input_zip, input_tmp, info_dict) 323 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 325 input_zip.write(os.path.join(input_tmp, name), arcname=name) 327 with zipfile.ZipFile(input_file) as input_zip: 329 ValidateFileConsistency(input_zip, input_tmp, info_dict)
|
D | non_ab_ota.py | 112 def WriteFullOTAPackage(input_zip, output_file): argument 135 input_zip=input_zip, 143 assert HasRecoveryPatch(input_zip, info_dict=OPTIONS.info_dict) 153 block_diff_dict = GetBlockDifferences(target_zip=input_zip, source_zip=None, 271 script.AddToZip(input_zip, output_zip, input_path=OPTIONS.updater_binary) 593 with zipfile.ZipFile(target_file) as input_zip: 595 input_zip, 603 with zipfile.ZipFile(target_file) as input_zip, \ 606 input_zip,
|
D | validate_target_files.py | 71 def ValidateFileConsistency(input_zip, input_tmp, info_dict): argument 85 image = common.GetSparseImage(which, input_tmp, input_zip, True) 136 if 'IMAGES/system.img' in input_zip.namelist(): 140 if 'VENDOR/' in input_zip.namelist(): 545 with zipfile.ZipFile(args.target_files, 'r', allowZip64=True) as input_zip: 546 ValidateFileConsistency(input_zip, input_tmp, info_dict)
|
D | sign_target_files_apks.py | 272 def IsEntryOtaPackage(input_zip, filename): argument 273 with input_zip.open(filename, "r") as fp: 274 external_attr = input_zip.getinfo(filename).external_attr 276 return IsEntryOtaPackage(input_zip, 1134 def ReplaceMiscInfoTxt(input_zip, output_zip, misc_info): argument 1141 input_zip.read('META/misc_info.txt').decode().split('\n')) 1645 input_zip = zipfile.ZipFile(args[0], "r", allowZip64=True) 1650 misc_info = common.LoadInfoDict(input_zip) 1658 apk_keys_info, compressed_extension = common.ReadApkCerts(input_zip) 1661 apex_keys_info = ReadApexKeysInfo(input_zip) [all …]
|
D | test_apex_utils.py | 178 with zipfile.ZipFile(self.apex_with_apk, 'r', allowZip64=True) as input_zip: 179 name_list = input_zip.namelist() 182 output_zip.writestr(name, input_zip.read(name))
|
D | common.py | 2143 def UnzipSingleFile(input_zip: zipfile.ZipFile, info: zipfile.ZipInfo, dirname: str): 2159 target = input_zip.extract(info, dirname) 2172 os.symlink(input_zip.read(info).decode(), target) 2186 with zipfile.ZipFile(filename, allowZip64=True, mode="r") as input_zip: 2188 entries = input_zip.infolist() 2222 UnzipSingleFile(input_zip, info, dirname) 2225 UnzipSingleFile(input_zip, info, dirname) 2254 def GetUserImage(which, tmpdir, input_zip, argument 2280 info_dict = LoadInfoDict(input_zip) 2292 img = GetSparseImage(which, tmpdir, input_zip, allow_shared_blocks) [all …]
|
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.py | 300 with zipfile.ZipFile(filename, "r") as input_zip: 301 self.certmap, compressed_extension = common.ReadApkCerts(input_zip)
|
D | test_ota_from_target_files.py | 1078 with zipfile.ZipFile(output_file) as input_zip: 1081 property_files._GetPayloadMetadataOffsetAndSize(input_zip))
|
/build/make/tools/releasetools/merge/ |
D | merge_dexopt.py | 97 input_zip=OPTIONS.framework_dexpreopt_tools, 101 input_zip=OPTIONS.framework_dexpreopt_config, 105 input_zip=OPTIONS.vendor_dexpreopt_config,
|
D | merge_utils.py | 35 def ExtractItems(input_zip, output_dir, extract_item_list): argument 41 with zipfile.ZipFile(input_zip, allowZip64=True) as input_zipfile: 49 common.UnzipToDir(input_zip, output_dir, filtered_extract_item_list)
|