OSDN Git Service

releasetools: Add two new entries to metadata.
authorTao Bao <tbao@google.com>
Thu, 4 Feb 2016 22:26:02 +0000 (14:26 -0800)
committerTao Bao <tbao@google.com>
Mon, 8 Feb 2016 19:00:27 +0000 (11:00 -0800)
commitd8d14bec0d9fb604060634729b4a09c7898d0c9a
tree522198b62da99c8e1a133e154864b1929fbd0880
parentdb82f72752532bf2b98103171b3d7cd8405b88e4
releasetools: Add two new entries to metadata.

Add "ota-required-cache" into the metadata file in an OTA package,
which shows the minimum free space on /cache to apply the update.

Add "ota-type" into the metadata file, which shows the OTA type for
this package (i.e. one of FILE, BLOCK and AB).

Also add the cache free space check into updater-script when generating
block-based incremental OTAs (we only had such lines for file-based
incrementals before).

Bug: 26731903
Change-Id: Id6ff0fc4cdfb1443636b0b3800b0f8bddb5bb1d0
tools/releasetools/blockimgdiff.py
tools/releasetools/common.py
tools/releasetools/edify_generator.py
tools/releasetools/ota_from_target_files.py