/build/make/tools/releasetools/ |
D | add_img_to_target_files.py | 96 def __init__(self, output_zip, input_dir, prefix, name): argument 100 self._output_zip = output_zip 148 def AddSystem(output_zip, recovery_img=None, boot_img=None): argument 152 img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system.img") 162 if output_zip: 164 if arc_name in output_zip.namelist(): 167 common.ZipWrite(output_zip, output_file, arc_name) 178 block_list = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system.map") 185 def AddSystemOther(output_zip): argument 189 img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system_other.img") [all …]
|
D | add_img_to_target_files | 96 def __init__(self, output_zip, input_dir, prefix, name): 100 self._output_zip = output_zip 148 def AddSystem(output_zip, recovery_img=None, boot_img=None): 152 img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system.img") 162 if output_zip: 164 if arc_name in output_zip.namelist(): 167 common.ZipWrite(output_zip, output_file, arc_name) 178 block_list = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system.map") 185 def AddSystemOther(output_zip): 189 img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system_other.img") [all …]
|
D | test_sign_target_files_apks.py | 175 zipfile.ZipFile(output_file, 'w') as output_zip: 176 ReplaceVerityKeyId(input_zip, output_zip, cert_file) 178 with zipfile.ZipFile(output_file) as output_zip: 179 self.assertEqual(BOOT_CMDLINE1, output_zip.read('BOOT/cmdline').decode()) 185 zipfile.ZipFile(output_file, 'w') as output_zip: 186 ReplaceVerityKeyId(input_zip, output_zip, cert_file) 188 with zipfile.ZipFile(output_file) as output_zip: 189 self.assertEqual(BOOT_CMDLINE2, output_zip.read('BOOT/cmdline').decode()) 203 zipfile.ZipFile(output_file, 'w') as output_zip: 204 ReplaceVerityKeyId(input_zip, output_zip, None) [all …]
|
D | ota_from_target_files | 465 def WriteToZip(self, output_zip): argument 484 common.ZipWrite(output_zip, self.payload_file, arcname=payload_arcname, 486 common.ZipWrite(output_zip, self.payload_properties, 510 def _WriteRecoveryImageToBoot(script, output_zip): argument 530 output_zip, 734 output_zip = zipfile.ZipFile( 740 output_zip=output_zip, 790 common.ZipWriteStr(output_zip, "recovery.img", recovery_img.data) 827 dynamic_partitions_diff.WriteScript(script, output_zip, 831 block_diff.WriteScript(script, output_zip, [all …]
|
D | ota_from_target_files.py | 465 def WriteToZip(self, output_zip): argument 484 common.ZipWrite(output_zip, self.payload_file, arcname=payload_arcname, 486 common.ZipWrite(output_zip, self.payload_properties, 510 def _WriteRecoveryImageToBoot(script, output_zip): argument 530 output_zip, 734 output_zip = zipfile.ZipFile( 740 output_zip=output_zip, 790 common.ZipWriteStr(output_zip, "recovery.img", recovery_img.data) 827 dynamic_partitions_diff.WriteScript(script, output_zip, 831 block_diff.WriteScript(script, output_zip, [all …]
|
D | test_add_img_to_target_files.py | 96 with zipfile.ZipFile(output_file, 'w') as output_zip: 97 AddPackRadioImages(output_zip, images) 347 with zipfile.ZipFile(output_file, 'w') as output_zip: 348 AddCareMapForAbOta(output_zip, ['system', 'vendor'], image_paths) 370 with zipfile.ZipFile(output_file, 'w') as output_zip: 372 common.ZipWriteStr(output_zip, 'META/care_map.pb', 376 AddCareMapForAbOta(output_zip, ['system', 'vendor'], image_paths)
|
D | sign_target_files_apks.py | 807 def WriteOtacerts(output_zip, filename, keys): argument 820 common.ZipWriteStr(output_zip, filename, temp_file.getvalue()) 877 def ReplaceVerityPublicKey(output_zip, filename, key_path): argument 886 common.ZipWrite(output_zip, key_path, arcname=filename) 900 def ReplaceVerityKeyId(input_zip, output_zip, key_path): argument 912 common.ZipWriteStr(output_zip, "BOOT/cmdline", in_cmdline) 932 common.ZipWriteStr(output_zip, "BOOT/cmdline", out_cmdline) 935 def ReplaceMiscInfoTxt(input_zip, output_zip, misc_info): argument 947 common.ZipWriteStr(output_zip, "META/misc_info.txt", '\n'.join(items)) 1298 output_zip = zipfile.ZipFile(args[1], "w", [all …]
|
D | sign_target_files_apks | 807 def WriteOtacerts(output_zip, filename, keys): argument 820 common.ZipWriteStr(output_zip, filename, temp_file.getvalue()) 877 def ReplaceVerityPublicKey(output_zip, filename, key_path): argument 886 common.ZipWrite(output_zip, key_path, arcname=filename) 900 def ReplaceVerityKeyId(input_zip, output_zip, key_path): argument 912 common.ZipWriteStr(output_zip, "BOOT/cmdline", in_cmdline) 932 common.ZipWriteStr(output_zip, "BOOT/cmdline", out_cmdline) 935 def ReplaceMiscInfoTxt(input_zip, output_zip, misc_info): argument 947 common.ZipWriteStr(output_zip, "META/misc_info.txt", '\n'.join(items)) 1298 output_zip = zipfile.ZipFile(args[1], "w", [all …]
|
D | test_common.py | 635 output_zip = zipfile.ZipFile(zip_file.name, 'w', 639 common.ZipWrite(output_zip, entry_file.name, arcname='Test1') 640 common.ZipWrite(output_zip, entry_file.name, arcname='Test2') 641 common.ZipWrite(output_zip, entry_file.name, arcname='Test3') 642 common.ZipClose(output_zip) 680 output_zip = zipfile.ZipFile( 685 common.ZipWrite(output_zip, entry_file.name, arcname='Test1') 686 common.ZipWrite(output_zip, entry_file.name, arcname='Test2') 687 common.ZipWrite(output_zip, entry_file.name, arcname='Foo3') 688 common.ZipWrite(output_zip, entry_file.name, arcname='Bar4') [all …]
|
D | test_ota_from_target_files.py | 882 with zipfile.ZipFile(output_file, 'w') as output_zip: 883 payload.WriteToZip(output_zip) 1215 with zipfile.ZipFile(output_file, 'w') as output_zip: 1216 payload.WriteToZip(output_zip) 1229 with zipfile.ZipFile(output_file, 'w') as output_zip: 1230 payload.WriteToZip(output_zip) 1268 with zipfile.ZipFile(output_file, 'w') as output_zip: 1269 payload.WriteToZip(output_zip) 1290 with zipfile.ZipFile(output_file, 'w') as output_zip: 1291 self.assertRaises(AssertionError, payload.WriteToZip, output_zip) [all …]
|
D | merge_target_files.py | 891 output_zip = os.path.abspath(output_file) 907 output_zip, 918 return output_zip 987 output_zip = create_target_files_archive(output_target_files, 994 img_from_target_files.main([output_zip, output_img]) 999 ota_from_target_files.main([output_zip, output_ota])
|
D | img_from_target_files.py | 172 allowZip64=not OPTIONS.sparse_userimages) as output_zip: 173 common.ZipWrite(output_zip, super_file, 'super.img')
|
D | img_from_target_files | 172 allowZip64=not OPTIONS.sparse_userimages) as output_zip: 173 common.ZipWrite(output_zip, super_file, 'super.img')
|
D | edify_generator.py | 419 def AddToZip(self, input_zip, output_zip, input_path=None): argument 427 common.ZipWriteStr(output_zip, "META-INF/com/google/android/updater-script", 434 common.ZipWriteStr(output_zip, "META-INF/com/google/android/update-binary",
|
D | test_apex_utils.py | 177 with zipfile.ZipFile(no_asset, 'w') as output_zip: 182 output_zip.writestr(name, input_zip.read(name))
|
D | common.py | 2738 def WriteScript(self, script, output_zip, progress=None, argument 2748 self._WriteUpdate(script, output_zip) 2885 def _WriteUpdate(self, script, output_zip): argument 2886 ZipWrite(output_zip, 2906 ZipWrite(output_zip, 2912 ZipWrite(output_zip, '{}.new.dat'.format(self.path), new_data_name) 2914 ZipWrite(output_zip, 3312 def WriteScript(self, script, output_zip, write_verify_script=False): argument 3317 u.block_difference.WriteScript(script, output_zip, progress=u.progress, 3325 ZipWrite(output_zip, op_list_path, "dynamic_partitions_op_list") [all …]
|