Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
n0-0ne
Old
(Last edited by n0-0ne; 24th June 2010 at 01:50 PM.)
#1  
Member - OP
Thanks Meter 0
Posts: 89
Join Date: Nov 2006
Default adfree android

now that we have an easy way to push update.zip files I was wondering if there was any way to push the host file that adfree android downloads to the sdcard. I know that it doesn't have write access to the system partition when booted but in recovery we do right?

So it should be as simple as creating an update.zip that overwrites the old host right?

I'm going to try to get this working

EDIT: Here's how to get this working

1. Search for Adfree Android on the market
2. Install and run
3. allow it to download and install new hosts file, it will copy it to your sdcard and try to replace /system/etc/hosts but fail (it should reboot the phone shortly)
4. Power off the phone and hold Volume Down and power.
5. Use volume down to select recovery
6. In clockwork recovery volume down to "partitions menu" and hit the track pad to select
7. Select "mount /system" and "mount /sdcard" "mount /data"
8. Plug in your usb cord and open a command line on your pc
9. enter adb shell and type the following commands

cp /sdcard/hosts /data/data/hosts
rm /system/etc/hosts
ln -s /data/data/hosts /system/etc/hosts

10. Reboot your phone and enjoy adfree android.

Thanks to all for help in getting this running.
 
jonnybueno
Old
#2  
jonnybueno's Avatar
Senior Member
Thanks Meter 6
Posts: 637
Join Date: Jan 2009
Location: 50th
Just adb push your modified host file to /system/etc/hosts. No need for update.zip
 
junjlo
Old
#3  
Senior Member
Thanks Meter 10
Posts: 210
Join Date: Jul 2008
Location: Phoenix
ive already done this doesnt work still have tons of adds
xv6600>xv6700>xv6800>ADR6300>SGT7>ADR6400L>SCH-I535
 
n0-0ne
Old
#4  
Member - OP
Thanks Meter 0
Posts: 89
Join Date: Nov 2006
word, I figured it out
 
n0-0ne
Old
#5  
Member - OP
Thanks Meter 0
Posts: 89
Join Date: Nov 2006
Quote:
Originally Posted by junjlo View Post
ive already done this doesnt work still have tons of adds
what I did was install adfree android, wait for it download and error (the phone will reboot itself) put it into recovery and run the following command from adb shell

cp /sdcard/hosts /system/etc

All my ads are gone
 
supagene
Old
#6  
Member
Thanks Meter 0
Posts: 51
Join Date: Jun 2010
Location: San Pedro, CA
You mind sharing the host file? I'd like to do the same. Now that I can connect as root with 'adb shell' then 'su' after the new Unrevoked^2 root. I'd like to start tweaking with things.
 
n0-0ne
Old
#7  
Member - OP
Thanks Meter 0
Posts: 89
Join Date: Nov 2006
Quote:
Originally Posted by supagene View Post
You mind sharing the host file? I'd like to do the same. Now that I can connect as root with 'adb shell' then 'su' after the new Unrevoked^2 root. I'd like to start tweaking with things.
just download and install adfree android, it copies the host file to your sdcard.
 
junjlo
Old
(Last edited by junjlo; 24th June 2010 at 12:45 AM.)
#8  
Senior Member
Thanks Meter 10
Posts: 210
Join Date: Jul 2008
Location: Phoenix
Quote:
Originally Posted by n0-0ne View Post
what I did was install adfree android, wait for it download and error (the phone will reboot itself) put it into recovery and run the following command from adb shell

cp /sdcard/hosts /system/etc

All my ads are gone
i may have an older hosts file than but i just used adb push hosts /system/ect/hosts

tryed cp but get a box with busybox info
xv6600>xv6700>xv6800>ADR6300>SGT7>ADR6400L>SCH-I535
 
supagene
Old
#9  
Member
Thanks Meter 0
Posts: 51
Join Date: Jun 2010
Location: San Pedro, CA
Quote:
Originally Posted by n0-0ne View Post
just download and install adfree android, it copies the host file to your sdcard.
I intalled the app and when I hit download and intall I get java/io.FileNotFoundException:/sdcard/hosts

My guess is that it's not downloading.

Tried it on both WiFi and 3G
 
n0-0ne
Old
#10  
Member - OP
Thanks Meter 0
Posts: 89
Join Date: Nov 2006
Quote:
Originally Posted by supagene View Post
I intalled the app and when I hit download and intall I get java/io.FileNotFoundException:/sdcard/hosts

My guess is that it's not downloading.

Tried it on both WiFi and 3G
ok well here's what was downloaded to my card
https://www.yousendit.com/transfer.p...T2JQb0t4dnc9PQ

Thats good for 100 downloads.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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...