Flashing ROM's and their boot.img - HTC One X

Hi guys,
I understand that due to the restrictions that are still inplace even after unlocking the bootloader using HTCDev.com - we have to manually flash the boot.img before flashing the custom ROM. This is fine by me (until we get S-OFF I assume). If I do a Nandroid backup of a working custom ROM, then later decide to try another custom ROM, I go through the process of wiping, then flashing the new respective boot.img and the new ROM as normal. I then take a nandroid backup of this second custom ROM.
My question is when I decide to do a Nandroid restore, lets say back to the 1st custom ROM, it doesnt work straight away, it appears I have to flash that particular ROM's boot.img again for it to work. This is annoying because it means I must be hooked up to a computer to run the ADB commands to flash the boot.img. Therefore running a Nandroid restore cannot be done while away from a PC!
Is there any way of performing a flash of a given boot.img without the use of a computer? i.e. can ADB commands be invoked in any other way?
Any ideas?
WizzKidd

No, without S-OFF or HTC changing their security policy on boot images then we are all in the same boat. This probably could have gone in Q & A.
Sent from my HTC One X using Tapatalk 2

Question = Q&A Forum (for future reference)

@Evil-Dragon, Thanks. i notice your sig says that your One X is unlocked, is that SIM Unlocked, or just Rooted?
Please move to the correct forum if necessary. Thanks.

Evil-Dragon said:
No, without S-OFF or HTC changing their security policy on boot images then we are all in the same boat. This probably could have gone in Q & A.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Not just probably...
Definitely

Related

[Q] URGENT!!! Reverting back to 3UK Rom

I'm very sorry this is such a noobish question but i was wondering if i could get some help by the people who know what they're doing.
So far what i've done is the following
1- Unlock the bootloader
2- Install Clockwork mod recovery
3- Flash 1.28 firmware
4- Install custom rom (leedroid) + flash boot.img
5- Root phone
Now i've descovered my phone has a few issues and i am entitled to send it back for a replacement.
Could someone tell me the order of how i can undo all the above. I have a nandroid of the original rom. Do i flash that first and then go from there? I need it to be exactly the same as when i first bought it.
Links to guides would be great. Thank you for your help
ahmadcentral said:
I'm very sorry this is such a noobish question but i was wondering if i could get some help by the people who know what they're doing.
So far what i've done is the following
1- Unlock the bootloader
2- Install Clockwork mod recovery
3- Flash 1.28 firmware
4- Install custom rom (leedroid) + flash boot.img
5- Root phone
Now i've descovered my phone has a few issues and i am entitled to send it back for a replacement.
Could someone tell me the order of how i can undo all the above. I have a nandroid of the original rom. Do i flash that first and then go from there? I need it to be exactly the same as when i first bought it.
Links to guides would be great. Thank you for your help
Click to expand...
Click to collapse
If you have a nandroid backup when you flashed custom recovery then restore the backup and relock the bootloader.
shadowboy23 said:
If you have a nandroid backup when you flashed custom recovery then restore the backup and relock the bootloader.
Click to expand...
Click to collapse
Thanks,
Once i've got the nandroid backup done do i flash the stock recovery, then relock the bootloader?
So once thats done no one will be able to know anything has been done to it, correct?
ahmadcentral said:
Thanks,
Once i've got the nandroid backup done do i flash the stock recovery, then relock the bootloader?
So once thats done no one will be able to know anything has been done to it, correct?
Click to expand...
Click to collapse
They can still tell that you have unlocked the bootloader because it will say "RELOCKED" and not even flashing the RUU for the carrier of your phone will do anything because it will still say "RELOCKED"
Would that stop a UK company from exchanging my phone for hardware defects?
ahmadcentral said:
Would that stop a UK company from exchanging my phone for hardware defects?
Click to expand...
Click to collapse
I am not sure. HTC reckons we void the warranty by unlocking the bootloader. But if you have bought it from a shop they tend to just turn the phone ON and look at the problem and they should swap it for another handset or give you a refund. Sales person normally don't get into the bootloader to check out anything. They more than likely have a look at the problem with the software or hardware defects. But if they decide to send it back to HTC then you might not get it replaced.
Ok,
Thanks for your help mate
Hope it gets replaced with one with no issues!
Also forgot to mention once you have restored your nandroid backup, flash the stock recovery and then relock the bootloader.
If you have a nandroid backup when you flashed custom recovery then restore the backup and relock the bootloader.
And if one happens to be the sort of complete fool that forgets the nandroid backup because they were too interested/ wrapped up in all the adb stuff to have remembered this what does one do with a 3 phone? Are there no 3 ruus in the wild at all? None listed on the file forum place.
oisindubh said:
If you have a nandroid backup when you flashed custom recovery then restore the backup and relock the bootloader.
And if one happens to be the sort of complete fool that forgets the nandroid backup because they were too interested/ wrapped up in all the adb stuff to have remembered this what does one do with a 3 phone? Are there no 3 ruus in the wild at all? None listed on the file forum place.
Click to expand...
Click to collapse
I have to admit I am such a fool. But lucky for me my phone is unbranded and has the HK 1.26.708.2 ROM which is in the list so that saved my ass. But for 3UK you might have to wait a bit until someone uploads it. I'm pretty sure it will appear sometime just don't know when.
im in a similar situation apart from i installed ARHD rom and i do have a backup of stock rom from when i installed cwm but my problem is, i flash backup and then flashed stock recovery but when i lock the bootloader and reboot i get greeted by the 1st htc logo then the screen flashes and the same logo appears but under it is some red writing that says something about being a development build and then it boots its self into fastboot but then if i unlock bootloader again the phone boots backed up stock rom fine!?
mines getting picked up on tuesday but i suppose on a plus side a courier is dropping me a replacement and taking my old one away at the same time, so unless the courier starts booting into hboot i should be ok lol
Give me half an hour and I can upload it for you.
Sent from my HTC One X using Tapatalk 2
http://db.tt/gWPc1RMq
It's still uploading at the moment but shouldn't take long.
Sent from my HTC One X using Tapatalk 2
daz1uk said:
http://db.tt/gWPc1RMq
It's still uploading at the moment but shouldn't take long.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Link doesn't work mate?
What's it supposed to be?
Ok guys, so today i flashed the nandroid backup but now i'm just stuck at the white HTC boot screen.
No idea what to do next?
Is it because i was on 1.28 firmware and restored down to a nandroid with 1.26? Is it because i haven't flashed stock recovery yet?
Really need help as i need this done before tomorrow UK time.
Thank You
bump.
I really need help now.
I have nothing on the root of SD card so i can't even flash a custom rom. What do i need to do to get my phone working?

[Q] A few questions about this device!

Hi XDA users, I was wondering if someone could kindly answer a few of my questions:
Is S-Off coming any time soon? If not, do you think it is worth unlocking through HTCdev?
If I were to root and begin to modify things, would the value of the phone decrease for resale, or would I be able to restore everything to how it was originally?
I'm not sure how the process of installing custom ROMs works, could someone kindly explain?
How would I go about installing themes?
Thanks!
UnixxinU said:
Hi XDA users, I was wondering if someone could kindly answer a few of my questions:
Is S-Off coming any time soon? If not, do you think it is worth unlocking through HTCdev?
If I were to root and begin to modify things, would the value of the phone decrease for resale, or would I be able to restore everything to how it was originally?
I'm not sure how the process of installing custom ROMs works, could someone kindly explain?
How would I go about installing themes?
Thanks!
Click to expand...
Click to collapse
We still not have s-off yet but we are getting close
I don't see any drawbacks of having it unlocked through HTC..you have to be careful in following guides that's it
Rooting doesn't decrease vallue of your phone..and yes you can restore it completely to stock if you root and unlock bootloader
Sent from my HTC One X using XDA
jags_the1 said:
I don't see any drawbacks of having it unlocked through HTC...
Click to expand...
Click to collapse
Apart from losing pretty much 100% of the warranty...
UnixxinU said:
Hi XDA users, I was wondering if someone could kindly answer a few of my questions:
Is S-Off coming any time soon? If not, do you think it is worth unlocking through HTCdev?
If I were to root and begin to modify things, would the value of the phone decrease for resale, or would I be able to restore everything to how it was originally?
I'm not sure how the process of installing custom ROMs works, could someone kindly explain?
How would I go about installing themes?
Thanks!
Click to expand...
Click to collapse
We don't have S-OFF
It is worth it if you want to use custom ROMs and Kernels, or applications that needs Rooting, like titanium backup...
Yes, the phone's price would drop, cause you void your warranty completely, and NO, you can't return it to the original state (after locking and un-rooting your phone, it will say "RE-LOCKED" instead of "LOCKED" in your boot loader menu)
After unlocking the phone and flashing CWM recovery, you just copy the custom ROM's file in your SD memory, reboot your phone into bootlader and do four things:
1- flashing the boot.img related to that ROM from fastboot (the developer who created the rom will give you the correct boot image too)
2- entering this command in fastboot: fastboot erase cache
3- going to CWM recovery and wiping your phone
4- installing the ROM from within the CWM recovery
Themes have installation instructions with them, read it

Correct me of I'm wrong ? Pc now needed to flash one x roms every time ?

What's going on with the normal...cwm method that'android has used for the last few years now that ics is out
Do we need a pc now available to actually.flash a Rom every single.time ?
I don't understand what this fastboot.zip is for prior to flashing any normal zipRom in cwm .
I've never had to do this on my galaxy note
Flashed from gb to ics and back
My one x is unlocked and rooted and I have 3 roms I've tried says install complete
But on reboot I'm back.on stock Rom that's factory reset
This is my second post am I missing a step here ? Can anyone answer and explain why all the one.x roms need to flash some fastboot.zip first and is this done through hboot or cwm or on a pc and is it a one time thing
Sent from my HTC One X using xda app-developers app
Until we get s-off we need to flash the boot.img through fastboot because with s-on its not possible through recovery
Sent from my HTC One X using Tapatalk 2
HTC's "unlock" procedure doesn't give you full s-off, it just allows you to write to certain partitions. And while it does allow you to write to the boot partition from fastboot, it doesn't allow you to write there from recovery. Hence when you flash a ROM/backup in recovery, nothing is written to the boot partition, so you have to write the boot.img there yourself using fastboot (from a PC). We're stuck with this until either HTC cave in and give us full access (unlikely) or someone finds an exploit to gain s-off without them.
Ok now I know so for the first time ever now flashing roms requires being infront of a pc the fastboot boot script can only be done on a pc, no script can be done on the go or right from the device...hboot menu,odd Kind of stupid
I've flashed roms with s on
On other HTC devices that gained root and unlock with s on only , but still allowed fully flashing gb roms
Sent from my HTC One X using xda app-developers app
Why can't the boot.IMG be loaded just like you would any other IMG when you boot into hboot it would recognize the new boot IMG ,then from there finish the install in recovery
Why is adb only way to do the fastboot script
People want to flash roms on the go
Reminds me of backtracking the HTC hd2 days
Sent from my HTC One X using xda app-developers app
Isn't this a bug that the guy from modaco was talking to HTC about?
There's also a random guy that posted a google+ conversation in the general section that was saying the next update will make flashing ROMs easier.
Maybe my 2+2 = 5, but this would be nice, it'll just about half the traffic in the ROM threads.

Can someone please make guides/tutorials for S-OFF HTC One X?

Title says it all. I know that with S-OFF, things should be easier than with S-ON. Nut this is my first Android device and even if I read different threads regarding rooting/flashing, etc., things are still complicated specially because the guides are specifically made for S-ON devices - which is understandable, I know. Considering that the existence of S-OFF HTC One Xs are almost a myth.
It sounds like you do know that S-OFF is not generally available for the HOX. So, do you have S-OFF and what specific things are you trying to figure out?
Here are a couple of simple things:
if you have S-OFF, then when you flash a ROM from recovery it will also update the boot.img so you don't need to flash the boot.img separately in bootloader mode.
If you are flashing an hboot, you don't have to the fastboot oem lock first.
The OP has an S-OFF One X and has NO idea what he's doing...complete waste of an S-OFF device IMO
EddyOS said:
The OP has an S-OFF One X and has NO idea what he's doing...complete waste of an S-OFF device IMO
Click to expand...
Click to collapse
Uhh, yeah, I know that. That's why I am trying to learn things. Thanks for 'helping' me 'recognized contributor'.
All you have to do is follow every other guide that's on here, the only difference being you can flash any RUU you want if you need to go back to stock. There's not a lot to it
And just cause I'm an RC doesn't mean I have to be nice
Chezbel said:
It sounds like you do know that S-OFF is not generally available for the HOX. So, do you have S-OFF and what specific things are you trying to figure out?
Here are a couple of simple things:
if you have S-OFF, then when you flash a ROM from recovery it will also update the boot.img so you don't need to flash the boot.img separately in bootloader mode.
If you are flashing an hboot, you don't have to the fastboot oem lock first.
Click to expand...
Click to collapse
I am reading this thread - [Guide] - The Ultimate Stock to Custom ROM Awesomeness thread - Noob friendly and I don't know which steps apply to my phone since the thread is not specifically for S-off devices:
Unlock bootloader - do i need to do this? do i have a reason to go to htcdev.com if I want to install custom ROM on my phone? do i need an identifier token?
Custom Recovery/Clockwork MOD/SuperSU - is this essential so I can flash a custom ROM?
Titanium Backup - is this a must?
EddyOS said:
The OP has an S-OFF One X and has NO idea what he's doing...complete waste of an S-OFF device IMO
Click to expand...
Click to collapse
completely agree :laugh:
Chezbel said:
It sounds like you do know that S-OFF is not generally available for the HOX. So, do you have S-OFF and what specific things are you trying to figure out?
Here are a couple of simple things:
if you have S-OFF, then when you flash a ROM from recovery it will also update the boot.img so you don't need to flash the boot.img separately in bootloader mode.
If you are flashing an hboot, you don't have to the fastboot oem lock first.
Click to expand...
Click to collapse
I am reading this thread - [Guide] - The Ultimate Stock to Custom ROM Awesomeness thread - Noob friendly and I don't know which steps apply to my phone since the thread is not specifically for S-off devices:
Unlock bootloader - do i need to do this? do i have a reason to go to htcdev.com if I want to install custom ROM on my phone? do i need an identifier token?
Custom Recovery/Clockwork MOD/SuperSU - is this essential so I can flash a custom ROM?
Titanium Backup - is this a must?
EddyOS said:
All you have to do is follow every other guide that's on here, the only difference being you can flash any RUU you want if you need to go back to stock. There's not a lot to it
And just cause I'm an RC doesn't mean I have to be nice
Click to expand...
Click to collapse
Oh, i know that one! Had to flash a RUU after I got stuck on boot trying to install a custom ROM. Anyway, S-off or not, do I need CWM? Because that's where I think I got wrong. I never heard of clockwork mod before I installed this custom rom. Now I am reading this guide but it doesn't mention where I should put the recovery.img before I flash it.
Yes you do. Having s-off means you can fall back on any RUU to go back to stock. Other than that you follow the same guides as everyone else
Sent from my Galaxy Nexus using xda premium
Wow.... Seems like the one v forum isn't the only one full of jerks.
Sent from my HTC One V using Tapatalk 2
cammykool said:
Wow.... Seems like the one v forum isn't the only one full of jerks.
Sent from my HTC One V using Tapatalk 2
Click to expand...
Click to collapse
Who is the idiot you're referring to?
Sent from my HTC One X using xda premium
jed27.galvez said:
I am reading this thread - [Guide] - The Ultimate Stock to Custom ROM Awesomeness thread - Noob friendly and I don't know which steps apply to my phone since the thread is not specifically for S-off devices:
Unlock bootloader - do i need to do this? do i have a reason to go to htcdev.com if I want to install custom ROM on my phone? do i need an identifier token?
Custom Recovery/Clockwork MOD/SuperSU - is this essential so I can flash a custom ROM?
Titanium Backup - is this a must?
Click to expand...
Click to collapse
You shouldn't have to do the htcdev unlock
If you want to flash any ROMs or make system backups you must install a recovery such as CWM or TWRP
Perhaps Titanium backup is a not must, but I would highly recommend it. That has nothing to do with S-ON vs S-OFF. It's a very useful tool for backing up your applications and other information. The paid version is well worth the money.
In general, as was mentioned before, you can still follow all the guides step by step. It's possible that some steps don't apply to you, but it won't hurt to do them. If you aren't sure what you are doing then it's better not to guess about which steps to skip.
I have got to the part on installing a custom recovery, but it says NOT ALLOWED. I asked some recognized members and some said that it is not enough that I am s-off to flash custom recovery, that I should also unlock bootloader.
Sent from my HTC One X using xda premium
OK, that makes sense because you have to flash recovery from the bootloader. I think it would save you some time and confusion if you just pretend that you have S-ON like everyone else and follow all steps of the guides you are using.
If you do that, including unlocking your bootloader, then the main difference for you will be when flashing a new ROM from CWM or TWRP since the boot.img will get updated. With S-ON that can't happen from recovery, the boot.img can only be flashed from the bootloader screen.
jed27.galvez said:
I have got to the part on installing a custom recovery, but it says NOT ALLOWED. I asked some recognized members and some said that it is not enough that I am s-off to flash custom recovery, that I should also unlock bootloader.
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
When having S-OFF you have to give the command on whicht partition you want. As I heard you can't say recovery or something.
I managed this with the application "Rom Manager". Also S-OFF device. But for flashing a CWM through "Rom Manager" you have rooted your phone first.
Chezbel said:
OK, that makes sense because you have to flash recovery from the bootloader. I think it would save you some time and confusion if you just pretend that you have S-ON like everyone else and follow all steps of the guides you are using.
If you do that, including unlocking your bootloader, then the main difference for you will be when flashing a new ROM from CWM or TWRP since the boot.img will get updated. With S-ON that can't happen from recovery, the boot.img can only be flashed from the bootloader screen.
Click to expand...
Click to collapse
Some devs don't include the boot.img in their rom zip so you'd still have to flash it separately with fast boot.
To unlock your bootloader simply type fastboot oem unlock, unlike s-on phones, you don't require the unlock file from htcdev.com
Sent from my HTC One X using xda premium
stuart0001 said:
To unlock your bootloader simply type fastboot oem unlock, unlike s-on phones, you don't require the unlock file from htcdev.com
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Are you sure? I don't think that is true (at least not in all cases)
Chezbel said:
Are you sure? I don't think that is true (at least not in all cases)
Click to expand...
Click to collapse
tried fastboot oem unlock, doesn't seem to work for me, I get an error message. Ugh, I can't continue with htcdev.com, their site is always down or very very slow.
Hi Stuart,
Even if the boot.img is included in the zip you need to flash the boot.img separate isn't?
What I'm trying to say is, it doesn't make a difference if they include it in the zip or not, if it's not included you only need to download twice.
stuart0001 said:
Some devs don't include the boot.img in their rom zip so you'd still have to flash it separately with fast boot.
Click to expand...
Click to collapse
Laurentius26 said:
Hi Stuart,
Even if the boot.img is included in the zip you need to flash the boot.img separate isn't?
What I'm trying to say is, it doesn't make a difference if they include it in the zip or not, if it's not included you only need to download twice.
Click to expand...
Click to collapse
With S-OFF, if the boot.img is in the ROM then you don't need to flash it separately.
Sent from my One XXX

[Q] Flashed a new rom with out root..!! Made a blunder mistake.. Is there a Way??

hello guys, I have a serious problem with my device and need your help to sort out the issue.
I have some previous experience in rooting, changing various ROM's in Motorola devices but i am a noob in HTC devices.
I unlocked my boot loader from HTC Dev.
Installed CMW recovery,
took a back up,
and flashed a new ROM.
After flashing my device, it is struck at the boot screen.
I tried to flash another ROM and the same thing repeats,
after that i tried to trouble shoot and then discovered that i did not root the device before flashing and just followed the steps to flash the ROM.
I want to know ,
1. Did i hard brick my device? the Phone boots up, i am able to enter in to recovery mode, flash a new ROM etc.. But that also stops at the boot screen.
2. I tried to recover from the CMW backup, but it shows some error message and unable to recover. i tried all the ways by clearing cache, dalvik memory and every thing, but could not recover.
This is my problem guys,
I know that i made a big mistake, but still i want to know whether there is a way for me to get my device back..:victory:
Please help me regarding this.:good:
I have found many threads that decribe the process for a rooted mobile. But could not find any problem similar to me. Please excuse me if i posted a repeated question.
Please find me a way out..!!!!
Thanks in advance for your valuable suggestions and your valuable time that you have spent on me. :good::victory::victory::highfive::highfive:
Hi
I think there is a way to install a rom with without root. Thats the one u are doing.
It does involves unlocking bootloader,getting cwm recovery, flashing new rom but it seems u have made a mistake somewhere.
Heavy_Metal_man is expert in these situations. Hope he might help you.
Sent from my HTC Wildfire using xda app-developers app
running a ruu might take you out of this situation. As said above heavy_metal_man is the one you can count on.
Actually the thing you did wrong is that you didn't flash boot.img after flashing the ROM. That's a vital step if tyou have unlocked through HTCdev. Nothing related to root. Even if you flash an unrooted ROM, you can always go back to recovery and flash another one. You've just forgotten to flash boot.img. You need to do the same thing if you restore a backup also.
Follow my guide for the process - http://forum.xda-developers.com/showthread.php?p=31211732
Sent from my Desire HD using xda premium
sashank said:
Actually the thing you did wrong is that you didn't flash boot.img after flashing the ROM. That's a vital step if tyou have unlocked through HTCdev. Nothing related to root. Even if you flash an unrooted ROM, you can always go back to recovery and flash another one. You've just forgotten to flash boot.img. You need to do the same thing if you restore a backup also.
Follow my guide for the process - http://forum.xda-developers.com/showthread.php?p=31211732
Sent from my Desire HD using xda premium
Click to expand...
Click to collapse
Exactly right this phone since it had already gained s-off for most of its users before htcdev was even out we never saw a recovery with htcdum-lock or smartflash like more modern phones got. all you have got to do is flash the boot.img from whatever rom or back up your using via fastboot and your off
Tapped out from my sexy nexus 7
By this way, is it possible to overclock ?
Sent from my HTC Wildfire using xda app-developers app
Make a flashable zip containing su binary and superuser.apk and flash it. Then flash it and then flash the rom.
gobz said:
Make a flashable zip containing su binary and superuser.apk and flash it. Then flash it and then flash the rom.
Click to expand...
Click to collapse
If you do that then first the Superuser.apk and su binary will be flashed to /system, then when you flash the ROM, /system is wiped and the ROM is flashed. So that doesn't achieve anything. To root an unrooted ROM, you have to first flash the ROM and then the Superuser zip.
In any case, the OP's problem has nothing to do with root access.
Sent from my Desire HD using xda premium
Odp: [Q] Flashed a new rom with out root..!! Made a blunder mistake.. Is there a Way
flash ruu, you will get stock, then root ur phone and flash other phones.
Wysyłane z mojego HTC Wildfire za pomocą Tapatalk 2
Just to clear something up here, once you have s-off or htcdev unlocked bootloaders you do of need root to flash roms. You only need a working recovery. The roms you flash may have root. But it is not a requirement these days for rom flashing. A root exploit is usually needed to flash a recovery on an otherwise locked device, but not for us
Tapped out from my sexy nexus 7

Categories

Resources