yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] kyouko:
Had a 12 hr workday today :( No time for compiling.

@dastin: I'll do a 'make clean' compile (no color edits) with the little bit of laptop battery I have left to see if it fixes your issue. I'll probably post it in a few hours
[Hero CDMA Android Development] kyouko:
forgot to revert the color changes, but the 'make clean' worked :D

Click the picture to get the download link. battery is basically dead <6% i want my power back :mad:
[Hero CDMA Android Development] Pyr0TeK:
I am on 4.0.0.5 and I have both successfully backed up and restored with it, as I previously posted when I had to flash a sense rom to update my PRL etc. I'm about to try 4.0.1.0. Why? Because I also am a flashaholic. Bleeding edge is where I live. :)
[Hero CDMA Android Development] Pyr0TeK:
THANKS! Keep us updated bro! BTW, how did you screen capture that while in recovery, *scratches head*
[Hero CDMA Android Development] xDragod:
Android Commander will do it.

Backing up to test if 4.0.1.0 works for me... It stopped half-way through a backup on 4.0.0.2.

Edit: Restore doesn't work for me. Half way through it just stops, clears the screen, and goes back to the main menu. Damn...
[Hero CDMA Android Development] kyouko:
I use the debugging tool DDMS ( dalvik dwbug monitor server) - comes with the SDK in the tools folder

EDIT

Restoring works for me...

@xDragod pull the recovery log after you get a failed restore and then put it into a Pastebin so you can post it here

adb pull /cache/recovery/log C:\where\ever\you\want\log.txt
adb pull /cache/recovery/last_log C:\where\ever\you\want\last_log.txt

**fyi the "last_log" one might not exist & you should do this while still in the recovery**
[Hero CDMA Android Development] Pyr0TeK:
Installed 4.0.1.0 and I was also successful running a backup. I have not tried to restore, no need to currently.

Would love a "colored" version. lol B&W is cool ... but it's sooooo 60's. :)
[Hero CDMA Android Development] kyouko:
Now that I have power at home I'll get around to making the colored versions tonight. when I compiled it, I forgot to change it back to the stock colors haha. but yea the white recovery isn't my favorite either :D
[Hero CDMA Android Development] Pyr0TeK:
"Tonight" has come to pass. :)
[Hero CDMA Android Development] kyouko:
patience lol, how much time do you spend in recovery? :p

Long work hours have been the norm lately

I'm on my lunch break now, so I'll sync up with github and compile a few and post them sometime today
[Hero CDMA Android Development] Pyr0TeK:
lol... thanks. You should make your own thread for your builds... :)
[Hero CDMA Android Development] kyouko:
Here ya go, synced as of this afternoon. LINK

Right now I'm only posting the stock orange one (should be) I never flashed the image to my phone so I can't be positive it actually is orange

The others will get posted sometime this weekend. I'll just be editing this post as I add them

EDIT:

crazy weekend. even if it crossed my mind, there wasn't really time for android stuff :rolleyes:

I'll get to making new builds next time there's a major commit and/or if he bumps it up to 4.0.1.1.
[Hero CDMA Android Development] mtnchkn:
First off, thanks for the CWM 4.0.x builds. I had what is possibly a stupid question: I get the following readout when I flash CWM and don't remember seeing that with my previous recovery flashes. Does it look strange? A point to know is I run Firerat which means I also re-installed Firerat after flashing this new recovery.

MacBook-Pro:~ me$ adb shell flash_image recovery /sdcard/CWM-4.0.1.0_recovery.img
flashing recovery from /sdcard/CWM-4.0.1.0_recovery.img
mtd: successfully wrote block at b10c00000000
mtd: successfully wrote block at b10c00020000
mtd: successfully wrote block at b10c00040000
mtd: successfully wrote block at b10c00060000
mtd: successfully wrote block at b10c00080000
mtd: successfully wrote block at b10c000a0000
mtd: successfully wrote block at b10c000c0000
mtd: successfully wrote block at b10c000e0000
mtd: successfully wrote block at b10c00100000
mtd: successfully wrote block at b10c00120000
mtd: successfully wrote block at b10c00140000
mtd: successfully wrote block at b10c00160000
mtd: successfully wrote block at b10c00180000
mtd: successfully wrote block at b10c001a0000
mtd: successfully wrote block at b10c001c0000
mtd: successfully wrote block at b10c001e0000
mtd: successfully wrote block at b10c00200000
mtd: successfully wrote block at b10c00220000
mtd: successfully wrote block at b10c00240000
mtd: successfully wrote block at b10c00260000
mtd: successfully wrote block at b10c00280000
mtd: successfully wrote block at b10c002a0000
mtd: successfully wrote block at b10c002c0000
mtd: successfully wrote block at b10c002e0000
mtd: successfully wrote block at b10c00300000
mtd: successfully wrote block at b10c00320000
mtd: successfully wrote block at b10c00340000
mtd: successfully wrote block at b10c00000000
MacBook-Pro:~ me$
[Hero CDMA Android Development] kyouko:
I get that printed out everytime I flash a new recovery image. Nothing to worry about unless it says "failed to write block" lol
[Hero CDMA Android Development] Pyr0TeK:
Read my question thread about this for your answer. :)

http://xdaforums.com/showthread.php?t=1094760
[Hero CDMA Android Development] Hammerfest:
4.0.1.4 gogogo!!!

(i jest, i gotta thank everyone in this thread for feeding my maddening desire to try out the latest and greatest all the time, about the only thing i ever was content with was XP Pro.. and even that has given way to 7Ultimate... )
[Hero CDMA Android Development] jasonmaloney:
This was the change for 4.0.1.0 -> 4.0.1.4:

This was changed immediately afterward, with no version change:

So you can see why I'm sometimes hesitant to post the latest. But there hasn't been any commit activity for the last 16 hours now, so I'll build and post a new one. Looks like a recent (July 11th) commit may also have fixed NANDroid restore as well.
[Hero CDMA Android Development] Hammerfest:
small fix's or not, its thanks either way...

and lol, .4 difference for .1 change... i lol'd...

(and as to your comment about 16hr layover, if I trusted myself, i would build/flash nightly/every commit... :D but im so ingrained in windows that just learning the bit to root/flash/deal with android was a chore...)
[Hero CDMA Android Development] Hammerfest:
no news?

ZZZzzzzZZZZzzz (bed teim!)
[Hero CDMA Android Development] m_reyna_16:
can anybody post the latest known working recovery on a zip file to flash from recovery?
[Hero CDMA Android Development] dastin1015:
Try this. I just compiled after a make clean. May take awhile till link works cause just uploaded so processing upload. http://db.tt/8cMk0a6
[Hero CDMA Android Development] m_reyna_16:
thanks, trying it out right now!
[Hero CDMA Android Development] m_reyna_16:
ive been having problems with zip files and they always say "E: Cant open /sdcard/CWM-4.0.1.4.zip (bad)"

SOMEBODY HELP!!! THIS IS FRUSTRATING AND CANT FIND THE ANSWER ANYWHERE! I already tried formating my sd card through my computer using a card reader and also using the usb and that doesnt work! Tried formatting my card via the software and a no go either! Tried using different recoveries and a no go also... whats the problem? anybody know?

NOTE: where i put "CWM-4.0.1.4" is the name of the file, therefore if i try and do a rom, the name of the rom will come up there
[Hero CDMA Android Development] dastin1015:
When it says (bad) that means your download was bad.
[Hero CDMA Android Development] m_reyna_16:
but ive got very good internet connection... so then maybe i need to clean my cookies and stuff like that huh?
[Hero CDMA Android Development] dastin1015:
No. It just means when copied to your SD card it messed up. Just download it again and copy it, or download from your phone. I'll add an md5 so you can verify download.

md5: f292c812b5b1bd8a3f006147af8858bb
[Hero CDMA Android Development] m_reyna_16:
that worked! thank you very much!
[Hero CDMA Android Development] Robbie_G:
Any one know if the nandroid issues resolved now? If so, why not have this in the OP?
[Hero CDMA Android Development] dastin1015:
I'll test it right now.

Edit: no nandroid issues here
[Hero CDMA Android Development] Hammerfest:
sweet sauce and thanks for the .zip!
[Hero CDMA Android Development] Mr. Biggz:
I just compiled this for myself and wanted to play around with the colors. I saw the the two lines in ui.c but the forth value is confusing me. Is it safe to ignore it or what does it do? My thinking is that the first three are the RGB values and the forth is for brightness. Am I right?
[Hero CDMA Android Development] kyouko:
Opacity. but close enough ;)
[Hero CDMA Android Development] PRGUY85:
Is that zip file flashable? Im getting the same can't open /sdcard/cwm-4.0.1.4.zip. Or do I have to extract the zip?
[Hero CDMA Android Development] kyouko:
Just downloaded it and looked at the updater-script. yes its flashable and it looks signed, so it should work for you regardless of the recovery you're using now.

Re-download the zip to your sdcard and try flashing it again - if that doesn't work:

Extract the recovery.img inside the zip to the root of your sdcard.

Open up terminal emulator and enter the following:

su
flash_image recovery /sdcard/recovery.img
reboot recovery
[Hero CDMA Android Development] dastin1015:
Actually its not signed. When I get back home from the movie theater I'll post up a signed version, or a new build if there is a new one.

Sent from my Hero that never dies! ;D
[Hero CDMA Android Development] Hammerfest:
oddly enough, you complied it the day before the last of the updates, so if you compile again, you will be at tip...

again, I gotta say thanks for taking the time to even do it and publish it to us, for that "Thanks"!

One of these days ill learn how to make it RED, turn down the "no no no no no no YES no no no no" so its only like 4~ options... such a PITA sometimes (ok, when half asleep... whatever...), AND figure out how to make the text a bit more transparent... for some reason, I had to focus my eyes to see the status bar thats in the background as well as the regular text when the status text had overtaken the top of the screen...

then again, im a flash-o-hollic, so taken with light doses is good :D
[Hero CDMA Android Development] kyouko:
Whew. good thing I said it "appears" to be signed then. I didn't even notice it was missing the CERTs :p

You mean something like this? (see attachments)

As for the transparency, which text are you referring to exactly? ie. The header/footer, List choices UN-highlighted, or the list choice that is highlighted?
[Hero CDMA Android Development] dastin1015:
Here is a link to a signed copy of 4.0.1.4: http://db.tt/XR8pxnq

I'll compile new ones in the morning. Maybe some color ones too if I can learn how.

Sent from my Hero that never dies! ;D
[Hero CDMA Android Development] kyouko:
To change the color of the ui you need to edit the ui.c file (/bootable/recovery/ui.c)

Search for the lines: [ln 171-173]

#define MENU_TEXT_COLOR 255, 160, 49, 255
#define NORMAL_TEXT_COLOR 200, 200, 200, 255
#define HEADER_TEXT_COLOR NORMAL_TEXT_COLOR

The values are RED, GREEN, BLUE, OPACITY

So to get the red like I had in my previous post, you would change it to

#define MENU_TEXT_COLOR 255, 0, 0, 255

If you want the header to be a different color than the "normal text color" aka off-white, edit the third line like so:

#define HEADER_TEXT_COLOR #, #, #, #
[Hero CDMA Android Development] Hammerfest:
lol, blue header/footer with the main text red!

anyway, back to sanity!, for the opacity I was actually talking about the text that comes up with you do an action, IE, do clear cache 10 times then look at your screen again, all the "status/progress" text is now overrunning the screen, and at least for me, I have to restart it to clear it away to see the options which it seems to overrun :( (IE almost like its not layered properly...

Thanks again, from a flash-a-holic
[Hero CDMA Android Development] dastin1015:
I'll play around with the colors and see what I can create. I've already figured out how to change the pictures. :) But in the meantime: http://xdaforums.com/showthread.php?t=1209527
[Hero CDMA Android Development] andythegreenguy:
I agree... and actually the confirmation screen, when you are trying to format data/cache/system, doesn't even show what exactly you are trying to format. I mean it's not a big deal, but just that we, the ROM flashers, are doing it so many times... I fear that one of these times I am going to format the wrong thing... ;).
[Hero CDMA Android Development] hunterd13:
yep, didnt work for me on ext 4
[Hero CDMA Android Development] jasonmaloney:
New builds is up in the OP, should fix this. Please test!
[Hero CDMA Android Development] hunterd13:
ext 4 now working, good job.
[Hero CDMA Android Development] jasonmaloney:
Awesome. Just submitted the change upstream.
[Hero CDMA Android Development] oldjackbob:
+1, done that...
[Hero CDMA Android Development] counterfeit187:
installation instructions

Just in case newcomers want to update to this recovery but can't quite figure out how to install: Use the same instructions that were given for CWM 3.0.0.5 found HERE.

With the older recovery I used Method III using terminal emulator, but I used Method I to install this and it worked like a charm.

Hey Devs, good work on keeping our phones awesome. Thank You!
[Hero CDMA Android Development] counterfeit187:
Arrrghghhh.... I believe I just bricked my phone. you gave me too much freedom to format things. I was doing a full wipe of my phone to install a new Rom, well I saw format /misc and format /recovery as new options in the mounts and storage options... so I went ahead and did that thinking that if I messed up I could just go into bootloader and start over. My phone wont go into bootloader, can't hard reset, cant do anything to get past the white HTC screen... any advice please help before I have an aneurism
[Hero CDMA Android Development] 24601:
More than likely if you have the white screen, you're not bricked. If you have adb, you can re-flash your recovery and you should be ok from there.
[Hero CDMA Android Development] counterfeit187:
when I try to do adb shell I get "error:device not found". I am able to get it to say "FASTROOT USB" in red lettering when I plug it to my computer and try turning it on, but still can't adb
[Hero CDMA Android Development] jasonmaloney:
The reason I didn't post instructions is because I don't want newcomers flashing this and breaking things. For instance...

If you can get to Fastboot, you're fine. If you're not S-OFF, follow my instructions for using fastboot while S-ON. You will need the fastboot binary and a signed HTC ROM image. And while you've got the factory software again, you should make sure to install all OTA updates (to get newest PRI) and update your data profile and PRL.
[Hero CDMA Android Development] 24601:
Follow the instructions of the ninja and you'll be fine. Thx Jason.
[Hero CDMA Android Development] jasonmaloney:
Just going to repeat here what we discussed via PM, in case it's helpful to anyone else.

If you can't get fastboot to work with the instructions I posted previously, you can take the rom.zip that I linked to previously and rename it to HERCIMG.ZIP. Place this file on the sdcard (you'll have to use another device to do this since the phone is washed for the moment), then reboot into the bootloader again. The bootloader should scan the file and prompt you to apply it. This should restore the phone to factory software.
[Hero CDMA Android Development] jasonmaloney:
New build is up in the OP. Koush bumped the version to 3.0.1.9. I also made a minor change that hasn't been approved upstream yet. Please test sd-ext.
[Hero CDMA Android Development] il Duce:
header still says 3/14 fyi.
[Hero CDMA Android Development] wild1z:
Greenhorn alert... Greenhorn alert...

Adb'd the somebitch a few times and finally got it loaded! Thanks Cajun Jason My-homy. Fixin Jamby in your honor this weekend. ;)
[Hero CDMA Android Development] jasonmaloney:
Glad you got it working :D I had some trouble myself flashing the latest build (out-of-memory errors, etc.) until I realized my battery was at less than 30%. As has been suggested in the past, you should always be over 30% to flash anything!

Call me Cajun again and I'll have to kill you. I'm an Irish-Italian from New Orleans, you insensitive clod!

*grumble*
[Hero CDMA Android Development] wild1z:
From Slidell myself and not Cajun either. Ate a burger from Petes place over Christmas, good stuff.

I have never been the most PC person in the world so I say this with endearment and respect, good work Mc-WOP. ;)
[Hero CDMA Android Development] roundaway:
Also had trouble flashing. Tried adb, terminal emulator, and shell, but got mtd out of memory errors. Used S-OFF and fastboot with success. Thanks to the OP and Koush.
[Hero CDMA Android Development] RVDigital:
I tried looking in the Wiki but there's nothing listed.

What is the most current PRI for the Heroc?

I'm trying to decide if I want to go through the motions of updating it (revisit back to stock).

Thanks
[Hero CDMA Android Development] 24601:
2.65.003 (as of February when I updated). For a humorous read on pri, read the thread in my sig.
[Hero CDMA Android Development] Drunkpilot:
Has anyone had any issues like freezing during a backup or problems restoring a nandroid backup? I did with the earlier 3.x.x and reverted back to 2.5.0.7.

Itching to try and have my HERCIMG waiting patiently on my SD...root, of course.

Thanks for your great work, answers, and concise explanations Jason!
[Hero CDMA Android Development] jasonmaloney:
Bump.

New version in the OP.
[Hero CDMA Android Development] oldjackbob:
Many thanks for this, Jason, and for all of the myriad different ways you've helped so many people in so many threads...you are an invaluable and selfless asset to the entire Hero community...many folks are indebted to you in more ways than they know!
[Hero CDMA Android Development] c00ller:
Coming from amon_ra-darchstar-1.7.0, I am trying CWM (2.5.0.7) for the first time and my device appears to be stuck at Backing up system... been hanging for about 10 mins now

edit: just pulled the battery and tried booting up. phone can't get past cyanogenmod boot animation (doesn't even get a chance for the word "cyanogenmod" to slide to the center)

edit 2: i realized my mistake.. still new to firerat. i didn't run fr-recovery. but if i do that, i have to start everything from scratch. hmm. is there a painless way for me to change recoveries with firerat?
[Hero CDMA Android Development] 24601:
Flashing a new recovery generally erases your firerat settings (but not sure if that is true when switching from amon-ra to cwm). I have been using 2507 for a while now and have no issues with firerat. Try removing your mtdpartmap.txt, reflash cwm 2507 and let your phone boot w/o firerat. If it boots OK, then reinstall firerat if you still want it.
[Hero CDMA Android Development] stayclean:
Flashing a new recovery will undo Firerat's.
[Hero CDMA Android Development] c00ller:
Right. Combined with the fact that nandroid backups made on one recovery (i.e., amon_ra) are not able to be restored on a different recovery (i.e., CWM), I don't think I have a choice but to change to CWM, redo FR (which wipes everything of course), then start from scratch... I suppose that's the only way to go.

The only reason I'm even looking into CWM is because I think I read that it's required to flash CM7. Is that correct?
[Hero CDMA Android Development] stayclean:
No, it's not, ha.
[Hero CDMA Android Development] 24601:
This is not true. The backups are just stored in a different folder on the sdcard. CWM will restore an amon_ra backup if you move the amon_ra backup to the CWM backup folder.
[Hero CDMA Android Development] c00ller:
That is very good to know. Thank you very much!!
[Hero CDMA Android Development] c00ller:
Could someone please point me to how I can learn this? I searched and all I found was how to flash images of certain partitions (only through fastboot IIRC, which is only allowed with s-off) and run the RUU to return to stock everything.
[Hero CDMA Android Development] Drunkpilot:
You need a HERCIMG.zip on your SD card with a recovery image in it. I used one from flashing a boot animation and switched that out.

You need to be s-off and restart your phone holding volume down. That will put you in the h-boot bootloader and it will start scanning follow the prompts and recovery should be flashed. I keep one on SD just in case.
[Hero CDMA Android Development] 24601:
Here is regaw's thread on how to get s-off. I believe he has links to recovery.img's you can then flash to get you back to a recovery that will work. If not, let me know and I can post some.
[Hero CDMA Android Development] Drunkpilot:
Jason, I looked at the ruu that you posted- thank you by the way-out and saw the 1.47 bootloader. If I just flash this to get back to 1.47, will this break my ENG SPL S-off that downgraded me to the 1.46 bootloader? Just was thinking about it. Thanks for the updates on this recovery, about to download now.
[Hero CDMA Android Development] evilvoice:
That actually is not the only way, though it is the preferred method. The other way is to use fastboot commands (need ENG SPL too) from the bootloader - I only say this because for some reason, my phone wont flash HERCIMG.zip even though I have the ENG SPL - very frustrating.

to whoever wants to try fastboot method, Google fastboot recovery.img to find out the commands
[Hero CDMA Android Development] evilvoice:
yes, it breaks eng spl...the only difference between the 2 is that eng-spl allows fastboot, while regaw's method does not...both are s-off and allow flashing HERCIMG.zip through the bootloader...your personal preference...I chose eng-spl for reasons stated above
[Hero CDMA Android Development] c00ller:
Is it normal for CWM to not give confirmation after battery stats are wiped? It gives a status/confirmation for everything else (e.g., "Install from sdcard complete.").
[Hero CDMA Android Development] Drunkpilot:
Yes. I don't think it shows anything.
[Hero CDMA Android Development] mongolx:
My current clockwork mod recovery is 2.5.0.7 must I install all or just most current with terminal emulator? With latest recovery is it able to recover my past back ups?
[Hero CDMA Android Development] dastin1015:
Just the most recent one, that being the 3.0.2.4 recovery. You should be able to restore any nandroid backups you have on your SD card, just don't completly take my word cause I don't nandroid because I always do a full wipe when I update. From what I've heard it should work, just clarify that with someone of more intelligence than me. :P
[Hero CDMA Android Development] mongolx:
I've tried recovery-clockwork-3.0.2.4-heroc-20110402.img get "error data space" used step 3. recovery-clockwork-3.0.2.4-heroc-20110324.img loads easy is there another link to 20110402?
[Hero CDMA Android Development] jasonmaloney:
I'm not sure what you mean by "step 3." Was your battery charged when you tried?
[Hero CDMA Android Development] mongolx:
Full battery. Used adb got error and terminal emulator message usage: flash image file partion.img
[Hero CDMA Android Development] jasonmaloney:
If you're getting a usage error, you're using the command incorrectly. Double-check your syntax.
[Hero CDMA Android Development] mongolx:
w/ terminal emulator:

mtd: re-read error at 0x004c0000 out of memory

mtd: write error at 0xoo4coooo out of memory

mtd: skipping write bolck at 0x004c000 out of memory

failed with error: -1
[Hero CDMA Android Development] jasonmaloney:
No idea. Only ever got an error like that when my battery was too low.

The MD5 of the latest image is 8a2931d91972d39364b372a20d49a6ed. Try making sure the MD5 of the image on your sdcard matches.
[Hero CDMA Android Development] mongolx:
Thank you Jason for all your help! Tried it again 100% charged and it worked not sure what was the problem. With the errors battery was around 85%! Thanks again!