Allowing verification error when checking hashtree algorithm

Commit Ia4a5de7c2bbf74b241fe30dde6f57b075e17e5bc checks the
hashtree algorithm for each hashtree descriptors returned
from libavb->avb_slot_verify(). It also asserts the verify
result returned from the function should be AVB_SLOT_VERIFY_RESULT_OK.

However, in VTS, a boot-debug.img or vendor_boot-debug.img will
be used. In this case, libavb->avb_slot_verify() might return a
non-fatal error result, e.g., AVB_SLOT_VERIFY_RESULT_ERROR_VERIFICATION or
AVB_SLOT_VERIFY_RESULT_ERROR_PUBLIC_KEY_REJECTED, because a
boot-debug.img or vendor_boot-debug.img is not release key signed.

Relaxing the assert to allow non-fatal error results.

Bug: 196352535
Test: Run VtsSecurityAvbTest with --gtest_filter=*HashtreeAlgorithm

Change-Id: I31b7607aa6a5d5ea5346fc268e591d56a2791a88
Merged-In: I31b7607aa6a5d5ea5346fc268e591d56a2791a88
(cherry picked from commit d04a57189dd6317f9439fdb0e37f70679319b080)
1 file changed