Jump to content

Ad Removal: Shazam Example


Sysadmin
 Share

Recommended Posts

  • Administrators

Shazam Ad Removal

Requisites:

apktool - contains baksmali/smali, generally awesome. (http://code.google.c...ndroid-apktool/)

Android SDK installed. (http://developer.and.../sdk/index.html)

ADB Access.

An Android Device

Shazam allows you to identify songs based on input from your phone's microphone. It probably does

other bull**** but not only is it a free "trial", it also has google ads.

Protection Used: Feature limited free version

Ads Used: google ads

I downloaded the apk from my phone after getting it from the market.

ben@ben-laptop:~$ adb shell ls /data/app/ |grep shazam

com.shazam.android.apk

ben@ben-laptop:~$ adb pull /data/app/com.shazam.android.apk

1556 KB/s (706767 bytes in 0.443s)

Then I use apktool to decompress and disassemble the package:

apktool d com.shazam.android.apk shazam_reversing

Then I go into the newly created directory:

cd shazam_reversing

To remove the ads, I go to res/layout, in there, there's a file called view_advert.xml, rather clever of them to hide it there

I see their file defines a LinearLayout, this is likely expanded on inside the program itself, but let's just make everything

0px instead, shall we?

<?xml version="1.0" encoding="UTF-8"?>

<LinearLayout android:gravity="center_horizontal" android:background="@color/transparent" android:layout_width="0px" android:layout_height="0px" android:layout_alignParentBottom="true"

xmlns:android="http://schemas.android.com/apk/res/android" />>

OK I think I'm done, let's package everything back up, I go to the directory I originally ran apktool in, and do the following:

apktool b shazam_reversing newshazam.apk

we need to sign this to put on most android devices, if you have the SDK installed, you should have a debug key

jarsigner -keystore ~/.android/debug.keystore newshazam.apk androiddebugkey

and enter "android" as the password.

NOTE: You won't be able to "upgrade" the app on the device, you MUST uninstall it either on the device, or by typing the following:

adb uninstall com.shazam.android

You now have an installable cracked apk, which you can install by typing:

adb install newshazam.apk

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.