platform_build/tools/releasetools
Tao Bao 2a20f344fc releasetools: Keep the original RangeSet for 'uses_shared_blocks' case.
Setting 'uses_shared_blocks' indicates that the block list for a given
file is incomplete, as some of the blocks are "owned" by others. As a
result, such a file will be skipped from imgdiff'ing.

This CL makes a copy of the original block list before removing the
shared blocks. It uses the original RangeSet as the value of
extra['uses_shared_blocks']. validate_target_files.py will try to read
the file as in the original RangeSet, unless the original list is also
incomplete or has non-monotonic ranges.

Test: Run validate_target_files on a target that uses
      `BOARD_EXT4_SHARE_DUP_BLOCKS := true`.
Change-Id: I259e871ecc249ba0c14b5796bef413185a1b8242
2018-12-06 10:28:49 -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 add_img_to_target_files uses build_super_image 2018-12-03 11:33:44 -08:00
blockimgdiff.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
build_image.py releasetools: Specify a minimum size for right-sized images. 2018-11-29 13:27:47 -08:00
build_super_image.py Build super.img from images in target_files 2018-12-03 11:33:44 -08:00
check_ota_package_signature.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py releasetools: Call Cleanup() in check_target_files_signatures.py. 2018-03-01 10:12:39 -08:00
common.py releasetools: Keep the original RangeSet for 'uses_shared_blocks' case. 2018-12-06 10:28:49 -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 releasetools pylint clean. 2015-03-24 11:05:16 -07:00
make_recovery_patch.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py releasetools: Remove the mismatch map files when generating retrofit OTAs. 2018-11-28 10:59:23 -08: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 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 Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py Install the ota keys under recovery as a zipfile 2018-10-22 14:47:15 -07: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 target_files_diff: Fix the issue with file type change. 2016-04-25 18:35:20 +00:00
test_add_img_to_target_files.py Use common.RunAndCheckOutput() in add_img_to_target_files.py. 2018-11-21 11:04:32 -08:00
test_blockimgdiff.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07: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: Add a common base class for unittests. 2018-10-11 23:01:09 -07: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 releasetools: Create VerityImageBuilder. 2018-11-06 10:00:28 -08:00
test_verity_utils.py releasetools: Add tests for VerityImageBuilder. 2018-11-06 10:00:51 -08:00
validate_target_files.py releasetools: Keep the original RangeSet for 'uses_shared_blocks' case. 2018-12-06 10:28:49 -08:00
verity_utils.py Merge "releasetools: Add tests for VerityImageBuilder." 2018-11-07 20:23:12 +00:00