From a5709bcfc13db7b1b66781b3bf6547c8a8e7114b Mon Sep 17 00:00:00 2001 From: Tommy Chiu Date: Fri, 10 Sep 2021 16:51:18 +0800 Subject: AVB: Add a flag to store AP is just wiping status DM_VERITY_KEYSCLEAR flag will be set along with the NUGGET_PARAM_NUKE_FROM_ORBIT call from recovery mode. After that bootloader will query this flag and send deleteAllKeys command to all other keymaster instances. Bug: 196043470 Test: wipe device from fastboot, recovery, fastbootd Change-Id: I3d531622c34fc5d9499a48a7dac5763562642858 Reviewed-on: https://nugget-os-review.googlesource.com/c/host/generic/+/47287 Presubmit-Verified: TreeHugger Robot Tested-by: Tommy Chiu Reviewed-by: Tommy Chiu Reviewed-by: Bill Richardson --- nugget/proto/nugget/app/avb/avb.proto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nugget/proto/nugget/app/avb/avb.proto b/nugget/proto/nugget/app/avb/avb.proto index bc0c700..9aec71e 100644 --- a/nugget/proto/nugget/app/avb/avb.proto +++ b/nugget/proto/nugget/app/avb/avb.proto @@ -53,13 +53,16 @@ enum LockIndex { } // GetState -message GetStateRequest {} +message GetStateRequest { + bool keysclear_reset = 1; +} message GetStateResponse { uint64 version = 1; bool bootloader = 2; bool production = 3; uint32 number_of_locks = 4; bytes locks = 5; + bool keysclear_required = 6; } // Load -- cgit v1.2.3