feat: optionally disable Firebase Crashlytics in de Volkskrant and De Gelderlander #31

Closed
opened 2026-10-10 12:22:48 +02:00 by midas · 1 comment
Owner

Part of #16. Implement according to the decision in #20. This should be an option that is off by default.

Feature description

Both apps force Crashlytics collection on at runtime, although the manifest default is off. Crash reports are less invasive than analytics, and they help DPG fix bugs. Still, some users want no telemetry at all. Offer it as an opt-in option of the tracking patch, not as default behaviour.

Findings

  • de Volkskrant (7.52.0):
    • CrashlyticsStartupTask.onStartup() enables collection in release builds (pref "firebase_crashlytics_collection_enabled") and sets the user id.
    • The manifest default is firebase_crashlytics_collection_enabled=false.
  • De Gelderlander (9.21.1):
    • g9d.f (TrackingStarter, anchor "com.kubusapp.tracking.TrackingStarter") calls FirebaseCrashlytics.setCrashlyticsCollectionEnabled(true).
    • The Timber tree pe2 sends logs to Crashlytics in release (MainApplication.G).

Approach

  • Hook the unobfuscated Firebase SDK method FirebaseCrashlytics.setCrashlyticsCollectionEnabled(boolean) and force its argument to false. That works the same in both apps, so it can be a shared dpg/ hook.
  • Volkskrant: also check CrashlyticsStartupTask for a direct pref write that bypasses the SDK call.
  • Patches we ship ourselves can crash too. Keeping Crashlytics on means DPG receives crash reports from patched builds. Mention that in the option description.

Done when

  • Build passes; the option applies on both apps.
  • Device check (after asking): no crashlytics / firebase-settings requests with the option on.
  • Documented in both docs/apps/*.md.

Midas Settings

This replaces the "opt-in patch option" idea: Crashlytics gets a Midas Settings toggle (#49) instead of a Morphe Manager option.

  • Toggle: Crashrapporten uitschakelen (disable_crash_reports), category "Privacy", default off (crash reports stay on).
  • Read in the setCrashlyticsCollectionEnabled hook. Takes effect after an app restart.
Part of #16. Implement according to the decision in #20. This should be an option that is off by default. ## Feature description Both apps force Crashlytics collection on at runtime, although the manifest default is off. Crash reports are less invasive than analytics, and they help DPG fix bugs. Still, some users want no telemetry at all. Offer it as an opt-in option of the tracking patch, not as default behaviour. ## Findings - de Volkskrant (7.52.0): - `CrashlyticsStartupTask.onStartup()` enables collection in release builds (pref `"firebase_crashlytics_collection_enabled"`) and sets the user id. - The manifest default is `firebase_crashlytics_collection_enabled=false`. - De Gelderlander (9.21.1): - `g9d.f` (TrackingStarter, anchor `"com.kubusapp.tracking.TrackingStarter"`) calls `FirebaseCrashlytics.setCrashlyticsCollectionEnabled(true)`. - The Timber tree `pe2` sends logs to Crashlytics in release (`MainApplication.G`). ## Approach - Hook the unobfuscated Firebase SDK method `FirebaseCrashlytics.setCrashlyticsCollectionEnabled(boolean)` and force its argument to false. That works the same in both apps, so it can be a shared `dpg/` hook. - Volkskrant: also check `CrashlyticsStartupTask` for a direct pref write that bypasses the SDK call. - Patches we ship ourselves can crash too. Keeping Crashlytics on means DPG receives crash reports from patched builds. Mention that in the option description. ## Done when - [ ] Build passes; the option applies on both apps. - [ ] Device check (after asking): no `crashlytics` / `firebase-settings` requests with the option on. - [ ] Documented in both `docs/apps/*.md`. ## Midas Settings This replaces the "opt-in patch option" idea: Crashlytics gets a Midas Settings toggle (#49) instead of a Morphe Manager option. - Toggle: **Crashrapporten uitschakelen** (`disable_crash_reports`), category "Privacy", default **off** (crash reports stay on). - Read in the `setCrashlyticsCollectionEnabled` hook. Takes effect after an app restart.
Author
Owner

Implemented and verified on device in ab05dc1 with the Midas Settings toggle disable_crash_reports.

Implemented and verified on device in ab05dc1 with the Midas Settings toggle disable_crash_reports.
midas closed this issue 2026-10-10 15:24:51 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#31
No description provided.