0% found this document useful (0 votes)
2K views

Ads Remove - Regex Code

This document provides instructions for removing ads from an Android APK file using regular expression searches and replacements. The instructions include 9 search strings related to ad loading and display methods and properties. The searches are replaced with comments, null operations, or modified values to remove all ad related code and functionality from the APK. The modified APK can then be resigned and shared.

Uploaded by

2023.myspy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

Ads Remove - Regex Code

This document provides instructions for removing ads from an Android APK file using regular expression searches and replacements. The instructions include 9 search strings related to ad loading and display methods and properties. The searches are replaced with comments, null operations, or modified values to remove all ad related code and functionality from the APK. The modified APK can then be resigned and shared.

Uploaded by

2023.myspy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Hello Guy's in This Text You Are Going to do Remove Ads Of Any Apk by replace ads

"Regex Code" in given code which I'm giving in app as well as in text so let's
start

In First
#Get the apk which you want to mod
#Open Mt Manager (if you don't have then download)
#Open The apk Which you want to mod By using mt manager
and click the classes.dex file and click on "dex editor plus" .
Now click on all classes.dex like classes2.dex , classes3.dex and click on ok
Now go in search and

***********************************************************************************
****************
Search this text

(\.method\s(public|private|static)\s\b(?!\babstract|native\b)(.*)?loadAd\(.*\)V)

Replace

$1

return-void

***********************************************************************************
****************

Search 2

(\.method\s(public|private|static)\s\b(?!\babstract|native\b)(.*)?loadAd\(.*\)Z)

replace

$1

const/4 v0, 0x0

return v0

***********************************************************************************
****************
search 3

(invoke.*loadAd\(.*\)[VZ])

replace

#$1

***********************************************************************************
****************
search 4

(invoke.*gms.*\>(loadUrl|loadDataWithBaseURL|requestInterstitialAd|
showInterstitial|showVideo|showAd|loadData|onAdClicked|onAdLoaded|isLoading|
loadAds|AdLoader|AdRequest|AdListener|AdView).*V)
replace

#$1

***********************************************************************************
****************
search 5

\"(http.*|//.*)(61\.145\.124\.238|\-
ads\.|\.ad\.|\.ads\.|\.analytics\.localytics\.com|\.mobfox\.com|\.mp\.mydas\.mobi|\
.plus1\.wapstart\.ru|\.scorecardresearch\.com|\.startappservice\.com|\/ad\.|\/ads|
ad\-mail|ad\.*\_logging|ad\.api\.kaffnet\.com|adc3\-launch|adcolony|adinformation|
adkmob|admax|admob|admost|adsafeprotected|adservice|adtag|advert|adwhirl|
adz\.wattpad\.com|alta\.eqmob\.com|amazon\-*ads|amazon\.*ads|amobee|analytics|
applovin|applvn|appnext|appodeal|appsdt|appsflyer|burstly|cauly|cloudfront|
com\.google\.android\.gms\.ads\.identifier\.service\.START|crashlytics|
crispwireless|doubleclick|dsp\.batmobil\.net|duapps|dummy|flurry|gad|getads|
google\.com\/dfp|googleAds|googleads|googleapis\.*\.ad\-*|googlesyndication|
googletagmanager|greystripe|gstatic|inmobi|inneractive|jumptag|
live\.chartboost\.com|madnet|millennialmedia|moatads|mopub|native\_ads|pagead|
pubnative|smaato|supersonicads|tapas|tapjoy|unityads|vungle|zucks).*\"

replace

"="

***********************************************************************************
****************
search 6

ca-app-pub-\d{16}/\d{10}

replace

ca-app-pub-0000000000000000/0000000000

***********************************************************************************
****************
search 7

invoke-.*\{.*\}, L.*;->(loadAd|requestNativeAd|showInterstitial|fetchad|fetchads|
onadloaded|requestInterstitialAd|showAd|loadAds|AdRequest|requestBannerAd|
loadNextAd|createInterstitialAd|setNativeAd|loadBannerAd|loadNativeAd|
loadRewardedAd|loadRewardedInterstitialAd|loadAds|loadAdViewAd|showInterstitialAd|
shownativead|showbannerad|showvideoad|onAdFailedToLoad)\(.*\)V

replace

nop

***********************************************************************************
****************
search 8
invoke-*.* \{*.*\}, Lcom*.*;->requestInterstitialAd\(*.*\)V|invoke-*.* \{*.*\},
Lcom*.*;->loadAds\(*.*\)V|invoke-*.* \{*.*\}, Lcom*.*;->loadAd\(*.*\)V|invoke-*.* \
{*.*\},
Lcom*.*;->requestBannerAd\(*.*\)V|invoke-*.*\s\{[v|p]\d\},\sLcom/facebook*.*\;\-\
>show\(*.*\)V|invoke-*.*\s\{[v|p]\d\},\sLcom/google*.*\;\-\>show\(*.*\)V

replace

nop

***********************************************************************************
****************
search 9

(\.method.*(loadAd|requestNativeAd|showInterstitial|fetchad|fetchads|onadloaded|
requestInterstitialAd|showAd|loadAds|AdRequest|requestBannerAd|loadNextAd|
createInterstitialAd|setNativeAd|loadBannerAd|loadNativeAd|loadRewardedAd|
loadRewardedInterstitialAd|loadAds|loadAdViewAd|showInterstitialAd|shownativead|
showbannerad|showvideoad|onAdFailedToLoad)\(.*\)V
\.registers \d+)[\s\S]*?\.end method

replace

***********************************************************************************
****************

Now Done Your All Ads Are Remove...... Click on the Hammer 🔨 and come back and
sign your apk

share your apk on our community the link is hppts://forum.sbenny.com/

Now if you need more help like Adding Toast Message , Diaglog Text, etc....

***********************************************************************************
****************

You might also like