Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,550 Members 51,275 Now Online
XDA Developers Android and Mobile Development Forum

[Video Tutorial]How to remove Google Ads from any apk

Tip us?
 
broodplank1337
Old
(Last edited by broodplank1337; 14th November 2012 at 09:58 AM.)
#1  
broodplank1337's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 9885
Posts: 4,921
Join Date: Nov 2011
Location: Nijmegen

 
DONATE TO ME
Tutorial [Video Tutorial]How to remove Google Ads from any apk

How to remove Google Ads from any APK

This tutorial will learn you how to remove Google Ads from any APK (app), the ads are a specific part in the source code that can can be removed easily without damaging the app.
Any ways, I encourage you to keep supporting the app developers by buying their apps. The outcome of this tutorial is made personal use only and you may not share (or even sell) the apps you cleaned from ads.

Requirements:
- Java 6/7 (JRE or JDK)
- APK Multi Tools
- ADB

Youtube Video:


or http://www.youtube.com/watch?v=Pw-e2m_TBxA


Instructions:

Step 1. Download and install/extract all needed packages. (Install JRE/JDK 6/7 and unpack APK Multi Tool and ADB)


Step 2. Looking what apps you have installed on your phone to pull (make sure you're in debugging mode)

- In ADB folder, run adb.bat
- Enter: "cd data/app"
- Enter: "ls", now your apps will show up
- Copy an apk name by right clicking in the cmd window and click mark, then mark the text and right click again to copy
- Now terminate adb.bat by either pressing Control+C and enterying "y" or closing the window.


Step 3. Pulling the apk

- In ADB folder, hold shift and right click in an empty place in the folder (not on some file/folder) > Open Command window here
(or press windows key + r and enter cmd, now enter "cd C:\your\adb\folder\here")
- once in command prompt, enter: "adb pull /data/app/[right click > paste]"
- After pulling the apk it will appear in your ADB directory. Now copy the apk


Step 4. APK Multi Tools Setup

- In APK-Multi-Tool folder, open setup.bat
- Enter "3" and press enter
- Enter "00" and press enter to exit setup
- Browse to /place-apk-here-for-modding/ and press Control + V to paste your pulled apk


Step 5. APK-Multi-Tool Decompilation

- In APK-Multi-Tool folder, open script.bat and press enter
- Enter: "24" and press enter, now choose your apk, probably #1
- Enter: "9" and press enter to decompile your apk
- Browse to the /projects/apkname folder


Step 6. Removing the ads

- In APK-Multi-Tool\projects\apkname.apk folder, open the smali folder
- Then browse to the com folder and then to the google folder
- Now you will see a folder called ads. remove this folder.


Step 7. Compiling the apk

- In APK Multi Tool, enter: "12" to start compiling the apk
- When a new text dialog appears, enter: "3" and press enter
- When the "keep folder" question shows press enter
- Now your signed apk (without ads) can be found in the APK-Multi-Tool\place-apk-here-for-modding folder
- Copy the apk (with "signed" in front of the name) and paste it in the ADB directory


Step 8. Installing the result

- Select the apk and press F2 (or change name) to copy then name to the clipboard then press enter to discard the name change
- Now, hold shift and right click in an empty place in the folder (not on some file/folder) > Open Command window here
(or press windows key + r and enter cmd, now enter "cd C:\your\adb\folder\here")
- Enter "adb install [right-click > paste]"
- Now the app will successfully install! Enjoy!
Device: Samsung Galaxy S4 (i9505)

Latest Development:
 

Roms:
AOSP v4.4.4 (KTU84P) from source for I9505 (Github)
- Cleanest ROM available for i9505. along with up-to-date stock kernel, also forms a perfect base for ROM developers.

Apps:
Galaxy S4 Glove Mode App (Playstore link)
- Do you want the Glove Mode of the S4 but your ROM doesn't support it? Use this app to enable/disable it easily.

Latest Scraps:
Proprietary Lib Cleaner / Silent proprietary libs / Live Thermal Monitor / GIT Conflict Fixer

Projects in development:
 

broodROM KitKat "Aiming for perfection"
- Custom ROM with really high standards, more info soon

For sources you can visit my Github. Or take a look at all my projects

The Following 54 Users Say Thank You to broodplank1337 For This Useful Post: [ Click to Expand ]
 
Aldokazer
Old
#2  
Aldokazer's Avatar
Senior Member
Thanks Meter 104
Posts: 497
Join Date: Oct 2012
Though I knew this already, COol!
Now let's see how those stupid ads can penetrate my Droid :P

Edit//
FIRST!!
Sent from my GT-I9001 using xda app-developers app
The Following User Says Thank You to Aldokazer For This Useful Post: [ Click to Expand ]
 
hypnos17
Old
(Last edited by hypnos17; 14th November 2012 at 12:26 PM.)
#3  
hypnos17's Avatar
Senior Member
Thanks Meter 4547
Posts: 3,053
Join Date: Jun 2012
Location: Pan Daemonium

 
DONATE TO ME
****ED GENIUS

Sent from Galaxy Tablet
The Following User Says Thank You to hypnos17 For This Useful Post: [ Click to Expand ]
 
broodplank1337
Old
#4  
broodplank1337's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 9885
Posts: 4,921
Join Date: Nov 2011
Location: Nijmegen

 
DONATE TO ME
Thanks guys, soon I will reupload a new video which is recorded a bit slower and with more instructions
Device: Samsung Galaxy S4 (i9505)

Latest Development:
 

Roms:
AOSP v4.4.4 (KTU84P) from source for I9505 (Github)
- Cleanest ROM available for i9505. along with up-to-date stock kernel, also forms a perfect base for ROM developers.

Apps:
Galaxy S4 Glove Mode App (Playstore link)
- Do you want the Glove Mode of the S4 but your ROM doesn't support it? Use this app to enable/disable it easily.

Latest Scraps:
Proprietary Lib Cleaner / Silent proprietary libs / Live Thermal Monitor / GIT Conflict Fixer

Projects in development:
 

broodROM KitKat "Aiming for perfection"
- Custom ROM with really high standards, more info soon

For sources you can visit my Github. Or take a look at all my projects

The Following 8 Users Say Thank You to broodplank1337 For This Useful Post: [ Click to Expand ]
 
jjaacckk94
Old
#5  
jjaacckk94's Avatar
Senior Member
Thanks Meter 213
Posts: 299
Join Date: Jun 2012
Location: ROMA

 
DONATE TO ME
I use lucky patcher..

Inviato dal mio GT-I9001 con Tapatalk 2
 
Aldokazer
Old
#6  
Aldokazer's Avatar
Senior Member
Thanks Meter 104
Posts: 497
Join Date: Oct 2012
Quote:
Originally Posted by jjaacckk94 View Post
I use lucky patcher..

Inviato dal mio GT-I9001 con Tapatalk 2
Lucky patcher almost does this but I don't like another app for this simple thing. Its just bloatware for me.

Sent from my GT-I9001 using xda app-developers app
 
dkmali
Old
#7  
dkmali's Avatar
Senior Member
Thanks Meter 87
Posts: 123
Join Date: Aug 2012
Location: Bhilwara
Very helpful for us.
Thanks :thumbup:

Sent from my Android Smartphone
The Following User Says Thank You to dkmali For This Useful Post: [ Click to Expand ]
 
TwinHeadedEagle
Old
#8  
TwinHeadedEagle's Avatar
Senior Member
Thanks Meter 234
Posts: 789
Join Date: Jan 2012
Location: Belgrade
Quote:
Originally Posted by jjaacckk94 View Post
I use lucky patcher..

Inviato dal mio GT-I9001 con Tapatalk 2
Lucky patcher does it very bad, there is still empty ads window...
I fixed GPS 100% , it's hardware fix, no soldering

http://forum.xda-developers.com/show...postcount=1358
 
broodplank1337
Old
#9  
broodplank1337's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 9885
Posts: 4,921
Join Date: Nov 2011
Location: Nijmegen

 
DONATE TO ME
Added instructions, will upload a new more extended video later today
Device: Samsung Galaxy S4 (i9505)

Latest Development:
 

Roms:
AOSP v4.4.4 (KTU84P) from source for I9505 (Github)
- Cleanest ROM available for i9505. along with up-to-date stock kernel, also forms a perfect base for ROM developers.

Apps:
Galaxy S4 Glove Mode App (Playstore link)
- Do you want the Glove Mode of the S4 but your ROM doesn't support it? Use this app to enable/disable it easily.

Latest Scraps:
Proprietary Lib Cleaner / Silent proprietary libs / Live Thermal Monitor / GIT Conflict Fixer

Projects in development:
 

broodROM KitKat "Aiming for perfection"
- Custom ROM with really high standards, more info soon

For sources you can visit my Github. Or take a look at all my projects

The Following 2 Users Say Thank You to broodplank1337 For This Useful Post: [ Click to Expand ]
 
tabnnaj
Old
#10  
tabnnaj's Avatar
Senior Member
Thanks Meter 22
Posts: 126
Join Date: Oct 2012
Thank you very much...
I will try it ^_^


Sent from my GT-I9001 using xda app-developers app

Tags
apk, decompile, easy, no ads, reverse engineering
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes