OSDN Git Service

releasetools: Only verify the blocks to be touched.
authorTao Bao <tbao@google.com>
Tue, 12 Apr 2016 22:53:16 +0000 (15:53 -0700)
committerTao Bao <tbao@google.com>
Tue, 12 Apr 2016 23:41:01 +0000 (16:41 -0700)
commitd522bdc9edbf64d15a59c6924853b2e2c8c39e90
tree6b5105c5f69774b5ecad892569391c9cf74a271e
parent3ebddd40e0b3c0848bb066e1e39c406c7a852100
releasetools: Only verify the blocks to be touched.

For incremental BBOTAs, we used to verify the integrity of all the
blocks in the source partition. In order to reduce the time cost under
recovery, this CL changes to only verify the blocks that will be touched
in the given OTA package (BBOTA >= 3 only). This is a trade-off between
performance and reliability.

Bug: 27813356
Change-Id: I3975ae6f461f0f7e58d24f1df7df46a449d2988b
tools/releasetools/blockimgdiff.py
tools/releasetools/common.py
tools/releasetools/ota_from_target_files.py