/build/tools/releasetools/ |
D | img_from_target_files | 52 def CopyInfo(output_zip): argument 54 output_zip.write(os.path.join(OPTIONS.input_tmp, "OTA", "android-info.txt"), 80 output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED) 81 CopyInfo(output_zip) 95 common.ZipWriteStr(output_zip, i, f.read()) 117 boot_image.AddToZip(output_zip) 121 recovery_image.AddToZip(output_zip) 128 add_img_to_target_files.AddSystem(output_zip, prefix="") 132 add_img_to_target_files.AddVendor(output_zip, prefix="") 136 add_img_to_target_files.AddUserdata(output_zip, prefix="") [all …]
|
D | img_from_target_files.py | 52 def CopyInfo(output_zip): argument 54 output_zip.write(os.path.join(OPTIONS.input_tmp, "OTA", "android-info.txt"), 80 output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED) 81 CopyInfo(output_zip) 95 common.ZipWriteStr(output_zip, i, f.read()) 117 boot_image.AddToZip(output_zip) 121 recovery_image.AddToZip(output_zip) 128 add_img_to_target_files.AddSystem(output_zip, prefix="") 132 add_img_to_target_files.AddVendor(output_zip, prefix="") 136 add_img_to_target_files.AddUserdata(output_zip, prefix="") [all …]
|
D | add_img_to_target_files.py | 49 def AddSystem(output_zip, prefix="IMAGES/"): argument 56 common.ZipWriteStr(output_zip, prefix + "system.img", f.read()) 58 common.ZipWriteStr(output_zip, prefix + "system.map", f.read()) 67 def AddVendor(output_zip, prefix="IMAGES/"): argument 74 common.ZipWriteStr(output_zip, prefix + "vendor.img", f.read()) 76 common.ZipWriteStr(output_zip, prefix + "vendor.map", f.read()) 131 def AddUserdata(output_zip, prefix="IMAGES/"): argument 159 output_zip.write(img.name, prefix + "userdata.img") 165 def AddCache(output_zip, prefix="IMAGES/"): argument 191 output_zip.write(img.name, prefix + "cache.img") [all …]
|
D | add_img_to_target_files | 49 def AddSystem(output_zip, prefix="IMAGES/"): argument 56 common.ZipWriteStr(output_zip, prefix + "system.img", f.read()) 58 common.ZipWriteStr(output_zip, prefix + "system.map", f.read()) 67 def AddVendor(output_zip, prefix="IMAGES/"): argument 74 common.ZipWriteStr(output_zip, prefix + "vendor.img", f.read()) 76 common.ZipWriteStr(output_zip, prefix + "vendor.map", f.read()) 131 def AddUserdata(output_zip, prefix="IMAGES/"): argument 159 output_zip.write(img.name, prefix + "userdata.img") 165 def AddCache(output_zip, prefix="IMAGES/"): argument 191 output_zip.write(img.name, prefix + "cache.img") [all …]
|
D | ota_from_target_files | 338 def CopyPartitionFiles(itemset, input_zip, output_zip=None, substitute=None): argument 362 if output_zip is not None: 367 output_zip.writestr(info2, data) 463 def WriteFullOTAPackage(input_zip, output_zip): argument 489 output_zip=output_zip, 534 common.ZipWriteStr(output_zip, "recovery.img", recovery_img.data) 555 WritePolicyConfig(OPTIONS.info_dict["selinux_fc"], output_zip) 569 system_diff.WriteScript(script, output_zip) 577 symlinks = CopyPartitionFiles(system_items, input_zip, output_zip) 585 common.ZipWriteStr(output_zip, "recovery/" + fn, data) [all …]
|
D | edify_generator.py | 335 def AddToZip(self, input_zip, output_zip, input_path=None): argument 343 common.ZipWriteStr(output_zip, "META-INF/com/google/android/updater-script", 350 common.ZipWriteStr(output_zip, "META-INF/com/google/android/update-binary",
|
D | common.py | 1041 def WriteScript(self, script, output_zip, progress=None): argument 1045 self._WriteUpdate(script, output_zip) 1056 self._WriteUpdate(script, output_zip) 1064 def _WriteUpdate(self, script, output_zip): argument 1067 ZipWriteStr(output_zip, partition + ".transfer.list", f.read()) 1069 ZipWriteStr(output_zip, partition + ".new.dat", f.read()) 1071 ZipWriteStr(output_zip, partition + ".patch.dat", f.read(),
|
D | sign_target_files_apks | 469 output_zip = zipfile.ZipFile(args[1], "w") 479 ProcessTargetFiles(input_zip, output_zip, misc_info, 483 output_zip.close()
|