I'm using FingerprintManager for login process. I'm expecting a KeyPermanentlyInvalidatedException
exception when user adds a new Fingerprint to the existing set. I use this exception to show a appropriate dialog to user during login.
In Samsung devices, this exception is not thrown which is causing the issue.
keyStore.load(null);
final PrivateKey privateKey = (PrivateKey) keyStore.getKey(KEY_NAME, KEY_PASSWORD);
final Signature signature = Signature.getInstance("SHA256withECDSA");
signature.initSign(privateKey);
Any leads please?