feat(gelderlander): stop the analytics dispatcher and Firebase Analytics #28
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16. Implement according to the decision in #20.
Feature description
De Gelderlander sends every analytics event through one dispatcher with two strategies: Firebase Analytics and Usabilla. It also re-enables Firebase Analytics collection at runtime, although the manifest default is off. Stop both.
Findings (9.21.1, obfuscated: use the anchors)
ch(AnalyticsService), anchor"com.kubusapp.analytics.AnalyticsService$trackQualitativeReach$1$1".static HashSet<hh>of strategies.ch.h(String key, HashMap, Context, String pageViewId)fans out every event. String anchors: "screen_info", "page_type", "page_navpath", "page_world_identifier", "pageViewId", "qualitative_reach_achieved".ch.c(hh)registers a strategy.ch.r(boolean)toggles collection.hh:a(String, HashMap),b(String, String),c(boolean). Implementations:n24: FirebaselogEvent/setUserProperty/setAnalyticsCollectionEnabled;omd: forwards to Usabilla events (see #36).g9d(TrackingStarter, anchor"com.kubusapp.tracking.TrackingStarter"):g()registers the Firebase strategy and callsch.r(true), which overrides the manifest'sfirebase_analytics_collection_enabled=false.f(cont)(initializeTracking) is run fromTrackingStarterWorker, whichPrivacyConsentTCF2Activityenqueues. It:Approach
ch.h(all events), or skip registeringn24ing9d.g().ch.r(true), or make it passfalse.g9d.frunning for the parts other issues may still want, or split it per SDK as #20 decides.Done when
app-measurement.comtraffic; consent dialog unaffected.docs/apps/gelderlander.md.Implemented and verified on device in
ab05dc1as part of the Disable tracking patch.