Skip to content

v2.0.3

Compare
Choose a tag to compare
@Mauin Mauin released this 08 Feb 19:08
· 25 commits to master since this release

This release will improve behavior of the library when KeyPermanentlyInvalidatedExceptions are thrown because the user has changed his lockscreen setup.
From this release on RxFingerprint will remove and renew the given key in the Android Keystore if a KeyPermanentlyInvalidatedException is thrown during encryption.

The overall behavior is unchanged:

  • You receive a onError notification containing a KeyPermanentlyInvalidatedException letting you know that you need to re-encrypt the users secrets.
  • The next time you call RxFingerprint.encrypt() the given key will now be renewed to make it usable again. (see issue #24 which raised the issue that it was not usable again before)

Fixes:

  • #34 Remove and renew keys on encrypt when KeyPermanentlyInvalidated exception is thrown
  • #38 Adds additional checks to ensure that the Fingerprint APIs are available on the device (this is a follow up to the FingerprintManagerCompat workaround in v2.0.2)