yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] angusc:
OK...Have you downloaded and installed "Terminal Emulator" from the market? (see the one attached)

Have you downloaded EVO zysploit-release.apk and installed it? (see the one attached)

Have you downloaded the flash_image file and copied to your SDCARD root? (if you use the attached one make sure you unzip it and ONLY save the contained file to your SDCARD root).

Have you downloaded the "mtd0.img" file that matched your device CID or has the Super CID entry within? this also needs to be copied to your SDCARD root folder.

Make sure that you have enabled USB Debugging by going MENU/SETTINGS/APPLICATIONS/DEVELOPMENT and then ticking "USB Debugging".

Make sure that you have ticked "UNKNOWN SOURCES in the APPLICATIONS menu to allow you to install APK's from your SDCARD.

RESTART your device in to BOOTLOADER menu either by using your POWER menu options (if you have this) or by Powering OFF device then holding VOLUME DOWN button & POWER on button (this is for the Desire so you may have to research how to get their on your device).

Now if you are in the BOOTLOADER menu you should see on the screen: "FASTBOOT USB" (if it only says "FASTBOOT" then your device is not recognised by the Computer or USB connection).......obviously the Device MUST be plugged in to the PC by USB cable!

Open up your CMD command prompt and Change Directory to where you have your ADB files located probably on your C drive ROOT.

Then change directory to the TOOLS folder (you can do that all in one step if you like).

If above all OK then type the following commandes ONE AT A TIME AND EXECUTE EACH in to the CMD promt window:

fastboot oem enableqxdm 0

fastboot oem boot

If that doesn't get usb back Copy these files to your SDCARD: "mtd0.img" and "flash_image" (but you should have already done that).

Then after you have done all of the above open the Terminal Emulator software on your device and type the following:

am broadcast -a com.unrevoked.zysploit

then wait a couple of minutes and do (the "l" is a lower case L):-

ls /data/data/com.unrevoked.zysploit/root/su

The Output should read: /data/data/com.unrevoked.zysploit/root/su

Now run this: /data/data/com.unrevoked.zysploit/root/su

output should be: #

Now run this command:

cat /sdcard/flash_image > /data/local/flash_image

output should be: #

Now run this command:

chmod 755 /data/local/flash_image

/data/local/flash_image misc /sdcard/mtd0.img

output should be: #

NOW YOU SHOULD BE UN BRICKED!

To test it just reboot your device

NOW YOU CAN UNINSTALL THE "EVO zysploit-release.apk" and ROOT your device as you normally would and then "S-OFF" if that is what you normally do (I do for my Desire).

EDIT: here is a nice site to generate your MTD0.img file using your CID and ROM version: http://ks25738.kimsufi.com/misc/

Don't forget that you have to unzip BOTH the flash_image to your SDCARD along with the MTD0.img to your SDCARD.
[Desire Android Development] angusc:
Added files to above post.
[Desire Android Development] aalexandrou:
Hello guys,

I hope i am posting in the right section - i seem to have usb-bricked my phone. In my anxiety and disappointment i posted in the Development section and i seem to have angered a few people...

Anyway, i hope i am in the right place here, and i will try and explain my problem.

My HTC Desire has been running miui rom for some months without any problems.

This morning, i dont know what i did, but the system asked if i wanted to merge the temporary memory which is used when the sd card is unavailable, and i foolishly answered yes...

When i rebooted, my phone stuck on the htc logo, and the only thing i seem able to do is to hold the volume down and go into fastboot.

Is there something i can do to repair my phone? The screen reads the following:

BRAVO PVT1 SHIP S-ON

HBOOT-0.93.0001

MICROP-031d

TOUCH PANEL-SYNT0101

RADIO-5.11.05.27

Any help would be much apreciated.

Thanks
[Desire Android Development] dinoalbert:
first time to experience USB bricked device...I somehow followed the instruction except for a few:

1. "downloaded the "mtd0.img" file that matched your device CID or has the Super CID entry within?"

How do I do that? How can I now my device CID and where can download the mtd0.img that matches it?

2. I tried downloading/install "Evo zysploit" thru the QR codes you provided...but it says it needs SD card to install it....but I have the SD card in my Desire but it says there is no SD card :(

3. Is the procedure stated in this page the same as the one in the 1st page? I noticed the attached files are not the same? Should I follow this current post than the one in the 1st page?

by the way Im rooted but still S-ON

thank you very much
[Desire Android Development] angusc:
You are USB bricked........that means that your device can not access the sdcard until you run the first terminal emulator command, "fastboot oem enableqxdm 0"

Download the files to your PC them copy across to your sdcard and continue the process.

Open terminal emulator and type in getprop this should give you a long list for your device build.prop at near to the to should be seem your device CID.

You can get the mtd file from the first post in this thread. You have to follow the instructions to edit it and enter either your device CID or Super COD which is all 11111111 (not sure how many 1'a are required)

Sent with Desire.
[Desire Android Development] dinoalbert:
@angusc, thank you very much. Still I cant uderstand the procedure step 1 in the 1st page, please bear with me.

1. Find out your CID. Go into fastboot mode, and do 'fastboot oem boot'.

How do I go into fastboot mode? ALl I know is to go to Hboot which is Vol Down + Power Button

I tried holding down the back button, while turning on the Desire....but it always starts the phone the normal way.....cant get into fastboot mode :(

2. Edit this image to the CID you found above with a hex editor.

How do I do that? I need some software?

3. Get flash_image from the attached files below

Move this to /data/ , and flash the modified image using:

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

How to do this? All of that thru the Terminal Emulator or thru PC?

By the way, I am still on Stock Hboot and S-On.

Thanks again...
[Desire Android Development] harishvr9:
I dont know whether i am USB bricked or not.

Phone: HTC Desire

ROM- LeeDroid 3.0.7 Data++

S-off

my phone got switched off by itself and when i tried to restart it, it did not start. I went to recovery mode only to get the feedback as "cant mount SD card". I tried removing and reinserting the card but to no avail.

When i try to connect it to the laptop, I see that I have HBOOT USB PLUG or FASTBOOT USB in the respective menus. But when I try and run any commands through the command prompt, I end up with an unrecognized command error.

May I know whts the problem here? I hope it can be solved
[Desire Android Development] harishvr9:
At the start of the thread itself, it says "Also, SD card functionality has to work. For this, do 'fastboot oem enableqxdm 0' in fastboot mode". How do I do that when I am not able to run any commands through the laptop? ..

Or am i doing something wrong which is not allowing me to run those commands?
[Desire Android Development] zen15:
Maybe yes..., maybe not...

Can you go into recovery from fastboot? If yes... Then try to reflash the rom, if not .... Maybe your recovery is corrupted, you should reflash the recovery first and then rom
[Desire Android Development] Parva4:
Yes, you are not reading the many, many threads and guides on doing this stuff. Search, read and learn. I personally spent 12 hours fixing my USB bricked phone including downloading the Android SDK and stuff (which I later didn't actually need). It can easily be fixed and all of the information is here, don't expect to be spoon-fed step by step as it's a time-consuming operation that the more hardcore amongst us have spent many hours learning.

All of the answers are here.
[Desire Android Development] dinoalbert:
does "go to fastboot" mean holding the back button + power button?

I cant seem to make it work....it always starts the phone the normal way....cant make a fastboot :(
[Desire Android Development] harishvr9:
How do i ascertain if my phone is USB Bricked?

My phone got switched off just like that and is refusing to start. When i go into recovery mode and try to reflash a ROM, then it says that it can't mount the sd card. I can see HBOOT USB PLUG and FASTBOOT USB when I am in those modes and when I am connected to the laptop. Is this problem related to USB brick? Coz in the condition that the phone is in now, I cant use a terminal emulator from the phone (phone doesn't boot). Or is this problem related to the SD card reader in the phone? Coz the SD card reads perfectly on a laptop.

Please help
[Desire Android Development] harishvr9:
can someone please help me? Ok .. sd format doesn't work.

Adb commands dont work as when i try and list the devices attached, it lists no devices.

As i had Oxygen Hboot, i went back to stock hboot thru fastboot commands, hoping tht i cud flash a rooted custom rom through fastboot. But when i try flashing through fastboot update command, i get the response as "update package has no android-info.txt or android-product.txt". Please tell me what to do. I am really frustrated as I don't even know where the problem lies.
[Desire Android Development] harishvr9:
ran fastboot OEM boot command .. phone is still stuck. the terminal output is as follows

C:\Android\tools>fastboot oem boot

... INFOsetup_tag addr=0xA0000100 cmdline add=0x8E

07F9F0

INFOTAG:Ramdisk OK

INFOTAG:smi ok, size = 0

INFOTAG:hwid 0x0

INFOTAG:skuid 0x26A0D

INFOTAG:hero panel = 0x3

INFOTAG:engineerid = 0x0

INFOMCP dual-die

INFOMCP dual-die

INFOTAG:mono-die = 0x0

INFODevice CID is not super CID

INFOCID is HTC__038

INFOsetting->cid::HTC__038

INFOserial number: SH0A5PL00482

INFOcommandline from head: no_console_suspend=1

INFOcommand line length =423

INFOactive commandline: board_bravo.disable_uart3=0 board_bravo.

INFOusb_h2w_sw=0 board_bravo.disable_sdcard=0 diag.enabled=0 boa

INFOrd_bravo.debug_uart=0 smisize=0 userdata_sel=0 androidboot.e

INFOmmc=false androidboot.baseband=5.17.05.08 androidboot.cid=H

INFOTC__038 androidboot.carrier=HTC-India androidboot.mid=PB9920

INFO000 androidboot.keycaps=qwerty androidboot.mode=normal andro

INFOidboot.serialno=SH0A5PL00482 androidboot.bootloader=0.93.100

INFO0 no_console_suspend=1

INFOaARM_Partion[0].name=misc

INFOaARM_Partion[1].name=recovery

INFOaARM_Partion[2].name=boot

INFOaARM_Partion[3].name=system

INFOaARM_Partion[4].name=cache

INFOaARM_Partion[5].name=userdata

INFOpartition number=6

INFOValid partition num=6

INFOjump_to_kernel: machine_id(2457), tags_addr(0x20000100), ker

INFOnel_addr(0x20008000)

INFO-------------------hboot boot time:28893 msec

FAILED (status read failed (Too many links))

finished. total time: 12.612s
[Desire Android Development] angusc:
Let's try to start from the beginning....

So can you power off your phone.

Now holding the VOL DOWN button + press and hold the POWER Burton.

This should get you to the HBOOT screen. Now what does it say at the very top of the screen?

Should list the currently installed HBOOT version.

If you now plug in the PC USB cable you should See that the word HBOOT changes to HBOOT USB.

Using the VOL keys you should now be able to move the selected menu item to "Fastboot" and with the USB cable still plugged in this should change to "FASTBOOT USB"

now you should be able to use you PC to send ADB commands to your phone. Does it work?

First try "adb shell reboot fastboot" and if working your phone will restart back in to the FASTBOOT mode.

If that working then try sending the command to re enable the sdcard access.

Sent with Desire.
[Desire Android Development] angusc:
So you're CID is HTC_038

Sent with Desire.
[Desire Android Development] harishvr9:
adb shell reboot fastboot command gives "error: device not found"

device is listed in "fastboot devices" but not in "adb devices"
[Desire Android Development] angusc:
"How do I know if i'm USB BRICKED?"

Well if your device is still booting to the system you can check if you are able to axes the sdcard. Also check what happens when you try to turn on Blue tooth......if it will not start then you probable have a USB brick.

Next is to know if you are S-on or S-off......if you are S-off then you can just run a single command to get back to normal functionality: fastboot oem eraseconfiq

If you are S-on then you need to read the starting post in this thread and down load the required files to your sdcard (probably by using an external card reader so that you can put them on the root of the card).

Use the command to re enable the sdcard: fastboot oem enableqxdm 0

Hopefully this will work and allow you to copy files to your sdcard while the card is still in the phone and using the USB cable from PC.

Sent with Desire.
[Desire Android Development] angusc:
Ok can you get to the recovery menu? (hold vol down + power Burton) then scroll down the menu to "recovery" and press the power Burton to confirm.

What did your device list as your HBOOT type currently installed?

Sent with Desire.
[Desire Android Development] harishvr9:
i am unable to boot into the phone. plus, i am unable to flash a custom ROM from recovery as it says that "can't mount SD card".

Hence, the part of using the phone to access the SD card is futile.

I can get into the recovery menu.

The Hboot type is ---AlphaRev--- .

i was using Oxygen Hboot coz i was on a Data++ ROM. i flashed it back to the stock hboot (using AlphaRev's image). I was hoping to flash a rooted stock ROM after this. But i could not
[Desire Android Development] harishvr9:
device is S-off.

Hboot 0.93.1000
[Desire Android Development] angusc:
the very top line should say something like "Alpharev STOCK" or if you still have Oxygen HBOOT then it will say "Oxygen r2"
[Desire Android Development] harishvr9:
it is not Oxygen, that is for sure. It just says Alpharev. I had flashed the one called Bravo Stock (bravo_alphaspl.img). Can do it again to check.
[Desire Android Development] angusc:
OK so what makes you think that you are USB Bricked? Just because you can not flash or load a ROM does not mean USB Brick.

So if you now have the Standard HBOOT installed I think that you should start from the basics again:

1) Check that your SDCARD has a FAT32 + EXT3 (or EXT4) Partitions. (Use GParted or use 4EXT from XDA by flashing it to your phone.

2) Choose a basic Custom ROM with A2SD and down,load it and copy to your SDCARD.

3) Flash the ROM from Recovery Menu. (you still have not told me if you can enter in to Recovery yet?)
[Desire Android Development] harishvr9:
Yes. I can get into the recovery menu. I think i told it in a post above that i can get into the recovery menu. But i cannot flash a ROM from there because when i choose the option, I get a reply as "can't mount dev block mmcblk0p1" and "can't mount SDcard". And hence, I am unable to follow the standard procedure.
[Desire Android Development] angusc:
From FASTBOOT what does the command: FASTBOOT DEVICES come back with?

What does GParted tell you a bout your fat 32 and Ext?

You can always try copying the ROM file to the "tools" folder and flash the ROM from FASTBOOT.

Sent with Desire.
[Desire Android Development] harishvr9:
I repartitioned the SD card into Fat32 and an Ext

But when i try flashing through fastboot update command (after copying the ROM to the tools folder), i get the response as "update package has no android-info.txt or android-product.txt"
[Desire Android Development] dinoalbert:
thanks, Angusc!

dumb of me I didnt know I need to plug with the USB and I didnt know I will be doing it on a PC. Anyway, I was able to do your instruction and got the "Fastboot USB" but I realized I cannot send ADB commands as I need to install SDK first, right? I have no SDK yet so I guess will download it first and give you feedback.

correct me if Im wrong.....that sdk is the r12 (34Mb filesize) found in http://developer.android.com/sdk/index.html ,right? Is that the only file I need to download and install on my PC so I can start sending ADB commands?
[Desire Android Development] angusc:
Mmmmmm sorry mate that is beyond my knowledge so i'm our of ideas on this one. You could try installing a ROOTED RUU which would get you back to stock ROM and the RUU can be installed when the phone its in fastboot mode from the PC by running the RUU on your PC........

Sent with Desire.
[Desire Android Development] harishvr9:
can u give me any link which will tell me how to do tht?
[Desire Android Development] angusc:
Yes you have to download the .exe version and install it to the root of your computer C:/ drive. Then from the PC cmd window type "cd c:/Android-sdk-r12/tools"

Or what ever the installation folder name actually is. Then you can connect your phone and start using adb!

The tools folder us where you put files that you want to flash to tour phone.

Sent with Desire.
[Desire Android Development] angusc:
How to do what? Just search for a ROOTED CUSTOM ROM RUU for your device. Download it to your PC.

Connect your phone to PC using USB cable and execute the RUU file on your PC.

Sent with Desire.
[Desire Android Development] harishvr9:
How do i execute the RUU file ?
[Desire Android Development] harishvr9:
also whr can i get an RUU? .. sorry for acting like a kid.. but i m all messed up as i have been at this for more than 15 hours :(
[Desire Android Development] angusc:
Search on xda under your phone section for "stock rooted RUU" and i'm sure you should find some options. Try to download a newer one rather than the first one that you find from a search. Google search might also help.

Sent with Desire.
[Desire Android Development] harishvr9:
I tried a stock rooted ROM (zip file) .. to run it using fastboot commands, but it failed.

Is this going to be different?
[Desire Android Development] harishvr9:
I only get zips and not exes .. wen i search for the stock rooted RUU
[Desire Android Development] angusc:
What phone model do you have? please set up your signature on XDA with your details to assist others in helping you.

Make

Model

GSm / CDM?
[Desire Android Development] harishvr9:
HTC Desire GSM
[Desire Android Development] angusc:
Who is your carrier? I'm assuming possibly India? but the carrier and if you remember what was the ROM version on your Desire BEFORE you rooted it?

Here is my first hit: http://androidforums.com/desire-all-things-root/248702-htc-desire-back-stock-ruu-roms.html

And here is the pay load!! (Standard RUU HTC ROM (NOT ROOTED) so you will have to re root your Desire again after installing this

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

EDIT: sorry this is the RUU link above.

Do you have a GOLD CARD? if not then you HAVE to flash the original RUU for your phone CID HTC_038 which could be this one: http://shipped-roms.com/shipped/Bra...00.28U_4.06.00.02_2_release_127705_signed.exe or if you are using the Alphrev.nl R2 version of thier stock HBOOT then i think that will over ride CID check when you try to flash any ROM not intended for your Region.

With this RUU you should not require GOLD CARD. try reading this thread after you get over this current issue it has lots of great information there is also the equivalent version on XDA.:

http://androidforums.com/desire-all-things-root/226723-unbricking-slcd-bricked-desire-howto.html

If you cant access shipped-roms.com then let me know which upload site you can access and I will download and re upload it for you.
[Desire Android Development] harishvr9:
Yes. I tried that. But I get an error saying that there was a connection issue.
[Desire Android Development] harishvr9:
no i dont have a gold card :(
[Desire Android Development] angusc:
What download site can you access? I will upoload it to multi uploads and you see if you can download it from one of those sites........will reply on this post when uploaded...

I have started the download and will take +/- 1 hour according to the download timer......so another hour to upload means around 2 hours time roughly......
[Desire Android Development] angusc:
You get connection error trying this link:

http://shipped-roms.com/shipped/Bra...00.28U_4.06.00.02_2_release_127705_signed.exe
[Desire Android Development] angusc:
Anyway....while we wait for the DL and UL to happen try to make a GOLD Card:

I have attached the file to run on your PC just unzip it and execute it. just connect your phone in fastboot mode with the USB and run the PC software for GOLD CARD generator. it should work OK and pick up the Memory card in your phone. then follow the instructions until you load the gold card file that will be e-mailed to you.

http://android.modaco.com/topic/308798-pc-application-goldcardtool/

Put the microSD card in your device and boot it (in to fastboot).

Launch GoldCard Tool (Right Click and run as Admin if needed)

Connect Android device to USB (USB Debugging must be enabled on the device)

Click 'Get CID' (If MMC1 fails try MMC0)

Click the link to open revskills.de, enter the CID number from Goldcard Tool and create your goldcard image, which will be e-mailed to you.

Enable USB Mass Storage on the device.

Click 'Refresh' and select your microSD card in the drop down menu.

Click 'Load GoldCard.img' and open the .img file you got by email.

Click 'Patch MMC'

You now have a goldcard!

This process does NOT damage or noticeably alter your SDCARD so you can still use it as you normally would.
[Desire Android Development] harishvr9:
ok .. i think i have completely bricked my phone :( ... With the previous RUU, the laptop could connect to the phone and it also started the ROM update process. But i got an error that it was an incorrect ROM update. Probably wrong bootloader version

now the phone just vibrates when i press the power button.
[Desire Android Development] harishvr9:
ok .. as per this thread http://androidforums.com/desire-all-things-root/226723-unbricking-slcd-bricked-desire-howto.html .. i m done for from my side. I am from India and the Indian HTC is a branded device. and there is no updated RUU available. I should have made a gold card when i had rooted :( ... lemme see .. i ll take the phone to the HTC service center and hope that they can fix it
[Desire Android Development] angusc:
Read that thread very well.....you can still get out of this if you have a gold card. do you know anyone else with a Desire in your place?

Also remember what I said earlier....if you installed the HBOOT from Alpharev.nl and it was one of their later ones known as "R2" then you do not require the GOLD CARD as this HBOOT overrides the CID check.

I'm still downloading the RUU for you but it could take some time. best thing for you to do is to go take a break right now and come back in about 8 hours time.

If i understand you now you have:

SLCD BRICK

Possibly USB Brick

But never fear I think we can still get you out of jail. Attach the Alpharev HBOOT file that you flashed for the standard HBOOT
[Desire Android Development] harishvr9:
I am not sure about anyone else having a Desire here. But I am sure that I have flashed Hboot from Alpharev's page. I am attaching the file zipped in a rar file. (couldn't upload the img file ,, invalid file)