yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] fezy:
Hey guys, are the majority of USB bricks caused during nandroid restores? Because i've had to restore my phone twice, first time was sept last year few days after i bought the phone and it got USB bricked and the second time i tried a restore was today and tadaa a USB brick, fortunately im s-off so fastboot oem eraseconfig fixed it up straight away but i'm beginning to think theres no point making a nandroid backup if im going to end up with USB brick every time i restore
[Desire Android Development] zen15:
Did you already set up htc driver and adb in your pc?
[Desire Android Development] zen15:
Yup.., you're right, i've changed my recovery and that solve my problem
[Desire Android Development] teufel82:
The driver are installed, but not started Code 10.

i have the driver several times deinstalled and then new, same Code 10.
[Desire Android Development] RandomPlayer:
Hi!

I got usb brick and was trying to use this android flasher http://xdaforums.com/showthread.php?t=794638 and it pops up this site http://ks25738.kimsufi.com/misc/ I know what I should put in cid but what that ROM means? I don't know where I should check that... at least 'fastboot oem boot' didn't show that information
[Desire Android Development] kev94:
Boot in android, and go to settings > system informations and it'll display whatcha looking for
[Desire Android Development] jaavaa:
I think he cant boot to system since he has a brick, right?
[Desire Android Development] RandomPlayer:
Nevermind I just solved it, some pages ago somebody mentioned that 'fastboot oem eraseconfig' is enough if you have s-off and indeed it worked. Case closed at least right now :)
[Desire Android Development] zen15:
all the way you must set it up to working properly....or you can try it in other pc to see if it working or not, by this htc driver is working properly you get a lot of benefits to the fastboot command, trust me..:D
[Desire Android Development] DJ_Jedi:
Guys, i have to send my phone to HTC for a problem with buttons, so i decided to do a nandroid backup of my ROM before flashing the RUU and after the process i got an usb brick, and it sucks so bad. I flashed, rooted, unrooted, nandroid backuped and restored a lot of times and never a problem, and now for a stupid nandroid i brick my phone.

BTW i use the guide and generate the mtd0.img but when i try to misc flash_image and mtd0img i got:

and cant solve it. Any help? I have to take my phone to HTC tomorrow, please help me.
[Desire Android Development] angusc:
are you s-off? If so just run the command:

fastboot oem eraseconfig

see my eaelier post some few pages earlier with assistance for unrooted and bricked phone.....it worked for me.

Sent with Desire.
[Desire Android Development] oworsnop:
Ok, I seem to have a bit of a problem and have spent the last 10 hours or so reading and trying all the solutions here and got nowhere.

I have an Orange branded but sim unlocked HTC desire with HBOOT 0.93.0001 and PVT3 SHIP S-ON, and my phone doesnt recognise my sd card at all. I have rooted it with unrevoked 3 which says rooting was successful, so im assuming that i am rooted.

I have tried the 'fastboot oem enableqxdm 0' command which according to command prompt runs OKAY but I still have no access to my sd card.

I read that I should try the 'fastboot oem eraseconfig' command afterwards as well but that gives me an error 'INFO[ERR] command error!!'

Literally at my wits end here! Any help would be appreciated!
[Desire Android Development] Exiled_SouL:
Don't know if this information help or not i was usb bricked my desire few days ago and when tried to unroot via pb99img.update from hboot. i got stuck on stock froyo 2.2(s-on) with out any usb function and sdcard.then i did the steps below and successfully fix the usb brick.

after 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.

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.

after that i copied those update file in phone memory

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

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.
[Desire Android Development] oworsnop:
Thanks for your advice.

I have managed to S-OFF my phone so now i dont get any errors in command prompt, but my sd card is STILL not recognised.

Everything thing else is showing, tethering, charge only etc, just not the disk drive option.
[Desire Android Development] morgan39:
FAILED (status malformed (1 bytes))

Well, I think I have briked my Desire.

When I pass in fastboot the command "oem fastboot.exe enableqxdm 0" I get "FAILED (status malformed (1 byte))" something to do?

I have S-OFF and I agrre to recovery (AR-Desire 2.1.0) but I can´t pas any zip because for the recovery is not a SD.

Thanks

Edit: I tried the commands from bootloader, not from fastboot ¡¡¡¡¡

The truth is that I have read the entire thread and learned a lot so I can be more relaxed for the future

Thanks a lot.
[Desire Android Development] Exiled_SouL:
Lots of user fix there usb brick by following the tutorial including my self maybe you didn't understand the procedure properly so read carefully,if you have confusion then ask question before blaming some one and nobody force you to follow the guide,you do this at your own risk. :)
[Desire Android Development] angusc:
You did something wrong, the tut is good. Shares your current issue, what is the status of your phone, s-off or on? We will help you fix it!

Sent with Desire.
[Desire Android Development] shirley:
My phone lost USB functionality after updating to latest Cyanogenmod Nightly using ROM Manager.

Scared the cr*p out of me. At first I thought my SD card had been corrupted , but then realised the phone wouldn't see any of my other SD cards, nor would it mount them when connected to my pc.

Didn't know what to do, My warranty is invalid due to custom ROM, S-Off and everything.

In a panic thought I would run an RUU, and then re-root etc. (Luckily) this didn't work, because the Update Utility could not "see" the phone.

Then found this thread, followed instructions, and it worked like a DREAM! (original SD card working fine, so have not lost backups, music, photos etc)

Many many thanks (problem solved and a bit more learnt about messing with my phone)

Excellent.
[Desire Android Development] rawdealer:
angusc...I have a Q for U :)

i'm stock (now) can't mount sd (usb bricked) :)

I put rageagainstthecage-arm5.bin, mtd0.img and extracted flash-image on SD via comp.

when I type this in TU

5. Copy the files to the Terminal app data directory (the only place on the data partition you will have write access while running the Terminal), and make the binaries executable

Code:

cat /sdcard/rageagainstthecage-arm5.bin > /data/data/jackpal.androidterm/shared_prefs/rageagainstthecage-arm5.bin

cat /sdcard/flash_image > /data/data/jackpal.androidterm/shared_prefs/flash_image

cat /sdcard/mtd0.img > /data/data/jackpal.androidterm/shared_prefs/mtd0.img

cd /data/data/jackpal.androidterm/shared_prefs/

chmod 755 rageagainstthecage-arm5.bin flash_image

6. Run the exploit

Code:

/data/data/jackpal.androidterm/shared_prefs/rageagainstthecage-arm5.bin

I got permission denied after first row :/

what to do please :)
[Desire Android Development] rawdealer:
Solved :)

sent from eS-OFFed Desire loaded with CM7
[Desire Android Development] angusc:
Please detail what you did so that it might help others later.

Glad that you fixed it!

Sent with Desire.
[Desire Android Development] SirHades:
Thank you! That is exactly what I was looking for!

It worked perfectly.

Here's what I did : I generated a custom mtd0.img with link from the OP.

Downloaded Terminal Emulator from the Market

Copied the files (mtd0.img and flash_image) to the SDcard

And used these commands In Terminal Emulator :

su

cat /sdcard/flash_image > /data/flash_image

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

chmod 755 /data/flash_image

/data/flash_image misc /data/misc.img

Rebooted and all was in working order again.

Thank you all!

(HTC Desire, LeeDroid, Amon-RA, S-on)
[Desire Android Development] ng93:
Ive got a HTC desire running Ginger Villain 2.7, how do I find out which rom version this is?
[Desire Android Development] angusc:
Menu - settings - about phone - phone software

Sent with Desire
[Desire Android Development] ng93:
thanks working well
[Desire Android Development] pattiman:
I'm trying to fix the USB brick problem, but this solution requires a USB driver (and/or phone in debug mode), but Windows 7 x64 does not install the SDK driver or the HTC Driver (no suitable driver found, despite the fact the I point the driver installer to the correct folders). My phone, identified as Android 1.0, constantly has an exclamation mark next to it in the device manager. I've also tried different USB slots.

Currently I'm only getting HBOOT and recovery mode. Since my SD card can't be mounted/formatted inside the phone, I'm at a loss here. Hopefully someone can help me with this issue. I tried formatting it on the PC, but then it still can't be mounted on my phone.

I followed this tutorial on how to install HTC drivers. The device is now installed, but I still can't connect to it. adb says there are no devices
[Desire Android Development] angusc:
Download terminal emulator on your device then run the command to r enable your sdcard, and if you are s-off, followed by the command to delete the config file to clear your usb brick.

fastboot oem enableqxdm 0

fastboot oem eraseconfig

Sent with Desire
[Desire Android Development] pattiman:
@angusc, thanks for your reply.

I'm not able to run a terminal, because I'm not able to boot into the ROM. I am able to go to recovery and enable USB-MS. Then I'm able to see my device in adb. But in fastboot mode, I'm not able to see the device so I can't follow this tutorial.

Edit I am able to run fastboot commands in fastboot (USB) mode. I can run "fastboot oem enableqxdm 0" which reboots the phone and shows met the "Android", but it looks like it keeps rebooting (flickering). I pulled the battery from the device and rebooted the device into recovery. Then I was able to mount and access the SD card. I put update.zip on it and rebooted the device. So everything seems to be fine now :-)
[Desire Android Development] angusc:
What happens if you put the phone in to recovery menu?

Sent with Desire
[Desire Android Development] pattiman:
@angusc: the USB brick problem has been solved. At some point I was able to access the SD card and put a zipfile on it.

Before I fixed it, I was able to enter fastboot and recovery mode, but the device was not recognized in Windows.

To solve it, I did the following

- manipulate the HTC driver file so it would install for my device

- switch phone to fastmode and performed 'fastboot oem enableqxdm 0'. This rebooted the phone and showed me the text "Android", which was flickering (rebooting?)

- I removed the battery and rebooted to recovery and enabled MS USB

- I put update.zip on the SD card and flashed it

- At this point I was able to format the SD card and install a new ROM on my phone
[Desire Android Development] JDR0iD:
THANK YOU SO MUCH GUYS!!!!

BEEN TRYING TO FIX THIS FOR GOD KNOWS HOW LONG!

thank you
[Desire Android Development] Smii:
Okay, so I'm USB Bricked and trying the method from here (http://xdaforums.com/showthread.php?t=691639) but I'm getting a Segmentation fault. Any ideas?

There's a lot of jargon/garbled characters in the mtd1.img file I downloaded, too. Is that the fault of my hex editor or is that normal?

My CID is VIRGI001. I'm using Villainrom 2.8 so I have no idea what my software version is as it doesn't list it on Software Information.

Bit stuck...!
[Desire Android Development] Smii:
Huh! Seems to have resolved. I followed the Modaco instructions and it didn't work, but then I tried again and it is consistently now. I guess it's fixed!

Thanks guys!
[Desire Android Development] Smii:
Apologies for the third post in a row, but it didn't work. No idea why, but it now doesn't work at all (new day, new restarts on both phone and battery. Phone battery has died in the interim, if that makes a difference.)

This is frustrating!
[Desire Android Development] zen15:
Are you s-off or s-on? If you're s-offed, just adb and boot in fastboot mode, try fastboot oem eraseconfiq thats all,forget those cid and rom number...

Hope this will help...
[Desire Android Development] darkspearxz:
Hi there,

Got USB Bricked when installing a new ROM. However, I was S-OFF and now my phone appears to be S-ON

So now I have S-ON but my CID says "super CID". Any help guys?
[Desire Android Development] darkspearxz:
Ok, so I tried using the fastboot oem enableqxdm 0 method, even though I have S-ON and now at least my phone will recognise the SD Card. However, USB still isn't working. Any help? Thanks in advance.
[Desire Android Development] backfromthestorm:
Read two posts up.
[Desire Android Development] darkspearxz:
Method doesn't work as I'm S-ON. Thanks for paying attention anyway :)
[Desire Android Development] Smii:
You, sir, are a beautiful beautiful man and I now love you (platonically) and award you One Internet. :o

Edit: In fact, you've even gone and fixed my Bluetooth problem too - it's now fully functional again! Gosh darn, that's a wonderful thing there.
[Desire Android Development] GhostSoldier:
I rather learn how I do it in terminal. I did a search for mac-based explorer but didnt find much.

Could you point me to a thread or some tips?

I have never moved files before using terminal so basically I need to know how I can get my phones name/adress and point the files to a specific folder on that adress.

Thanks again guys!
[Desire Android Development] The Professor:
You can't do it from an external terminal unless you're not already bricked. You have to do it from a terminal app inside the Android OS or by using root explorer.
[Desire Android Development] GhostSoldier:
Edit. I am already bricked. Okey, but I still dont know "how" to move the files.
[Desire Android Development] The Professor:
mv /sdcard/flash_image /data

mv /sdcard/mtd0.img /data

Then

cd /data

ls

And make sure that directory has those two files in it.

Then

/data/flash_image misc /data/mtd0.img

Replacing mtd0.img with whatever your image is titled wherever it occurs.
[Desire Android Development] MojUk:
Hey guys, this is great news! Much respect to the devs behind this :D

I only got my Desire yesterday after having a Hero before (rooted up to the max :D) My initial impression from spending aaaaages reading on here and modaco is one of confusion, i may have the wrong end of the stick and become uber confused after reading quite literally hundreds of pages lol!

<confusion>

This 'bricking' issue (now solved) is caused when entering 'usb' mode whilst in recovery when you are attempting to flash a new rom not when initially 'rooting' the device? But 'rooting' a Desire isn't the same as 'rooting' a Hero as you don't have same kind of low level access on newer HTC devices as you did on the G1, Magic, Hero etc?

</Confusion>
[Desire Android Development] GhostSoldier:
Ok!

Now I get failed, cross-device link. :S
[Desire Android Development] cedeel:
Put a / after data

as in "mv /sdcard/flash_image /data/"
[Desire Android Development] yosidia:
Change CID

can i use this method to change my CID ?
[Desire Android Development] Gooner4_1998:
Re: [USB-BRICK FIX]Restore USB function on your bricked Desire

Having read the info over at Modaco I want to pull the misc.img file off my rooted but non bricked phone as a back up. Am using connectbot and running the required command I.e.

cat /dev/mtd/mtd0 < /sdcard/misc.img but I keep getting "no such file" back.

What am I doing wrong?

Thanks!

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

Sent from my HTC Desire
[Desire Android Development] cedeel:
you should learn to read accurately, when copying commands. >, not <!
[Desire Android Development] The Professor:
No. CID is just reflected here, not dictated by this value. It's stored elsewhere, and has a backup on top of that.

To the Hero owner, enabling USB mode doesn't have anything to do with the brick. The brick occurs when the recovery method overwrites mtd0, so it can happen any time you push recovery.

People are working on getting a better method, but for now, at least we have a way out of the madness. :)

And right now, you're correct - we have root, but not /system access while the phone is running. You can modify /system in recovery, but not outside.
[Desire Android Development] Gooner4_1998:
Re: [USB-BRICK FIX]Restore USB function on your bricked Desire

@cedeel, fair comment and thanks!

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

Sent from my HTC Desire
[Desire Android Development] terminal 7:
yyyyaaaaaaayyyyyy!!!!!

first class XDA-DEV team work , just what this thing has always been about, i love it !!!

hooo haaa heeee yaahh eee oooo weeee aaahhhh yayyyy!!!

(sorry got a bit over excited - i can root my desire and go all froyo now :) )
[Desire Android Development] GhostSoldier:
Still same error.

mv /sdcard/flash_image /data/ a

mv /sdcard/flash_image /data/a

mv /sdcard/flash_image /data/ a/

When:

a mv /sdcard/flash_image /data

Permission denied
[Desire Android Development] cedeel:
But why the a?
[Desire Android Development] The Professor:
Yes, what are you doing with the a there?

mv /sdcard/flash_image /data/

Or just download root explorer and do it the easy way, darn it.
[Desire Android Development] GhostSoldier:
Sorry, feel like a total idiot.

I thought you meant "write" a / after data.

Not - write a slash after data.

Well, embarresment or not, I still get the same error with

mv /sdcard/flash_image /data/

Is there a root explorer to mac then? found one, but all the links to it seems to be fake.
[Desire Android Development] eViL D::
All you probably need is

su

cp /sdcard/flash_image /data/
[Desire Android Development] eViL D::
buy it from the market......
[Desire Android Development] cedeel:
No need to feel like that, we've all been new to this at some point.

But like eViL said, you probably need to enter 'su' first, as a single command.
[Desire Android Development] mcappleman:
Okay so not only is my phone usb bricked but I'm also not rooted. It won't let me do anything without rooting the phone, but I can't find any way to root without usb! Please help!

I have an Alltel HTC Desire running a US Cellular ROM yet from the looks of it fastboot is on the phone. If I hold volume down and tap the power button I can go into fastboot mode
[Desire Android Development] angusc:
Read my earlier posts in this thread. I give full instructions on how to re root and get out of this exact same scenario.....it worked for me.here is the thread link

http://xdaforums.com/showthread.php?p=14459375

Sent with Desire.
[Desire Android Development] mcappleman:
EDIT SOLUTION FOUND:

I went to UnRevoked.com and to their online help page (hxxp://webchat.freenode.net/?channels=unrevokedtest) and got great assistance from kmdm & @ZanaDroid who got me out of jail....thanx guys!! I had already downloaded flash_image & mtd0.img from the first post of this thread and saved to my SDCard. REMEBER to unzip the flash-image.zip file!!

Okay so I put those two files on my sd card

Here is the log follow these steps if you like me in above condition (Stock ROM.... NO ROOT....USB Bricked):

[16:41] how do you disable qxdm? (Mount the SDCard)

[16:41] fastboot mode

[16:41] fastboot oem enableqxdm 0

[16:41] fastboot oem boot

What do these commands above mean? Where am I typing them in or what? I can hold volume down button and then tap the power button. I can select fastboot ,but nothing happens. Sorry kinda noobish at this!
[Desire Android Development] mattmanwrx:
fastboot is used in cmd prompt..

open cmd prompt and change directory to your android sdk folder with the fastboot.exe in (I think tools) (cd c:/android-sdk-windows/tools is where mine is)

thats where you type it. You connect the phone to the pc with the usb cable and do as you said above (hold power and down etc)

then type those there... :)

(not good on explaining, :rolleyes: hope this helps! )
[Desire Android Development] mcappleman:
Okay thanks. I got fastboot running , but when I type in the command "fastboot oem enableqxdm 0" it sits there saying "< waiting for device >"

Which screen should my phone be on in order to get it to work? I have it on the white fastboot screen and plugged into my usb port. When I plugged it in windows didn't recognize anything.......is that bad?
[Desire Android Development] mattmanwrx:
Hmm, I'm not 100% sure on this but it might be because you need the HTC drivers installed... a quick Google will find them... (maybe on unrevoked site?)

They install with HTC sync (i think) but they say to uninstall HTC sync but leave the drivers...

I think the screen is correct... hold vol down and on... then press the power button to access fastboot...
[Desire Android Development] mcappleman:
Okay I installed them restarted everything, but still waiting for the device. Windows doesn't do anything when I plug the phone in through USB. Should it at east try and install a new driver or something?
[Desire Android Development] mattmanwrx:
I'm not too sure as I've never done it my self..

It.might not recognize it cos of usb brick.. and if that is the case then maybe get back to irc...
[Desire Android Development] angusc:
Just look at your phone screen, if you are connected (device found) when you connect the usb then you should see "fastboot usb" which indicates you are ready to send commands.

you also need to install "terminal editor" just download from the market. All the steps that I posted were actually done directly on the device using the terminal editor

Regarding the commands, as you are usb bricked (meaning that youcan not access the sdcard from the phone file manager AND that your Bluetooth can not connect) then the first command will allow you to access the sdcard.

Make sure that you have the two files saved on your sdcard and don't make the same mistake that I did by not unzipping after you downloaded that one file.

Sent with Desire.
[Desire Android Development] mcappleman:
I typed: "fastboot mode" into the terminal and it says "permission denied"

How do I mount the SD card?

Hmmm
[Desire Android Development] andreigherghe:
How do i brick the USB? :D

I want to play with it in bricked state :D
[Desire Android Development] zen15:
Well....., nice to hear that, hehehe

I'm happy for you mate......
[Desire Android Development] zen15:
I've read somewhere that ppl got bricked when they nandroid using clockwork and accidentally restore using amon ra, and vice versa, if you really want the brick state just try it....