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>
Thu, 16 Mar 2017 16:47:10 +0000 (16:47 +0000)
commit99c17252ac1154d90f1ac106a44c2c8c27cb5892
tree4340f1d7c7f0bb66466a333c03872bf1f5443d20
parent5e04c38bbd598390d26394b3ddb3097f8e4a1085
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
Bug: 36183651
Test: Generate incrementals with --downgrade for A/B and non-A/B OTAs.
Change-Id: I30b9bf83e69e8aba3be666507681b555db6ab743
Merged-In: I30b9bf83e69e8aba3be666507681b555db6ab743
(cherry picked from commit b31892e5de3259e5bcce3b43399f9fa7f723f81d)
tools/releasetools/ota_from_target_files.py