OSDN Git Service

Add support for clobbered blocks
authorTao Bao <tbao@google.com>
Tue, 12 May 2015 18:42:31 +0000 (11:42 -0700)
committerTao Bao <tbao@google.com>
Wed, 12 Aug 2015 04:02:45 +0000 (21:02 -0700)
commit007979ee7543a396d97b3e9ada21aca44d503597
treeed385051cfca51aa097f7a82e8d4e485296c3975
parent12f449756587b83cd6a04c793e05b837ceb41563
Add support for clobbered blocks

In ext4 filesystems, some blocks might be changed even being mounted
R/O, such as the superblock (block 0). We need to exclude such blocks
from integrity verification. Plus such blocks should always be
written to the target by copying instead of patching.

Bug: http://b/20939131
Change-Id: If9efab3d7a0071a87b4d4297daf7963c3b818afe
(cherry picked from commit ff7778166bd13a90c89fa333591ee2037f587a11)
tools/releasetools/blockimgdiff.py
tools/releasetools/common.py
tools/releasetools/ota_from_target_files
tools/releasetools/sparse_img.py