feat: stop dormant auto-initialising SDKs (Facebook, Piano/Cxense, Viafoura) #32
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#32
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
Both apps contain SDKs that start automatically, through manifest content providers or
androidx.startup, or unconditionally inApplication.onCreate, although the app barely uses them. Removing their auto-init saves startup work and network calls.Findings
Facebook SDK
com.facebook.internal.FacebookInitProvideris in the manifest. There is nofacebook_app_id/ ApplicationId meta-data and no app code that uses it, so the SDK is effectively dead.g9d.f(TrackingStarter) turns them on (setAutoLogAppEventsEnabled,setAutoInitEnabled,setAdvertiserIDCollectionEnabled,fullyInitialize) when the MARKETING consent purpose is allowed.Piano/Cxense
io.piano.android.cxense.CxSdkInitializerruns throughandroidx.startupin both apps.Viafoura (Gelderlander)
tx5.invoke()initialises the Viafoura comments SDK unconditionally inMainApplication.onCreate, although commenting is disabled (FEATURE_COMMENTING_VIAFOURAdefaults to "disabled").Gemius
CimTrackerNoop).Approach
AndroidManifest.xml:FacebookInitProvider;CxSdkInitializer<meta-data>underandroidx.startup.InitializationProvider.g9d.f; no-op Viafoura init only together with #42, or verify that comments don't need it.Done when
graph.facebook.com/ Cxense requests, no crashes when opening articles, video and settings.docs/apps/*.md.Implemented and verified on device in
ab05dc1as part of the Disable tracking patch.