The factory images were already available for download on the day the device went up for sale on the Play Store. Find the factory images for the “Nexus 5”, which is code-named “hammerhead”. Google has its own simplified way to install stock firmware on Nexus smartphone/tablets. Extract and transfer the contents of the factory image inside this folder as well. If you are updating a Nexus or Pixel device that is manufactured in 2015 or later (for example, a Nexus 5X, Nexus 6P, Pixel, Pixel XL, Pixel 2 or Pixel 2 XL device), run this command: fastboot flashing unlock Note: the ‘flashing unlock’ command is only available with fastboot version 23.0.1 or later. The list of files will include a ZIP file containing the codename of your Android device, two files with “flash-all” names, and a bootloader image file. The names of the image files in the factory image will clearly indicate the partition they are intended for as well.If you want to relock the bootloader of your device after flashing the device, put the device back in fastboot mode. Factory images are a great way of completely resetting your Nexus device and putting them back to stock.If you have rooted, flashed a custom ROM on your Nexus device but now want to go back to complete stock, simply follow the steps below. (“M4B30Z” and similar are build labels, not model numbers, as I originally thought. You have just unlocked your Nexus device’s bootloader.Now that everything is ready, it is time to start the flashing. In particular, this can be applicable to the Nexus 6, Nexus 5X, Nexus 6P, the original Pixel and Pixel XL, and the new Pixel 2 and Pixel 2 XL. Then type in the following command in the Terminal or Command Window you had opened earlier -:This will re-lock the bootloader of your Nexus device, restoring your warranty and putting the device back to complete stock.Sign up for our AndroidBeat Daily newsletter to get the top Android news stories and tips delivered to your inbox. Locate the last image, which is the latest and greatest version, “6.0.1 (M4B30Z, Dec 2016)”. So, use the power button to select Voila! You have successfully flashed factory image on your Nexus device. A couple of days ago, Google released the Android 4.4 KitKat factory images for the Nexus 4, 7 (2012/2013) and the Nexus 10. It has always been pretty unreliable and has only worked once for me in the last 2 years. He spends most of his prime time fiddling around with the software on his Android devices. Connect your device to your computer over USB. (The “Nexus 5X” has code-name “bullhead”.) Make sure that you have properly installed the drivers and are inside the correct folder.If you are running Windows, copy-paste the following command in the command prompt window -:The script will then automatically flash the full factory image on your Nexus device. We shall not be held responsible for any damage to your device. If you’ve already unlocked your device to root it or install a custom ROM, you can skip this part. So, the above command will look something like this on a Mac -:The above command should confirm if your device is indeed being detected by your PC or not. Also, you will need to have an unlocked bootloader to flash the factory image.Extract the contents of the ADB/Fastboot ZIP file inside a new folder called ‘google’ on your desktop.
But before we proceed, it’s necessary to complete a set of pre-requirements.Prior to the instructions, we assume that you have already unlocked bootloader and have a custom ROM installed if it is so you should skip This tutorial can also be used to update your Nexus device by manually flashing the factory image.Flashing wrong factory image may soft-brick your Nexus device, so make sure to cross check the files and proceed as stated. All the extracted contents of the factory image should be inside the same folder as the ADB and Fastboot file, otherwise you will get a file not found error.Make sure to install the ADB drivers as well if you are running a Windows based PC.After the device has booted into bootloader mode, connect it to your PC.If you are using a Mac, then you need to prefix a “./” before every Fastboot command.
But before we proceed, it’s necessary to complete a set of pre-requirements.Prior to the instructions, we assume that you have already unlocked bootloader and have a custom ROM installed if it is so you should skip This tutorial can also be used to update your Nexus device by manually flashing the factory image.Flashing wrong factory image may soft-brick your Nexus device, so make sure to cross check the files and proceed as stated. All the extracted contents of the factory image should be inside the same folder as the ADB and Fastboot file, otherwise you will get a file not found error.Make sure to install the ADB drivers as well if you are running a Windows based PC.After the device has booted into bootloader mode, connect it to your PC.If you are using a Mac, then you need to prefix a “./” before every Fastboot command.