Clean way for flashing factory image on Samsung Galaxy Nexus? Is this the correct and clean way for flashing factory Jelly Bean image on Samsung Galaxy Nexus, without using any external tool (apart from Android SDK)?

I don't want to to break my phone, so I'm asking this. I've collected these informations from various sources, but I need a confirm that all the steps and commands are correct and needed.



Step 1: Download and install Android SDK for Windows. Start Android SDK manager, select Android SDK platform-tools and Google USB Driver (this should be already selected) and install. It will take a while.

After packages installation, add the folder:

C:\Users\&lt;Username&gt;\AppData\Local\Android\android-sdk\platform-tools


to your PATH variable, to make command fastboot available in command prompt.

Step 2: Download a factory image from official Factory Images for Nexus Devices. For me is "yakju" for Galaxy Nexus "maguro" (GSM/HSPA+), file yakju-jro03c-factory-3174c1e5.tgz

Make a new folder, say C:\jro03c. Open yakju-jro03c-factory-3174c1e5.tgz and extract bootloader-maguro-primelc03.img along with radio-maguro-i9250xxlf1.img to C:\jro03c. Folder now contains two image files:

C:\jro03c\bootloader-maguro-primelc03.img
C:\jro03c\radio-maguro-i9250xxlf1.img


Then inside the .tgz file itself, open image-yakju-jro03c.zip and copy all *.img files to C:\jro03c. You will end up with six image files:

C:\jro03c\boot.img
C:\jro03c\bootloader-maguro-primelc03.img
C:\jro03c\radio-maguro-i9250xxlf1.img
C:\jro03c\recovery.img
C:\jro03c\system.img
C:\jro03c\userdata.img


Step 3: Power off your Galaxy Nexus. Press and hold Volume Up and Volume Down then press and hold the Power button; the Galaxy Nexus will now enter "fastboot mode". Connect your phone using the USB cable.

Then open a command prompt (Windows Key + R opens "Run", then type in cmd) type:

cd C:\jro03c
fastboot oem unlock
fastboot reboot-bootloader
fastboot flash bootloader bootloader-maguro-primelc03.img
fastboot reboot-bootloader
fastboot flash radio radio-maguro-i9250xxlf1.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot reboot-bootloader
fastboot erase cache
fastboot oem lock
fastboot reboot
Yes, this is the correct and official way of flashing

Be aware though, that no matter which way you flash, you can still break your phone

For example, you're in the middle of flashing your device, and the USB lead comes out - bricked device.

Or you're flashing, and you have a powercut - bricked device.

So, the moral is that there is no completely 100% safe way of flashing a device.