• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root AdFree manual hosts installation

Thanks a lot for the information, it's cleared up a lot. At work today so I will try when I get home and let you know how it goes. I was using unrEVOked 3.21, thanks to some random comment on a random page which was lucky I guess.

Seems it's the same method I used for my current root, but using a different .img unless I'm mistaking something. Will I need to do a factory reset to install Amon-ra? Or is there a simpler way to de-root?
 
Amon ra wont be unrooting. If you re-run unrevoked, using amonra (see rooting faq) it should simply replace clockworkmod recovery.

Since you cant see the erase size from terminal emulator, Im wonderig if it would be better to RUU, then check erase size, then if needs be unrevoked+amon ra. Amon ra is an alternative to clockworkmod.
 
Factory reset is really just a data wipe. It wipes the /data partition.

RUU flashes hboot, recovery and android. Turns it completely to stock
 
Righto, got the right RUU, installed it, phone is back to normal. Now to start rooting it again...

Once I use the amon-ra recovery image with unrevoked 3.21, how do I flash the alpharev for s-off? Is it just a .zip file? Or is the s-off included in the amon-ra recovery and alpharev is just for replacing it with clockwork recovery? Or am I speaking gibberish?
 
When I boot into recovery, it's just an image of my phone and a ! inside a red triangle and is unresponsive. Will get a virtual terminal app.
 
Yes but couple of points.

1) you have to select amonra before connection to desire

2) you couldn't use adb for hosts cause you couldn't mount system. With amonRA, you can so s-off not necessarily required at this stage

3) you don't mount. It needs to be bootable so burn to cd or use mountmyISO or something to make bootable usb
 
Awesome! Amon-ra worked much better than clockwork did, and it's all done without a hitch. Just gotta burn the iso and be done with this horrible, but undeniably enlightening experience. I feel like I gotta write a guide to do it now...

Thanks a lot SUroot! But I ain't done with you yet :P
 
Heh no I mean the amount of forums and guides I had to look and pour over, there must be some other poor schmuck in the same situation as me. Just watched a video of the process, seems straight forward.
 
I'm trying to work out which of the particular situations you have been in throughout this thread, you are refering to...

Any hint? ;)
 
Not knowing the first thing about what to do and encountering several issues along the way. Speaking of which, I have another.

Made bootdisc with alpharev and used it. It could not ID the phone, and simply powered down. I tried it a second time with the same deal. There was no CID, MID or anything like that. Gonna try VirtualBox, but I'm thinking this is a bridge too far, or I gotta wait for 1.9.
 
You dont really need s-off anyway. just use adb in recovery to push hosts file now. You should now be able to mount /system
 
I tried pushing it in adb, and it worked in a sense. Except I had to restore with nandroid 'cos it got stuck in a reboot loop. Not sure what I did wrong.

In recovery, I mounted /system. I put the hosts file in the same folder as adb and did:
adb push hosts /system/etc
adb reboot

Didn't seem to like it.
 
My god... I am so tired I can barely keep my eyes open but after obsessing about this the last week I have successfully avoided SOME ads. I got Angry Birds after hearing what an ad laden POS it is, and I didn't see any ads, but I did see one recurring ad in a free app I no longer need.

Victory, no matter how Pyrrhic, is still victory.

I retried the adb command, it seemed to work. Thanks for putting up with my nagging!
 
No problem. Glad you got it sorted for the most part.

Also, be aware that host files are not always up to date and some apps' adverts are coded in rather than obtained via the net :)

Now get some sleep ;)
 
While on the subject of hosts and AdFree, I wonder if anybody can help with the following problem.

I flashed LeeDroid 2.3d a while back and all was working fine with the exception of AdFree. This problem was easily rectified by uninstalling and reinstalling.

However, this lead to "hosts" being listed on my backup/restore list on Titanium. It had a line through it, so it is obviously no longer installed on the phone. However, I can't remove it from the backup and restore list on Titanium.
 
Hi,

I am having issues using adfree on HTC Desire too. Basically /sdcard/hosts doesn't get created after clicking on "Download & Install Hosts" regardless whether "Use /data/data/hosts simulink" is ticked or not. AdFree claims on each start that "No need to update, your system already has the latest version.", but ads are still there (e.g. in Google Maps, Advanced Task Killer Froyo, GPS Status). I have the phone rooted with unREVoked 3.31 and S-ON. I am using the default ROM that came with the phone. Here is info from Settings->About phone:

Code:
Software number - 2.14.207.3
Kernel version - 2.6.32.15-gd96f2c0, htc-kernel@and18-2 #1
Build number - 2.14.207.3 CL274424 release-keys

And here is /proc/mtd:

Code:
$ cat /proc/mtd
cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000a0000 00020000 "misc"
mtd1: 00480000 00020000 "recovery"
mtd2: 00300000 00020000 "boot"
mtd3: 0fa00000 00020000 "system"
mtd4: 02800000 00020000 "cache"
mtd5: 093a0000 00020000 "userdata"

Finally /system/etc/hosts

Code:
$ cat /system/etc/hosts
cat /system/etc/hosts
127.0.0.1                   localhost

Any help is appreciated.
 
Back
Top Bottom