sameerkapps / SecureStorage

118 stars 32 forks source link

AndroidKeyStore reset when it has become unreadable #47

Open gmarrot opened 5 years ago

gmarrot commented 5 years ago

Before Android 6.0, the Android KeyStore can become inaccessible on some devices when the user has changed the screen lock method. The application cannot read or write in it anymore.

To limit this issue, I have modified the AndroidKeyStore class to clear storage and regenerate the key when the existing one cannot be unwrap.