Allow passing in payload signer for ota signing.

BUG: 244632678
Test: TH
Change-Id: I12c45ac378a0d4c58b146115bc69b8e6d85a3075
This commit is contained in:
Baligh Uddin 2022-09-08 02:17:58 +00:00
parent 3cb8cbd4ab
commit 968b961fb6

View file

@ -969,8 +969,10 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
)
# Sign the payload.
pw = OPTIONS.key_passwords[OPTIONS.package_key]
payload_signer = PayloadSigner(
OPTIONS.package_key, OPTIONS.private_key_suffix)
OPTIONS.package_key, OPTIONS.private_key_suffix,
pw, OPTIONS.payload_signer)
payload.Sign(payload_signer)
# Write the payload into output zip.