OSDN Git Service

Restrict the verification in block-based incremental OTAs
authorTao Bao <tbao@google.com>
Thu, 12 Mar 2015 19:32:37 +0000 (12:32 -0700)
committerTao Bao <tbao@google.com>
Thu, 12 Mar 2015 20:47:04 +0000 (13:47 -0700)
commitdaebaa6ed3fbf4e7943e6c8290ec6b9233b542e9
tree0caf7040e82af7f40c5d79e195f5dfff24eaea7b
parent3c242c5ddb8b867b916875c8e05c260a9d8571b6
Restrict the verification in block-based incremental OTAs

BlockImageDiff has three versions. Only the incremental OTAs generated
with the latest version (3) can be re-applied to the system that's
already on the target build. Otherwise, operations like move will make
unconditional changes and damage the system. During the verification
phase, abort the OTA update if BlockImageDiff is less than 3 and it
doesn't match the checksum of the source build.

Change-Id: I3a776495b69e1d174fcb01b10e40c0e912914fd8
tools/releasetools/common.py
tools/releasetools/ota_from_target_files