releasetools: Specify max_timestamp for secondary payload.

This is a mandatory field in the generated payload.

Bug: 35724498
Test: Generate OTA with --include_secondary. Check the generation
      command for secondary payload.
Change-Id: Ib2e25cc020e294eae5a4be36d6dca297432804b8
Merged-In: Ib2e25cc020e294eae5a4be36d6dca297432804b8
(cherry picked from commit 6048121485)
This commit is contained in:
Tao Bao 2018-02-09 23:15:05 -08:00
parent 55e571f0b6
commit db1fe41bbe
1 changed files with 2 additions and 1 deletions

View File

@ -1336,7 +1336,8 @@ def WriteABOTAPackageWithBrilloScript(target_file, output_file,
# building an incremental OTA. See the comments for "--include_secondary".
secondary_target_file = GetTargetFilesZipForSecondaryImages(target_file)
secondary_payload = Payload(secondary=True)
secondary_payload.Generate(secondary_target_file)
secondary_payload.Generate(secondary_target_file,
additional_args=additional_args)
secondary_payload.Sign(payload_signer)
secondary_payload.WriteToZip(output_zip)