From 8875f872de445d7c52a290266303fad3803f1c01 Mon Sep 17 00:00:00 2001 From: Janis Danisevskis Date: Sat, 20 Mar 2021 21:27:21 -0700 Subject: Keystore: Fix Device ID attestation test. Test: atest android.keystore.cts.KeyAttestationTest#testDeviceIdAttestation Bug: 182606921 Change-Id: Ie8dbc4a2829fb7f70188c5d903e748060c5869ce --- keystore/java/android/security/keystore/AttestationUtils.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'keystore') diff --git a/keystore/java/android/security/keystore/AttestationUtils.java b/keystore/java/android/security/keystore/AttestationUtils.java index 11c36893d984..1eb854187b32 100644 --- a/keystore/java/android/security/keystore/AttestationUtils.java +++ b/keystore/java/android/security/keystore/AttestationUtils.java @@ -287,6 +287,8 @@ public abstract class AttestationUtils { keyStore.deleteEntry(keystoreAlias); return certificateChain; + } catch (SecurityException e) { + throw e; } catch (Exception e) { throw new DeviceIdAttestationException("Unable to perform attestation", e); } -- cgit v1.2.3