Android 12 Keystore creation issue
Overview
Symptoms
// Initialize Device CVM for the wallet
DeviceCVMManager.INSTANCE.initialize(CHVerificationMethod.BIOMETRICS);java.security.KeyStoreException: Failed to store private key
at android.security.keystore2.AndroidKeyStoreSpi.setPrivateKeyEntry(AndroidKeyStoreSpi.java:581)
at android.security.keystore2.AndroidKeyStoreSpi.engineSetEntry(AndroidKeyStoreSpi.java:1211)
at java.security.KeyStore.setEntry(KeyStore.java:1617)
at java.lang.reflect.Method.invoke(Native Method)
…
Caused by: android.security.KeyStoreException: Keystore not initialized
at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:384)
at android.security.KeyStoreSecurityLevel.handleExceptions(KeyStoreSecurityLevel.java:59)
at android.security.KeyStoreSecurityLevel.importKey(KeyStoreSecurityLevel.java:204
…Root cause
Affected Android versions and devices
Vendor
Model
Android version
API level
Workarounds and next steps
Last updated
Was this helpful?