Monday, 14 October 2013

How I made my android advertisement free.!

To make android device advertisement free, one need to root android device.
There are plenty of guides available on internet to root your device so follow anyone.

Once android is rooted then follow these simple steps:

1. Install fiddler on your computer.(To capture web traffic from android)
    Download it from here: Fiddler 2
    Go to tools fiddler options and select the options as given in figure:
    Accept the notification if any.

2. Install proxydroid from google play and give it super user access.
    Now enter your ip address (using cmd and ipconfig /all) in proxydroid app.
    and then click on enable proxy switch. This will route all the traffic from your android to your system and fiddler will be able to capture it.

3. Now next step could be completed in two ways:
    We need to update hosts file provided inside /system/etc/hosts
  one way is to use adb commands, pull update and then push this file.
 other easy way is to use any root application for android which could transfer files from one location to other.

I am using second approach as it's easy and convenient.

So download File Explorer and also download root access for it.

Once it's operational copy hosts file from /system/etc/hosts to /mnt/sdcard so you can download it to your computer using data cable.

Once hosts file available on computer use all the host address(advertisers which you got from step 2) to redirect to localhost.
A sample hosts file I created and using on my android (contains some adservers URL from adfree application)

# Ad server list for use with hosts files to block ads localhost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
 # your advertiser hosts to block

Add your hosts in above line and remove comment.

Now we need to push this file on android, so copy the same on your sdcrad using data cable and then using file explorer with root access replace this file at /system/etc/hosts.

Switch off and restart your phone.

Now most of the applications will be adfree.
Enjoy. :)

Android should be rooted for the whole process and proper care should be taken.
These are my views and no responsibility taken for any harm or anything wrong happens while following this process.