diff options
| author | 2025-02-16 20:02:53 -0800 | |
|---|---|---|
| committer | 2025-02-16 20:02:53 -0800 | |
| commit | 8ecbf1ca6de5af00dc37bb43c924f60fc20a113c (patch) | |
| tree | da0e0ff4bd7d64066f2af8c72cb7020278b964b9 | |
| parent | 88a7e3a5e371074f2d5af0471ceae4e7957a56f7 (diff) | |
| parent | a7d257cc8fc0055812b93912926e3f5bf827f162 (diff) | |
Merge "Fix pvmfw.img signing error" into main
| -rwxr-xr-x | tools/releasetools/sign_target_files_apks.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py index f1855a543d..2fa3fb5e89 100755 --- a/tools/releasetools/sign_target_files_apks.py +++ b/tools/releasetools/sign_target_files_apks.py @@ -910,8 +910,11 @@ def ProcessTargetFiles(input_tf_zip: zipfile.ZipFile, output_tf_zip: zipfile.Zip # b/384813199: handles the pre-signed com.android.virt.apex in GSI. if payload_key == 'PRESIGNED': - new_pubkey = GetMicrodroidVbmetaKey(virt_apex_path, - misc_info['avb_avbtool']) + with tempfile.NamedTemporaryFile() as virt_apex_temp_file: + virt_apex_temp_file.write(input_tf_zip.read(virt_apex_path)) + virt_apex_temp_file.flush() + new_pubkey = GetMicrodroidVbmetaKey(virt_apex_temp_file.name, + misc_info['avb_avbtool']) else: new_pubkey_path = common.ExtractAvbPublicKey( misc_info['avb_avbtool'], payload_key) |