*To work this whole 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,usually that fix the usb brick but some time that trick also fails,if that happen then you have to go through the process below.
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
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,usually that fix the usb brick but some time that trick also fails,if that happen then you have to go through the process below.
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