OSDN Git Service

releasetools: Support OTAs that have OEM properties changes.
authorTao Bao <tbao@google.com>
Mon, 7 Mar 2016 21:03:19 +0000 (13:03 -0800)
committerTao Bao <tbao@google.com>
Mon, 7 Mar 2016 21:14:49 +0000 (13:14 -0800)
commitc086370440bb32501da427718a7313f12ec2c841
treee99d2d6002da4520dfdbe039c5f7522b5dc4a45d
parent4e677900f7b0017fcd926dc66d778e355e6a1bae
releasetools: Support OTAs that have OEM properties changes.

We need to handle a special case that an OTA goes from a source build
without OEM properties to a target build with those properties (or vice
versa). Add support in OTA scripts to deal the case properly, by a)
using two oem_props variables to handle source and target builds
respectively; b) adjusting the fingerprint/thumbprint assertions to
allow a mix of both.

Change-Id: Ib517c366730b967a974c89528df9d42887c92ec2
tools/releasetools/edify_generator.py
tools/releasetools/ota_from_target_files.py