Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP phaelox

1st May 2012, 04:14 PM   |  #261  
lost101's Avatar
Senior Member
Thanks Meter: 1,372
 
1,837 posts
Join Date:Joined: May 2008
Tried AdAway?
The Following User Says Thank You to lost101 For This Useful Post: [ View ]
10th May 2012, 10:48 AM   |  #262  
Janfi_FR's Avatar
Junior Member
Flag Rognac (13)
Thanks Meter: 1
 
6 posts
Join Date:Joined: Aug 2011
More
Quote:
Originally Posted by lost101

Tried AdAway?

+1.

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, 05:15 AM   |  #263  
c_shekhar's Avatar
Recognized Developer
Thanks Meter: 34
 
1,941 posts
Join Date:Joined: Jun 2005
Quote:
Originally Posted by lost101

Tried AdAway?

Great suggestion....
works great!!!!
28th May 2012, 09:02 AM   |  #264  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: May 2012
Donate to Me
AdAway is brilliant! So glad I read this thread and found it, massive thumbs up!
28th May 2012, 10:09 AM   |  #265  
1ceb0x's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 5,833
 
5,105 posts
Join Date:Joined: Jun 2010
Donate to Me
More
There is AdFree also
10th July 2012, 05:12 PM   |  #266  
TheWall279's Avatar
Junior Member
Atlanta
Thanks Meter: 8
 
8 posts
Join Date:Joined: Nov 2009
More
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;
break;
}
}
} catch(Exception e){}
if(result == false){
Toast.makeText(getApplicationContext(),"admob detected in /etc/hosts", Toast.LENGTH_LONG).show();
adBlockerFound();
}
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

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

Advanced Search
Display Modes