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>
Sun, 6 Sep 2015 03:54:55 +0000 (20:54 -0700)
commit7589e961a7b8b7d964704db87f83ed8811e97ac6
tree009b64b04ba7388b70688dcf017d6ec9327f1b74
parent762746705c7414985dbd457481dd33d4c69adcbb
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: I4b0af7344d18261258cd48d18c029c089d6ff365
tools/releasetools/blockimgdiff.py