platform_build/tools/releasetools
Tao Bao b937ead5d9 releasetools: Work around the issue with mke2fs created images.
When generating block based OTAs, we read files from the sparse image
directly with the help of block map file. However, the block map info
might not be accurate if the image is created with mke2fs. Because
mke2fs may skip allocating actual blocks if they contain all zeros.
ota_from_target_files.py consequently passes incomplete APK files to
imgdiff, which fails to generate patches.

This CL works around the issue by falling back from imgdiff to bsdiff on
failures. We should figure out a better way in b/68016761 to remove the
workaround, which would otherwise hide other issues in imgdiff.

Bug: 67824829
Bug: 68016761
Test: ota_from_target_files.py passes on previously failing TF zips.
Change-Id: Ib24c5b5f89812b97a0c87c6bf0dc147ae39bc92f
2017-10-19 16:56:22 -07:00
..
add_img_to_target_files
add_img_to_target_files.py releasetools: Remove the workarounds for mkyaffs2image. 2017-10-18 10:21:33 -07:00
blockimgdiff.py releasetools: Work around the issue with mke2fs created images. 2017-10-19 16:56:22 -07:00
build_image.py Merge "Build repeatable system images with mke2fs." 2017-10-18 17:20:00 +00:00
check_ota_package_signature.py releasetools: Validate A/B OTA payload signatures. 2017-09-01 14:33:15 -07:00
check_target_files_signatures
check_target_files_signatures.py Revert "Revert "releasetools: Use pattern filter when unzipping."" 2017-03-05 13:11:42 -08:00
common.py Use computed salt for AVB-signed images. 2017-09-29 10:47:40 -07:00
edify_generator.py Fix the broken script in AssertFingerprintOrThumbprint. 2017-06-05 12:27:52 -07:00
img_from_target_files
img_from_target_files.py Remove the obsolete logic in img_from_target_files.py. 2017-05-31 11:17:56 -07:00
make_recovery_patch
make_recovery_patch.py releasetools: Replace print stmt with print(). 2017-01-13 14:55:14 -08:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py Add compatibility metadata for Treble-enabled non-A/B OTA packages. 2017-08-28 15:19:44 -07:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00:00
OWNERS Add OWNERS in build/make 2017-06-21 16:09:56 -07:00
pylintrc
rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
sign_target_files_apks
sign_target_files_apks.py Support replacing AVB signing keys. 2017-06-27 10:50:46 -07:00
sparse_img.py releasetools: Reduce memory footprint for BBOTA generation. 2017-03-06 08:46:30 -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 Fix unittest for blockimgdiff 2017-03-24 16:28:16 -07:00
test_common.py Verify the contents in install-recovery.sh 2017-06-20 17:28:35 -07:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
validate_target_files.py Skip checking files that have less blocks in block map. 2017-09-05 15:53:24 -07:00