yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] seaskyways:
Wildfire S ??

I am here on my Wildfire S , semi USB bricked

Symptoms :

1. i can't get sdcard mounted as disk drive while USb debuuging is open

2. i can't enter htc sync mode since when i choose it , it turns usb debugging on letting me no choice to disable usb debugging , and us debugging here on my bricked phone disables mount and htc sync ...

so what do you think ? is it the misc partition or any other , i tried flashing the orignal RUU which didn't work , so what you say , i am S-on with Unlocked bootloader ...
[Desire Android Development] matus.karahuta:
If your pc recognizes your phone, you are not bricked. If your phone starts charging immediately after being plugged into the wall, you are not bricked. If you even see the dialog to choose connectivity, you are not bricked.

Best way to deal with it is to take it back to the store, if you still have warranty. The next best thing is to try asking for help in HTC Wildfire forums, not Desire forums ;)

If you have all the correct drivers installed on your pc, this shouldnt happen and I don't want to give any advice on flashing when I never had your phone...

Anyways, good luck
[Desire Android Development] Petaa:
pleas tell me how to do :

1. Find out your CID. Go into fastboot mode, and do 'fastboot oem boot'.
[Desire Android Development] angusc:
Not sure what device you have but if your device is supported the easiest option for brick fix would be to install 4Ext recovery as it has a built in USB brick fix tool.

Sent with Desire.
[Desire Android Development] Flashmaniac:
goto fastboot

fastboot getvar cid
[Desire Android Development] MetinKale38:
Just install 4ext recovery touch. It has a function to unbrick usb and it is the best recovery.
[Desire Android Development] seawind107:
Are these mtd0.img and flash image suitable for sensation as well?If not, can anyone give me the mtd0.img and flash_image for sensation z710a (TELNZ001)?Thank you.
[Desire Android Development] stex_80:
Hi,

i tried all step of this guide but my SD CARD doesn't recognized by Desire, every step by Fastboot, terminal, ... failed.

please help me !!!:(
[Desire Android Development] ultraprimeomega:
same here
[Desire Android Development] XYZ-Moscow:
Try this http://xdaforums.com/showpost.php?p=20836941&postcount=740
[Desire Android Development] stex_80:
Tried without success, when arrive at the moment to positioning or copy files on sd i have error on everythingh about sd card.
[Desire Android Development] stex_80:
Nobody can help me?
[Desire Android Development] boleroentrecopas:
Have you tried to upgrade your hboot with the last bravo release? HTC_Desire_Android_2.3_Upgrade.zip ( with PM99IMG.zip method) Maybe, flashing hboot will help to repair the fastboot and you will able to connect via usb,

Anyone tried to adapt the official bootloader unlock to help us?

sorry for my english
[Desire Android Development] jmcclue:
trust me going s-on and ruu, PB99IMG does not work, i tried. try this guide, its based on this guide but slightly different. please remember its not only the cid number u have to change, put in ur software number too.

http://www.google.ie/url?sa=t&sourc...XTjMlr&usg=AFQjCNE6y7kx-Agh29QKseeCftdUz2wIQQ

Sent from my HTC Desire
[Desire Android Development] boleroentrecopas:
Thanks for trying but i can't do temproot with visionary+, it stucks with a blackscreen =(. I don't know if I'm doing something wrong, but it think that it's caused by 2.3.3 android version.

I've read that I have to change "main_ver" editing "misc partition" but i can't do it without usb

I think the only one posibility its modifiying the official method to unlock bootloader... but I don't have any idea the way to do it, its only an idea xD

Thanks!
[Desire Android Development] PE4ce:
I don't know if you still have the device or not

I just had the same problem regarding the CID "Super CID"

just do "fastboot oem eraseconfig"

it should work :)
[Desire Android Development] alex190291:
thank you so much. this solution works like a charm :D i thought i bricked my device and you gave me back my hope ;)
[Desire Android Development] stevebrush:
Online mtd0.img generator

Hi everybody ,

my Usb-bricked mtd0.img generator is online here : http://ks33673.kimsufi.com/misc/

you have to provide your cid and your rom version.

it's a quick and dirty generator written in php, but it should work I did some diffs with a good mtd0.img and files generated and it's ok...

it's lite, so you can access it thru your device.

have nice unbricking...

source code included
[Desire Android Development] GhostSoldier:
I tried his tips also.

Still the same error.

I managed to get hold of a demo of a file explorer with root explorer (cant buy one, Sweden). I moved the files through that, but when I open the app again, there not in /data. The app says that the move has been succesful. But when I look in /data, the files aren't present.

It´s like I dont even have root-access :S
[Desire Android Development] The Professor:
Well... you are rooted, right?

Have you tried the cat method?

cat /sdcard/mtd0.img > /data/mtd0.img

cat /sdcard/flash_image > /data/flash_image

That should also theoretically work, right? flash_image is just a shell script.
[Desire Android Development] GhostSoldier:
I hope so.

Tried the R5-method all the way a couple of days ago. Had a bad flash, then been stuck at step 1 since then. So I guess thats rooted if you can go through step 1 in Pauls r5-guide, right? I will try your tips. Thanks!

Edit

. It worked.

Next problem though, permission denied on the flash.

both with and without su

/data/flash_image misc /data/mtd0.img

/data/flash_image - Permission denied
[Desire Android Development] *Paul*:
Excellent work guys!!!

I can now flash away again without worrying about bricking :D

Thanks a million!
[Desire Android Development] GhostSoldier:
Is there a way to gain superuser-access?

su

doesnt work for me, I still get Permission denied when I try to flash from /data.

So close to the finishline...I can almost taste it.

Thanks for all the help guys. Really, this is by far the best forum in knowledge and maners I have ever visited.
[Desire Android Development] The Professor:
If you don't have su, you're not rooted. I dunno what else to tell you.

Did you make sure flash_image was chmodded? I don't think it's related, but... yeah, that's the only other thing I can think of trying without telling you to go back and re-root using step 1.
[Desire Android Development] manks:
Hi all

fab work. I've been merily flashing my rom but feel that i need to take action to protect myself in case the brick occurs in the future.

Can someone tell me how/where I perform this command and whether it matters if I'm using a non-stock rom? Many thanks

cat /dev/mtd/mtd0 > /sdcard/misc.img
[Desire Android Development] Jpcurrie:
You would run that easiest imo in a Terminal App on the phone from the market.

I just downloaded a freebie one and it worked a treat.

Make sure you do a "su" command first to enable superuser.
[Desire Android Development] The Professor:
And no, it doesn't matter if you're using a custom ROM.
[Desire Android Development] GhostSoldier:
I should be rooted. Is there a way to test this? Step 1 in Pauls R5 is completed without errors.

Can you have an USB-bricked unrooted phone? :S

How do I make sure the image is chmodded? In the computer or in the phone?
[Desire Android Development] The Professor:
You can be bricked and unrooted if you flashed back a stock ROM after bricking. If you made it through step 1 as your most recent flash, though, you should have the test ROM installed, which has root.

To chmod the file, run "chmod 755 /data/flash_image" from a terminal on the phone once flash_image is installed to the /data directory.

If you type "su" and hit enter into a terminal on the phone, what do you see exactly?
[Desire Android Development] GhostSoldier:
It changes from Dollar-sign to #

Im not USB-bricked anymore.

Thanks to all who made this possible, and thanks to you guys who helped me through it!
[Desire Android Development] dread123:
someone mentioned earlier that full RW access is now available to desire? does this mean we could see a better flashing method coming or having the option of switching roms etc by menu selection?(if that makes sense)
[Desire Android Development] Kamran9558:
I was going to unroot, and was really afraid of flashing a new rom, but well done guys, I have extracted mdt0.img now and I would be flashing roms again, this is great work.
[Desire Android Development] JDouce:
Re: [USB-BRICK FIX]Restore USB function on your bricked Desire

Is anyone working on desire super cid
[Desire Android Development] Loccy:
Not quite.

There's a bloke over at Modaco who appears to have a device that has full RW access - it was an ex- shop demo unit, so might well have been an earlier model to those that were sold en masse to us lot.

Now, it's over to the devs and other hacker types now to see if they can apply whatever is different about his phone to everyone else's.
[Desire Android Development] alpinux:
Who was it? We need to get the spl!
[Desire Android Development] alpinux:
Found him.
[Desire Android Development] kubino99:
the SPL is stock one. We dumped it yesterday. Looks like the security flag is somwhere else.
[Desire Android Development] alpinux:
Are you sure it's stock because of the same version number or because of a file comparison?

Hmmm. What else is possible?
[Desire Android Development] kingchris:
i want to see a video of creating the test-folder on /system :)
[Desire Android Development] alpinux:
Can you send me the dumped spl please. Sent you my mail adresse via pm. Thx
[Desire Android Development] JDouce:
Re: [USB-BRICK FIX]Restore USB function on your bricked Desire

Start a new thread for the super cid discussion
[Desire Android Development] kubino99:
performed diff, no differences found
[Desire Android Development] davidporter1010:
Can be possible root a USB-Bricked device flashed with PB99IMG.zip?
[Desire Android Development] kubino99:
what you mean by "flashed with PB99IMG.zip" ? if it's stock unrooted ROM then yes. You need to root first, perform step1 from Paul's rooting guide. and then follow another sticky forum on modaco "usb-brick-rickrolled-b0rked-fixed"
[Desire Android Development] missbizzylizzy:
Pleeeeeeease don't anyone rip my head off. I have done so much searching and reading that I'm getting a headache. Before I switched to the Desire, I never had to ask for any help with my Diamond. (Just to clarify that I do take the time to read.)

I'm confused. I managed to root my Desire with no problems. Before I managed to do anything else, I saw that many people were having problems with bricking. So, I have done nothing else and have been holding my breath while the Android geniuses worked it out.:)

I have not installed/applied/flashed A2SD and I really want to. I have an 8GB card that is just waiting for apps!!

My question is, what exactly should I do?? I noticed in the post I have quoted that I should check my misc.img and make sure it's still good. Sorry for being a gruesome newbie:o (to Android) but could someone direct me to a thread or forum where I can find out exactly what I need to do? Please don't think I'm being lazy. As I said, I have been searching and reading a LOT but I'm either not finding the right threads or am just not understanding properly. Apologies again and help please! Thank you!!!:o
[Desire Android Development] The Professor:
If you're rooted, download a terminal emulator (like Better Terminal), and type the following into it:

su
cat /dev/mtd/mtd0 > /sdcard/misc.img

That will get you into superuser mode and dump mtd0, which is the misc info that can get overwritten, into an img file (misc.img) stored on your SD card. Next time you plug into a computer, copy that misc.img file off and store it somewhere. If you want to look at it, you can examine it with a hex editor, but if you're still booting properly and haven't flashed much, don't worry too much about checking it. Just for your curiosity at that point. :)

If you later run into the brick issue, put misc.img back on your SD card along with flash_image, which is the script downloaded from the tutorial linked in the first post, and run the following:

su
cat /sdcard/flash_image > /data/
cat /sdcard/misc.img > /data/
chmod 755 /data/flash_image
/data/flash_image misc /data/misc.img

This will put you in superuser mode, move the files from SD to the /data folder, allow flash_image to execute (the chmod line), and flash the image stored in misc.img to the misc block.
[Desire Android Development] missbizzylizzy:
Will do. Thank you ever so much for your very kind and speedy reply. It is really appreciated and again, thank you, thank you!!!!:):):)
[Desire Android Development] davidporter1010:
Good afternoon, sorry for English, use google translator

My problem is I have usb brick and user recommendation from MoDaCo fastboot with PB99IMG.zip flash and now all but usb works, but I can not undo brick because I have no root privileges ... How I can fix that??

Thank you.
[Desire Android Development] kubino99:
You cannot fix USB without root! You need root access to flash misc partition.
[Desire Android Development] davidporter1010:
I have to find another solution, but I think the solution is impossible. :(
[Desire Android Development] The Professor:
You can re-root by running step 1 of the rooting process - this will load a testing ROM that has root access, after which you can continue with the remainder of the steps.
[Desire Android Development] :
Using testupdate.zip from Paul's method (The file that is used in step 1) can be renamed to PB99IMG.zip and flashed that way. That image enables root access - you should be able to follow the guide from there.
[Desire Android Development] davidporter1010:
[QUOTE = El profesor; 6650249] Se puede volver a la raíz ejecutando el paso 1 del proceso de enraizamiento - esto se carga una ROM de prueba que tenga acceso de root, después de lo cual puede continuar con el resto de los pasos. [/ Quote]

I want to know this please. if you do not mind giving an explanation, I would appreciate forever
[Desire Android Development] davidporter1010:
which is the link testupdate.zip, if you please
[Desire Android Development] davidporter1010:
sorry for my English ... Translator :rolleyes:
[Desire Android Development] The Professor:
See above: pull testupdate.zip from Paul's root method's first step, rename it to the PB99IMG.zip and flash it, or just run step 1 normally if you can run a testRUU file on your computer. If there's something you don't understand, I'm afraid I'll need you to be a little more clarification on what that is that you're missing.
[Desire Android Development] The Professor:
How did you root your phone? Read this.

In the terminal window, enter either 'step1-windows.bat', './step1-mac.sh' or './step1-linux.sh' as appropriate.

That will flash you with a rooted test ROM that should allow you to proceed.
[Desire Android Development] davidporter1010:
step one is done. and renamed fastboot PB99IMG.zip and from all right to verification and everything done ok ... and now
[Desire Android Development] The Professor:
Now follow the steps in the linked thread. Get your CID from 'fastboot oem boot', plug it into misc.img, download the flash_image script, move them both into /data, chmod the flash_image, and flash the misc.img back onto misc.

Check the thread on MoDaCo, it's very helpful. :)
[Desire Android Development] MojUk:
Anybody that could assist please? :D
[Desire Android Development] manks:
Thanks, this worked a treat...
[Desire Android Development] The Professor:
MojUK, I answered you on page two - sorry I didn't call you out by name. :)
[Desire Android Development] DocRambone:
Yepp, my turn to have a usb-brick ;(

When i made a nandroid restore the screen start to flicker, and after it booted up my usb and sd was gone.

BUT this guide restored my bricked phone again, so BIG thanks for the great work :)

Update, maybe to early to be happy, this morning the usb brick is back... even without any new flash..
[Desire Android Development] atconc:
Bump - how do we get this made a sticky??
[Desire Android Development] Letitflow:
The thread is already linked in the Sticky "Informative Links & Info - Read first"
[Desire Android Development] ikbentim:
Hi everyone

Today i rooted my htc desire with the r4 method using the "Pays-ROM Desire Sparta v1.1 Dalvik+A2SD (Vanilla taste) [05/29/10] " rom.

Everything went well i thought i partitioned my SD card for A2SD the phone booted fine everything was working.. until i connected it to my computer.

On my MAC it doesn't display anything

On my windows it says theres an external drive connected but when i click it it can't load the drive.

So i came across this thread and i tried the method of unbricking the device.. i changed it to HTC__E11.. but what i don't know if my radio rom is correct with the image provided in this thread.

Can someone please help me fix my usb?? i might be overlooking something but this is what i tried so far
[Desire Android Development] ikbentim:
bump, anyone please?
[Desire Android Development] Rudolfje:
Did you partition your SD card properly, with the right types in the right order?

Did you flash the image?

AFAIK the radio rom version doesn't matter.
[Desire Android Development] GhostR1der:
What is the procedure to move the files with a Mac terminal?

The phone must be in bootloader mode or what?

thanks
[Desire Android Development] Rudolfje:
Power up the phone while holding down volume -. Select recovery using vol - (down) vol + (up) and power button to select.

Wait for the red triangle.

Push files using:

./adb-mac push source dest

What are you trying to do, isn't there an ./recovery-mac.sh? (start with sudo)

I always start recovery using the recovery-linux script

mount the sd card with:

./adb-linux mount /sdcard

push the rom with

./adb-linux push signed_update.zip /sdcard

and after that I control things from the phone.

Hope that helps.
[Desire Android Development] GhostR1der:
You were very useful, thanks....but it doesn't recognize the phone: device not found.
[Desire Android Development] Rudolfje:
./adb devices

adb devices will give 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.

It should list your phone when it's connected.

Did you start the adb-server as root? If not, kill it and start it as root.

If you're USB bricked and unable to push any files you have to place them on your SD card some other way.
[Desire Android Development] blauze:
Freaks out

I just received my HTC Desire so I'm moving to this forum now, I was a heavy flasher on HTC Vogue, I used to have a new perfect personalized build each day for almost a year with WinMo 6.5. But now this USB-Brick things freaks me out. Can you say flashing Desire is more hazardous than the Vogue?? :mad:
[Desire Android Development] :
More hazardous yes, worth it, yes

The usb brick issue is a non issue now as it takes about an hour to solve... And we have a fixed recovery that we install from the sd card now, so hopefully this will stop us from having anymore usb bricks;))

I have been bricked once, but fixed it no problem...

A rooted phone has benefits that far out weigh the negatives.. Im running froyo on the desire due to having a rooted phone, so I would root every time;)

JD
[Desire Android Development] GhostR1der:
My USB is bricked, but I don't know where I have to put the two files (on sdcard of course, but in what directory??). After I manually placed the files, what I have to do? ADB doen't recognize any device...

thank for your patience
[Desire Android Development] Rudolfje:
Issue the commands from a terminal on your phone.

Better Terminal Emulator or Connectbot.

From first post, assuming you have a mtd0.img with the correct CID
[Desire Android Development] GhostR1der:
Ok thank you, man... But Better Terminal isn't free, and ConnectBot says me "permission denied"
[Desire Android Development] Rudolfje:
Start with 'su' to become root.

Indicated by a # in the terminal.
[Desire Android Development] globalm:
I would like, to check my understanding of this issue and the fix. I am new to the Desire, although I had a Hero for a while.

Is the following the case?

The USB Brick problem is caused by corruption of the 'misc.img' portion of ROM. If I make a copy of my existing 'misc.img' and store it safely along with 'flash_image', I can restore my original 'misc.img' at any time and solve the problem if it actually arises. This implies that under normal use, 'misc.img' will not change over time.

Have I got this right?

I'd like to know so I can prepare the 'Insurance Policy'.

Thanks.
[Desire Android Development] Rudolfje:
That's correct.

AFAIK the new recovery method (also in the stickies) doesn't cause USB-Bricks.
[Desire Android Development] globalm:
Thanks.

I'll get it copied and standing by anyway.

;)
[Desire Android Development] pina_:
I bricked this Desire and I copied the 2 files to my SD.

Then I used the commands in terminal emulator:

su

cat /sdcard/flash_image > /data/flash_imago

cat /sdcard/mtd0.img > /data/mtd0.img

Got no error messages, and rebooted several times, entered the same commands several times and still no unbrick :/

I tried the the chmod command chmod u+x /data/flash_image but got the message: 'bad mode'

chmod 755 /data/flash_image results in no error messages... but still no unbrick... anyone ?
[Desire Android Development] globalm:
You need a clean and correct copy of your misc.img and then you need to flash it.

If you follow the first post in this thread exactly you will get fixed.
[Desire Android Development] cells224:
I tried to follow the procedure, but it does not work.

recovery mode no longer works.

when I run Windows recovery, the window closes.

I blocked in step 10:

10. Flash the modified image:

CODE

/data/flash_image misc /data/mtd0.img
[Desire Android Development] Rudolfje:
Did you try that command from a terminal on your phone booted into android?
[Desire Android Development] cells224:
not from a PC. cmd

my phone does that restart
[Desire Android Development] ptimothyp:
You saved my phone

Thanks to you guys my phones is working again. Thanks to all.
[Desire Android Development] nikosrs4:
now that you enabled sdcard, you could try the recovery without a pc, put it in your sd and follow the procedure..then flash a rom(also moved in your sd) after you wipe.

and assuming your phone starts normally, run the commands via an emulator.
[Desire Android Development] franklinvv:
I went through this thread but I couldn't find how I can backup my misc partition? My nandroid backups don't contain an misc.img. Or would it be useless to keep a misc backup if you use ROM Manager + ClockworkMod Recovery?
[Desire Android Development] globalm:
Get flash_image.zip from the first post in this thread and copy it to your SDcard then issue this command in ADB shell or terminal emulator

cat /dev/mtd/mtd0 > /sdcard/misc.img

Now copy both files to the /data folder. I used root explorer to do it or you can

cat /sdcard/misc.img > /data/mtd0.img

cat /sdcard/flash_image > /data/flash_image

then

chmod 755 /data/flash_image

Now it's all ready to use if you ever need to.

Execute the fix, if needed, with

/data/flash_image misc /data/mtd0.img
[Desire Android Development] franklinvv:
Thanks for the info! I didn't realize I could simply cat mtd0 to a file. :-)

Is there a reason why you copy flash_image by cat'ing it instead of using cp? Seems like a funny and strange way to copy files ... :-)

-------------------------------------

Sent via the XDA Tapatalk App
[Desire Android Development] brandon1108:
can someone please help me find out my "rom version"

thanks,

brandon
[Desire Android Development] Rudolfje:
It is, but cp isn't available.

ROM version can be found in 'About the phone', 'Software information'
[Desire Android Development] brandon1108:
it just says "pays desire sparta"

i've pm'd pay asking him for the rom version

thanks anyway