summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-01-29 23:16:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-01-29 23:16:02 +0000
commit9ef9cf40e2803a576d4f8961434a82e98831211f (patch)
treebc0ae64830044b3c63ae0234e892014268da335c
parent066828ebd438f1ad2c4645710f5c6c1f7a235a7b (diff)
parentdc9505de44c70e701cdf27c7f7d8d9de5217f4b6 (diff)
downloadlibhardware-9ef9cf40e2803a576d4f8961434a82e98831211f.tar.gz
Merge "Add "Unlocked device required" parameter to keys"
-rw-r--r--include/hardware/keymaster_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hardware/keymaster_defs.h b/include/hardware/keymaster_defs.h
index 6e812f29..25a4faac 100644
--- a/include/hardware/keymaster_defs.h
+++ b/include/hardware/keymaster_defs.h
@@ -112,6 +112,8 @@ typedef enum {
KM_TAG_ALLOW_WHILE_ON_BODY = KM_BOOL | 506, /* Allow key to be used after authentication timeout
* if device is still on-body (requires secure
* on-body sensor. */
+ KM_TAG_UNLOCKED_DEVICE_REQUIRED = KM_BOOL | 508, /* Require the device screen to be unlocked if the
+ * key is used. */
/* Application access control */
KM_TAG_ALL_APPLICATIONS = KM_BOOL | 600, /* Specified to indicate key is usable by all
@@ -452,6 +454,7 @@ typedef enum {
KM_ERROR_KEYMASTER_NOT_CONFIGURED = -64,
KM_ERROR_ATTESTATION_APPLICATION_ID_MISSING = -65,
KM_ERROR_CANNOT_ATTEST_IDS = -66,
+ KM_ERROR_DEVICE_LOCKED = -71,
KM_ERROR_UNIMPLEMENTED = -100,
KM_ERROR_VERSION_MISMATCH = -101,