Research: block video ads in DPG apps #2
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.
Depends on
#12 Research: block video ads in de Volkskrant (Edition platform)
midas/midas-patches
Reference
midas/midas-patches#2
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?
Goal
Find out how to block video ads (pre-roll/mid-roll) in DPG apps (de Volkskrant now; De Gelderlander and other DPG titles later) without breaking video playback, and write it up so a patch can be implemented. If the research is conclusive, implement it as a patch (extend Hide ads or add Hide video ads).
What we know (from
docs/apps/volkskrant.md, 7.52.0)AdvertisementLoadingHandler.loadreturnsnull, so everyAdvertisementContainerisHidden.be.persgroep.advertising.video.ima(unobfuscated).com.appnexus.opensdk, can also do outstream video), Prebid (org.prebid), Google IMA, MRAID.application/startup/task/AdvertisementStartupTask).Research questions
nl.dpgmedia.mcdpg.amalia.*; check for audio pre-rolls too)?pubads.g.doubleclick.net,adTagUrl,ImaSdkFactory,AdsLoader,AdsRequest,AdDisplayContainer) and the DPG classes inbe.persgroep.advertising.video.imathat pass it on.AdvertisementLoadingHandler.load? Candidates, in order of preference:AdsLoaderis attached to the player (skip attaching it).AdvertisementStartupTaskbe skipped safely so the ad SDKs are never initialised? Only if risk-free; not required.Method
.\scripts\decompile.ps1on the current Volkskrant APK. Delegate the broad search throughdecompiled/to an Explore/Sonnet subagent (see CLAUDE.md) and read the few relevant files yourself.adb logcatfiltered onIMA/ExoPlayer/persgroephelps confirm the flow.Deliverables
docs/apps/volkskrant.md(or the shared DPG doc): call chain, chosen hook, why, and what the injected smali does.Applied: ...on the real APK, and a device test showing that a video starts directly without pre-roll and plays to the end, plus a regression check that banner ads stay hidden.feat: ...(pre-release ondev; ask before pushing).Out of scope
Paywall/subscription circumvention, including paid video content.
Video ads research: De Gelderlander (Kubus platform)
Unlike de Volkskrant (
l.persgroep.edition.*\ using \e.persgroep.advertising.video.ima), De Gelderlander and the regional titles are built on DPG's modern video platform:
l.dpgmedia.publishingservices.videosdk.
Architecture & Choke Points
l.dpgmedia.publishingservices.videosdk.internal.player.data.model.VideoProduction\ (unobfuscated).
ull\ without sending an ad tag HTTP request to DPG's servers (\AdRepository.getVideoAdTagUrl).
l.dpgmedia.publishingservices.videosdk.internal.player.core.model.VideoPlayableContent\ (unobfuscated).
ull\ (\const/4 p0, 0x0; return-object p0), \PlayerPlayableExtKt.getAdsConfiguration\ returns
ull.
Status
De Gelderlander is done (Kubus video SDK, see above). De Volkskrant runs on the Edition platform with
be.persgroep.advertising.video.ima, so it needs its own research and hook: tracked in #12. This issue depends on #12 and can be closed once that lands.Done for both apps: De Gelderlander (9.21.1, device-verified) and de Volkskrant (#12, same DPG video SDK, shared
dpg/videosdkpatch). Released in v1.4.0.