How To: Unroot the Nexus S

I. Before You Begin

1. This will return the phone back to the stock ROM and put you at build GRH78.

2. Use this method to start over, or to send your phone in for warranty reasons.

3. You MUST have a custom recovery image to use this unrooting method.

4. This WILL WIPE everything on your phone.

II. Create a Nandroid Backup

1. Turn off your phone.

2. Turn it back on by holding down Volume Up and Power until the green Android shows up on the phone.

3. Using the volume buttons and power to select, select Recovery from the menu.

4. Once in recovery mode, select Backup and Restore then select Backup and wait for it to backup your current ROM.

5. Once it is done, select Reboot and wait for the phone to reboot.

III. Flash the Stock Nandroid Backup

1. Download the stock Nandroid Backup and save it to your computer.

Stock GRH78 Nandroid Backup

2. Extract the .zip file somewhere on your computer.

3. Plug your phone in via USB cable and mount the internal storage so we can transfer files to it.

4. Find the Clockword folder on your phone’s internal storage and open it, then open the Backup folder inside there.

5. Copy the 2010-12-22.21.06.07 folder from the .zip file you extracted and put it inside the Backup folder we just opened.

6. Turn off the phone.

7. Turn it back on by holding down Volume Up and Power until the green Android shows up on the phone.

8. Using the volume buttons and power to select, select Recovery from the menu.

9. Once in recovery mode, select Backup and Restore then select Restore and choose the  2010-12-22.21.06.07 backup and wait for it to restore the phone to stock.

10. Once it is done restoring, select Reboot and wait for the phone to reboot.

11. Once it does reboot, turn it off and then back on normally again (this is to clear out the recovery image and bring that back to stock as well).

IV. Relock the Bootloader

1. On the phone, go through the setup process clicking skip where ever possible.

2. Then hit Menu then Settings then Applications then Development and make sure USB debugging is checked ON.

3. Plug the phone in via USB.

4. Open a command prompt on the computer by clicking on the Start menu and typing cmd and hitting enter in the search bar.

5. Then in the command prompt, type the following with hitting enter at the end of each line (this is assuming you did our How To Root the Nexus S procedure):

cd\
cd c:\androidsdk\tools
adb reboot bootloader
fastboot oem lock

6. The phone should relock the bootloader and you are now fully stock and completely ready to send the phone in for warranty or go back to the How To Root procedure and reroot it.

45 thoughts on “How To: Unroot the Nexus S”

  1. When I try to restore I get:

    Checking MD5 sums…
    Erasing boot before restore…
    Restoring boot image…
    Error while flashing boot image!

    Why do I get this error and how do I fix it?
    Thanks for your help.

  2. WHAT UP GUYS MEN YOU HELP ME OUT A LOT NEWBIE HERE! I DID ALL THE STEPS EXCEPT THE LAST ONE WHEN I TRY TO RELOCK THE BOOTLOADER I GET THIS THE SYSTEM CANNOT FIND PATH SPECIFIED. I DO HAVE THE DEBUDDING ON HIT THE HOME BOTTON AND TRY IT BUT NO LUCK. IS THERE SOMETHING I MISSED OR SHOULD I BE WORRIED ABOUT IT MY PHONE HAS NO PROBLEMS SO I DONT NEED TO SEND IT IN FOR REPAIR OR ANYTHING BUT IT WOULD BE NICE HAVEING IT LOCK. WHAT DOES THAT DO BUY THE WAY HAVEING THE BOOTLOADER UNLOCK JUST WONDERING? WELL THANKS IN ADVANCE FOR YOUR HELP!!!

  3. was hoping someone can help me out a bit. I’m trying to UnRoot Nexus S.

    It is currently on 2.3.3 Deodexed Rom for GRI40 build.

    When I go to the bootloader screen, and select “Recovery”, instead of going the “clockwork recovery” menu, I simply get the triangle with the exclamation in it. From there I hold the power button and press volume up, and it takes me to the “Android System recovery” menu but not the same options that show on your video above. I think the problem may be that I didn’t end up making a proper back up of the stock 2.3.3.

    In terms of losing data, it’s not a big deal, as almost all my stuff is “cloud” connected with various google services, so there is not much I’d be losing on the phone, and any apps can always be downloaded again.

    So can someone provide me with the step by step instructions on what I need to do? Along with any links to any recovery files that I may need?

    Thanks in advance!

  4. Hello, I am considering rooting my Nexus S and I want to be able to unroot it in the case of needing to sending my phone in for repairs. This method really intrigues me and I like how you explained everything so clearly. I do, however, have one question. My phone is build GRI54. Would this method work for my phone? I’ve looked around and can’t seem to find a GRI54 Nandroid backup anywhere. Thank you.

  5. What happens if I have a Nexus S GRJ22? If I have it as factory, how can I make backup of everything prior to bootloader unlocking and rooting?

    1. I had the same problem.
      Unlock your bootlpader again, this will factory-reset it.
      Then relock it and you’re finished.
      Hope it helped

  6. Shouldn’t you be able to unroot it by taking the .old file extension off of install-recovery.sh? That way it will overwrite clockwork on reboot will it not?

  7. I followed the instructions and ended up with a locked bootloader yet ClockworkMod Recovery still accessible.  There was not a ClockworkMod folder in my internal storage, so I just put the backup in the root folder, so I don’t think the restore worked.  How do I fully restore my phone?

  8. hello everyone, i have the nexus s 4g and i was wondering if anyone knows if this would work for me?
    please help ive looked every where and cant find anything for the 4g, thank you

  9. Giuseppe Carola

    Hallo! I’m sorry, i did everything this how-to says, but when I type fastboot oem lock I get an error message: “command fastboot is either wrong spelled or couldn’t be found” (something like that, not the exact words). Can you please help me? What should i do in this case?

  10. I did this, and my phone got soft-bricked (i think). It was just booting into emergency calls mode. I was running GRJ22 before. Help.

  11. When I type in fastboot oem lock in fastboot mode, cmd just says waiting for device and nothing happens, i have made sure its in debug mode and everything, please help!

  12. worked but my phone is stuck in airplane mode. when I disable it just goes back and I cant enter any apn info nor can I upgrade to 2.3.6.

  13. I have managed to unlock my goog nexus s, but after that, the phone doesnt boot into recovery mode. It gives me a caution sign… don’t know what to do after this. 

  14. Hello, I need help in unroot my Nexus S… I accidentally unrooted my Nexus S with Nexus S 4G ROM and could not undo it ever since…… I tried your unroot method but it does not work… My screen just frozen….

  15. be careful! I tryed to unroot from cynogen to the stock version provided in the tutorial and I lost 3 lights of the front panel and the screen became uncalibrated, I couldn t even enter my gmal account for initial setup. I had to go back to the previous restore to fix it.

    1. same probleme here, but i cant go back to my backup… because the warning with andorid symbol appears… :(…. i think i bricked my nexus s. can anybody help?

    2. same probleme here, but i cant go back to my backup… because the warning with andorid symbol appears… :(…. i think i bricked my nexus s. can anybody help?

    3. same probleme here, but i cant go back to my backup… because the warning with andorid symbol appears… :(…. i think i bricked my nexus s. can anybody help?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.