Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Flak_Munky
Old
(Last edited by Flak_Munky; 19th July 2010 at 09:41 PM.)
#1  
Flak_Munky's Avatar
Senior Member - OP
Thanks Meter 26
Posts: 196
Join Date: May 2009
Location: ??, Michigan
Default AdBlock

Has anyone tried to run the adblock script on their phones yet? I keep trying it on mine, and making some minor modifications to the script and to the method of running it, but I cant get it to run.

Unlike on the G1 (and others), there seems to be no hosts file in /system/etc. Was it moved to another location (I can't find it). I manually created a hosts file and moved it to /system/etc, but it did not block anything.

Every time I have tried it, I get the following:

# sh adblock.sh
sh adblock.sh
: not found
: not found
: not found
: not found
: not found
: not found
ADBLOCK: Remounting /system to read-write
mount: No such file or directory
: not found
ADBLOCK: Testing for Internet Connection...
adblock.sh: 139: Syntax error: end of file unexpected (expecting "then")
# busybox sh adblock.sh
busybox sh adblock.sh
: not found line 23:
: not found line 27:
: not found line 32:
: not found line 34:
: not found line 36:
: not found line 41:
ADBLOCK: Remounting /system to read-write
mount: No such file or directory
: not found line 44:
ADBLOCK: Testing for Internet Connection...
adblock.sh: line 139: syntax error: unexpected end of file (expecting "then")\

This is the same one I used on my G1 (without any modifications). Looks like it is bombing out right at the end, but not sure what needs to be changed to get it running.
HTC Droid DNA
UKB DNA 1.2.1
Cubed Kernel 2.4.2

Verizon Galaxy Nexus - Retired while testing DNA
Samsung Vibrant - Shattered screen - Retired
T-Mobile Bronze G1 - Retired

DropBox
 
SykesAT
Old
#2  
Senior Member
Thanks Meter 21
Posts: 433
Join Date: Jul 2010
I run adfree and it work perfectly.
 
Flak_Munky
Old
#3  
Flak_Munky's Avatar
Senior Member - OP
Thanks Meter 26
Posts: 196
Join Date: May 2009
Location: ??, Michigan
Does that block ads within apps, or just for the browser?
HTC Droid DNA
UKB DNA 1.2.1
Cubed Kernel 2.4.2

Verizon Galaxy Nexus - Retired while testing DNA
Samsung Vibrant - Shattered screen - Retired
T-Mobile Bronze G1 - Retired

DropBox
 
zephiK
Old
#4  
Senior Member
Thanks Meter 1771
Posts: 7,780
Join Date: Aug 2009
Location: New York, NY

 
DONATE TO ME
Quote:
Originally Posted by Flak_Munky View Post
Does that block ads within apps, or just for the browser?
Yeah it blocks ads within apps. Hi AIM doesnt show the ad anymore and is replaced with a white greenish with the Android logo
Nexus 4 (E960): CarbonRom Nightlies | Franco Kernel (latest nightly)
ASUS Transformer (TF101): Team EOS4 #150 | K.A.T. 90
Older phones: Galaxy Nexus, Nexus S, Samsung Vibrant, G1
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...