diff options
author | Tianjie <xunchang@google.com> | 2020-03-25 15:16:01 -0700 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2020-03-26 05:38:47 +0000 |
commit | 37ae85653198123fc28a4ce1de25d2e56ee6a3a2 (patch) | |
tree | b184b48c152f8d3419bec37ad17cb3db79443413 /common/dynamic_partition_control_stub.cc | |
parent | 35c71f73be194f29dfd63141df1608680aeae7f3 (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
Diffstat (limited to 'common/dynamic_partition_control_stub.cc')
0 files changed, 0 insertions, 0 deletions