IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and … more

Android 5.1.1 Omni ROM For Motorola Xoom

Back in Feb 2011, the Motorola Xoom became the first device to be sold with Android 3.0 … more

CleanSlate Brings Fingerprint Scanner Mod to HTC One M9+

Work of XDA Recognized Developer tbalden, CleanSlate custom kernel for the HTC … more

Sunday Debate: Which Factors Caused HTC’s Woes?

Join us in a fun Sunday Debate on HTC’s situation. Come with your … more

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

107 posts
Thanks Meter: 12
By phaelox, Senior Member on 15th April 2010, 10:52 PM
Post Reply Subscribe to Thread Email Thread
1st May 2012, 03:14 PM |#261  
lost101's Avatar
Senior Member
Thanks Meter: 3,072
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,107
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