New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
lost101
Old
#261  
Senior Member
Thanks Meter 53
Posts: 228
Join Date: May 2008
Tried AdAway?
The Following User Says Thank You to lost101 For This Useful Post: [ Click to Expand ]
 
Janfi_FR
Old
#262  
Janfi_FR's Avatar
Junior Member
Thanks Meter 1
Posts: 6
Join Date: Aug 2011
Location: Rognac (13)
Quote:
Originally Posted by lost101 View Post
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 !
 
c_shekhar
Old
#263  
c_shekhar's Avatar
Recognized Developer
Thanks Meter 26
Posts: 1,901
Join Date: Jun 2005
Quote:
Originally Posted by lost101 View Post
Tried AdAway?
Great suggestion....
works great!!!!
Please -DONATE


Samsung Galaxy S Plus
My own ROM
GB 2.3.6 KQE/Feamod NOC 1.4Fix/SkyHigh Kernel 1.4d

HTC HD2
My HD2 3.04.23569bCS (Build 23563.5.5.0)

HTC Touch Diamond
My Diam 2.10.21051A.CS (Build 21051.1.6.3)
My Diam 2.11.21056c.CS (Build 21056.1.6.9)

HTC Touch Cruise
My Pola ROM 1.60.21014aCS (Build 21014)
My Pola ROM 1.60.931aCS (Build 20931)
Radio 1.58.25.14

HTC Himalaya
My Hima ROM 6.1.2a16CS(build 19209)
My Hima ROM 6.1.1c16CS(Build 19199)
 
Syrebral
Old
#264  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: May 2012

 
DONATE TO ME
AdAway is brilliant! So glad I read this thread and found it, massive thumbs up!
 
1ceb0x
Old
#265  
1ceb0x's Avatar
Senior Member
Thanks Meter 3225
Posts: 2,920
Join Date: Jun 2010
Location: Bucharest

 
DONATE TO ME
There is AdFree also
 
TheWall279
Old
#266  
TheWall279's Avatar
Junior Member
Thanks Meter 6
Posts: 8
Join Date: Nov 2009
Location: Atlanta
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()
**/
}
Tags
hosts block filter ads