GkiComplianceV2: Check |.os_version| and |.recovery_dtbo_[size|offset]|
.os_version mustn't be defined for Android T+ GKI, instead these value
should be defined in vbmeta for consistency.
.recovery_dtbo_size & .recovery_dtbo_offset mustn't be defined for the
'boot' partition image, because 'boot' is obviously not 'recovery'.
Also adjust some code for consistency:
GetBootHeaderVersion(boot_image->data())
=> boot_image->header_version()
And harden reinterpret_cast<> to static_cast<>.
Bug: 211741246
Test: atest vts_gki_compliance_test
Change-Id: I7c12bc77cb27277521407e253347fac702f13372
1 file changed