platform_build/tools/releasetools
Tao Bao 5121655643 releasetools: Track edify function API changes.
In particular, it replaces the generated calls to edify function of
`apply_patch()` and `apply_patch_check()` with `patch_partition()` and
`patch_partition_check()` instead.

It adds two functions to EdifyGenerator: PatchPartition() and
PatchPartitionCheck() for Python releasetools callers. It also tries to
handle the callers of obsolete EdifyGenerator.PatchCheck() and
EdifyGenerator.ApplyPatch(), if their inputs are in known format.
Otherwise it raises an exception to avoid generating an OTA that updater
doesn't understand.

It requires the matching updater changes in the same topic.

Bug: 110106408
Test: Generate an incremental package with the new script and updater.
      Apply the package on device.
Test: Revert the change in ota_from_target_files.py, so that it calls
      the obsolete EdifyGenerator functions. Check that it generates the
      same incremental package.
Change-Id: Ifc55cb40d3a45116fd4d408536d037eca249effa
2018-08-29 11:53:19 -07:00
..
testdata releasetools: Support verifying AVB signed images with chained partitions. 2018-07-23 15:20:14 -07:00
add_img_to_target_files
add_img_to_target_files.py releasetools: Use int value of FIXED_FILE_TIMESTAMP. 2018-08-27 11:03:55 -07:00
blockimgdiff.py releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07:00
build_image.py Support a first stage ramdisk via TARGET_RAMDISK_OUT 2018-08-28 12:42:41 -07:00
check_ota_package_signature.py releasetools: Capture stderr output when calling delta_generator. 2018-02-05 23:39:23 -08: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 Merge "Support a first stage ramdisk via TARGET_RAMDISK_OUT" 2018-08-29 17:05:40 +00: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: Make scripts pylint clean. 2018-07-19 10:39:05 -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
ota_from_target_files.py releasetools: Track edify function API changes. 2018-08-29 11:53:19 -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 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: Fix the path to the OTA keys in recovery image. 2018-08-26 14:39:58 -07:00
sparse_img.py releasetools: Allow generating BBOTA for images with shared blocks. 2018-02-13 11:14:23 -08:00
target_files_diff.py
test_add_img_to_target_files.py Generates the care_map.txt in protobuf format 2018-08-17 17:39:00 +00:00
test_blockimgdiff.py releasetools: Remove RemoveBackwardEdges(). 2018-07-10 22:13:40 -07:00
test_build_image.py Support a first stage ramdisk via TARGET_RAMDISK_OUT 2018-08-28 12:42:41 -07:00
test_common.py releasetools: Add test cases for common.LoadInfoDict(). 2018-08-27 18:18:10 -07:00
test_ota_from_target_files.py releasetools: Fix secondary payload generation. 2018-07-12 14:52:52 -07: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: Skip signing APKs with given prefixes. 2018-06-20 13:49:57 -07:00
test_utils.py releasetools: Handle two edge cases in FinalizeMetadata(). 2018-03-21 06:19:28 +00:00
test_validate_target_files.py Remove the hard-coded path of build_verity_metadata.py. 2018-03-21 21:15:59 +00:00
validate_target_files.py releasetools: Support verifying AVB signed images with chained partitions. 2018-07-23 15:20:14 -07:00