[Q] Get back to Sock OS with Backup - HTC One S

Hi,
Before I flashed my first rom, I backed up the stock OS, and I still have it. If I wanted to flash it back onto my phone, can I just use the ClockworkMod recovery and choose restore? I know after that it will still have an unlocked bootloader and will be rooted, but I just wanna know if I need to use RUU to flash the stock rom which I still have because I backed it up.
Thanks!

elias.acab said:
Hi,
Before I flashed my first rom, I backed up the stock OS, and I still have it. If I wanted to flash it back onto my phone, can I just use the ClockworkMod recovery and choose restore? I know after that it will still have an unlocked bootloader and will be rooted, but I just wanna know if I need to use RUU to flash the stock rom which I still have because I backed it up.
Thanks!
Click to expand...
Click to collapse
I am assuming you made the backup of the stock with ClockworkMod.
Yes, you can restore it and do not have to RUU and you will be fine. Most likely you have fastboot flashed a new boot.img when you installed the new Rom. If you are S-on a restore will not be able to change your boot.img back.
You will need to fastboot flash the backup's boot.img.
This is why it is good to have your backup on your pc. When you open that backup file on your pc, you will see the boot.img file that you need to flash.
If you have changed your recovery or updated it you most likely will have to flash the recovery that made the backup.
The exceptions to the rule would be something like: Maximus HD, where you would need to downgrade your firmware, clear storage in bootloader when you have the stock recovery installed. Reinstall your custom recovery and restore your backup.

tivofool said:
I am assuming you made the backup of the stock with ClockworkMod.
Yes, you can restore it and do not have to RUU and you will be fine. Most likely you have fastboot flashed a new boot.img when you installed the new Rom. If you are S-on a restore will not be able to change your boot.img back.
You will need to fastboot flash the backup's boot.img.
This is why it is good to have your backup on your pc. When you open that backup file on your pc, you will see the boot.img file that you need to flash.
If you have changed your recovery or updated it you most likely will have to flash the recovery that made the backup.
The exceptions to the rule would be something like: Maximus HD, where you would need to downgrade your firmware, clear storage in bootloader when you have the stock recovery installed. Reinstall your custom recovery and restore your backup.
Click to expand...
Click to collapse
Yes! I made it with clockworkmod, thanks, I will try that!
Sent from my One S using xda app-developers app

Related

[Q] Custom Recovery neccessary to perform Nandroid Backup?

Hi,
I already searched the forums, but couldn't find a clear answer. If you would be so kind, just answer the questions with yes/no
A custom recovery is just more capable than the normal recovery?
A custom recovery image is neccessary for a nandroid backup?
Does the custom recovery image overwrites the normal recovery?
Does the original recovery gets restored, if I restore a nandroid backup, which was made at the very first start of the phone (for warranty purpose)?
Is it possible to flash a kernel without a custom recovery or do I need it anyway?
Finally this is what I'm planning to to:
I'll receive my Nexus s today and want to change the carrier-info and install a custom kernel. Therefore I'd like to proceed as follows:
Create a nandroid backup with the original recovery for warranty purpose
Install a custom recovery image (clockworkmod recovery?)
Change carrier-info according to the how-to
Update to stock 2.3.4
Root the phone
Install netarchy kernel
Lock bootloader
Are the steps fine or did I miss something. I would be very delighted if one of you guys could help me!
Thanks in advance!
Long story short you'll need the custom recovery to do anything you see on xda.
Thanks, but that still leaves me 2 questions:
Does the custom recovery overwrite the original recovery?
Is the original recovery restored when I install the original stock rom / nandroid backup?
ca509 said:
Thanks, but that still leaves me 2 questions:
Does the custom recovery overwrite the original recovery?
Is the original recovery restored when I install the original stock rom / nandroid backup?
Click to expand...
Click to collapse
You have two options:
Code:
fastboot boot recovery.img
In case you just want to make a nandroid backup and preserve stock recovery, no flashing process through this command, phone simple boots into a custom recovery.
Code:
fastboot flash recovery recovery.img
Flash any custom recovery and replace stock or wherever recovery was installed before. Very useful if you want to install different kind of ROMs or kernels.
Restoring a backup or flashing a stock ROM will bring back stock recovery. Just make sure this script is present in your phone: /etc/install-recovery.sh It will do the job for you after reboot.

[Q] Restoring stock boot.img

I intend to flash a custom ROM on my One S. I've noticed all roms require flashing boot.img
I did some searching on what boot.img is and found that it has the kernel and booting instructions.. Now, if I flash a new boot.img and some time in the future wanted to restore the stock rom, how do I restore the original one?
I have my nandroid and apps backup. Is that sufficient?
Pheroh said:
I intend to flash a custom ROM on my One S. I've noticed all roms require flashing boot.img
I did some searching on what boot.img is and found that it has the kernel and booting instructions.. Now, if I flash a new boot.img and some time in the future wanted to restore the stock rom, how do I restore the original one?
I have my nandroid and apps backup. Is that sufficient?
Click to expand...
Click to collapse
Restoring the Nandroid will restore the boot image, it is backed up during the Nandroid
If you use TWRP as your recovery, you won't need to flash boot image separate. TWRP bypasses the HTC restriction, allowing the boot image to be flashed with the rom.
If you want a copy of the stock boot.img, I know LeeDroid's Supreme ROM has it linked in the thread there. If you dig that thread out, you can download it and keep a copy of it.
Or run ruu if u want to go back to stock completely
Sent from my HTC One S using xda premium
Thanks all..
I should start my journey then
Good Luck and enjoy
Do as it seems you have done--read OP pages and beginning and ending pages of threads and include System wipes when wiping before flashing--
An update..
As I begun testing various roms.. I found out that neither TWRP nor CWM could manage to flash the boot.img from a nandroid.. I had to flash it via fastboot EVERY time.. TWRP took around 5 min just to flash the boot image and although it reported success, it didn't work! I got stuck at boot animation after flashing my stock nandroid until I flashed a stock boot.img..
No big deal, but just a note for those adventurers..
Flashing With RUU
I'm really new to Android. I've rooted my phone and installed something called TWRP. So will installing a RUU restore the original Boot Image and the Bootloader ? Please repli. Soon Thanks in advance.
AW: [Q] Restoring stock boot.img
The RUU will install stock recovery, stock boot.img and stock rom to your phone. You will lose root, custom recovery and your custom rom.
You have to relock your bootloader for running a RUU.
Sent from my HTC One S using xda app-developers app

[Q] Unable to restore TWRP backup

Hi all.
I unlocked my DS (4.0.4) using Desire S All-In-One kit 2.0, flashed TWRP, and rooted. Phone is S-ON
I took a backup with TWRP, and flashed a new ROM. After the flash, I also flashed the boot.img as I read in the XDA forums and elsewhere.
Everything went fine, I flashed anothe ROM, same procedure, no problem.
After playing with ROMs, I decided to restore the TWRP backup I took before starting.
It just boots into TWRP again. I tried flashing the stock boot.img (which I extracted from the official EU 4.0.4 RUU), but no luck. The phone stays at a black screen after the HTC logo.
I can flash any other ROM, flash the boot.img and I am good to go, I just cannot restore my backup.
Any solutions?
in order to restore backup, you have to flash your backup and the corresponding boot.img
Sent from my supercharged :tank:
hisname said:
in order to restore backup, you have to flash your backup and the corresponding boot.img
Sent from my supercharged :tank:
Click to expand...
Click to collapse
I did.
After the restore, I flashed the boot.img in the official RUU.
That's all I have anyway, as the one in the backup is in a different format (it has a different size anyway).
Is there another source I can get the ICS boot.img to flash?
I tried some other boot images and it didn't work.
As an experiment, I tried restoring another twrp backup from another rom I tried before, and it also didn't work, even after flashing its own boot.img it originally came with.
Today I tried a method of just booting into recovery (temporary recovery) which has (allegedly) the ability to restore the kernel, with no luck.
I can only restore with the same rom.

Q. Can't flash rom

in h-boot it is the bootlocker is unlocked, S-off, and with TWRP i can't seem to flash a rom. I made a backup but it won't restore back to that for some reason. I have tried flashing viper and the gpe rom. I can get into hboot and recovery and that's it. Please help me get my phone back
pballa2099 said:
in h-boot it is the bootlocker is unlocked, S-off, and with TWRP i can't seem to flash a rom. I made a backup but it won't restore back to that for some reason. I have tried flashing viper and the gpe rom. I can get into hboot and recovery and that's it. Please help me get my phone back
Click to expand...
Click to collapse
Should be in Q/A not development.
That said make sure you have the proper recovery flashed. http://forum.xda-developers.com/showthread.php?t=2711051 I think there were a couple TWRP builds. Use this one and try it, I've had no issues.
how do i go about flashing a new version of recovery?
pballa2099 said:
how do i go about flashing a new version of recovery?
Click to expand...
Click to collapse
Check THIS thread, almost sounds like you have the same/similar issue. Note: Anything you may do from here on out could further mess things up, so be very cautious. Also, do you get an error when trying to flash a ROM? If so, that message would be helpful.
To flash a new Recovery (CWM, TWRP "official," etc.) since you can boot into the Android OS, you will have to download the *.IMG file, put that in your ADB platform-tools directory, then start phone in bootloader-fastboot mode, and issue the command: fastboot flash recovery (Filename.IMG)

[Q] Can't find my nandroid backup on TWRP (XT1032)

Hi, I have a moto g x1032 with TWRP as a custom recovery and I have installed an unofficial CM 12 rom. I made a nandroid backup with TWRP before flashing CM 12 and I want to restore my device back to the stock motorola firmware because I have some battery issues with the custom rom and the Lollipop OTA update is coming soon anyway.
Here's my issue : I saved the nandroid backup on my computer and I just copied it back on my internal storage in the TWRP folder, but when I boot in TWRP and go to restore I can't see my backup. :/
I think I made a mistake because I renamed the folder to Android/BACKUPS/Moto g/2014-11-27--06-21-08 KXB21.14-L1.40 and I suppose TWRP only recognizes the original folder name (can't find the original name anywhere).
Can someone confirm the issue comes indeed from there, and if so, tell me the name of this stupid folder ?
Thanks
astrlz said:
Hi, I have a moto g x1032 with TWRP as a custom recovery and I have installed an unofficial CM 12 rom. I made a nandroid backup with TWRP before flashing CM 12 and I want to restore my device back to the stock motorola firmware because I have some battery issues with the custom rom and the Lollipop OTA update is coming soon anyway.
Here's my issue : I saved the nandroid backup on my computer and I just copied it back on my internal storage in the TWRP folder, but when I boot in TWRP and go to restore I can't see my backup. :/
I think I made a mistake because I renamed the folder to Android/BACKUPS/Moto g/2014-11-27--06-21-08 KXB21.14-L1.40 and I suppose TWRP only recognizes the original folder name (can't find the original name anywhere).
Can someone confirm the issue comes indeed from there, and if so, tell me the name of this stupid folder ?
Thanks
Click to expand...
Click to collapse
Hey mate,
To get the ota you'll need stock recovery so it would be best to just flash a stock zip and stock recovery
But to answer your question, on my moto 1032..the folder is ..... TWRP/BACKUPS/TA93008Q52
Thanks, I made a small nandroid backup of just my boot partition to get the number, changed the name of the file and it worked.
I didn't know that I had to go back to stock recovery for the update, is there any way to do that without wiping the data ?
astrlz said:
Thanks, I made a small nandroid backup of just my boot partition to get the number, changed the name of the file and it worked.
I didn't know that I had to go back to stock recovery for the update, is there any way to do that without wiping the data ?
Click to expand...
Click to collapse
Yes, however you'll have to revert all system modifications you made to the ROM (Root, Xposed, e.t.c.)
itouchables said:
Yes, however you'll have to revert all system modifications you made to the ROM (Root, Xposed, e.t.c.)
Click to expand...
Click to collapse
The ROM is untouched, I made the nandroid backup just after I installed TWRP, I just double-checked and it's unrooted. The only modification I made was changing the bootlogo animation (I put back the original one instead of the "unlocked bootloader" one).
I know it's not the original request of the thread but can you point me where I can find a way to do it ?
Where to revert the bootloader locked image?...I don't think you need to....only to flash the stock recovery .....
Stock recovery file for x1032 can be found here....after reverting to backup, flash this (bye bye twrp )
http://forum.xda-developers.com/showthread.php?t=2649763
But if you need to put back the unlocked warning, try this thread, open the app then make a blank zip (with the logo bin files for logo unlocked blank)
And flash that in twrp.
http://forum.xda-developers.com/showthread.php?t=2848667
itouchables said:
[...]
Click to expand...
Click to collapse
I just mentioned the fact that I changed the bootloader logo but I don't think it matters when installing OTA updates.
I found a stock recovery in the thread you mentioned, but it is a zip file (I opened it and there is a recovery.img file and a folder named META-INF). Can I just flash the recovery.img through fastboot or is there any other step to the process ?
astrlz said:
I just mentioned the fact that I changed the bootloader logo but I don't think it matters when installing OTA updates.
I found a stock recovery in the thread you mentioned, but it is a zip file (I opened it and there is a recovery.img file and a folder named META-INF). Can I just flash the recovery.img through fastboot or is there any other step to the process ?
Click to expand...
Click to collapse
Flash the zip file you downloaded in twrp (your custom recovery)....
Or you can extract the recovery image and flash via fastboot

Categories

Resources