[STOCK ROM] How to Unroot, Return to stock or flash a factory image on any nexus device

[STOCK ROM] How to Unroot, Return to stock or flash a factory image on any nexus device

Google Nexus devices are the first in the world to get the Latest Android versions.
In the near future Google is going to release the Latest Android L versions.
But you can’t taste it if you have installed some custom ROM like CyanogenMod ROM or Paranoid Android or something else.

So you must know how to return to a stock image on your nexus device.
For some case if you need to undo root your nexus, then this guide will be for you.

Before going into details make sure that you have the following things in hand to start with the rooting method.
Required things:
Driver for Your Nexus device
Fastboot and adb binaries
Factory image for your corresponding Nexus device
– USB cable
– Enough time with a smart and cool brain

Please download the factory image meant for your device only.

This process will erase all of your data, so it is strongly recommended that you should take a full backup of your current data.
Follow the below link for how to backup all the data on your android device:
Step by step guide to take full backup of your phone data


[Manually flashing factory images for all Nexus devices]

STEP by STEP factory image flashing guide for your Nexus device:

If have not yet unlocked the bootloader of your device then follow the below link to get it done:
Unlocking the Bootloader:

Installing a factory image:

I hope you have already downloaded the mfastboot zip file.
Extract the mfastboot zip file and keep it in an easily accessible loacation like c:mfastboot-v2
If you are on a linux machine then preferably /home/<user_name>/mfastboot-v2/

I hope you have already downloaded the factory image for your device.
keep the factory image zip packege inside the mfastboot extracted directory.
Example: Inside this directory c:mfastboot-v2
Same case for linux users.

To make it understandable I have downloaded the factory image for my Nexus 4:
verion: 4.4.4 (KTU84P)

The zip file comes in a package.
The package contains the following:
bootloader image: bootloader-mako-makoz30d.img
radio image: radio-mako-m9615a-cefwmazm-2.0.1701.03.img
The actual Android system image: image-occam-ktu84p.zip
– scripts for different platforms like Windows and linux that will flash all of the images by itself to your device.

After completing the above steps there are are although several methods that you can follow to flash a factory image to your Nexus device, but here I am going to show you the easiest method to do it.

Easiest flashing method:

Power off your phone.
Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.
And then connect your phone to the PC using a USB cable.

Run the flash-all.bat by double click on the script file.
For linux users you have to run the flash-all.sh script file.

Wait for the script till it flash everything.

After everything finished, select “Recovery” using the volume buttons.
When a small dead Android appears, press Power Button + Volume UP.
Select “Wipe data/factory data reset”

Now reboot your phone.
After rebooting you should be on a brand new(atleast from software perspective) stock version.

Have fun and stay tuned to get more updates.

Previous How to use a QR code to exchange information between devices
Next Xperia E3 Dual: review, specifications and features

About author

siba 674 posts

A B.Tech degree holder with more than 5 years of experience on Embedded Systems design domain. He has worked on Aerospace domain, NAND storage, Server storage and Wireless networking.

View all posts by this author →

You might also like

Uncategorized 0 Comments

[ROM] [CM 12] Cyanogenmod 12 for the Moto G 4G (Codename: Peregrine) Android Lollipop 5.0

Beauty of Android lollipop and CyanogenMod is now official for Moto G 4G (Peregrine). And we have also updated the CyanogenMod official link for our users in the download section.

Uncategorized 1Comments

Panasonic P55 Novo launched at Rs. 9,290

Panasonic P55 Novo launched in India at a proce tag tag of Rs. 9,290, which is a follow up handset to the earlier launched P55, priced at Rs. 10,290. The

Uncategorized 0 Comments

After OnePlus 2 get ready for the OnePlus X

Yes. Recently we have seen the OnePlus 2 from the OnePlus team and now as per reports, OnePlus has plans to release another low cost feature rich OnePlus X to


No Comments Yet!

You can be first to comment this post!