From 0b9c196214ddb5e60381d911b046b19d5cb5e5d0 Mon Sep 17 00:00:00 2001 From: Subrahmanyaman Date: Wed, 20 Jul 2022 17:26:12 +0000 Subject: [PATCH] Docs: return EARLY_BOOT_ENDED instead of INVALID_KEY_BLOB. All attempts to use an EARLY_BOOT_ONLY key after earlyBootEnded() is called must fail with Error::EARLY_BOOT_ENDED. Test: run vts -m VtsAidlKeyMintTarget Change-Id: Ic3d028ceb7f71e6e266993ec4e877770cd8e5c4a --- .../aidl/android/hardware/security/keymint/IKeyMintDevice.aidl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/keymint/aidl/android/hardware/security/keymint/IKeyMintDevice.aidl b/security/keymint/aidl/android/hardware/security/keymint/IKeyMintDevice.aidl index 2caa4d5b39..926d105053 100644 --- a/security/keymint/aidl/android/hardware/security/keymint/IKeyMintDevice.aidl +++ b/security/keymint/aidl/android/hardware/security/keymint/IKeyMintDevice.aidl @@ -815,7 +815,7 @@ interface IKeyMintDevice { /** * Called by client to notify the IKeyMintDevice that the device has left the early boot * state, and that keys with the EARLY_BOOT_ONLY tag may no longer be used. All attempts to use - * an EARLY_BOOT_ONLY key after this method is called must fail with Error::INVALID_KEY_BLOB. + * an EARLY_BOOT_ONLY key after this method is called must fail with Error::EARLY_BOOT_ENDED. */ void earlyBootEnded();