yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] oostah:
I just wanted make sure I didn't mess any thing up. Trying to be careful didnt want to just start uninstalling then ask you what I did wrong and how to fix it sorry to take up your time thanks for your help.....
[Hero CDMA Android Development] dhero1:
I believe you just need to reinstall any normal recovery image to get back to the normal partition sizes, right? :confused:

Try it. :)
[Hero CDMA Android Development] oostah:
Thanks I was thinking the same thing.
[Hero CDMA Android Development] JohnnyStaff:
tried it with 135 3 after that little scare and had over 300mb of available space! then phone rebooted and went back to normal. Don't know what happened but might try it again. Pretty cool though!!
[Hero CDMA Android Development] bigfoottrucker:
Flashed a zip on page 48? To remove the mod and now my recovery broken. Have never gotten adb to work on computer so can't flash recovery. Besides computer wont recognize phone as I tried to ruu it. Can't mount etc or cache. If reboot goes to broken recovery and no hboot access. Halp.

Edit... I do have a copy of RA. 1.7 on SD if will help
[Hero CDMA Android Development] Firerat:
page 48 is meaningless to me, I can't be bothered changing my no. of posts per page or working out which page.

Quote the post No. or link it

regards adb, get virtualbox* and install ubuntu 10.04 or higher and follow instuctions for installing fastboot/adb in linux

* PULE version , the OSE Does not support USB

http://www.virtualbox.org/wiki/Downloads
[Hero CDMA Android Development] bigfoottrucker:
This is what I flashed. I wiped flashed then wiped again. Then I flashed rom. When I rebooted then back to recovery. Can't find misc and can't mount cache/recovery log.
[Hero CDMA Android Development] Firerat:
then you are not wiping system cache and data

fastboot erase system -w
[Hero CDMA Android Development] bigfoottrucker:
I wiped these multiple times. can try again. I can't get adb access to run commands. windows 7 has not making that easy, though I have all i need to get that going. If I try to enter fastboot from phone will just boot back to recovery. I will work on getting command line access actually working.

Edit:: Tried to wipe these again and just get errors formatting errors.

Edit2:: got adb in command line. put in adb devices and shows 000000000000 recovery. Not sure if it is even recognizing phone as hooked up. Do I just need to somehow get a new recovery loaded?

Edit3:: ok, been reading, may have got bad boot.img. flashed one given with rom was trying to flash. will look for this. Tried to flash another recovery but said could not find recovery

Edit4:: all I can get is reboot thru recovery. can get nothing else work. If I flash recovery says cant find recovery. tried fastboot commands but its not even recognizing my phone as hooked up. gotta be a way. Im just too stupid to figure it out right now. will keep checking xda for what im looking for. Knowing myself will be a simple fix when found. Happy turkey day all....
[Hero CDMA Android Development] stricklerjosh:
I'm trying to flash the new sprint radio, can't get it to work. I think its this mod causing problems. Is there anyway I can get it to flash correctly?

Aosp froyo, It's the poop!
[Hero CDMA Android Development] cordell12:
Hero has a new radio and to complete the install of it we must reboot from menu, well I do that and get some sort of error, cant tell what it says as it goes away to fast, something about E. Is there a easy work around to do this or am I going to have to flash recovery all over and then reapply your Mod and my nandroid, or will I lose the radio by nandroiding back to my current set up?

Thanks

Here is thread where radio is located, and what I was doing to get the error :)

http://xdaforums.com/showpost.php?p=9410429&postcount=114
[Hero CDMA Android Development] theimpaler747:
Just remember that nandroids don't reset the radio ;) They're independent
[Hero CDMA Android Development] danaff37:
By the way guys, you have to have darch's engineering spl on out phones to use fast boot. Otherwise, use clockwork and go into partitions menu and format each partition there (which us what I do and works great)
[Hero CDMA Android Development] Firerat:
if your flashing a radio via recovery, you must remove customMTD first

if you can , use fastboot instead
[Hero CDMA Android Development] bigfoottrucker:
I did flash radio b4 my current problems. Its like my recovery is slowly unraveling and less and less works without an error. Everytime I try and wipe I get error and can't flash rom as when it goes to wipe boot it errors out. The only thing I've accomplished in adb is reboot and that puts me back to recovery.
[Hero CDMA Android Development] Firerat:
use clockwork's partition formats

or

fastboot erase system -w
[Hero CDMA Android Development] CraigCraig:
My HTC Hero won't boot into the ROM or Recovery.

I had the MTD stuff working but then I changed a value and it complained of cache having no space, the recovery menu would then freeze on the main screen allowing me to do nothing complaining device was out of space (cache recovery.log) (adb worked though.. to some extent)

(notes) df -h did not show anything other than /dev

half of the adb commands hung after issuing them

After figuring out the ROM would not boot after this either I tried to reflash the recovery image. At that point recovery would not even boot

I then figured out the ROM would let me use adb but would not let me use adb shell.

I kept getting this error

exec 'system/bin/sh' failed no such file or directory (2)

So I pushed sh to it with adb and now I get this

I can use adb for like 10 seconds before adb stops working.

When I use "adb shell" I get "- exec '/system/bin/sh' failed: Permission denied (13) -"

I am stuck with S-ON so I can't use Fastboot...

What should I do? Should I take the phone back and play dumb?

It hangs on the HTC screen hboot and Fastboot works but nothing else.

Also tried to make a GoldCard out of 3 different cards but neither of them are Kingston.

Any last ideas before I go into the store for a replacement?
[Hero CDMA Android Development] cordell12:
Steps to install Radio...

Nandroid

Put Radio on sd card along with fresh 2.4 (prl update, if needed)

Flash Clockwork Recovery from current set up

Reboot recovery

WIPE!

Install Fresh 2.4

Reboot recovery

Flash Radio

Reboot and update PRL

Reboot recovery

WIPE!

Flash Firerats FR-recovery-v1.5.3-CustomMTD_S.zip

WIPE!

Reboot recovery VIA clockwork OR ADB

Nandroid back to original set up

Reboot recovery

Flash FR-boot-v1.5.3-CustomMTD_S.zip

Reboot system now

WOW! That is quite a few things but it didnt take me more than 1/2 hour. That is WELL worth it to have this MOD :)

Thanks Again Firerat :)

I have the new radio and my signal at home has decreased by 2 dbm's :cool:

Incase you are wondering the lower the dbm's the better :)

Thanks!
[Hero CDMA Android Development] Firerat:
the reason it 'fell over' is because it can't mount /cache

probably because system, cache and data were not erased when you changed the size.

if you don't erase then the fs remains, but not 'in the right place'

fastboot erase system -w

would fix it, but not all S-ON can do that

best option is clockwork, it has erase_image built in

If RA gets in this state, you can flash Clockwork via RA

boot to RA ( yes it will complain, but you can adb shell in )

adb shell
mount /sdcard
flash_image recovery /sdcard/clockwork-recovery.img

reboot to recovery, you should be in clockwork, it may or may not complain about /cache

use the partition menu and format system, cache and data

reboot to recovery , and flash recovery patcher ( after fixing mtdpartmap )

If you can't use the menu, ten adb shell in and

erase_image system

erase_image cache

erase_image userdata

######################################################

tbh the above is academic if you can't boot to recovery

can you adb shell in?

Which recovery are you using?

if its RA , and you can adb shell, then

http://xdaforums.com/showpost.php?p=9126707&postcount=1

useless zip for anything but the G1 / Sapphire

why they put assert checks in? idk

remove these lines from updater-script and resign

assert(getprop("ro.product.device") == "trout" || getprop("ro.build.product") == "trout" || getprop("ro.product.board") == "trout" ||
getprop("ro.product.device") == "sapphire" || getprop("ro.build.product") == "sapphire" || getprop("ro.product.board") == "sapphire");

Of course, you can't flash that anyway, but extract the erase_image from the work folder

Push it to /tmp/

then

adb shell
chmod 755 /tmp/erase_image
/tmp/erase_image system
/tmp/erase_image cache
/tmp/erase_image userdata

If the above doesn't help ( as you can't adb shell to recovery anymore

don't worry...

your phone is not bricked, you should be able to use an NBH to get back to stock, you can then re-root and flash a custom recovery

Personally I would recommend Clockwork, its a little more robust than RA.. and tbh its a no brainier if you don't have a hardware keyb

hope this helps
[Hero CDMA Android Development] laie1472:
If I'm not mistaken the more internal mem the better
[Hero CDMA Android Development] s0be:
The more free memory you have, the less aggressive the garbage collector will be
[Hero CDMA Android Development] brokentoaster24:
can you elaborate a little more? i still don't see this being worth all the work it takes :?
[Hero CDMA Android Development] s0be:
If you have 10mb(number from butt) ffree the system will auto close programs, storing their state. If you then reload the program, it has to reload it's state, after initializing. More free ram means that happens less, so less small pauses when changing tasks
[Hero CDMA Android Development] schmooo:
so have u noticed a difference in performance from this? have any benchmark scores went up from using this mod..i.e quadrant
[Hero CDMA Android Development] Big-O-Devil:
Ok... I Know Some Of You Are Trying This On Different Rom's... I Was Wondering If I Could Get Some Feedback.. What Other Rom's Can We Run This On.:confused::confused:

P.S.... I Tried On Zen-Fx But For Some Reason Once I Go To Recovery I Can't Go Anywhere Else.. :confused:THINKING-THINKING:confused:
[Hero CDMA Android Development] s0be:
I haven't done this... been too busy. That having been said...

JIT should perform much better with this. JIT is a memory hog, and it's less likely to push other things out of ram with this(assuming our nand is XIP).
[Hero CDMA Android Development] regaw_leinad:
I'm pretty sure this wont affect ram, and I'm pretty sure the apps will stay open the same amount of time considering Android closes them when it is done with them (ie processes/background work).

If I'm not wrong, this looks like it just gives you more room for apps, like a2sd would do.
[Hero CDMA Android Development] barry.bishop72:
works great, but doesn't seem to play well with other extras i.e. collins battery tweek.
[Hero CDMA Android Development] s0be:
I just assumed that these are XIP devices. Is it nor flash rather than nand flash that's required for that?
[Hero CDMA Android Development] wjason:
Working great for me with RC1, Decadence Uncapped Kernel, and Collin battery tweak (768). I was down to about 20MB internal with several apps on SD. Now I have moved all apps to phone and I still have over 156MB free. RAM is hovering between 60-80MB, which I believe is higher than I have been getting. I don't know if this has anything to do with the RAM but right now I am pretty happy with my setup.:D:D

Thanks to all!
[Hero CDMA Android Development] danaff37:
This will not increase performance. However I am using apps 2 sd, but was still running out of room from the /data/data. So this was great for me. And as an extra side effect, I was able to move more apps to phone storage and increase the performance of those programs.
[Hero CDMA Android Development] Rivas123:
Tried on Fresh 2.3.3, Suger Free, Stock Odex, Stock Deoxed all do not work for some reason, says error on line 62 when flashing the ROMs. Anyone else can confirm this? I had to go back to Froyo Cm6 Rc1 which is the only one that has worked flawlessly with this MOD.

Sent From A Froyo Using Hero.
[Hero CDMA Android Development] danaff37:
did you adjust the partition sizes for fresh?
[Hero CDMA Android Development] Rivas123:
That's where I could have screwed up. Ill try again. I see no one else is so ill take the risk. Ill post again once I get each one to work and what settings I used, settings meaning the mtd # #.

Sent From A Froyo Using Hero
[Hero CDMA Android Development] bigboidomo:
Works great 280 internal and after apps 192 also this gave me better quadrant scores I love this mod because now I don't have to run darktrmore and ware out my SD thanks alot!

Did I catch you having fun? *slaps*
[Hero CDMA Android Development] bigboidomo:
I see to have a problem nandroiding after I set this up anyone else?

Did I catch you having fun? *slaps*
[Hero CDMA Android Development] travripp:
Same problem here so I've been researching what I'm doing wrong but coming up empty handed. I've gotten it working on CM6 no problem but have been struggling with it on DD2.8. I had it working once then started having nandroid problems with it.
[Hero CDMA Android Development] Vandelay007:
Sounds cool, but I dont know if I need the extra internal space with a 16gb class 6 micro sd - unless there are other benefits to it other than internal space ?
[Hero CDMA Android Development] bigboidomo:
Les s cache dump and les wear on your sd card if you use a2sd I suppose

Did I catch you having fun? *slaps*
[Hero CDMA Android Development] bigfoottrucker:
if I try fastboot just sits on waiting on device and it does not seem to recognize phone is hooked. If wipe partitions get error. Tried erase_image but will not find partion. Tried to flash a recovery but can't find recovery partition. When start phone or reboot goes to clockwork recovery then:

E:Can't find MISC:

E:Can't mount CACHE:recovery/command

E:Can't find MISC:

E:Can't mount CACHE:recovery/log

E:Can't find MISC:

What is the NBH you mentioned to other poster. I am getting frustrated. I would RUU but the RUU program does not recognize my phone.
[Hero CDMA Android Development] Firerat:
what did you put in the mtdpartmap.txt?

assuming you can adb shell

what does

cat /proc/cmdline
cat /proc/mtd

give?
[Hero CDMA Android Development] sane82:
Sorry for this inconvenience but I have the hero and I too have the same problem with phone error reading error can't mount to cache : recovery/log The commands you asked for our right here. Can you please get back to me as soon as possible I am without the phone. Thank you and happy thanksgiving

C:\>cd/sdk/tools

C:\sdk\tools>adb shell

~ # cat /proc/cmdline

cat /proc/cmdline

board_heroc.disable_uart3=0 board_heroc.usb_h2w_sw=0 board_heroc.disable_sdcard=0 diag.enabled=0 board_heroc.debug_uart=0 smisize=32

androidboot.baseband=2.42.01.04.27 androidboot.cid=SPCS_001 androidboot.carrier=COMMON androidboot.mid=HERO20000 androidboot.keyca

ps=qwerty androidboot.mode=recovery_manual androidboot.serialno=HT068HF02449 androidboot.bootloader=1.46.2000 no_console_suspend=1 c

onsole=null mtdparts=msm_nand:640K@0x1FF60000(misc),5120K@0x02C60000(recovery),2560K@0x03160000(boot),52

4288k@0x033E0000(system),2048k@0x233E0000(cache),-55808k@0x235E0000(userdata)

~ # cat /proc/mtd

cat /proc/mtd

dev: size erasesize name

mtd0: 000a0000 00020000 "misc"

mtd1: 00500000 00020000 "recovery"

mtd2: 00280000 00020000 "boot"

~ #
[Hero CDMA Android Development] Firerat:
did you set your system size at 512mb?

I have actually built in a safety feature for this

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

and

https://github.com/Firerat/CustomMTD/commit/7090c6fec00f50f23126504039fe3751cf929475

But its on the Unstable branch and I haven't tested it yet

you need to flash an unmodified recovery

mount /sdcard
flash_image recovery /sdcard/recovery-<version>.img

you should then be able to format system , cache and userdata

once you reboot
[Hero CDMA Android Development] sane82:
thank you very much it worked. I was trying two partition my phone so that I may use the dual boot is this the correct way to do it. Or is there something else I need to do This is no rush you don't have to waste your thanksgiving answering that to me just when you get time please let me know. And when I get a couple of bucks I will buy you a drink. Thanks again and happy thanksgiving
[Hero CDMA Android Development] bigfoottrucker:
Had mtd 170 25 as I was gonna flash infinites port of newest sprint update. Will check when I get home. So you think partition sizes set to nil. Would explain alot.
[Hero CDMA Android Development] bigfoottrucker:
~ # cat /proc/cmdline

cat /proc/cmdline

board_heroc.disable_uart3=0 board_heroc.usb_h2w_sw=0 board_heroc.disable_sdcard=0 board_heroc.usb_radio_diag=0 board_heroc.debug_uart=0 smisize=32 androidboot.baseband=2.42.01.04.27 androidboot.cid=SPCS_001 androidboot.carrier=COMMON androidboot.mid=HERO20000 androidboot.keycaps=qwerty androidboot.mode=recovery androidboot.serialno=HT01PHF03777 androidboot.bootloader=1.47.0000 mtdparts=msm_nand:640K@0x1FF60000\(misc\),5120K@0x02C60000\(recovery\),2560K@0x03160000\(boot\),174080k@0x033E0000(system),25600k@0xDDE0000(cache),-252800k@0xF6E0000(userdata)

~ # cat /proc/mtd

cat /proc/mtd

dev: size erasesize name

mtd0: 000a0000 00020000 "Partition_000"
[Hero CDMA Android Development] CraigCraig:
My recovery image is recovery-RA-hero-v1.6.2

I can not get into adb at all with the recovery.

How do I use an NBH? This is the first time I've heard of it and Google is not showing me anything relevant I don't think.

{{EDIT}}

Every NBH I try says no image, I found a little on Google but nothing is working

I also tried a HERCIMG.zip several of them, they make a bar at the top right show and when it checks the zip it goes back to the main screen

I've tried making all 3 of my SD cards into GoldCards but no success....

Thank you!
[Hero CDMA Android Development] stricklerjosh:
So i'm thinking about trying this today to update my radio...I don't really want ti use clockwork Mod...I like my regualr RA recovery...Is there another way to do that? Also when I flash the fresh rom or whatever sense 2.1 rom, don't I have to change my partition size or something like that? Would it just be easier to remove the mod and do all this and then just add it back on?

Edit: trying this method now...will report back...wish me luck!!!
[Hero CDMA Android Development] stricklerjosh:
So got everything updated, but something must have been wrong with my nandroid because it would not boot, just kept booting back to recovery...but I wpied and just flashed aospmod and it booted up...weird.
[Hero CDMA Android Development] Firerat:
this _should_ work

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

it will get you back to stock 1.5 , from there you can reroot
[Hero CDMA Android Development] bigfoottrucker:
will this be any different than running the .5 or .7 ruu for 2.1 rom. I have tried both of those and will not recognize my phone when hooked up. Hence most of my frustration.
[Hero CDMA Android Development] bigfoottrucker:
HTC sync and RUU program do not recognize my phone. so much for that. Seems to me I need a way to reset partitions. or something. All i got is recovery that wont let me flash as get error accessing boot. Can't wipe anything as get error. No fastboot or hboot. can adb but am a real noob there. Everybody says the only way to brick is to flash wrong radio. I would hate to be the exception. There must be a way. We can rebuild it...

of course if anyone knows of a way for my computer to 'see' my phone so can ruu that would be great
[Hero CDMA Android Development] oostah:
I had same thing lost my stock Rom. When I flashed my 1st rom. In recovery there is a setting to mount usb. Set it and connect your phone it should give you access to your SD card put a good Rom on your SD card or what you need to flash. In recovery unmount SD card. Select install zip from SD card. find the Rom or image and install reboot. It worked out for me.less stock Rom
[Hero CDMA Android Development] Firerat:
usb drivers!!

what version of htc sync do you have?

meh doesn't matter.. just reinstall it

ruu is independent of recovery
[Hero CDMA Android Development] CraigCraig:
I could not figure it out, went into Alltel and they swapped my phone in less than 5 minutes.

Thank god she did not notice the boot screen was missing the "Quietly Brilliant" text

Already bricked Hero's twice before. And they claim it's rare :rolleyes:

Previous bricks were my fault anyways.

1. Flashed GSM radio first couple days of owning a Hero, did not pay attention.

2. F#$%ed up the MTD instructions, MTD is fine I just failed to follow instructions.

Curse you ADD!

Anyways thank you Firerat for the help, it would of worked if my phone was not so f#$%ed.

Also I flashed a new SPL and I have S-OFF now, so as long as I don't flash a GSM radio or don't flash SPL's or hboot I should never be able to brick it again right?

As far as I understand if you're S-OFF you can have a broken ROM and Recovery and still be able to flash through Fastboot right?
[Hero CDMA Android Development] cuezaireekaa:
radio woes...

i am having trouble flashing the newest radio on cyanogen mod 6.1.

...i'm using the amon 1.7 recovery and have Firerats Mod enabled.

not sure if either is the reason why, but when i flash; it says it was successful in the recovery but the settings still list my older radio.

has anyone seen this or... have a workaround?

i posted in the q and a but thought it might be answered better here.
[Hero CDMA Android Development] cordell12:
Heres what I had to do for it to work. It takes a good 30 minutes though...

http://xdaforums.com/showpost.php?p=9415009&postcount=579

This is on page 58 of this thread (Firerat Mod thread)
[Hero CDMA Android Development] cuezaireekaa:
Ah jeez... i just missed it. :o

Thanks so much for putting that up and thanks to Firerat for this amazing mod. :D
[Hero CDMA Android Development] Cloned2:
How about this /dev partition?

What is it for and how can I shrink that?
[Hero CDMA Android Development] Foo_Blyat:
a 2 second google search came up with

"the dev partition is not on physical nand disk."
[Hero CDMA Android Development] Cloned2:
Your right, thank god for google. I was using biadu but I couldn't make sense of those boxes that contain four numbers!

I can't count on a real person to tell me, without citing a google result that is NOT answering what the /dev partition is for and how I can shrink it.

What isn't your answer to "what it is for and how can I shrink it", when I don't ask you "what does 2 second google search pull up"?
[Hero CDMA Android Development] bigfoottrucker:
Flashed 3 different versions of HTC sync and 3 different ruu programs. Reflashed drivers. Etc. My windows 7 computer. Can't get these to recognize my phone is plugged in. Anything I'm missing. I still have a bad recovery on phone. How about a good way to kill it and will go get new one.
[Hero CDMA Android Development] Firerat:
hmm windows 7

http://gadgets.softpedia.com/news/How-To-Solve-HTC-Hero-Sync-Problem-in-Windows-7-4442-01.html

I googled

don't use winblows myself
[Hero CDMA Android Development] bigfoottrucker:
Tried this yesterday to no avail. Will try again. Maybe I did something wrong.
[Hero CDMA Android Development] Pyr0TeK:
I followed this link to try and update my radio: http://xdaforums.com/showpost.php?p=9415009&postcount=579

I am using Firerat's 1.5.7 version files but that shouldn't matter right? Still appears to not have taken on my phone because my About screen still says I am run ning 2.42.01.04.27. WTF??

EDIT: Got it to work after I used the Unrevoked S-OFF
[Hero CDMA Android Development] cordell12:
Steps to flash radio when using this mod, if you are S-off you can use fastboot.