Update: Now there is a detailed blog post about how Firebase components are initialized .
Firebase Crash Reporting (in addition to other Firebase components) automatically initializes the ContentProvider included in your application. First ContentProviders are created, then your Application subclass, then any component has been called (Activity, Service, BroadcastReciever).
When your project depends on the Android library project (aar file), all of its manifest entries are merged into your application, so you can get this ContentProvider for free by announcing a firebase crash dependency declaration.
I talked about how it all works in Google I / O 2016. Go to 16:22 to start crash reporting specific content.
Unfortunately, there is currently no way to programmatically enable or disable crash reports, but this is coming soon.
source share