yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] thecodemonk:
I don't know how the myTouch did it but there's a guide you can follow to get it in the CDMA forum: (root AND flashing the recovery image)

http://xdaforums.com/showthread.php?t=581577

(If you're on a Mac: http://xdaforums.com/showthread.php?t=581686)

OR you can follow that guide or perform the flashrec method:

http://theunlockr.com/2009/08/27/how-to-root-your-htc-hero-in-one-click/

(substitute the newest version of flashrec from http://zenthought.org/content/project/flashrec and use the Recovery image from this thread instead of the one mentioned in the link above)

The flashrec doesn't give you root but you can just drop the image in I believe still. :)
[Hero CDMA Android Development] BrooklynAvi:
Yeah, I realized I was being a n00b and didn't bother to search too much before asking. But I figured someone else was going to ask anyway so I'd take any flaming if need be. Thanks a lot. I had it rooted when I asked but wanted busybox and the other goodies from the recovery. The easiest root ever.
[Hero CDMA Android Development] jirafabo:
uses for recovery image

This is my first phone root and I've gotten everything done and complete and just want to learn a little more. I searched but probably not for the correct terms but I'm wondering what for/when some of these options on the recovery image are needed. If there is an explanation somewhere, just point me, otherwise, I appreciate the help with answers! Thanks!

o Wipe data + cache (factory reset) DO YOU LOSE ROOT/RECOVERY IMAGE FLASH?

o Wipe ext partition on SD-card WHAT FOR/WHEN?

o Wipe Dalvik-cache on SD-card (NOT on /data !) WHAT FOR/WHEN?

o Repair ext filesystem WHAT FOR/WHEN?

o Convert ext2 to ext3 THIS IS FOR APP2SD TO WORK RIGHT? **nevermind found answer to this one

o Fix package UID mismatches WHAT ARE UID MISMATCHES?

o Fix auto-rotate issues WHAT ISSUES?
[Hero CDMA Android Development] packetlss:
This formats the data and cache partition on the phone. Data is where the installed applications and system settings are stored normally. Basically it factory resets the phone back to an unconfigured state. You do not lose root or recovery.

Often we used an ext2/3/4 partition on the SD card to store applications (instead of storing them on the data partiton in the phone) This is what's called Apps2SD that you're seeing all over the forum, it allows us to install much more applications since the ext partition can be much bigger than the internal data partition. Wipeing this means that the entire ext partition is cleared.

Dalvik is the program that runs all the Android applications (written in Java). It needs to store a cache of the compiled versions of that somewhere so it doesn't have to compile them every time they run. This is normally done on the data partition, but some people choose to move this to other places (like the SD cards ext partition). This option lets them wipe it easily. At this time I don't think there are any Hero customs roms that use this feature.

Sometimes the filesystem can become corrupt (for example if the battery runs out just as the phones write to the filesystem). This option tries to repair it.

On android each installed application is assigned it's own userid (uid) in the operating system. This is for security purposes. If you have your apps on an ext partition on your card (apps2sd), and you install a new rom, there will be a mismatch between the uid assigned to the files/directories on the card and what the Android OS thinks the apps uid is. This option runs a script to try and correct that.

Some phone (mostly G1s and Sapphires) sometimes have issues with the calibration of the accelormeter. The calibration data is saved in a specific file. This option just removes that file to reset the calibration to factory value. I've never heard of the Hero having these issues and the option is there just in case basically.
[Hero CDMA Android Development] jirafabo:
Really appreciate the reply. Know it wasn't a short one!

One more... for uids, the uid stays the same if I just reinstall the same ROM? The ROM determines the uid correct? I played with my phone so much yesterday that by the end of the day I had flashed my backup and modaco over top 3 times in all. Didn't have any problems with apps and apps2sd looks to be running well, so I assume the uid's stay the same if you stick with the same rom.
[Hero CDMA Android Development] Techynewbie26:
Loaded after a few failed attempts ha. Loving being able to wipe dalvik without getting that error wipe via adb message, also loving the pink lol can't help it
[Hero CDMA Android Development] menissalt:
neither method works
[Hero CDMA Android Development] srkmagnus:
what methods? Where did you get stuck?
[Hero CDMA Android Development] Shelnutt2:
Any chance of a newer version for the heroc? I much perfer Amon's to clockwork recovery but we need a new version to support gingerbread
[Hero CDMA Android Development] :
Not from the original coder. He/she has moved on to bigger and better phones.
[Hero CDMA Android Development] user7618:
There's a 1.7 version floating around here somewhere.

-----

Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
[Hero CDMA Android Development] :
It's Darch's recovery 1.7 Do a search for that or I can post the link when I get home
[Hero CDMA Android Development] :
Here's the link to get Darch's recovery 1.7

http://xdaforums.com/showpost.php?p=10531580&postcount=5http://xdaforums.com/showpost.php?p=10531580&postcount=5
[Hero CDMA Android Development] gidkid:
Thanks, was looking for that since I realized his website went down and I can't find the recovery saved anywhere.
[Hero CDMA Android Development] Shelnutt2:
Does anyone have a link or a build for a recovery newer than 1.7? I'm looking for something besides cm recovery so I can load gingerbread.
[Hero CDMA Android Development] dpeeps74:
You should be able to load it from any recovery. I loaded it from 1.6.2 without any issue. But I'm not aware of any newer amon recovery.

---------------------------------

xda + android + htc = :-)
[Hero CDMA Android Development] fenghua520:
thank you !find you now
[Hero CDMA Android Development] kashief:
ok so, do you have to be rooted to do this? Is there ay way toflash a custom recovery without being able to boot into the OS? I'm stuck in a boot loop, no root, S-ON, all stock. ADB halfway works when I boot into recovery mode...It shows my device serial but says offline next to it.. but anyway, heres what I get...

c:\Program Files\Android\android-sdk\tools>fastboot boot recovery-RA-heroc-v1.6.
2.img
downloading 'boot.img'...
FAILED (remote: not allow)
finished. total time: 0.043s

So then I try...

c:\Program Files\Android\android-sdk\tools>fastboot oem rebootRUU
...
OKAY [ 0.030s]
finished. total time: 0.030s

c:\Program Files\Android\android-sdk\tools>fastboot boot recovery-RA-heroc-v1.6.
2.img
downloading 'boot.img'...
OKAY [ 4.128s]
booting...
FAILED (status read failed (Too many links))
finished. total time: 281.502s

c:\Program Files\Android\android-sdk\tools>

I'm a bit irked, the only reason I didn't just master reset is the fact that my contacts wouldn't save to google and due to a weird "low memory" problem, the phone died, because of that stupid force close message popping up every 5 mins, and is boot looping...grrr...
[Hero CDMA Android Development] kashief:
Anybody???
[Hero CDMA Android Development] drlzanej:
Yep ya gotta be rooted....

Try this,, Itll tell ya how to root, flash recoverys etc,,,happy reading.

http://xdaforums.com/showthread.php?t=1140850
[Hero CDMA Android Development] kashief:
Thanks, but none of that really helps with my particular situation. Although, I do think I may have almost found a way to fix my problem...
[Hero CDMA Android Development] Zin0:
Okaaaay my TE is blind. I extracted Darchstar's ra zip to my sdcard and i got the img file. So i go into TE and type "su", then "flash_image recovery /sdcard/Darchstar_ra.img" but when i type that it says "flash_image: not found" :eek::confused: I have it right on the root of my sdcard. I even tried flashing the zip via recovery but it failed lol, anyway can someone help me out please :)
[Hero CDMA Android Development] ajrty33:
Download and install busybox installer from the market.

It's not that it can't find your .img file, it can't find "flash_image"
[Hero CDMA Android Development] packetlss:
UID are assigned when the app is installed. If you restore to a point where you had the same apps installed it's ok.

Edit: Remember, this only affect the data parts. So even if you install and the UIDs mismatch, most apps seem to work ok on default settings. It not always noticable on all apps even if they are messed up.
[Hero CDMA Android Development] Diplomat2387:
Can you clarify this..?..Is FlashRec "the one root method"..?..And if so what is the diff between using this and other methods?
[Hero CDMA Android Development] thecodemonk:
Most other methods walk you through step by step for the rooting so you can do all the things you want. Flashrec is a program that automates the first part to install a recovery image to flash another ROM.
[Hero CDMA Android Development] Diplomat2387:
What other things can u do though step by step method that u can't do with the FlashRec method..?..Sorry if i'm asking too much questions...I am just curious and trying to gain some knowledge about Android..
[Hero CDMA Android Development] jmanley69:
eagerly awaiting 1.3.2 for cdma... <hint><hint>
[Hero CDMA Android Development] jirafabo:
+1

Also, Does the clean/wipe selection have no effect on the ROM? I ran a clean/wipe because I had problems with restore and my apps2sd not working nicely and still had Modaco's ROM afterwards... thought it would put me at ground zero plus root access.
[Hero CDMA Android Development] jmanley69:
clean/wipe only erases /data and /cache to make it like you have no settings or any applications. All the system apps stay (and the ones you've removed stay gone).

To go back to before the MoDaCo ROM, you need to restore the nandroid backup you made before you loaded it... if you want to go back to that and no apps, you can clean/wipe after the restore.
[Hero CDMA Android Development] jjjjayd13:
Big thanks!!!

Amon_RA, packetlss, chuckhriczko, thecodemonk, and all others---I am sure that I speak for all by saying Thanks for your detailed explanations and help!!!

jjjjayd13, :cool::cool::cool:
[Hero CDMA Android Development] jmanley69:
any luck getting 1.3.2 for CDMA?

As I said earlier, I'd be happy to do it if somebody wants to give me a very quick tutorial (and I am truly a quick study so it would only take a couple of sentences to explain the process) and then I could setup a build environment to crank out the CDMA version when the other version is released.
[Hero CDMA Android Development] packetlss:
1.4.0 will probably hit this weekend.

The reason there is no 1.3.2 for CDMA is that there was no kernel with ext4 support available. (it's seems ext4 was broken on the GSM Hero one though, probably my fault :) )

As for creating one, you can just take the GSM recovery, unpack it and replace the kernel with a CDMA kernel and repack it. Scripts and stuff are the same. You might want to change the ro.modversion in init script to set it apart for the GSM version though.
[Hero CDMA Android Development] jmanley69:
I've got 1.3.2 ported to cdma... if it's alright with Amon-Ra, I'd like to post it.

I took the kernel from 1.2.3, ramdisk from 1.2.3cdma (except sbin), sbin from 1.3.2gsm, and updated the version #...

Works great.
[Hero CDMA Android Development] packetlss:
Send him a PM and ask. Though 1.4 is coming shortly, final tests being done on dream atm. Might be better to get that one out quickly. All that he needs is a kernel.

Sadly since the source is not available for CDMA kernel to be compiled I guess ext4 support is out of the question, also there is new function in 1.4 that requires some modification to the mtd driver to work, so I guess that is out for the CDMA version aswell. :(
[Hero CDMA Android Development] jmanley69:
Yeah... I sent him a PM a few days ago asking for help on something, but he didn't respond... I wonder if he even checks his PMs. He has, however, answered in the forum when I pose an open question to him <hint><hint>

So... suppose we had the source for the kernel, what would need done to add ext4 support?
[Hero CDMA Android Development] packetlss:
When the source is available it's just a matter of enabling the feature.
[Hero CDMA Android Development] jmanley69:
Has anybody requested the source from HTC? Under the license they're required to give it when requested. When I. Get back to a computer I'll send them an email I guess.
[Hero CDMA Android Development] jmanley69:
I just sent HTC a polite demand for the source (per GNU license) to the kernel for the CDMA Hero.

Let's see what their first response comes back as...

My thinking is... They've obviously compiled it, so at least one person at HTC has a copy of the source that they can zip up and throw on the website pretty quickly.
[Hero CDMA Android Development] jmanley69:
So... first they told me that they didn't have the source code to things from Android Developers website... so I had to tell them (again) that I'm asking for the HTC kernel source for my phone that they haven't posted on THEIR developers website.

So... then, when he realized that... the email tech said that he didn't have any knowledge of any kernel source code and to check on android.com and htcwiki.com...

So... I replied to him (again) and told him that I wanted the source for the binaries loaded on my phone. Per the GNU license, they MUST provide this to me if I ask for it... I then told him to forward my request to the department that can help me, and also send it to their legal department since they're in violation of the software license agreement.

Let's see if they understand the question now. If not... I'll have to call them... and then the next step is to have a lawyer write a nasty gram to them. I'm not going to be like the GSM Hero users and wait a year for the source. The software license model they chose when they decided to develop in Linux clearly set the rules.
[Hero CDMA Android Development] Amon_RA:
Updated to v1.5.1

Change-log :

v1.5.1

- Updated Nandroid to v2.2.1 (ext support!).
- Added a "Nand + ext backup" menu-item.
- Nandroid and BART menu items will not backup or restore the recovery partition by default.
- Updated init.rc to only load /sbin in PATH.
- Removed the loading cramfs and sqf filesystems from fstab.
- Added an unmount script that is called at the start of most scripts.
- Updated the BKMO-utility script to it doesn't backup/restore the recovery partition + changed the return to recovery command.
- Changed the item select key to CALL ANSWER-key instead of HOME-key. The HOME-key was conflicting other operations.
- Added "Other" sub-menu :
- Moved "fix apk uid mismatches"-item from main menu to "Other" sub-menu.
- Added "Move apps+dalv to SD"-item.
- Added "Move recovery.log to SD"-item (Check this log if you want to see what is going wrong).
- Fixed the Nandroid restore menu; an error message is now displayed when no nandroid backup or device-id was found (instead of showing an empty menu).
- Removed flash submenu and "Apply sdcard:update.zip" item, because we already have "Apply sdcard:choose zip".
- Removed "Wipe cache partition" item, wipe cache is already included in the "Wipe data/factory reset" item.
- Changed UMS-toggle enable behaviour; you can not access the menu while UMS is enabled (avoid mount issues).
- Changed some menu-item labels to make the options more clear.
- Fixed UMS-toggle disable behaviour; files are now refreshed in the menu (sdcard is unmounted).
- Updated the busybox binary to 1.15.2 which has fixes for ash and hush (`trap` handling), dd (fixed handling of I/O errors), find (fix for -follow and symlinks), pidof (corrected recognition of kernel thread names), sed (SEGV), uniq (memory leak), line editing (Ctrl-D works again), build system.
- The busybox binary was :
- statically linked against uclibc (0.9.30)
- configured to preferentially execute busybox applets
- busybox --install -s installs links into /data/local/bin (JF patch)
- mount looks for loop devices at /dev/block/loop (JF patch)
- modprobe and family look for modules in /system/modules (JF patch)
- fixed an issue with vi where it would save a file as just a blank file (JF patch)
- Updated sdparted script to v0.6
[Hero CDMA Android Development] mcdroid:
Thank you for the update Amon_RA! Glad to see some CDMA love. Keep up the great work!
[Hero CDMA Android Development] Kcarpenter:
**shakes head and walks away with out saying a word**:(
[Hero CDMA Android Development] Las_Vegas:
1.5.1

Thank you so much. Much nicer interface and features.

Magically, installing 1.5.1 brought back my Startup sounds! Whodafigured?
[Hero CDMA Android Development] jmanley69:
that is truly magical... I don't believe that the recovery partition has any impact on the normal startup....
[Hero CDMA Android Development] Amon_RA:
Updated to v1.5.2

Change-log :

v1.5.2

- Updated Nandroid to v2.2.2 (fix ext restore issues)
[Hero CDMA Android Development] azr6:
edit..........
[Hero CDMA Android Development] azr6:
Anyone know? ^

I don't want to run into issues with backing up my old image with this new recovery so I just wanted to make sure it works ok.
[Hero CDMA Android Development] azr6:
Anyone check this thread anymore?
[Hero CDMA Android Development] jmanley69:
Sure... when there are updates.... no new recovery image has been released since 1.5.2
[Hero CDMA Android Development] azr6:
How about to help answer a question?
[Hero CDMA Android Development] jmanley69:
Not to sound rude... but... Please check the first page of this thread. There are several ways listed. Also, utilizing the search feature of the forum, you'll find that this has been discussed over and over with many alternative ways described.

http://xdaforums.com/showthread.php?t=443994

http://xdaforums.com/showthread.php?t=443041&page=17

http://xdaforums.com/showthread.php?t=561124&page=31

http://xdaforums.com/showthread.php?t=584029
[Hero CDMA Android Development] azr6:
Thanks for those links but they have nothing to do with the question I posted earlier...guess my posts were unclear.

I just wanted to know if a backup image made with recovery-RA-heroc-v1.2.3.img would backup fine after updating to recovery-RA-heroc-v1.5.2.img but I guess it doesn't matter cuz I just made a new backup with the new recovery so everything should be just fine.

Thanks for at least replying to this thread.
[Hero CDMA Android Development] jmanley69:
Amon-Ra - a request please.

Before you bring 1.5.3 to the CDMA Hero, can you maybe add a wipe option? I mentioned it before, but I think you may have forgotten since it's really only for the CDMA Hero.

Maybe even while wiping the dalvik, if you can wipe /data/boot-cache that'd be great. A simple "rm -r /data/boot-cache/*" would be all that's necessary.

This directory only exists on the CDMA Hero (maybe the Eris too, don't know for sure), but if the nand restores aren't going to restore the cache directories anymore, then we'd need to clear that out after restoring a previous backup.

Also, if it were a separate menu option, that'd be best because there are times to wipe that without wiping the dalvik-cache.

Thanks in advance.
[Hero CDMA Android Development] brazen:
Any suggestions on what settings to use for the partition sdcard feature? It prompts me to set swap-size and Ext2 size?

I think the ext2 size is for program storage, right? But what should I choose for the swap? This is for a new 8gb class 6 sdcard.
[Hero CDMA Android Development] jmanley69:
use the on-screen option to partition. It will make them big enough. I guarantee you that you will not fill up that ext partition due to the app limit imposed on the Sprint Hero.
[Hero CDMA Android Development] Lennyuk:
Why is this now in the normal hero thread? People may end up installing the wrong one by mistake now?

Mods? Consider moving to the CDMA hero section?

Unless I have completely missed the point here :)
[Hero CDMA Android Development] brazen:
Thank you for the reply, but I am not sure I understand you. The default swap size seems to be 32 mb. Are you saying I should go with that? Otherwise I have the option to make it larger...

I'm not really too concerned with ext size as much as swap.
[Hero CDMA Android Development] jmanley69:
I'm saying - don't do it from the command line. Boot into recovery, select the menu option (using the trackball or vol +/-) for partitioning the SD card fat32+ext+swap. Those defaults (provided by the recovery menu) are sufficient for anything you'll be able to do with your Hero.
[Hero CDMA Android Development] gu1dry:
This thread has always been in here...
[Hero CDMA Android Development] Stickman89:
Oh look its raining bricked hero's heh ^^, i agree should be moved to CDMA...
[Hero CDMA Android Development] jmanley69:
While I agree that a CDMA Hero thread should probably be in the CDMA Hero section, this thread was started before there was such a section. Also, it says quite clearly in the title of the thread "CDMA Sprint"... should somebody with a GSM Hero come in here and download and apply the recovery, they should be smacked anyway...

As to bricking the phone. I'm sure you're joking, but for people who might read that and be scared... you cannot brick your phone by putting the wrong recovery (or kernel) on your phone. All that will happen is that specific boot image won't boot (the recovery menu just won't come up).
[Hero CDMA Android Development] Stickman89:
I know i was kidding :D You know how careless some people can be sometimes, to minimize confusion and problems and now that there is a CDMA section available it won't hurt. Doesn't really bother me to much that it is here just we all know it will happen.
[Hero CDMA Android Development] jmanley69:
don't get me wrong... I agree that this should be in the CDMA section... it just makes sense. I can't tell you how many noobs go to that section looking for a recovery image and never find this one. I'm not sure if people don't know how to search or if they think that "Search" isn't really search since it isn't "Google"
[Hero CDMA Android Development] gu1dry:
Actually the search is powered by Google...

Also in the CMDA ROMs Wiki, this recovery is listed & it is linked to this very thread.
[Hero CDMA Android Development] brazen:
Yes, this is what I'm doing. I select 'Partition sdcard' from the recovery menu, must press the Home key to continue and then it prompts me to select the swap size, using the trackball to adjust the number, which is 32mb by default. After press the Home key again to confirm swap size, it prompts me to enter the ext partition size, again using the trackball to adjust the numbers (forget the default, I think I'll use 128mb) and so on until it finally actually partitions the card.

I get the impression, based on other posts that I've read, that previous versions of the recovery did not give the option to change these numbers. Seems like you used to just select partition sdcard and it partitioned without any further input. So maybe that is causing confusion. Or maybe I'm wrong. Or maybe you already know this and you're telling me to go with the default of 32mb swap size, in which case sorry to beat a dead horse.

I'm really just trying to get the absolute best (speed) performance out of my hero. I'm running gbhil's custom kernel and I'm not even sure his kernel uses the swap, I'm just assuming it does. Also, I'm not sure whether having a swap on a relatively slow sd card (even if it is class 6 speed) would have a positive or negative effect on performance, especially since this kernel apparently has a pretty aggressive task killer which makes me think that swap space wouldn't really be beneficial because there would always be plenty of RAM (The Hero has 288mb RAM, if I'm not mistaken.) I know that on pc's the general rule of thumb is to set the swap equal to the system RAM... I dunno, I'm a n00b. If you guys have input on swap size vs. performance, that would be great. Otherwise, I'm just going to try a bunch of different sizes and see what works best.