OSDN Git Service

releasetools: Disable using imgdiff for squashfs.
authorTao Bao <tbao@google.com>
Sat, 11 Jun 2016 19:19:23 +0000 (12:19 -0700)
committerTao Bao <tbao@google.com>
Mon, 13 Jun 2016 17:04:23 +0000 (10:04 -0700)
commit293fd135c7bc0c21b41f1782d21c26de64e8854a
treea69beb8d032354b2497bb0e922b3a5399b228158
parentd06f07eef48005a3fa99fdd0ca5380d60c5ae459
releasetools: Disable using imgdiff for squashfs.

We use imgdiff to handle files in zip format (e.g. jar/zip/apk) for
higher compression ratio.

For system/vendor in squashfs, a) all files are compressed in LZ4
format; b) we use 4096-byte block size in their sparse images, but the
files in squashfs may not be laid out as 4K-aligned. So the blocks for
a given file as listed in block map may not form a valid zip file, which
may fail the patch generation with imgdiff.

Disable using imgdiff for squashfs images, and use bsdiff instead.

Bug: 22322817
Change-Id: Ie76aa4cece5c9d38cb1d1a34c505a4a8f37512d3
tools/releasetools/blockimgdiff.py
tools/releasetools/common.py
tools/releasetools/ota_from_target_files.py