ba557707d8
For a given (signed) target-files.zip, this CLs allows verifying the Verified Boot related images. It works with both of VB 1.0 and VB 2.0 images. As part of the CL, it also moves validate_target_files.py to argparse, which is more flexible than the traditional getopt module. Also add unittests for the VB 1.0 path. VB 2.0 tests will be added in follow-up CL. Example usage: - Run the script on aosp_bullhead target-files.zip. $ ./build/make/tools/releasetools/validate_target_files.py \ --verity_key build/target/product/security/verity.x509.pem \ --verity_key_mincrypt build/target/product/security/verity_key \ aosp_bullhead-target_files-4522605.zip - Run the script on aosp_walleye target-files.zip. $ ./build/make/tools/releasetools/validate_target_files.py \ --verity_key external/avb/test/data/testkey_rsa4096.pem \ aosp_walleye-target_files-4627254.zip Bug: 63706333 Bug: 65486807 Test: Run validate_target_files.py on target_files.zip files. Test: PYTHONPATH=build/make/tools/releasetools python -m unittest \ test_validate_target_files Change-Id: I170f14d5828d15f3687d8af0a89a816968069057 |
||
---|---|---|
.. | ||
testdata | ||
add_img_to_target_files | ||
add_img_to_target_files.py | ||
blockimgdiff.py | ||
build_image.py | ||
check_ota_package_signature.py | ||
check_target_files_signatures | ||
check_target_files_signatures.py | ||
common.py | ||
edify_generator.py | ||
img_from_target_files | ||
img_from_target_files.py | ||
make_recovery_patch | ||
make_recovery_patch.py | ||
ota_from_target_files | ||
ota_from_target_files.py | ||
ota_package_parser.py | ||
OWNERS | ||
pylintrc | ||
rangelib.py | ||
sign_target_files_apks | ||
sign_target_files_apks.py | ||
sparse_img.py | ||
target_files_diff.py | ||
test_add_img_to_target_files.py | ||
test_blockimgdiff.py | ||
test_build_image.py | ||
test_common.py | ||
test_ota_from_target_files.py | ||
test_rangelib.py | ||
test_sign_target_files_apks.py | ||
test_utils.py | ||
test_validate_target_files.py | ||
validate_target_files.py |