platform_build/tools/releasetools
Tao Bao bea20ac722 releasetools: Refactor AddImagesToTargetFiles().
Separate three functions out of AddImagesToTargetFiles(), into
AddCareMapTxtForAbOta(), AddRadioImagesForAbOta() and
AddPackRadioImages() respectively. This CL tries to apply minimal
changes for the refactoring purpose.

Also add tests for AddRadioImagesForAbOta() and AddPackRadioImages().
The tests for AddCareMapTxtForAbOta() require better testing support to
mock sparse_img.SparseImage, which will be added in later CLs.

Test: python -m unittest test_add_img_to_target_files
Test: `m dist` with aosp_marlin-userdebug. Check META/care_map.txt in
      the generated target_files.zip.
Change-Id: I1bb723c15237ff721f165cfce0ce996008ce9948
2018-01-18 23:37:23 -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 releasetools: Refactor AddImagesToTargetFiles(). 2018-01-18 23:37:23 -08:00
blockimgdiff.py Iterate through the sorted file map when finding transfers 2018-01-12 12:21:00 -08:00
build_image.py releasetools: Clean up build_image.py. 2018-01-03 11:52:28 -08:00
check_ota_package_signature.py releasetools: Use delta_generator to verify payload signatures. 2017-12-15 12:45:09 -08:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py releasetools: Add a note for the ZipInfo._decodeExtra() workaround. 2018-01-17 10:10:00 -08:00
common.py releasetools: Add tests for common.ReadApkCerts(). 2018-01-05 11:53:55 -08:00
edify_generator.py releasetools: Add a BuildInfo class. 2018-01-09 15:08:23 -08: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 Remove the obsolete logic in img_from_target_files.py. 2017-05-31 11:17:56 -07:00
make_recovery_patch Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
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 Merge "releasetools: Remove the reloading of target info dict." 2018-01-18 22:48:15 +00: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: Remove deprecated pylint options. 2017-12-04 12:15:23 -08:00
rangelib.py releasetools: Fix the doctest for rangelib.py. 2017-11-02 12:19:36 -07:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py releasetools: Clean up ReplaceVerityKeyId and add tests. 2018-01-02 12:29:31 -08: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_add_img_to_target_files.py releasetools: Refactor AddImagesToTargetFiles(). 2018-01-18 23:37:23 -08:00
test_blockimgdiff.py releasetools: Fix a bug in blockimgdiff.HeapItem. 2018-01-02 09:54:32 -08:00
test_build_image.py releasetools: Move assertions into CheckHeadroom(). 2018-01-03 11:52:16 -08:00
test_common.py releasetools: Add tests for common.ReadApkCerts(). 2018-01-05 11:53:55 -08:00
test_ota_from_target_files.py releasetools: Consolidate the codes that generate metadata dict. 2018-01-16 15:34:27 -08:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
test_sign_target_files_apks.py releasetools: Clean up ReplaceVerityKeyId and add tests. 2018-01-02 12:29:31 -08:00
validate_target_files.py Skip checking files that have less blocks in block map. 2017-09-08 11:22:59 -07:00