03-31-2013 12:08 PM
111 123 ...
tools
  1. dmmarck's Avatar
    Note: once the Jelly Bean/JRO030 images are released, I will update this thread accordingly. Until then, you're stick with silly ole ICS.

    [WARN]For those who have screwed up in Biblical proportions, follow me...[/WARN]

    Here are the GENERAL INSTRUCTIONS TO RESTORE THE STOCK IMAGES. Make sure you know how to do it for your computer/setup and that ADB and fastboot is set up on your computer. For all machines, I highly highly recommend installing the Android SDK, found here. For Windows machines, I recommend using Wug's Toolkit, found right here (we also have a support thread for this). If you're on Ubuntu, I highly recommend reading and following this. For Mac OSX, use the superboot folder you used when unlocking/rooting your device.

    In addition, make sure you know how to type the commands in for your specific setup. For example, if you're using a superboot folder for Mac, you need to make sure you understand what your "version" of the "beginning" of the command is (usually "./fastboot-mac" if you're using that r3-superboot folder). For Ubuntu, be sure to put "sudo" before any and all fastboot commands.

    [NOTE]General Checklist of Stuff You Need:
    • The actual factory images.
    • Drivers for adb and fastboot setup and working properly.
    • Adb/Fastboot installed on your computer.
    [/NOTE]

    [INFO]
    First, download the 4.1.1 JRO03O image files to your computer. These specific files are found here.

    Second, extract the files from that downloaded file. Place those files in an easily accessible location, like your desktop or your downloads folder.

    Third, turn your phone off. Then, hold down volume up, volume down, and the power button at the same time to boot you into the bootloader. It should say "FASTBOOT MODE" in weird (red?) lettering on the screen. Make sure the phone is connected (by USB cable) to your computer.

    Note - you can also to do this in the terminal with an ADB command; make sure USB Debugging is checked (Developer Options) and your phone is plugged in. Simply type:

    Code:
    adb reboot rebootloader
    Fourth, open up a terminal/command prompt.

    Fifth, using the command line, you need to "cd" or "change directory" to where your files are. This might be different depending on what computer you're on. If you are on Ubuntu and they are on the Desktop, do this:

    Code:
    cd Desktop
    If they are in your Downloads folder, then try this:

    Code:
    cd Downloads
    Then, "cd" or "change directory" again to the folder that you extracted (mysid-jro03o I believe). So, it would be

    Code:
    cd foldername
    or
    Code:
    cd mysid-jro03o
    (Trick: to quickly cd to something on Ubuntu, simply type in "cd " [notice the space] and then drag and drop the folder/directory right in there )

    Sixth, once at the folder containing the goods, you need type in the following commands. Each command will flash a different component/image required to go to stock. You can copy and paste each command, but if they don't work type them in. There's a general "language" that's being spoken here, so as long as you understand that language you'll be able to get the general jibe of what's going on. Also, make sure each command is COMPLETE before going to the next.

    Code:
    fastboot flash bootloader bootloader-toro-primelc03.img
    fastboot reboot-bootloader
    fastboot flash radio radio-toro-i515.fg02.img
    fastboot reboot-bootloader
    fastboot flash radio-cdma radio-cdma-toro-i515.ff02.img
    fastboot reboot-bootloader
    fastboot –w update image-mysid-jro03o.zip
    Seventh, let the phone reboot COMPLETELY to the "Welcome" screen. Then turn the device off and get back to the bootloader (see the third step). Also, don't close the terminal/command prompt window, you still need it!

    Eighth, lock the device by using the following command in the terminal/command prompt, and then reboot the bootloader:

    Code:
    fastboot oem lock
    fastboot reboot-bootloader
    You should now see "LOCKED" at the bottom of that bootloader screen on your device. Remember, this wipes your SDcard and everything, but if you're at this point that should be of no concern to you . If you hate that your device is locked, then...

    Ninth, to unlock the device again, simply type in the commands:

    Code:
    fastboot oem unlock
    fastboot reboot-bootloader
    [/INFO]

    And there you have it--a locked or unlocked, stock Galaxy Nexus running 4.1.1.

    Credit for the above is due to everyone who has helped me and this guide.

    UPDATE:

    For visual learners, we took a friend's phone and returned it to stock using this very guide. Follow along here. The rest of the video is flashing Jelly Bean, if that interests you . Video starts at 4:25...



    UPDATE 9/25/12:

    The guide has been updated with the latest available factory images, JRO03O (Jelly Bean ).
    12-15-2011 04:02 PM
  2. SpaceHippie's Avatar
    how do you flash this on mac?
    12-15-2011 04:05 PM
  3. Jerry Hildenbrand's Avatar
    how do you flash this on mac?
    Install Android SDK
    Build or download fastboot for Mac
    Gunzip and untar the package file to a directory
    Set .bashrc so that the fastboot binary is in your path
    from the terminal:
    cd /dir/you/untarred/the/files/to
    chmod +x flash-all.sh
    ./flash-all.sh

    How exactly to do these steps on a Mac, I have no idea. I do Linux, Solaris and Windows, but nothing Apple. But the above is what you'll need to do.
    12-15-2011 04:15 PM
  4. NewAge's Avatar
    gbhil could you give instructions for windows?

    I have adb and fastboot installed. I am used to:

    adb reboot bootloader
    Gnex will then reboot into bootloader screen
    fastboot flash boot boot.img
    fastboot flash system system.img
    fastboot flash recovery recovery.img
    fastboot flash userdata userdata.img
    fastboot erase cache
    fastboot oem lock

    But it looks like there are other files in the download from Google. The bootloader-toro-primekk15.img, radio-cdma-toro-i515.ek05.img and radio-toro.

    What do I do with those files? How do I use the flash-all.sh with windows?

    Edit: Droid-Life just posted instructions. http://www.droid-life.com/2011/12/16...factory-state/

    adb reboot bootloader
    fastboot flash bootloader bootloader-toro-primekk15.img
    fastboot reboot-bootloader
    fastboot flash radio radio-toro-i515.ek02.img
    fastboot reboot-bootloader
    fastboot flash radio-cdma radio-cdma-toro-i515.ek05.img
    fastboot reboot-bootloader
    fastboot -w update image-mysid-icl53f.zip
    fastboot reboot-bootloader
    fastboot oem lock

    It would be nice to know how to use the
    ./flash-all.sh
    as the Droid-Life instructions doesn't use it.
    broadwayblues likes this.
    12-16-2011 12:20 PM
  5. Terrigno's Avatar
    Does anyone have an exacty How To, do this on the LTE NExus? I want to return everything back to completely stock. Im looking all over and I cant figure it out for the life of me. I went ahead and unlocked and rooted it.
    12-16-2011 01:35 PM
  6. NewAge's Avatar
    It wont get much better than the above from Droid-Life. What part are you stuck at?
    jussurfing likes this.
    12-16-2011 01:56 PM
  7. Jerry Hildenbrand's Avatar
    gbhil could you give instructions for windows?

    <snip>

    It would be nice to know how to use the
    ./flash-all.sh
    as the Droid-Life instructions doesn't use it.
    Does anyone have an exacty How To, do this on the LTE NExus? I want to return everything back to completely stock. Im looking all over and I cant figure it out for the life of me. I went ahead and unlocked and rooted it.
    I'm no Windows guru. But if someone were to take these commands:

    Code:
    fastboot flash bootloader bootloader-toro-primekj10.img
    fastboot reboot-bootloader
    sleep 10
    fastboot flash radio-cdma radio-cdma-toro-i515.ek01.img
    fastboot reboot-bootloader
    sleep 10
    fastboot flash radio radio-toro-i515.ek02.img
    fastboot reboot-bootloader
    sleep 10
    fastboot -w update image-mysid-itl41d.zip
    And save it in a text file named flash-all.bat, it should run and flash everything all at once within Windows.

    Someone could also include the fastboot.exe and a couple dll files from the SDK and make a one-click app. I'm willing to help, but right now I'm too busy with real-life stuff to get it done.
    NewAge, Bleezy and bjs188 like this.
    12-16-2011 01:57 PM
  8. NewAge's Avatar
    Thats sick gbhil. Good idea. Out of my desire to do, but hopefully someone else runs with it.
    12-16-2011 02:02 PM
  9. Jerry Hildenbrand's Avatar
    Screw it. I'm making time

    12-16-2011 02:59 PM
  10. NewAge's Avatar
    Don't make it too easy. Are you going to update it for future releases? You know some noob will use this even if on a different, future bootloader which may interfere with this install? Or is that not a concern?

    Using adb and fastboot isn't that hard and is good to learn if rooted.
    12-16-2011 03:25 PM
  11. davey11's Avatar
    Screw it. I'm making time

    Click to view quoted image
    I have tried pressing the next button on your tool repeatedly...no workie!!

    j/k good tool
    12-16-2011 03:58 PM
  12. p08757's Avatar
    Guys -- I have a stupid question.. Where is the best place to get an unzip program so I can unpack the .tar file? I really don't have the need to do this that often, and would like to avoid paying $25.00 for it, but will if I have to.

    Thanks in advance.
    12-22-2011 11:23 AM
  13. davey11's Avatar
    Guys -- I have a stupid question.. Where is the best place to get an unzip program so I can unpack the .tar file? I really don't have the need to do this that often, and would like to avoid paying $25.00 for it, but will if I have to.

    Thanks in advance.
    Go get 7zip. Its does all kinds of compressed files and its free.
    davidnc and p08757 like this.
    12-22-2011 11:31 AM
  14. davidnc's Avatar
    Got everything downloaded that I need to restore back to stock(SDK program,7zip, and the google image .tar file) .I really dont need to restore back tho yet just preparing for ahead of time,lol.

    I havent got the SDK set up yet ,,but as mentioned above no reason to yet , all's great still on my rooted and unlocked Nexus
    12-23-2011 11:47 AM
  15. p08757's Avatar
    Thanks for everything! Just flashed my phone back to stock!
    12-30-2011 05:04 PM
  16. xliderider's Avatar
    Don't you just put your GNex in bootloader mode and flash these .tar files with Odin?

    No ADB/SDK necessary? Well the only thing you need is Odin and the Samsung USB drivers.
    01-03-2012 02:59 PM
  17. Tonyo50138's Avatar
    does anyone have the mac commands for unrooting one of the verizon images in the above post? I'm not all that good at mac yet lol
    01-17-2012 09:15 PM
  18. HalfGone42's Avatar
    Delete. Had an I-D-10-T moment.
    JDWallace likes this.
    01-22-2012 03:23 PM
  19. tony bag o donuts's Avatar
    Did Jerry ever create a one click way to flash back to stock?

    Someone explain Odin to me please.
    02-28-2012 08:18 AM
  20. resu_ruot's Avatar
    I was about to reset my phone to factory state so that I could warranty it. So I came here to find the stock image for the CDMA Galaxy Nexus, but I think the link is currently dead.

    Is this the correct image link:

    https://dl.google.com/dl/android/aos...y-65895fa8.tgz

    If so maybe it can be updated in the OP.
    Jerry Hildenbrand likes this.
    04-28-2012 02:18 AM
  21. resu_ruot's Avatar
    The above link automatically downloads the factory image. If you want a link to the page where it can be found, here it is:

    https://developers.google.com/android/nexus/images

    If you scroll to the bottom of the page you'll find it there listed under:

    Factory Images "mysid" for Galaxy Nexus "toro" (CDMA/LTE) (archived, for reference only)
    04-28-2012 02:19 AM
  22. Jerry Hildenbrand's Avatar
    I was about to reset my phone to factory state so that I could warranty it. So I came here to find the stock image for the CDMA Galaxy Nexus, but I think the link is currently dead.

    Is this the correct image link:

    https://dl.google.com/dl/android/aos...y-65895fa8.tgz

    If so maybe it can be updated in the OP.
    Sure can be. Thanks
    04-28-2012 02:31 AM
  23. smccloud's Avatar
    Where is the 4.0.4 factory image? I'm getting impatient waiting for the OTA....
    05-31-2012 10:20 PM
  24. dmmarck's Avatar
    Where is the 4.0.4 factory image? I'm getting impatient waiting for the OTA....
    Ask and ye shall receive!

    https://dl.google.com/dl/android/aos...y-053085b1.tgz
    06-05-2012 02:31 PM
  25. smccloud's Avatar
    Will come in really handy when I have to restore my phone to get a replacement (its hard to make a call when your voice cuts in and out).
    dmmarck likes this.
    06-05-2012 02:34 PM
111 123 ...
LINK TO POST COPIED TO CLIPBOARD