yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] :
This mod will work the same on every phone tested on. Partition maps don't change. Hardware has nothing to do with it. This is a software modification.

The 768MHz comment doesn't apply to this mod. Which again shows your lack of understanding. Overclocking is something totally different than changing partition sizes.

Unless you have bad (failing) hardware, or you fail at following directions, this mod will work. Take it easy. If it doesn't work for you, well that sucks... but don't go blaming others or the program.

Also, he changed version numbers because he added support for more devices.
[Hero CDMA Android Development] revcp:
Have to agree. If directions are followed this will work. I know in the aospGB thread there are a number of users who try to shortcut things by using a faster RA recovery mod instead of the recommended clockwork recovery, and then they complain about the Rom when RA does not completely wipe and the Rom does not install correctly. Check your sd card, follow ALL the directions to a T, etc. No reason it shouldn't work.
[Hero CDMA Android Development] laie1472:
Man all of you can have this fake ass argument Im gone

Root-Hack-Mod-Always™
[Hero CDMA Android Development] Firerat:
lol

gawd, stop smoking whatever it is you have been smoking

I didn't have to do anything to customMTD for it to work on the Hero, it just did.

when it wasn't working on the desire I noted that the misc partition appeared at the end of the nand unlike the g1/hero where misc was at the begining.

so I added to customMTD so it would calculate the data size and explicitly set that size.

the evo has more nand partitions than the g1/hero/ desire

so I made sure I discovered all of the partitions which were being set up

the result is, it will work on the Evo, and probably many future phones that use msm_nand

do you know where overclocking started?

during quality assurance tests are performed, some wafers fail the tests, so they get downgraded. the hardware which uses the downgraded wafers are programmed with a limit

the overclock would ignore that limit and the chip would run at the higher spec, depending on how badly the wafer failed the QA test it would have a direct relationship to how well you could overclock.

there is also a case where production targets come into play

A chip manufacture wants as much of the market share it can get, so expensive high clock chips and cheaper lower clock chips use the same components, its only the programming which is different, so you can overclock

as for OS's not running on some PCs, well that is just silly

if an OS runs on one PC , but not another then there must be a fault with the PC it doesn't run on. do you not agree that that is a logical explanation?

I could go on and on, but you are limited, you were downgraded for QA reasons I guess.
[Hero CDMA Android Development] laie1472:
Dude I had this mod working since he posted it check the dam thread

Root-Hack-Mod-Always™
[Hero CDMA Android Development] unCoRrUpTeD:
Let's stop all the nonsense bickering. 2 pages of it is enough. Check and see who the OP is. It is not Firerat. He has no obligation to check or answer any questions that are posted on this thread.
[Hero CDMA Android Development] :
edit: just read unCoRrUpTeD's post and agree. This isn't worth my time anymore. %100 success rate. Thanks Firerat!
[Hero CDMA Android Development] 808Bill:
Totally agree. Thanks Firerat. This is one of the best enhancements I've done for my phone, and it totally rocks.
[Hero CDMA Android Development] dhero1:
Don't try to be polite just because this MOD happens to rock. Firerat's a typical dev with communication issues, and beyond that an f'n Brit, so have at 'em for that reason if for no other ... :p
[Hero CDMA Android Development] aiwetir:
I can't believe that someone would install this mod and post so often about it without understanding percentages. I believe my son had percentages down in middle school.
[Hero CDMA Android Development] oostah:
I have put this mod on four heros three of them had different out comes one of them I had to use RA recovery. I don't no why but that's how it went. Every hero is different and you will have different out comes.
[Hero CDMA Android Development] laie1472:
Why not quote firerat and tell him this??? and I never said had to answer any of my questions. I asked him for help and because I didn't understand dude got rude. And I was not rude when I asked. I just said I did not understand and dude acted like it was a dam crime so you can keep this.
[Hero CDMA Android Development] laie1472:
My whole point thanks.
[Hero CDMA Android Development] laie1472:
Then next time tell your son to come on here and break it down for me then. Maybe he will do a better job @ explaining it then.
[Hero CDMA Android Development] laie1472:
Dude really you need to quit I never wanted to even argue with you I just asked for a basic understanding of your mod. If you didn't want to give me one then you should have not posted but this is stupid and you have major communications issues. Dude your example is way off but in the end man who cares. This back and forth stuff is getting old I just know you posted a great mod but your an ass when it comes to advice on it. So once again thanks for the mod and the hard work look forward to the update. And I don't have to understand it to use it.
[Hero CDMA Android Development] Firerat:
you asked me to patronise you here

so I did
[Hero CDMA Android Development] Firerat:
lol

I wonder where you got the "communications issues" idea from?

ahh, I see, it was from the guy with the inferiority complex.
[Hero CDMA Android Development] Vandelay007:
Ha!! 10 char
[Hero CDMA Android Development] dhero1:
That was from me - and I want full credit! :p
[Hero CDMA Android Development] dhero1:
I need two more things from this thread:

1) the ability to thank myself for my own posts

2) the link to the original pic used in Foo_Blyat's avatar

After that, I'm done with this post! :D
[Hero CDMA Android Development] hotaru:
i was going to say something about laie1472's apparent inability to multi-quote and tendency to double post, but then firerat had to go and do the same thing...
[Hero CDMA Android Development] Firerat:
things were a little screwy earlier, xda was up and down like a yo-yo
[Hero CDMA Android Development] laie1472:
Lol you got it dude full credit. All the way I don't mind @ all

Root-Hack-Mod-Always™
[Hero CDMA Android Development] laie1472:
Quote this---- AWAH!

And the only inability I have is to figure out how other people comment on a convo that had nothing to do with them. But a birds of a feather flock together. So its all good.

Root-Hack-Mod-Always™
[Hero CDMA Android Development] tps70:
This MOD worked perfectly for me, but I overestimated the amount of room my /system partition required. Currently, I'm running 102 10. According to busybox df -h, I'm using 84.9MB (83% used). Currently, my /data partition is 347.5MB with 215.6MB available. Amazing.

Even though my current setup is fine, I'd like to tweak a bit more to see how much storage room I can squeeze out!

If I understand correctly, I can just edit my mtdpartmap.txt file, nandroid my current setup, flash the boot zip, and restore my nandroid backup?

I'm going to try 90 4. :D
[Hero CDMA Android Development] Firerat:
nope

you must

nandbackup

edit mtdpartmap.txt

flash recovery patcher

format system,cache and data

reboot to recovery

nandrestore

flash boot patcher

note , steps 1 and 2 don't have to be done in that order
[Hero CDMA Android Development] aaronpoweruser:
note to all if you try to push something to ur system folder you need about an extra 5 mb for a framework at least cause even tho it overwrites it will give you an out of space error
[Hero CDMA Android Development] revcp:
No. your changes to mtdpartmap won't be read and executed unless you flash the recovery mod and then go through the while process on page 1.
[Hero CDMA Android Development] Firerat:
do it in recovery

ROMs tend to be a little too slow at flushing

but if you want to do it on a live ROM,

then you can move stuff out of the way ( like bootanimation ) , then move it back when your push is done.

too many people give up too easily, then tell everyone else to give up .. before you know it everyone has a crap mantra.
[Hero CDMA Android Development] tps70:
Thanks, Firerat... almost forgot a couple steps. :o

Got it!

After seeing these posts, I edited my mtdpartmap.txt file & did the process correctly. Now I have a /system partition of 90M (84.9M used, 5.1M available - 94%). My /data partition is now 365.5M, so I'm happy. :p

I'll be extremely surprised if I actually utilize all that /data partition space during this last month or so before I retire my Hero!

Thanks for the help & input everyone. :D
[Hero CDMA Android Development] 24601:
@firerat -- FYI, I had a couple bootloop problems a while back and started adding a format system, cache, and data after rebooting to recovery. Saw this remedy from others. It seems to resolve the problem. I'm sure this is a quirk with my setup, but it may help others.
[Hero CDMA Android Development] aaronpoweruser:
ok thanks 10 chAR
[Hero CDMA Android Development] Drunkpilot:
I have a quick question about v1.5.7 and v1.5.7b- what is the difference. I didn't open up the zips to see (and even if I did...). What is the best recommendation for the Hero CDMA?

I am running a CM6 version (but it is a jaybob CM6.2-31DEC- EXTBLUE with a 2.42.02.10.29 radio and Deca batt. tweak. I am really just getting involved in rooting and ROM's, but I am addicted like I was with Donkey Kong. Am I dating myself?

I am now loving my phone thanks to many people on this site and any info I would greatly appreciate. My Rep. at Sprint never told me that I wouldn't be getting Froyo (even though I brought it up) when I bought this Hero. The Bluetooth issue really pissed me off, but now, it works like a charm.

Thanks,

"Thee" Drunkpilot
[Hero CDMA Android Development] Vandelay007:
You should be able to use either....I believe Firerat mentioned the updates were to add more supported phones.... but someone please correct me if I am remembering this incorrectly
[Hero CDMA Android Development] theSlack:
Wow.

Running cm 6.1 stable, mtd 80 2, got total of 378 on the data part.

Read the forum, understand what you read, follow instructions... So easy.

Thank you all.
[Hero CDMA Android Development] jcj77d:
can i still do this w/o flashing a rom, but just doing a nandroid restore instead, ie:

step 11, instead of flashing, but nandroid restore
[Hero CDMA Android Development] zwizzle:
I have been using this mod for quite a while now and have never really had any problems (when I remember to follow the steps completely). I was just wondering, is there any disadvantage to having the cache so small (like the recommended 2mb)? It seems like most apps still load quickly, so I'm not really sure why the Hero is set up by default to have such a huge cache partition. Thank you to firerat and Foo_Blyat and everyone else who helped bring this great mod to the Hero.
[Hero CDMA Android Development] jcj77d:
i got an error after flashing FR-recovery-v1.5.3-CustomMTD_S.zip, & re-wiping system/data/cache

error says: not enough space on device

help?

edit: nevermind got it, great job OP.

went from 160mb total memory w/ 91mb free to:

356mb total memory w/ 251mb free!!!!!!!!!!!!!!!!

edit: check system folder & only had 2-3mb of free space, so i deleted all the .ogg files im not using from the media folder & now have almost 7mb free, just incase i need to install/update a system app
[Hero CDMA Android Development] Firerat:
in Donut and Eclair /cache was used as a place to download market apps prior to install

this changed in Froyo ,Market downloads now go to sdcard

Eclair roms still need space on cache for the market to work, which is why the bind mount script is included

for froyo that script is a little redundant tbh

in CM5 + , if cache is large enough it is used for system dex ( dalvik-cache )

this is determined at build time

dalvik.vm.dexopt-data-only=1

in the build.prop prevents dex on cache

Later CM6s a script runs at install time, if cache is less than 60mb dalvik.vm.dexopt-data-only=1 is written to the build.prop

I've written a script which runs at boot time, its a little more 'complex'

https://github.com/Firerat/GB-devic...ffda7c79465/prebuilt/etc/init.d/04sys_dex_loc

but makes the dex juggle easier, that script is hardcoded with 35mb, but in 'experimental mode' there are no hardcoded values, it looks at current dex size and adapts

OTA updates use cache, and is the main reason it is so large, it needs to hold full rom + radio/hboot

as we are rooted we don't use OTA , so reclaim that space with customMTD ;)
[Hero CDMA Android Development] tps70:
Nandroid restore problem... almost. Big scare!

Last night I was showing my son the benefits of rooting and saving nandroid backups. I decided to show him how easy it was to go back to a different ROM by restoring a nandroid backup from last month.

I completely forgot to adjust my mtdpartmap.txt file or flash anything to do with this MOD! I booted to recovery, performed the necessary wipes, chose my nandroid to restore (a much larger ROM than aospMod), let the nandroid restore process run, then tried to reboot normally.

The white HTC boot screen cycled twice, then I got an error similar to:

E:error in CACHE:recovery/log

(No space left on device)​

I couldn't boot to recovery either! Then, I realized I'd forgotten about the two files I should have flashed for this MOD and the mtdpartmap.txt file I should have edited! I though I'd really messed it up. After about an hour of searching XDA & Google, I gave up for the night. I left my phone hooked up to the USB cable with the error on the screen and went to bed.

Woke up this morning and went straight back to work. Pulled and reinserted the battery, booted the phone. The white HTC boot screen cycled three times, then I was at the recovery menu and the error was at the bottom of the screen! I did everything I was supposed to in order to restore my aospMod and install this MOD and it worked! Whew!

Never again!
[Hero CDMA Android Development] SweepinJR:
Even if you screwed up to the point you couldn't boot to recovery you could still fix things. Mount your SD card to a PC, and copy everything over, then run a sprint RUU, then re-root it & flash a recovery. Then you're good to go on re-setting your mtd partitions and restoring your nandroid backup.
[Hero CDMA Android Development] Firerat:
bit overkill

just

fastboot erase system -w

if cache refuses to restore, then it is too big

either resize cache, restore, wipe cache then backup and go back to smaller cache size

or

in clockwork recovery

format cache

adb shell
mount /sdcard
cd /sdcard/clockworkmod/backup/<your backup dir>
mkyaffs2image /cache/ cache.img
md5sum *.img > nandroid.md5

job done
[Hero CDMA Android Development] SweepinJR:
See how I so cleverly just pulled helpful information from you just for us rookies! :D
[Hero CDMA Android Development] dsMA:
I noted that the reason I tried faking the spl is because the first time I attempted to this I could not get past the htc screen after final reboot. Doing nothing different other then faking the spl the second time around resulted in being able to boot into cm6 after the final reboot. Unfortunately the googles did not flash and for some reason the color in the menus were all go (don't have any idea why everything would be in black and white)

Maybe I didn't make it clear in my post but the numbers 90 2, 110 2, and 125 5 were for cm6 (which is foyo 2.2)

When you say reflash recovery image I assume you are meaning the nandroid backup...I can not recall if I tried that or not. I will try it after I eat dinner unless I can get someone to help me with flashing the google stuff. Like I said I tried 125 5 for the system and cache and they still didn't take :-(
[Hero CDMA Android Development] dsMA:
I didn't get the "cache formating" message either.

At what point did you create the txt file: before or after you flashed the boot file.

When you say you made a txt file did you label it mdppartmap.txt?

I was creating the file using echo "105 2" /sdcard/mdpartmap.txt

What specifically did you do to create your file?

After you booted into cm6 was the file still there?

Unrelated to the problems I am having but "newest" gapps, is there a newer set of the apps? I am using the 20100814 that is linked to in the op of the cm rc1 thread. Also I am curious since I am off top on gapps, how do these apps update since they do not show up as being installed in the marketplace?
[Hero CDMA Android Development] secbrad:
http://wiki.cyanogenmod.com/index.php?title=Latest_Version#Google_Apps_for_MDPI_devices_2 this is the link to latest gapps. The MDPI ones, they're at the bottom of the page and the "tiny" ones just have a lot less stuff like chrome to phone, goggles, etc... The ones you have should still work though, I think. I found them on the IRC which by the way can probaly help you a lot better than I can on this since the people who helped make this are always on there and eager to help but I'll still try.

I created the file by mounting the sdcard, right click > new > text document > "mtdpartmap", opened it, typed "mtd 102 2" w/o quotes(read somewhere that the patch automatically looks for that file on the root, so in theory it knows what to do), saved it, closed it, and I did this before I flashed the boot file. I actually did this the same time I copied the boot and flash zips on to my sdcard. I just "turned on usb storage", you know the basic way to mount while your not in recovery.

The file will always be there unless of course you reformat your sdcard or delete it.

You know man it's the same with all these threads you have to take bits and pieces from a bunch of different ones to make yours work, sometimes. Look into the IRC and if you still need help ask again unitl you get the answer you want.

I don't know why they don't show up, maybe that's why we had to delete the older voice search before updating to the new one. We did have to do that didn't we, I can't remember.
[Hero CDMA Android Development] customhdrider:
got this working with Blue Echo using mtd 182 4 settings,got about 20*30 apps and still have 165mb of internal space,,did com and had 360 with default settings..this is a great mod,thanks to all who made this!
[Hero CDMA Android Development] danaff37:
Okay just to make sure after reading some of the problems, the text file needs to be created before flashing anything. And if you change the text file, then redo the WHOLE process
[Hero CDMA Android Development] zachslavin:
MTD 102 2 didn't work running CM6 so I changed it to 110 5 and it worked perfectly. A little scare but it's all good now. I have about 230mb's with a bunch of crap on there. :)
[Hero CDMA Android Development] dsMA:
Finally everything is working properly.

What I did was while in recovery menu, I enabled USB, created a txt file named mtdpartmap and edited its contants via the pc, and saved.

I wasn't mounting the sdcard in prior attempts in doing all this through the shell and I think that is why there was a problem reading the mtdpartmpa file.

For those of you who are getting stuck at the HTC screen after the final reboot I recommend as the last line of the mtdpartmap file you enter

spl 1.33.2005​

In a previous response someone said that faking the spl is only for people with non sprint heros but including this line in the mtdpartmap file was the only way I was able to boot past the htc screen after final reboot.

My setup now is:

cm6 rc 8-21 nightly (I am told that Sprint visual voicemail (vvm) works in this build)

8-16 tiny gaaps

uncapped 8-17 #5 kernel (the 8-19 #8 kernel froze at HTC screen)

the mtdpartfile has the following entries:

92 2

spl 1.33.2005​

This gave me 334mb of free internal space.

***UPDATE***

NOTE: 92 2 seems to be the bare min partition size for system when paired with my phone and the setup above. Running "df -h" from the shell showed that my system was 100% utilized. I then changed the partition size to 102 (just to make sure that I was in fact installing everything in gapps tiny) and I went from 100 -89% utilized showing that 91.1mb of the partition was used.
[Hero CDMA Android Development] dsMA:
[Q] misc questions

OK I have some lingering questions:

1) I thought when I fist flashed cm6 (before I started down this road) that the text for the menu items in

menu - settings​

were all in color...am I wrong in my remembering? Right now the txt for all the menu items is black and white.

2) The link that the OPer provides in the OP has a box that shows the following

Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock3 90.0M 89.0M 1.0M 99% /system
/dev/block/mtdblock5 117.8M 99.3M 18.4M 84% /data
/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin
/dev/block/mmcblk0p2 457.4M 88.0M 345.0M 20% /sd-ext
/dev/block/mmcblk0p2 457.4M 88.0M 345.0M 20% /cache
/dev/block/mtdblock4 2.0M 816.0K 1.2M 40% /dev/cache

Does anyone know how to get this information?

3) If you want to change the partition size again do you have to do every step all over i.e. change mtdpartmap - wipe - flash recovery - wipe - reboot - flash rom - flash boot - reboot?

4) This mod makes the data partition 0 correct? How do we load custom boot images then, the directions on the thread said to copy bootimage to the sdcard - copy the bootimage on the sdcard to data/local
[Hero CDMA Android Development] danaff37:
1. Menu/settings has always been in black and white in aosp. Sense has it colored

2. adb shell df -h

(if you're using native apps 2 sd, every app on sd will have a separate mount point and a separate entry here)

3. Yes. Change the txt, then do the whole thing again. Wipe, flash the recovery file, reboot, flash rom, flash boot. The recovery file is what reads the txt

4. It makes cache near 0, but data increases. But even for cache, it symlinks to data so android thinks it's big anyways.
[Hero CDMA Android Development] hunterd13:
i didnt see the results of the symlink for cache in 2.1 but i do see it now in the froyo builds.
[Hero CDMA Android Development] laie1472:
Was wondering if I can use aps2sd with this mod also wich one should I use help would b appreciated thanks
[Hero CDMA Android Development] markus_del_marko:
whats the advantage of doing this, i have to ask? does this just free up internal ram or free-ram?
[Hero CDMA Android Development] dsMA:
reposting with quotes so others knows what this was in reference to
[Hero CDMA Android Development] dsMA:
I don't see any reason why you wouldn't be able to use apps2sd card.

Run the mod check your internal storage space and see how much you were able to free up, you prob won't have to resort to using apps2sd right away.

Using cm rc1 8-21 nightly build with uncapped 8-17 kernel and 8-16 tiny gapps I have 334mb of internal storage using 92 2 as the sizes for the mtdpartmap.txt file.

I should note that 92 seems to be the bear min for the above setup for my phone (HTC Hero, Sprint).

Running

df -h

from the shell showed my system partition was 100% used. I then changed the partition size to 102 2 and this resulted in a system partition that was 89% used. It showed that 91.2mb of system was used so that is why I say 92mb is the bare min for the above set up.

If you are going to use the full gapps then you are definitely going to need a large system size.
[Hero CDMA Android Development] dsMA:
that is correct...well let me qualify that answer. You only have to start over from step one if you change the mtdpartmap.txt file i.e. you change the system partition size. If all you are doing is flashing a new kernel or new rom or an update to the rom then all you have to do is after flashing those updates flash the boot file.
[Hero CDMA Android Development] dsMA:
[Q] what % of the system partition should be utilized

Is there any danger are having the system partition being 100% utilized?

What is a good recommended utilized partition percentage?

Like I have posted 92mb gives me 100% and 102 gives me 89% with 334mb and 320mb internal storage free.