yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] c00ller:
You can flash this, which does the same as the OTA update except you don't lose root. I used it to update my PRI because I didn't want to lose root.

http://xdaforums.com/showthread.php?t=791953
[Hero CDMA Android Development] genuser:
Thanks for the link! Unfortunately I now have more ? Off topic, sorry in advance. I'm at a PRI 2.2.003

what will I gain with a new PRI?

The thread you referred me to was pretty non conclusive on if it added value or stayed through the flash back to CM.

What I'm after is improved radio connectivity. More 3G and less 1G . Maybe I'm fishing in the wrong pond.
[Hero CDMA Android Development] c00ller:
All of this PRL and PRI stuff, like the baseband, stays no matter if you wipe and no matter what ROM you flash. That's why people keep a nandroid backup of a Sense ROM so they can update these things then jump back to their AOSP ROM. Theoretically, an updated PRL can help with signal, and I don't think having an updated one can be worse... It won't hurt to try.
[Hero CDMA Android Development] aiwetir:
prl means preferred roaming list, and if you've ever looked through one, it's just a list of sites, I suppose it could improve your signal by using a different tower with a better signal, but it doesn't seem to really 'improve signal' in any way.

i still have no idea what pri is.
[Hero CDMA Android Development] genuser:
I got the PRL update and have the latest radio. It's just the PRI that appears to be the PITA to update. I'll keep snooping around for info on what the PRI is for.

Sorry for taking ya'll off topic.

Many thanks for all the help!!!
[Hero CDMA Android Development] 24601:
Read this, and if you can explain it to me like I'm a 6 year old, I'd appreciate it ;)

Or maybe this may help. Probably not, but you'll get a good laugh.
[Hero CDMA Android Development] genuser:
Wow! If aBRI is for small locations like homes , and PRI is for larger facilities. Why do we have PRIs on our phones? What I love about wikipedia is the consistent quality!
[Hero CDMA Android Development] mehta35:
Firerat's + AOSP GB 3/14

Hey guys, so I finally decided to make the switch from Froyo to Gingerbread today. I thought I might want to do firerat's mod also because I always run out of app space and I want to avoid unnecessary read/writes on my SD card. I followed all of the instructions on both threads as well as the ROMREPO page. I set my mtdpartmap.txt to 115 5 originally with aosp GB and gapps 3/07. Everything seemed fine except that my market could not download apps.

I did some research and did the market fix here http://xdaforums.com/showpost.php?p=11987847&postcount=9573 and here http://xdaforums.com/showpost.php?p=11055157&postcount=4650 .. but it did not work.. I also tried changing my mtdpartmap.txt to 125 5 and 135 5 but nothing worked.

Can anybody help me? Is the problem caused because the market uses the cache partition to download apps? Can I use the second "market fix" but use the data/download instead of cache/download? I'm just throwing out ideas.. I really don't know. Any help would be MUCH APPRECIATED! As of now I'm just using GB without firerat's mod and it's great but it could be so much better!
[Hero CDMA Android Development] c00ller:
What's the deal with nandroid restoring states made with and without FR? Is it just like any other nandroid restore? If I restore a state with FR, do I have to flash FR-boot, or will I be good to go?
[Hero CDMA Android Development] genuser:
Not a ton of help for you, but I am running GB 3/7 ROM with the 1/20 gapps and the second market fix (4650) worked perfect for me. I'm running that ROM at 112 4. Did you check your space using the df -h in terminal emulator? Did you get any errors when you typed the commands in on the 4650 fix? I goofed the first time on it. Not sure what size the 3/14 ROM is at. From what I hear it is getting smaller by the day. Now there is a 3/19 ROM up there.
[Hero CDMA Android Development] 24601:
This is the quote from the OP:
[Hero CDMA Android Development] aiwetir:
have to flash fr-boot.
[Hero CDMA Android Development] mehta35:
Well I ended up checking my space while XDA was down before I even read this post haha..

Anyways yeah I tried the market fixes and my space should have been sufficient with what everybody else was talking about BUT for some reason when I checked, my system was at 102.4 and the cache was 17.5 which is MUCH HIGHER than others' cache value.. I got sick of redoing the phone because at this point I was at 10+ tries.. I just ended up using 130 30 to be safe and have 300mb in data which is PLENTY for me. I'll keep looking into it over the next few flashes

Does anybody know why my cache was using 17.5?

Updated storage info:

filesystem size used Mounted

tmpfs 93.5M 32K /dev

tmpfs 93.5M 0K /mnt/asec

tmpfs 93.5M 0K /mnt/obb

/dev/block.mtdblock3 130.0M 102.4M /system

/dev/block.mtdblock5 299.5M 82.0M /data

/dev/block.mtdblock5 299.5M 82.0M /cache

/dev/block.mtdblock4 30.0M 1.2M /dev/cache

I think this is a little strange, it must be because the ROM/Firerat's MTD is reallocating space now, but it wasn't when I had the cache size at 5M.. now it is at 30M but only using 1.2M.. wow this is frustrating!
[Hero CDMA Android Development] Drunkpilot:
Was the 17.5 in the cache before FR's? If you forget a step (like reboot recovery) , things won't work right.

I use mtd 125 2 because I use a theme and different kernal with the aosp /cm7/GB. Sometimes the market itself has issues. I use the TE market fix in the gb wiki. I have found when flashing a new rom, using the advanced restore of the data from my current rom. Keeps everything as it was. I have some weird issue that I can't flash over a rom due to file corruption.
[Hero CDMA Android Development] aqualls:
Had mine set at 105 2 and all was good. Of course I stripped out useless crap like themes.
[Hero CDMA Android Development] SammyM00782:
No matter what I do I can't get the market to work after doing FR's period let alone any of the market fixes. I think my Hero is finally giving me the finger. I have to go back several GB builds to get everything to work properly and who wants to be stuck in the past? :-)
[Hero CDMA Android Development] aqualls:
I went back to sense. After GB, even my froyo backup is acting up with the market. When it works it only is good for two or three apps to update or install then quits. Not worth the aggravation. I need a phone that actually works. Firerat works fine with everything now.
[Hero CDMA Android Development] 24601:
Not sure which market fix you're trying, but have you tried removing 06BindCache as instructed here, then executing the following code before rebooting:

adb shell

mkdir /cache/download

chown system:cache /cache/download

chmod ug+rwx /cache/download

chmod a+x /cache/download

This seems to help others. Bummer you guys are having this issue :(
[Hero CDMA Android Development] aqualls:
Tried that. Tells me file exists.
[Hero CDMA Android Development] 24601:
That just means you already have /cache/download created. Continue with the remaining code entries and see if it helps with market.
[Hero CDMA Android Development] aqualls:
Yeah. I did. Ran the whole way down the list. The worst part is now my nand of 2.2 is doing the same thing. I'll come back to the rom eventually when I have time to tear it apart and see what else could be the issue.
[Hero CDMA Android Development] Osirus71:
You can also brick your hero by using the new format option in clockwork. its has two extra options under format that werent there with origional clockwork 3.xxxx. it happened to me:( i didnt take the time to look at the format options carefully when i was redoing by phone and wanted to redo the format stuff before installing aops's vanilla rom revision. Anyways, ran through the format options in recovery(careful not to do the sdcard format cause that was the only one you werent supposed to do on the origional clock work)and it fubared my hero. Nothing, and I mean nothing worked. it was stuck on the white htc boot screen. had to get a replacment this past week.
[Hero CDMA Android Development] stayclean:
If it turns on, it's not bricked. What exactly did you format, by the way? Recovery?
[Hero CDMA Android Development] c00ller:
I had my first problem with Firerat's. I'm using v1.5.8 on CM7 RC4.

I've been reflashing and trying different things, and found out that if I remove

/system/etc/init.d/06BindCache

as per jasonmaloney's recommendation, rebooting never gets past the HTC screen. adb logcat revealed that there was not enough space in some partition. #df -h showed that 4.0 MB / 4.0 MB of my /cache/ partition was used, dunno if that is relevant.

So now, the only way to boot is to keep the 06BindCache. However this is the first time leaving it there, and now I can't download anything from the Market. adb logcat says

statfs /cache/download failed, errno: 2

Anyone else having this issue?

Edit: found out that s0be's fix gets my market working again.
[Hero CDMA Android Development] jneg123:
I just used 1.5.8 for the first time as well. Someone in the AOSP thread mentioned that they didn't have to do any market fixes using this version of Firerat's. Well I was having an issue with VVM and thought I'd do a full clean wipe and reflash with 1.5.8 (I had been using 1.5.6 up till now.)

Well, no luck with getting the VVM working, appears there are others with the same problem. That aside, I didn't have to make any market fixes. The only adjustment I made was to enlarge the MTD part map to 128 32 as the guy recommended. Leaves some extra free memory in cache and system, and I'll probably try adjusting that with the next flash, but not a big deal, and no market hassles.

So, I'd try reflashing but skip the fixes and see how it goes.
[Hero CDMA Android Development] c00ller:
Well, what was strange is that I've been using FR v1.5.8 since CM 6.1 and all the RC versions of CM7. Removing 06BindCache has never been an issue until RC4. I don't know what it is about RC4, but I can't boot unless 06BindCache is still there. With RC4 + 06BindCache is the first time I've EVER had a problem downloading from the Market. Again, s0be fix was the only solution for me... :/
[Hero CDMA Android Development] abadasstanker69:
All you had to do was RUU back. I can't believe you bought a new phone because of that. BTW can anyone tell me the numbers for aosp 2.2 not 2.3? I wanted to try this since I got a couple of days off
[Hero CDMA Android Development] genuser:
I know you can go into 2.2 with 84 4, because I flashed it briefly from the 3/26 asopgb. I don't know how much smaller you can do, but I sure you can based on zip size.

I remember trying df -h and getting an error. Didn't stay long enough to go farther.
[Hero CDMA Android Development] ahnuts72:
Works great went from 170 to 300 total 24 free to 182 free

The only thing i had to do to get market to work was increase cache to 40 cause

mine runs at around 30 according to df -h so i guess somewhere around 10 extra or the biggest file ur gonna download from the market over and no probs
[Hero CDMA Android Development] vayman:
w/ OP GApps and aospMod 2.2 I ran MTD 67 2. YMMV ;)

If I can find the post I'll link it, but I think aosp himself suggested those settings.

**Edit: In the post he recommends 64 2 w/ OP GApps & 9.9.2 build.

http://xdaforums.com/showpost.php?p=9784332&postcount=5547
[Hero CDMA Android Development] il Duce:
well this install was actually pretty easy, don't know why I held out for SO long. I am now a firerat user, until it pisses me off for some reason, lol.
[Hero CDMA Android Development] c00ller:
Firerat hasn't given me a single issue until CM7 RC4. FOr some reason that release caused some conflict and I couldn't download anything from the market. I had to apply s0be's fix to get it working again. Just FYI in case you run into it also.
[Hero CDMA Android Development] genuser:
I think it's an outstanding find and quite clever. Not so important on the new phones with gobs of memory. The only thing is having to get used to the extra steps. Just when you thought you could flash in your sleep ;-)
[Hero CDMA Android Development] Drunkpilot:
If you flash enough with firerat's, you can still do it in you'd sleep. I have a definite ritual that I use so that I remember to flash recovery and fr-boot at the end. My only issue has been the accidental "slip" in CWM and the formatting of the SD card or...that's what backups (I mean of the card onto computer, nandroids, and s-off were made for.

Firerat's adds a lot to the hero, namely more room.
[Hero CDMA Android Development] vayman:
IKR, I've been using it for so long I forget what it's like to flash a ROM w/out FR! :D
[Hero CDMA Android Development] c00ller:
FWIW, after flashing CM7 Final over RC4, I did NOT have to do any modifications at all (rm 06BindCache or s0be fix) to get Market downloads to work :D. I'm using mtd 100 4 = 355 MB /data/.

Although, it is possible that s0be's fix I used from RC4 just stayed during the upgrade to final build (I only wiped cache and dalvik)... so I guess take my observation with a grain of salt.
[Hero CDMA Android Development] 24601:
+1, I did the same thing (cache and dalvik only) only I came from aosp gb. But did not do the bindcache or s0be fix. I think it has alot to do with Market 2.3.6. I haven't had any issues since 2.3.6 was pushed the other day.
[Hero CDMA Android Development] c00ller:
Hmm. I'm still on 2.3.4.. why haven't I had 2.3.6 pushed to me :confused:
[Hero CDMA Android Development] 24601:
Did you have 2.3.6 before you flashed? I did and it didn't work after the flash. It wouldn't even open. I restored back to 3/26 and TiB the Market app. Then reflashed CM7 along with 3/7 gapps, but I did not wipe data, and I unchecked the option to allow Google to restore my apps. When I opened Market it was still 2.3.6. I had 5 updates waiting and they all d/l without any issues. No Market fixes needed. Then, about an hour ago I tried to d/l a new app and update Doubletwist and neither would d/l. Back to the same old issues. I did s0be's fix and all is well again. :sigh: I thought 2.3.6 fixed everything, but doesn't seem to be.
[Hero CDMA Android Development] jaymack24:
So this is what I have, what numbers should I use for mtd?

/dev/block/mtdblock3 170.0M 79.2M 90.8M 47% /system

/dev/block/mtdblock5 159.5M 98.4M 61.1M 62% /data

/dev/block/mtdblock4 130.0M 40.4M 89.6M 31% /cache

/dev/block/mmcblk0p2 472.5M 8.0M 440.1M 2% /sd-ext

Sent From my Gingerbread Hero

could u also let me know how much space I would gain. thnx
[Hero CDMA Android Development] 808Bill:
Based on that, I'd go 90 45. It should give you 165 if my drink addled brain is working.
[Hero CDMA Android Development] c00ller:
I agree with the 90 MB for /system/, but high values of cache aren't necessary.

Be aware, the 90 MB must accommodate your ROM as you flash it, not the size AFTER deleting things from /system/app or the like.

CM7 has built-in scripts that allow /data/ to be used when /cache/ gets full. I've been using 4 MB for cache since CM7 RC2 and I haven't had any issues whatsoever.
[Hero CDMA Android Development] revcp:
Agreed re cache size. Also, if you want to run a trimmed down ROM you can always use 7zip on the pc to remove apps prior to loading onto sd.
[Hero CDMA Android Development] il Duce:
OK so I'm going to nand restore NFX sense later today to update PRL/profile, so here's what I assume would be correct:

-change mtdpartmap.txt to 175 25 ?

-nand backup current (already done)

-wipe

-flash firerat 1.5.8 recovery

-wipe again

-reboot recovery

-nand restore NFX

-flash fr boot

-reboot

-update PRL/profile

-check PRL number

-in NFX rom, change mtdpartmap back to old values

-wipe

-flash firerat 1.5.8 recovery

-wipe again

-reboot recovery

-nand restore aospCMod 4/21 FTW

-flash fr boot

-reboot
[Hero CDMA Android Development] oostah:
If you are just going to update prl and what not. You shouldn't need to do mtd. Just flash NFX rom.
[Hero CDMA Android Development] gigermunit:
What would you guys say is the best setting for aosp cm7?
[Hero CDMA Android Development] 24601:
Looks good, duce. I usually do another wipe after rebooting into recovery just to get rid of dingleberries, but it's probably not necessary.

Oostah, I don't think that will work if NFX system is higher than the current system settings. You need to reset your settings to make sure. Or, you can just reflash your recovery and blow away firerat settings altogether for the sense update. Then when coming back to your backup you just reset firerat from the beginning. It's the same steps and you don't have to mess with your mtdpartmap settings.
[Hero CDMA Android Development] il Duce:
So:

-wipe, power off

-flash GL 3.0.2.4 from hboot

-wipe again

-nand restore NFX

-reboot

-update PRL/profile

-check PRL number

-wipe

-flash firerat 1.5.8 recovery

-wipe again

-reboot recovery

-nand restore aospCMod 4/21 FTW

-flash fr boot

-reboot
[Hero CDMA Android Development] il Duce:
no offense, I'm kinda grumpy this AM, do you even run firerats? that would be an INSTANT fail.
[Hero CDMA Android Development] 24601:
Correct

10 char
[Hero CDMA Android Development] c00ller:
I think maybe what he meant was if you're just using the NFX nandroid to update the PRL and don't really care for other use, you don't have to go through the trouble of changing your mtdpartmap.txt just for NFX. I'm using Firerat and before I flashed NFX rom I just flashed fr-remove, rebooted recovery, then it's like I had no firerats anymore. You probably thought it was absurd to try keeping the same mtdpartmap from CM7 to use for NFX, which of course wouldn't fit because /system/ would be too small.

I set up NFX without firerat, did my PRL business, created a backup, wiped, ran fr-recovery (same mtd settings as CM7 still), rebooted, wiped, restored CM7 backup, flashed fr-boot, reboot, done.
[Hero CDMA Android Development] Drunkpilot:
That looks good. I never use firerat's when going back to Sense (I use NFX Roms) since I never do a real set up and only use for updates. You really don't need anything larger than a 2 in the cache partition as it always uses 1.1 when you have it set to 2. I am doing (105 2) on aosp/cm7 and that is because I use the dark horse theme. I have pulled out a few things like soundback, talkback, etc.) .

Happy flashing!
[Hero CDMA Android Development] 808Bill:
That's what I did as well. The remove utility works real well and makes restoring a stock rom a breeze.
[Hero CDMA Android Development] il Duce:
I have the fr-remove, just didn't read up on how to use it lol. Thanks for the step by step, also I just caught something (but I doubt it REALLY matters) - you said wiped, fr-recovery, reboot, wiped - It's supposed to be wipe, fr rec, wipe, reboot. I did it your way when I was trying to flash green 3.0.2.4 and was corrected, maybe by you lol I can't remember, anyway just thought I'd point it out.
[Hero CDMA Android Development] c00ller:
Man, I really need to triple-check my posts before submitting :P

Yeah, I actually wipe, fr-recovery, wipe, reboot, wipe again (probably doesn't matter), flash, fr-boot.
[Hero CDMA Android Development] dpeeps74:
Lol i do the same thing all the time at work c00ller

~maybe I set it too high...
[Hero CDMA Android Development] texas83:
I have a HeroC with CM7 on it. If I install this mod, will it really bump my storage available from 160mb to 300+mb???

Also, if I install this on top of my current setup, will i have to reinstall all my apps and my ROM? Thank you.
[Hero CDMA Android Development] nsxla:
I am trying to save a friend's hero till he can upgrade to the EVO 3D

flashed this mod and installed aospMod-v0.9.9.2 along with the gapps.

/dev/block/mtdblock3 64.0M 62.0M 2.0M 97% /system

/dev/block/mtdblock5 394.1M 30.2M 363.9M 8% /data

/dev/block/mtdblock5 394.1M 30.2M 363.9M 8% /cache

/dev/block/mtdblock4 2.0M 1.1M 888.0K 57% /dev/cache

/dev/block/vold/179:1

Isn't the 2.0M available, not enough? Shall I up it?

currently running 64 2 as suggested here - TIA http://xdaforums.com/showpost.php?p=9784332&postcount=5547
[Hero CDMA Android Development] c00ller:
Yes, I use it and it bumped by available storage to 300+ MB.

No, you don't have to reinstall anything :) just follow these steps:

1) Create mtdpartmap.txt. mine says "mtd 100 4" and it fits just fine + gapps

2) Create nandroid backup

3) wipe everything! data + cache

4) flash fr-recovery

5) wipe everything again! data + cache

6) reboot to recovery. this is important! if you have clockworkmod just go to advanced > reboot recovery. if not, connect to pc and do adb reboot recovery

7) restore nandroid

8) flash fr-boot

9) reboot normally

Then you should be good to go! I've messed up giving instructions with firerat more than once, so if any veterans could confirm what I wrote that would be great :)
[Hero CDMA Android Development] genuser:
I am running CM7 RC4 and when I go into ManageApplications it shows 204MB Used and 151MB Free. :-) You can't beat that with a stick! "mtd 100 4"

You cannot "install on top of". Think of it as installing underneath. ;)

You want to make a nandroid backup of what you have.

Then follow the steps

Where it tells you to flash ROM and Gapps you want to restore your nandroid

Works like a champ.
[Hero CDMA Android Development] 24601:
2MB seems a little tight. Wouldn't hurt to bump your settings to 70 2. That way if you install some other system tweak you won't risk running out of room.
[Hero CDMA Android Development] genuser:
The only thing that I would add/corrrect here is to put in an additional step

5.5) mounts and storage-> format boot, system, data and cache

I am not a Linux guy, but in the DOS days (=OLD GUY!) you would use fdisk to create partitions or logical drives and then you would have to format them to put the file system like FAT32 on them. To me flashing FR-recovery creates the partitions (based on your mtdpartmap.txt) and then you format them before you actually use them.
[Hero CDMA Android Development] texas83:
Thanks for all the quick replies! And the step by step instructions! I will do this and update soon =)
[Hero CDMA Android Development] texas83:
Wait will this delete everything off my SD card? Just want to confirm pls!
[Hero CDMA Android Development] genuser:
DO NOT format SD Card. That option is right next to Format Cache. Be careful!!! Read twice!
[Hero CDMA Android Development] 24601:
Installing firerat will not mess with your SDcard, but like genuser says, be extremely careful in mounts and storage not to select format sdcard option. There have been a few that have done so and boom, sdcard is gone. Go slowly . . . measure twice, cut once.
[Hero CDMA Android Development] nsxla:
Will do thanks! I hope i can't get his Hero up to speed ;)
[Hero CDMA Android Development] texas83:
I got a problem! I am stuck on the nandroid restore step. I hit restore, it starts restoring, and just stays there. It's been filling in the little dots over the entire screen now. any help? i am using RA recover 1.6

1) Create mtdpartmap.txt. mine says "mtd 100 4" and it fits just fine + gapps

2) Create nandroid backup

3) wipe everything! data + cache

4) flash fr-recovery

5) wipe everything again! data + cache

6) reboot to recovery. this is important! if you have clockworkmod just go to advanced > reboot recovery. if not, connect to pc and do adb reboot recovery

7) restore nandroid

8) flash fr-boot

9) reboot normally
[Hero CDMA Android Development] aiwetir:
A nandroid can take a bit to restore, how long have you waited?

Haven't used RA in a while, there aren't options to wipe boot, system, data, and cache in it so ymmv.
[Hero CDMA Android Development] texas83:
I know nand restores take a few minutes, but its never taken the entire screen filled with dots to restore. Its been going now for 10+ minutes. I pulled the battery, restarted to recovery, and tried to restore again. same issue, still stuck restoring....

help!
[Hero CDMA Android Development] 24601:
+1. A while back I attempted using RA to do this and got to the same sticking point, repeating dots for @10 minutes. I eventually copied my backup over to a CWM recovery folder and used CWM 2.5.0.7 to recover. Worked fine.