yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] zen15:
yes...... stupid me........:D

i realize that this morning..., after being stuck for 3 days trying to flash these files.......without extracting the flash_image.zip......(stupid....stupid...)

one thing i want to make sure before flashing flash_image..

Do i have to change the rom to htc sense one? or is it ok to flash with my current rom (MIUI)?

cos' i edit the mtd0.img with HTC sense rom number....

thanks
[Desire Android Development] cagra:
you should flash Flash_image with the number matching the current rom on the phone.

so do a 'fastboot oem boot' and use the number you get there. I did it on my phone with a Miui rom with no problem
[Desire Android Development] lvnatic:
Ok, forget all these stupid mtd and flash image files and that terminal emulator, just download update.zip from this thread and put it on SD card.

1. Turn off phone, power it again via volume down+power button.

2. Go in recovery and flash the update.zip just like any other normal rom/radio/kernel/etc.

Its 10 sec work, solved the entire problem, everything is working like before, no issues.

With no offense to the op, but this guide is a bit too complicated or maybe its too old.
[Desire Android Development] mahastat:
@ zen15,

Thanks for guiding me.

I just started to do what is said in that thread. I'm stuck at editing 'mtd0.img'. I don't know how to do this. My CID is HTC_044 as I quoted in last post. Please see that. I'm waiting for your guidance.
[Desire Android Development] mahastat:
No su

I was trying to run commands in terminal emulator on my phone but it told "permission denied". I've no super-user access, I told you. So, I think I've to search a way to get that.

Waiting for your response again.
[Desire Android Development] zen15:
Hi mahastat..., i'm really sorry for this time, i'm just a noobs ...:D

i really have no idea how to edit mtd0.img with hex editor, though i was tried it last night but still don't get it how to use that tool... (my english are very limited, so i can't understand clearly every guides i found on google..:))

i've just read this link somewhere... and i think this could help guiding you to fix your problem....

i generate my mtd0.img file through the CID generator link in the first post...

you can't use terminal emulator on non rooted phone, because you have to type 'su' to have super user permission...

i can use my phone normally, but still in USB Brick situation....

i tried update.zip (the easiest way) but still no go..., when using MIUI Rom, usb debugging up and down, repeated again and again....can't mount my sd card in pc, but when i trying another rom, Ginger Redux, Leedroid.., i never have usb debugging icon appear, and sometimes when i unplug my phone from wall charger, it reboots by itself with no reason....:confused:

maybe some expert at xda can help our friend to sort out the problem...
[Desire Android Development] zen15:
thanks...

i got mine, CID HTC__621, what i do not understand are rom number? in MIUI there is no Rom number..., so my thought was only in HTC rom we can find rom number...

ok now i've the flash_image and mtd0.img and my current rom is MIUI...

i can flash those files with peace in mind....hehehe (hope everything well..)
[Desire Android Development] zen15:
i have done this...., but still in brick...:confused::confused:
[Desire Android Development] squrl:
the update.zip method didn't work for me either. i have solved it following the OP's guide.
[Desire Android Development] alpinux:
The manual says the following:

2.3 Setting up QPST
2 QPST installation occurs in the following stages:
3 1. Setting up a laptop or desktop computer
4 2. Connecting phones to the computer
5 3. Installing the QPST software
6 4. Initial startup
7 This section contains the information needed for setting up and configuring QPST. For
8 information about your computer or mobile phone, refer to the user guide provided for that
9 product.
10 For more information or assistance during system setup, contact QUALCOMM Technical
11 Support at support.cdmatech@qualcomm.com.

12 2.3.1 Setting up the computer
13 Before installing QPST, you must first set up the computer:
14 �� Make sure the desktop or laptop computer is ready to power up and has either Windows
15 NT 4.0, Windows 2000, or Windows XP operating system.
16 �� If installing QPST on Windows NT, the system should be upgraded to Service Pack 3 or
17 higher. Users installing on Windows NT, Windows 2000, or Windows XP must have
18 Administrator privileges for the system. After QPST is installed, you can run it from any
19 Windows NT/2000/XP user account.
20 �� At least one available serial I/O port (COM 1 to 9) is required for connecting the test phone to
21 the computer.
22 �� The computer hard disk must have 20 MB of free space to store and run QPST. Additional
23 space is recommended for storing backup and download files.

24 2.3.2 [B]Connecting phones[/B]
25 The following sections describe how to connect a QUALCOMM phone to the QPST computer.
26 [B]You may need a 9-pin-to-25-pin adapter to connect the serial computer of the data cable to a
27 25-pin port. QPST can monitor up to eight serial ports and attached SURF phones.[/B]
28 Phones may be connected

So we probably do need a serial cable!
[Desire Android Development] kubino99:
which version of QPST you are looking to ? I've found several threads in samsung forum and they've connected to QPST via stock USB cable. I think we need very latest version of diag drivers and QPST software.
[Desire Android Development] cedeel:
What manual? I don't think any recent manual would mention NT.

Also, clearly the device is set up with the USB connection.
[Desire Android Development] The Professor:
adam235 managed to connect to it once. He went to play around in memory, it asked him to reboot into a different mode, and after that, he couldn't connect again. He's playing with FroYo now that he's unbricked, though. :p
[Desire Android Development] samac92:
This is awesome news! I'll try froyo now :D

Nandroid currently doesn't backup the misc partition, (it says it's not backed up as nothing useful lies in that partition)

But if it did backup misc, then a simple restore from your nandroid back up would be a quick way to fix if you USB bricked?

How do we get nandroid to backup the misc partition?
[Desire Android Development] kubino99:
perfect that's good news we are able to connect. I'll play with that. I'm most interested in the file manager option and if there is possibility to replace the stock recovery via custom one :-)
[Desire Android Development] alpinux:
I found version 2.7.323 (2008-09-19).
[Desire Android Development] alpinux:
Maybe this driver works. They say it's up to date.

http://xdaforums.com/showpost.php?p=6635716&postcount=2
[Desire Android Development] xtcislove:
If u "brick" your phone again u will not be able to run recovery menu so a misc nandroid backup is senseless! :D
[Desire Android Development] kubino99:
but you'll be still able to flash it via flash_image tool.
[Desire Android Development] abc27:
Brilliant, now I can flash roms as freely as ever. I hope I helped somewhat with my hex editing ways :D
[Desire Android Development] samac92:
But you'd have a backup of misc which would save you downloading and editing a file. I suppose a better way would be the root method to backup misc as soon as root access is gained?
[Desire Android Development] Rudolfje:
Yes, you can dump the partition after step1 of the rooting process.
[Desire Android Development] GhostSoldier:
I know this is a little OT, but I don't were else to ask. Everybody seems to be in this thread.

Im trying to restore my SD-card. With the:

Go to fastboot mode and type:

fastboot oem enableqxdm 0 (I started my phone in fastboot, then plugged it in, then navigated to my r5-folder using terminal, then entered the command above.)

Response: -bash: fastboot: command not found

Im using an iMac with Snow Leopard.

I need to fix my SD-card before getting my hands on this beautiful work! :)

Thanks for the great work guys!
[Desire Android Development] martinlong78:
I believe the command you are looking for is:

fastboot-mac oem enableqxdm 0
[Desire Android Development] cedeel:
@GhostSoldier

Look at the other thread where you posted exactly the same.
[Desire Android Development] eViL D::
@

-kubino @ XDA for providing us with the 'misc' information

-TheProfessor @ irc.oftc.net #modaco for being the first test subject + debugging

-adam235 @ irc.oftc.net #modaco for being a test subject as well + debugging

-SgtDavePwnage @ irc.oftc.net #modaco -> moral support + debugging

-DrMon @ irc.oftc.net #modaco -> being brave enough to test on his non-bricked device!

You guys are LEGENDARY! STARS in the making I say! Thanks for being so persistent!
[Desire Android Development] GhostSoldier:
Sorry for taking up all of your time trying to explain to me.

In their guide it says "Move this to /data/ , and flash the modified image using:

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

Move it to a folder called data on memory card? Or in the root-folder?

Like I said, sorry. But I just dont understand.
[Desire Android Development] eViL D::
You need a root explorer app, or terminal app to do this.
[Desire Android Development] The Professor:
flash_image and the image need to be placed in the /data directory on the phone, not SD card. As eViL said, you can use root explorer to move them from SD card to there, or you can use a terminal and the standard mv command to relocate it.
[Desire Android Development] zen15:
hi..,

after doing /data/flash_image misc /data/mtd0.img

the result :

[1] Illegal instruction /data/flash_image misc /data/mtd0.img

#

what's wrong again this time...????:confused:
[Desire Android Development] rraaka:
Hi guys,

my cid is 02__001 but when want to generate a mtd0 img in cid generator it says plz fill up a valid number :o

what should i fill up in the cid box ?
[Desire Android Development] xavierjohn22:
On the OP, read, just relax, don't just press and flash whatever anyway, nah...

Do:

chmod u+x /data/flash_image

Or Do:

chmod 755 /data/flash_image

Then:

It is mentioned "Repeat step 3 a couple of times if it doesn't seem to work well"

Which is this:

/data/flash_image misc /data/mtd0.img
[Desire Android Development] zen15:
Thanks again friend..,

And yes...I do chmod 755 and chmod u+x...before flashing...

Maybe I should try even more times....

Ok then.....:) thanks again...
[Desire Android Development] ben2300:
Hi,

I just bricked my Desire.

I have a nandroid backup, but SD don't mount, and I can't boot Android...

When I try fastboot oem boot

C:\Program Files\Android\android-sdk-windows\tools>fastboot oem boot
... INFO[ERR] boot image does not exist!!!
OKAY [ 0.409s]
finished. total time: 0.409s

Have you an idea how I can unbrick my phone ?

Thank you :(
[Desire Android Development] zen15:
First, you better reenable your sd card and radio carrier by typing 'fastboot oem enableqxdm 0' in fastboot mode
[Desire Android Development] rraaka:
plz someone generate an img for this cid for rom 2.29.405.

thnx
[Desire Android Development] mahastat:
Rooted, but unable to execute steps

Hi !

After getting root access and clockwork recovery, I tried one command. I got this

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

d_prefs/rageagainstthecage-arm5.bin

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

prefs/rageagainstthecage-arm5.bin

cannot create /data/data/jackpal.androidterm/shared_prefs/rageagainstthecage-arm

5.bin: directory nonexistent

#

Can you suggest me the right way ?
[Desire Android Development] sieempi:
http://xdaforums.com/showpost.php?p=10764298&postcount=4
[Desire Android Development] FlyGirly:
please help ...i have an pvt4 desire with hboot 0.93 ...recovery is not working and i have an usb brick ...only way usb works is in fastboot ....like i understand on many other forums i need to get root at first ...but how !? unrevoked is not working in fastboot and the only thing i found without unrevoked is for hboot 0.80 ...for hboot downgrade i have no idea what ruu i should use cuz its an slcd with vodafone brand 2.33.161 ....is there any way to get an recovery by using images in hboot ..or to get root !? please im really lost :(
[Desire Android Development] mahastat:
download recovery *.img file.

put it in androidsdk\tools folder.

boot in to fastboot by pressing back button and power button together.

run :-

fastboot flash recovery *.img

See this for an example:=

http://android.modaco.com/content/h...ed-using-adb-fastboot-help-to-flash-recovery/

I saw some RUU at

http://xdaforums.com/showthread.php?t=695667

Don't know they are for slcd or not.
[Desire Android Development] FlyGirly:
finally usb is working :) found a great great thread for hboot 0.93 without root here on the forum under desire general "any chance of fixing..."
[Desire Android Development] zen15:
after trying for 2 days..., still can't flash this mtd0.img file..

using MIUI Rom:

1. do 'fastboot oem boot' ----> done

2. generate mtd0.img file with CID generator ----> done

3. download flash_image.zip, and extract it ----> done

4. copy both files to sd card ---> done

5. do 'cat /sdcard/flash_image > /data/flash_image' and 'cat /sdcard/mtd0.img > /data/mtd0.img' -----> done

6. check the files with root explorer in /data/---> files is there and ok

7. do 'chmod 755 /data/flash_image' and or 'chmod u+x /data/flash_image' ---> done (repeated couple times)

8. do /data/flash_image misc /data/mtd0.img ----> [1] Illegal instruction /data/flash_image misc /data/mtd0.img

9. repeat again (4-5 X) same result....:confused:

- delete all files and start over again.... same result:confused:

- change rom (Leedroid) and start over again... same result:confused:

- trying in /data/data/ as i read a couple post back that someone success .... same result

now.. i don't know what to do next.....
[Desire Android Development] FlyGirly:
I read somewhere to Use 1111111 as Cid On Cid Generator ...dont know What this means but It worked for me
[Desire Android Development] lldesire:
I did it.

Should I expect something in terminal in response to this '/data/flash_image misc /data/mtd0.img' command ? I saw nothing. It just repeated the command. No errors. Nothing. Just # sign.
[Desire Android Development] rraaka:
that no. gives an invalid error at this site

http://ks25738.kimsufi.com/misc/index.php :confused:
[Desire Android Development] jayk32:
The people that are still having problems, follow the guide a couple of posts back, the one where i quoted it worked for me. It doesn't matter what Rom your using. Just type everything once and don't worry what read out u get. Then reboot ur phone and everything should be working. This is what I did and it worked for me. :) If this was helpful hit the thanks button. :)

Android Junkie :-D
[Desire Android Development] lldesire:
You did not tell your CID.
[Desire Android Development] jayk32:
Now reboot the phone, and you should be back to normal (Hopefully) :)
[Desire Android Development] FlyGirly:
sorry forgot one 1 ...it has to be eight 11111111
[Desire Android Development] zen15:
maybe it work for some but never work for me...:(

i have done it many times and nothing happened to phone, it still brick....

any other suggest....????

TIA
[Desire Android Development] zen15:
today i'm trying to do 'fastboot flash misc mtd0.img' via fastboot

the result is: sending 'misc' (640 KB)...OKAY (0,110s)

writing 'misc'...FAILED (remote: partition is not allowed to be flushed!)

finished. Total time: 0.112s

i don't know why my mtd0 partition can't be flushed, as i understand that i have S-OFFed the phone..????:confused:

can someone help me to sort this out..????

thanks
[Desire Android Development] FlyGirly:
http://xdaforums.com/showthread.php?t=813476&page=2

post #15 helped me alot even without root ...maybe that could help u with the mtd0.img
[Desire Android Development] lldesire:
OK. Did that. I've root. I've S-Off.

fastboot oem enableqxdm 0 said Ok. But, I'm unable to see sd card. No mount in recovery. Android says sd card removed.

What to do ?
[Desire Android Development] zen15:
but i have root and s-off too...

thanks anyway... i'll look that post maybe can learn something there.....;)
[Desire Android Development] zen15:
Finally FIX...!!!

After reading and trying many guide and tutorial... finally i managed to fix my USB Brick issue....

thank you to everyone who has helped in providing advice and support........
[Desire Android Development] rraaka:
which method work for you ? :rolleyes:
[Desire Android Development] zen15:
Hehe... none of those guide are working.....

1st, I used the update.zip method (the easiest way) not work

The flashing process is done and no problem but the brick still remains.

2nd, I tried /data/flash_image misc /data/mtd0.img thru terminal not working either.

The whole process is fine, but the /data/flash_image command always give the error result, it was like 'illegal operation' and something like that.

So..., I search and asking a lot of forums, luckily one of local forum moderator suggest me to flash via fastboot mode as I have s-off ed my phone, so I did it, but I got the "partition misc can not be flushed" or something like that, wtf!!, as I understand that my phone has s-off, why the nand partition misc still lock?

After days of thinking, I'm assuming that I done the alpharev s-off long ago (maybe it's initial release) and that still lock the misc partition. Read the alpharev threads and site again, and they say something about unlocking the misc partition for flashing misc for USB bricking and upgrade / downgrade hboot in ver. 1.8, suddenly something going through my head, this is it....!!! So I download the HTC hboot stock partition, flashing through fastboot command, and do 'fastboot flash misc mtd0.img' reboot... and ta...da ... my USB connection fix, Bluetooth is working too, testing with some other rom, and all fine ...

It's almost a month since I got the brick... phiuu.... finally it fix ....
[Desire Android Development] ehalai:
fastboot mode....

how to enter this mode and how can i give this command... i understand everything else but not the first step... how can i do that 1st step...

please help...

whats not working for me.

1-usb brick

2-bluetooth not working

3-battery is sinking very fast. extreamly fast

please help me with the first step for now. ill be thankfull to all of you

regards from Me
[Desire Android Development] rraaka:
after powering off your phone then hold power and vol down and you should get into fastboot mode i guess :cool:
[Desire Android Development] rraaka:
thanks for sharing, zen , happy for you :)

funny disease - many different causes and many solutions :rolleyes:
[Desire Android Development] ehalai:
but how to enter the OEM cmnd which is written in the step at 1st post.
[Desire Android Development] rraaka:
you have to search read and follow some tutorials on how to set up your adb.

if you are on windows you go to start --run - type cmd and you get the terminal...but your device must be recognised first or on your phone you can download android terminal emulator and type su and then other commands to get the desired results.... good luck ;)
[Desire Android Development] sieempi:
'fastboot oem eraseconfig' will easily do the unbricking for devices with unlocked bootloaders (eg: with Alpharev's hboot)
[Desire Android Development] ehalai:
dont know how, i did nothing but desire usb and bluetooth is fixed for now...
[Desire Android Development] zen15:
hah...:eek:

lucky you....., doing nothing but the brick is fix......:D
[Desire Android Development] chrisvr4:
Hi guys.

My desire recently got bricked BIG TIME and ive managed to sort the sd issue but still having problems with usb and bluetooth, dont know about anyother problems as of yet ?

I have tried the terminal command on 1st page and when i enter the commands a message says access denied ?

My heads buzzing after spending many hours reading but seems to much to take in :(

Help :(
[Desire Android Development] scottishdave:
Hats off dear boy.

Phone's fixed with one simple command.
[Desire Android Development] Keefo:
hi all, trying to help chrisvr4 unbrick his phone and having some difficulty....

for one, when we check the CID it comes back with 02_001 .... and the CID generator does not like this haha

obviously ok when we enter HTC though... but thats not what the phone is reporting back...

Also, we cant seem to find the "Rom Version" build number thingy haha

this is whats its running atm... http://www.theultimatedroid.com/forum/index.php?/files/file/113-desire-300-rc-gsm-release-candidate/

Could easily flash another rom though with a build number that we know though... any recommendations? ...
[Desire Android Development] rraaka:
which commands ?

if you try terminal emulator you have to first type su and then enter
[Desire Android Development] rraaka:
try with this file .....dont bother to change the rom number..try
[Desire Android Development] Keefo:
trying to flash

but in terminal when doing "chmod u+x /data/flash_image" we get an error,

and a diff error for when trying

'cat /sdcard/flash_image > /data/flash_image'

or

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

O.o

trying to remember/find out the exact errors we were given...

we DID do SU first.
[Desire Android Development] zen15:
Yeah.... never work for me too..

How about using update.zip method...? Did you tried it?
[Desire Android Development] Keefo:
yeah tried it and still nothing...

No usb, and no Bluetooth... O.o
[Desire Android Development] rraaka:
Flash this file from recovery

i got it from the modaco site

edit - sorry , no help for you

best method to cure usb brick is to S-off while we are still in good shape
[Desire Android Development] Keefo:
well im a nooby with some of this stuff, not a clue what S-off is haha

we have just recoverd it back from a nandroid and as we stand its a fresh start to try fixing again haha

Usb does not work, but when plugged in it charges but nothing else pops up.

and Bluetooth not working.

If you could help with an idiots guide that would help a lot mate :)
[Desire Android Development] chrisvr4:
Appreciate the help guys :)

This is very strange. I have my phone plugged in usb and now it seems fine ?

Other times it only charges and i have to either uncheck the usb debugging box in setting/apllications/development and check it and usb works and if that fails i uninstall the drivers using USBDeview while usb attached, pull out and attach again and that sometimes works but not always ?

But most the time im getting an error message "USB DEVICE NOT RECOGNIZED"

Edit: sometimes phone reboots by itself when i unlug the usb lol

Edit Again my phone is already s/off :)
[Desire Android Development] sieempi:
Boot your phone into fastboot mode and run this:

fastboot oem eraseconfig
[Desire Android Development] chrisvr4:
WhOoOohooooo sorted ! usb working and bluetooth *happy*

Thank you all for the help :)

Just one thing what can i do to avoid future bricking lol ?

Many thanks for the last command above, it was that, that fixed it :D
[Desire Android Development] zen15:
I really like to help you bro.., but don't know how cos you don't have s-off your phone, my experience with bricking is with s-off phone

So the only way i know is using op way through terminal emulator (CMIIW)

Someone suggest me to try more than one, maybe you should try and try again (though it never work for me after 15 or 20 more trying :))
[Desire Android Development] chrisvr4:
Thanks for that but ive sorted it now :)
[Desire Android Development] xziaz:
I dont understand how to get the CID? In fastboot? nothing happens lol?
[Desire Android Development] sieempi:
You can use whatever cid you want, it's not important.
[Desire Android Development] vipinlahoti:
i got a problem with my usb my desire is not charging and now a huge battery drain, i just get charging symbol, and charing%% lock screen, and when i connect my desire to my lappy i can use the usb functionality.

here is mine is now usb bricked?