Go Back   Android Forums > Android Phones > HTC Desire > Desire - All Things Root

test: Reply
 
LinkBack Thread Tools
Old March 1st, 2011, 10:49 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default AdFree manual hosts installation

I've looked at several threads on different forums and none quite solve the issue I am having.

I have a rooted Desire (which took a while and wasn't successful following any guide, but I got it) using unrEVOked 3.21 and am trying to use AdFree on Froyo 2.2 but I am told that the hosts file I need to block ads cannot be written to /system while Android is running. I did some searching but, alas, no luck on an answer.

I also got Root Explorer off the market (which cannot simply copy the hosts file into /system/etc/ as it does not have access whilst Android is running) and I think the command prompt I need is the pc cmd prompt when the device is plugged into USB.

I got the Android SDK with adb and made progress, but still stumped.
I connect the Desire to the PC and with the Desire in recovery mode with ClockworkMod I run adb with:

Code:
adb shell
# mount /system
# exit
adb push hosts /system/etc
adb reboot
Following the example from here but it's a different device and dunno what to put for the first argument in '# mount /dev/block/mtdblock4 /system'. Any help at all would be much appreciated.

Advertisements
Pioneer161 is offline  
Last edited by Pioneer161; March 1st, 2011 at 10:50 PM. Reason: formatiing
Reply With Quote
sponsored links
Old March 2nd, 2011, 12:31 AM   #2 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

You cant edit /system whilst android is running if you are not s-off.

There is an option to symbolically link to /data though. If you are s-on, do that
SUroot is offline  
Reply With Quote
Old March 2nd, 2011, 12:36 AM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

You may have to elaborate a bit, the phrase s-off is new to me. Do I need an application or add-on to enable it, or is it an option on the device?

Cheers for the response though.
Pioneer161 is offline  
Reply With Quote
Old March 2nd, 2011, 12:46 AM   #4 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Actually, I'll describe what I do in AdFree and why I think I need to do it manually.

I uninstalled it and reinstalled from Market and added it to SU allow list. I tick 'Check for updates' and 'Download and Install Hosts' after it loads a bit it restarts the phone. The hosts file in system/etc/ is still only 127.0.0.1.
Pioneer161 is offline  
Reply With Quote
Old March 2nd, 2011, 01:01 AM   #5 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

S-off (security flag off) is achieved by flashing a custom alpharev hboot. The security flag that resides in radio nvram that protects the running android system is ignored by this hboot.

For blocking ads, s-off is over kill. However without it, you are unable to modify anything in the system directory whilst android is running.

Like I said earlier though, you just need to tick the symlink to /data tick box. This bypasses system all together so no need for s-off
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
Pioneer161 (March 2nd, 2011)
Old March 2nd, 2011, 01:13 AM   #6 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Thanks for another response!

I have 'Check for updates' and 'symlink from data/data/hosts' and it reports that all is up to date, however I still see ads in apps. If this is indeed intentional, is there a way to hide ads in apps?

Oh and additional, in HBOOT it is set to s-on. I am going to attempt to redo the root process and get s-off, or if you can recommend an easier way, I'd be happy to listen.
Pioneer161 is offline  
Reply With Quote
Old March 2nd, 2011, 02:34 AM   #7 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

It should work. Have you done symlink then downloaded manually via the button since doing ths symlink? Then reboot? definitely the same?

Are you on a CDMA (no sim card) or GSM (sim card) desire?
SUroot is offline  
Reply With Quote
Old March 2nd, 2011, 02:46 AM   #8 (permalink)
Senior Member
 
Join Date: Apr 2010
Location: UK
Posts: 777
 
Device(s): Nexus 5 : AOKP/Franco, Nexus 10 : Stock, GNex : AOKP (retired), Desire : Redux 2 (retired)
Carrier: Not Provided

Thanks: 60
Thanked 123 Times in 106 Posts
Default

The symlink does work with S-ON but I have found that the app doesn't block all ads. A lot of the time you just see the 'revolving circle' symbol where the ad should be but sometimes they do creep through. It all depends on whether the ip address of the ad site is in the hosts file downloaded
GrenW is offline  
Reply With Quote
Old March 2nd, 2011, 03:18 AM   #9 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Ok, made some progress. My issue was that I need UnrEVOked Forever flashed to get s-off which will let me alter /system but have another issue.

I have a standard HTC Desire with 2.2 Froyo, and when flashing Forever, I get:

Quote:
Verifying system type...
E:unsupported system
E:Update failed. Check /sdcard/log.
E:Error in /sdcard/unrevoked-forever.zip
(Status 42)
Installation aborted.
Now I am fairly sure this should work, the Desire's been rooted before. Any ideas?

I have a SIM, so GSM. And I feel like I have just figured out why this won't work until they fix it...

Thanks for the help thus far too!
Pioneer161 is offline  
Last edited by Pioneer161; March 2nd, 2011 at 03:21 AM. Reason: Additional info
Reply With Quote
Old March 2nd, 2011, 03:43 AM   #10 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Maybe all is not lost, but maybe there's still an issue. Apparently you can flash a new hosts file from a .zip.

I was sent /hosts/ which contains an up to date hosts file, and it said it installed successfully but the hosts in /system/etc is still 127.0.0.1...
Pioneer161 is offline  
Reply With Quote
sponsored links
Old March 2nd, 2011, 03:46 AM   #11 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Quote:
Originally Posted by Pioneer161 View Post
Ok, made some progress. My issue was that I need UnrEVOked Forever flashed to get s-off which will let me alter /system but have another issue.

I have a standard HTC Desire with 2.2 Froyo, and when flashing Forever, I get:

Now I am fairly sure this should work, the Desire's been rooted before. Any ideas?

I have a SIM, so GSM. And I feel like I have just figured out why this won't work until they fix it...

Thanks for the help thus far too!

See, if you answered my question before you started doing things, i would have saved you time

Unrevoked does not S-Off GSM desires. only AlphaRev 1.8 will.

However, like Gren said, it will not block every advert. Only whats in the file.

Now before you do ANYTHING, please confirm you have done what I said in my last post.
SUroot is offline  
Last edited by SUroot; March 2nd, 2011 at 03:48 AM.
Reply With Quote
Old March 2nd, 2011, 03:47 AM   #12 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Quote:
Originally Posted by Pioneer161 View Post
Maybe all is not lost, but maybe there's still an issue. Apparently you can flash a new hosts file from a .zip.

I was sent /hosts/ which contains an up to date hosts file, and it said it installed successfully but the hosts in /system/etc is still 127.0.0.1...

Can you copy the text from the hosts file please, they all always start 127.0.0.1. Are you sure you understand what you should be seeing?
SUroot is offline  
Reply With Quote
Old March 2nd, 2011, 04:17 AM   #13 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Yeah the only thing in the hosts file is 127.0.0.1 localhost. I understand what it is, but it didn't work. I followed what you said earlier, but I was still getting 100% ads in several apps, whilst the hosts file was still only showing localhost.

Now that I know I cannot get s-off, for now, I was looking for an alternative and found this how to: get Adfree Android working on htc Incredible. but it is dated last year.

In the listed steps, it says to choose 'mount /system' and the others but I was only able to mount /sdcard and it was suggested to format system and data before you can mount it and I wanted to run it past you first. Formatting in the traditional sense is something you don't want to rush into.

Thanks for your advice, this is being very productive.
Pioneer161 is offline  
Reply With Quote
Old March 2nd, 2011, 04:25 AM   #14 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Formatting system does just that, so dont do it or you wont have a rom.

You used unrevoked, so you have clockwork mod recovery.

Out of interest, can you please download terminal emulator from the market.

Open Terminal emulator and type:

cat /proc/mtd

...and press enter...


Let me know the erase size pelase
SUroot is offline  
Reply With Quote
Old March 2nd, 2011, 04:57 AM   #15 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

I downloaded the app, but it breaks on open. There's a paid one, but is it that important?

So if I cannot flash a new hosts file, don't have s-off, and adfree does not work as is and I have a GSM phone, there is buckleys I can do about ads?

Is there a way using adb? I was using it earlier, but could not mount system.
Pioneer161 is offline  
Last edited by Pioneer161; March 2nd, 2011 at 05:02 AM. Reason: More info
Reply With Quote
Old March 2nd, 2011, 05:07 AM   #16 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

You can also type:
adb shell [enter]
cat /proc/mtd [enter]

So you can do it via your pc. I need to find out your erase size (unless you hboot doesnt say PVT4.

If it says PVT4, this may help me understand why you cant mount system.
SUroot is offline  
Reply With Quote
Old March 2nd, 2011, 05:10 AM   #17 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Righto will get on it.
Pioneer161 is offline  
Reply With Quote
The Following User Says Thank You to Pioneer161 For This Useful Post:
SUroot (March 2nd, 2011)
Old March 2nd, 2011, 05:15 AM   #18 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

I got:

dev: size erasesize name
Pioneer161 is offline  
Reply With Quote
Old March 2nd, 2011, 05:21 AM   #19 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Dont understand. They're the column headings. Were there no values underneath? it should say either 20,000 or 40,000 and I need to know which.

Are you doing this with android on or in recovery?
SUroot is offline  
Reply With Quote
Old March 2nd, 2011, 05:52 AM   #20 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Android is in recovery and I used adb with the command you said. No values.
Pioneer161 is offline  
Reply With Quote
sponsored links
Old March 2nd, 2011, 06:23 AM   #21 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Something really dodgy there mate.
SUroot is offline  
Reply With Quote
Old March 2nd, 2011, 06:40 AM   #22 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

What should be listed there exactly? Worst case scenario, I do a system restore. It's a new device and I've only used it the last two days, so nothing is really worth keeping that I can't redo.

If it's easier to root on a Mac, I'll try that if I do have to restart the process, but I guess I'm not done yet.

Thanks for your help.
Pioneer161 is offline  
Reply With Quote
Old March 2nd, 2011, 06:50 AM   #23 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Under erase size it should either say 20000 ot 40000. It is definitely one of these, it should never be nothing.

I think you have a serious NAND problem.

I would want to use an RUU to take it back to stock.

Have you flashed a custom rom yet or are you still on stock?

Does it say PVT on the hboot screen?
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
Pioneer161 (March 2nd, 2011)
Old March 2nd, 2011, 07:02 AM   #24 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Well I do not see a nandroid option when in recovery, unsure if it's even on. But I maybe talking about something utterly unrelated. I'm on stock HTC at the moment, no custom ROM.

HBOOT screen says:
BRAVO PVT4 SHIP S-ON
HBOOT-0.93.0001
MICROP-051d
TOUCHPANEL-SYNW0101
RADIO-5.09.05.30_2
Pioneer161 is offline  
Reply With Quote
Old March 2nd, 2011, 08:50 AM   #25 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

It is only pvt4 devices are 40000 but not all. Now clockwork mod doesn't work on 40000 so I assume this is the problem.

Best thing to do is re root and install amon ra instead. See rooting faq. You need to select amon ra before connecting phone
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
Pioneer161 (March 2nd, 2011)
Old March 2nd, 2011, 05:31 PM   #26 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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?
Pioneer161 is offline  
Reply With Quote
Old March 3rd, 2011, 12:35 AM   #27 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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.
SUroot is offline  
Reply With Quote
Old March 3rd, 2011, 12:38 AM   #28 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Ah so what's the difference between RUU and reverting to factory settings? I sent a pm, too
Pioneer161 is offline  
Reply With Quote
Old March 3rd, 2011, 01:02 AM   #29 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Factory reset is really just a data wipe. It wipes the /data partition.

RUU flashes hboot, recovery and android. Turns it completely to stock
SUroot is offline  
Reply With Quote
Old March 3rd, 2011, 02:36 AM   #30 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Ok. I looked at your FAQ, but the list of RUUs is quite extensive... what am I looking for in there?
Pioneer161 is offline  
Reply With Quote
sponsored links
Old March 3rd, 2011, 02:41 AM   #31 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

If you go to settings>About phone, what is your software / build version?
SUroot is offline  
Reply With Quote
Old March 3rd, 2011, 05:49 PM   #32 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Software number - 2.13707.1
Kernel - 2.6.32.15
Build number - 2.13.707.1
Pioneer161 is offline  
Reply With Quote
Old March 3rd, 2011, 11:06 PM   #33 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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?
Pioneer161 is offline  
Reply With Quote
Old March 4th, 2011, 12:14 AM   #34 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Before you root, do the erase size business...

s-off is a bootable iso. You boot the pc to it and follow instructions.

AlphaRev 1.8
SUroot is offline  
Reply With Quote
Old March 4th, 2011, 01:13 AM   #35 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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.
Pioneer161 is offline  
Reply With Quote
Old March 4th, 2011, 01:21 AM   #36 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Success! I get 40000 in the erasesize column.

So, in the guide linked to in your FAQ - http://forum.xda-developers.com/showthread.php?p=9207011#post9207011

Gonna see if I have this right:
Firstly, run unrEVOked 3.21 with a custom .img, Amon-ra
This will put on a recovery, but I won't have s-off until I run the AlphaRev.
I mount the AlphaRev .iso with my pc, and it has instructions.
After that, I will have a rooted Desire with s-off?
Pioneer161 is offline  
Last edited by Pioneer161; March 4th, 2011 at 01:25 AM.
Reply With Quote
Old March 4th, 2011, 01:32 AM   #37 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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
SUroot is offline  
Last edited by SUroot; March 4th, 2011 at 01:34 AM.
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
Pioneer161 (March 4th, 2011)
Old March 4th, 2011, 02:32 AM   #38 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

How does the phone get the data when the computer boots from a CD? Or does it go to the PC first?
Pioneer161 is offline  
Reply With Quote
Old March 4th, 2011, 04:06 AM   #39 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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
Pioneer161 is offline  
Last edited by Pioneer161; March 4th, 2011 at 04:07 AM. Reason: misspelling
Reply With Quote
Old March 4th, 2011, 04:25 AM   #40 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Quote:
Originally Posted by Pioneer161 View Post
How does the phone get the data when the computer boots from a CD? Or does it go to the PC first?
Because the CD is a bootable mini linux environment.


Write a guide on what, S-off? I can point you to one if you like
SUroot is offline  
Reply With Quote
sponsored links
Old March 4th, 2011, 04:43 AM   #41 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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.
Pioneer161 is offline  
Reply With Quote
Old March 4th, 2011, 05:26 AM   #42 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

I'm trying to work out which of the particular situations you have been in throughout this thread, you are refering to...

Any hint?
SUroot is offline  
Reply With Quote
Old March 4th, 2011, 06:19 AM   #43 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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.
Pioneer161 is offline  
Reply With Quote
Old March 4th, 2011, 07:22 AM   #44 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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
SUroot is offline  
Reply With Quote
Old March 4th, 2011, 08:30 AM   #45 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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.
Pioneer161 is offline  
Reply With Quote
Old March 4th, 2011, 09:03 AM   #46 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

Didnt like it how? or are you just talking about sense?
SUroot is offline  
Reply With Quote
Old March 4th, 2011, 09:11 AM   #47 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2011
Location: Australia
Posts: 31
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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!
Pioneer161 is offline  
Reply With Quote
Old March 4th, 2011, 09:26 AM   #48 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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
SUroot is offline  
Reply With Quote
Old March 4th, 2011, 09:35 AM   #49 (permalink)
Senior Member
 
JohnnyBravo1000's Avatar
 
Join Date: Jun 2010
Location: Luton
Posts: 929
 
Device(s): Samsung Galaxy S3 LTE 4G - Titanium Grey
Carrier: T-Mobile UK

Thanks: 19
Thanked 57 Times in 50 Posts
Default

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.
JohnnyBravo1000 is offline  
Reply With Quote
Old May 14th, 2012, 02:46 AM   #50 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default No /sdcard/hosts file

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.
rryk is offline  
Last edited by rryk; May 14th, 2012 at 03:00 AM.
Reply With Quote
Reply
Tags
adb, adfree, desire, hosts, root


Go Back   Android Forums > Android Phones > HTC Desire > Desire - All Things Root
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:24 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.