Removing Ads From an Android App: AAR Part 2 (No Root Needed)

In our series on reversing Android applications using an Android phone, today we are going to look at a method for removing ads from an Android app without root.
Before starting, I recommend that all readers read Introduction: Android Application Reversing Using an Android Phone, Part 1.
Ads in Android apps can be annoying, so many of us use ad blocker apps to block them. The problem is that most ad blocker apps come with built-in malware and end up hurting us more. So today we are going to reverse an Android app and remove its ads. Read the whole article to learn how to remove ads from an Android app.
Because most ad blocking apps come with built-in malware, they hurt app users’ confidence. So today, with help from experts at a mobile app development Toronto firm, we will learn how to remove ads from an app. This article explains the whole process clearly and efficiently.
For this article, we will use the File Manager app from the Play Store.
Target: File Manager
Method: Editing the layout
Difficulty: Beginner
Let’s look at the File Manager app first.
Here we can see the banner ad at the bottom of the app. Now let’s remove this ad. There are two methods for this, and we will go through both.
Method 1
Step 1: Download the app called APK Editor Pro. Once it has downloaded, install and open it.
Step 2: After opening the app, tap “Select Apk From App”.
Step 3: Select the app you want to remove the ads from. In this case, we will choose File Manager.
Step 4: Tap Full Edit (Resource Re-Build).
This will take some time to load, depending on how much code the app has.
Step 5: Now, in the top center part of the app, change the value to Default.
Step 6: At the bottom of the app there is a search box. Search for “ca-pub” and remove the ca-pub-xxxxxxxxxxx value.
Now tap Build and wait for it to finish. Install the APK you just built, and you will find there are no ads in the app.
Method 2
Steps 1 to 5: Same as before.
Step 6: Tap Files, which you can find at the bottom of the app. Then tap res, then layout.
Step 7: Open each .xml file to find a string called “Banner”, “ads” or something similar. In most cases, you will find it in main.xml or activity_main.xml.
Step 8: If you find it, simply change the values of layout_width and layout_height to 0dp.
Luckily, this app has an ads.xml file, so we don’t have to search for it.
Now build the app and install it.
Here is a list of known ad domains to help you identify them easily:
- .gstatic.com
- .admob.com
- .analytics.localytics.com
- .flurry.com
- .greystripe.com
- inmobi.com
- admax.nexage.com
- ads.mdotm.com
- my.mobfox.com
- .plus1.wapstart.ru
- .madnet.ru
- .mp.mydas.mobi
- millennialmedia.com
- .g.doubleclick.net
- .appsdt.com
- ad.leadboltads.net
- run.admost.com
- mobile.admost.com
You have now removed the ads from an Android app without using any third-party app or root. In the next part of our series on reversing Android applications using Android phones, we will discuss how to remove pop-up messages from an Android app.



