yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] mjhuffer:
This is seriously the BEST TUTORIAL

http://themikmik.com/showthread.php?8925-A-simple-guide-to-setting-up-firerat

This explains everything. You can use the newer files from the OP but the ones at the mikmik work just as well. This allows you to get exact values for your .txt file so you aren't wasting any space.
[EVO 4G Android Development] carhauler1969:
Finally got the balls to try this, first on the WiFi only disposable Sprint Hero CDMA that I rooted earlier in the week, & after seeing how truly easy it was, I said to hell with it & resized the EVO as well. :D I went with the custom "mtd 200 100" setting & got 668MB of internal storage with 372MB free with 120+ apps installed, yes I use DarkTremors a2sd as well on a 1GB ext3 partition.

Bottom line is this: if you can read & understand the OP, and follow the instructions to the letter, and you need more internal storage on the EVO, or any S-OFF nand unlocked Android device this mod is for you. :)

If you can't read, can't understand the OP or it's instructions, & can't follow specific instructions THIS IS NOT, I'll repeat NOT THE MOD FOR YOU!!! :rolleyes:

Thanks Calkulin for making this a walk in the park on the EVO :D

Sent from one of my rooted devices on Tapatalk Pro
[EVO 4G Android Development] drtwrk127:
Welcome to the "dark side" :p
[EVO 4G Android Development] ngh55:
I am going to take a dive also
[EVO 4G Android Development] JDM Civic EG8:
I took the dive it was worth it. I even unpartition my SD card so I wouldn't have to deal with a2sd.

Sent From My Verizon PRL Powered Evo 4G!
[EVO 4G Android Development] jayshocka:
I spent some time learning ADB just so i would feel comfortable applying this MOD. I took the plunge and I love it! But I had to reformat my hard drive at home and for the life of me I cannot get ADB working again... My question is if I needed to remove this would un-rooting an re-rooting work to disable this Mod? any advice is appreciated. I have tried extensively to get ADB working and nothing.
[EVO 4G Android Development] tempe38:
You shouldn't need to unroot, the uninstall directions can be done in recovery without adb.
[EVO 4G Android Development] achami85:
Has anyone tried this on the express ROM by od?
[EVO 4G Android Development] jamieg71:
Just reflash your favorite recovery, be sure to do a thorough wipe before and after. There is a wonderful format zip in the op, use it after you manually wipe both times.
[EVO 4G Android Development] kpost:
I normally use this mod and have been for awhile. I just switched to the express ROM (and loving it so far) after install I used the app freespace and the express ROM is huge and only has 20 of the 350 left on stock system, so there would not be any saving there. The cache is the only savings you would get. In all honestly I love this mod but with the express ROM it just seems unnecessary. If you go to a smaller ROM do try this mod. Just be very careful, every ROM and kernel flash you need to remember to use the mod. Also your mtd text file always check your numbers before flashing just incase ;-)
[EVO 4G Android Development] officiallytook:
Been dying to test this out if any one could help with a better understanding or walk through video tutorial sumthing lol not trying to screw things up I know... It would be appreciated pm thread email... Have a nice day

Sent from my

EVO4G Latest everything

expressed out(4eva)

With a stock kernel(for now)
[EVO 4G Android Development] officiallytook:
file://localhost/mnt/sdcard/download/v159-beta1_README.html

With this latest version

Sent from my

EVO4G Latest everything

expressed out(4eva)

With a stock kernel(for now)
[EVO 4G Android Development] omair2005:
can we flash radio without these steps? i'm already on mtd cm7 but just wanted to update the radio.. tia
[EVO 4G Android Development] drtwrk127:
Yes, you can update your radio without applying this MOD. Enjoy :)
[EVO 4G Android Development] xfullmetal17:
Anyone know if this works on ICS? I keep getting random reboots with it applied, wondering if maybe it's the filesystem trying to read the wrong area.
[EVO 4G Android Development] oodork123:
Didnt have any problems before, but I'm afraid to do it again lol.
[EVO 4G Android Development] Psyki:
Works for me on AOKP, Decks ICS, and Team DIRT CM9 roms. Here are my settings:

AOKP: mtd 185 5

CM9: mtd 167 5

Deck (as of PB18, probably still the same but YMMV): mtd 225 115

Each ROM allows about 5-6mb free space so I can move my preferred launcher to /system/app and not screw things up.

Edit: I only got lots of random reboots on AOKP, whether I used Firerat or not. Deck's ROM was more stable, but CM9 is even more so. IMHO CM9 is where it's at for the EVO 4G at the moment.

Edit2: Here is the link I used to create these settings. It walks you through the entire setup procedure. Read it through in its entirety, and read it CAREFULLY. Just follow the directions and it works fine. http://themikmik.com/showthread.php?8925-A-simple-guide-to-setting-up-firerat
[EVO 4G Android Development] xfullmetal17:
okay, I'm trying to uninstall but I'm confused. Shouldn't FORMAT_ALL.zip be flashed *before* restoring the original mount points? (I guess I'd still do it again after for good measure, but still)
[EVO 4G Android Development] jamieg71:
Go ahead and flash before and after. Certainly wont hurt anything.
[EVO 4G Android Development] jrollercoasters:
Everytime I flash this my /system gets stuck on r/w instead of r/o no matter how many times I change it, it always goes back on reboot, any fix for this ?
[EVO 4G Android Development] dcharleyultra:
What do you mean by it gets stuck?
[EVO 4G Android Development] jrollercoasters:
Like the mount changes on reboot.. and I have quite a few tweaks in that section that need r/o on because it won't work with r/w
[EVO 4G Android Development] dcharleyultra:
I'm brand spanking new to firerat, but just trying to help...

What ROM and what are your mntpartmap.txt settings?
[EVO 4G Android Development] jrollercoasters:
Reloaded and the one that comes in the op
[EVO 4G Android Development] younginferlife:
Not sure if this has been asked yet, or if its even possible. But after applying these settings, can it be possible to direct some the new memory as "virtual memory", Kinda like what windows does? Im using MIUI and even when the phone is idle, a good 60% of my ram is full. Mostly by the system cache.
[EVO 4G Android Development] Tempest_Inc:
Why would you want to encourage writes to your internal system?
[EVO 4G Android Development] younginferlife:
Writes are already being done on the system, would be nicer to have a larger area foe those writes.
[EVO 4G Android Development] teknikalcrysis:
Work on Galaxay s4

will this mod work on the galaxy s4
[EVO 4G Android Development] jlmancuso:
Not sure but it has been modded to work on other phones but why would you want to. The s4 has plenty of internal storage to begin with.
[EVO 4G Android Development] teknikalcrysis:
I have the 16gb version which by default doesn't give me the full 16GB more like 8 or less...trying or wanting to gain space that I could utilize instead of having wasted unusable space
[EVO 4G Android Development] jamieg71:
You could make it work but had better have a good understanding of your partition allocations.

Sent from my EVO
[EVO 4G Android Development] bigbiff:
I am reading the posted reference link and do not see any way to create more partitions within the new space. Any ideas?

EDIT:

I looked at the script and it doesn't support creating partitions beyond system data and cache.
[EVO 4G Android Development] lostnfound53:
Has anyone tried this on the Evo yet? I had it running on my old Hero and it worked great! Eliminated the need to run a2sd. I was just wondering how stable the ROM is.

Also, a question - does this write a custom recovery image? I'm using Amon Ra 1.6 right now - what happens to that recovery image?
[EVO 4G Android Development] Calkulin:
There's not really a risk of bricking unless you don't know to use fastboot to reflash the recovery if you want to revert
[EVO 4G Android Development] Virus:
Worked like a charm as always awesome work CALK and THANKS!!!!
[EVO 4G Android Development] lostnfound53:
I can confirm that this works! I went from 212MB to 352MB. Thanks Calkulin!
[EVO 4G Android Development] TMartin:
Great mod....Thanks for bring it to our Evo's Calk.

EDIT: If most of us ROM builders can switch over to updater-scripts, shouldn't we be able to do this in one flash??
[EVO 4G Android Development] long2know:
Great mod!

This worked like a charm with EViO 1.62 running Darktremor A2SD.

I used 225/50 and have the following:

/system is now 201mb used out of 225mb

/cache is 1.26mb used out of 50mb

/data is 383mb used out of 663mb ... awesome!

Previously, I had moved dalvik-cache to /cache, but resizing the partitions recovers a lot more unused space.

Thanks Calkulin!
[EVO 4G Android Development] Tiffany84:
Can somebody tell me what I need to type in adb to see how much system and cache I have used so I know if the preset amounts will be enough? I've done it on the hero but I can't remember what it is. Thanks.
[EVO 4G Android Development] rmc.eagle:
You can use Spare Parts, Data Storage Options to show used/total sizes!

cheers

____________________________________

HTC Evo 4G • Calkulin's EViO 2 v1.6.2 . . sent via Tapatalk
[EVO 4G Android Development] aamikam:
exactly what im thinking...

but i guess it depends on the fact that we boot twice and flash twice... so im not sure how that would work since we flash again after we reboot.

edit:

so i guess i didnt read it fully.

pleas e correct me if im wrong, but i would only have to patch the recovery once and after that i could basically add it in.
[EVO 4G Android Development] TMartin:
You can put the first script before your ROM and kernel get loaded in the updater-script then put the second after your kernel gets installed. We wouldn't be able to use koush's any kernel tho. Not sure but it would be worth a try for someone that knows a little about updater-scripts.

EDIT: Just saw your edit....That is correct but it would be nice to just be able to include all of it in one update.zip
[EVO 4G Android Development] aamikam:
right... but u would have to reboot into the patched recovery... so i think that the only issue with having it go in one shot.

but, i guess maybe we can get a version of an already patched recovery img... or am i not following whats going on here correctly.

edit:

i took a quick look into the original dev thread... there is a way to patch the update zip script so that we wont have to flash the boot patch.... but again, i think recovery would need to be a ptched one before we even go there.
[EVO 4G Android Development] TMartin:
Sorry...you are correct. If we patch the recovery, does nandroid backup recovery properly??
[EVO 4G Android Development] aamikam:
according to the instructions it should... otherwise why bother doing a nand backup.
[EVO 4G Android Development] TMartin:
Well if that is true, wouldn't recovering your backup wipe out the initial patch that you flash??
[EVO 4G Android Development] aamikam:
mmm... u right... nand does backup recovery also... something is strange here.

maybe we would need to follow all steps all the time if we use a nand backup... but if we flash the rom over it would stick.
[EVO 4G Android Development] TMartin:
Something interesting from the original thread:
[EVO 4G Android Development] aamikam:
Thanks... I actually saw it and said it exists, if u look at my edit on top of the page...

But I'm still not completely following it cuz it seems we do need to patch the recovery img cuz that's what's actually makes sure it will flash it right and the patch to the boot img makes sure it fits... something like that anyways.

Anyways I'm sure we'll know more within a day or two... I just hope no one will mess up thier phone in the proccess.
[EVO 4G Android Development] TMartin:
Hope Calkulin chimes in. He should have all the answers for us.
[EVO 4G Android Development] Virus:
u have to edit your boot.img so it includes the fix ;)
[EVO 4G Android Development] aamikam:
I get that part... the whole deal with patching the recovery is what leaves me wondering if I can actually add it to the rom without asking users to patch their recovery to get it working.
[EVO 4G Android Development] Tiffany84:
I don't have that option in spare parts.
[EVO 4G Android Development] Vandelay007:
I had this on my hero....always have to flash the boot zip after every nandroid restore or kernel / Rom flash....

On the hero it made a significant difference...on the evo we already have a ton of space....so idk if I would recommend this unless you actually will use the space....considering you get no other benefit.....

But on the other hand, it was my favorite mod on the hero!

Sent from my froyo using the xda app
[EVO 4G Android Development] freeza:
Works like a charm on netarchy 4.2.1 and fresh 3.4.0.1 :)

Thanks Calkulin!
[EVO 4G Android Development] pastert33:
Has anyone tried this with CM?
[EVO 4G Android Development] bigbiff:
Just wanted to let you guys know this is what you have to do if you change mtdpartmap.txt during testing:

1. Change mtdpartmap.txt to new values

2. Nandroid backup again if necessary.

3. Reboot into recovery

4. Flash calkulins format all zip

5. Flash the recovery mod zip

6. Nandroid restore

7. Flash boot mod zip

You have to format all the partitions for the recovery mod zip to work and then recovery can know the partition format to restore nandroids. Flashing boot mod zip is only necessary if your nandroid boot.img doesn't already have the mod flashed.
[EVO 4G Android Development] soundwavedj:
Will this work on sense hd roms as well?
[EVO 4G Android Development] bigbiff:
This should work for anything on the evo since all it does it resize partitions. As long as your rom fits into the space...
[EVO 4G Android Development] mikeyfg:
I did it but now i cannot get anything to download from the market it starts to download and stops almost instantly.... Any ideas?
[EVO 4G Android Development] mjohnson4580:
can we use a pc36img.zip to flash custom recovery back to normal
[EVO 4G Android Development] Firerat:
what ROM are you using?

None FroYo ROMs use /cache as tempspace for d/l apps

a script is included

/system/etc/init.d/06BindCache

this script remounts /cache as a bind mount of

/data/cache

if your ROM doesn't run scripts in /system/etc/init.d and /cache is very small it would be the reason for the failed d/ls

confirm if the script is running with

su

busybox df -h

you will see /dev/cache if the script ran

if not you have options

manually run the script

su
sh /system/etc/init.d/06BindCache

resize with a larger /cache ( don't forget to do full wipe )

wait for me to get round to patching boot.img's init.rc to support 06BindCache script *

* actually I did do it already, but I undid it

https://github.com/Firerat/CustomMTD/commit/d09f2b6f115679375d5626caa686fbc5c16f1d9c

'clean' * that commit is messy ) function is

runparts ()
{
# hack runparts into ramdisk
# wish I didn't have to do this,
if [ "$boot" != "boot" ];
then
return
fi
if [ "`ls /system/etc/init.d/*user*;echo $?`" = "0" ];
then
return
fi

if [ -e "/system/xbin/busybox" -o -e "/system/xbin/xbin.sqf" ];
then
mkdir rd
cd rd
zcat ../${boot}.img-ramdisk.gz |cpio -i
if [ "`busybox egrep -qi \"service\ sysinit|run-parts\" init.rc;echo $?`" != "0" ];
then
sed '/class_start default/ i \ \ \ \ # start runparts script\n\ \ \ \ \/system\/bin\/sh \/system/runparts.sh\n' -i init.rc
find * | cpio -o -H newc | gzip > ../${boot}.img-ramdisk.gz
fi
cd ../
rm -r rd
cat > /dev/runparts.sh << "EOF"
export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
if [ -e "/system/xbin/logwrapper" ];
then
/system/xbin/logwrapper /system/xbin/busybox echo -e "====================================================================\nShoehorned run-parts\nPlease Pester the ROM Dev to include run-parts in the ROM by default\n===================================================================="
/system/xbin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
else
/system/xbin/busybox run-parts /system/etc/init.d
fi
EOF
install -m 000 -o 0 -g 0 /dev/runparts.sh /system/runparts.sh
fi
return
}
[EVO 4G Android Development] bigbiff:
I would think so since it is flashing the recovery partition.
[EVO 4G Android Development] Firerat:
change the mtdpartmap.txt's mtd line to

mtd 0

flash the recovery patcher, and the wipe zip

reboot and you are back to stock

edit

wipe zip = FORMAT_ALL.zip
[EVO 4G Android Development] Virus:
after doing this I can't flash a rom i get symlink /system/bin/dumpcrash line failure on every rom i try and not just mine I have tried to go back to stock the the PC36IMG then flashing the 30.3 ruu then running unrevoked to get root and recovery back and still cant flash a single rom any ideas??
[EVO 4G Android Development] eniamg02:
Anybody wanna comment on this?i would like to try this but not if I will be stuck on a single rom.
[EVO 4G Android Development] TMartin:
I have personally been using this since Calk posted it. I've flashed several of my own ROMs and many stock & custom kernels since then, without having a single issue. So I'm not sure what to tell either of you.

Posted from my HTC Evo 4G on Tapatalk Pro!
[EVO 4G Android Development] eniamg02:
Thank you might be just an isolated issue.
[EVO 4G Android Development] barry.bishop72:
quick question, just in case I want to uninstall, in step 2 of uninstall and it says select fastboot USB, is that the same as HBOOT USB?
[EVO 4G Android Development] Vandelay007:
I used to use it on my hero and found the best way to solve flashing issues was to start all over with the mod ...after you get it right you will be able to flash your heart away....you should never be stuck to one rom...

However, I have not tried this on the evo, as it has plenty of space, imo....

Sent from my froyo using the xda app
[EVO 4G Android Development] bigbiff:
Hi, just wanted to let you guys know I had trouble flashing the new wimax firmware from Calk with this mod. I got around it by renaming the wimax.img file as PC36IMG.zip and flashing through hboot. HTH someone.
[EVO 4G Android Development] sao1180:
hey wondering if someone can confirm ....not using fastboot ...i seem to go back to stock by simply flashing new recovery with rom manager ....use it mostly but periodically make a ra backup for the wimax backup......no problems i see just forgot to use boot flash once .....tried flashing back and forth a couple times without any problems ......just wondering if i might be breaking sumn and learning about it the

hard way ......
[EVO 4G Android Development] gqukyo:
Same. I had this mod on my Hero. I was going to do this to my Evo but I decided against it since Apps2sd works fine if I needed the space. I always wondered if it may help battery life since if ur not using apps2sd for the apps u use, the sd reader won't be reading and writing as often. Though even then it may not have that much of an impact... anyone know for sure? :p
[EVO 4G Android Development] mjohnson4580:
When u use the txt on the sd card to customize the sizes is it better to use even or odd sizes. What i mean is ex(180-100) or (175-100)
[EVO 4G Android Development] gqukyo:
Don't think it really matters as long as you leave about 10mb of space available for the rom.
[EVO 4G Android Development] Vandelay007:
It doesn't matter....the most important thing is leaving enough space for your rom to load....then adjust your mtdpartmat accordingly after removing any unwanted apps

Sent from my froyo using the xda app
[EVO 4G Android Development] Dozenboy0012:
this is great but if you have this you gotta take it off to update all the radios and stuff I was wondering why I couldnt update then i took this off but ill be putting it back its very great
[EVO 4G Android Development] bigbiff:
You can flash the radios through hboot as PC36IMG.zip without having to remove the firerat mod. My problem was the new sense roms are bigger, and I had to add another 20 MBs of space.
[EVO 4G Android Development] Dan330:
on my hero.. this was my most important MOD... it made my Hero ....a good device.

but with Apps2SD on Froyo... and 16GB class 6 card...

I dont see this is needed. Maybe once apps are doubled in size.. I might need it...

but hopefully... I will be on the next phone with 50x more memory. ;)
[EVO 4G Android Development] jch8828:
Go to market download an app called "Stats of", it will tell you a lot about your phone including those numbers.
[EVO 4G Android Development] Vandelay007:
+1 I couldn't agree more....totally awesome on the hero....not needed as much on the evo....

Sent from my rooted evo using the xda app
[EVO 4G Android Development] Vandelay007:
Duplicate ...
[EVO 4G Android Development] mikevillarroel:
I have installed everyrhing I want and still have more than 300 megas to spare, thanks compadre!
[EVO 4G Android Development] snovvman:
To revert, one would need to use Fastboot, does this mean that HBoot .76 is required?

Thanks.

Edit: I don't have an option to see partition size in Spare Parts either. What is/are console commands that would allow one to view all the partition sizes?

Thanks.
[EVO 4G Android Development] Mich2Ga:
Awesome

100% works. Thanks, appreciate the lesson
[EVO 4G Android Development] long2know:
Just an FYI -

I had to uninstall the CustomMTD and put an unmodified RA recovery image back onto my phone in order to update my radio/wimax/pri/nv.

I'm not sure why this is the case, but it was a relatively painless process to uninstall and then reinstall the MOD and then restore my phone w/ my nandroid backup.
[EVO 4G Android Development] Evobabe:
it seems that my phone is running a bit faster
[EVO 4G Android Development] Firerat:
probably placebo effect , unless you were using a2sdext with a slow sdcard
[EVO 4G Android Development] tonwarr.the.incredible:
So, what you're saying is even with more free mem, there won't be a noticeable difference in speed or loading times?
[EVO 4G Android Development] Firerat:
has nothing to do with memory

storage space .. more storage space !
[EVO 4G Android Development] oreoOozZz:
Firerat and Calkulin FTW, this is epic. Great work guys.
[EVO 4G Android Development] tonwarr.the.incredible:
Lol...okay, I get it! I need to stop asking questions and start doing some reading. :)
[EVO 4G Android Development] bigbiff:
Just tried firerat on amon recovery 2.1.1. Hung on backing up the /cache partition. I wasn't able to enumerate /cache with ls either. Any ideas?
[EVO 4G Android Development] verse187:
Thanks will try has anybody done a benchmark just if it increases performance
[EVO 4G Android Development] mitchellvii:
So far, this isn't working with the latest cm7 builds - bootloops.
[EVO 4G Android Development] Firerat:
bootloop is nothing to do with customMTD ( unless YOU set silly sizes )

all it does is resize the partitions, thats it

I fail to understand why a lot of people fail to understand what customMTD does.

try the CM7 without customMTD, I bet it bootloops

Edit

and I hope your not doing something very stupid like flashing gapps for cm6, because that will cause a bootloop and you will feel very stupid
[EVO 4G Android Development] GIGZ1971:
Thanks

Tnk you to both Calkulin and Firerat for this, now i can fit more apps on phone!:D
[EVO 4G Android Development] -viperboy-:
^ LOL

While you're here sir, how come to update a radio I needed to undo the customMTD? It seemed to not fully flash and I tried numerous times and I had to go back to a regular CW recovery, flash the radio, let it boot, flash the MTD recovery mod, wipe all, flash rom, flash kernel, and than flash MTD boot. That's the only way I could get my baseband to upgrade. Others have reported this as well. Not really a big deal, just wondered if you knew why or anyway to not have to go through that again. Thanks!
[EVO 4G Android Development] Firerat:
because part of the process with flashing radio/hboot/wimax via recovery involves writing to /cache

you have to remove customMTD because the partitions won't match up to what hboot expects

you can avoid removing customMTD if you flash via fastboot ( do an erase system -w first )

but its easy to remove customMTD and add it again