feat: opt-in Disable tracking and Hide live ads for Videoland #194

Closed
midas wants to merge 0 commits from feat/170-171-videoland-tracking-live-ads into dev
Owner

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 "; e in 1.118.0, g in 1.115.2) asks the extension (videoland/DisableTrackingPatch.configValue) first: "0" for activateTealium, playerNPAWv7Enabled, playerSnowplowMediaTrackingEnabled, null (app's own value) for every other key. Logged once per key (logcat MidasTracking). Three fingerprints on the readers make the patch fail if a key is renamed.
  • NewRelic.start(Context) returns at once; NewRelicAppContentProvider removed from the manifest.
  • Shared FIREBASE_TELEMETRY_METADATA flags (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 drops AD_ID).

Hide live ads (#171, ADR 0002 option 2), category Ads

Cuts: YospaceDaiResourceCreator.a returns null, so LiveQueueItem takes the app's own non-DAI path (DefaultDaiResourceCreator path): 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 (ReplayQueueItem never 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" as all_all_*), Tealium start-up filter, null-safe NPAW adapter (phone also gates the offline adapter in CreateQueueUseCase), NewRelic.start from the base activity without a gate, Yospace creator / default null creator / LiveQueueItem fallback switch / fallback creation only for hardware-DRM or DAI assets. Additions: no com.appsflyer package 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

Check Phone 1.115.2 TV 1.116.3 TV 1.118.0
buildAndroid (contract check) + extension unit tests pass
check-patches.sh exit 0 0 0
Disable tracking Applied Applied Applied
Hide live ads Applied Applied Applied
Other patches all Applied Applied (Auto skip intro skipped, TV) Applied (Auto skip intro skipped, TV)

Not done: patched-dex inspection, device tests.

Device test checklist (from the ADRs)

Disable tracking (phone and TV):

  • Login, a VOD episode and a live channel play; no crash or VerifyError.
  • Resume: stop an episode halfway, start it on the other device; it resumes at that position.
  • Screen limit unchanged: heartbeat-v2 notify/session requests still go out (logcat or proxy).
  • No requests to Tealium, Snowplow, NPAW/Youbora or New Relic hosts during playback.
  • adb logcat -s FA FA-SVC shows Firebase Analytics disabled.

Hide live ads (TV box):

  • Log video assets on a live channel: does the server send a non-Yospace asset next to the Yospace one, and with which DRM and quality?
  • Patched: the live channel starts, and plays through a commercial break without ads or errors.
  • Picture quality of the fallback (resolution in dumpsys media.metrics or the logged asset).
  • A channel without a fallback asset, if one exists: plays, errors, or shows stitched ads.
  • VOD unchanged (pre-roll still absent through Hide ads, playback normal).

Note: both commits are feat:, so merging into dev creates a pre-release.

🤖 Generated with Claude Code

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 "`; `e` in 1.118.0, `g` in 1.115.2) asks the extension (`videoland/DisableTrackingPatch.configValue`) first: `"0"` for `activateTealium`, `playerNPAWv7Enabled`, `playerSnowplowMediaTrackingEnabled`, `null` (app's own value) for every other key. Logged once per key (logcat `MidasTracking`). Three fingerprints on the readers make the patch fail if a key is renamed. - `NewRelic.start(Context)` returns at once; `NewRelicAppContentProvider` removed from the manifest. - Shared `FIREBASE_TELEMETRY_METADATA` flags (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 drops `AD_ID`). ## Hide live ads (#171, ADR 0002 option 2), category Ads Cuts: `YospaceDaiResourceCreator.a` returns null, so `LiveQueueItem` takes the app's own non-DAI path (`DefaultDaiResourceCreator` path): 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 (`ReplayQueueItem` never 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"` as `all_all_*`), Tealium start-up filter, null-safe NPAW adapter (phone also gates the offline adapter in `CreateQueueUseCase`), `NewRelic.start` from the base activity without a gate, Yospace creator / default null creator / `LiveQueueItem` fallback switch / fallback creation only for hardware-DRM or DAI assets. Additions: no `com.appsflyer` package 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 | Check | Phone 1.115.2 | TV 1.116.3 | TV 1.118.0 | | --- | --- | --- | --- | | `buildAndroid` (contract check) + extension unit tests | pass | | | | `check-patches.sh` exit | 0 | 0 | 0 | | Disable tracking | Applied | Applied | Applied | | Hide live ads | Applied | Applied | Applied | | Other patches | all Applied | Applied (Auto skip intro skipped, TV) | Applied (Auto skip intro skipped, TV) | Not done: patched-dex inspection, device tests. ## Device test checklist (from the ADRs) Disable tracking (phone and TV): - [ ] Login, a VOD episode and a live channel play; no crash or VerifyError. - [ ] Resume: stop an episode halfway, start it on the other device; it resumes at that position. - [ ] Screen limit unchanged: heartbeat-v2 `notify/session` requests still go out (logcat or proxy). - [ ] No requests to Tealium, Snowplow, NPAW/Youbora or New Relic hosts during playback. - [ ] `adb logcat -s FA FA-SVC` shows Firebase Analytics disabled. Hide live ads (TV box): - [ ] Log video assets on a live channel: does the server send a non-Yospace asset next to the Yospace one, and with which DRM and quality? - [ ] Patched: the live channel starts, and plays through a commercial break without ads or errors. - [ ] Picture quality of the fallback (resolution in `dumpsys media.metrics` or the logged asset). - [ ] A channel without a fallback asset, if one exists: plays, errors, or shows stitched ads. - [ ] VOD unchanged (pre-roll still absent through Hide ads, playback normal). Note: both commits are `feat:`, so merging into `dev` creates a pre-release. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Per ADR 0001 (#170): forces the remote-config switches activateTealium,
playerNPAWv7Enabled and playerSnowplowMediaTrackingEnabled to "0" at
ConfigImpl's single AppLaunch lookup, returns from NewRelic.start, removes
NewRelicAppContentProvider and sets the shared Firebase telemetry flags.
The heartbeat, continuous watching, DRM, entitlement and playback calls are
not touched. Phone and Android TV builds; default = false until a device test.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
feat: add an opt-in Hide live ads patch for Videoland
All checks were successful
CI / Build (pull_request) Successful in 5m24s
CI / Patch check (pull_request) Successful in 8m30s
4e69e634a6
Per ADR 0002 (#171): YospaceDaiResourceCreator.a returns null, so
LiveQueueItem takes the app's own non-DAI path (the fallback asset when the
server sent one, else the Yospace URL without its session parameters). VOD
does not use DAI. Separate from Hide ads and default = false until the TV-box
test: the fallback does not always exist and is likely SD. Corrects the
"most likely break" note in docs/apps/videoland.md.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
midas closed this pull request 2026-11-17 15:34:07 +01:00
Author
Owner

Merged into dev through the integration PR #195 (same commits), released as v1.11.0-dev.10.

Merged into dev through the integration PR #195 (same commits), released as v1.11.0-dev.10.
All checks were successful
CI / Build (pull_request) Successful in 5m24s
Required
Details
CI / Patch check (pull_request) Successful in 8m30s

Pull request closed

Sign in to join this conversation.
No description provided.