android: change the verification mode
The mode AVB_HASHTREE_ERROR_MODE_RESTART_AND_INVALIDATE will add "androidboot.vbmeta.invalidate_on_error=yes" to cmdline, and kernel will invalidate vbmeta if verified fail. This will modify the vbmeta.img head and make uboot verify vbmeta.img fail in avb system. And in avb & ab system, we can use the retry-count to change slot if verify fail without modify the vbmeta. So just use the mode AVB_HASHTREE_ERROR_MODE_RESTART. Change-Id: I98d60683d5365b996fcca2e85d4847d4a6df2ef6 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
parent
b754d47013
commit
e1c1c23dd8
|
|
@ -629,7 +629,7 @@ static AvbSlotVerifyResult android_slot_verify(char *boot_partname,
|
|||
requested_partitions,
|
||||
slot_suffix,
|
||||
flags,
|
||||
AVB_HASHTREE_ERROR_MODE_RESTART_AND_INVALIDATE,
|
||||
AVB_HASHTREE_ERROR_MODE_RESTART,
|
||||
&slot_data[0]);
|
||||
|
||||
strcat(verify_state, ANDROID_VERIFY_STATE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue