feat(gelderlander): stop ad SDK initialisation at startup #25
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#25
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.
Feature description
Hide ads prevents ad requests in De Gelderlander, but the ad stack still initialises at app start. Skip that init, as an extension of Hide ads.
Findings (9.21.1, obfuscated: use the anchors)
DPG AdvertisingSDK (
pd, implementsrd)"be.persgroep.advertising.banner.AdvertisingSDK$1",...AdvertisingSDK$registerOnStartApp$2, andfetchConfig.pd$awarms up Prebid throughbe.persgroep.advertising.banner.config.c.a(Context, InitConfig.HeaderBidding.Prebid, cont).be/persgroep/advertising/banner/config/g, anchor"be.persgroep.advertising.banner.config.SDKsInitializer"). That initialises Xandr throughihe:XandrAd.init(memberId, ctx, true, false, cb), log "Xandr SDK failed to initialize: ".pb.d(Application, hp3): rdbuilds the SDK withnew Platform("gelderlander");pb.c(rd, gt4): idwraps it.idis injected intoMainApplication.advertisementHandler, so the SDK is built at app start.Other ad SDKs
MobileAdsInitProvider(APPLICATION_IDca-app-pub-9227299877260903~1209779587, AD_MANAGER_APP, OPTIMIZE_INITIALIZATION). No explicitMobileAds.initializein app code.nl.pinch.optoutadvertising.sdk.OptOutAdvertising.INSTANCE.initialize/loadAd, coordinated byir8(anchor"be.persgroep.advertising.optout.OptOutAdvertisingManager$load$1"). These are contextual ads for users without consent.loadAdpath; if not, add it there.gnd.c(ctx, env)inMainApplication.onCreate. It is shared with tracking and consent; leave it alone unless #20 decides otherwise.Approach
initand from the Prebid warm-up. Both are fingerprinted on the coroutine/class-name strings above.MobileAdsInitProviderwith a manifest resource patch.OptOutAdvertising.initialize(unobfuscated SDK class).Done when
docs/apps/gelderlander.mdupdated.