b937ead5d9
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 |
||
---|---|---|
.. | ||
add_img_to_target_files | ||
add_img_to_target_files.py | ||
blockimgdiff.py | ||
build_image.py | ||
check_ota_package_signature.py | ||
check_target_files_signatures | ||
check_target_files_signatures.py | ||
common.py | ||
edify_generator.py | ||
img_from_target_files | ||
img_from_target_files.py | ||
make_recovery_patch | ||
make_recovery_patch.py | ||
ota_from_target_files | ||
ota_from_target_files.py | ||
ota_package_parser.py | ||
OWNERS | ||
pylintrc | ||
rangelib.py | ||
sign_target_files_apks | ||
sign_target_files_apks.py | ||
sparse_img.py | ||
target_files_diff.py | ||
test_blockimgdiff.py | ||
test_common.py | ||
test_rangelib.py | ||
validate_target_files.py |