Restore to stock after root / CWM - Nexus S General

I know there are other threads relating to this but I can't seem to find a definitive answer and the info required seems to get lost in all the conflicting opinions.
I'm sure a concise explanation of how to restore the nexus s to out of the box condition after root and recovery mod would benefit many.
So, can someone in the know PLEASE explain how to restore the nexus s to factory default (system image, bootloader and recovery) after modding?
Thanks in advance.

43 view later and nobody knows?
Ok, I'll elaborate on my reasons for posting....
In the sticky in this forum it says quite clearly:
"Q: How do I restore the stock recovery?
Right now, it is NOT possible to flash the stock recovery over Clockwork Recovery at all. The only way to restore it is by NAND restoring the Stock 2.3.1 backup in the development section."
Now, as I understand it the "stock 2.3.1 backup in the development section" is not stock at all, it's an adapted image and therefore NAND restoring this backup will not put my phone back to factory out of the box state.
Unless I am missing something?
All I am looking for is a simple guide to removing everything following root / recovery mods.

If you're already on 2.3.1, then it should be easy.
Use adb to rm the su binary in the /system/bin directory.
Remove the superuser.apk as well.
Reboot the phone. There's a script in 2.3.1 that reflashes Google's 3e Recovery every boot.
Fastboot oem lock (if it's still unlocked).
Fastboot oem unlock (to totally wipe the sdcard and user data partitions on the phone).
Fastboot oem lock again to remove the unlocked lock icon on reboot.
Factory Wipe the phone.
I don't believe anyone would be able to tell you were previously rooted or non-stock recovery at that point, unless you've modded apps in the /system partition with themes or the like.

Thanks for that.
Not exactly as straight forward as it is with the HTC then - connect to PC and run an exe to flash the ruu.
I'm going to leave well alone until I make the decision to keep the phone. Shame though, I wanted to. try the custom roms (what few there currently are).
Thanks again but it needs to get simpler and be 100 percent proven before I start delving into the unknown!

Related

Rooting 32B Magic 'Perfect' SPL, whilst ensuring it can be returned to stock

First, thanks for taking the time to read this. I appreciate that these forums get a lot of frustrating posts with people asking questions that have already been answered, and it is not my intention to do that. I have been lurking on these forums for a while, and have read around quite a bit of information. However, I cannot find the exact answers I am after.
To start, I am now on my 2nd HTC Magic 32B (Voda UK), after I sent my initial phone off for repair. I was running Cyanogen Mod on this phone, and flashed this rom by fastbooting in to Cyanogen's Recovery and going from there.
I was careful to take a nandroid backup before I flashed, and as such, when the time came to said the phone off for repair, I was able to restore the backup and send it off with the stock firmware running.
Unfortunately, the phone I have now received has a 'perfect' SPL, HBOOT-1.33.0007, so I cannot flash a rom using the same method.
My primary concern through all of this, is finding a way to flash roms such that I can revert everything back to normal if the need arises.
I have read around 1-click rooting, so, my proposed method at the moment would be:
1) use Flashrec to boot into Cyanogen Recovery
2) Backup using nandroid
3) using adb shell to flash Cyanogen Recovery
4) use Cyanogen Recovery to flash rom
I should now be in a position where I can a) flash back to the original recovery if needed, using the backup from nandroid, and b) flash back to the original rom if needed, using the backup from nandroid.
Would this work as I hope?
I have read about having to 'downgrade' the SPL when wishing to restore a nandroid backup, but I did not need to previously. What are the circumstances where you do need to? - I would not want to do this, since I have no way of flashing the original SPL back. I presume there is no way to backup my SPL? so I could return to it if need be?
Thanks for taking the time to read this, and I appreciate any help you may be able to give me.
Cheers.
I have a Rogers 32A that had a Perfect SPL (1.33.0010) on it and I got a rooted recovery ROM by using One Click Root. The Perfect SPL wasn't allowing me to fastboot at all (giving me a "no access" error or something). So instead I booted running the stock software, and used the one click root program to backup my ROM and then flash a recovery ROM (used the default Cyanogen Recovery 1.4). Then when I rebooted while holding down Power + Home, I came right into my rooted recovery ROM where I could install whatever .zip ROM I wanted (AFTER I BACKED UP WITH NANDROID, of course).
I didn't need to use ADB for anything, and I still ended up with root. So I guess I'm confused when you say you're going to use flashrec to boot into cyanogen recovery and then use adb shell to flash cyanogen recovery. I was under the impresion that flashrec FLASHES cyanogen recovery for you, eliminating the need to use ADB/Fastboot. Assumed "flashrec" stood for "Flash Recovery ROM".
My steps were:
1) Install/run flashrec
2) In FlashRec: Backup your current ROM
3) In FlashRec: Select a new recovery ROM to Flash (has Cyanogen's by default, can change to something on your SD Card)
4) In FlashRec: Flash the Recovery ROM
5) Exit FlashRec and reboot into Recovery Mode (Hold Home and Power)
6) You're done, you have a rooted phone. Go ahead and Nandroid a backup, wipe your data, and install a new ROM.
Thanks for your reply.
It is my understanding that flashrec does not flash the recovery rom, but just allows you to boot to it. (Similar to the fastboot boot filename.img command). I would guess that if you reboot your phone using home + power now, that it would boot to the standard recovery.
If it is the case that flashrec does flash the recovery image, then that would be handy, and presumably the backup could be restored using either nandroid or adb.
Thanks, this clarifies that my rooting procedure is along the right lines, however I am still concerned whether flashing everything back to normal will go as I expect.
Just booted into recovery, and its still CyanogenMod v1.4 + JF.
I'm trying to think if I did anything special during my rooting efforts. I don't think I did. I know that I flashrec'd twice. the First was with Amon_Ra's recovery console, and then I did it again a bit later with Cyanogen's. But I'm positive I was never able to successfully use adb's fastboot command due to my perfected SPL.
And you're right, I didn't address your concerns about unrooting at a later date. I assume that is what you're doing when you use flashrec to create a backup of the stock Recovery ROM, but i'm not positive.
Taken from:
http://www.ryebrye.com/blog/2009/08/16/android-rooting-in-1-click-in-progress/
EVERY TIME YOU REBOOT YOUR PHONE INTO NORMAL ANDROID IT UNDOES WHAT YOU JUST DID. Every time android boots, it reflashes the recovery partition with the default one from a file stored in your phone. For safety reasons, we are not replacing this file – just flashing the partition directly. So if you boot to recovery mode, then boot back into your normal mode, and then boot back into recovery mode – you will see a triangle with an exclamation point and only 3 options.
Click to expand...
Click to collapse
So I'm not sure what's going on.
Thanks for your input. I think I'm nearing enough confidence to go ahead and give this a try. Probably tomorrow.
Hi ParanoiaPersonified - can you post an update when you flash? I also have a new Voda Magic with the same SPL as yourself.....I got the OTA upgrade to Donut yesterday which I may have been silly about accepting.
I wasn't too impressed with the speed improvements in Donut and now want to flash something built by one of the XDA chefs, but am having problems rooting with the traditional methods - even 1 click doesn't seem to work....
Cheers.
It is my understanding that one-click-root only works on 1.5, and the exploit that it uses is patched in 1.6. I think you may need to use the 'gold card' method, radita.
I've realised that my handset has a fault (the scrollwheel does not work when scrolling to the right), so I will be unfortunately waiting for a replacement handset before taking any of the steps mentioned above.
Hopefully the replacement does come with 1.6 pre-installed!
"Gold card" method looks a little more involved....guess I don't have a choice though.
Thanks.

[q] twrp guide

I did a search but couldnt find any answers so please point me to the relevant post if this has already been answered, but is there any guide for the functions of TWRP 2.0? im coming from CWM on SGS II so would like to clear up a few things:
TWRP gives options to backup/restore 6 things - system, data, boot, recovery, cache, and .android_secure. Im mainly concerned about boot and recovery.
1) If we have TWRP and FIREFIREFIRE isntalled and working normally - then under normal circumstances should there ever be a need to restore boot or recovery, normally we would only restore system right?
2) If I was to restore the recovery while in recovery, could I not potentially brick/break recovery? If not, then I assume then either restoring/intalling a .zip containing the stock boot, recovery and system will return my kindle to stock (and ensure I no longer break warranty!!)?
Thanks in advance
Alchemist07 said:
I did a search but couldnt find any answers so please point me to the relevant post if this has already been answered, but is there any guide for the functions of TWRP 2.0? im coming from CWM on SGS II so would like to clear up a few things:
TWRP gives options to backup/restore 6 things - system, data, boot, recovery, cache, and .android_secure. Im mainly concerned about boot and recovery.
1) If we have TWRP and FIREFIREFIRE isntalled and working normally - then under normal circumstances should there ever be a need to restore boot or recovery, normally we would only restore system right?
2) If I was to restore the recovery while in recovery, could I not potentially brick/break recovery? If not, then I assume then either restoring/intalling a .zip containing the stock boot, recovery and system will return my kindle to stock (and ensure I no longer break warranty!!)?
Thanks in advance
Click to expand...
Click to collapse
I have read many forums of people boot bricking their kindles with twrp I would be very careful if thinking about doing this until a good tutorial is out that confirms this working with no bugs, just to be on the safe side. whatever your choice good luck and please post anything you find out so that we all can benefit from others experiences...! I am currently working on a good way to do just this and will post back to this forum when I work it out completely
Just bumping this in case anyone has answers for these questions yet?
Thanks,

Unlock BL, ROM Manager and backup current

Hi,
My AT&T Atrix is running on 4.5.91 and is rooted
I would like to start using ROMs but would like to have the option to go back to what I have right now (ROM and Apps)
I just want to make sure I understand what I'm doing and keep it as simple as possible.
Unlock the BootLoader: http://forum.xda-developers.com/showthread.php?p=22148143#post22148143
Then download and install ROM Manager, install CWM Recovery and then I can backup the current ROM
Then, I can install any Atrix ROM from the ROM Manager.
Is all this correct?
If yes, YIPPI!
If not, let me know where I'm wrong and try to keep it as simple as possible for me as I am quite a noob when it comes to ROMing and scared to death to brick my phone
BTW - I have titanium pro
Thanks!
1. unlock bootloader
2. install romracer's Custom CWM-based Recovery 5.0.2.7-atrix5 link
3. nandroid backup including webtop/osh partition
4. install any downloadable rom from the Atrix 4G Android Development forum
ok, you lost me
1) is the BL unlocking link correct? This is what I should use?
2) I see this requires some command line stuff, not sure how to do this. Is there an easier way? Any reason why I shouldn't use the recovery from ROM Manager?
3) What's nandroid
4) ok
mickeycohen said:
ok, you lost me
1) is the BL unlocking link correct? This is what I should use?
Should work fine for bootloader unlock on AT&T Atrix.
2) I see this requires some command line stuff, not sure how to do this. Is there an easier way? Any reason why I shouldn't use the recovery from ROM Manager?
Romracer's just works better. Flash through fastboot. Get it here: Romracer Recovery
3) What's nandroid
Once you have recovery installed you will see a backup/restore menu selection. Just select this and follow the prompts. (Can take a wee bit to backup). After this, if you want to restore your phone to the state it was in when you created the backup, reboot to recovery and follow the restore prompts.
4) ok
Don't install any downloadable ROM, as some are actually psuedo ROM's. There is a common list of the ROM's everyone is using which are usually the first 1/2 dozen or so ROM's in the dev forum, as these are continually updated or new posts created for them. Any confusion over the ROM's, look through some of the other posts asking for help in ROM selection. (When you do flash a new ROM, do so on a FULL battery, and give the ROM time to boot up on the first reboot after flashing. Can take 10-15 minutes to boot that first time).
Click to expand...
Click to collapse
Answers above!
Hi
Much clearer now, thanks
But, a few more questions
Will unlocking the bootloader wipe any data?
The reason I liked ROM Manager is because it has a GUI for everything you need to do. And I still don't understand how to flash recovery from this guide
http://forum.xda-developers.com/showthread.php?t=1204500
Is this using ADB? I have no idea how to do this
Nandroid is a full backup of everything? System, apps etc?
Is the recovery wiped after installing a ROM or is the recovery like the bootloader and completely separate from the OS and Kernel?
Again, thanks for helping and sorry for my noobiness
mickeycohen said:
Hi
Much clearer now, thanks
But, a few more questions
Will unlocking the bootloader wipe any data?
No, data will be ok.
The reason I liked ROM Manager is because it has a GUI for everything you need to do. And I still don't understand how to flash recovery from this guide
http://forum.xda-developers.com/showthread.php?t=1204500
You run fastboot through a cmd line on your PC. Your phone is connected to your PC via your USB cable, and is running in fastboot mode. From the cmd line you issue commands to flash recovery to your Atrix as described in the above linked thread. Best idea would be for you to Google and read about fastboot and moto-fastboot so you have a clear understanding of what is entailed in using it. It is very easy once you understand it.
Is this using ADB? I have no idea how to do this
No. Fastboot per the previous answer.
Nandroid is a full backup of everything? System, apps etc?
Yes, nandroid backup is a complete and full backup.
Is the recovery wiped after installing a ROM or is the recovery like the bootloader and completely separate from the OS and Kernel?
Recovery will not be wiped.
Again, thanks for helping and sorry for my noobiness
You're welcome.
Click to expand...
Click to collapse
Answers above!
Ok, cool. Still a few more questions:
Megaupload was shut down. Where can I find the BL unlocker?
Fastboot mode = usb debugging mode?
I understand what you're saying about this recovery, but - I like the fact that everything can be done through a GUI with a click of a button. So I can install the CWM recovery through ROM manager once the BL is unlocked?
Sent from my MB860 using XDA App
Hi guys,
Please can someone respond?
Thanks
Sent from my MB860 using XDA App
mickeycohen said:
Hi guys,
Please can someone respond?
Thanks
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
You can download the script here:
http://j.mp/Ate8E5
Fastboot <> USB debugging
Fastboot = power up while holding down the volume down button until you see "fastboot" on the boot screen. Then press the volume up button to go into Fastboot mode
About recovery, if you're insecure (which is ok and understandable) just do everything through ROM Manager, it's easy
Anyway, most new ROMs have AROMA so you'll be fine

[Q] First Time Root & Terminology Questions

I have read all I can regarding rooting, recovery, roms, and just wanted to do a quick terminology check before diving in.
Root = allow myself and certain apps to access settings/files not normally allowed by the OS?
Rom = akin to a non-stock OS that may have features and software added/removed and/or add functionality?
Recovery = some method to go back to a previous state?
Assuming I understand the above, what I believe I want to do, is Root (so that some apps that require 'root only' can work on my device), I should be able to do this by following one of the many guides in these forums. If I do not wish at this time to experiment with roms, I can stick with what came with the phone? And if, in the event of disaster, rather than restore from a backup or recovery, I should be able to Reset to Factory, re-root? and re-install everything (or possibly partially restore from Titanium backup), I do not need to concern myself with Recovery, correct?
Do I seem to have a good enough understanding or should I read some more? Does it sound like all I need to do is Root, and basically I don't need any Roms or Recovery?
Thanks in advance.
Klotar said:
I have read all I can regarding rooting, recovery, roms, and just wanted to do a quick terminology check before diving in.
Root = allow myself and certain apps to access settings/files not normally allowed by the OS?
Rom = akin to a non-stock OS that may have features and software added/removed and/or add functionality?
Recovery = some method to go back to a previous state?
Assuming I understand the above, what I believe I want to do, is Root (so that some apps that require 'root only' can work on my device), I should be able to do this by following one of the many guides in these forums. If I do not wish at this time to experiment with roms, I can stick with what came with the phone? And if, in the event of disaster, rather than restore from a backup or recovery, I should be able to Reset to Factory, re-root? and re-install everything (or possibly partially restore from Titanium backup), I do not need to concern myself with Recovery, correct?
Do I seem to have a good enough understanding or should I read some more? Does it sound like all I need to do is Root, and basically I don't need any Roms or Recovery?
Thanks in advance.
Click to expand...
Click to collapse
You pretty much got it. Only concern is your statement "I should be able to reset to factory". In case of catastrophic error you can't go into settings and factory reset. This is where the recovery comes in. You can use stock recovery to wipe data/factory reset but if you made changes with root apps, this option won't work. Only a nandroid restore or ROM flash or some third party recovery tool to reflash stock images using fastboot most likely.
You have a recovery partition with a recovery program installed. This can be booted into manually from a powered off state. In recovery you have options to backup, wipe, install .zip and much more. Installing a recovery and making a backup is first thing I do. You can use flashify (app on market) to flash the downloaded recovery .img for your device. Its very easy and you don't lose any data.
Excellent, thank you! I see Flashify is a root app, so basically, I should root, install Flashify, pull the recovery image off and I should more or less be set? That is, at least until I get comfortable with where I've gotten to so far (and done more reading). Thanks again.
Klotar said:
Excellent, thank you! I see Flashify is a root app, so basically, I should root, install Flashify, pull the recovery image off and I should more or less be set? That is, at least until I get comfortable with where I've gotten to so far (and done more reading). Thanks again.
Click to expand...
Click to collapse
That's it. Flashify should also have an option to boot into recovery. Do that (after recovery flash) and make a backup. Then reboot and have fun. That initial backup is important. Its your way back while you get comfy. Move that backup to computer also in case your /sdcard gets wiped.
What do you mean, pull recovery image off? You download the image for your specific device from XDA, then open flashify and follow instructions.
Mandelbrot.Benoit said:
That's it. Flashify should also have an option to boot into recovery. Do that (after recovery flash) and make a backup. Then reboot and have fun. That initial backup is important. Its your way back while you get comfy. Move that backup to computer also in case your /sdcard gets wiped.
What do you mean, pull recovery image off? You download the image for your specific device from XDA, then open flashify and follow instructions.
Click to expand...
Click to collapse
I read too quickly what [kind of app] Flashify was, and where to get the image from. I thought it copied the image off of somewhere on the device to somewhere else, but I see now from your explanation what it is. And to save the image on PC, and to save the first backup off device (also onto PC). Thanks again, will work up the courage to do these in the next few days.
Klotar said:
I read too quickly what [kind of app] Flashify was, and where to get the image from. I thought it copied the image off of somewhere on the device to somewhere else, but I see now from your explanation what it is. And to save the image on PC, and to save the first backup off device (also onto PC). Thanks again, will work up the courage to do these in the next few days.
Click to expand...
Click to collapse
The recovery image isn't too important to save. Once its flashed its kinda hard to loose it, but for sure it can't hurt I guess. Good luck!
Just so you know that after installing custom recovery, you will not be able to update through OTA. If you update it, you'll get in trouble. So if want an official update, go to stock again and update.
marshygeek said:
Just so you know that after installing custom recovery, you will not be able to update through OTA. If you update it, you'll get in trouble. So if want an official update, go to stock again and update.
Click to expand...
Click to collapse
I've waited for stock to push to my Xoom, Galaxy Nexus and Nexus 7 soooo many times but never make it. A rooted flashable zip made from the stock ota always lands and I get all flashy.
But yes as soon as you modify your recovery there is a chance you can soft brick your device if you accept the OTA.

Backup fully an unrooted OnePlus 5

After a long research for finding a full backup method for an unrooted OnePlus 5 android, I'm now asking if anybody can help.
I have tried using ADB.
Code:
adb backup -apk -shared -all -obb -system -f "C:\backup.ab"
adb restore "C:\backup.ab"
Here I have to
But it does not restore everything. So I don't fully trust ADB.
Then I thought, what about backup the partitions to image files, and later be able to restore them via fastboot or something.
So my question is,
can you make a backup using "fastboot", to an image just like a rom with personal data.
Or if this is not possible, then can you use linux tool dd to make image backup of my Phone?.
If there is nothing left, but to root? Then I have seen a lot of tools, apps and windows utilities to make a backup.
But what do you recommend I use?
Easiest and safest would be to just do a nandroid from a custom recovery. If I am not wrong, this works also unrooted if you flash the recovery via usb.
chrismast said:
Easiest and safest would be to just do a nandroid from a custom recovery. If I am not wrong, this works also unrooted if you flash the recovery via usb.
Click to expand...
Click to collapse
yes but you still need to have unlocked the phone
B0unze said:
yes but you still need to have unlocked the phone
Click to expand...
Click to collapse
Also any custom recovery requires you to root (SuperSU or Magisk) because as soon as you boot to the system the custom recovery will be automatically be replaced with the stock recovery. So in effect to create a nandroid backup means being unlocked, having a custom recovery and flashing a root solution. You don't need to alter the ROM any more than that though.
egominus said:
After a long research for finding a full backup method for an unrooted OnePlus 5 android, I'm now asking if anybody can help.
I have tried using ADB.
Here I have to
But it does not restore everything. So I don't fully trust ADB.
Then I thought, what about backup the partitions to image files, and later be able to restore them via fastboot or something.
So my question is,
can you make a backup using "fastboot", to an image just like a rom with personal data.
Or if this is not possible, then can you use linux tool dd to make image backup of my Phone?.
If there is nothing left, but to root? Then I have seen a lot of tools, apps and windows utilities to make a backup.
But what do you recommend I use?
Click to expand...
Click to collapse
What do you mean by it does not restore everything? I'm planning to root my phone but want to create a nandroid backup first
BenSow said:
What do you mean by it does not restore everything? I'm planning to root my phone but want to create a nandroid backup first
Click to expand...
Click to collapse
I have trouble backup with ADB, sometimes it hangs. And according to this link https://forum.xda-developers.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351 it does not backup everything like SMS and Call Logs. And pictures can have problems.
I also have problems with ADB hangs, and does not finish.
chrismast said:
Easiest and safest would be to just do a nandroid from a custom recovery. If I am not wrong, this works also unrooted if you flash the recovery via usb.
Click to expand...
Click to collapse
So now I'm a little confused? Because you say I can boot into nandroid from a custom recovery.
What do I need to boot into custom recovery?
Do I need to unlock phone? Because this will wipe my phone, and would rather not.
Can I boot into custom recovery directly from image, without flash anything?
If I need to flash custom recovery, then do I need to root my phone?
egominus said:
Do I need to unlock phone? Because this will wipe my phone, and would rather not.
Can I boot into custom recovery directly from image, without flash anything?
If I need to flash custom recovery, then do I need to root my phone?
Click to expand...
Click to collapse
I think I have the answer my own questions. But please correct me or tell me if it's the right direction.
According to this link https://aubykhan.wordpress.com/2013/07/21/android-tip-boot-into-twrp-or-cwm-recovery-without-flashing/ I can boot into custom recovery. But I need to Unlock my phone first. But the question remains, can I make nandroid backup without root, because here http://trendblog.net/android-guide-make-nandroid-backup-android-phone/ it says I need root?
egominus said:
I think I have the answer my own questions. But please correct me or tell me if it's the right direction.
According to this link https://aubykhan.wordpress.com/2013...t-into-twrp-or-cwm-recovery-without-flashing/ I can boot into custom recovery. But I need to Unlock my phone first. But the question remains, can I make nandroid backup without root, because here http://trendblog.net/android-guide-make-nandroid-backup-android-phone/ it says I need root?
Click to expand...
Click to collapse
Yes, you will need an unlocked phone.
To my understanding you can then flash a custom recovery via usb whereas after reboot of phone it will be reset. This allows you though to boot into custom recovery and do a quick nandroid. Again I might be wrong, I thought you do not need root for this process but maybe someone can correct me.
Ur probably just going to need to hook it up to a computer and take everything off then just spend some free time logging back into each app. The only way i know without doing this is an app called Huawei Backup. It keeps all settings and logins for each app. If you can somehow find a way to install it on a one plus device you would be okay. Try an older version or inject it somehow.

Categories

Resources