yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] Cipherblox:
I am unable to get fastboot working. When I boot into the bootloader and select fastboot usb the screen blinks and I am returned to the bootloader.

I suspect it is because my fastbooter is whatever came stock with the phones when they first came out.

With this in mind, I am running Recovery 1.6.2 because Firerat's recovery refused to work with the clockwork recovery.

I adjusted the MTD partitions to 200 10 just to be safe and installed Fresh 2.4.0. After doing this and completing the first boot, I flashed the new radio image but upon bootup, nothing seems to have changed.

I have no nandroid backups to flash nor do I care to. Flashing a new .zip should achieve the same effect.

Anyone have any advice?

-Kevin
[Hero CDMA Android Development] cordell12:
Follow steps. It said flash recovery not firerats mod again. After radio installs you can reapply firerats mod. The mod booting process is what keeps radio from installing.
[Hero CDMA Android Development] cordell12:
If you already install fresh, just flash a recovery, reboot and then flash radio. Once that is done you can apply firerats mod and Rom of choice
[Hero CDMA Android Development] Cipherblox:
I tried flashing clockwork recovery and it fails to flash. Like I said, I am unable to use anything but the 1.6.2 recovery image with this mod. Should I just download that and reflash it?

-Kevin
[Hero CDMA Android Development] Cipherblox:
Ok I think I got it....

I reflashed recovery-RA-heroc-v1.6.2.img which was successful. I then flashed the new radio and everything is looking good!!

I am curious as to how to why my Fastboot isn't working though. I had to set the partition sizes to 200 10 to install fresh. I know it is a good idea to run a fastboot erase -w but I can't for the life of me get it working. I get "remote: not allow" every time I try.

In the meantime I'm going to adjust the partition sizes as is, flash AOSP, flash CFS, and hope it works.

-Kevin
[Hero CDMA Android Development] cordell12:
You need to be S-off for the fastboot way. S-off is a security if some sort that is pit in place by HTC before Sprint software is installed. Protects the HTC boot from what I gather. You should be fine now, if you made a nandroid you could go right back to where you were before all this, and still have the new radio :-)
[Hero CDMA Android Development] bigfoottrucker:
Ok I give up. New drivers and 3 different HTC sync versions. This thing refuses to recognize my phone so can ruu. How to kill it so I can get replacement. Thanks for all the help.
[Hero CDMA Android Development] Cipherblox:
Touche ;)

Yea I don't bother with nandroid as I don't have anything on the phone that I don't have backed up as it is. Thus, I can just reflash and acheive the same effect in my mind.

Even to run a 'fastboot-mac erase system -w' I would need to be S-OFF?

-Kevin
[Hero CDMA Android Development] cordell12:
No I think you can do that with Fastboot while being S-on. You can format system through recovery as well. But I never really used fastboot so I am not totaly sure. The reason I think you must be S-off for a radio flash via Fastboot is you are changing the boot image. HTC safety (S-on) wont let it happen. Someone clarify if I am wrong please :)
[Hero CDMA Android Development] Foo_Blyat:
That is why i put a HUGE RED DISCLAIMER as the first thing to read before anyone even attempts this.

http://xdaforums.com/showthread.php?t=657086&highlight=unroot

Follow those steps, take out your sdcard, put it into a computer adapter, plug into a dekstop or laptop, put the file onto it, then reboot into hboot like stated and the phone will automatically scan for that file and flash it. This will bring your phone back to how you purchased it from day 1. You can then proceed to reroot. I highly advise you dont try this mod again.
[Hero CDMA Android Development] bigfoottrucker:
Sorry I messed this up. Am sure it never ever ever happens. Hence all the recovery crap on here. I'm just trying to fix it. Been trying for 4 days. I have taken all advice, but nothing seems to work. My phone just refuses to be acknowledged by any ruu program or sync. If we all were masters of the command line then this community would be alot smaller. We learn from our mistakes, and sometimes we get bit in the a$$.

Edit:: I have stated before I can't get HBOOT. It goes straight to my screwed up recovery no matter how I turn my phone on. Unless there is another way to get there that I don't know of yet. As for not using this mod again, I flashed what firerat put on page 45 of this thread to take this mod off. Somehow something went wrong. I flashed that, wipe and reboot, then radio and bootimg and rom for new sprint update. This is where problems started. At first I dont think recovery was as f'd up as it got, but here I am. My mistake for trying to follow directions. I remember that peice from page 45 and thought that would be better than just flashing new recovery. trying to be thorough.
[Hero CDMA Android Development] Foo_Blyat:
Well then, you have a new paperweight...
[Hero CDMA Android Development] bigfoottrucker:
yeah, probably. oh well. i guess if get new one am gonna be more careful. appreciate all the suggestions and help i got, even if we didnt figure it out. it was a learning process.
[Hero CDMA Android Development] Firerat:
no hboot would explain a lot

adb reboot-bootloader

or

adb reboot bootloader

while in recovery might work
[Hero CDMA Android Development] bigfoottrucker:
yeah, that never worked either. just booted back to recovery.
[Hero CDMA Android Development] doeboy711:
I am trying to remove this mod and I tried flashing this file then wiping both data and cashe. I'm now getting

E:can't find MISC:

E:can't mount Cashe:recovery/command

E:can't find MISC:

E:can't mount Cashe:recovery/log

E:can't find MISC:

What did I do wrong and what do I have to do to fix it..

EDIT: I've tried reflashing all the old files and still same results...my phone won't flash anything correctly now.
[Hero CDMA Android Development] bigfoottrucker:
Good luck. Just had that problem. Last few pages will show advice I got. Try to ruu back to stock. I couldn't get my phone to sync but you may have luck where I failed.
[Hero CDMA Android Development] JohnnyStaff:
before you go and get a new phone try this out, its what I had to do with a similar problem:

1. Download a ROM and put them on your SDcard (I used CM6 RC1, I dont know if it works with all)

2. Go to http://www.htc.com click "support" on the top of the page and click "HTC Sync updat for HERO (Sprint) (2.0.40)" and install "HTC HERO (Sprint) 2.1 SOFTWARE UPDATE|05.19.2010"http://www.htc.com/us/support/hero-sprint/downloads/ that should be it.

3. Reboot into recovery and WIPE EVERYTHING data/system/cache/boot/sd-ext EVERYTHING, except the SDcard dont wipe that

4.Flash the ROM (even GAPPS if your feeling lucky)

5. Plug the phone into the computer and then "reboot system" from the recovery screen. (this should get your phone to at least stay on the recovery screen or even get you to the bootloader screen. With GAPPS you may even get into the ROM it will force close and nothing will work though.)

6. With step 5 done your computer should recognize the phone through the command promp using adb "adb devices" to see it.

7. Now that your computer sees the device, run the software downloaded from step 2 and it should connect to your phone and it will download the .6 software onto your phone and it will be useable again. It will however erase everything you have, unroot the phone and it will be as if you just got a brand new phone.

8. Your phone should work now!

9. Come back here and try the partions mod again, haha or dont.
[Hero CDMA Android Development] doeboy711:
Ok so I used method 1 from the post above and I ruu'ed it back to stock :(. Time to try and re-root it again lol

edit..It was a 1.5 ruu. Makes my life so much easier thanks to Fresh's kitchen 1 button auto root!!!!!
[Hero CDMA Android Development] JohnnyStaff:
Search "one click root" on the app market download z4root and its a one click root that installs super user and busy box.
[Hero CDMA Android Development] windtrader:
I'm having trouble getting a new radio on AOSP .98.

I tried the method at post #579 but got an error since Fresh was much larger than the MTD sizes.

Then stumbled onto this note to remove customMTD. I ran the remove zip, reboot recover, WIPE cache, data.

Installed fresh 2.4, flashed radio. New radio never sticks on either Fresh or when I restore nandroid .98.

I did not format system, data, or cache using the partitions menu of ClockworkMod Recovery 2.5.0.1.

I see a reference to flash a recovery somewhere and that is where I am going wrong. Do I need to load this onto the SD card, if so which one and where to get it?

Here is what I think I need to do. Please correct/advise where I am going wrong.

Currently running AOSP .98, Firerat set at 90 2. CW2.5.0.1

1) Backup using Titanium Backup all apps and data.

2) Boot into recovery

3) Make Nandroid backup

4) WIPE cache, data, Dalvik

5) Run FR-remove-v1.5.6-CustomMTD_S.zip

6) WIPE cache, data, Davlik

7) delete MTDs??

8) Flash Fresh 2.4

9) Reboot recovery

10) Run RA recovery image??

11) Flash radio

12) WIPE cache, data, Dalvik

13) "Reboot system now" via CWmod

14) check if radio is updated

15) install Firerat

16) nandroid back AAOSP .98

Probably some extra steps and missing a key one here or there.

Thanks
[Hero CDMA Android Development] Firerat:
nandriod backup

flash remove zip

format system, cache and data ( with clockwork )

reboot recovery

contrats, you have stock mtd

the remove zip , just reflashes recovery with no "mtdparts=" kernel command line

thats it

You MUST format system, cache and data, or the stock mtd layout will be all confused

No idea why people are over complicating it
[Hero CDMA Android Development] evilvoice:
Firerat, normally I would ask to pm you, but its a quick question, and you helped me out with the df issue previously. It seems you know an awful lot about android and HTC phones. My question is this: Do you happen to know what causes an error when running "df" that outputs "etc/mtab: no such file or directory"? If not its cool, but figured you might have run across this one at some time. I can give a dirlisting of everything I have removed if that would help at all. I asked my question in Q&A, but you are mostly in this thread on the CDMA Hero, and I though if one person knew the answer, it would be you. So any help is appreciated.
[Hero CDMA Android Development] Firerat:
mtab is oldschool

http://www.brunolinux.com/02-The_Terminal/Fstab_and_Mtab.html

we have procfs now

http://en.wikipedia.org/wiki/Procfs

for fun

su
cat /proc/mounts

if df is giving you an error about mtab, its old
[Hero CDMA Android Development] evilvoice:
Well, I used dsixdas .107 kitchen with busybox 1.17.3. I removed the symlink between toolbox and df per your earlier instructions in update-script. This is a 2.1 Rom, also...if that means anything?

Just noticed the for fun part:

cat /proc/mounts
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/mtdblock3 /system yaffs2 rw 0 0
/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
[Hero CDMA Android Development] windtrader:
Part of the reason for the confusion about wipe and format is the FR flash says to wipe, rather than FORMAT. So if it must be FORMAT you might want to change that message.

This is a condensed version. If it can be even more streamlined please do comment.

Instructions to upgrade radio on Hero loaded with AOSP ROM and Firerat Mod.

1) Nandroid backup (from reboot recovery)

2) Copy files to SD card:

a) FireRat recover, boot, remove.

b) new ROM

c) new radio

3) Create MTD text file with proper size

4) Remove Firerat mod

* flash FR-remove-v1.5.6-CustomMTD_S.zipzip

* FORMAT system, cache and data (clockwork partitions menu)

* reboot recovery

5) Flash Fresh 2.4 (flashing a radio requires a standard ROM)

6) Flash radio

7) WIPE cache, data, Dalvik

8) "Reboot system now" via ClockworkMod

9) Install Firerat

10) Reload apps or restore using app like Titanium Backup

NOTE: Do NOT use nandroid to recover if you changed the MTD size; otherwise it will restore the original size.
[Hero CDMA Android Development] Firerat:
Not true

......
[Hero CDMA Android Development] Firerat:
not true

.......
[Hero CDMA Android Development] Firerat:
since dalvik-cache is on data and/or /cache there is no point in wiping it if you already wiped cache and data

+ no point anyway, Android sees that the dex files don't match , deletes them and creates the proper dex files

wiping dalvik-cache is pointless

( unless you deleted some apk with a fail app or command line )
[Hero CDMA Android Development] Firerat:
when possible ( S-OFF hboot ) flash radio via fastboot

after

fastboot erase system -w
[Hero CDMA Android Development] Firerat:
Nandbackup

reboot to bootloader

enter fastboot mode ( with usb connected to PC )

fastboot erase system -w

fastboot flash radio radio.img

fastboot reboot-bootloader

confirm new radio

reboot to recovery

nand restore

fastboot link in my sig
[Hero CDMA Android Development] windtrader:
Instructions to upgrade radio on Hero loaded with AOSP ROM and Firerat Mod.

1. Nand backup

2. reboot to bootloader

3. enter fastboot mode ( with usb connected to PC )

4. fastboot erase system -w

5. fastboot flash radio radio.img

6. fastboot reboot-bootloader

7. confirm new radio

8. reboot to recovery

9. nand restore

Thanks for the clarifications. I'm sure many others will benefit from the optimal radio upgrade steps.

For those who not familiar with fastboot, (me), here is a couple tidbits. If you have ADB then you have FASTBOOT as both come on the Android SDK and both are located in the same tools folder of the sdk.

here is copy/paste about fastboot from thread 619153.

Fastboot is protocol used to update the flash filesystem in Android devices from a host over USB. It allows flashing of unsigned partition images.

Notable fastboot commands:

fastboot erase XXX - Will erase the partition XXX (such as userdata, cache) - mainly used for resetting phone and clearing userdata / factory settings.

fastboot flash XXX YYY - This will flash XXX partition with YYY image. e.g: fastboot flash system system_update.img will flash/update your system partition with an image called system_update

fastboot reboot - this will reboot your phone normally

fastboot devices - If you don't know anything, this is the ONE thing you have to know. Gives you a list of devices connected to the computer. This is also a good way to make sure that your phone is actually connected to the computer.

fastboot oem unlock - this will unlock your bootloader - NOTE THIS WILL VOID YOUR NEXUS ONE WARRANTY
[Hero CDMA Android Development] evilvoice:
Firerat, an update to my mtab situation. It seems busybox was the culprit. I would have thought that a newer version would be better, but it seems that version 1.17.3 caused the error. I changed busybox to 1.17.1 and it worked perfectly. Guess I will have to replace that file in the kitchen so it doesnt use 1.17.3 anymore. Thank you for your help.
[Hero CDMA Android Development] Dan330:
this looks pretty good...

I am running ASOP Froyo. I installed Quick Systems Info.

It says that my phone has...

system storage:

total 170mb; free 101mb

System Cache:

total 130mb; free 120mb

so then ASOP only uses 69mb??

and cache is 10mb

In the txt file.. i would use

75 12

right??

no harm in giving more cache to the system, just in case it needs it.
[Hero CDMA Android Development] Dan330:
also.. if it turns out.. i dont like it and want to put it back to before.

I would...

1. boot into recovery

2. wipe every thing

3. restore nandroid of my phone before firerat mod.

4. reboot phone

and that would put it back to pre-firerat. right?
[Hero CDMA Android Development] Firerat:
no, you must undo the recovery patch

a remove zip is available

or just flash a standard none patched recovery
[Hero CDMA Android Development] Dan330:
would that be the partitionpatch file? flash it like anything else?
[Hero CDMA Android Development] shilent:
I was curious to see what would happen if I restore a nandroid without re-flashing FR-boot and all seems fine.

After restoring a nandroid, I rebooted and it went back into recovery with "formatting cache" at the bottom, I rebooted again and everything seems OK. Is this what's supposed to happen?
[Hero CDMA Android Development] Dan330:
i was wondering the same thing...

do I have to flash the boot file after I do nandroid restores?
[Hero CDMA Android Development] shilent:
The instructions says so:

"u need to flash the boot file to make sure it knows how to set itself up. this goes for nandroid back ups aswell."

But I wanted to see what happens if we didn't flash, and everything seems fine.

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] Dan330:
update...

did it without any issues. worked perfect

before i had 45mb free...

now.. i have total 368mb and 255mb free!

very very awesome!!!

thanks!!!
[Hero CDMA Android Development] shilent:
I'm using 72 2. aosp himself also uses this with tiny gapps
[Hero CDMA Android Development] Firerat:
if you have resized, yes

if you don't there is no guarantee it will work

and I will just laugh at you if you complain
[Hero CDMA Android Development] Firerat:
I use a SuperTinyGapps and CM6

I can get system down to 67mb

but it is quite heavily modified

http://forum.cyanogenmod.com/topic/...htc-incredible/page__view__findpost__p__91451

find -type f -exec du -h {} \;
4.0K	./etc/permissions/com.google.android.maps.xml
4.0K	./etc/permissions/features.xml
300K	./app/MediaUploader.apk
8.0K	./app/MarketUpdater.apk
8.0K	./app/OneTimeInitializer.apk
12K	./app/HtcSettings.apk
616K	./app/GoogleServicesFramework.apk
60K	./app/GoogleFeedback.apk
356K	./app/GoogleQuickSearchBox.apk
168K	./app/SetupWizard.apk
120K	./app/GoogleContactsSyncAdapter.apk
36K	./app/GoogleBackupTransport.apk
8.0K	./app/GooglePartnerSetup.apk
112K	./app/GoogleCalendarSyncAdapter.apk
8.0K	./app/HtcEmailPolicy.apk
8.0K	./app/HtcCopyright.apk
620K	./app/Vending.apk
100K	./app/NetworkLocation.apk

du -hcs
2.6M	.
2.6M	total

you can get the rest of the gapps from the Market

install

GenieWidget.apk and PassionQuickOffice.apk

separately

http://tinyurl.com/SuperTinyGapps
[Hero CDMA Android Development] evilvoice:
Can I ask how you get Vending.apk to work without Talk.apk? or is gtalk on the system and therefore not pushed with gapps?
[Hero CDMA Android Development] Firerat:
do you need Talk?

might not be a problem for me as I'm already signed in ( I never wipe )

you can also have Talk on sd-ext, or data
[Hero CDMA Android Development] Dan330:
lol :D

I will complain.. we will both laugh!
[Hero CDMA Android Development] unCoRrUpTeD:
Firerat. When I do mkbootimg with my modified cmdline it works fine if I do 190Mb on data it works fine, but when I try to change it to 100 if doesn't mount the data partition and boot loops. So I mounted the data partition and it showed I have used all 100 MB of data, but when it's at 190 I have only used 5 MB since its a clean install of cm6. And your bindmount script is in init.d. I'm testing something out, hence the smaller data partition.
[Hero CDMA Android Development] Firerat:
if you have a yaffsfs on the partitions it will get confused

thats why we format system cache and data
[Hero CDMA Android Development] unCoRrUpTeD:
Ok. Is there anyway to add partitions? Have you looked into that?
[Hero CDMA Android Development] Firerat:
yes

but I have not done it yet

feel free to have ago yourself, should be easy
[Hero CDMA Android Development] unCoRrUpTeD:
I tried. It didn't work. Thought maybe there might be somewhere else that needs to be updated it maybe my math was wrong.
[Hero CDMA Android Development] Firerat:
maybe

......
[Hero CDMA Android Development] xDragod:
Firerat, you say you use Clockwork... Have you had to redo your partitions lately? I flashed over RA Recovery, then flashed back to Clockwork and reapplied the custom partitions... It acted differently than the first time I've done it. I would apply it, plug in my phone to do reboot recovery and it would reboot and I'd see the "unpacking" picture in the back and it would quickly shut off and do a normal reboot. I'd have to pull the battery since everything was wiped. I'd reboot into recovery and sometimes get the .log error... It seems to work if I do it until there is no error. I'm just wondering if there is a reason for it?

Also, I know you said not to reboot into recovery any other way but through adb... I tried it through Clockwork's advanced menu and all seemed fine... Should I not do that?
[Hero CDMA Android Development] oostah:
can you run this with a rooted stock rom? i use it with other roms.
[Hero CDMA Android Development] kijp15:
Noob Question: How do i make a .txt file??
[Hero CDMA Android Development] cordell12:
You don't, stay away from this mod if you need to ask this question!
[Hero CDMA Android Development] oostah:
when i make a nandroid backup i get ".android_secure.img not found skipping restore of applictions on external storage" every thing gose ok but have no diffrents in memory. it shows that i have 125 of memory but wont let me download any more it says insignificant memory.

applications shows 159m/274m 58% so im only using 159m of 274m but still wont let me add any more apps. if it makes any deferents my sd card 2810m/3286m 85% i dont no what to do?
[Hero CDMA Android Development] 120409:
im having this wierd problem...? i had problems with step 9, "reboot recovery". It kept denying it. but somehow it ended up working.

I had 360 mb, but i was trying to type in "df -h" on terminal and it said "no such file or directory".........any help?:(
[Hero CDMA Android Development] zwizzle:
You have to be in the shell. First type "adb shell" then "df -h" and you should see all your partitions. Or you can just type "adb shell df -h" and hit enter.
[Hero CDMA Android Development] Firerat:
busybox df -h

or just

df

you have a crappy rom, no doubt winzip was involved
[Hero CDMA Android Development] Firerat:
annoyingly the insufficient storage error is very much overused in the code, most of the time the real error has nothing to do with storage space

but try this

assuming you are not on a FroYo ROM, make sure cache is getting bind mounted

busybox df -h

you should see /dev/cache

if not

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

you would need to do that each boot

or increase the size of cache ( assuming you shrunk it )
[Hero CDMA Android Development] rfineran:
Help Please

So i tried this mod last night and cant seem to get my phone working. I made it to step 9 where you're supposed to reboot recovery but i'm on windows 7 and the only way i know to use ADB is to have Easy Tether installed on the phone and computer. Obviously after wiping it was no longer on my phone, and therefor i cant get adb to work for anything.

I was using clockwork recovery (but now when i force boot to recovery it's different)

any help would be greatly appreciated. I tried reading though the thread but cant seem to sift through it all to find someone having the same problem.

also i've tried to go back to the original RUU but it wont let me complete the installation because it says i dont have enough battery (i left it charging overnight)
[Hero CDMA Android Development] xxxicu812:
sdk wont recognize my cdma hero running cm6.1