diff options
author | 2023-12-06 19:10:20 +0000 | |
---|---|---|
committer | 2024-02-06 11:24:44 +0000 | |
commit | 49b45a95c88c4383e1ffb1001d96b3a5ab630696 (patch) | |
tree | e01a943271b295df42b1d7d35c1d01f5c595fd59 /keystore/aaid | |
parent | 792d5b0e2d2800d6bf58784406cb3e1a8587ec2b (diff) |
Raise an error when unable to get Attestation Application ID
We add this error for AAID in cases where the call to keystore2
fails. We do not want to fail here because the error could
be transient. We return this error to indicate to the caller that
we should retry this call before failing completly. This stops
attestation from happening without a key and exposing the clients
generating information.
Test: atest CtsKeystoreTestCases
Bug: 291583874
Change-Id: Icd8facd3df38a70e810115a60a2950f85511f4c2
Diffstat (limited to 'keystore/aaid')
-rw-r--r-- | keystore/aaid/aidl/android/security/keystore/IKeyAttestationApplicationIdProvider.aidl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/keystore/aaid/aidl/android/security/keystore/IKeyAttestationApplicationIdProvider.aidl b/keystore/aaid/aidl/android/security/keystore/IKeyAttestationApplicationIdProvider.aidl index c360cb8f281a..cfc5980e009a 100644 --- a/keystore/aaid/aidl/android/security/keystore/IKeyAttestationApplicationIdProvider.aidl +++ b/keystore/aaid/aidl/android/security/keystore/IKeyAttestationApplicationIdProvider.aidl @@ -20,8 +20,14 @@ import android.security.keystore.KeyAttestationApplicationId; /** @hide */ interface IKeyAttestationApplicationIdProvider { + const int ERROR_GET_ATTESTATION_APPLICATION_ID_FAILED = 1; + /** * Provides information describing the possible applications identified by a UID. + * + * In case of not getting package ids from uid return + * {@link #ERROR_GET_ATTESTATION_APPLICATION_ID_FAILED} to the caller. + * * @hide */ KeyAttestationApplicationId getKeyAttestationApplicationId(int uid); |