Maria Sophia wrote:
> I'll keep digging as I lost the cability to display ads accidentally.
I'm digging to see what exactly it is that kills ads on our devices. I press unlock features and it says billing error 3 (BILLING_UNAVAILABLE). This shows AdMob initializing successfully when "touching" FlightRadar24. adb logcat -c (then I move around in FlightRadar24) adb logcat -v threadtime | findstr /i "Ads AdMob GMA AdsSdk" ... ads_mobile_sdk.r31.<init>(SourceFile:37) ads_mobile_sdk.lz3.invokeSuspend(SourceFile:238) ... Looking it up, ads_mobile_sdk is the Google Mobile Ads SDK, which is apparently running inside FR24's process (PID 4842). It's constructing a WebView (which is the component AdMob uses to render HTML creatives). The WebView then registers a network callback, which is normal behavior. So AdMob is not dead. a. It initialized, it spun up a WebView, a b. and it's reaching for the network. c. But the request went out and came back empty, or was never filled. Digging deeper... adb logcat -c adb logcat -v threadtime | findstr /i /c:"AdsSdk" /c:"onAdFailedToLoad" /c:"AdRequest" /c:"NoFill" /c:"onAdLoaded" (then I moved around in FlightRadar24 to try to trigger an ad) adb logcat -v threadtime | findstr /i /c:"AdsSdk" /c:"onAdFailedToLoad" /c:"AdRequest" /c:"NoFill" /c:"onAdLoaded" 11-30 04:48:03.725 26715 20944 D ConnectivityManager: StackLog: [android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4300)] [android.net.ConnectivityManager.registerDefaultNetworkCallbackForUid(ConnectivityManager.java:4864)] [android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4831)] [android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4805)] [com.google.android.gms.ads.internal.state.e.d(:com…@264531029@26.45.31 (190400-1020418964):156)] [ajoh.e(:com…@264531029@26.45.31 (190400-1020418964):58)] [com.google.android.gms.ads.AdRequestBrokerChimeraService.a(:com…@264531029@26.45.31 (190400-1020418964):4)] [docu.a(:com…@264531029@26.45.31 (190400-1020418964):3)] [doem.d(:com…@264531029@26.45.31 (190400-1020418964):3)] [doen.a(:com…@264531029@26.45.31 (190400-1020418964):230)] [brng.onTransact(:com…@264531029@26.45.31 (190400-1020418964):60)] Reading this bottom up, AdRequestBrokerChimeraService.a(...) com.google.android.gms.ads.internal.state.e.d(...) registerDefaultNetworkCallback(... Looking it up, AdRequestBrokerChimeraService is apparently the GMS-side service that handles ad requests on behalf of apps. It's executing in the GMS process (PID 26715) and it's registering a network callback. So the chain is alive that AdMob is running inside Play Services and actively building an ad request so the ad request goes out, but there's no onAdLoaded or onAdFailedToLoad afterward. Maybe it's related to the billing error 3 (BILLING_UNAVAILABLE)? But maybe it's due to the DNS? Dunno. Let me check as it's important to know HOW to block all ads. adb shell settings get global private_dns_mode hostname adb shell settings get global private_dns_specifier adblock.dns.mullvad.net adb shell ping -c 1 googleads.g.doubleclick.net ping: unknown host googleads.g.doubleclick.net adb shell ping -c 1 pagead2.googlesyndication.com ping: unknown host pagead2.googlesyndication.com So we have DNS blocking going on: private_dns_mode = hostname private_dns_specifier = adblock.dns.mullvad.net Where ad domains fail to resolve: ping: unknown host googleads.g.doubleclick.net ping: unknown host pagead2.googlesyndication.com Ah. It was so simple. This can be replicated on any phone. adb shell settings put global private_dns_mode hostname adb shell settings put global private_dns_specifier adblock.dns.mullvad.net I may write a script which can compare against various DNS blocks. adb shell settings put global private_dns_mode hostname adb shell settings put global private_dns_specifier dns.adguard-dns.com To check your current DNS ad-blocking setup: adb shell settings get global private_dns_mode adb shell settings get global private_dns_specifier adb shell ping -c 1 googleads.g.doubleclick.net
-- On Usenet, we teach what we know and learn from others what we don't.