5,605,120 Members 37,548 Now Online
XDA Developers Android and Mobile Development Forum

[HOW-TO] [GSM & CDMA] Return to stock for ALL Galaxy Nexus phones (latest JWR66Y)

Tip us?
 
efrant
Old
(Last edited by efrant; 28th November 2013 at 03:59 PM.) Reason: Updated title to reflect release of 4.3
#1  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 7798
Posts: 9,404
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Arrow [HOW-TO] [GSM & CDMA] Return to stock for ALL Galaxy Nexus phones (latest JWR66Y)

EDIT: November 14, 2012: As of today this is applicable to all three versions of the Galaxy Nexus: maguro (GSM/HSPA) and toro (Verizon CDMA/LTE) and toroplus (Sprint CDMA/LTE). I have also updated the adb and fastboot files to the latest versions as of today.

I have created this thread to give a step-by-step on how to flash the latest yakju/takju (or mysid for toro users) build available on Google's developer site. (These are full ROMs. See this thread for updating to latest OTA build using incremental updates.)

This method works for earlier builds as well, and is essentially a "return-to-stock" method.

You can easily convert ANY GSM/HSPA (i.e., maguro) device to stock yakju (or takju) from any non-yakju build (yakjuxw, yakjuxs, yakjuux, yakjusc, yakjuzs, yakjudv, yakjukr, yakjujp, yakjuxe, etc.).

For toro and toroplus devices (i.e., Verizon and Sprint devices), this will return your device to stock.

I will no longer be be providing support in the previous thread here, as it has over 1,000 replies and a lot of confusing information/misinformation.

Note: There are other methods that are abbreviated and/or faster, but I wanted to spell out each step in the process for the purposes of learning. I'm a big believer in doing things manually before using a "toolkit", much the same way that, in school, we are taught to do math first, before being allowed to use a calculator. I will continually add to this post to make it clearer as we go along.

So, without further ado:

How to flash yakju/takju on your GSM/HSPA Galaxy Nexus (or how to flash mysid on your Verison CDMA/LTE Galaxy Nexus and mysidpr on your Sprint CDMA/LTE Galaxy Nexus)

Step-by-step

Notes:
1) For the n00bs: read the entire post before proceeding;
2) This method is EXACTLY the same as a "return to stock" method. If you follow this (including the optional steps in part D), you will be fully stock.
3) yakju is a generic build, meaning no specific localizations. There are reports that yakju does NOT contain certain dictionaries (such as Norwegian, Swedish, Danish, and possible others). So, if you currently have these dictionaries, and want to keep them, do not flash yakju or takju.
4) MacOS-specific instructions: a) replace fastboot in the steps below with ./fastboot-mac and b) no drivers required.

A. Install the drivers
1) Do not install the Samsung drivers or the pdanet drivers, or any other driver you come across. If you have, and you are SURE they are working properly, fine, leave them. Otherwise uninstall them if you are unsure;
2) Download the drivers from here;
3) Install the drivers. This step is the only part of the entire process that is not easy to explain, and may cause users some issues, depending on what drivers they had installed previously, what OS they are using, etc. etc. Bourne-nolonger has put together a very detailed step-by-step on how to install them. If you don't know how to install them, have a look at his post here. Note that the driver has to install twice: once when your device is booted normally (not required for this tutorial) with USB Debugging enabled in Settings, and once when your device is booted in fastboot (i.e., bootloader) mode (which is required for this tutorial). If you are using Windows 8, you will need to do this before installing the drivers.

B. Backup your data
1) Backup all your personal data (e.g., photos, music, etc.) OFF of your device and onto your computer by using whatever method you want that works for you, e.g., MTP, ADB, email, Dropbox, Box.net, whatever.
2) This method will wipe your entire device, including the /sdcard folder, so once you do this, you will not be able to retreive anything that was on your device previously.
3) Once you have backed up your data, you may want to back up your current build (not required). If so, follow the instructions in this thread.

C. Download the required files to your computer and extract them
1) All of the files that are required, need to be in one (i.e., the same) directory. It does not matter what it is called, but all the files need to be in there, with NO subfolders. EVERYTHING needs to be extracted into this one directory;
2) Download the platform-tools-v16.zip attachment from this post and extract the contents to the directory created in step 1.
3) Download the version of Android you want from here. So, let's say you want the yakju JRO03C image, go to the JRO03C link that is under the heading Factory Images "yakju" for Galaxy Nexus "maguro" (GSM/HSPA+). Older versions are no longer available on that site; however, oldblue910 has provided a mirror on his site: Random Phantasmagoria.
4) Download the appropriate version (for your computer) of 7-zip from here and install it.
5) Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
6) Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files (or seven for toro and toroplus devices) ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;
7) Reboot your device into bootloader mode (by turning it off, hold volume up and volume down, and press and hold power) and plug it into your computer;
8) Open a command prompt in the same directory (i.e., make sure you are in the same directory as your files are located) and do the following:

D. Type in the commands into the command prompt
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept. Note: you use the volume keys to change the option and the power button to accept. You cannot use the touch screen.
4) Reboot by typing: fastboot reboot-bootloader
5) Flash the bootloader: fastboot flash bootloader bootloader-maguro-primela03.img (or whatever the name of the bootloader image that you downloaded).
6) Reboot (not required if you did not do step 5): fastboot reboot-bootloader
7) Flash the radio: fastboot flash radio radio-maguro-i9250xxla02.img (or whatever the name is of the radio image that you downloaded).
8) Reboot (not required if you did not do step 7): fastboot reboot-bootloader
8a) Verizon and Sprint devices only -- flash the LTE radio: fastboot flash radio-cdma radio-cdma-toro-i515.ek05.img (or whatever the name is of the radio image that you downloaded).
8b) Verizon and Sprint devices only -- reboot: fastboot reboot-bootloader
9) Flash the system partition: fastboot flash system system.img
10) Flash the data partition: fastboot flash userdata userdata.img Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked. See note 5 below for optional items.
11) Flash the kernel/ramdisk: fastboot flash boot boot.img
12) Flash the recovery partition: fastboot flash recovery recovery.img
13) Erase the cache partition: fastboot erase cache
15) Reboot: fastboot reboot
16) Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the Dalvik cache.

E. Optional -- Root
1) After finishing this process, if you want to root, see here.

Notes on optional items and other issues:
1) This note is NOT for n00bs. To be on a "yakju" (or takju) build, all you need is the system and data images. If you want to flash the newer bootloader, radio, kernel (boot image) or recovery, go ahead. If you want to flash a different ones go right ahead, that is fine also.
2) Yes, you will receive the OTA update notification (when it is available) for the next update, regardless of which bootloader, radio, kernel or recovery you are running.
3) BUT, being on yakju or takju does NOT mean you will get the OTA notification immediately when it is announced/available. It could still take minutes or months (yes, months) following the first person who got it, before you get it. The advantage of yakju and takju , is that the updates are available before the other builds, so you can manually install them yourself. See here.
4) WHEN you get the update notification, IF you want it to install automatically, you will need to ensure that that you are using the corresponding boot, radio and recovery images for the .tgz package you downloaded. Otherwise, the update will not install automatically, but it will install using a custom recovery like CWM. See this thread for details.
5) This note is NOT for n00bs. There has been a lot of uncertainty and questions around stock ROMs and losing/wiping data. You CAN flash a stock ROM WITHOUT losing the data stored in /sdcard (and possibly even all apps and app data, although this depends on which apps you have installed). This can be done by skipping step 10 in part D. However, if your device goes into a boot loop, you will need to boot CWM, and wipe data <-- this will wipe your apps and app data, but not /sdcard.
6) Jelly Bean requires a newer bootloader. I would not flash anything earlier than LA03, or you may have issues.

Notes on the bootloader:
1) Do NOT re-lock your bootloader after you are finished. The is no need.
2) Having an unlocked bootloader does not affect anything related to the ROM/GoogleWallet/OTAs. Nothing at all.
3) If your bootloader is locked, you CANNOT use fastboot commands. This is pretty much the only thing it affects.
4) If your bootloader is locked, and you need to unlock it, it will wipe everything, including /sdcard. This is the major drawback of re-locking your bootloader.
5) ONLY re-lock your bootloader if you need to return your device to the store. The command is: fastboot oem lock
6) As of June 2, 2012, a method has been found to unlock the bootloader without wiping (but root is required), and segv11 put it together in an app for us. See here. So, if you have root, there is no issue with re-locking the bootloader if you want -- just make sure you don't lose root, or you will have to wipe to unlock it again.
Attached Files
File Type: zip platform-tools-v16.zip - [Click for QR Code] (1.75 MB, 11616 views)
I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...
The Following 362 Users Say Thank You to efrant For This Useful Post: [ Click to Expand ]
 
efrant
Old
(Last edited by efrant; 11th January 2013 at 01:59 PM.)
#2  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 7798
Posts: 9,404
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Arrow [HOW-TO] Install official JRN84D (Jelly Bean 4.1) on your GSM Galaxy Nexus

EDIT: As of Jul 27th, 2012, this information is no longer required -- the yakju/takju JRO03C factory images are now posted on Google's site here.

Here is my take on how to flash JRN84D (official) on ANY maguro (i.e., GSM/HSPA) Galaxy Nexus, regarless of what build you are currently running.

Notes:
1) Doing it this way will leave you with an official JRN84D ROM, and you will receive future updates, assuming that there are any for JRN84D (which is almost certainly the case).
2) Method 2 assumes that you have: a) the drivers properly installed, b) an unlocked bootloader, and c) you have downloaded the attachment in the first post of this thread.
3) Both these methods will require you to wipe your data, but NOT the files you have in /sdcard. (I tried to get it to work without wiping data, but I couldn't get it to work. This is not to say that it won't work for all of you, but I can guarantee that it will work if you wipe.) The Play Store will automatically re-install all your apps, and your can restore the app data with Titanium Backup (root required of course).
4) I have had NO issues whatsoever so far with the OS. There are some apps, however, that are not yet compatible with Jelly Bean (like CallRecorder).
5) Jelly Bean requires a newer bootloader. Do not try to flash this without having LA03 or newer, or you may have issues.

Method 1: CWM 5.5.0.2 recovery already installed
1) Download takju JRN84D from here (this is Koush's repack) to your computer and rename (or delete) this file: /system/etc/install-recovery.sh. Use 7zip to do this, not WinZip or WinRar or whatever. This will prevent the ROM from overwriting CWM with the stock recovery. If you want to have the stock recovery so that future updates will install automatically, leave the ROM as is. (We all know that if you have CWM, you will have to install the update manually through CWM -- it will not install automatically, but it will install just the same, right? ) Note: Some users have reported that they could not flash the zip after deleting the install-recovery.sh file. If it doesn't flash for you after you deleted the file, just re-flash the unmodified zip.
2) Move the file to /sdcard on your phone.
3) Download the CWM-flashable version of the XXLF1 radio from here and the CWM-flashable version of the LC03 bootloader from here to /sdcard.
4) Backup your app data using Titanium Backup. Root is required for this step. Alternatively, if you do not have root, you could try using this, but no guarantees it will work.
5) Reboot your phone into CWM.
6) Select "wipe data/factory reset" and select "Yes -- delete all user data"
7) Select "wipe cache partition" and select "Yes - Wipe Cache"
8) Select "advanced" and select "Wipe Dalvik Cache" and select "Yes - Wipe Dalvik Cache"
9) Select "*****Go Back*****" to return to the main menu
10) Select "install zip from sdcard" and select "choose zip from sdcard" and navigate and select the bootloader file you downloaded, and flash it.
11) Select "install zip from sdcard" and select "choose zip from sdcard" and navigate and select the radio file you downloaded, and flash it.
12) Select "install zip from sdcard" and select "choose zip from sdcard" and navigate and select the JRN84D file you downloaded, and flash it.
13) Optional -- If you want root, flash one of the attachments the same way. (Either ChainsDD's Superuser or Chainfire's SuperSU. Note that you may have issues with Superuser, as it has yet to be updated.)
14) Go back to the main menu and select "reboot system now".
15) Done! Enjoy stock Jelly Bean 4.1

Method 2: Stock recovery (or any other recovery aside from CWM 5.5.0.2) installed
1) Download CWM from here to the same directory on your computer as your fastboot file, and rename it to cwm.img.
2) Download takju JRN84D from here to /sdcard on your phone. (This is Koush's repack.)
3) Download the CWM-flashable version of the XXLF1 radio from here and the CWM-flashable version of the LC03 bootloader from here to /sdcard.
4) Backup your app data using Titanium Backup. Root is required for this step. Alternatively, if you do not have root, you could try using this, but no guarantees it will work.
5) Reboot your phone into fastboot mode (turn off and press vol up + vol down + power) and plug into your computer.
6) Open a command prompt in the same directory as your fastboot file and type: fastboot boot cwm.img
7) On your device, CWM should be booted up. You can unplug your device from your computer if you wish. From now on, everything is done on your device.
8) Select "wipe data/factory reset" and select "Yes -- delete all user data"
9) Select "wipe cache partition" and select "Yes - Wipe Cache"
10) Select "advanced" and select "Wipe Dalvik Cache" and select "Yes - Wipe Dalvik Cache"
11) Select "*****Go Back*****" to return to the main menu
12) Select "install zip from sdcard" and select "choose zip from sdcard" and navigate and select the bootloader file you downloaded, and flash it.
13) Select "install zip from sdcard" and select "choose zip from sdcard" and navigate and select the radio file you downloaded, and flash it.
14) Select "install zip from sdcard" and select "choose zip from sdcard" and navigate and select the JRN84D file you downloaded, and flash it.
15) Optional -- If you want root, flash one of the attachments the same way. (Either ChainsDD's Superuser or Chainfire's SuperSU. Note that you may have issues with Superuser, as it has yet to be updated.)
16) Go back to the main menu and select "reboot system now".
17) Done! Enjoy stock Jelly Bean 4.1.
Attached Files
File Type: zip CWM-SuperSU-v0.99.zip - [Click for QR Code] (669.1 KB, 232 views)
File Type: zip Superuser-3.2-arm-signed.zip - [Click for QR Code] (1.09 MB, 169 views)
I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...
The Following 79 Users Say Thank You to efrant For This Useful Post: [ Click to Expand ]
 
iGoogleNexus
Old
#3  
iGoogleNexus's Avatar
Senior Member
Thanks Meter 263
Posts: 1,289
Join Date: Nov 2011
Location: Miami
As always you are king =]

- Google Galaxy Nexus
 
IH8XC
Old
#4  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Apr 2012
Thank you very much. As someone who is completely green at the android thing, I made it through this instructional with barely a hick-up. I think if I had done as you said and read through the entire post before starting then I might have saved myself some time.

THANKS!
 
NCguy
Old
#5  
Senior Member
Thanks Meter 147
Posts: 1,144
Join Date: Jul 2010
Location: NC
Quote:
Originally Posted by efrant View Post

A. Install the drivers
1) Do not install the Samsung drivers or the pdanet drivers, or any other driver you come across. If you have, and you are SURE they are working properly, fine, leave them. Otherwise uninstall them if you are unsure;
If I have pdanet drivers installed and I can do successful fastboot and adb devices commands does that necessarily mean I am good to go? Or would you still recommend replacing them before I start flashing?
 
Thegodfather156
Old
#6  
Thegodfather156's Avatar
Senior Member
Thanks Meter 46
Posts: 553
Join Date: Oct 2010
Location: Portland, Oregon
what's the benefits of this over the Gnex toolkit? Just curious as I'm new to the nexus

Sent from my Galaxy Nexus using Tapatalk 2
RasBean Jelly/TRINITY

Technician I Am
 
efrant
Old
#7  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 7798
Posts: 9,404
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Quote:
Originally Posted by NCguy View Post
If I have pdanet drivers installed and I can do successful fastboot and adb devices commands does that necessarily mean I am good to go? Or would you still recommend replacing them before I start flashing?
If you have them installed and fastboot is working fine for you, then you are ok.
I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...
The Following 3 Users Say Thank You to efrant For This Useful Post: [ Click to Expand ]
 
efrant
Old
#8  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 7798
Posts: 9,404
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Quote:
Originally Posted by Thegodfather156 View Post
what's the benefits of this over the Gnex toolkit? Just curious as I'm new to the nexus

Sent from my Galaxy Nexus using Tapatalk 2
You actually see what is happening step-by-step in this method, in the hopes that you will learn something.

A toolkit does not run you through the steps, so it breeds a new wave of users who don't know how to use fastboot and don't know how to troubleshoot.

http://forum.xda-developers.com/show...9&postcount=45
I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...
The Following 6 Users Say Thank You to efrant For This Useful Post: [ Click to Expand ]
 
Thegodfather156
Old
#9  
Thegodfather156's Avatar
Senior Member
Thanks Meter 46
Posts: 553
Join Date: Oct 2010
Location: Portland, Oregon
Quote:
Originally Posted by efrant View Post
You actually see what is happening step-by-step in this method, in the hopes that you will learn something.

A toolkit does not run you through the steps, so it breeds a new wave of users who don't know how to use fastboot and don't know how to troubleshoot.

http://forum.xda-developers.com/show...9&postcount=45
Great thats why I'm here. I wanna learn more about how android works. Thanks for this thread. Also I've read that before. I'm not that noobish

Sent from my Galaxy Nexus using Tapatalk 2
RasBean Jelly/TRINITY

Technician I Am
 
SirRomie
Old
#10  
Member
Thanks Meter 2
Posts: 92
Join Date: Jul 2011
Does usb debugging have to be turned on for this? Also I have the samsung drivers installed, if fastboot recognizes my phone does that mean that they work correctly?

The Following User Says Thank You to SirRomie For This Useful Post: [ Click to Expand ]
Tags
how-to, stock, takju, yakju
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes