yashsingh1/xdaforums huggingface dataset:
[HTC Desire X] Etahuh:
Can't unlock bootloader

Hi,

I have encountered one major issue with this tutorial, which seems really good.

I'm stuck at "Unlocking bootloader" :

I have successfully received my unlock_code.bin from HTC, and when I type fastboot flash unlocktoken Unlock_code.bin, after rebooting in fastmode, everything goes fine, I get the disclaimer saying that I'll lose my data and everything.

I can select Yes/No, but when I hit the power button, if it's on No, it reboots (normal), but if the selector is on Yes, nothing is happenning at all!

After this, I can still select Yes or No, but something happends only if I select No.

I waited around 30 minutes, rebooted my phone, my computer, nothing changes.

Thanks for the future help!
[HTC Desire X] dansou901:
Can't help you much here, as I didn't get this type of failure until now. But are you sure the unlock code you downloaded isn't corrupted? Try downloading it again from your mail. If that doesn't work, request a new unlock code the same way you got the first one.
[HTC Desire X] Etahuh:
Well, I requested 3 unlock codes in total, and all of them were correct (when typing fastboot unlocktoken unlock_code.bin in cmd, it says "valid token" or something like that.

Maybe it's because I tried at 20ish% of the battery, I'll retry today.
[HTC Desire X] dansou901:
Yeah, that's possible. The RUUs won't even run when the pone hs less than 33 % of battery left (can't remember the exact number now).
[HTC Desire X] Etahuh:
Well, unfortuntely, it still doesn't work :/

I'm stuck here htcdev.com/images/uploads/bootloader/step13.jpg where it doesn't do anything when the selector is on Yes and I hit power button...
[HTC Desire X] dansou901:
Did you try the Home button or the other buttons? I doubt that it'll work, but it's worth a try. If your power button is functioning normally otherwise, I'm at a loss here...
[HTC Desire X] AdilKhan694:
Cant flash the boot.img file

First of all thanx a lott for ur help and work.:good:

Now I have HTC Desire X and have rooted it. I downloaded the CM 10.1 for my phone andtried to install it ur way, but once I have installed the zip file through recovery, I can not flash the .img file. I tried it with adb shell but it shows "no device found". Furthermore I am confused as to should I keep the img in zip folder or shall I cut it and remove. Not to mention that I am still an amatuer and know nothing about anything.. Plz help me asap, Im in a real need of it..

Thanks once again.
[HTC Desire X] CurtisMJ:
Remove boot.img from the zip file. When using the adb fastboot method make sure you're not on Windows 8(HTC drivers tend to break, use a Linux OS instead). If the device is still not found check the physical connections and make sure your device is in the bootloader fastboot mode. Alternatively you could s-off and be able to flash kernels in recovery(this still requires adb fastboot initially).
[HTC Desire X] dansou901:
Hi guys, just wanted to tell you that I'm about to leave this device forum. I'll still come back and maintain my threads and also will be available for testing. As soon as possible I'll get my hands on a Oneplus One and jump over to its newly created device subforum. Hope to see some of you guys there as well!
[HTC Desire X] evileyedlynx:
Hi guys.

I've started kicking Desire X and found a problem.

1) After I unlocked, rooted and S-OFFed it (with TWRP custom recovery, of course), it found an OTA software update (2.20.401.6). Of course, it didn't install - just threw me to recovery without installing. The phone worked fine, though. I made a backup, just in case :) And backed up the file with downloaded update.

2) I flashed stock recovery, then tried installing the update. It worked, so now I have 2.20.401.6. By the way, there is no information about this update. It says only "it also fixed heartbleed bug" and that's all. But it updated 30 apps...

3) After that, I flashed TWRP recovery back and tried root permissions. Nope. (checked by going into ADB shell and executing SU in there - it didn't show me "#", only changed $ to 1|$)

Here's the question.

Is there a way to root that software version?

Because, as I think, they just patched the exploit that is being used to get root.

P.s. I got 3 ways to go: 1 - find a way to root that, 2 - restore backup, 3 - flash a custom ROM :)

P.P.S. Please, redirect this post to "Newbie questions".
[HTC Desire X] dansou901:
You have to reflash SuperSU in recovery in order to root that software version. This way, every ROM can be rooted.
[HTC Desire X] evileyedlynx:
Sorry, forgot to mention that.

I flashed SuperSU again after that (you speak about recovery->install zip, right?). It was the 1st thing I've done to troubleshoot that. It was installed successfully, but didn't do any good. More to say, adb stopped recognizing my phone, I had to do some dance with adb drivers to get it working.

That's why I assumed the fix was just closing the exploit, that is being used to get root permissions. (If I understand right, root permissions are being given through holes in android, so every version has to have it's own zip file to flash to get root).

It's theoretical question now, because I've got back to backup with old software version 401.5. Looks like everybody use this software (without 401.6), or custom ROMs. I decided to live on that, and find myself some custom ROM later.

After all - anybody knows, what does the update do?
[HTC Desire X] dansou901:
As soon as you unlock your bootloader, you should be able to write to /system partition through recovery (which is exactly what SuperSU does, writing the su binary to appropriate path). So you should be able to get root permission by just flashing that in theory. You sure you are using the JB version of TWRP and not the ICS one?
[HTC Desire X] darkchild_74:
Question... I relocked the bootloader with custum recovery... Now..only way is to unlock the bootloader again with factory reset?
[HTC Desire X] rish9511:
i am confused between flashing custom recovery and backing up stock rom ....

pls help me out with this
[HTC Desire X] rshbhghelani:
Please Dont Quote OP..

and what r u confused in? like hoe flash a custom recovery and back up stock rom?
[HTC Desire X] rish9511:
i am sorted now ....anyway thanks :)
[HTC Desire X] taproot97:
I am interseted in rooting my DX but am currently running Ubuntu 14.04 (no dual boot).

i have found instructions to unlock bootloader but am unable to flash a custom recovery. can someone please tell me the linux equivalent of this command

///// fastboot flash recovery c:\recovery.img /////

thanks in advance
[HTC Desire X] dansou901:
just cd into the folder where the recovery.img is located and do

fastboot flash recovery recovery.img

Or just do

fastboot flash recovery /path/to/recovery.img

(Linux directory structure is derived from a / which is the root of all dirctories, so a list of all folders until the one containing the recovery.img separated by / will do the trick)
[HTC Desire X] taproot97:
Thanks man .

Now i am stuck with a new problem.

I have successfully rooted my phone (yes i am sure) but i am unable to install busybox.It says that i should try another location.Other times hte phone crashes and reboots... Any tips?
[HTC Desire X] darkchild_74:
thanks for the help
[HTC Desire X] 4js:
when i choose quickboot, will there be also this 7 times vibrating bug?
[HTC Desire X] dansou901:
If I recall corrrectly, it shouldn't. But I'm not sure and can't test (don't have the device...)
[HTC Desire X] 4js:
Cause This is NOT reversible, i'll ask in the S-Off Thread.
[HTC Desire X] Manash88:
Unable to switch on HTC desire x

I am unable to switch on my phone, so is there any way to root a off phone.
[HTC Desire X] Dor-b:
Thanks!

Thanks a lot man! great Guide
[HTC Desire X] Chethan012:
Need help to install custom rom for hboot 1.15

hi devs, i followed the exact procedures in installing the custom rom (ViMiRo ROM v3.0-1) on my HTC DX running on android 4.1.1 and hboot 1.15 by following DX threads. the recovery i flashed is CWM official release for ICS. after showing successful installation of rom and rebooting, the phone shows the ViMiRo lock screen, but when tried unlocking, it stops at HTC logo and doesn't open further. Pls guide me to resolve this.
[HTC Desire X] rshbhghelani:
Hboot 1.25?

Cwm for ics!!!??? What!?

did u flash boot.img?

and please never quote OP. Thnk You
[HTC Desire X] Chethan012:
I resolved it using mySENSEdsx_RC1.0, running fine now:)

Sorry my mistake, my device is DX dual sim, which I flashed might be for single sim DX devices..btw is dr any other ROMs available for DX dual sim phone?
[HTC Desire X] rshbhghelani:
Searching makes u smarter.

Theres an AIO thread for DX dual sim go there

EDIT: Link attached: http://xdaforums.com/showthread.php?t=2537913
[HTC Desire X] riometal:
problems

Hey guys,

got problems with my phone. trying to put back the stock rom for my HTC desire x. I was using CM rom and TWRP recovery. when i try to install the new rom.zip got error: cant mount /emmc/ what am i doing wrong!? plz help me
[HTC Desire X] blloewy:
Anyone could provide link for the fastboot file?

On the HTC Website it's corrupt because there is no ADB etc..
[HTC Desire X] shyvam:
Take this

http://developer.android.com/sdk/index.html
[HTC Desire X] Will_Xda:
We already have quite a few Guides, Some automated tools for rooting and unlocking boot loader, and I think a video on how to do it on YouTube as well. If you can bring some new tools/tips thats great, but your posts come across as a bit spammy. So just relax and promote your blog by righting up guides here/ making videos/ contributing to discussion in the xda forum and showing your a good guy with some knowledge to share.
[HTC Desire X] Dor-b:
I can't update twrp to new version, tried flashify and twrp manager.

Any idea how to update? i don't have adb driver on this current laptop
[HTC Desire X] samarth sathe:
Maybe. http://xdaforums.com/showthread.php?t=2462567
[HTC Desire X] richardz123:
i dit this on the htc desire s and it didint delete a thing so i guess its a chance of doing it
[HTC Desire X] RuudM:
Maybe that's because the s is not an x? If that is a typo, what do you want to do or what is your question?
[HTC Desire X] richardz123:
it goes about the fact of the htc dev unlock bootloader
[HTC Desire X] andrewz1986:
Hi guys, I would like to ask you for help, since I'm desperate. The only point that went fine was " 1. UNLOCKING OF BOOTLOADER". When I followed instructions under "2. CUSTOM RECOVERY INSTALLING", I got this message in command line on PC:

I did some Googling and tried to install custom recovery by extracting RUU_PROTO_U_ICS_40A_HTC_Europe_1.18.401.1_Radio_10.21.40.06U_1.10.40.23_release_295191_signed.exe (when I tried to run it directly with phone connected to PC, I got error 158; I also tried "FLASH TWRP" option in WinDroid Universal Android Toolkit, but the process fails), getting PM66IMG.zip, putting it on SD card, going to hboot on my phone and perform the installation there. There were no errors. But when I try to go to "4. ROOTING YOUR PHONE", I get a problem:

after I successfully get to recovery (red triangle with exclamation mark is shown at first, but I override it by pressing Power and Volume Down simultaneously.), where "Install zip from sd card" should appear, but it does not. This option is missing. What am I doing wrong? I tried all "Apply from ...." options with SuperSU.zip properly placed on SD card (I even placed it extracted there into UPDATE-SuperSU-v1.80 folder), but the phone just get restarted and I still do not have root access.

I even tried to use WinDroid Universal Android Toolkit v2.5 and click FLASH SUPERSU, but I get the same result - I override red triangle by pressing Power and Volume Down simultaneously and "Install zip from sd card" option is missing.

Thanks.
[HTC Desire X] matoneo:
I have same issue with RUU and error 158. Could you point me please to PM66IMG.zip installation procedure?

Thanks
[HTC Desire X] RuudM:
Error 158 means that you have the wrong RUU in relation to your CID. To find more about PM66IMG.zip you can highlight the text and click on the magnifying glass which pops up for contextual search on XDA, lots of info. It comes up with something like this.
[HTC Desire X] nlooooo:
Well, the point of renaming is to be easier to issue a command (fastboot flash recovery c:\recovery.img), you can call it however you want you just need to write it like that when you write command.
[HTC Desire X] nlooooo:
Just unlocked and rooted my DesX using this method and everything works perfectly.
[HTC Desire X] Izzy Stinson:
oh so thats the only main reason to rename it? LOL :D

what the ****, i thought you already unlocked and rooted your Desire X using this method since, i dont know.. you started making this tutorial or even way before? LMAO :p
[HTC Desire X] nlooooo:
It was written on the first post that I didn't root it, I have a 2 years experience in these things, I don't need to try to know how...
[HTC Desire X] Izzy Stinson:
okay one last question. after i unlocked my bootloader and root my desire x, then i will not be able to download and install software updates from settings>about>software updates right?
[HTC Desire X] nlooooo:
Nope, you'll have to relock bootloader and reinstall stock recovery.
[HTC Desire X] Izzy Stinson:
just what i thought.

therefore, unlocking bootloader and root means you sacrifice the official software upgrades yes?
[HTC Desire X] MaartenXDA:
Yes, but there's always a way to get back to stock and get the update.

Sent from my awesome fridge
[HTC Desire X] nlooooo:
Flashing of stock recovery and bootloader relocking via fasboot, rebooting and applying of update, simple isn't it?
[HTC Desire X] MaartenXDA:
Yup, but you also need a stock ROM, if you don't have any. Cause the sense revo ROM doesn't have the option to get an update, you'll always need a stock ROM.

Sent from my awesome fridge
[HTC Desire X] nlooooo:
Of course, were talking about stock rooted rom, even a nand backup can do the thing. People always talk about removing bloatware from system and that's how they delete some necessary files for the update. I don't see the point for removing of files from system since there is 300+mb free plus data partition is 1.1gb.
[HTC Desire X] Izzy Stinson:
alrighty then. i guess the smart move would be upgrade the software to the latest software version available first, then proceed to unlock bootloader and root.

one more question, does relocking bootloader require wipe data(factory reset) too as unlocking bootloader?

i just hate to backup all my **** over and over again -_-
[HTC Desire X] MaartenXDA:
Nope, the only thing it does is relocking, no wiping or anything like that.

Sent from my awesome fridge
[HTC Desire X] Izzy Stinson:
so lets say i unlocked my bootloader and root. then theres a new software updates and i want to upgrade but i cant. so i relock my bootloader and reinstall stock recovery (which doesnt require wipe) and then get the updates. then i want to root again which means i have to do the wipe process because of the process of unlocking bootloader -_-
[HTC Desire X] nlooooo:
You're on point.
[HTC Desire X] Izzy Stinson:
well im already on the latest software version updates possible right now and i think im ready to unlock my bootloader and root now using your method. wish me luck! :p
[HTC Desire X] nlooooo:
Updated, added going back to stock for official update (second post).
[HTC Desire X] MaartenXDA:
Nice, gonna refer everyone who asks a noob question to this.
[HTC Desire X] Izzy Stinson:
i finally unlocked my bootloader and rooted my phone with this method :good:

i think you should update the command in this "- once you’re in fastboot mode open command prompt, lead it to folder where you installed adb and fastboot (remark: unlocking bootloader guide pointed you to make a folder "c:\Android)" TO "cd c:\Android"

and also you should also mention that everytime if wish to enter fastboot, you need to remove and reinsert battery. if you go fastboot reboot, then go to fastboot again with voldown + power keys it will not work. you need to remove and reinsert battery then retry then it will work. at least thats what happened to me.

and also i want you to update this "- Do not disconnect your phone from PC, reboot phone to fastboot on one of this ways :

1.	power it on holding power+vol down then select fastboot from bootloader menu

2.	issuing command" TO "disconnect phone from pc, turn off phone, then remove and reinsert battery then enter fastboot, then connect phone to pc again".

other than it works smooth and my phone now rooted.
[HTC Desire X] nlooooo:
Ok, first I take knowledge of DOS command as mandatory for this, so I don't want to make a new post "DOS commands". As I stated before if you manage to unlock bootloader you know all this and I don't need to explain how to get there. If you don't have success with bootloader do not proceed further.

To boot into fastboot you don't need to remove the battery, simply choose restart from power menu and when the screen comes off wait for the buttons to turn off and immediately push volume down, the phone will boot to bootloader.

The command from fastboot:

fastboot reboot-bootloader​

will reboot your phone to fastboot. Also the command:

adb reboot-bootloader​

when your phone is on or it is in recovery will take your phone to fastboot. If you red the tutorial more carefully you wold fine part with rebooting from fastboot to fastboot when you flash recovery. And ok, I'll add part with turning off with vol down.

One more thing, evade turning phone off removing the battery, Desire S had emmc chip that knew to burn out in that way, and we don't know if HTC decided to install the same crap again but now in our phone.

When you successfully root you phone install app Rom Toolbox Lite from Play Store, it has Rebooter tool which you can set as a shortcut to the screen of your phone. It has next options:

reboot

fast reboot

reboot recovery

reboot bootloader (will take you to fastboot not bootloader screen)

power off

restart system UI

use it to reboot the phone to this mods.

Anyway, Izzy thanks for the tip, cheers.
[HTC Desire X] Izzy Stinson:
so i guess the removing battery part only happened to me i guess. because i have tried like 6 times i restart my phone and immediately push down volume button it reboots normally. and also i try turning off my phone, hold down volume button and press power button it boots normally too. then i try removing and reinsert my battery once then finally it works with a single try to enter fastboot. i dont know why its weird lol.

thanks for the rom toolbox lite, it would come really handy for me :laugh:

amd your welcome, just wanted to improve the guide to help noobs without getting any trouble :D
[HTC Desire X] neXus PRIME:
hi

Go in Settings - > Power -> Uncheck fast boot(for Quick boot). Then restart,

Now you wont face the issue.

Regards
[HTC Desire X] w1040:
Awesome, didn't know that thanks so much :cool:
[HTC Desire X] itresources:
I can confirm that a gold card no longer works on this device.

CID check fails after signature check. (Using NZ phone CID=VODAP022)
[HTC Desire X] nlooooo:
Did you try with PM66IMG.zip or you tried to run ruu?
[HTC Desire X] itresources:
I'm not actually a new user. Just can't access my old account as the email address is no longer in use.

I did try RUU which of course failed. But also tried PM66IMG.zip as well from bootloader. Still failed.

Does anyone think goldcard fails because cid is reversed from internal card as opposed to the sd card?
[HTC Desire X] nlooooo:
It could be, but you can try with the tool I attached, you can chose both mmc0 and mmc1, try with both.
[HTC Desire X] itresources:
One step ahead of you. And unfortunately its still a no go. I may just have to wait for NZ RUU to be released.
[HTC Desire X] nlooooo:
Ok, I'll remove the part from the tutorial. I was damn sure it would work.
[HTC Desire X] swissly:
Thanks for this wonderful tutorial! I have three questions though: :o

- will my phone still have root access when I go back to the original recovery?

- do I also need to relock the bootloader to be able to apply OTA updates or is the original recovery enough?

- will my phone not factory reset/loose all settings when flashing the original recovery only?
[HTC Desire X] nlooooo:
Ok, in order you asked:

- Most likely yes, but that's not the hardest part, you've already did it once?

- As I explained, flash stock recovery and relock bootloader, it's mandatory.

- Phone will not reset with flashing of stock recovery, nor with relocking of bootloader, However it will reset it when you unlock your bootloader after applying of OTA update.
[HTC Desire X] swissly:
Ok, thanks. And there is no manual way to apply any update to the stock ROM?
[HTC Desire X] nlooooo:
As far as I know no, until you can get it as a zip.
[HTC Desire X] sunnysigara:
first install update then root?

Ok. Today i got a system update which contains a software update to 1.18.720.1(32.93 MB). I haven't rooted my phone yet. So can I first install the update & then root?
[HTC Desire X] nlooooo:
Of course.
[HTC Desire X] xxalexdomxx:
Beginner here, thank you for the post!
[HTC Desire X] rogio2:
Hi, I have phone from play is a system update, it gets but I have a problem with the installation of the phone is uploaded CWM zrotowany and therefore do not want to install because it comes after a reboot in CWM, this is my first HTC and all the time to teach him what to do to update came, unroot a hint??
[HTC Desire X] nlooooo:
Page 1, post #2.
[HTC Desire X] umo4u:
video tutorial

please mate can ya make video tutorial of this one :) because some things re confusing as i am new
[HTC Desire X] nlooooo:
Nope, like I've already said if you're unable to unlock bootloader on your own, you don't qualify for the rest of the process. It's for your good, I don't want you to destroy your phone and then blame me for that. I was a newbie once, then I red, and red, and red... Then tried, and tried, and, tried... That's the proper way, not video tutorial.
[HTC Desire X] ranalakshay36:
I tried and found that OTA update can be applied with unlocked bootloader we don't need to relock the bootloader as I tried it. And update installed successfully.

:)
[HTC Desire X] nlooooo:
I don't belive until I try it myself.:p

I'm just kidding, I'll let it stay this way mostly because of RUU running and when I have time I'll revrite it a little bit.

Thank's for the info.
[HTC Desire X] silverbath:
Hi there, I also tried to flash stock recovery with this tutorial to get the official updates. I have now RELOCKED bootloader and version 1.18.401.1 installed. I tried both recovery images (Cobje - stock recovery img from latest update (1.18.xx) and the attached one also). I'm stuck in cmd that says FAILED :( :

Any suggestions please? Excuse me if this is a noob problem :rolleyes:
[HTC Desire X] nlooooo:
You cannot do that with relocked bootloader, you should have flashed recovery first, just like I posted. Now you can unlock it again, but it will erase your data partition, or run RUU to start all from scratch.
[HTC Desire X] neXus PRIME:
i see you havent metioned twrp-thread in the custom recoveries section.
[HTC Desire X] nlooooo:
Added, tutorial was made before TWRP was functional.

Thanks for the tip.
[HTC Desire X] itresources:
Could I ask?

Exactly where did people find the released RUU's? as there may be a way to get some more if I had a place to start looking.

And please don't say "google it"
[HTC Desire X] nlooooo:
Check in the Index from my signature.
[HTC Desire X] itresources:
Sorry I should have been more clear.

Where abouts did the ones in the index come from? Were they given secretly by an HTC staff member or pulled from an HTC developer site or were they built from source?
[HTC Desire X] nlooooo:
Their origin is HTC for sure, but how did we get them I don't know. It's good to have them so I don't care.
[HTC Desire X] Stereo8:
That Football guy on xda is releasing all of the RUUs...