Two different jobs. Removing ads is easy. Getting the reward without watching is not, and the answers above won't get you there. Private DNS only blocks on that one phone, it's not part of a mod. Finishing AdActivity kills fullscreen ads but grants nothing and leaves banners and SDK init alone.
Identify the network first. Grep the dex and manifest for
com.google.android.gms.ads,
com.unity3d.ads,
com.applovin,
com.ironsource,
com.facebook.ads,
com.vungle,
com.chartboost. Everything below is per-SDK, so know which one you're in before editing.
Removing ads:
Don't delete the SDK from the APK, dependencies will eat you. Neuter the calls instead.
- Kill the init in the Application class onCreate, or make it return early.
- Patch the loader:
loadAd /
load becomes a no-op, so nothing is fetched and nothing can display.
- Patch the display:
show becomes a no-op.
Code:
.method public show()V
return-void
.end method
That kills banners, interstitials and app open ads in one pass.
Reward bypass is different. The reward comes from the SDK callback, not from the ad closing. Skip the ad and the callback never fires, so you get nothing. You need two patches:
1. Make the ready check lie, or the reward button stays greyed:
Code:
.method public isLoaded()Z
const/4 v0, 0x1
return v0
.end method
Same for
isReady or whatever the app queries.
2. Replace
show with a direct call to the app's own grant method. Find it in jadx: the method called inside
onUserEarnedReward, usually named
grantReward,
addCoins,
onReward. Invoke that instead of showing the ad. If it needs a
RewardItem argument, construct one with a dummy amount or pass the app's own constant.
Order: identify network, patch init and load, confirm ads are gone, then do the reward path separately. Don't do both at once or you won't know which patch broke the app.
Billing is a separate thing. If the app has a "remove ads" IAP, patch the purchase check instead, it's cleaner than touching the SDK.