Error after Fingerprint touched on Samsung phones: android.security.KeyStoreException: Key user not authenticated

后端 未结 9 1180
醉酒成梦
醉酒成梦 2020-12-14 19:48

My app uses Android 6.0 Fingerprint API to protect AES key in the Android KeyStore. The stored key can be used only when user is authenticated by fingerprint sensor because

9条回答
  •  庸人自扰
    2020-12-14 20:12

    I also had this issue when using Samsung Galaxy S8 with android 8. For solve this problem I just remove key from keystore and generate new after that use new key for encrypt and decrypt data

    try {
        keyStore.deleteEntry(KEY_ALIAS);
    } catch (KeyStoreException e) {
        e.printStackTrace();
    }
    

提交回复
热议问题