summaryrefslogtreecommitdiff
path: root/scripts/update_payload/common.py
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2020-03-25 15:16:01 -0700
committerTianjie <xunchang@google.com>2020-03-26 00:17:10 -0700
commit9406118b6d486901f6ae8f042d0761ed2206d611 (patch)
tree100b429a7b71353acc4a879d6418b9e2e5ff08f7 /scripts/update_payload/common.py
parent58397109efb8cf7dafdf5ffd878773ac68c37890 (diff)
Allow parsing boot image with header version 3
The boot image header version no longer contains a page_size field; and it assumes the block size is always 4096. Also, the order of the header fields are different in version 3 from the previous versions. While the position of "header_version" is fixed at position #9 across all image headers. This cl handles header version 3 separately from the previous versions. Also create a stub implementation since the parsing of boot image is only used in android. Bug: 152371989 Test: unit tests, generate incremental OTA for the affected package, build with stub file Change-Id: Iea2145e0c234216f9ee42c571bd53dc93b4b9d2e (cherry picked from commit 37ae85653198123fc28a4ce1de25d2e56ee6a3a2)
Diffstat (limited to 'scripts/update_payload/common.py')
0 files changed, 0 insertions, 0 deletions