Samsung Galaxy Alpha (SM-G850) Gets Android 5.0

An Android 5.0 Lollipop update is finally available to download for the Samsung Galaxy … more

Do You Use 4:3 or 16:9 in the Camera App?

Every person has their own method of taking the best photos on their devices, but which aspect … more

LG G4 XDA Forum Opened

LG’s latest & greatest is just a few hours away from launching, and with so many power users that are … more

Android Wear Close to Running on Samsung Gear 2

Android is an OS that can sometimes be ported to run on devices not designed to … more
Post Reply Subscribe to Thread Email Thread

Block ads on your Android phone (2010-04-15)

1st May 2012, 03:14 PM |#261  
lost101's Avatar
Senior Member
Thanks Meter: 2,566
Donate to Me
Tried AdAway?
The Following User Says Thank You to lost101 For This Useful Post: [ View ]
10th May 2012, 09:48 AM |#262  
Janfi_FR's Avatar
Junior Member
Flag Rognac (13)
Thanks Meter: 1
Originally Posted by lost101

Tried AdAway?


I'm using it on Hero and on my new phone, it works very well and it's full free software (GPL v3). Give it a chance !
21st May 2012, 04:15 AM |#263  
c_shekhar's Avatar
Recognized Developer
Thanks Meter: 34
Originally Posted by lost101

Tried AdAway?

Great suggestion....
works great!!!!
28th May 2012, 08:02 AM |#264  
Junior Member
Thanks Meter: 0
Donate to Me
AdAway is brilliant! So glad I read this thread and found it, massive thumbs up!
28th May 2012, 09:09 AM |#265  
1ceb0x's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 6,031
Donate to Me
There is AdFree also
10th July 2012, 04:12 PM |#266  
TheWall279's Avatar
Junior Member
Thanks Meter: 8
Sorry but this needs to be done. Your stealing from the developers. Put this in your application to view the hosts file and see if they are blocking the ads.

BufferedReader in = null;
Boolean result = true;
try {
in = new BufferedReader(new InputStreamReader(new FileInputStream("/etc/hosts")));
String line;
while ((line = in.readLine()) != null)
if (line.contains("admob")) // change this to whichever site you use
result = false;
} catch(Exception e){}
if(result == false){
Toast.makeText(getApplicationContext(),"admob detected in /etc/hosts", Toast.LENGTH_LONG).show();
public void adblockerFound(){
Do all the bad stuff here. I usually use a dialog and simply notify the user but I still let them use the application. I pretty much give them a guilt trip. But if you wanna be nasty you can do this.finish();

Ive also seen people ask for SU and then make the hosts file writeable and edit the admob out during the readline()
Post Reply Subscribe to Thread

hosts block filter ads
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes