Pages

Showing posts with label Remove ad's. Show all posts
Showing posts with label Remove ad's. Show all posts

Wednesday, 25 February 2015

Android App Cracking Tutorial #2


Essay           Tutorial's

What are the type of Restriction & Protection?
- Advertisement Banners (Google or ad-mob)
- Nag & Msg Box Pop-Up (In Trial or Free App)
- Locked Features (In the form of In-App Purchase)
- Google or Amazon License (In the form of License Verification Library-LVL)

Before we start with Tut’s Download all Target Files from here :-  Click

Tut -1
Removing of Advertisement Banners from application

   DifficoltTARGET
   Dual File Manager( ) NewBies (X) Intermedio ( ) Avanzato ( ) Master
   DifficolMETHOD
   DifficolAd Removing by Editing Layout( ) NewBies (X) Intermedio ( ) Avanzato ( ) Master
Difficoltà   DIFFICULTY
( ) NewBies (X) Intermedio ( ) Avanzato ( ) Master    (X) Newbies () Intermediate () Advanced () Master

Step-1
Start Apktool & Select “Decompile Resources” Option

Step-2
Once Decompile Process finish go to “res” a resources folder which you found inside decompile folder of app                
Eg:-Dual File Manager_src

Step-3
Now search for Layout Folder & open every XML file with the help of “Axel” app to find String  called “Banner”
(Hint :- In most of the case Banner called through “main.xml” or “Activity_main.xml”)

Step-4
Finding & Editing XML Codes with “Axel” app
As I say in this app also we find Banner related XML code in “main.xml”

Original Code:-
<com.google.android.gms.ads.AdView       
android:id="@id/main_id_ad"
android:visibility="visible"
android:layout_width="fill_parent"--------------- Set this to “0dip”
android:layout_height="wrap_content"---------- Set this to “0dip”
android:layout_alignParentBottom="true"
admob:adSize="BANNER"
admob:adUnitId="ca-app-pub-5978068561095965/7471584327" />
  
 Modify Code:-
<com.google.android.gms.ads.AdView       
android:id="@id/main_id_ad"
android:visibility="visible"
android:layout_width=“0dip
android:layout_height=“0dip
android:layout_alignParentBottom="true"
admob:adSize="BANNER"
admob:adUnitId="ca-app-pub-5978068561095965/7471584327" />

So just tap this code after opening “main.xml” file with “Axel app” then edit relevant field as marked with RED in above & Save xml





Step-5
Recompile Source folder with APK Tool

Step-6
Now Zipalign apk with APK Tool

Step-7
Sign apk with APK Tool
(I pref “APK editor” app for Zipalign & Signing Bcz its fast. To do this you have to select “Optimize & Sign” Option after step-5)
   
                 (This is what you get Before & After – See the Bottom)



Important things for Reference Only

What is dip?
Density-independent Pixels - an abstract unit that is based on the physical density of the screen.

Related example:-
-px     (Pixels)
-in      (inches)
-mm  (Millimeters)
-pt     (Points)
-sp     (Scale Independent Pixels)

What are the Method through which we can remove Banner ad’s?
-          By editing Layout
-          By editing code in dex

Here is List of Known Ads to 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