diff options
author | Doug Zongker <dougz@google.com> | 2014-06-09 14:15:45 -0700 |
---|---|---|
committer | Doug Zongker <dougz@google.com> | 2014-06-09 14:15:45 -0700 |
commit | 4b9596fe00e3012c8d4b44844ac53b10ee27b579 (patch) | |
tree | aa83caf7742c0e222d4f3cf3feb0b2a15c44919f /tools/releasetools/ota_from_target_files | |
parent | 30e677081bf9b910b3079d0fecda78d874125084 (diff) | |
download | build-4b9596fe00e3012c8d4b44844ac53b10ee27b579.zip build-4b9596fe00e3012c8d4b44844ac53b10ee27b579.tar.gz build-4b9596fe00e3012c8d4b44844ac53b10ee27b579.tar.bz2 |
configure progress bar during block OTA script generation
Emit script commands to produce a more accurate progress bar (for full
block OTAs) and a working progress bar (for incremental block OTAs) --
ones that are driven by the progress callback from the thing actually
writing the system image.
Change-Id: Ifca10be68cfdaab7135d23515bd0ae5be2f98a16
Diffstat (limited to 'tools/releasetools/ota_from_target_files')
-rwxr-xr-x | tools/releasetools/ota_from_target_files | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files index 7019c46..9c10b68 100755 --- a/tools/releasetools/ota_from_target_files +++ b/tools/releasetools/ota_from_target_files @@ -493,7 +493,7 @@ else if get_stage("%(bcb_dev)s", "stage") == "3/3" then if "selinux_fc" in OPTIONS.info_dict: WritePolicyConfig(OPTIONS.info_dict["selinux_fc"], output_zip) - script.ShowProgress(system_progress, 30) + script.ShowProgress(system_progress, 0) if block_based: mapdata, data = img_from_target_files.BuildSystem( OPTIONS.input_tmp, OPTIONS.info_dict, @@ -775,6 +775,7 @@ else device_specific.IncrementalOTA_InstallBegin() script.Print("Patching system image...") + script.ShowProgress(0.9, 0) script.Syspatch(system_device, tgt_mapfilename, tgt_sys_sha1, src_mapfilename, src_sys_sha1, @@ -791,6 +792,7 @@ else # contents of the boot partition, and write it back to the # partition. script.Print("Patching boot image...") + script.ShowProgress(0.1, 10) script.ApplyPatch("%s:%s:%d:%s:%d:%s" % (boot_type, boot_device, source_boot.size, source_boot.sha1, |