yashsingh1/xdaforums huggingface dataset:
[HTC One X] jonathan_337:
Hey guys I've just unlocked the bootloader on my HOX and installed CWM and rooted. I had a Galaxy S2 before so flashing roms was a bit different and before I end up bricking my my new phone, I just wanted to get some more info/confirmation as to what I (think) I know before flashing a new rom, Android Revolution. Hopefully this can help some other noobs.

I've downloaded the required files, the rom zip, the kernel bootimg and super wipe.

I have a FAIR GENERAL idea of the steps but I'd like to confirm here before damaging my device.

To my knowledge:

1) Place the rom zip on the internal SD card via USB cable as normal along with the super wipe zip.

2) Boot into the bootloader, enter fastboot and connect the phone via USB and open CMD from the same folder used to root it, with those files present. When CMD is opened enter fastboot devices to ensure the device is being detected and then flash the bootimg kernel using the command "fastboot flash boot boot.img"

3) (unsure of this step and following steps...) After flashing the bootimg via adb reboot the device and enter bootloader mode again and this time enter recovery.

4) In CWM, reset to factory settings (data wipe), clear cache, clear davlik and then flash the super wipe zip and finally flash the rom.

Those are the steps I know..and I've also read of a .bat file to execute the adb commands automatically but I don't know exactly how that works and I'm a bit scared to try it. I've done my research so please don't flame me for asking this, I'm just scared as hell to brick my new phone.

If someone has a clearer simpler list of steps please post them or please correct any errors I have there. Thanks in advance for the help guys :)
[HTC One X] chaosking121:
Making the bat file is very simple..I'll help you on fb if you want...Everything else looks good though...do you really need to connect to the pc every time you want to flash? 0_0
[HTC One X] jonathan_337:
The bat file isn't an issue..once I have the correct commands (if someone can confirm that too it'd be appreciated ) I'm good. And yeah I think so because a kernel ..or bootimg can't be flashed in CWM cuz its S-On ..so anytime u need to flash a new rom I guess you'd have to flash the kernel for that Rom via fastboot.
[HTC One X] Goku80:
fastboot erase cache (bootloader>fastboot)

flash boot.img from bootloader in fastboot mode(fastboot flash boot boot.img)

flash superwipe in recovery

flash rom

flash rom cleaner if you want

reboot

job done:)
[HTC One X] jonathan_337:
Thanks for the reply..Just one other question..from Fastboot (after flashing bootimg) how do you get back to the bootloader so I can enter recovery the flash the rom ? Cuz last time I went there I got no option to go back until it was rebooted into the bootloader..
[HTC One X] Goku80:
i just press the hboot and that gives me the options to recovery again. :)
[HTC One X] jonathan_337:
Thank you :) Thanked you twice for replying :P I just flashed it, worked perfectly :) Gonna flash some other little mods now..First is to get rid of that retarded three button thing.
[HTC One X] Goku80:
No probs mate. Glad I helped.
[Android Software/Hacking General [Developers Only]] tommytomatoe:
Great concept and great work :-)

I can see how this would be very handy!
[Android Software/Hacking General [Developers Only]] c_shekhar:
looks intresting..Hmmmmm
[Android Software/Hacking General [Developers Only]] jeraspie28:
Genius man. Awesome stuff.
[Android Software/Hacking General [Developers Only]] jayallen1980:
Awesome great work. The last line say do comething before the phone is turned off or rebooted. is it suppose to say something.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
'something' is correct, have been changed :)
[Android Software/Hacking General [Developers Only]] varun.chitre15:
Some examples would be good :)

Can you please? :D(Example of Executing Juwe's RAM script will be nice in all cases)

What if I want to keep init.d folder empty and integrate my scripts inside boot.img? and then execute them inside it?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Why would you integrate scripts into the boot.img? The point of init.d is to be able to add things to boot without changing the boot.img. If you want to execute things from within the boot.img, then just place your scripts in it (sbin would be a good place) and execute it the same way my example executes /system/bin/sysinit.

And as for examples, it's easy. Just place your code in that section (onboot, onfs etc) where you want the code to be executed. The onboot is the default in process in most ROM's and also where regular init.d scripts is executed in this example.
[Android Software/Hacking General [Developers Only]] eugene373:
because the point of this is to start scripts when you want.. there is a few scripts I have that can't be ran until os is loaded, there for making this a great setup for me.

init.d & boot.img runs everything at boot... not after boot.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The 'oncomplete' runs everything when the system is fully loaded, that's the point of this init.d system, to be able to run scripts in different ways during different stages.
[Android Software/Hacking General [Developers Only]] eugene373:
yeah I got it..... I've been having one hell of a time starting script until I cam across this...

If it starts like a normal init.d file it hangs the boot process... with this edit I can trigger it to run on bootcomplete with out hanging the service :)

sorry, I just noticed I quoted you and not the other guy :(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes oncomplete, oninit and onservice will not stall the process, oninit will however stall onfinalize, oncomplete and onservice. onservice will run the script in a seperate process in the background, so that will not even stall the rest of the init.d scripts while executing, making that great for scripts that should keep running, or where you don't know how long they should run.
[Android Software/Hacking General [Developers Only]] eugene373:
Adding this into all my boot.img from now on & I'll be sure to link this thread...

I think this should be the new standard for all Devs, this method is not only a great idea!

But for the End User, there's so much more control over what can / should be done on starting process...

I personally want to thank you for this, as this truely is one of the better methods I've ever seen!!

~Eugene
[Android Software/Hacking General [Developers Only]] hashnon:
dk_zero-cool, I'd like to ask you, why you use soft-links and not parameters?

It will remove all

symlink /system/bin/sysinit /system/bin/sysinit.*

from init.rc and you will not need to use case in sysinit.

Because this whole construction:

case $(basename $0) in
"sysinit") INIT_STATE="$1" ;;
*) INIT_STATE="`basename $0 | cut -d '.' -f2`" ;;
esac

seems to me like overload.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Because I have had bad experience using arguments along with the exec command, so I try to avoid that. Mostly because I can't remember the issues anymore.

As for overload, this is to small to be noticed, specially when this is only executed a couple of times during startup. If this was to be executed every couple of minute during the phone on state, then sure. But when the phone has booted, sysinit is no longer used.
[Android Software/Hacking General [Developers Only]] sovereign_313:
Pretty neat design. I've found that having to deal with some of the escaping of an exec can be a nightmare too.
[Android Software/Hacking General [Developers Only]] Kaskade:
In the kernel ramdisk of my Xperia ray, there are two kinds of inits, init.rc and init.semc.rc.

The "on fs" exists in init.semc.rc (where i can see the commands to mount the partitions). In init.rc there's no "on fs" between "on early-fs" and "on post-fs".

So i've put the "on fs"-part in init.semc.rc and the rest of your fabulous work into init.rc. When i look after booting into the /system/bin/ directory i can see all the "sysinit.on........." symlinks. Is that proof that i did everything right so far? Haven't tried any script yet to be honest.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes some phones have extra init files for onfs. Mostly if they use different file system types. What you did is correct in this case.

You can check the file /sysinit.stages.prop to see if all stages was executed. If one stage is missing from that file, it was not executed.
[Android Software/Hacking General [Developers Only]] Yoinx:
Deleted.
[Android Software/Hacking General [Developers Only]] Near_07:
hi is ths still working in android marshmallow? cant find sysinit file in system/bin/sysinit
[HTC One X] mtumnene:
the title says it all basicky i made simple mistake and deleted davlik cache and all that and i cant acesess cwm and i cannot not do factory reset or anthing is way a way i can reset everything through fastbootusb mode or anythin and i have just had the phone for 4 days so am pissing my pants, any help would be much appreciated!!
[HTC One X] bobsie41:
Boot into fastboot (volume down and power) plug in lead.

In command prompt, navigate to adb folder and type: fastboot erase cache

If this doesn't work then more information as to what you have done will be needed before I can help you.
[HTC One X] Fokas.:
First, punctuation.
[HTC One X] bobsie41:
Ignore

---------- Post added 25th May 2012 at 12:02 AM ---------- Previous post was 24th May 2012 at 11:59 PM ----------

That's really helpful thanks. :rolleyes:
[HTC One X] mtumnene:
reply

i tried that but no luck, (and what imformation do you need) what i did was i used Android_Revolution_HD_Super_Wipe_One_X but i done a stupid mistake instead of flashing Android_Revolution_HD-One_X_6.0.0 after the first thing i did .i rebooted the phone then i lost i cwm and couldnt access it and just stuck on the boot load menu and i cant even do factory reset even from their,

if you need more imfo plz ask cause am so scared lol
[HTC One X] graemeg:
Erasing the Dalvik has absolutley no bearing at all on accessing CWM, that wont be the cause of the problem, as suggested you need to boot to fastboot, from there relock ya boot if you unlocked it and run the correct RUU for your phone which will rewrite recovery and everything back to stock.

Make sure in future, especially if flashing custom roms you research the instructions first, failure to do so is what leads to trouble and youre in the best place to get help, Xda community is the best.
[HTC One X] mtumnene:
reply

(glad to hear that) am not very familiar with the technical jargon, if its not a burden could write a step by step guide on how I can do that please
[HTC One X] graemeg:
Don't panic its not a brick.

Hold power 7 seconds to restart phone, when off hold vol down to enter HBOOT.

Once in HBOOT press power to enter fastboot.

First try 'fastboot erase cache' and then 'fastboot reboot-bootloader' this should do the job, if this don't work, reboot into fastboot and try below.

On your pc open cmd and change directory to where your adb and fastboot are. Once there use 'fastboot oem lock' your bootloader should now say Relocked I think.

After that download RUU specific to your handset and run. This should install fine and return you to stock.

After done you may need unlock bootloader again, I did via HTCDEV and then reflashed recovery with 'fastboot flash recovery *recovery name*

Job done, phone restored, panic over :-)

Credits to jdroid of cardiff for this helpful post....
[HTC One X] mtumnene:
reply

ok i will follow what said(as for unlocking the bootloader would i have to go through htc dev all over again
[HTC One X] electronic_stuff:
Not if you still have the bin file they sent you. Just push it bk to the phone as b4
[HTC One X] wolfraim:
First, you need to download the rom from htc, find your version in this thread: http://xdaforums.com/showthread.php?t=1543604

then ejecute it, and go to this folder: %temp%, find a folder that contains a ROM.ZIP file, inside you will find boot_signed.img and recovery_signed.img.

Now do this:

-fastboot erase cache

-fastboot reboot-bootloader

-fastboot flash recovery recovery_signed.img

-fastboot reboot-bootloader

-fastboot flash boot boot_signed.img

-fastboot reboot-bootloader

-fastboot oem lock

then go to FASTBOOT SCREEN and run the downloaded RUU.
[HTC One X] mtumnene:
sorry, what file you talking bout.
[HTC One X] mtumnene:
cant find the correct ruu for 02 uk have tried file factory but the only have and its the wrong 1, any advice
[HTC One X] wolfraim:
O2 means an operador or it is your CID? If 02 its your cid you can try the lastest 1.29.401.11 RUU.

http://www.filefactory.com/file/6kvkplch72kf/n/RUU_ENDEAVOR_U_ICS_40_HTC_Europe_1.29.401.11_Radio_1.1204.105.14_release_260491_signed.exe

Im not sure about it, but you have nothing to lose. Try it.
[HTC One X] BigShowSavas:
Boot to bootloader, enter fastboot mode, use

Fastboot OEM readcid

in cmd window from your fastboot folder. It will show your CID then. Post this here and it might help to determine/find the matching RUU
[HTC One X] mtumnene:
ye my network operator is 02 have tried download the RUU its say "Sorry, the server hosting the file you are requesting is currently down for maintenance. Please check back soon" so i will try later, and i have done what you said on the cmd but just gives other options it does not give me the cid directly.
[HTC One X] ckpv5:
O2 RUU : RUU_ENDEAVOR_U_ICS_40_O2_UK_1.26.206.2_Radio_1.1204.90.13_release_251230_signed.exe

Download here : http://hoxroms.serveftp.com/RUU_END..._Radio_1.1204.90.13_release_251230_signed.exe
[HTC One X] mtumnene:
ye i have tried that one but no luck its say its the wrong before i fuc*ed up my phone it was running on 1.29.401.11.
[HTC One X] ckpv5:
1.29.401.11 stock ?

http://hoxroms.serveftp.com/RUU_END...Radio_1.1204.105.14_release_260491_signed.exe
[HTC One X] mtumnene:
hello i have download the RUU u suggested but it first said error it didint connect the phone even though when i tried the other wrong RUU it didnt say that and now it say my battery is low than 30% so how can charge so i can try again if i load the "htc quietly brilliant" logo it show the red signal on top does that mean its charging. (as for stock software it wasnt the one told you when i got it,i updated using my phone via ota)
[HTC One X] wolfraim:
WHEN YOU ARE CHARGING VIA "HTC QUIETLY BRILLIANT" screen the notification light does nothing... try to charge the battery again until the lights is off.
[HTC One X] mtumnene:
IT appears the RUU is correct, but my battery is below 30% does any know how i could charge it, the way am trying now is through the htc logo,at the current moment the signal light is orange i dont know if it is charging, but is their any other way to do it plz help!
[HTC One X] mtumnene:
ok now its pissing me off its not even allowing to go the "HTC" logo, on top of boot mode it just says "RELOCKED SECURITY WARNING" what does that mean! (I dont wan fuc* up more than i already have). and now the orange light is not appearing any more.
[HTC One X] mtumnene:
(15 mins later) now it goes to the htc logo but no signal light is on.
[HTC One X] domsch1988:
In the dev section there is a thread "how to recover from nearly everything". Do you think this might help more then creating another 3 page thread with a problem you could solve for yourself in 15 minutes with a bot of searching?

Not being mean, just trying to give you all you need to help yourself...

Gesendet von meinem HTC One X mit Tapatalk 2
[HTC One X] BigShowSavas:
Just leave it there ... or try powering it down in bootloader and leave it at the charger (plug! NOT pc USB) until tomorrow ig possible. Then retry procedure.

Meantime, as mentioned above, search xda wiki for "Disaster recovery"
[HTC One X] mtumnene:
ok i will try that, because at the current moment the phones has 0% pecent charge and do you think if i plugged on a normal socket for a whole day would it charge?
[HTC One X] echoesofthe60s:
Not sure about the whole charging thing but the guy above is right, you should read more problem solving threads like the guy above because no one can give you a straight answer. sounds like you've dived straight in(like me).

To me, it seems like the same problem I had when I first started playing with my one x. I rooted it and then instantly flashed a Rom and then another rom and then another rom.. all the while forgetting to do a super wipe inbetween each rom flash along with flashing the corresponding boot.img. I ended up not being able to get into CWM and eventually going into a boot loop.

Have you actually flashed the boot.IMG for the rom? because if not my advice would be once your fully recharged (and if you still can't get into CWM), go back to USB fastboot and flash the latest boot IMG for your rom through your pc command prompt and see if that kickstarts it.
[HTC One X] mtumnene:
(i cant flash anthing cause of low charge) i cant get the phone to charge i have read the "disaster recovery" and tried to charge the phone but no luck!
[HTC One X] sr.mcgill:
Misery likes company

I have a similar problem- I totally did it to myself and I don't think there is a way back at this point. I had been flashing ROM's and went to restore but didn't make a backup (thought I did). Then I flashed new boot.img and then new recovery and couldn't get it load a new ROM so... (and I read this somewhere) I 're-locked' the phone thinking I could go back to the beginning and redo everything but, and its hard for me to say this, I had flashed a new boot.img and the original code from htcdev to unlock was for another boot.img so I think I now have a pretty white brick! I can't get my computers to recognize a drive and since I re-locked it I can't flash anything.

Searching Disaster Recovery
[HTC One X] h00py:
Don't panic

As long as you have access to fastboot you should be able to unlock the bootloader again and reflash the stock recovery. Once you have the stock recovery you just need lock the bootloader and find the correct RUU.

Unlock bootloader > flash stock recovery > lock bootloader > Run RUU
[HTC One X] sr.mcgill:
Thanks for the help but now I'm facing the 'Battery to low' issue. I'll have to give this more attention when I got off work!

This job is interfering too much with my play time!
[HTC One X] brleal:
SAME problem here

First, I would like to thank the information contained here and say this is my first post.

I'm from Brazil (sorry for my poor english) and I have the SAME problem here.

I'm new in Android world, so I was installing various applications that I've found in the web.

Unknowingly, I installed an application that was not ICS4 compatible (this one: http://xdaforums.com/showthread.php?t=956524).

Since then, HTC not boot anymore. Locked on "Quality brilliant" screen.

Then I follow the steps in this topic: http://xdaforums.com/wiki/HTC_One_X

When I got the item "Total recovery", my battery was below 30%.

I left the phone charging in the wall with the white screen of fastboot. While with the screen turned on, the red LED was blinking.

After a while, the LED and screen was off.

Still charging?

There's a way to turn off the screen in fastboot mode?

Thank you all very much!
[HTC One X] pa64:
Yes, it looks like there is a fix here

http://xdaforums.com/showthread.php?t=1658084
[HTC One X] brleal:
RUU restore fixed the problem

RUU restore fixed the problem.

Thank you all!!!
[HTC One X] wolfraim:
To say thanks already exist a THANKS button :)
[HTC One X] sr.mcgill:
I was finally able to get my phone to charge using a Nokia car charger. The 20 minute ride home from work and my phone was over 30%. Now I'm flashed and fully recovered!

Thanks to all who write in and give sugestions
[HTC One X] wolfraim:
Thanks for click THANKS for the help.

Enviado desde mi HTC One X usando Tapatalk 2
[HTC One X] mr.5106411:
can you help me? here is the problem: my one x is bricked and wont turn on or charge therefore cant do any of these fastboot orders
[HTC One X] BigShowSavas:
Leave it plugged to the charger for a day. It might still charge even if led does not turn on. Happened to mine once.

Sent from the reason of my next divorce :D
[HTC One X] mr.5106411:
i did try to do that it didnt work
[HTC One X] BigShowSavas:
Make sure its wall charger, don't use the pc connected USB cable. If still no reaction from the device ... take it back to the vendor and hope they swap it without extensive diagnostics.

Sent from the reason of my next divorce :D
[HTC One X] kylana0:
Working solution to charge HOX without rom/recovery

Hopeyou solved your problem by now, but, just in case someone else has the same problem, as I did whch is why im reading this thread, please refer to this link.

You can create a batch file with the following content:

@echo off

:start

fastboot getvar battery-voltage

fastboot reboot-bootloader

ping /n 6 localhost >nul

goto start

Do this using notepad++ or a text editor like wordpad or whatever you got in your pc, and save it as filename.bat (eg HOXcharger.bat) in a folder where you have adb.exe and fastboot.exe files (such as android sdk/platform-tools).

Then plug your phone into pc with usb cable and switch it on - it should boot into fastboot - double-click the batch file you created and it should open a command window and start issuing commands. This will make your phone reboot continuously and every time it boots up it will charge it a little bit more. It may take a while dependong on how low your battery is but it will WORK. Look at the command window right below <waiting for device> and it will tell you the current battery voltage (which will go up and sometimes down which is normal, but mainly the number will rise - Yahoo!), once you get to 3680mV you should have just enough to flash a new Rom or to run a RUU. Might be best to let it go over it just a bit to make sure it wont switch off.

It's a simple and quick process, I might have bee too detailed making it seem long but it really isn't, I'm just ensuring everyone will be able to succeed, including noobs. And the main thing is

IT REALLY WORKS!!! It was a life-saver for me.

Please refer to original thread (link above) and thank the poster if this helped you.

Let me know if you still got any problems and I'll try to help you out.

Good luck!;)
[HTC One X] DownClock:
My friend and I tried to root his HOX today. Everythings was great until I tried to flash Clockworkmod file, he gets a red text: “This build is for development purposes only Do not distribute outside of HTC without HTC’s written permission. Failure to comply may lead to legal action”

He had a trouble last time he rooted, and he ran a RUU file, and relocked the phone again. Now he and I tried again, and we stock at Clockworkmod part. Would highly appreciate if someone had a solution for that.

EDIT: He do NOT have any kind of bootloop or so. He can start his phone up without any trouble, but when he try to get too recovery the problems come.. Could it be a corrupt RUU version or? He can't get any system updates, and running 4.0.4 / 1.29.
[HTC One X] hill67:
I know have the same problem. Did you fix this?
[HTC One X] vishalsah26:
bricked my htc one x plus .......need help?

after searching a lot about how to unbrick my phone....... i came to know about stock ruu............... flashing the stock ruu for my phone would be the last option left to me....... but i am not able to find the correct and the most relevant ruu for my phone:(....... plzzz can u suggest one for me.....?

Phone info:

CID-11111111

HBOOT-1.32.0000

radio-1.1204.103.14

Main ver.-1.15.502.9

plzzzz suggest me one asap ................... thnks in advance!!!!:)
[HTC One X] virgolib:
You are wrong forum, this is ONE X, not ONE X+, go there >>>> http://xdaforums.com/htc-one-x2
[HTC One X] nick21697:
I ran the downloaded ruu but it still say wrong image. I tried another one too but still gives me the same message saying it is the wrong image. please help