Open minadaki opened 6 years ago
couldn't reproduce this issue but 57f976c safeguards the code that might have caused this issue. @minadaki can you please try the latest code and see if it fixes the issue?
Hello, Thank you for your fast reply. Unfortunately, even with the latest version, the app still crashes.
The library fails to initialise:
Haven't been able to reproduce this so far. Have you tested on any other device except the Samsung? @minadaki
I tried on a Motorolla phone running Android Oreo and it worked fine. After that I uninstalled my app from the Samsung S8 phone and cleared all the app's cache and data. Upon re-installing the app, the library initialised successfully and no crashes occurred. So where does that leave us? If I upload a new version of my app in Playstore including the changes, will the app crash after updating or not? Does update of the app clear cache and data (simulating the uninstall-install scenario) ?
Hello,
I am using the latest version of the library (0.7.2). I noticed that the init function was marked as deprecated so I tried to use the new init function (by the way, the description of the new function is missing the @param annotations for the newly added input fields).
The extra arguments of the new init function: private static final String SECURE_PREFS_NAME = "secPrefs";
private static final String SECURE_KEY_PREFIX = "testvss"; private static final byte[] SECURE_PREFS_SEED = "seed".getBytes();
The stack trace of the error: W/System.err: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at devliving.online.securedpreferencestore.SecuredPreferenceStore$MigrationHelper.migrateToV10(SecuredPreferenceStore.java:491) at devliving.online.securedpreferencestore.SecuredPreferenceStore$MigrationHelper.migrate(SecuredPreferenceStore.java:548) at devliving.online.securedpreferencestore.SecuredPreferenceStore$MigrationHelper.migrate(SecuredPreferenceStore.java:537) at devliving.online.securedpreferencestore.SecuredPreferenceStore.(SecuredPreferenceStore.java:60)
at devliving.online.securedpreferencestore.SecuredPreferenceStore.init(SecuredPreferenceStore.java:116)
at initializeSecurePreferences(Application.java:136).
Can you please check? Also, how can I enable the library specific logs?