Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,395 Members 46,574 Now Online
XDA Developers Android and Mobile Development Forum

AdBlock

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.
Verizon HTC One M8
S-off and rooted
Task650's AOKP

Samsung Galaxy S4 MDK - Retired
HTC Droid DNA - Retired
Verizon Galaxy Nexus - Retired
Samsung Vibrant - Shattered screen - Retired
T-Mobile Bronze G1 - Retired
T-Mobile Black G1 - Dog ate it - Retired
 
SykesAT
Old
#2  
Senior Member
Thanks Meter 25
Posts: 471
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?
Verizon HTC One M8
S-off and rooted
Task650's AOKP

Samsung Galaxy S4 MDK - Retired
HTC Droid DNA - Retired
Verizon Galaxy Nexus - Retired
Samsung Vibrant - Shattered screen - Retired
T-Mobile Bronze G1 - Retired
T-Mobile Black G1 - Dog ate it - Retired
 
zephiK
Old
#4  
Recognized Contributor
Thanks Meter 4156
Posts: 11,863
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
Follow me on Twitter! | VomerTweaks for OPO/N5 | Scrolling Mods for Various OPO Roms | Enable 1080p for YouTube

OnePlus One: Mahdi | Franco Kernel
Nexus 5: Mahdi | Franco Kernel
Older devices: Nexus 4, Galaxy Nexus, TF101, Nexus S, Samsung Vibrant, G1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes