-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError on some devices in non-primitive Adapter. #77
Comments
Could it also be a race - if you delete a preference between the contains check in RealPreference and get call in the adapter? |
Good thought! But, still, should RealPreference lock there? |
I found my original problem. So, contains() was true, and getString() was null for those broken devices. |
I've got about 20 distinct-device reports from Crashlytics that show an AssertionError in my StringAdapter.
The only way that could happen is if the device has a broken implementation of
SharedPreferences.contains()
orEditor.delete()
.Crashlytics shows about a third of the devices as rooted (honestly not sure if Crashlytics just does a
Runtime.getRuntime().exec("su")
or what), so I'm guessing 100% of them are using broken firmware.I'm closing these crash reports with prejudice, but has anybody observed this behavior?
I'm just hoping there isn't some Samsung phone that legitimately shipped with broken firmware that merits a workaround.
The text was updated successfully, but these errors were encountered: