platform_build/tools/releasetools
Tao Bao 02a0859b3c releasetools: Support verifying AVB signed images with chained partitions.
For example, verify a target_files.zip that has system AVB-signed as a
chained partition.

  $ build/make/tools/releasetools/validate_target_files.py \
      signed-target_files-4904652.zip \
      --verity_key verifiedboot_pub.pem \
      --avb_system_key_path system_pub.pem

Note that verifiedboot_pub.pem should be the key (either public or
private) to verify vbmeta.img, and 'system_pub.pem' should be the key
(either public or private) for the chained partition of system.

testdata/testkey.key is the private key converted from
testdata/testkey.pk8 for testing purpose (`openssl pkcs8 -in
testdata/testkey.pk8 -inform DER -out testdata/testkey.key -nocrypt`).

Bug: 63706333
Test: python -m unittest test_common
Test: python -m unittest test_add_img_to_target_files
Test: `m dist` on aosp_walleye-userdebug; Run validate_target_files.py
      on the generated target_files.zip.
Test: Set up walleye with chained system partition; `m dist`; Run
      validate_target_files.py on the generated target_files.zip.
Change-Id: I38517ab39baf8a5bc1a6062fab2fe229b68e897d
2018-07-23 15:20:14 -07:00
..
testdata releasetools: Support verifying AVB signed images with chained partitions. 2018-07-23 15:20:14 -07:00
OWNERS Add OWNERS in build/make 2017-06-21 16:09:56 -07: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: Support verifying AVB signed images with chained partitions. 2018-07-23 15:20:14 -07:00
blockimgdiff.py releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07:00
build_image.py Merge changes from topic "board_partition_reserved_size" 2018-07-23 18:38:24 +00: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 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: Support verifying AVB signed images with chained partitions. 2018-07-23 15:20:14 -07:00
edify_generator.py releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07: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 releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -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: Make scripts pylint clean." 2018-07-23 14:11:37 +00:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00: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 releasetools: Skip signing APKs with given prefixes. 2018-06-20 13:49:57 -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 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: Clean up AppendVBMetaArgsForPartition(). 2018-07-22 22:36:27 -07:00
test_blockimgdiff.py releasetools: Remove RemoveBackwardEdges(). 2018-07-10 22:13:40 -07:00
test_build_image.py releasetools: Move assertions into CheckHeadroom(). 2018-01-03 11:52:16 -08:00
test_common.py releasetools: Support verifying AVB signed images with chained partitions. 2018-07-23 15:20:14 -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-19 13:35:38 -07: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