platform_build/tools/releasetools
Tianjie fb27b477d8 Use apksigner in check_target_files_signatures
Some apk files, e.g. Chrome.apk has switched to use v2+ scheme.
And the apk file no longer has a META-INF/CERT.RSA. So, the
signature parsing script should use apksigner to dump the cert
info.

Leave the parsing of META-INF/CERT.RSA as a fallback, as some apks
fail the `apksigner verify`. The script also switches to store the
digest of the cert instead of the raw bytes.

Bug: 157735036
Test: run check_target_files_signatures on aosp|signed target-files
(cherry picked from commit a9a50cf6e3)

Change-Id: I910cd1aa91d1e446bef7097871af4171c285685d
2020-07-14 21:48:48 -07:00
..
testdata Build merged apexkeys.txt/apkcerts.txt by partition. 2020-04-02 17:16:01 +00:00
add_img_to_target_files
add_img_to_target_files.py Include image descriptor of only the first boot image in vbmeta 2020-06-15 17:10:56 -07:00
Android.bp Add LZ4 support to the release tools 2020-06-11 15:22:04 +00:00
apex_utils.py sign_apex.py respects hash algorithm 2020-05-21 09:58:00 +09:00
blockimgdiff.py Support forcefully generating non-AB packages. 2020-05-07 12:48:17 -07:00
build_image.py Reland "Add a wrapper class PartitionBuildProp"" 2020-05-27 22:13:34 +00:00
build_super_image.py releasetools: Pass --virtual-ab to lpmake. 2019-12-16 22:17:28 +00:00
check_ota_package_signature.py releasetools: Clean up additional modules for Python 3 compatibility. 2019-06-26 00:15:53 -07:00
check_partition_sizes.py Fix Virtual A/B size checks 2019-11-05 14:06:23 -08:00
check_target_files_signatures
check_target_files_signatures.py Use apksigner in check_target_files_signatures 2020-07-14 21:48:48 -07:00
check_target_files_vintf.py Reland "Add a wrapper class PartitionBuildProp"" 2020-05-27 22:13:34 +00:00
common.py Add LZ4 support to the release tools 2020-06-11 15:22:04 +00:00
edify_generator.py Fix up _CheckSecondTokenNotSlotSuffixed function. 2020-06-30 14:49:04 -07:00
images.py Factor out the image classes to break circular dependency 2019-07-15 17:02:23 -07:00
img_from_target_files
img_from_target_files.py releasetools: img_from_target_files uses zip2zip. 2019-08-28 16:36:25 -07:00
make_recovery_patch.py Moving recovery resources from /system to /vendor 2019-10-04 00:04:34 +00:00
merge_builds.py Removes custom prefix/suffix from MergeDynamicPartitionInfoDicts. 2019-11-26 11:09:17 -08:00
merge_target_files.py Make the partition= tag optional. 2020-04-03 21:23:04 -07:00
ota_from_target_files
ota_from_target_files.py Fix the read on a closed zipfile 2020-06-13 14:35:14 -07:00
ota_package_parser.py
OWNERS releasetools: Update OWNERS. 2019-10-07 12:39:55 -07:00
pylintrc
rangelib.py releasetools: Make rangelib Python 3 compatibile. 2019-06-19 10:30:34 -07:00
sign_apex.py Allow passing in codename_to_api_level_map to sign_apex. 2020-04-25 18:30:24 +00:00
sign_target_files_apks
sign_target_files_apks.py Allow more than one '=' in avb_extra_custom_image_extra_args. 2020-05-25 15:11:30 -07:00
sparse_img.py Preserve the monotonic property when subtracting 0 block 2020-02-27 13:24:11 -08:00
target_files_diff.py
test_add_img_to_target_files.py Reland "Add a wrapper class PartitionBuildProp"" 2020-05-27 22:13:34 +00:00
test_apex_utils.py sign_apex.py respects hash algorithm 2020-05-21 09:58:00 +09:00
test_blockimgdiff.py Factor out the image classes to break circular dependency 2019-07-15 17:02:23 -07:00
test_build_image.py relesetools: Enable releasetools_test in presubmit. 2019-04-12 15:26:35 -07:00
test_check_partition_sizes.py Fix Virtual A/B size checks 2019-11-05 14:06:23 -08:00
test_check_target_files_vintf.py releasetools: Fix releasetools_py3_test. 2019-10-06 23:29:34 -07:00
test_common.py Reland "Calculate the runtime fingerprint prefixes from build prop" 2020-05-27 22:14:02 +00:00
TEST_MAPPING Additionally run releasetools_test with Python 3. 2019-07-09 05:14:31 +00:00
test_merge_target_files.py Build merged apexkeys.txt/apkcerts.txt by partition. 2020-04-02 17:16:01 +00:00
test_ota_from_target_files.py Add an option to input the boot variables for OTA package generation 2020-05-27 22:14:30 +00:00
test_rangelib.py
test_sign_apex.py Resign apks contained in apex 2020-01-27 19:48:39 +00:00
test_sign_target_files_apks.py Make the partition= tag optional. 2020-04-03 21:23:04 -07:00
test_utils.py releasetools: Move MockScriptWriter into test_utils. 2019-10-07 20:00:34 -07:00
test_validate_target_files.py releasetools: Support verifying files with non-monotonic ranges. 2019-10-03 23:21:22 -07:00
test_verity_utils.py releasetools: Make verity_utils Python 3 compatible. 2019-06-24 21:07:19 -07:00
validate_target_files.py Rename the boot image for avb validation 2020-06-26 16:44:14 +00:00
verity_utils.py Add options to sign the prebuilt custom images. 2020-05-21 22:22:19 +00:00