[HOW TO] Use fastboot to flash android factory images on nexus devices

You will need to have latest android SDK tools installed on your computer in order to do this. Download the SDK from here http://fiw.me/ez9Ju

Download the latest factory image from here, https://developers.google.com/android/nexus/images

(Before continuing back up all the files and also know that you are also risking your device)

and extract all files from zip and place them in android platform tools path.

adb path

Now connect your nexus device to computer using USB cable and open command prompt window and type in " adb devices ". See if your device listed under the list. If it listed then we can move on.

If the device is not visible under list, then see if you have installed the drivers properly and if you have the latest adb tool version. To check the adb version type in "adb version" and hit enter. Mine is 1.0.31 and it worked really well with it.

If your nexus device has been listed then type this command to open bootloader in device.

"Adb reboot bootloader"

Now after sometime your phone must start in bootloader menu. After, type

1
2
3
4
5
6
7
8
9
10
11
fastboot oem unlock
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader your-bootloader.img
fastboot reboot-bootloader
fastboot flash radio your-radio-image.img
fastboot reboot-bootloader
fastboot -w update your-image-name.zip

for my nexus 4 occum image it went like this.

1
2
3
4
5
6
7
8
9
10
11
fastboot oem unlock
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader-mako-makoz20i.img
fastboot reboot-bootloader
fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.84.img
fastboot reboot-bootloader
fastboot -w update radio-mako-m9615a-cefwmazm-2.0.1700.84.zip

Now your device will start with factory image, configure it as you want.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

     

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>