Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1477048 authored by David Drysdale's avatar David Drysdale
Browse files

Add missing Keystore error metadata

The last two error codes that were added to `ResponseCode` in the
`IKeystoreService` AIDL interface did not get mappings to error
metadata.

Test: CtsKeystoreTestCases
Bug: 400439023
Flag: EXEMPT bug fix
Change-Id: Ib3d6f4e42cbe25923c1951db38f73407c636b9ec
parent 9944e235
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -690,5 +690,10 @@ public class KeyStoreException extends Exception {
                        ERROR_ATTESTATION_KEYS_UNAVAILABLE));
        sErrorCodeToFailureInfo.put(ResponseCode.OUT_OF_KEYS_PERMANENT_ERROR,
                new PublicErrorInformation(IS_SYSTEM_ERROR, ERROR_ATTESTATION_KEYS_UNAVAILABLE));
        sErrorCodeToFailureInfo.put(ResponseCode.GET_ATTESTATION_APPLICATION_ID_FAILED,
                new PublicErrorInformation(
                        IS_SYSTEM_ERROR | IS_TRANSIENT_ERROR, ERROR_INTERNAL_SYSTEM_ERROR));
        sErrorCodeToFailureInfo.put(ResponseCode.INFO_NOT_AVAILABLE,
                new PublicErrorInformation(IS_SYSTEM_ERROR, ERROR_INTERNAL_SYSTEM_ERROR));
    }
}