yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] jasonmaloney:
As many of you may know, you are locked out of using fastboot commands unless you have an engineering SPL. But I made a little discovery last night about how the HTC Rom Update Utility actually installs ROMs. Turns out it uses... fastboot!

Here's how it works:

With phone powered on, do "adb reboot bootloader" to enter fastboot.

-OR- With phone powered down, power on phone while holding VOL DOWN. From there press VOL UP to enter fastboot.

Run the command "fastboot oem rebootRUU"

Now you should see a black screen with a silver HTC logo. Look familiar? This is the screen you'll see when using the RUU.

From here you can re-flash an original HTC ZIP, with "fastboot flash zip filename.zip", where filename is the name of your signed HTC image.

As an added bonus, if your phone is S-OFF (even if you're not using the ENG SPL), you can flash ANY fastboot-compatible ZIP from here, signed or not.

When you're done, "fastboot reboot" will boot the device.

Found this by accident trying to help someone on IRC who had screwed up both their ROM and recovery somehow. All they could get into was fastboot/hboot, and they were S-ON.
[Hero CDMA Android Development] jneg123:
Thankyou!

Just wanted to say I'm the guy that messed up his phone and needed Jason's help. He got me into a Sense ROM and was able to then get clockwork running again and restore my Nand. Really save my bacon. :D

Also, I've followed your advice. I now have a rooted AND S-off hero running Gingerbread.

Thanks again!
[Hero CDMA Android Development] PMGRANDS:
Really? Thanks for the Info... Helpful, and Good to Know!!
[Hero CDMA Android Development] steve19137:
wow, this is valuable information. couldnt this be put into the wiki or something? i tend to go to the wiki often, but i dont know how to properly edit a wiki.
[Hero CDMA Android Development] Houndog101:
I have a similar problem with my CDMA hero. I tried the "Run the command "fastboot oem rebootRUU" and I get

<bootloader> [ERR] command error !!!

What am I doing wrong ? Probably everything.

Thanks.
[Hero CDMA Android Development] jasonmaloney:
Which bootloader version do you have, and where did you get the fastboot binary?
[Hero CDMA Android Development] Houndog101:
HBOOT-1.47.0000 (HERO20000) is this what you mean ?

I got the fastboot off this site with SDK tools Android SDK updater ,revision 10. Is this what you need ?

Thanks for helping me..
[Hero CDMA Android Development] il Duce:
hey Jason here's some background on his problem, I linked him this thread, hopefully you have more patience than me, but you know me, I don't really ;) and I'm a dink :eek: http://xdaforums.com/showthread.php?t=984688
[Hero CDMA Android Development] jasonmaloney:
Not sure why it would be giving you issue. Make sure you're in fastboot mode and not hboot mode. You should see "Fastboot USB" on the screen if memory serves.

Alternatively, try the copy of fastboot.exe on my site. I pulled this directly from HTC's Rom Update Utility, so it might work better.
[Hero CDMA Android Development] Houndog101:
Jason, Thanks a million times, That was a problem, I d/l your fast.boot and it got me to the Black with silver htc screen. I'll see what I can do from here. Just want to get it to where I can boot into recovery.. Thanks again for helping me.
[Hero CDMA Android Development] counterfeit187:
I've followed all the instructions but with a slightly different problem. I can't get to bootloader at all, but if I plug my hero to my pc and turn it on then it will say "fastboot usb" in a red rectangle at the top left, but is still otherwise the white HTC screen. when I do "fastboot oem rebootRUU" the terminal says okay, but the phone reboots into the same state instead of the black and silver screen I am hoping to see. Is it a brick or is there another option?
[Hero CDMA Android Development] beand1p:
I get to where I want to load the image and it says "error: cannot load 'HERCIMG.zip'". Is this because it is not signed. I have the zip on the root of my sd card. I'm trying to install just a stock ROM and unroot so I can sell my phone.
[Hero CDMA Android Development] laie1472:
If you look in the hero dev section you can find a thread called ruu in zip format. It will take you back to stock all the way no recovery no nothing just like fresh out the box. I've used it myself when I couldn't flash sense roms. And it works great. I would link you but I'm mobile. You might have to dig a little but its worth it. Good luck.

Yea It's Me Again With the

Modified Hero
[Hero CDMA Android Development] beand1p:
I get the same error even with that zip. I am S-OFF also. I have HBOOT-1.47 with radio 2.42.01.04.27.

I've tried almost everything to unroot and get back to stock. I am about ready to throw in the towel.
[Hero CDMA Android Development] dpeeps74:
Why not just leave it rooted and put a stock rooted rom? Seems at that point you could remove superuser permissions somehow if It's that important for them to not have root. That would essentially take away root for all intensive purposes I would think. I'm just thinking out loud here and definitely you may want another opinion, but having root on the phone won't really cause them any real problems as long as they have a stock rom. They can still activate it, it still has the same menu options for a hard reset...maybe I'm missing the point other than you should be able to do what you're trying?

[dpeeps74]
[Hero CDMA Android Development] beand1p:
All the stock RUU's I have tried always give me the RUU Error [140]: BOOTLOADER VERSION ERROR

EDIT

I was able to RUU after using this method: http://xdaforums.com/showthread.php?t=843544
[Hero CDMA Android Development] zbach:
I'm currently hitting a roadblock with this. Whenever i try the fastboot update zip command, and add the filename, i get an error saying that it cannot load said filename. i have no clue what i'm doing wrong.
[Hero CDMA Android Development] jasonmaloney:
The zip file should be on your computer, not your phone. Make sure to specify an absolute path for the zip file if the fastboot.exe file is not in the same folder as the zip file.
[Hero CDMA Android Development] zbach:
I have the zip file in the android file along with the fastboot.exe program. I still get a "Cannot load" error message:confused:
[Hero CDMA Android Development] bavman:
thank you x100000.

I couldnt flash the original ruu because of the weird bootloader issue, but this worked like a charm and i was able to flash with a .zip of the ruu.

Thanks again.
[Hero CDMA Android Development] counterfeit187:
back to say hello... I think the problem with my phone, and this won't work because of it, is that rebootRUU or the oem loader is in /misc, and I wiped that out

i have no idea really... speculation
[Hero CDMA Android Development] jasonmaloney:
You weren't able to use a HERCIMG.ZIP, right?
[Hero CDMA Android Development] counterfeit187:
Correct. No methods worked. My phone couldn't boot into any bootloader or recovery mode. It never scanned for the zip.
[Hero CDMA Android Development] mongolx:
LOL I did the same thing, same problem as you, LIKE JASON said watch what you erase! anyluck fixin it?
[Hero CDMA Android Development] Houndog101:
Does anyone have a link to an "Htc ZIP" that would work here ? Thanks :confused:
[Hero CDMA Android Development] il Duce:
I'm not entirely sure, but if you're looking for an OFFICIAL zip, you can probably find it at www.htc.com/support
[Hero CDMA Android Development] jasonmaloney:
Ask and you shall receive. Lookhere for HERCIMG.
[Hero CDMA Android Development] Houndog101:
Jason,, I owe you Buddy, saved my bacon again. I got into this jam using the recovery-clockwork-3.0.2.4 (Ithink thats it) and "formatting recovery" by mistake.. Why is that command even in there ?

Thanks Jason.. :)
[Hero CDMA Android Development] jasonmaloney:
I would say 90 percent of the time there's no reason for people to be using the format menus. But the format recovery option has been removed, so I would suggest updating your recovery.
[Hero CDMA Android Development] Houndog101:
No doubt I will update it,, So your saying when I go to flash a new rom I only hat to wipe data and cache ?
[Hero CDMA Android Development] jasonmaloney:
Yup, if that. And you can use the factory reset option on the main menu to do that.
[Hero CDMA Android Development] Houndog101:
Thanks Jason, I really appreciate your help..
[Hero CDMA Android Development] peteytang:
Hey... I think I've found myself in the same position as the person you were initially trying to help on IRC. I was loading a new recovery and apparently it didn't go through right, and while doing so I was also trying to install a new ROM, so now the phone is ROMless and recovery-less. I'm stuck in loops going to the hboot/fastboot screens, and following your instructions, but am not able to load the RUU zip.

When I follow the instructions I get the following:

sending 'zip' (51 kb)... OKAY

writing 'zip'... INFOsignature checking...

FAILED (remote: 12 signature verify fail)

So I THINK I am attempting to install a signed RUU version, but it's hard to tell if I've found a legit one or not. If anyone can link me/give me any tips, I would be forever grateful! P.S. - I'm S-ON :(

EDIT: Oh man, I'm such an idiot! I've been reading through so many threads tonight that I never read page 3 of this one! Just downloaded the signed RUU and it's installing now! THANK YOU SO MUCH! I was ready to throw in the towel! Amazing.
[Hero CDMA Android Development] 24601:
I may have done it this time. I attempted to flash the original recovery and obtained the dreaded red triangle/exclamation point. I am not s-off, so I used this method to flash ninja's RUU found here, and returned the following FAIL:

This is similar to a FAIL message I received yesterday when I was using darch's s-off method. The main version in the .txt file is the same as all other HERCIMG's I have been able to flash. Anyone have any ideas? Does fastboot flash zip in this method require the android-info.txt file? With the red triangle of death, it may be time for a new phone.
[Hero CDMA Android Development] jasonmaloney:
The red triangle/exclamation IS the stock recovery image.
[Hero CDMA Android Development] 24601:
Thx ninja, where do I go from here?
[Hero CDMA Android Development] jasonmaloney:
Where are you now? What are you trying to do?

Sorry, haven't been keeping up.
[Hero CDMA Android Development] 24601:
Sorry Jason, let me give you the brief history. New Hero over the weekend. Used darkknight't method to root. D/l Rom manager and used it to install CWM 2.5.0.7. Set up with firerat. Then realized I only had .27 radio and a regressed prI. Used darch's eng-spl to get s-off so I could HERCIMG a RUU and update. The bootloader read the HERCIMG fine, but when it installed the radio.img the bootloader blinks and comes back s-on and then won't read the HERCIMG. (These are the posts in darch's eng-spl thread I posted yesterday.) Read up enough to know I need the original recovery to get the updates. Re-flashed 2.5.0.7 and CWM 3.0.2.8 with HERCIMG trying to get rid of firerat setup so I could RUU and then flash original recovery. AFter flashing 3.0.2.8, rebooted; splash screen stayed on for 30 seconds, reboots to splash screen for 10 seconds and goes back to recovery screen. I can't get out of this cycle.

Got creative (not my first mistake). Found the original recovery.img in nfinite's RUU HERCIMG. Ripped it out, put it in a HERCIMG, got s-off with darch's and flashed the original recovery. Now, the splash screen comes up for 30 secs, reboots to splash screen for 10, then lands on the red triangle and exclamation point. I have fastboot and I can get the silver HTC screen and into oem RUU. Anything you can advise, I'd appreciate.

*EDIT* I'm trying to get RUU with original recovery so I can update radio, prI, etc., then nandroid a backup I can use for updating down the road.
[Hero CDMA Android Development] roundaway:
24601,

So you want to RUU which is stock everything to include recovery and then you can update the PRL and profile. Darch's ENG-SPL is not permanent and when you RUU it goes away. I'd recommend regaw-leinad's S-OFF found here http://xdaforums.com/showthread.php?t=759955. Then you can RUU using the HERCIMG.zip and update PRL. When ready to root use, you guessed it, regaw's HeroC Rooter v1.3. at http://xdaforums.com/showthread.php?t=909258. Good luck.
[Hero CDMA Android Development] 24601:
Thx, I understand darch's s-off will go away after I RUU. I want to use darch's because I don't want permanent s-off (so if I have to take the phone in my warranty isn't borked - like almost happened last week). Anyway, where I am now, I am unsure how to even get to a recovery where I can flash something that will get me past the rebooting splash screen.

*EDIT* Can't use regaw's (I would like to) because I'm on a mac.
[Hero CDMA Android Development] laie1472:
Not sure if you read my post but on darchs spl thread a few pages back I posted a zip there did you try to flash that???

Root/Hack-Mod_Always *
[Hero CDMA Android Development] 24601:
Yes, thx, I did, it got me s-off again, but I still could not HERCIMG an RUU. Same problem as before, HERCIMG copied fine, but when bootloader started to flash each image it finished with radio and then rebooted the bootloader to s-on :confused: Would then try to copy the HERCIMG all over again and of course failed because bootloader was s-on. Thx for the thought, though.
[Hero CDMA Android Development] il Duce:
I think you need bootloader 1.47 for some of those zips, since 1.47 came with 2.1 iirc.
[Hero CDMA Android Development] 24601:
The bootloader is 1.47.xxxx s-on. I tried every combination I can think of. Now, I can't get past the splash screen rebooting to itself then back to the original recovery. Because I can't get to s-off, I think jason's method here is my only option, but I get the main version fail or signature fail each time I fastboot flash zip. Do you know how I get past these fails? Thx.

*EDIT* Here's the fail message I get when I fastboot flash zip Jason's HERCIMG:
[Hero CDMA Android Development] 24601:
Umm . . . I think this all became somewhat academic. Was reading a bit and ran fastboot oem unlock to try and unlock the bootloader. Now, I have fastboot, but cannot get fastboot usb. Fastboot devices returns nothing not even an error. I think I'm officially done.
[Hero CDMA Android Development] laie1472:
Before you call it a day when you get a chance try this out.

It'a fastboot so hold the volume down and press power. I know you know this but I had to post it. Hope it helps. let me know when you download it so I can remove the link

Link removed
[Hero CDMA Android Development] 24601:
This looks like the HERCIMG posted on jason's site here. Is it? Also, I am s-on, so I can't flash anything through the bootloader. I have it d/l so you can remove the the link. Thx.

*EDIT* Enough of my pessimism. That did the trick laie!! The bootloader accepted the HERCIMG and flashed all images. I got back to RUU .7 without root. The first thing my phone did was ask if I want to install the 2.32.xxxx update -- YES -- installed fine. I now have the .29 radio, prI 2.65_003, and prL 01115. Thx a million laie!!
[Hero CDMA Android Development] il Duce:
Sweet. Hey laie, it seems like that had worked for a couple folks recently would you mind sharing what the difference is, maybe some instructions, maybe a new help thread I can link to my links thread. TIA.
[Hero CDMA Android Development] 24601:
+1000 I am nothing short of amazed. I thought I was dead in the water. Why does that HERCIMG flash s-on?
[Hero CDMA Android Development] Macanage:
I am interested as well!
[Hero CDMA Android Development] laie1472:
@duce,24601, & macanage

Na its not jm's zip. It the zip that the thedarknight released. The one I allways recommend. Its not once failed me. Dude does good work he just vanished because I haven't see him posting anymore. I would say you can add the link to your thread duce but its not mine to say so. But I don't think he would mind because he posted it to help the community. I will say this it works best "IMO" after you flash darcs spl. And na duce you have the thread thing covered. Its enough info on there to keep ya reading for a while. Lol.

Root/Hack-Mod_Always *
[Hero CDMA Android Development] il Duce:
I have this one linked already, is that it?

http://xdaforums.com/showthread.php?t=804692
[Hero CDMA Android Development] laie1472:
Yes indeed it is sir. Lol you know what crazy duce I always post to try that and very few do. Its a great zip to have.

Root/Hack-Mod_Always *
[Hero CDMA Android Development] 24601:
Hmmm? Let me offer this. When I was going through my minor meltdown this past weekend and yesterday, I d/l darkknigt's zip and it wouldn't flash with s-on. This was one of the HERCIMG's that caused my s-off bootloader to reboot s-on. Also, I can unarchive darkknight's zip to see what's inside. However, laie, the HERCIMG you gave me, and ninja's HERCIMG, I cannot unarchive. When I use my unarchive tool it actually archive's the zip. Did you do anything to darkknight's zip? Whatever, man, this really did the trick for me.

For clarity, I was s-on, original recovery, and fastboot only, not fastboot usb. I was stuck in the splash screen double booting to the recovery screen, and not able to boot the phone. Put the HERCIMG on the root of the sdcard. Pulled and replaced battery and booted into bootloader by pressing volume down and power on. Bootloader (s-on) loaded the HERCIMG then asked if I wanted to install the imgs. Pressed trackball, and all img's were written fine. I came back from the dead. Thx again laie!!!
[Hero CDMA Android Development] laie1472:
I think if you unzip it you will have to edit the update script for it to flash correctly. As far as jm's zip I have no idea.

Root/Hack-Mod_Always *
[Hero CDMA Android Development] oldjackbob:
Laie, I'm unable to unzip the file you posted on the previous page, and I can't unzip the file darknight posted in his Official RUU thread either. Both my home machine (XP Home) and my machime at work (XP Professional) says both zip files are corrupted.

I downloaded darknight's file to my computer several weeks ago, and I downloaded the file you posted today directly to my phone. Both files are identical according to their checksums. Even ES File Explorer on my phone won't unzip it, it says "Bad zip file". 24601 posted that he can't "unarchive" your file either.

So how do I unzip either one? And if not a single machine I own can unzip any file I download, and if all files I download are identical regardless of link, what is going on?

Edit: the md5sums on both files is efa439da700b5fad7ea49915ef7d2866.
[Hero CDMA Android Development] laie1472:
My question to you is why would you want to unzip them??? What exactly are you trying to do??? Also the zips are not corrupted.

Root/Hack-Mod_Always *
[Hero CDMA Android Development] roundaway:
7zip will let u see.
[Hero CDMA Android Development] oldjackbob:
Sorry, you misunderstood me, not that I especially want to unzip them, but your statement "I think if you unzip it you will have to edit the update script for it to flash correctly" led me to believe that they should be unzippable.

And your statement that "the zips are not corrupted" is the opposite of the statement from my home and work computers that "The Compressed (zipped) Folder is invalid or corrupted".

Truly not trying to be confrontational here, it's just that on nearly every android-related zipfile I've ever downloaded I've opened it up just to see what's in it, and nothing I've tried on either of these files will allow me to do that, and I was just asking if anyone had an explanation for that. And you offered no explanation, just a denial of my statements that the files are corrupted, but my statements are direct quotes from error messages on all of the machines I've tried to unzip those files on.

That's all. I'm good with everyone here, I was just asking for some help understanding what it is that I'm observing with these files, and I'm still asking that.
[Hero CDMA Android Development] jasonmaloney:
I wonder if this could have something to do with the signing process.
[Hero CDMA Android Development] oldjackbob:
I'm actually surprised that no one else has run into the problem I'm seeing, because I've seen it on every download of that file, from every link, on every machine I've tried.

Unless of course no one else has tried to open the file yet (except 24601, who is seeing the same thing I am, if I'm understanding his post correctly).
[Hero CDMA Android Development] laie1472:
In xp if it doesn't have a file program that it can associate the chosen file with it will read the error msg your received. I didn't deny you received the error msg I was stating that the files were not corrupt. Which they are not. In a more current os you will be prompted to search the internet to possibly find a program in which to associate the file with. Xp/xp pro lacks this feature if the chosen file can't be associated by the os. You can down load winrar/7zip and extract the files. But you have to tell winrar to associate it self with zip files. The same applys with 7zip. If you have vista / 7 32 or 64 it can extract the file because Microsoft built it into the os. The statement I made " you will have to edit the update script " was in reference to the folder structure and the update script being changed when you extract the contents of the zip. If you extract the zip then it becomes windows associated by editing the update script and resigning it puts the proper compression and returns it to the zips original file association. And as far as me asking what were your intentions is so I could fully understand what it was you were doing. So here's my explanation. If you read or google search about xp it will explain more on file association.

Root/Hack-Mod_Always *
[Hero CDMA Android Development] 24601:
It must. Ninja, these zips - laie's and darkknight's - would not flash for me using the method in the op. I kept getting the Fail 12 signature error. Yet they flash fine in bootloader with s-on. When I used the main Stuffit Expander on mac to try and unarchive, I got the corrupted message ojb is getting. When I use a straight double click from within finder, the mac actually archives the HERCIMG into a cpgz file, which is a compressed file "used primarily on Unix systems and in Mac OS X." Whatever it is, it is gold as far as I'm concerned; and I'm grateful for laie talking me into trying this.