Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,068 Members 47,533 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
lost101
Old
#261  
Senior Member
Thanks Meter 478
Posts: 939
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 32
Posts: 1,941
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 4790
Posts: 4,358
Join Date: Jun 2010
Location: Bucharest

 
DONATE TO ME
There is AdFree also
 
My past projects

HTC Hero GSM!
SHPONGLE / HeroICS 4.0.3 / BEASTsense

HTC One V GSM!
SHPONGLE
PARANOID ANDROID



LG G2
render™ inside | MahdiRom™ 4.4


Nexus 4
hellscore™ inside | slimKKatz™


Like my work for the community? Feel free to make a donation
 
TheWall279
Old
#266  
TheWall279's Avatar
Junior Member
Thanks Meter 8
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()
**/
}
 
xmanxwomen
Old
#267  
Junior Member
Thanks Meter 1
Posts: 4
Join Date: Jul 2014
Default block ads

Quote:
Originally Posted by Fat Fred View Post
Since AdFree stopped working I tried this script but am having similar problems on my Desire with Cyanogenmod 7 RC1 as a couple of peeps above:



Any ideas? I was on LeeDroid 2.3d prior to this rom change, which worked fine with AdFree...

Oh, and no, I can't "cd hosts" either!

I just know how to block ads on Mac OS X users or Windows 8/7/Vista/XP 32&64bit but not on android phone.

if you want to block websites in large scale in the future, you can use a professional web filter which will help you easily block websites by keywords or URL.

I have Aobo Filter running secretly on my PC. It is not only a web filter but also a Program blocker. It can block games, applications from running on PC.

Hope it will help you in later.

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

Advanced Search
Display Modes