OSDN Git Service

Monotonic flag sets incorrectly in rangelib
authorTianjie Xu <xunchang@google.com>
Fri, 8 Apr 2016 03:17:48 +0000 (20:17 -0700)
committerTianjie Xu <xunchang@google.com>
Wed, 13 Apr 2016 19:36:14 +0000 (12:36 -0700)
commitcd1e16a7616092e5a315b0a421a0c082da144145
treeefe7c474e5670c4f2434f418b94fc1035085dac8
parenta034129176d8821efc2bc8d33e06d9aeb4d3fd16
Monotonic flag sets incorrectly in rangelib

After applying update_target_files_incr_ext4.sh, some files may end up
occupying unsorted block fragments. In one example, an apk file has the
block range [258768-259211,196604]. The monotonic flag in rangelib sets
incorrectly for this example and leads to a bad input file for imgdiff.
After fixing the flag, bsdiff is called instead of imgdiff and the
incremental OTA package generates successfully.

Bug:28053885
Change-Id: Ib841bf449ff6a29314fc4a1b8fba941a6dc532ac
tools/releasetools/rangelib.py
tools/releasetools/test_rangelib.py