platform_build/tools/releasetools
Tao Bao e27acfdc41 releasetools: Fix the computation in ReviseStashSize().
We compute the max stashed_blocks in ReviseStashSize(), prior to calling
WriteTransfers(), to avoid running out of space due to stashing.

There is a bug when computing the to-be-freed stashed blocks, where we
wrongly free the space _before_ executing the transfer command. This leads
to a script failure where the max stash size violates the max allowed
size in WriteTransfers().

Note that this bug doesn't affect already generated packages. It's only
an underestimate in ReviseStashSize(). The check in WriteTransfers() has
been correct to ensure the max stash size.

Bug: 33687949
Test: Successfully generated incremental OTA which failed previously.
Change-Id: I4f4f043c6f521fce81ca5286e6156f22d99bf7f7
2016-12-16 11:26:05 -08:00
..
add_img_to_target_files store images in target-files 2014-07-31 11:06:30 -07:00
add_img_to_target_files.py Merge "Build recovery-two-step.img for two-step OTAs." 2016-12-02 15:19:00 +00:00
blockimgdiff.py releasetools: Fix the computation in ReviseStashSize(). 2016-12-16 11:26:05 -08:00
build_image.py build_image: add support for specifying number of inodes 2016-12-06 21:07:23 -08:00
check_ota_package_signature.py Add a script that verifies OTA package signature. 2016-09-16 15:08:40 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py Handle multiple APKs from the same package in check_target_files_signatures.py. 2016-07-27 19:52:28 -07:00
common.py Merge "Build recovery-two-step.img for two-step OTAs." 2016-12-02 15:19:00 +00:00
edify_generator.py Merge \"Remove obsolete MTD support from the releasetools scripts.\" 2016-06-17 04:59:26 +00:00
img_from_target_files Allow to build the update.zip for emulator build. 2014-06-04 17:04:14 +00:00
img_from_target_files.py Build recovery-two-step.img for two-step OTAs. 2016-12-01 17:47:59 -08:00
make_recovery_patch Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
make_recovery_patch.py Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py releasetools: Add prefix when dumping fingerprints. 2016-12-14 11:53:38 -08:00
pylintrc Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py releasetools: Use java_path in sign_target_files_apks.py. 2016-11-08 12:48:43 -08:00
sparse_img.py Fix metadata location when file system doesn't span the partition 2016-02-10 10:53:47 -08:00
target_files_diff.py target_files_diff: Fix the issue with file type change. 2016-04-25 18:35:20 +00:00
test_blockimgdiff.py releasetools: Make BBOTA incremental generation repeatable. 2016-10-26 09:40:50 -07:00
test_common.py Fix the permission setting in common.ZipWriteStr() 2015-05-20 13:29:03 -07:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00