[Desire Android Development] Exiled_SouL:
As My desire is amoled and unbranded i don't know for sure if this tut gonna help Slcd/Branded desire user if some one with slcd or branded desire fix there brick by follow this tut please leave a comment Here.

*To work this Hole Thing Out You need to setup Adb and fastboot in your pc,if you don't know how to do it follow this nice Guide.

http://androidforums.com/desire-all-things-root/337356-faq-adb-fastboot-windows-updated-1st-june-2011-a.html

Last few days i saw lots of people having usb brick problem even after they flashed the Ruu.exe or PB99IMG.zip update via hboot that because misc.img is corrupted and they stuck on stock rom without any usb function.Few Days ago i was in the same situation and solved my problem thought i should share this Information with people who need help.

Note-If you usb bricked on s-off device then try this fastboot command to solve this

fastboot oem enableqxdm 0(unblock your sd-card)

fastboot oem eraseconfig(fix misc partition)

if above command don't work then you have to flash a ruu.exe or PB99IMG.zip file via hboot to return to stock

rom usally that fix the usb brick but some time that trick also fails,if that happen then you have to go through the process below.

If your device is branded then create a goldcard and flash a unbranded PB99IMG.ZIP cause maybe this not gonna work on branded device.

I solve my usb brick this way

after return to stock rom via PB99IMG.zip file flash via hboot(didn't fix my usb brick so i had to do the steps below)

1.i unlocked my sd card via fastboot command"fastboot oem enableqxdm 0" sd card recognized by phone and i can browse it via file explorer.

note-you can access your sdcard only via file explorer nothing else so after execute the command download a file explorer from android market.

2.then i copied the visionary+(it gave me temporary root access which is needed to work this whole thing out).

root explorer,terminal emulator apk and those usb bricked update file(image_flash,mtd0.img) to sdcard from pc via card reader and installed them.

before copy those update file on sd card i edited the mtd0.img to put correct cid n rom info via hex editor.

To find cid info

If you don't know your Cid then type this command in fastboot-fastboot oem boot this will show you info about your phone cid.when the info shows up look for‘INFOCID HTC___xxx'

To find The Rom version-Go to Settings>About phone>Software Information and note your Software Number.

3.after that i copied those update file in phone memory to copy file in phone memory you have to set permission for r/w.When open root explorer look at the top left corner you will see mount as r/o mount r/w tap on mount r/w that's it you set permission to read/write on your phone memory and copy the file in

/data/data/ folder and set permission for r/w and execute for those file via root explorer.

4.after that i simply typed this command in terminal emulator

"su

/data/data/flash_image misc /data/data/mtd0.img"

Rebooted my phone and voila usb brick is gone htc sync,usb tethering,sd card mount,charge everything is working and now i am rooted and s-off again :)

Note-you don't need the rageagainstthecage file which only need if you try to get root access via terminal emulator which is lengthy n complicated but with visionary+ you can get root access with 1 click and it's much easier than typing command in T.E.

If above information helps you to fix Your usb brick Please Leave a comment Here and you can also hit the Thanks button ;)