yashsingh1/xdaforums huggingface dataset:
[Desire Q&A, Help & Troubleshooting] Droidzone:
Howto: Unroot your HTC Desire to stock (via Modaco & XDA)

Your region seems to be HTC South East Asia, and I believe it is like mine (is to Asia_India), branded to an Asia_SEA version. Unfortunately the ROM for SEA is not available on Shipped Roms, so you'll have to unroot to an unbranded Asia version or a Europe (WWE) version (Latter recommended since it's newer). Note that this wont be exactly the ROM that was on your device, but if you're not with any operator, it shouldnt create any problems. Since you have a working goldcard, unrooting should be easy:

Follow the following guide (via http://android.modaco.com/content/htc-desire-desire-modaco-com/307683/howto-unroot-your-htc-desire/ and http://xdaforums.com/showthread.php?t=672770)

Howto: Unroot your HTC Desire to stock.

You will need:

HTC Sync (For Drivers)

The Download Above

A Windows PC

A Goldcard

An HTC Desire

The Guide:

Make sure your goldcard is in your phone (If Required)

Turn off your HTC desire, then turn it back on with the 'back' button held down. You'll see 'FASTBOOT' written on the screen in a red box.

Connect the phone to your computer, then run the 'ruu' that you downloaded above (it may take a short while to start). Let the update complete. If you need USB drivers, you can find them as part of the HTC Sync install.

Whatever you do, DO NOT turn off the device manually unless the software tells you to. If something goes wrong, dont switch off phone. Keep the phone on while trying a solution. Newer RUUs dont usually wreck a phone, and with a goldcard, you can always recover. But, the flash SHOULD NOT be interrupted by switching off or disconnecting the cable.

Always start with a battery with >50% power (full recommended).
[Desire Q&A, Help & Troubleshooting] coolexe:
Hi,

we r working on getting HTC_india ota update files... so there is no matter that i install wwe or any ruu on my desire.... also asian ruu not working for getting HTC_india ota update...

yup i have its a default HTC_india version... but its rooted.. so if we can find an unrooted method for it...than our prob. is solved...
[Desire Q&A, Help & Troubleshooting] Droidzone:
Could you try rooting your WWE version with the same rooting process you used last time (on the Indian stock version) and flashing the Rooted WWE RUU with the Nandroid recovery created last time? Worth a try, though it probably might give a signature error in S-ON. In S-OFF, it might work though. Though I'm sure it's worth the experiment. S-OFF is a bit dangerous.. :)
[Desire Q&A, Help & Troubleshooting] coolexe:
aaa lil confuse what u want..
[Desire Q&A, Help & Troubleshooting] Droidzone:
Right now, as I understand, you have an unrooted WWE device. And you have a recovery image of a Rooted Indian device, which are basically the same device.

If you want to get the device to the Indian rooted version, you can try:

Rooting the current unrooted ROM on your device with Unrevoked (assuming unrevoked was what you had last time.

Restoring Clockwork mod image you created last time, after rooting.

It may not work (since you dont have S-OFF), but if it doesnt, you will only end up with a rooted WWE, and nothing else. The recovery might just fail. It won't brick your device anyway.
[Desire Q&A, Help & Troubleshooting] Droidzone:
But if you just want the Indian ROM just to take it to service, dont bother! Rooted ROM is not of any use..
[Desire Q&A, Help & Troubleshooting] coolexe:
Hmmm after restoring my stock rooted HTC_india nandroid my all prob. r solved...means search hardware key working fine....

Thanks droidzone... no need for htc services...
[Desire Q&A, Help & Troubleshooting] Droidzone:
That's good news, m8.. Glad to help!
[Desire Q&A, Help & Troubleshooting] najar360:
thanks! after checking both link for root method, it never mention phone must in fastboot mode. i think, i will follow your method.

one thing that I afraid is, my gold card is not working when need most.
[Desire Q&A, Help & Troubleshooting] Droidzone:
Make goldcards out of all the memory cards you have, just in case.. And, a memory card does not lose its goldcard status after formatting. Once a goldcard, always a goldcard. (According to some at Androidforums)

Before running the RUU, do have the goldcard ready.

And never try to run old RUUs..
[Desire Q&A, Help & Troubleshooting] coolexe:
No goldcard not always a goldcard if u trying to partition a goldcard than its convert to simple memory card...

B4 flashing anything or doing anything make sure u have a working goldcard....
[Desire Q&A, Help & Troubleshooting] Droidzone:
Are u sure about that, m8?
[Desire Q&A, Help & Troubleshooting] coolexe:
Yup tested with 'RA' recovery n "mini partition tool'
[Desire Q&A, Help & Troubleshooting] Droidzone:
About Goldcards. Universal or not?

I mean how did you confirm it was no longer working? Did u try running an RUU after changing partitions? Or is there another way to verify the card? Do you mean the CID of the device itself changes after partitioning? Actually it shouldnt.. If it does, well..Hmm..

Could have confirmed it myself if I had my Desire right now.. HTC says it will take two more days..
[Desire Q&A, Help & Troubleshooting] coolexe:
Goldcard change ur sdcard sector 0... right... Windows can not format sector 0 bcoz he's started format a sdcard from sector 1 to 100000000 something else....

But if we can partitioning sdcard so its overright 0 sector too... not tested by RUU... but tested by hexeditor sector 0 is different from goldcard image...
[Desire Q&A, Help & Troubleshooting] Droidzone:
Goldcard-Does it change after partitioning?

Method to test:

Run the following command before partitioning:

adb shell cat /sys/class/mmc_host/mmc1/mmc1:*/cid

\

After creating, deleting and modifying the partition on the card, and after formatting, we can repeat the command. If the CID displayed changes after each function, you're right and a goldcard physical address can change.. If the CID does not change (It shouldnt-It's supposed to be specific for the card), and still the goldcard does not work, well that means the image written on goldcard has to be rewritten with goldcard tool. That's all. And doing that isnt that hard.. Still, I'm still to read of a method to test out a goldcard without actually doing an unrooting/rooting function.

If the CID does not change (It shouldnt) and goldcard does not work, doing the last step in Goldcard generation ("Patch MMC") should restore the goldcard. The important thing to note is that these steps dont need an Android device-just a pc. So even if goldcard changes (without a CID change), it's not a big deal.
[Desire Q&A, Help & Troubleshooting] Droidzone:
You're right..So that means the HEX data on Sector 0 changes while partitioning. So it can be fixed by writing to that address again (or the Patch MMC step). No need to get the image again. Can you verify that the CID does not change? It should never, logically. It's supposed to fixed at the time of card manufacture..

So a HEX editor can be used to check for Sector change in the card. Still that is no assurance that the goldcard will work.
[Desire Q&A, Help & Troubleshooting] Droidzone:
Testing goldcard

Darn..Dont know how I missed this..

Testing a goldcard (via http://theunlockr.com/2010/03/10/how-to-create-a-goldcard/)

Take out the memory card from the computer, then put it back in.

Try to open the memory card on the computer (Removable Disk), if it lets you, you are all set. If it asks/tells you to reformat the card, then try steps 13 – 19 again. If it gives you the same error again, then try a different memory card
[Desire Q&A, Help & Troubleshooting] coolexe:
Yeh u got it...hehehe I'm using this tutorial for teasing a goldcard....also checking goldcard image n sdcard sector 0

Just save ur goldcard image on pc for future...
[Desire Q&A, Help & Troubleshooting] Droidzone:
Only problem is that I dont think just because the PC gives a message stating/asking that the card should be fixed cant be taken as assurance that the goldcard is correct/ok. I've had that message even for pendrives removed from pc suddenly without "Safe Removal" and for cards formatted in a different format like ext. :) I'd like a bit more assurance that my goldcard is good. Cant check an RUU because no Indian RUU exists. Using any other would change the CustID and I dont want to do that right now, since temp root is out and serves most rooting purposes without actually rooting. :D
[Desire Q&A, Help & Troubleshooting] coolexe:
Hmm all new pendrive/card r 'quick removal' policy.... by default...or u can apply it from card/pendrive policy menu....
[Desire Q&A, Help & Troubleshooting] Droidzone:
How to find if your HTC Desire is branded or unbranded

I have updated the original post to include instructions on finding out whether your device is branded or unbranded by finding out the cidnum of your device and comparing it to the list of values which are unbranded. These are WWE (European) values. It is likely that there are others, so please tell me if you know of other cidnums which are unbranded.
[Desire Q&A, Help & Troubleshooting] najar360:
droidzone,

a few noob question.

1. what is PB99IMG.zip? and what is this for?how can i get this?

2. why need to downgrade hboot? let say i'm now with 0.93.

3. i try to run command fastboot getvar all, and i see that my current version is 2.13.707.1. does it mean i can freely unroot w/o goldcard if i using RUU_Bravo_Froyo_hTC_Asia_WWE_2.13.707.1_Radio_32.44.00.32U_5.09.05.30_2_release_143921_signed.exe?
[Desire Q&A, Help & Troubleshooting] EddyOS:
1. PB99IMG.zip is the actual ROM file found in RUU files

2. you don't, you can root HBOOT 0.93

3. You can find out that version on the phone going to Settings>About phone>Software information - If that's what you're on keep the 2.13.707.1 RUU handy in case you ever need to unroot

TBH you're better off ignoring this thread as it's nothing to do with you as you have an RUU available, the OP doesn't
[Desire Q&A, Help & Troubleshooting] Droidzone:
Duplicate post deleted.
[Desire Q&A, Help & Troubleshooting] Droidzone:
a few noob question.

1. what is PB99IMG.zip? and what is this for?how can i get this? To add to Eddy's answer, you can get this from the rom.zip which is a part of the RUU. The RUU is an exe file, and when you run this file, it creates a folder in your Temp folder(Type %TEMP% in your Run Window, and press Enter). Delete all the files and folders in your Temp and then run the RUU. You will see two folders created when you run RUU. One of them (name starts with { curly brackets). Within that is another folder which contains many files, one of them is rom.zip. You need to put it in the root of your sdcard, and rename it to PB99IMG.zip. Then, when you start phone by Vol- and Power button, this file is automatically found by the device and prompts you to update ROM with this file. Note that you may need a gold card. Read the starting post of this thread for more details.

2. why need to downgrade hboot? let say i'm now with 0.93. Eddy has answered.

3. i try to run command fastboot getvar all, and i see that my current version is 2.13.707.1. does it mean i can freely unroot w/o goldcard if i using RUU_Bravo_Froyo_hTC_Asia_WWE_2.13.707.1_Radio_32.44.00.32U_5.09.05.30_2_release_143921_signed.exe? When an RUU is run, there are many checkpoints which need to be passed before your ROM can be updated. One is the version check. Ordinarily, you cannot upgrade to a lower version. Another is the CID check (cidnum variable). CID is different for different regions. There are some regions which have unbranded devices (the WWE edition). Branded phones cannot be normally upgraded to a ROM meant for another region, including the unbranded WWE RUU.

Note that I've written

normally

Both CID check and version check can be bypassed by putting a goldcard in the phone while running the RUU or upgrading from the

PB99IMG.zip.

Check my initial post to see how you can find out whether your device is branded or unbranded.

I'm adding this info and Eddy's reply to the original post for reference.
[Desire Q&A, Help & Troubleshooting] Droidzone:
Update on my problem

Just an update for those who had asked..

I'd submitted an SLCD bricked Desire to HTC India for repair..I got back an AMOLED Desire.. So, the SLCD brick was the best thing that could have happened to my phone! :D
[Desire Q&A, Help & Troubleshooting] najar360:
droidzone,

nice there you got your set back.

i wonder, you do not have recovery when your slcd brick right?meaning, you already successful unroot your set. this is why you cannot access adb and fastboot function right?meaning your set can successfull boot up but w/o slcd display.

why dont you try to root back, then try to read cid from there? as i understand, rooting using unrevoked is not to hard.

i try to confirm the scenario.
[Desire Q&A, Help & Troubleshooting] Droidzone:
Unrevoked wouldnt recognize my phone while it was bricked..

You may not have Recovery while bricked because the RUU overwrites the Rooted Recovery, replacing it with the system version..
[Desire Q&A, Help & Troubleshooting] najar360:
i see. maybe your phone can boot up and run the set and only we cannot see the display. unrevoked cannot detect your set...ermm..maybe debugging is not being active. since by default, debugging is not activate..
[Desire Q&A, Help & Troubleshooting] vpraveenis:
@droidzone this is a great work for you. You have collected and put together so much information which will be very useful to first time rooters and also to others who brick the device and trying to post queries in different threads.

@Mods: It would be great if this thread can be stickied and a link to this thread be added in the "Everything to know about root" thread in the development section.
[Desire Q&A, Help & Troubleshooting] Droidzone:
:) Well, bricking my new phone was unnerving for me..I dont think there are too many posts that I've not read, among the scores that Google threw up for each keyword..

What I wanted was to bring together all the solutions for unbricking the Desire in one thread so that people know exactly what to try out, and to stop wasting time looking for more solutions..
[Desire Q&A, Help & Troubleshooting] mdaaddic:
I spent yesterday whole sunday to unbrick my phone and I did not give up. After my phone did not enter into recovery mode, I read a lot of threads and guides, which lead me to a slcd bricked desire after I flashed an old ruu-rom for my branding.

How did I unbrick my phone without having created a goldcard before is (and this is not enough emphasised in this thread) I created a goldcard without being able to enter the recovery mode. I used the desire of my wife (same country same carrier and same branding) which had also an custom rom on it to create the goldcard. I put it in to my bricked desire and flashed the latest WWE-RUU from the fastboot. So I ask myself, is it also possible to put the sdcard in to an other desire or (even android phone) and get the CID and create the goldcard?

So please emphasise this possibility, because a lot of people have friends or relatives who also own the same device. If I knew this before or, if I clearly read it in your thread before wasting my time with other guides, I hadn't spent my whole freeday (sunday) with such an annoying (unnerving) issue.

Thank You very much for this perfect (almost) guide!
[Desire Q&A, Help & Troubleshooting] Droidzone:
Hey..

First, Love that you loved the guide.. :)

Second, I think you missed the line which has exactly what you wanted..

You also missed this in the FAQ section of the post:

That is what I've written (See point no 7 of Steps to unbrick your desire) in the guide..You probably read the old version of this.

With regard to the clarification you wanted:

The CID is unique to a memory card. It is not specific to the device.

You can get the CID of the sdcard from:

Any Android phone which can connect and use the adb command.

A Linux operating system running on a Notebook with PCI slot which can read a memory card. Note: YOU CANNOT GET CID FROM LINUX FROM A USB CARD READER of a PC/Laptop. You need the PCI card slot.

You can even get the CID from a Garmin proprietory OS or a Windows mobile based phone. There are utilities available online using these, which can be seen in a Google search.

Do not try to get CID from any PC via USB cable. It can display a CID code but not the correct one. It is said that "USB lies about the CID".

Thanks for asking. The guide is not perfect. It will become perfect when more people ask questions. Warmly appreciate the comments..
[Desire Q&A, Help & Troubleshooting] mdaaddic:
I apologize for my ignorance. Yes I read these, but I think I was in the end so cofused, that I did not get the right information out of your answers. Once again thank you very much! Without this guide I had been lost...
[Desire Q&A, Help & Troubleshooting] Droidzone:
Hey, no probs, m8 :D..It's a bit techy at the beginning..I have to put up some photos of the actual boot process and recovery that goes on behind the scenes when the device is bricked..
[Desire Q&A, Help & Troubleshooting] angusc:
Hey droidzone,

I feel your pain reading through this thread....and I don't even own an Android....yet! So here is my questions from reading your thread:

I'm Native English speaker and living in China. I went to the local phone market and see an HTC Desire for what looks like a good price. the phone (2.1) seems to have both English and Chinese characters on it when i played with it. So my questions from learning from you:

1) How to know if the screen is AMOLED or SLCD?

2) How to get the ROM version from the Phone.

3) Do you know if HTC made any hardware changes for different Regions? (I would hate to buy this bargain and then find out cos it is a Chinese version it does not have WIFI or some other International requirements).

4) What other checks in the shop would you recommend before buying it?

All of the above needs to be done at the counter and in front of the sales person so is there any easy steps that can be given?
[Desire Q&A, Help & Troubleshooting] Droidzone:
1. AMOLED has a pinkish tint when seeing white background. The Black is seen as really dark black. SLCD has a faint background light for even the black part. The box of AMOLED would mention the same. SLCD has no such marking on the box

2. Software version can be seen from Fastboot. Press Back+Power button to switch on.

3. Not sure. As far as I know, No.

4. Check that the 3G and Wifi works ok. Stress test it by playing some videos if they allow you to. For a new handset, I don't think much is needed.

You can change the region by flashing a WWE RUU on it, if you want to get rid of the Chinese characters.
[Desire Q&A, Help & Troubleshooting] angusc:
Thanx for your reply. overall what do you think about your Desire? I'm struggling to make a decision on my next phone purchase......I hate the size of the Desire HD and Windows HD7 phones but love their specs. The Desire seems to offer a mid point to specs and with reasonable pocketable size......... what do you think, having owned it for a few weeks, if you had the money in your pocket all over again, would you still go for it again or something else?
[Desire Q&A, Help & Troubleshooting] Droidzone:
Well..I love the Desire. It's everything I wished for and more..

Still, if I knew that the Desire HD and Desire Z was coming along, I might have waited to get one of those. The HD's 8mp camera and screensize is just awesome, and the Z would do away with typing woes.If you can, I guess it's better to go for one of those I guess.

Whether Desire would support Gingerbread is still not confirmed, while Desire HD would definitely support, so it's a future proof decision..
[Desire Q&A, Help & Troubleshooting] angusc:
One last question. on the desire which is considered to be the best screen type, AMOLED or SLCD?
[Desire Q&A, Help & Troubleshooting] Droidzone:
AMOLED definitely
[Desire Q&A, Help & Troubleshooting] angusc:
thanx mate I still prefer the Desire over the Desire HD....I know that does not make sense as when buying a new phone it is better to buy the latest specs etc...but I just hate the size of a 4.3" screened device.
[Desire Q&A, Help & Troubleshooting] Droidzone:
You should know that the Desire's Battery is a piece of junk..It's totally inadequate..Wont even last a day with full use..
[Desire Q&A, Help & Troubleshooting] syncopy:
Hi all,

It appears that my understanding of an unlocked phone as "unbranded" is incorrect for obvious reasons after reading this thread.

I have a question.

Which RUU would I have to download and save for future references (to revert to stock ROM, etc) ?

Here's my phone info:

Baseband version: 32.44.00.32U_5.09.05.30_2

Software number: 2.13.720.2

Bootloader: 0.93.0001

Would I still have to make a "gold card"?

Pardon my ignorance.

Thanks!
[Desire Q&A, Help & Troubleshooting] Droidzone:
I assume you bought your phone in India.

So, what is you need is an RUU for India..Unfortunately the only one available on Shipped-Roms (RUU_Bravo_hTC_Asia_India_1.21.720.4_Radio_32.36.00.28U_4.06.00.02_2_release_127705_signed) is incompatible for an SLCD Desire and will brick your phone at least temporarily.

There are two methods of getting your phone to an unrooted state..

Method 1

There is a method for converting to an Indian version which essentially involves temporarily bricking the phone then unbricking it by patching the OTA onto it. I still need a tester (from India, who has already bricked his phone) before confirming this method. :D So I guess this method is not for you. If you have an AMOLED phone (unlikely since you got it from India), you can do this method even without a risk of temporarily bricking it. This method does not need a goldcard.

Method 2 (Recommended)

Update to the latest WWE RUU (Last time I checked, the latest was RUU_Bravo_Froyo_HTC_WWE_2.29.405.2_Radio_32.49.00.32U_5.11.05.27_release_151783_signed). You can run this after creating a goldcard. Note that this method debrands your phone. The problem is that when you return your phone to HTC for service, the first step usually that they do is to run the Indian RUU they have (2.13-The version you have). Their flashing will fail saying the CID is incorrect. So they 'might' tell you that your phone is an international one and that they cannot repair it there. In short, it's a PITA.

Create a goldcard immediately! This is the most first step anyone should do when they consider rooting. In the event that your phone gets bricked somehow, and you want to return it, post here, and I might be able to guide you with the first method. :)
[Desire Q&A, Help & Troubleshooting] syncopy:
Thanks man! That was very helpful.. I'll update here about my progress.. Still doing some reading before taking the plunge.. I wanna make sure I know what am doing..

So I can update to RUU_Bravo_Froyo_HTC_WWE_2.29.405.2_Radio_32.49.00. 32U_5.11.05.27_release_151783_signed once i ROOT my phone, is that right?

Yes, I did buy it in India

What's the whole deal with branded/unbranded BTW? I assumed unlocked is unbranded.. Can you elaborate in simple terms, if possible, the difference..

Cheers!
[Desire Q&A, Help & Troubleshooting] syncopy:
Hi again!

Few questions:

I created goldcard as mentioned in page 1 using the instructions listed here (http://android.modaco.com/content/software/308798/pc-application-goldcardtool/)

The gold card was created successfully.

Is the size of the goldcard.img supposed to be as less as 384 bytes?? :-0

I've used a separate 2 GB card to create the goldcard. However, I use a different 16 GB card otherwise on my phone. Is that OK?

Cheers!
[Desire Q&A, Help & Troubleshooting] Droidzone:
Yes, don't let the image size bother you. It is meant to be small.

Yes, keep the goldcard safely, and use another card for normal use