platform_build/tools/releasetools
xunchang c0f77ee489 Check the completeness of original blocks during target files validation
The validate_target_files.py checks the 'incomplete' field of the range
in file_map. And range has already considered the shared blocks and
could be smaller in size than the original file range. Therefore, the
'incomplete' flag was set on the original range in common.py; and we
should switch to use the original range also during validation.

I also checked another flag usage in CanUseImgdiff(), and it has
explicitly rejected cases of shared blocks.

Bug: 124868891
Test: unit tests pass
Change-Id: I03959625d7b81fd83420db98f01d23f54064bcd2
2019-02-20 15:47:30 -08:00
..
testdata releasetools: Add tests for VerityImageBuilder. 2018-11-06 10:00:51 -08:00
add_img_to_target_files
add_img_to_target_files.py Skip some build steps if not building system image. 2019-02-13 22:57:14 +00:00
blockimgdiff.py releasetools: Really allow removing partitions 2019-01-28 11:10:48 -08:00
build_image.py Support verifying system_other 2019-02-13 17:00:49 +08:00
build_super_image.py Put system_other in super.img 2019-01-02 12:05:10 -08:00
check_ota_package_signature.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
check_target_files_signatures
check_target_files_signatures.py releasetools: Call Cleanup() in check_target_files_signatures.py. 2018-03-01 10:12:39 -08:00
common.py Adding initial merge_target_files.py script to merge two target files packages. 2019-02-15 13:25:16 -08:00
edify_generator.py releasetools: Track edify function API changes. 2018-08-29 11:53:19 -07:00
img_from_target_files
img_from_target_files.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
make_recovery_patch
make_recovery_patch.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
merge_target_files.py Adding initial merge_target_files.py script to merge two target files packages. 2019-02-15 13:25:16 -08:00
ota_from_target_files
ota_from_target_files.py Add a flag to skip compatibility check 2019-02-19 16:27:10 -08:00
ota_package_parser.py
OWNERS releasetools: Update OWNERS. 2019-01-11 12:28:09 -08:00
pylintrc releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07:00
rangelib.py releasetools: RangeSet.monotonic is not an optional attribute. 2018-02-06 16:00:52 -08:00
sign_target_files_apks
sign_target_files_apks.py releasetools: Skip copying split super images while signing. 2019-01-11 12:39:31 -08:00
sparse_img.py releasetools: Keep the original RangeSet for 'uses_shared_blocks' case. 2018-12-06 10:28:49 -08:00
target_files_diff.py Remove ro.expect.recovery_id 2019-01-28 10:56:37 -08:00
test_add_img_to_target_files.py Code improvement to adjusted the blocks size for care_map file 2019-02-13 18:34:50 +00:00
test_blockimgdiff.py blockimgdiff: add a function to select and convert 'diff' to new 2018-12-19 20:21:25 -08:00
test_build_image.py build_image: improvements to right size for dynamic partitions 2018-10-23 15:14:00 -07:00
test_common.py releasetools: Really allow removing partitions 2019-01-28 11:10:48 -08:00
test_ota_from_target_files.py releasetools: Clean up the logging while calling external commands. 2018-10-15 12:01:42 -07:00
test_rangelib.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_sign_target_files_apks.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_utils.py releasetools: Log to stdout when running tests. 2018-10-18 15:05:49 -07:00
test_validate_target_files.py Check the completeness of original blocks during target files validation 2019-02-20 15:47:30 -08:00
test_verity_utils.py releasetools: Add tests for VerityImageBuilder. 2018-11-06 10:00:51 -08:00
validate_target_files.py Check the completeness of original blocks during target files validation 2019-02-20 15:47:30 -08:00
verity_utils.py Merge "releasetools: Add tests for VerityImageBuilder." 2018-11-07 20:23:12 +00:00