yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers HTC One X, Telstra One XL] grankin01:
Before I start, you do this at your OWN RISK!

For this to work you need to have ADB and an understanding of how to use it and you need root privileges (although I didn't test this). You also need a hex editor of some sort like HxD.

Ok, enough of that. Here goes:

1. Go to the directory that you have adb in.

2. Plug your device in and make sure that debugging is enabled.

3. Type "adb shell" and hit enter.

4. Once at the shell prompt type "su" and hit enter.

5. Then type "dd if=/dev/block/mmcblk0p23 of=/sdcard/misc" and hit enter. It should say "blah records in, blah records out, blah in blah seconds ;). This will put a file on your "sdcard" that you will need to edit.

6. Next type "exit" and hit enter. Type "exit" and hit enter again.

7. Type "adb pull /sdcard/misc"

8. Now, open your hex editor and browse to the directory that adb is in. Open the misc file that you just pulled from your device.

9. Look for offset 000000A0. It should have 1.xx.xxx.x or something like that.

10. Change this to 1.00.000.0 and save the file as miscMOD.

11. Go back to your command prompt and adb directory. Type "adb push miscMOD /sdcard/miscMOD" and hit enter.

12. Now go back to the android shell. Type "adb shell" and hit enter then type "su" and hit enter again.

13. Now type "dd if=/sdcard/miscMOD of=/dev/block/mmcblk0p23" and hit enter. It should say "blah records in, blah records out, blah in blah seconds ;). This will overwrite the misc partition with your edited file and effectively tell it that it is version 1.00.000.0.

14. To make sure that this worked you can restart the phone, go to settings, about phone, and software information. Software number should say 1.00.000.0.

15. You can now downgrade your software via RUU.

Enjoy!
[AT&T, Rogers HTC One X, Telstra One XL] dharani1234:
easier than expected ... tks for the writeup...
[AT&T, Rogers HTC One X, Telstra One XL] LNKNPRKFN:
Cheers!!! hope this works for the Rogers HOX
[AT&T, Rogers HTC One X, Telstra One XL] Root-Maniac:
edit will post back shortly
[AT&T, Rogers HTC One X, Telstra One XL] john9:
wow! nice to see this.Thanks for your contribution .
[AT&T, Rogers HTC One X, Telstra One XL] mbonus:
Probably not the place for this, but just saw this on JCase twitter feed:

Justin Case ‏@TeamAndIRC

If you are stuck on the 1.85.x.x firmware for the HTC One X (AT&T), have ADB setup, and are fairly confident hit me up

Collapse

Reply

Retweet

Favorite

12:54 PM - 24 May 12 via TweetDeck · Details
[AT&T, Rogers HTC One X, Telstra One XL] XsMagical:
Great write up, this will help a lot of people
[AT&T, Rogers HTC One X, Telstra One XL] akvtiger:
No go for me. Software number stayed the same.
[AT&T, Rogers HTC One X, Telstra One XL] grankin01:
Were you trying to do it as root?
[AT&T, Rogers HTC One X, Telstra One XL] akvtiger:
Correct as root. I did another pull and can confirm that change is there. It's just not showing up under Software number.
[AT&T, Rogers HTC One X, Telstra One XL] grankin01:
This process may be made obsolete. Have you tried the bootloader unlock yet. That was the only reason the I even tried to downgrade but I don't think it will affect the way I did the other process at all. ;)
[AT&T, Rogers HTC One X, Telstra One XL] 09CarreraS:
This does not work for some reason. The file was pushed correctly. I pull it back down and the hex was changed to show 1.0.000.0. However, the software still stays 1.82. Any ideas? I also tried using the complete file path to include the two other sub dicrectories /dev/block/platform/msm_sdcc.1. This made no difference as well.
[AT&T, Rogers HTC One X, Telstra One XL] grankin01:
The number should be in this format: 1.00.000.0

That may be your problem. ;)
[AT&T, Rogers HTC One X, Telstra One XL] akvtiger:
I have not tried to bootloader unlock. I was just trying to get it back to stock.
[AT&T, Rogers HTC One X, Telstra One XL] Root-Maniac:
Same thing for me earlier :)
[AT&T, Rogers HTC One X, Telstra One XL] 09CarreraS:
That's a typo from me. How do you downgrade even if you unlock the bootloader?
[AT&T, Rogers HTC One X, Telstra One XL] grankin01:
I would say you still need to make it think the main version is lower than the RUU version. I'm not exactly sure what is going wrong with your. :O
[AT&T, Rogers HTC One X, Telstra One XL] designgears:
odd, this didn't work when I was testing out the first leak and trying to downgrade to the shipped ruu.
[AT&T, Rogers HTC One X, Telstra One XL] 09CarreraS:
Ok two things I figured out. First you need to put your CID back to CWS rather than Rogers. Or use superCID . This fixed my problem. Also if you follow the directions here you dint need to check the software version. Just ADB reboot bootloader and run RUU . It will tell you there which revision you are on. I went from 1.82 to 1.73.
[AT&T, Rogers HTC One X, Telstra One XL] TKTAB911:
At the top of my "misc" file in my hex editor it says;

CWS__001..

--

Or however many periods. I already unlocked my bootloader [changed to SuperCID(11111111)] so I found that odd that it remained CWS and not 111.

Anywho, I just unlocked my BL and ran the 1.73 [shipping RUU] installer to hopefully downgrade. It went as far as to the "waiting for bootloader" message on the 1.73 installer then displayed an error. I'm not really in the mood to mess around with it, But I'm just sharing my results here. The CWS at the top of my copied over "misc" file still seems odd..
[AT&T, Rogers HTC One X, Telstra One XL] ThrasherSC2K2:
You have to Re-Lock the bootloader before flashing an official RUU again (fastboot oem lock)

The flashing of the RUU will also restore the original recovery image in case you already swaped it for CWM.

After the downgrade you can un-lock and root again.
[AT&T, Rogers HTC One X, Telstra One XL] UnknownPleasures:
Nevermind, just going to return my device with the leaked RUU.
[AT&T, Rogers HTC One X, Telstra One XL] TKTAB911:
Yeah.. But, relocking it = lets me downgrade? I don't believe that will work..
[AT&T, Rogers HTC One X, Telstra One XL] beaups:
Follow the instructions in the OP, then relock, then run RUU to downgrade....if I understand correctly.
[AT&T, Rogers HTC One X, Telstra One XL] TFJ4:
I can confirm this works, relocking the Bootloader was the key issue for me. Until I relocked I kept getting a 155 error in the RUU
[AT&T, Rogers HTC One X, Telstra One XL] dragunbayne:
My file is completely blank in the hex editor. I am at a loss what to do. Any help is appreciated.
[AT&T, Rogers HTC One X, Telstra One XL] grankin01:
Are you sure you pulled the right partition? There are a couple of partitions that are blank but I can't remember exactly which ones. Make sure it was the misc (mmcblk0p23) partition.
[AT&T, Rogers HTC One X, Telstra One XL] mjwitt2:
Void?

I am doing this too as an exchange due to a defect in my screen. Is warranty an issue here with the leaked ruu? I mean, TECHNICALLY it's stock, right? Or can you play ignorant on this one?
[AT&T, Rogers HTC One X, Telstra One XL] rquinn19:
Let us know how it goes.
[AT&T, Rogers HTC One X, Telstra One XL] UnknownPleasures:
They just powered it on to make sure it worked.

I doubt store associates even know what the stock firmware number is or anything like that.

Had no problems whatsoever.
[AT&T, Rogers HTC One X, Telstra One XL] mjwitt2:
OP Instructions Worked...

I followed the instructions in the OP and everything worked for me. I'm now back to stock out the box. While at 1.82, I had to apply the one-click root and then do all the ADB stuff, but it worked like a charm! Now I just have to wait until my local store gets their stock of phones. Stupid customs. Stupid Apple. Stupid HTC...Anyway, Thanks, op.
[AT&T, Rogers HTC One X, Telstra One XL] UseYourIllusion:
Last night I flashed from stock, bootloader never unlocked and never rooted, to the leaked 1.85 in hopes it would fix my bluetooth issues. Well it didn't and now I want to go back and unlock and ROM the phone. Is it possible for me to downgrade to do this or do I just have to stick it out and wait until root is released for 1.85?
[AT&T, Rogers HTC One X, Telstra One XL] dharani1234:
You will hvae to wait till the 1.85 gets rooted ... (and I clicked on thanks by mistake ) :)
[AT&T, Rogers HTC One X, Telstra One XL] UseYourIllusion:
Damn.. That's what I thought. Okay well I guess I'll go and exchange it, I hope my problems with Bluetooth were just on my phone and not prevalent, I really like the device even stock and would like to keep it. And I gave you one back.
[AT&T, Rogers HTC One X, Telstra One XL] lyall29:
I tried the misc file 3 times and when I open the hex editor its all zeros. What could I be doing wrong?
[AT&T, Rogers HTC One X, Telstra One XL] drklazarus26:
im having the same issue. does anybody know a fix?
[AT&T, Rogers HTC One X, Telstra One XL] The_Zodiac:
have you tried using this?

http://xdaforums.com/showthread.php?t=1672284
[AT&T, Rogers HTC One X, Telstra One XL] lyall29:
This does indeed work. I forgot that I already had supercid from when I unlocked my bootloader in the first place, so I simply ran the stock ruu and it worked fine.
[AT&T, Rogers HTC One X, Telstra One XL] drklazarus26:
so i can just run the stock ruu? i dont need to lock my bootlaoder?
[AT&T, Rogers HTC One X, Telstra One XL] drklazarus26:
I already have the Super CID but when I try to run the Stock RUU I get an error
[AT&T, Rogers HTC One X, Telstra One XL] grankin01:
Is your bootloader unlocked? If so you'll have to relock it to get the ruu to work. Then unlock it again.
[AT&T, Rogers HTC One X, Telstra One XL] freshleysnipes:
If you want to know how to lock your bootloader to flash a stock RUU, then unlock it again, follow this guide: http://xdaforums.com/showthread.php?t=1675312
[AT&T, Rogers HTC One X, Telstra One XL] drklazarus26:
thanks guys. i finally got it to work!
[AT&T, Rogers HTC One X, Telstra One XL] lyall29:
Thanks everyone for all your help. It sure is nice to have people who are willing to help someone when they can't figure something out instead of flaming them and calling them noobs. We really have a great community of folks here in the att one x threads.
[AT&T, Rogers HTC One X, Telstra One XL] drklazarus26:
truth and everyone was a noob at some point. thats how we learn. thanks again everyone!
[AT&T, Rogers HTC One X, Telstra One XL] The_Zodiac:
okay guys i could use some help. im on 1.88.5 running cleanrom (bootloader unlocked)

and i cant get this to to work

when i open up the file i pull with hex editor its all sets of "00"

any ideas on what i can do?
[AT&T, Rogers HTC One X, Telstra One XL] dedzombie:
If you have super cid there is no need for this, just make sure your boot loader is relocked and install the ruu
[AT&T, Rogers HTC One X, Telstra One XL] The_Zodiac:
how do you know if you have super cid?

i tried to run super cid now but cant (get an error message) are you suppoed to run it with bootloader locked or unlocked ?

or is super cid a differnt way of unlocking bootloader then htc dev?

(confused)
[AT&T, Rogers HTC One X, Telstra One XL] dedzombie:
What was the error?
[AT&T, Rogers HTC One X, Telstra One XL] ptesmoke:
I have supercid and the rogers ruu fails with error 140 boot loader error

I am relocked..
[AT&T, Rogers HTC One X, Telstra One XL] gunnyman:
I get the same going from 1.85 to 1.73 Error 140. I also have Super CID
[AT&T, Rogers HTC One X, Telstra One XL] z28james:
So, my co-worker was able to downgrade with no problem to 1.73 and I had no idea how he had no problem and I kept getting the 140 error. The thing was, previously I was on CleanRom 2.1 and the 1.85 RUU worked even though my software version was higher than the RUU version (I just wanted to go back to a clean 1.85). The software version appeared as a blank. My co-worker was on CleanROM 2.2 and his was the same.

I'm not quite sure why this happens, but perhaps try flashing CleanROM 2.1, hop into fastboot and see if you can now downgrade.
[AT&T, Rogers HTC One X, Telstra One XL] dedzombie:
I haven't looked at how the one-click method sets CID, but one thing you might want to try is booting to fastboot and running the command 'fastboot oem writecid 11111111'

I think i remember seeing somewhere that CID is referenced in a few places, not just the partition that is edited, maybe thats the cause of some of these failures?
[AT&T, Rogers HTC One X, Telstra One XL] saketh91:
very sorry for posting it here but this is my problem

i installed 1.85 without supercid and i am not able to root it not even unlock bootloader in htcdev and i am stuck.i cant follow your method posted here as i have not rooted my phone.please help me
[AT&T, Rogers HTC One X, Telstra One XL] gunnyman:
there's nothing anyone can do for you.
[AT&T, Rogers HTC One X, Telstra One XL] nunyabiziz:
Currently there isnt any known method that will help you out.
[AT&T, Rogers HTC One X, Telstra One XL] rubenswing:
I have a question. I am on 1.29.720.11 and I want to downgrade to 1.28.720.10 if I use this tool will I be able to downgrade and what about the Hboot version it was also upgraded with the said OTA, wouldn't that create a problem? and also the 1.29 OTA upgraded the radio to a newer version. I have a relocked bootloader
[AT&T, Rogers HTC One X, Telstra One XL] The_Zodiac:
i have super cid, and am on 1.85 running clean rom.

the problem is when i lock the bootloader, i can only boot into the bootloader, so i cant flash a stock ruu
[AT&T, Rogers HTC One X, Telstra One XL] z28james:
Turn on fastboot mode in the bootloader and fire up the RUU. It works while in fastboot.
[AT&T, Rogers HTC One X, Telstra One XL] The_Zodiac:
ahh that worked. is there any way to get the bootloader to say locked, instead of relocked
[AT&T, Rogers HTC One X, Telstra One XL] z28james:
No sir. Not at the moment.
[AT&T, Rogers HTC One X, Telstra One XL] bryyte:
So if I have supercid do I still need to do this in order to get back to 1.82 (from 1.85)

sent by the htc one x

Edit: I suppose that I do seeing how supercid is the only way to unlock the bootloader and you were talking of relocking. Sorry.
[AT&T, Rogers HTC One X, Telstra One XL] Skizzy034:
Anyone try this on the new software that ships with the One X's now?
[AT&T, Rogers HTC One X, Telstra One XL] Tiffany84:
U need root access to do the steps listed in the op unless you have super cid and then u don't even need to use those instructions, atleast on my old phone I didn't. I had super cid on my last phone and I could downgrade without doing anything but relocking the bootloader.
[AT&T, Rogers HTC One X, Telstra One XL] TKTAB911:
You can attempt to force unlock your bootloader on 1.85 through HTC Dev, although many people [myself included] have tried every way we could think of without actually being dev's leaving us at *locked* or *relocked* without any source of root, supercid or bootloader unlock = nothing.

Considering the new shipment is 1.85 stock though; A root/Unlock method for the bootloader will happen eventually ^_^
[AT&T, Rogers HTC One X, Telstra One XL] Skizzy034:
Oh ok. I thought it said in the OP that he wasn't sure if root was required. I think it's in the first couple lines. Not sure tho.

---------- Post added at 02:01 AM ---------- Previous post was at 01:59 AM ----------

Has this worked for anyone? Forcing it? Also, would doing this and it showing relock afterwards prevent us from obtaining root once (if) it comes out? I don't know how it would tho.
[AT&T, Rogers HTC One X, Telstra One XL] Tiffany84:
I don't see that being possible without changing the cid but you never know. As far as it showing re-locked, no, that will not prevent you from rooting. When you first get the phone and you haven't done anything to it, it will show "Locked" in the bootloader but when you unlock it, it obviously will say "Unlocked". But from there on out if you lock the bootloader it will now say "Relocked" instead of "Locked". Easy way for someone to see if you have ever unlocked your bootloader or not.
[AT&T, Rogers HTC One X, Telstra One XL] Skizzy034:
What about tampered. If I just tried to unlock for the hell of it would it say that or still say locked?
[AT&T, Rogers HTC One X, Telstra One XL] Tiffany84:
If nothing gets changed then it will not say tampered. I actually tried a few minutes ago and it didn't work.
[AT&T, Rogers HTC One X, Telstra One XL] Skizzy034:
Ok thanks. Maybe I'll give it a try.
[AT&T, Rogers HTC One X, Telstra One XL] Arie McD:
Everything worked great until Hex Edit. My HOX did not have 000000A0

Any other options?

Thanks
[AT&T, Rogers HTC One X, Telstra One XL] Droidz:
same thing with me can someone help please?
[AT&T, Rogers HTC One X, Telstra One XL] KaiserSnorezay:
Will this work on the international 1X?

I have the international version of the 1X, not the AT&T one..is the process the same?
[AT&T, Rogers HTC One X, Telstra One XL] Unbeatable Guy:
Guys I wanna ask (maybe Noobish) bu

Will this process work for Htc one x (not the At&t version just the normal one)

thanks in advance
[AT&T, Rogers HTC One X, Telstra One XL] daddioj:
no
[AT&T, Rogers HTC One X, Telstra One XL] dc211:
Can someone share a link to their file so we can see what it supposed to look like for those of us who have blank files?

Edit: Found it never mind: http://xdaforums.com/showthread.php?t=1680368
[AT&T, Rogers HTC One X, Telstra One XL] DvineLord:
If I can't get a rom flashed after 2.20 I might try this process.
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
this method worked fine for me
[AT&T, Rogers HTC One X, Telstra One XL] slippers67:
It let you go from 2.20 back to an older RUU?
[AT&T, Rogers HTC One X, Telstra One XL] superchilpil:
There's a script for the rezound that does this in recovery, Scott should be familiar with it as he added it to his Rom to prevent issues as we flashed kernels through hboot
[AT&T, Rogers HTC One X, Telstra One XL] DvineLord:
This didn't work for me. Getting ERROR[155]: UNKNOWN ERROR. Going through the Error Recovery Steps.
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
As long as its htc-signed,yes.

its nornal,ruu not happy about downgrading.

do not close ruu!!!

manually enter to fastboot mode and go through recovery steps

oh and I used utility+PG83IMG http://xdaforums.com/showthread.php?t=1658929
[AT&T, Rogers HTC One X, Telstra One XL] jgrimberg1979:
I just got this phone and it was already on the new update so I can't root. I can use the process in the op to downgrade?
[AT&T, Rogers HTC One X, Telstra One XL] :
Did this downgrade your hboot as well?

Sent from my Nocturnalized Beast
[AT&T, Rogers HTC One X, Telstra One XL] superchilpil:
No that won't be downgradeable until we get s-off I believe
[AT&T, Rogers HTC One X, Telstra One XL] :
That's what I thought. I thought running a ruu with an older hboot would fail.

Sent from my Nocturnalized Beast
[AT&T, Rogers HTC One X, Telstra One XL] daddioj:
it does. period. so i dont get how people can downgrade in the first place. if it sees a newer Hboot it halts. so even if you change ur "misc" version. it still checks HBOOT
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
yep,it downgraded hboot,took several minutes,made me nerveous :)
[AT&T, Rogers HTC One X, Telstra One XL] :
Your ****ting me.! Does Scott know this?

Sent from my Nocturnalized Beast
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
all tuts here at xda.I'll just write quick guide for those who lost..

my steps

-changed misc version according to this thread

-extracted rom.zip from 1.85

renamed to PJ83IMG.zip

-flashed stock boot.img

-relocked bootloader

-phone powered on (normal working condition)

-run utility from HERE with 1.85 PJ83IMG.zip inside (dont forget to delete rom.zip that was inside of that utility)

-it will try to flash,but no go-error

-followed recover ruu option while entered into fastboot manually

-after ruu message recovery success it flashed all the way-several minutes

im sure everyone know how to get 1.85 rom.zip
[AT&T, Rogers HTC One X, Telstra One XL] :
Wow I'm not stuck with new hboot but I'm sure this will be usefull to quite a few people. ;)

Sent from my Nocturnalized Beast
[AT&T, Rogers HTC One X, Telstra One XL] jgrimberg1979:
Will this work on and 2.20 X that has never been rooted (just got this phone)?
[AT&T, Rogers HTC One X, Telstra One XL] :
No the first paragraph of the op states you must be rooted ;)

Sent from my Nocturnalized Beast
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
nope,you cant change misc without root
[AT&T, Rogers HTC One X, Telstra One XL] JSLEnterprises:
I've guinea-piged myself, hboot 1.14 cannot be downgraded, even with misc version change (1.11 from rogers 1.94.631.3 still can). It actively refuses it and that's where the error occurs. If you do it via command prompt it'll show he hboot downgrade rejection. I've attempted every possible method (only some of which are mentioned here) and have supercid.
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
so no more firmware fun?I kept jumping between 1.xx builds,thought it will work the same.

will give it a shot :(
[AT&T, Rogers HTC One X, Telstra One XL] JSLEnterprises:
Scott can confirm. He's stuck with 1.14, however it doesn't stop us from firmware fun... It's just more involved now. Lmao

Ps: recovery can still be flashed, it was an issue on my end which I've resolved... But the hboot downgrade inability still stands.
[AT&T, Rogers HTC One X, Telstra One XL] zounduser:
So is this a no go then with 1.14 hboot?
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
heh,just tried.flushing signature error.

how sweet lol
[AT&T, Rogers HTC One X, Telstra One XL] zounduser:
Answered myself. Damn!! This sucks bro.
[AT&T, Rogers HTC One X, Telstra One XL] zounduser:
Im confused, so u did get the hboot downgraded?
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
Looks like its a go to switch between builds for example 2.20 and 2.23 (they both have same hboot).

2.23 ota install failed on my phone,I could be wrong
[AT&T, Rogers HTC One X, Telstra One XL] DvineLord:
My Unlock_code.bin expired so be careful. I am stuck with pure stock now.

Edit: Manually booted phone into bootloader which allowed me to use my Unlock_code.bin. I am unlocked again.
[AT&T, Rogers HTC One X, Telstra One XL] JSLEnterprises:
Nope, the downgrade is a no-go if you have the 1.14 hboot.
[AT&T, Rogers HTC One X, Telstra One XL] JSLEnterprises:
In hindsight you should have super cid'd
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
when i jumped between 1.xx builds I honestly thought they had different hboots.Seems like they had same hboot thats why it worked for me.

Now Im stuck on 1.14 just like everyone else
[AT&T, Rogers HTC One X, Telstra One XL] JSLEnterprises:
That's because it's an ota :p

You can however use the fastboot flash zip 'filename'.zip command (after fastboot OEM rebootRUU) using the firmware.zip inside the ota since it is signed.
[AT&T, Rogers HTC One X, Telstra One XL] zounduser:
that sucks!! i hope this gets somewhere though! its a great start!:good:
[AT&T, Rogers HTC One X, Telstra One XL] masty86:
driving me nuts

hi am still having trouble trying to figure this out, tried million times step by step i have Rogers HTC one x, unlocked bootloader with Clockwork Recovery and i also have custom Rom installed, and trying to go back to stuck rom.

Heeeeelp!
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
no wonder,all you have is wrong (custom)

-flash stock recovery.img

-flash stock boot.img

-relock

might work

Why you want to go back to stock?Almost all ROMs here stock (with must-have edits such as APM,EQS)
[AT&T, Rogers HTC One X, Telstra One XL] daddioj:
is there a full asia RUU download? or is it on avail FOTA? 2.23 that is
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
Anybody tried to use mmcblk0p12 from lower hboot?

I hexedited my mmcblkop12 partition from 1.14 to 1.00,it didnt helped.

Also question-the one from s-off device,did it bricked?was it resurrectable from linuxbox?
[AT&T, Rogers HTC One X, Telstra One XL] beaups:
Well it's a good thing it didn't work (that partition is wp since ota) or you would've had a brick.
[AT&T, Rogers HTC One X, Telstra One XL] vin255764:
good or bad,I dont know..

when s-on its not that hard to unbrick

hardest part is to brick actually