platform_build/tools
Tao Bao ba557707d8 releasetools: Support validating Verified Boot images.
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
2018-03-12 00:17:09 -07:00
..
acp Use -Werror in build/make 2017-10-03 13:53:13 -07:00
apicheck PDK fix. Remove conditional that stops component from being in PDK. 2017-11-06 11:57:06 -08:00
atree Use -Werror in build/make 2017-10-03 13:53:13 -07:00
docker Add Docker instructions for older branches 2018-02-15 18:17:46 -08:00
droiddoc Replace build/tools with build/make/tools 2017-12-06 16:12:40 -08:00
fs_config Merge "Make mksquashfs generate a fs_config-friendly root entry" 2018-02-27 16:24:21 +00:00
fs_get_stats Use -Werror in build/make 2017-10-03 13:53:13 -07:00
libhost Fix / suppress warnings for clang+mingw 2017-11-29 20:54:33 -08:00
makeparallel Add -lm to the default libs for Linux & Darwin 2017-09-26 20:26:11 -07:00
releasetools releasetools: Support validating Verified Boot images. 2018-03-12 00:17:09 -07:00
signapk Convert signapk to Android.bp 2017-11-09 15:11:34 -08:00
signtos Convert signtos to Android.bp 2017-11-21 03:26:31 +00:00
zipalign zipalign: Fix build failure in static_sdk_tools. 2017-11-06 11:12:08 -08:00
ziptime Use -Werror in build/make 2017-10-03 13:53:13 -07:00
Android.mk Remove the need to find Android.mk files via directory symlinks 2017-08-07 14:21:20 -07:00
auto_gen_test_config.py Default test to AndroidJUnitTest for auto-generated test config. 2018-02-21 11:31:06 -08:00
auto_gen_test_config_test.py Default test to AndroidJUnitTest for auto-generated test config. 2018-02-21 11:31:06 -08:00
brillo-clang-format
buildinfo.sh Split board-specific system properties into vendor partition 2017-02-27 13:35:37 +09:00
check_builds.sh Replace build/tools with build/make/tools 2017-12-06 16:12:40 -08:00
check_link_type.py Fix link_type checking 2016-09-15 14:40:39 -07:00
check_radio_versions.py
checkowners.py Accept alternative email addresses. 2017-09-07 13:07:26 -07:00
compare_fileslist.py
dump-package-stats Ignore zip comments in dump-package-stats 2017-10-03 18:57:18 -07:00
event_log_tags.py
fat16copy.py fat16copy: Allow to copy files to an existing directory. 2017-02-13 16:00:07 +00:00
fileslist_util.py build: tools: Add json collection of installed files with hashes. 2016-10-20 10:07:13 -07:00
filter-product-graph.py
findleaves.py findleaves.py: prevent recursion into symlink loops 2016-11-03 14:29:40 -07:00
fixlinebreaks.sh
generate-enforce-rro-android-manifest.py Enforce RROs for all the build-time ROs 2017-03-30 10:43:38 +09:00
generate-notice-files.py Silence superfluous build messages. 2017-11-15 10:34:01 -08:00
java-event-log-tags.py Allow converting logtags to java without merged logtags file 2017-11-16 14:58:05 -08:00
java-layers.py
merge-event-log-tags.py
mktarball.sh
normalize_path.py
OWNERS Add OWNERS in build/make 2017-06-21 16:09:56 -07:00
parsedeps.py
post_process_props.py Merge "Allow ro. properties to have arbitrary lengths" 2017-10-17 22:42:04 +00:00
print_module_licenses.sh
product_debug.py
soong_to_convert.py Add java modules to soong_to_convert.txt 2017-12-06 15:38:52 -08:00
vendor_buildinfo.sh Rename ro.vendor.product.* to ro.product.vendor.* 2017-11-01 10:11:32 +09:00
warn.py Warn.py: Update errorprone categories 2018-01-25 12:25:20 -08:00