FlowContentObserver Crash on Android O
See original GitHub issueDBFlow Version: 4.0.3 Issue Kind (Bug, Question, Feature): Bug/Question
Description:
Calling registerForContentChanges() on FlowContentObserver causes
java.lang.SecurityException: Failed to find provider
TimeEntry_Model for user 0; expected to find a valid ContentProvider for this authority
This link explains the change in Android O https://developer.android.com/preview/behavior-changes.html#ccn
In debugging I found that the Uri DBFlow uses for my model is dbflow://%60TimeEntry_Model%60 I’ve tried adding that to the authorities property for my content provider in the android manifest file. I also tried adding TimeEntry_Model
. However, I always get the same crash.
My question is does this change in Android require something to change in DBFlow, or am I just not specifying the correct authority for my database model?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:15 (5 by maintainers)
Top GitHub Comments
fixed. https://github.com/Raizlabs/DBFlow/releases/tag/4.2.0
observeOnTableChanges in the RX implementation also don’t seem to work anymore on Oreo, and when removing .modelNotifier(DirectModelNotifier.get()) from the init it goes back to SecurityException with the invalid uri.