976035677c
microdroid_vendor.img is vendor image for running Microdroid, a type of VM run on top of Android. microdroid_vendor.img is currently stored in host device's vendor partition. However the original key signed for microdroid_vendor.img is not enrolled in the signing server, so it can make possible test breakage if there's a test checking all files in the partition is signed with trusted key. Therefore, this is the patch to resign micrdoroid_vendor.img with avb_vendor_key. When vendor image of host device is resigned with that key, microdroid_vendor.img would be resigned as well with the same key. Bug: 285855442 Test: First, for testing, modify the script to skip all files except VENDOR/etc/avf/microdroid/microdroid_vendor.img in ProcessTargetFiles. Second, run following commands and check if script doesn't throw any error until ProcessTargetFiles ends. - sign_target_files_apks --avb_vendor_key external/avb/test/data/testkey_rsa2048.pem --avb_vendor_algorithm SHA256_RSA2048 <source_zip_file> <target_zip_file> - sign_target_files_apks --avb_vendor_key external/avb/test/data/testkey_rsa4096.pem --avb_vendor_algorithm SHA256_RSA4096 <source_zip_file> <target_zip_file> - sign_target_files_apks --avb_vendor_key external/avb/test/data/testkey_rsa8192.pem --avb_vendor_algorithm SHA256_RSA8192 <source_zip_file> <target_zip_file> Third, `unzip <target_zip_file>` and do `avbtool info_image` Change-Id: I5337f61ab9eca7e6d0f92860486bc820b6e09eac |
||
---|---|---|
.. | ||
merge | ||
testdata | ||
add_img_to_target_files.py | ||
Android.bp | ||
apex_utils.py | ||
blockimgdiff.py | ||
build_image.py | ||
build_super_image.py | ||
care_map_pb2.py | ||
check_ota_package_signature.py | ||
check_partition_sizes.py | ||
check_target_files_signatures.py | ||
check_target_files_vintf.py | ||
common.py | ||
create_brick_ota.py | ||
edify_generator.py | ||
find_shareduid_violation.py | ||
fsverity_metadata_generator.py | ||
images.py | ||
img_from_target_files.py | ||
jarjar-rules.txt | ||
make_recovery_patch.py | ||
merge_ota.py | ||
non_ab_ota.py | ||
ota_from_raw_img.py | ||
ota_from_target_files.py | ||
ota_metadata.proto | ||
ota_metadata_pb2.py | ||
ota_package_parser.py | ||
ota_signing_utils.py | ||
ota_utils.py | ||
OWNERS | ||
payload_signer.py | ||
pylintrc | ||
rangelib.py | ||
sign_apex.py | ||
sign_target_files_apks.py | ||
sparse_img.py | ||
target_files_diff.py | ||
test_add_img_to_target_files.py | ||
test_apex_utils.py | ||
test_blockimgdiff.py | ||
test_build_image.py | ||
test_check_partition_sizes.py | ||
test_check_target_files_vintf.py | ||
test_common.py | ||
test_merge_ota.py | ||
test_non_ab_ota.py | ||
test_ota_from_target_files.py | ||
test_ota_utils.py | ||
test_rangelib.py | ||
test_sign_apex.py | ||
test_sign_target_files_apks.py | ||
test_utils.py | ||
test_validate_target_files.py | ||
test_verity_utils.py | ||
validate_target_files.py | ||
verity_utils.py |