How to Flash Nexus 5 Factory Images

, , Leave a comment

Many users that don’t know how to restore their Nexus 5 to stock. It may come in handy, either when you have tossed on a ROM, or just to fix some mistakes.

WARNING!!!

This process will wipe your phone completely. Backup your storage before you continue.
I am also not responsible if anything goes wrong.

You will need to do:

2 Methods of flashing the Nexus 5 factory images

Method 1 (Easy method)

★Power off your phone.
★Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.
★Connect your phone to your PC through your USB cable.
★Run the flash-all.bat script in the folder where you extracted the factory images.
★Wait for everything to flash.
★After everything finished, select “Recovery” using the volume buttons.
★When a small Android appears, press Power Button + Volume UP.
★Select “Wipe data/factory data reset”
★Reboot. Your phone should be stock.

Method 2. (Long, but safe method)

★Extract the image-hammerhead-krt16m.zip somewhere easy to access (On C:/image-hammerhead-krt16m for example). You will have the following files:

extract-2

★In the same folder, from the original archive, extract “bootloader-hammerhead-XXXXXX.img” (rename it to bootloader.img) and “radio-hammerhead-XXXXXX.img” (rename it to radio.img)
★Power off your phone. 
★Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.
★Connect your phone to your PC through your USB cable.
★Open a CMD window.
★Type the following commands, in this order (If you have a different folder, change the path)

Code:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img 
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)

fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache

★After everything finished, select “Recovery” using the volume buttons.
★When a small Android appears, press Power Button + Volume UP.
★Select “Wipe data/factory data reset”
★Reboot. Your phone should be stock.

P.S. If you want to go back to 100% stock with a locked bootloader type:

★Open a CMD window
★Boot your phone in fastboot, and connect it to your PC
★Type the following command:

Code:
fastboot oem lock

★Reboot!

source: xda

Related Posts Plugin for WordPress, Blogger...

 

Leave a Reply

(*) Required, Your email will not be published