OSDN Git Service

releasetools: Always write the last block if it's padded.
authorTao Bao <tbao@google.com>
Sun, 6 Sep 2015 03:35:32 +0000 (20:35 -0700)
committerTao Bao <tbao@google.com>
Tue, 8 Sep 2015 17:55:32 +0000 (10:55 -0700)
commit28f6f9c3deb4d23fd627d15631d682a5cfa989fc
treea3b969ed8f925a4d836c39faca7cf74733ffc957
parenta6e6afbce69da968299898944bb2165f5e799886
releasetools: Always write the last block if it's padded.

In BBOTAs if the last block of a DataImage is padded, we should always
write the whole block even for incremental OTAs. Because otherwise the
last block may be skipped if unchanged, but would fail the post-install
verification if it has non-zero contents in the padding bytes.

Bug: 23828506
Change-Id: I6f6789eec568ed0b808b9e425f5ecdbea1bdf446
(cherry picked from commit 7589e961a7b8b7d964704db87f83ed8811e97ac6)
tools/releasetools/blockimgdiff.py