aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommy Chiu <tommychiu@google.com>2021-09-10 16:51:18 +0800
committerTreeHugger Robot <android-build-prod@system.gserviceaccount.com>2021-09-17 03:59:02 +0000
commita5709bcfc13db7b1b66781b3bf6547c8a8e7114b (patch)
treeccd1e3b3745b5e8e315ff82777c50a56989a3761
parent8d77e40c71d5ee0ae857ec5d4691306763ec714e (diff)
downloadgeneric-a5709bcfc13db7b1b66781b3bf6547c8a8e7114b.tar.gz
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 <android-build-prod@system.gserviceaccount.com> Tested-by: Tommy Chiu <tommychiu@google.com> Reviewed-by: Tommy Chiu <tommychiu@google.com> Reviewed-by: Bill Richardson <wfrichar@google.com>
-rw-r--r--nugget/proto/nugget/app/avb/avb.proto5
1 files changed, 4 insertions, 1 deletions
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