Research: block video ads in de Volkskrant (Edition platform) #12
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.
Blocks
#2 Research: block video ads in DPG apps
midas/midas-patches
Reference
midas/midas-patches#12
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?
Sub-issue of #2 (Research: block video ads in DPG apps), scoped to de Volkskrant (
be.persgroep.android.news.mobilevk).Why a separate issue
Video ads are already blocked for De Gelderlander (see the comment on #2 and
docs/apps/gelderlander.md), but that fix does not carry over: De Gelderlander runs on DPG's Kubus platform with the video SDKnl.dpgmedia.publishingservices.videosdk, whereVideoProduction.getAdsEnabled()andVideoPlayableContent.Video.getAdTagUrl()are the choke points. De Volkskrant is built on the older Edition platform (nl.persgroep.edition.*) and wraps Google IMA inbe.persgroep.advertising.video.ima. The Gelderlander fingerprints will most likely not match here, so the Volkskrant needs its own research and hook.Research questions
nl.dpgmedia.publishingservices.videosdk(e.g. for a subset of videos)? If so, the Gelderlander fingerprints may apply as-is and the work is mostly moving them to a shared place.nl.dpgmedia.mcdpg.amalia.*, check for audio pre-rolls too)?be.persgroep.advertising.video.imaget its ad tag (VAST/VMAP URL,adTagUrl,ImaSdkFactory,AdsLoader,AdsRequest,AdDisplayContainer)? Where does the app decide whether a video gets ads?getAdsEnabled()on Kubus.Method
.\scripts\decompile.ps1on the current Volkskrant APK; delegate the broad search throughdecompiled/to an Explore/Sonnet subagent and read the relevant files yourself.adb logcatfiltered on IMA / ExoPlayer / persgroep to confirm the flow.Deliverables
docs/apps/volkskrant.md: call chain, chosen hook, why, what the injected smali does. Replace the "still need research" note there.Applied: Hide adson the real APK, device test showing a video starts directly without pre-roll and plays to the end, plus a regression check that banner ads stay hidden.feat(volkskrant): ...ondev(pre-release; ask before pushing). Report back on #2 and close #2 when both apps are done.Out of scope
Paywall/subscription circumvention, including paid video content.
Result (de Volkskrant 7.52.0)
De Volkskrant does not need a different implementation: article videos (
ArticleVideoContentKt,VideoEmbedKt, set up byVideoSdkInstaller) play through the same DPG video SDK as De Gelderlander,nl.dpgmedia.publishingservices.videosdk, with identical code (PlayerIntentResolver.maybeGetAdTagUrlchecksVideoProduction.getAdsEnabled()).be.persgroep.advertising.video.imaonly renders video creatives inside banner slots (banner SDKnativerenderer/VideoViewModel); those come fromAdManager.load, which Hide ads already skips.VideoPlayableContent.AdOnlyis never constructed; the Amalia podcast player has no client-side ad loading.Change (
5d34b73, pushed todev): the two video hooks moved into a shared, unnamed patchnl.midasvo.patches.dpg.videosdk.hideVideoAdsPatch; both apps' Hide ads pull it in withdependsOn. Documented indocs/apps/volkskrant.md.Verified: build;
Applied: Hide adson Volkskrant 7.52.0 and Gelderlander 9.21.1; dexdump of both patched APKs showsgetAdsEnabled->const/4 v0, 0; return v0andVideo.getAdTagUrl->null; patched Volkskrant installed on the device, starts without crash/VerifyError.Not yet verified on device: actual playback of a DPG-player video in the Volkskrant (no suitable article found during the test; YouTube embeds don't use this player). Same code path as the device-verified Gelderlander fix.