scottyab / secure-preferences

Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure.
1.53k stars 235 forks source link

SecurePreferences.getString() throws java.lang.IllegalStateException #87

Open jmcarcedo opened 5 years ago

jmcarcedo commented 5 years ago

I'm currentlly working in a proyect that uses a library to wrap secure-preferences. Google Play is recently reporting crashes in production with android 8.0 and 8.1 devices (mostly Galaxys S7, S9, A7 and A8) when trying to get a values from secure preferences.

When doing a SecurePreferences.getString() we recieve a java.lang.IllegalStateException and we can`t figure out where is the actual problem.

We tried to replicate the error with multiple devices but we didn`t encounter any problem and we run out of ideas.

I tried reading the code and even read tozny/java-aes-crypto looking for any clue but still can`t figure out what's happening.

Thank you in advance for any information anyone could provide me.

bitwalrus0 commented 5 years ago

Same. Can't figure out what it is, and now getInt is crashing in prod and my users are having to re-install the entire app. Unbelievable.