fix(kubus): Disable tracking also skips the start-up FIAM suppression #58

Closed
opened 2026-10-11 09:15:12 +02:00 by midas · 1 comment
Owner

Found in the codebase review (2026-10-11).

kubus/tracking/DisableTrackingPatch.kt (step 2) puts a return-void at index 0 of TrackingStarter.g() (g9d.g() in 9.21.1). Decompiled, that method is:

public final void g() {
    ov5.INSTANCE.a(true);          // FirebaseInAppMessaging.setMessagesSuppressed(TRUE)
    ch chVar = ch.a;
    chVar.c(this.firebaseAnalyticsStrategy);
    chVar.r(true);
}

So the early return also skips the app's own default suppression of Firebase In-App Messaging at start-up. Effects:

  • Without Hide promotional popups (or with its toggle off), FIAM is no longer suppressed until g9d.f() runs after consent, or never if consent isn't given. Disable tracking should not make popups more likely.
  • With it, the startup half of Hide promotional popups (setMessagesSuppressed forced to TRUE, and FEATURE_FIREBASE_IN_APP_MESSAGING) has no startup call to act on; only the showActiveFiam display hook still holds.

Also: TrackingStarterInitFingerprint is only "public final ()V in class TrackingStarter". It's unique in 9.21.1, but another such method would make it patch the wrong one silently.

Fix idea

  • Keep the ov5.a(true) call: insert the return-void after the first invoke instead of at index 0 (or call FirebaseInAppMessaging.getInstance().setMessagesSuppressed(TRUE) from the extension before returning).
  • Tighten the fingerprint, e.g. a methodCall filter on the (Z)V call (ch.r) or on the strategy registration.
  • Update docs/apps/gelderlander.md (Disable tracking section).

Done when: patch-install.ps1 -NoInstall shows Applied for all Kubus titles, and a device test (logcat) shows FIAM suppressed at start with Disable tracking on and Hide promotional popups off.

Found in the codebase review (2026-10-11). `kubus/tracking/DisableTrackingPatch.kt` (step 2) puts a `return-void` at index 0 of `TrackingStarter.g()` (`g9d.g()` in 9.21.1). Decompiled, that method is: ```java public final void g() { ov5.INSTANCE.a(true); // FirebaseInAppMessaging.setMessagesSuppressed(TRUE) ch chVar = ch.a; chVar.c(this.firebaseAnalyticsStrategy); chVar.r(true); } ``` So the early return also skips the app's own default suppression of Firebase In-App Messaging at start-up. Effects: - Without **Hide promotional popups** (or with its toggle off), FIAM is no longer suppressed until `g9d.f()` runs after consent, or never if consent isn't given. Disable tracking should not make popups *more* likely. - With it, the startup half of Hide promotional popups (`setMessagesSuppressed` forced to TRUE, and `FEATURE_FIREBASE_IN_APP_MESSAGING`) has no startup call to act on; only the `showActiveFiam` display hook still holds. Also: `TrackingStarterInitFingerprint` is only "public final `()V` in class `TrackingStarter`". It's unique in 9.21.1, but another such method would make it patch the wrong one silently. **Fix idea** - Keep the `ov5.a(true)` call: insert the `return-void` after the first invoke instead of at index 0 (or call `FirebaseInAppMessaging.getInstance().setMessagesSuppressed(TRUE)` from the extension before returning). - Tighten the fingerprint, e.g. a `methodCall` filter on the `(Z)V` call (`ch.r`) or on the strategy registration. - Update `docs/apps/gelderlander.md` (Disable tracking section). **Done when:** `patch-install.ps1 -NoInstall` shows `Applied` for all Kubus titles, and a device test (logcat) shows FIAM suppressed at start with Disable tracking on and Hide promotional popups off.
Author
Owner

Stand na c685437 (Kubus 9.22.0-support op dev):

  • 9.22.0: g() is daar geïnlined in MainApplication.onCreate(). De patch maakt nu alleen de HashSet.add van de Firebase-strategie een nop; de FIAM-onderdrukking bij het opstarten (die er direct vóór staat) blijft staan. Op 9.22.0 speelt dit issue dus niet meer.
  • 9.21.1: daar doet de patch nog steeds return-void aan het begin van TrackingStarter.g(), dus voor die versie is PR #73 nog nodig.
  • PR #73 raakt kubus/tracking/DisableTrackingPatch.kt en Fingerprints.kt, die in c685437 zijn veranderd (de 9.21.1-hook zit nu in de else-tak na AnalyticsStrategyRegistrationFingerprint). Rebase op dev voor het mergen.
Stand na c685437 (Kubus 9.22.0-support op `dev`): - **9.22.0:** `g()` is daar geïnlined in `MainApplication.onCreate()`. De patch maakt nu alleen de `HashSet.add` van de Firebase-strategie een nop; de FIAM-onderdrukking bij het opstarten (die er direct vóór staat) blijft staan. Op 9.22.0 speelt dit issue dus niet meer. - **9.21.1:** daar doet de patch nog steeds `return-void` aan het begin van `TrackingStarter.g()`, dus voor die versie is PR #73 nog nodig. - PR #73 raakt `kubus/tracking/DisableTrackingPatch.kt` en `Fingerprints.kt`, die in c685437 zijn veranderd (de 9.21.1-hook zit nu in de `else`-tak na `AnalyticsStrategyRegistrationFingerprint`). Rebase op `dev` voor het mergen.
midas closed this issue 2026-10-17 21:15:13 +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#58
No description provided.