[Q] reverting to stock from nandroid? - HTC One X

Hi
I think I have a hardware issue and need to return my phone to ThreeUK.
Currently rooted and running Viper x 3.8 with TWRP recovery.
version is 3.14.771.34
I have been reading around and trying to work out how to get it back to stock. So far I understand there is no RUU and i need to use a nandroid back up. I downloaded the appropriate one from the collection on here but that is where I am getting stuck.
I read (ckpv5) that the following steps are what I need:
a. Flash the attached stock boot.img
b. Restore your nandroid backup
c. Reboot to bootloader again
d. Flash the attached stock recovery.img
e. Relock your bootloader with command "fastboot oem lock"
f. Reboot your device.. you are done.
I can't work out how to get the boot.img from the nandroid file I downloaded (in the past I just opened the rom zip file and copied it) but when i extract the files there isn't a boot.img?
I am also not sure if I can use TWRP to restore the backup or where to get the most recent recovery.img?
Thanks for any help.

columbo67 said:
Hi
I think I have a hardware issue and need to return my phone to ThreeUK.
Currently rooted and running Viper x 3.8 with TWRP recovery.
version is 3.14.771.34
I have been reading around and trying to work out how to get it back to stock. So far I understand there is no RUU and i need to use a nandroid back up. I downloaded the appropriate one from the collection on here but that is where I am getting stuck.
I read (ckpv5) that the following steps are what I need:
a. Flash the attached stock boot.img
b. Restore your nandroid backup
c. Reboot to bootloader again
d. Flash the attached stock recovery.img
e. Relock your bootloader with command "fastboot oem lock"
f. Reboot your device.. you are done.
I can't work out how to get the boot.img from the nandroid file I downloaded (in the past I just opened the rom zip file and copied it) but when i extract the files there isn't a boot.img?
I am also not sure if I can use TWRP to restore the backup or where to get the most recent recovery.img?
Thanks for any help.
Click to expand...
Click to collapse
Inside the nandroid you should find boot.img and recovery.img as a part of the nandroid. If there's no boot.img inside there's something wrong with the backup.

patensas said:
Inside the nandroid you should find boot.img and recovery.img as a part of the nandroid. If there's no boot.img inside there's something wrong with the backup.
Click to expand...
Click to collapse
I am possibly doing something really stupid. The file I have downloaded from the nandroid collections thread is a 7zp. It is not like the usual zip rom. I used 7zip to extract the files but when I did this there was no boot.img file. There were references to boot but not a boot.img file. Like I said I may not be opening the file correctly or doing something else wrong?

It's probably a boot.emmc.win file. That is done with twrp recovery !
Sent from my HTC One X using XDA Premium 4 mobile app

Mr Hofs said:
It's probably a boot.emmc.win file. That is done with twrp recovery !
Sent from my HTC One X using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks. Do I do the full wipe straight after flashing the boot, and by using twrp (which is my custom recovery)?
You think the above steps (with full wipe) are ok and if I just want to get the 4.2 upgrade from the carrier can I stop after flashing the custom recovery?

Flash the boot file, make a full wipe and restore the stock nandroid backup.
After that you flash back the stock 3.14 recovery. The one in the backup is not stock.
Sent from my HTC One X using XDA Premium 4 mobile app

Mr Hofs said:
Flash the boot file, make a full wipe and restore the stock nandroid backup.
After that you flash back the stock 3.14 recovery. The one in the backup is not stock.
Sent from my HTC One X using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Cheers. I have got a 3.14 recovery from the nandroid collection thread. Is the standard twrp factory reset ok going from viper to stock?

Have ran into a problem
When i tried to restore the stock nandroid using twrp, nothing seemed to happen. I selected the file to restore and the twrp logo cam up and the screen immediately went of. When i pressed the power button it showed the twrp lock screen, but no restore had appeared to happen. I rebooted the phone but it still showed the viper screen and then got stock on the white htc logo screen.
Here are the steps I went through:
1.Downloaded the nandroid for my cid. It was a twrp backup in a 7z file
2. Extracted to the 7z file into its own folder in order to get the boot file.
3.Placed the boot.emmc.win file in my fastboot folder
4. Within the stock nandroid that was extracted i took the folder that contained the boot files etc and placed that in my backup folder beside my own backups in twrp so that i could select this folder to restore.
5. went into bootloader and fastboot.
6. Flashed - fastboot flash boot boot.emmc.win
7. fastboot erase cache
8. i then booted into twrp and performed a wipe
9. Tried to restore the stock nandroid
Any suggestions as to why this did not work?
Thanks

Anyone please?

Solved it by updating twrp 2.5 to the latest version.

Related

[Q] how to get back to stock from Custome ROM

hi
i just rooted added CWM and flashed my 1st custome rom ARHD 9.10
it req to flash a boot.img before flashing the rom i did it flashed the rom everything is ok .Before that i did a nand backup of my orignal rom
now for my info if needed in the future my qestion is
if i want to go back to my orignal nand backup can i just flash it back via CWM
ie restore my backed up orignal stock rom
i did ask this question in one of the threads and they say
this : extract boot.img from your nandroid > flash it with fastboot > go in CWM recovery Flash back the backed up orignal rom via CWM
im not a techie but just going by logic i feel as my original baked up rom has the original boot.img. If i just restore it Via CWM it should work
before i try this and may be brick my 2 weeks old phone can any one kindly give me the exact process for the same :laugh:
thanks in advance & sorry if this has been asked and answered i did search and could not find any answers for the same:laugh:
haree said:
hi
i just rooted added CWM and flashed my 1st custome rom ARHD 9.10
it req to flash a boot.img before flashing the rom i did it flashed the rom everything is ok .Before that i did a nand backup of my orignal rom
now for my info if needed in the future my qestion is
if i want to go back to my orignal nand backup can i just flash it back via CWM
ie restore my backed up orignal stock rom
i did ask this question in one of the threads and they say
this : extract boot.img from your nandroid > flash it with fastboot > go in CWM recovery Flash back the backed up orignal rom via CWM
im not a techie but just going by logic i feel as my original baked up rom has the original boot.img. If i just restore it Via CWM it should work
before i try this and may be brick my 2 weeks old phone can any one kindly give me the exact process for the same :laugh:
thanks in advance & sorry if this has been asked and answered i did search and could not find any answers for the same:laugh:
Click to expand...
Click to collapse
You must flash the boot.img inside your nandroid backup if you are going to restore.
Sent from my HTC One X using Tapatalk 2
Tingelholm said:
You must flash the boot.img inside your nandroid backup if you are going to restore.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
hi
thanks im not good with the fast boot commands
can i just use the fastboot tool i got with the ARHD rom
ie replace the boot.img with the orignal from my Nand back up use the tool and then Flash my nand back up will this work:laugh:
haree said:
hi
thanks im not good with the fast boot commands
can i just use the fastboot tool i got with the ARHD rom
ie replace the boot.img with the orignal from my Nand back up use the too and then Flash my nand back up will this work:laugh:
Click to expand...
Click to collapse
Yup, place the nandroid boot.img in a folder along with the fastboot files. When you are going to restore plug in your phone to your computer. Open CMD and navigate to your fastboot folder. Type adb reboot-bootloader to enter fastboot on your phone. Then type fastboot flash boot boot.img. After that you are good to restore your nandroid backup!
Sent from my HTC One X using Tapatalk 2
Tingelholm said:
Yup, place the nandroid boot.img in a folder along with the fastboot files. When you are going to restore plug in your phone to your computer. Open CMD and navigate to your fastboot folder. Type adb reboot-bootloader to enter fastboot on your phone. Then type fastboot flash boot boot.img. After that you are good to restore your nandroid backup!
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
hi
thanks again buddy
im not new to flashing android custom roms i have done it on my other phones
like the SG3(I5801), HTC tattoo & my last phone Spice MI410(Ideos x6)
but the Bl**dy process on the HOX seems to be too confusing for me
may be ill get it soon:good::laugh:
Flashing a stock ROM is the same.process as flashing any other ROM.
The reason boot.img has to be done separately is because HTC haven't got round to fixing the bootloader to allow flashing the boot.img. When they do that (I though MoDaCo Paul was chasing them.at one point), then flashing ROMs will be one step process again.
BenPope said:
Flashing a stock ROM is the same.process as flashing any other ROM.
The reason boot.img has to be done separately is because HTC haven't got round to fixing the bootloader to allow flashing the boot.img. When they do that (I though MoDaCo Paul was chasing them.at one point), then flashing ROMs will be one step process again.
Click to expand...
Click to collapse
Edit: moved to Samesung threat.

[Q] Restoring

Before i even root my rom i made a backup..And i root mycphone i put custom rom (including flashong custom boot.img cm10.1) and now i want to restore my backup..And now is the question..I must flash stock boot.img or just restore device without flashin another boot.img?
Sent from my HTC One X using xda premium
You need to flash the boot.img that is located inside the backup folder, then a full wipe in recovery and restore the nandroid
Mr Hofs said:
You need to flash the boot.img that is located inside the backup folder, then a full wipe in recovery and restore the nandroid
Click to expand...
Click to collapse
thank you
Sent from my HTC One X using xda premium
And if you are asking this because you want to update to JB you also need to flash back the stock recovery afterwards . The phone won't update on a custom recovery

[Q] Stuck on the white htc logo :(

Hello to everyone.
I was having custom ICS rom, when I found out that there is OTA to JB for my HOX. So I reverted to stock using RUU method and got the OTA update. I had the stock JB rom. I made the nandroid backup and wanted to flash custom JB rom (ViperX Rom). I unlocked my bootloader again, got custom recovery (CWM 5.8.4.0). Then I flashed the boot.img from the rom's zip package and erased cache. I made a full wipe using CWM. Then, using recovery I flashed the custom rom (Viper). The whole process went without any problems, but after rebooting I got stuck oh the white htc logo.
Reverting to stock using my backup ended up on the white logo again. I cannot flash any rom (tried Sense and CM roms) coz every time I got that f...g white screen.
My bootloader is unlocked, hboot 1.36, S-ON model. Custom recovery (CWM 5.8.4.0). I've been trying for four days to get my HOX back to life.
Can anyone, please help me with that.
I don't know what's wrong with your phone, but if you just want to revert back to your backed up ROM, try flash boot from your backup first, and then restore backup. Or try reinstall RUU, maybe...
Die you use the right command for flashing the boot.img ?
Fastboot flash boot boot.img
and NOT
Fastboot boot boot.img ?
TommY.KillER said:
I don't know what's wrong with your phone, but if you just want to revert back to your backed up ROM, try flash boot from your backup first, and then restore backup. Or try reinstall RUU, maybe...
Click to expand...
Click to collapse
I tried to flash the stock boot.img before restoring backup - with no luck
I cannot reinstal RUU, coz I cannot find one, ie RUU 3.16.69.2 (if I am right).
@Mr Hofs
Yes, I used the proper command: fastboot flash boot boot.img and erased cache. It seems that I do everything right, but I still get the bootloop.
Oke, so now the bootloader is unlocked ?
Re-copy the boot.img file from the nandroid folder to the fastboot folder...just to be sure
Flash it with fastboot command and enter the recovery
Then
Wipe data/factory reset
Wipe cache partition
Advanced - wipe dalvik cache
Mounts & storage - format cache, data, system
Then restore the nandroid again !
Sent from my HTC One X using xda premium
Mr Hofs said:
Oke, so now the bootloader is unlocked ?
Re-copy the boot.img file from the nandroid folder to the fastboot folder...just to be sure
Flash it with fastboot command and enter the recovery
Then
Wipe data/factory reset
Wipe cache partition
Advanced - wipe dalvik cache
Mounts & storage - format cache, data, system
Then restore the nandroid again !
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Did what you said. Still nothing
bartdeli said:
Did what you said. Still nothing
Click to expand...
Click to collapse
hmmm so all the steps are covered, could you do me a favour ? flash a new custom ICS rom from scratch....sounds stupid but i had a case a while back that had the updated hboot but also got several errors ....
Mr Hofs said:
hmmm so all the steps are covered, could you do me a favour ? flash a new custom ICS rom from scratch....sounds stupid but i had a case a while back that had the updated hboot but also got several errors ....
Click to expand...
Click to collapse
Hey, you are THE MAN. Seems to be working. I am on viper 2.6 now!!!
What now?
Give me your main version number
Fastboot getvar version-main
Sent from my HTC One X using xda premium
Mr Hofs said:
Give me your main version number
Fastboot getvar version-main
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
2.17.69.2 - I have that RUU if that's what you mean
Yes but the ruu is crap because you already have the 1.36 hboot. Try this
Do a full wipe again and get your 2.17.69 nandroid from here
http://forum.xda-developers.com/showthread.php?t=1975140
Restore it with its boot.img
Then flash back this 2.17 stock recovery
http://db.tt/U5CK4noo
And start updating again and again .....
Mr Hofs said:
Yes but the ruu is crap because you already have the 1.36 hboot. Try this
Do a full wipe again and get your 2.17.69 nandroid from here
http://forum.xda-developers.com/showthread.php?t=1975140
Restore it with its boot.img
Then flash back this 2.17 stock recovery
http://db.tt/U5CK4noo
And start updating again and again .....
Click to expand...
Click to collapse
OK. Will start tomorrow (or today in the morning, coz it's after midnight )
Thank you for your help so far.
No problem ! I hope to see some good news tomorrow
Sent from my HTC One X using xda premium
Mr Hofs said:
No problem ! I hope to see some good news tomorrow
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
I cannot revert to stock recovery. I got an error: cannot load "recovery.img"
My command was fastboot flash recovery recovery.img. The file is in the fastboot folder.
When I was trying to get back to stock for the first time I also had that error. That is why I had to use the RUU to revert to stock.
What now?
did you rename my file to recovery.img ?
Mr Hofs said:
did you rename my file to recovery.img ?
Click to expand...
Click to collapse
yes
are you hiding extensions in windows for the filenames, so that it's not called
recovery.img.img ? seen that problem also before !
Mr Hofs said:
are you hiding extensions in windows for the filenames, so that it's not called
recovery.img.img ? seen that problem also before !
Click to expand...
Click to collapse
No, I do not hide the extensions. I can see the extensions for all the files.
My fastboot folder below.
Ow yeah i see, what could be the problem here ?!
Does the nandroid work ? Except for the stock recovery ?
Try this ... enter the recovery and wipe the cache partition and dalvik cache ....
Then reboot into the bootloader
Adb reboot bootloader (works when you are in recovery)
Keep the phone there and reboot the pc and try again .....
Mr Hofs said:
Ow yeah i see, what could be the problem here ?!
Does the nandroid work ? Except for the stock recovery ?
Try this ... enter the recovery and wipe the cache partition and dalvik cache ....
Then reboot into the bootloader
Adb reboot bootloader (works when you are in recovery)
Keep the phone there and reboot the pc and try again .....
Click to expand...
Click to collapse
yes, I am on stock with custom recovery.
That "adb reboot bootloader" shall I write in cmd in fastboot usb?

[Q] Need Urgent Help...

I have a htc desire hd,bootloader unlocked by htc dev.I was also using SVHD rom.I tried to flash rom which i have used earlier on the device which is cyanogenmod 10.1.But today it got stucked in the logo screen.i use the method of flashing boot.img file through cmd in fastboot.
When i tried to recover my nandroid backup,everything goes fine.but it didnt boot up.its just stuck on htc logo screen now...
My question is that , is there a limit of flashing boot.img file?I mean whenever i installed a new rom i used the method of flashing boot.img through cmd.
Is there a way of removing all boot.img files i hv pushed in my phone through cmd.In case if there is a limit...
Did you flash the correct boot.img associated with the Rom your flashing? (Each different roms boot.img is generally only for the Rom its from)
When you restored your backup, did you flash the backed up boot.img located in the backup folder on the sdcard?
Sent from my HTC Desire HD using xda app-developers app
Lavi26jan said:
I have a htc desire hd,bootloader unlocked by htc dev.I was also using SVHD rom.I tried to flash rom which i have used earlier on the device which is cyanogenmod 10.1.But today it got stucked in the logo screen.i use the method of flashing boot.img file through cmd in fastboot.
When i tried to recover my nandroid backup,everything goes fine.but it didnt boot up.its just stuck on htc logo screen now...
My question is that , is there a limit of flashing boot.img file?I mean whenever i installed a new rom i used the method of flashing boot.img through cmd.
Is there a way of removing all boot.img files i hv pushed in my phone through cmd.In case if there is a limit...
Click to expand...
Click to collapse
Nandroid backups do not require to flash the boot.img in fastboot. Boot.img are not stored in the phone. Every time you flash a different one the other is overwritten. It is like replacing the rom...that is why full wipe is important.
glevitan said:
Nandroid backups do not require to flash the boot.img in fastboot. Boot.img are not stored in the phone. Every time you flash a different one the other is overwritten. It is like replacing the rom...that is why full wipe is important.
Click to expand...
Click to collapse
Q, if your htcdev unlocked and if one restores a backup of a Rom say cm9 and the phone is currently using a sense Rom, shouldnt you have to manually restore the boot.img that's backup up to get it working with the restored rom?
Sent from my HTC Desire HD using xda app-developers app

[Q] Question: Stock Rom, Unlocked Bootloader, TWRP - How to update?

I've unlocked my Three (3) branded M8, installed TWRP and rooted my device (I've also tried out MaximusHD Rom, but decided to restore my original ROM from recovery as I couldn't get some software to load with it).
Three are now pushing out the updates for the M8 and I've tried to install it but it fails. Could someone tell me what I need to do? Back on my One X i needed to re-install stock recovery and re-lock the bootloader. Will I need to do this also?
Only flash the stock recovery if you can get one. Relocking the bootloader is not needed.....
Mr Hofs said:
Only flash the stock recovery if you can get one. Relocking the bootloader is not needed.....
Click to expand...
Click to collapse
Thanks. I'll try that now. So I am guessing once, I've completed doing that. I can then re-flash the TWRP and I'll probably need to root the phone again. Will let you know how it goes. There is a stock recovery that someone posted previously.
What you said worked perfectly, and funny enough I got the original stock recovery from your Thread. Can I ask how I would go about getting a backup of my current recovery now that I've updated my phone?
I tried what you mentioned in your thread about fastboot boot recovery recovery-name.img (yes i did put the recovery name in) but just got an error stating "cannot load 'recovery'".
Thanks for all your help.
Update: I notice that I can still boot into the system and have root even though I'm on the stock recovery, as if I go into Recovery I end up with the HTC Phone and red triangle. Does this mean there is no real reason for me to re-install TWRP? As all I really cared about was having Root.
What you have now is the stock rom and recovery + root. No reason to flash a custom one if you don't want to flash any mods or themes.
To create a new backup you can put the custom recovery in the fastboot folder and indeed perform the command :
Fastboot boot recovery recoveryname.img
If it can't load the recovery you either typed the wrong recovery name or it's not in the fastboot folder. And the f you have a stock nand to share in my thread would be awesome !
Mr Hofs said:
What you have now is the stock rom and recovery + root. No reason to flash a custom one if you don't want to flash any mods or themes.
To create a new backup you can put the custom recovery in the fastboot folder and indeed perform the command :
Fastboot boot recovery recoveryname.img
If it can't load the recovery you either typed the wrong recovery name or it's not in the fastboot folder. And the f you have a stock nand to share in my thread would be awesome !
Click to expand...
Click to collapse
Note that the command is fastboot boot recovery.img
The 'recovery' command will not register. I did it last night
Also, for future reference, I can perform a factory reset with the stock recovery and it will return me to stock even if I have rooted my device? I elected not to install TWRP, but instead just run it temporarily so that I could root leaving my stock recovery intact. Seems like a pretty straightforward answer which is 'yes' but just want to clarify. I have the stock ROM installed (AT&T)
Fastboot boot recovery recovery.img
Yes that's what i wrote right ?
Can you elaborate more on the not registered part ?
And yes factory reset will set it back to stock. Not sure if it will delete root. But all accounts and data will be gone !
Mr Hofs said:
Fastboot boot recovery recovery.img
Yes that's what i wrote right ?
Can you elaborate more on the not registered part ?
And yes factory reset will set it back to stock. Not sure if it will delete root. But all accounts and data will be gone !
Click to expand...
Click to collapse
You wrote: fastboot boot recovery recovery.img
The command is: fastboot boot recovery.img (You do not need to specify the 'recovery' before 'recovery.img')
And by not register I suppose I just mean its an unknown command if you specify a partition/kernel before the 'recovery.img' portion. I'm not sure if I'm using the vocabulary correctly
TheEmpyre said:
You wrote: fastboot boot recovery recovery.img
The command is: fastboot boot recovery.img (You do not need to specify the 'recovery' before 'recovery.img')
And by not register I suppose I just mean its an unknown command if you specify a partition/kernel before the 'recovery.img' portion. I'm not sure if I'm using the vocabulary correctly
Click to expand...
Click to collapse
Ah i see the mistake, thank you....was overlooking that part !
Mr Hofs said:
Ah i see the mistake, thank you....was overlooking that part !
Click to expand...
Click to collapse
No problem I meant no disrespect! I was actually surprised you don't need to specify the partition for a temporary image....From my research it looks like they have may have changed that fastboot command from Android 4.3
TheEmpyre said:
No problem I meant no disrespect! I was actually surprised you don't need to specify the partition for a temporary image....From my research it looks like they have may have changed that fastboot command from Android 4.3
Click to expand...
Click to collapse
haha disrespect ? no no all oke, i was wrong and you where right....you corrected me and thats great ! I also have to learn :good:
Mr Hofs, in my scenario where I have returned to stock recovery, installed the update from three. How would I go about backing up my current recovery? I've tried what you have done in your thread but there is no recovery file in the back up.
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Yeah that's a strange thing. The backup from fisha21 didn't have a recovery either yet the ones made by guywithdesire1992 did have ?! I'm confused about that ! Can you check certain options in twrp maybe ?
Okay, will make a back up over to my computer and then try again. Will report back.
Sent from my HTC One_M8 using XDA Premium 4 mobile app
gaiden0000 said:
Okay, will make a back up over to my computer and then try again. Will report back.
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
If it doesn't work you can also try philz touch, see if there is a difference ?
Mr Hofs said:
If it doesn't work you can also try philz touch, see if there is a difference ?
Click to expand...
Click to collapse
Yep did it with Philz touch and it now includes a recovery.img although it's filesize is 21MB compared to the regular ones. But now at least I have a backup of the recovery. Will upload to a location and post on your thread soon.
Thats awesome ! Really appreciate it
So to be clear, you booted philz and made a nandroid. So the recovery should be the stock HTC one ?
One way to check is to flash the recovery.img that's in the backup folder and enter it. If it gives a phone icon its stock

Categories

Resources