yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] oostah:
i have started all over agian lol.with 2.1 sense rom. mtd 182 4. this has worked great on my phone before. im trying to get it on my wifes hero. everything went good this time no errors. phone shows interal phone storage available 121mb thats with apps installed. and in applications shows (153m/274m) 55%. if i try to download any thing or update from the market i get insufficient storage. what am i doing wrong? every thing went great this time.:confused:
[Hero CDMA Android Development] oostah:
mtd set to 182 4 for 2.1 sense.

i get

$ export PATH=/data/local/bin:$PATH

$busybox df -h

Filesystem size used available Used% Mounted

on

tmpfs 95.2m 0 95.2m 0% /dev

tmpfs 4.0m 0 4.0m 0% /sqlite_stmt_journals

/dev/block/mtdblock3 182.0m 171.0m 11.0m 94% /system

/dev/block/mtdblock5 274.1m 151.8m 122.4m 55% /data

/dev/block/mtdblock4 4.0m 1.1m 2.9m 28% /cache

/dev/block/void/179:1

3.2G 2.7G 481.2m 85% /sdcard

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

sh: Can't open /system/etc/init.d/06BindCache

if this helps?

update tryed to set mtd 173 8 still cant download insignificant memory
[Hero CDMA Android Development] oostah:
I don't no how or why. The cachemate for root users seems to be why I couldn't download apps. UnInstalled it every thing is good now. I'm going to look to see if this will work for the buzz wildfire. Have to that need it but would it hurt of they get froyo update? Thanks again I have used this on to hero's now.
[Hero CDMA Android Development] Dan330:
how do you guys.. do 768mhz???

I have been runing this ROM on 9.7 and 9.8 with Firerat. It has been doing great!!!! I have not tried 9.9 yet.

I use "overclock widget" and can only get my cpu to do 710mhz. If I go higher.. it locks up. I have to do a battery pull to get the phone to restart to 691mhz.

what am I messing? Does it require that I use "setcpu" app for it to work???

thanks.
[Hero CDMA Android Development] 120409:
i have aosp mod?
[Hero CDMA Android Development] cordell12:
Step 9 if you are using clockwork just click advanced and reboot recovery and then continue this mod. It works I do it all the time OR pull battery, reinsert, and hold home and power to reboot recovery :)
[Hero CDMA Android Development] unCoRrUpTeD:
Some phones can only go up to 691Mhz, some can get to 710Mhz and some can go even higher. It just depends on your board. Thats why most are preset to 691Mhz,
[Hero CDMA Android Development] cp0020:
i just tried this today and i installed 3 apps. atleast 2 mb each. and im getting the insufficient storage aswell. using zen-aria-alpha5
[Hero CDMA Android Development] xxxicu812:
sorry for the noob question but how do you create the txt. file? i keep trying but its always at default of 90mb which goes to the htc white screen and stays there forever...
[Hero CDMA Android Development] too.many.imails@gmail.com:
lol. so plug your phone into your computer, click on the message that pops up in your notification bar to connect for mass storage... when its connected to the computer, a window should pop up asking what to do [view files/folders], or just open up my computer and open the Removable Disk, mine being E:\ for example... you should be in your SDcard now, in the root directory of it, right click on your computer, create new file, name it, then put in the figures... when you click the X, it will ask you to save, yes, done. bam.

:) anymore problems, just ask...
[Hero CDMA Android Development] unCoRrUpTeD:
An easier way, which was in Firerat's original post is:

adb shell echo X Y > /sdcard/mtdpartmap.txt

where X is system size and Y is cache size

Do this while booted into the Android and then reboot to recovery and proceed with flashing the files.
[Hero CDMA Android Development] too.many.imails@gmail.com:
quick question uncorrupted, if we have our system, with FR already installed and running, what if i want to change those numbers, make them lower, can i do that, and just reflash the FR-Boot? or do i have to go through the whole scenerio again? lol
[Hero CDMA Android Development] Vandelay007:
If you are changing your numbers you have to go through the whole process all over again...but remember, you can restore a nandroid in place of flashing your Rom....

Sent from my froyo using the xda app
[Hero CDMA Android Development] too.many.imails@gmail.com:
yea im familiar with most of the process, i've been using it for the last month, maybe two, just haven't changed the numbers since i got it working with CM, which was bigger than AOSP lol... im at 110 4 right now, and i could go lower, but im not worrying about it right now :)

thanks guys :D
[Hero CDMA Android Development] Vandelay007:
If you use Rom manager it shows how much space you are using...if you thumb over to /system it will show you right at the top of the screen how much your system is using....and you can adjust accordingly....if it says you are using 100 you can safely set it to 102...also, if you go to /system/app you can remove unwanted bloat....which will naturally free up more space....I've had mine as low as 90 on my hero...

Sent from my froyo using the xda app
[Hero CDMA Android Development] oostah:
If I change my mtd do I need to flash recovery then nan then boot img. Or just flash boot img after changing the mtd
[Hero CDMA Android Development] unCoRrUpTeD:
Correct me if I'm wrong, but you will have to flash recovery to setup the partitions, restore your rom since the partition locations have changed and it needs to be placed in the right location, and then flash the modified boot.img.
[Hero CDMA Android Development] SweepinJR:
I'm having a problem with this...first let me just say I ended up with like over 300mb of internal storage with cm6.1rc1

But, today I noticed that I cannot flash the Sprint VVM zip. In recovery it stalls at "copying files..." and never errors, just hangs.

Could this be due to my partition sizes?
[Hero CDMA Android Development] unCoRrUpTeD:
I wouldn't think so, but if you flashed s new recovery the recovery would have to be setup again. Why don't you unzip the zip and use a file manager to install it.
[Hero CDMA Android Development] SweepinJR:
Well, the phone's been a bit strange lately. Clockwork recovery was flashed but I could not get booted into it no matter what, so I flashed back to RA Recovery, which boots fine...not sure what the deal is there...

I just tried it and thought I figured out why it didn't work. It errored and told me it was blocked...that little checkbox in applications settings for non-market apps wasn't checked.

Actually, with it checked I still got an error, but it was a general (application not installed) error
[Hero CDMA Android Development] windtrader:
is FireRatMod unique to Hero?

This thread is posted under Hero CDMA but can it be used on other Android devices such as the new LG Optimus S? Are there tweaks necessary to get it to run on other platforms?
[Hero CDMA Android Development] Firerat:
if you change sizes, you must wipe

if you don't stange things will happen

if your flashing a rom that needs an x mb system, then system must be at least x mb

it would probably work, can't say for sure

use at least v1.5.7b,

has much better support for other devices
[Hero CDMA Android Development] oostah:
Everything went with out errors but I can't download from market it says insignificant storage! I can install from SD card have installed 15 apps from SD. Why is this.
[Hero CDMA Android Development] deskweed:
I tried this and now I am hanging on the white htc screen. I have a rooted cm6 hero. When I try to go into recovery mode it will bring me to a white screen that says clearstorage delete all usre data yes or no. I think i may be screwed on this one. Any suggestions???
[Hero CDMA Android Development] deskweed:
I tried this and now my phone will only load the white HTC page. When I try to restart recovery it shows a strange white screen that asks me to delete all user data. If anybody knows how I can fix this please let me know it is a hero rooted running CM6. Please help this time of year I don't have the extra funds for a new phone.
[Hero CDMA Android Development] oostah:


When power off hold power volume down should get the white screen with recovery in blue I think should say home under it hit the home key will take you into recovery
[Hero CDMA Android Development] deskweed:
that worked but what do i do from there?

Sorry for being such a noob.
[Hero CDMA Android Development] oostah:
Do you have a backup in you recovery have ever flashed Rom?
[Hero CDMA Android Development] deskweed:
OK everything works now. I reflashed cm6 And it is good. But now my GAPPS arent showing up in App Drawer. Any Suggestions on that.
[Hero CDMA Android Development] oostah:
With cm you have to flash the GAPS. Zip after the Rom
[Hero CDMA Android Development] deskweed:
i did that. Also my home key isnt working.
[Hero CDMA Android Development] deskweed:
Is there a way I can wipe my phone and just reinstall the whole cm6 and gapps from scratch
[Hero CDMA Android Development] Vandelay007:
You can go into recovery and wipe system / cache / dalvik and start over, but if that doesn't fix your problem you could possibly need to load the RUU and root your phone again...

Sent from my froyo using the xda app
[Hero CDMA Android Development] oostah:
Ok I'm really confused some apps download from the market and some say insufficient memory. What's going on with this lol.
[Hero CDMA Android Development] tavocabe:
Desire

is this mod suposed to work in an htc desire? im using defrost 6.1
[Hero CDMA Android Development] Foo_Blyat:
Ask 10 more times and it'll fix itself
[Hero CDMA Android Development] oostah:
I have put this on three different hero's and have different out comes. just trying to get this one worked out. Some of the fixes that worked on the last one are not working on this one.
[Hero CDMA Android Development] Firerat:
stop using winziped roms,

post a logcat ( pastebin.com link preferred )

that insufficient storage error flag gets used for all kinds of stuff not related to storage

example

http://pastebin.com/TDPcwPUU

--
services/java/com/android/server/PackageManagerService.java-6265- if (retCode != 0) {
services/java/com/android/server/PackageManagerService.java-6266- Slog.e(TAG, "Couldn't set new package file permissions for " +
services/java/com/android/server/PackageManagerService.java-6267- newPackage.mPath
services/java/com/android/server/PackageManagerService.java-6268- + ". The return code was: " + retCode);
services/java/com/android/server/PackageManagerService.java-6269- // TODO Define new internal error
services/java/com/android/server/PackageManagerService.java:6270: return PackageManager.INSTALL_FAILED_INSUFFICIENT_STORAGE;
services/java/com/android/server/PackageManagerService.java-6271- }
services/java/com/android/server/PackageManagerService.java-6272- return PackageManager.INSTALL_SUCCEEDED;
--
[Hero CDMA Android Development] aznprelude:
I have no idea whats going on. i had 20megs left on my internal storage and after this mod i have only 3megs. what the hell?

im running a sense rom with app2sd

settings in mtdpartmap.txt is "mtd 182 10"

first i wiped, flashed recovery,wiped again, reboot, nandroid restored, flashed boot, and reboot..

i did this many times. where did i go wrong?

PLEASE HELP! i would love not to use app2sd.
[Hero CDMA Android Development] Firerat:
su
ls -l /data/ /system/sd
du -hcs /data/*
du -hcs /system/sd/*
busybox df -h

give me the output of all that

LS -L but lowercase !!
[Hero CDMA Android Development] aznprelude:
(ls -l /data/ /system/sd)

sh-3.2# ls -l /data/ /system/sd

ls -l /data/ /system/sd

lrwxrwxrwx root root 2010-12-08 05:09 app-private -> /system/sd

/app-private

lrwxrwxrwx root root 2010-12-08 05:09 app -> /system/sd/app

-rw-r--r-- root root 2987 2010-12-08 05:09 dta2sd.log

-rw-r--r-- root root 2987 2010-12-08 05:09 dta2sd.lg1

-rw-r--r-- root root 2987 2010-12-08 05:09 dta2sd.lg2

drwx------ system system 2010-12-08 05:10 backup

-rw-rw-rw- media system 2 2010-12-08 05:12 pvcodec.txt

drwxr-xr-x root root 2008-08-01 07:00 jit

-rw-rw-rw- root root 108 2010-12-07 01:46 reboot.chk

-rw-rw-rw- root root 376 2010-12-02 22:35 dtinstall.log

drwxrwxr-x system system 2010-12-08 05:11 system

drwxrwx--x system system 2010-12-02 22:36 anr

drwx------ root root 2010-12-08 05:11 agent

drwxrwxrwx bluetooth bluetooth 2010-12-08 05:10 btips

drwxrwx--x system system 2010-12-08 05:10 dalvik-cache

lrwxrwxrwx root root 2010-12-08 05:03 drm -> /data/local

drwx------ root root 2010-12-08 05:09 property

drwxrwx--x system system 2010-12-02 22:35 data

drwxrwx--x shell shell 2010-12-02 22:35 local

drwxrwxrwx wimax wimax 2010-12-02 22:35 wimax

drwxrwx--t system misc 2010-12-08 05:25 misc

drwxr-x--- root log 2010-12-02 22:35 dontpanic

-rw-rw-rw- media system 14 2010-12-03 13:00 StreamingPacketLost.txt

drwxrwx--- root root 2010-12-02 22:35 lost+found

drwxrwxrwx root root 2010-12-08 05:05 app

drwxrwxrwx root root 2010-12-08 05:05 app-private

-rw-rw-rw- root root 16 2010-12-04 23:46 temporary.txt

(du -hcs /data/*)

512 /data/StreamingPacketLost

17.0K /data/agent

172.0K /data/anr

512 /data/app

512 /data/app-private

6.5K /data/backup

6.0K /data/btips

62.6M /data/dalvik-cache

3.2M /data/data

2.0K /data/dontpanic

512 /data/drm

3.0K /data/dta2sd.lg1

3.0K /data/dta2sd.lg2

3.0K /data/dta2sd.log

512 /data/dtinstall.log

793.5K /data/jit

5.8M /data/local

1.2M /data/lost+found

67.5K /data/misc

5.0K /data/property

512 /data/pvcodec.txt

512 /data/reboot.chk

335.5K /data/system

4.0K /data/wimax

109.6M total

(du -hcs /system/sd/*)

123.4M /system/sd/app

2.7M /system/sd/app-private

1.0K /system/sd/temporary.txt

126.1M total

sh-3.2#

(busybox df -h[/CODE])

busybox df -h[/code]

df: invalid option -- '['

BusyBox v1.17.2 (2010-09-17 21:51:54 IST) multi-call binary.

Usage: df [-Pkmhai] [-B SIZE] [FILESYSTEM]...

Print filesystem usage statistics

Options:

-P POSIX output format

-k 1024-byte blocks (default)

-m 1M-byte blocks

-h Human readable (e.g. 1K 243M 2G)

-a Show all filesystems

-i Inodes

-B SIZE Blocksize
[Hero CDMA Android Development] aznprelude:
LOL... been rooted from day one.. yea i really dont know whats up with SU but it works.. lol updated the post .. had to use ADB...
[Hero CDMA Android Development] Firerat:
and the

busybox df -h

??????

I will get bored
[Hero CDMA Android Development] aznprelude:
sh-3.2# busybox df -h

busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 95.5M 0 95.5M 0% /dev

tmpfs 4.0M 4.0K 4.0M 0% /sqlite_stmt_journals

/dev/block/mtdblock3 170.0M 132.5M 37.5M 78% /system

/dev/block/mtdblock5 160.1M 113.9M 3.2M 99% /data

/dev/block/mtdblock4 130.0M 18.1M 111.9M 14% /cache

/dev/block/mmcblk0p2 457.2M 134.1M 298.7M 31% /system/sd

/dev/block//vold/179:1

3.0G 2.1G 843.7M 72% /sdcard
[Hero CDMA Android Development] aznprelude:
sh-3.2# busybox df -h

busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 95.5M 0 95.5M 0% /dev

tmpfs 4.0M 4.0K 4.0M 0% /sqlite_stmt_journals

/dev/block/mtdblock3 170.0M 132.5M 37.5M 78% /system

/dev/block/mtdblock5 160.1M 156.8M 3.2M 99% /data

/dev/block/mtdblock4 130.0M 18.1M 111.9M 14% /cache

/dev/block/mmcblk0p2 457.2M 134.1M 298.7M 31% /system/sd

/dev/block//vold/179:1

3.0G 2.1G 843.7M 72% /sdcard
[Hero CDMA Android Development] Firerat:
which is stock

you did something wrong

like, didn't flash recovery or boot patcher

or your mtdpartmap.txt didn't exist or is not correct format

mtd 182 10

but why 182 when system is using 132.5?

135 would make much more sense

honestly, I really think you should rethink the whole root thing and go back to a stock rom
[Hero CDMA Android Development] aznprelude:
at 180 it would not get pass the HTC screen ???? dame. just did and nan restore all is good though. just dident like the ap2sd thing.. but just flashed Darktremor Apps2SD and now i have 110m free on internal.. thank guy
[Hero CDMA Android Development] Firerat:
lol, you still fail to understand

why did you even set system at 180 when it was only using 132.5?
[Hero CDMA Android Development] aznprelude:
Ok... let me reword it. when I set the mtd. Anything under 182 on sys or anything under 10 on cache.. I was not able to get pass the HTC screen

Everything is still stock... and the only thing that changed each time I flashed this mode was the internal storage going down to 3m/6m of free space ...
[Hero CDMA Android Development] unCoRrUpTeD:
When changing the sizes you have to flash the recovery and then flash or restore rom and flash the boot.zip. Try doing 140 25. I had a problem with it boot looping because it was failing to cache everything on bootup.
[Hero CDMA Android Development] creata.physics:
So this mod specifically increases the internal storage memory to have more space on the device itself. My question is does this improve the phones performance as well? Just because it has more internal storage memory doesn't always mean it'll be faster, just more space, can anybody enlighten me?
[Hero CDMA Android Development] unCoRrUpTeD:
1. It creates more space for more apps.

2. It eliminates the need for a2sd

When running apps from sd the apps run slower

3. Why not use wasted space from the system and cache patrtitions
[Hero CDMA Android Development] creata.physics:
Thank you for this. Of course I will be doing this mod, I was just wanting to see if there were any records of speed improvement. I understand that the apps will be faster when loading from internal memory instead of external, so in a sense, yes, there is a performance increase while using applications. When I get home from work tonight I'll hopefully be able to get this done without any issues. Once again, thanks.
[Hero CDMA Android Development] aznprelude:
I'll.try when I get home... thanks
[Hero CDMA Android Development] shilent:
Update: When using ClockworkMod to to restore a nandroid, FR-boot needs to be flashed. When using RA recovery, I didn't need to flash FR-boot, I'm guessing it's because Clockwork fully wipes everything.
[Hero CDMA Android Development] huffman6977:
now that i used this i can't rec texts. i can send them but can't rec.
[Hero CDMA Android Development] oostah:


I have been bad sick so I haven't been able to mess with it for a couple days. But my dum ass had 2 markets an my phone. I noticed it when I was on appbrain that there was a 2nd market. I'm sorry for any inconvenience. GREAT WORK!!!
[Hero CDMA Android Development] aznprelude:
Thanks.... after setting mtd 140 25/30/35/40

Then flash recovery ,wipe,reboot .restore,flash boot

Still nothing ! Then time my internal storge stayed the same at 40 megs

Free ... I think my hero does not like this mod :-(
[Hero CDMA Android Development] unCoRrUpTeD:
Either your boot.img is not being modified correctly or the recovery isn't. What recovery and rom are you using?
[Hero CDMA Android Development] Firerat:
after flashing recovery patcher

adb shell
sh -x /tmp/patchbootimg.sh recovery |busybox tee /sdcard/cmtdlog.txt
busybox unix2dos /sdcard/cmtdlog.txt

either copy and paste the output, or the contents of /sdcard/cmtdlog.txt
[Hero CDMA Android Development] aznprelude:
whats your settings im using liquid as well but not having any luck getting this mod to work...
[Hero CDMA Android Development] aznprelude:
got it.. thanks for your help i went back a few page..and did somemore reading.. i was using clockwork. reflashed ra recovery now everythings a go.. clockwork fault i think. :D

and also thanks FIRERAT!!
[Hero CDMA Android Development] Firerat:
hmm, maybe cw on hero is broken then

cw on g1 works fine, and I recommend it over ra when using customMTD
[Hero CDMA Android Development] cordell12:
I have been using clockwork from day one with this mod. Never any issues, reboot recovery is my best friend :-)
[Hero CDMA Android Development] aznprelude:
what version of clockwork do u have?
[Hero CDMA Android Development] igtheactt1:
What would cause a SanDisk 8gb microsd card to not format? I flashed this mod a while back but since then stopped using it.. Never flashed the removal zip... but just left it alone.. Recently I downloaded a rom and it failed to download, Then tried to erase the zip file which it showed it deleted but its still there... Nothing will delete... I tried to format many times and all the data is still there.. I rename a file and it goes back to its normal state.. Its like my sd card is locked or frozen, But never says its corrupted... Anybody ever have this issue?

Also put the sd card in my girlfriends Blackberry and tried to format... Says format successful but then asks me to format again and wont mount.. Pretty weird if you ask me...
[Hero CDMA Android Development] cordell12:
2. 5. 0. 1
[Hero CDMA Android Development] cpt0bvius:
I would recommend attempting to format with a PC via card reader. If it doesn't format, you can always try to run "chkdsk [driveletter:] /r /x" (without the parentheses or brackets.
[Hero CDMA Android Development] bigfoottrucker:
Had good luck until one day something went wrong. Clockwork went stupid. I'm still not sure what I did wrong but I ended up getting a new phone. Love this mod but make sure to follow all steps. I probably missed a wipe or something. Or maybe my phone just went stupid.
[Hero CDMA Android Development] evilvoice:
Firerat, I hate to ask this, but I cant seem to find 06BindCache in any rom zip, so I went to google search and spent 30 minutes looking for the script, then I scrapped that and just looked for bind mount cache. Anyways, long story short, I came across your Danger SPL thread in the G1 forums. My question is can I copy your userland script and paste it into 06BindCache, then drop that in my init.d dir?

So you dont have to look at that thread for what I am talking about, here is your userland script

#!/system/bin/sh
# bind mount /data/cache to /cache - Firerat 2010-03-24
# check /data/cache exists, if not create
if [ ! -d /data/cache ];
then
mkdir /data/cache
fi

# check cache is not already mounted
if [ "`mount |grep -q \/cache;echo $?`" = "0" ];
then
echo "/cache is already mounted.. exiting"
exit 1;
else
busybox mount -o bind /data/cache /cache
fi
[Hero CDMA Android Development] Firerat:
:)

thats a blast from the past

the 06BindCache is derived from that script

its a little more advanced now, mostly so that RomManager works

the script is actually in the patchboot.sh script

https://github.com/Firerat/CustomMTD/blob/stable/MTDPartPatcher/patchbootimg.sh

( not recently I have changed the rule from 30mb to 15mb, but have not 'released' any zips for that version )

here is the actual script

#!/system/bin/sh
# 2010-08-05 Firerat, bind mount cache to sd ext partition, and mount mtdblock4 for Clockwork recovery's use
busybox umount /cache
# Bind mount /sd-ext/cache ( or /system/sd/cache ) to /cache
if [ "`busybox egrep -q "sd-ext|/system/sd" /proc/mounts;echo $?`" = "0" ];
then
sdmount=`busybox egrep "sd-ext|/system/sd" /proc/mounts|busybox awk '{ print $2 }'`
cacheDir=${sdmount}/cache
else
cacheDir=/data/cache
fi

if [ ! -d $cacheDir ];
then
busybox install -m 771 -o 1000 -g 2001 -d $cacheDir
fi
busybox mount -o bind $cacheDir /cache
if [ ! -d $cacheDir/dalvik-cache ];
then
busybox install -m 771 -o 1000 -g 1000 -d $cacheDir/dalvik-cache
fi

if [ ! -d /dev/cache ];
then
busybox install -d /dev/cache
fi

if [ "`grep -q \"/dev/cache\" /proc/mounts;echo $?`" != "0" ];
then
busybox mount -t yaffs2 -o nosuid,nodev /dev/block/mtdblock4 /dev/cache
fi
if [ ! -d /dev/cache/recovery ];
then
busybox install -m 770 -o 1000 -g 2001 -d /dev/cache/recovery
fi
if [ ! -L $cacheDir/recovery ];
then
ln -s /dev/cache/recovery $cacheDir/recovery
fi

if you use windows, make sure its converted to unix format

easiest way to do that is with busybox

busybox dos2unix filename.txt

for convenience its attached ( and in unix format )

if you put it on /sdcard

su
sh /sdcard/06BindCache.txt

when I have got where I want to be with Magpie ( a CyanogenMOD based rom with a2sdext built in to the Android Framework )

I will look at a better BindCache solution for those with ROMs that don't run boot scripts in the same way as CyanogenMod based ROMs

( when I first did customMTD , the vast majority of G1 roms were based off CM, so it was never a real issue )

might look at it sooner, to take my mind of magpie, hit a wall :(