feat: opt-in Disable tracking and Hide live ads for Videoland #194
No reviewers
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!194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/170-171-videoland-tracking-live-ads"
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 #170, #171 (the device tests stay open).
Two separate, opt-in (
default = false) Videoland patches implementing ADR 0001 and ADR 0002 (PR #193). Neither is device-tested. Both apply to the phone and the Android TV build; no Midas Settings toggle (like the other opt-in Videoland patches).Disable tracking (#170, ADR 0001 option 2), category Privacy
Cuts:
ConfigImpl's static AppLaunch lookup ((String, Map) -> String, anchor"Missing AppLaunch key ";ein 1.118.0,gin 1.115.2) asks the extension (videoland/DisableTrackingPatch.configValue) first:"0"foractivateTealium,playerNPAWv7Enabled,playerSnowplowMediaTrackingEnabled,null(app's own value) for every other key. Logged once per key (logcatMidasTracking). Three fingerprints on the readers make the patch fail if a key is renamed.NewRelic.start(Context)returns at once;NewRelicAppContentProviderremoved from the manifest.FIREBASE_TELEMETRY_METADATAflags (Analytics deactivated; Crashlytics left on, as in the shared set).Leaves alone: heartbeat-v2 (
notify/session,notify/view,*_live,offline-sync), continuous watching (heartbeat-v3), DRM/licence, entitlement, playback, Gigya, OneTrust, Snowplow's non-media events, AppsFlyer, the advertising ID (Hide ads already dropsAD_ID).Hide live ads (#171, ADR 0002 option 2), category Ads
Cuts:
YospaceDaiResourceCreator.areturns null, soLiveQueueItemtakes the app's own non-DAI path (DefaultDaiResourceCreatorpath): fallback asset when the server sent one, else the Yospace URL without its session parameters. Separate from Hide ads because the fallback does not always exist and is software DRM (likely SD on the box).Leaves alone: VOD (
ReplayQueueItemnever uses DAI),YospaceIsDaiAssetUseCase(forcing it false would stop the fallback being built).ADR check against the decompile (1.118.0 TV, 1.115.2 phone)
All findings used here were confirmed: single static lookup with all three keys read through it (bundled values
"1"asall_all_*), Tealium start-up filter, null-safe NPAW adapter (phone also gates the offline adapter inCreateQueueUseCase),NewRelic.startfrom the base activity without a gate, Yospace creator / default null creator /LiveQueueItemfallback switch / fallback creation only for hardware-DRM or DAI assets. Additions: nocom.appsflyerpackage or AppsFlyer host in either build; Tealium and Snowplow SDKs are obfuscated, NPAW's is not.Also: docs/apps/videoland.md (both sections, the "most likely break" note corrected), docs/HOSTS.md (heartbeat-v2/v3 as relied on; Tealium, New Relic, NPAW hosts as expected silent).
Verification
buildAndroid(contract check) + extension unit testscheck-patches.shexitNot done: patched-dex inspection, device tests.
Device test checklist (from the ADRs)
Disable tracking (phone and TV):
notify/sessionrequests still go out (logcat or proxy).adb logcat -s FA FA-SVCshows Firebase Analytics disabled.Hide live ads (TV box):
dumpsys media.metricsor the logged asset).Note: both commits are
feat:, so merging intodevcreates a pre-release.🤖 Generated with Claude Code
Merged into dev through the integration PR #195 (same commits), released as v1.11.0-dev.10.
Pull request closed