OSDN Git Service

releasetools: Support generating downgrade A/B OTAs.
authorTao Bao <tbao@google.com>
Tue, 7 Feb 2017 19:21:17 +0000 (11:21 -0800)
committerTao Bao <tbao@google.com>
Tue, 7 Feb 2017 20:25:59 +0000 (12:25 -0800)
commitb31892e5de3259e5bcce3b43399f9fa7f723f81d
treec4f0060b9d250aa3deb8530729d888e98ed6c714
parentb09fef915897a904ec1006db70f7ba9654740b81
releasetools: Support generating downgrade A/B OTAs.

We already support generating downgrade OTAs for non-A/B devices (with
mandatory data wipe), but we have missed the --downgrade flag in A/B OTA
path.

This CL factors out the function that writes the downgrade metadata, and
fixes the path for generating A/B OTAs.

Bug: 35094540
Test: Generate incrementals with --downgrade for A/B and non-A/B OTAs.
Change-Id: I30b9bf83e69e8aba3be666507681b555db6ab743
tools/releasetools/ota_from_target_files.py