bootimg_analyze: Add support for boot header version 3 (MR 2073)

This commit is contained in:
Anri Dellal 2021-06-19 18:50:27 +03:00 committed by Alexey Min
parent 9d22989a88
commit d764b0de58
No known key found for this signature in database
GPG key ID: EBF5ECFFFEE34DED
4 changed files with 53 additions and 20 deletions

View file

@ -99,3 +99,14 @@ def test_bootimg_dtb_second(args):
"mtk_mkimage": "false",
"dtb_second": "true"}
assert pmb.parse.bootimg(args, path) == output
def test_bootimg_v3(args):
path = pmb_test.const.testdata + "/bootimg/boot-header-v3.img"
output = {"header_version": "3",
"pagesize": "4096",
"cmdline": "twrpfastboot=1",
"qcdt": "false",
"mtk_mkimage": "false",
"dtb_second": "false"}
assert pmb.parse.bootimg(args, path) == output