Allow passing in payload signer for ota signing.
BUG: 244632678 Test: TH Change-Id: I12c45ac378a0d4c58b146115bc69b8e6d85a3075
This commit is contained in:
parent
3cb8cbd4ab
commit
968b961fb6
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue