Google recently released a new update for its former flagship phone, the Nexus 5. This will take the firmware to build version MRA58N. Even though it’s still based on Android 6.0 Marshmallow, many bug fixes and stability improvements come with it. As the Marshmallow is a new Android version, bugs are normal and Google releases new updates to its Nexus series with all the feedback it receives from the users.

The OTA update can be installed directly from the Software Updates option in About Phone. However, for those who have rooted their firmware or installed a custom recovery may not receive the update. Hence flashing a factory image is a feasible option unless you have a boot image that will allow OTA updates.

In order to flash the latest available firmware on your Nexus device and restore your device to stock, you will need to setup ADB and fastboot and simply run a bat file and it’s done. Here, we have listed the latest factory image available for the Google Nexus 5 GSM/LTE. With this tutorial, you can flash almost any version of the factory image on your device. As a reminder, this procedure will wipe all your apps, data and restore everything to stock. Hence backup everything before you proceed.

Warning: We at DroidViews won’t be liable for any damage to your device whatsoever. A full backup is highly recommended. Reader’s discretion is advised.

Download Section

Install MRA58N Update on Nexus 5 With Factory Image


  • Set up ADB and Fastboot on your computer. You can download the full Android SDK from here, or get the quick ADB and fastboot installer from here. For Mac or Linux OS, click here.
  • Install Nexus USB Drivers on your computer.
  • Open Settings> Developer options and enable USB Debugging on your device.
  • Go to Developer options and enable Allow oem unlock, if this option is available.

Installation Instructions

  • Download the factory image from above and transfer it to your PC.
  • Make sure you have setup ADB and fastboot on your PC. Also accept Always allow from this computer when you plug in the device for the first time to enable USB Debugging.
  • Now power off your device and unplug it from your PC.
  • Boot into the bootloader or fastboot mode. To do so, press and hold volume down/up and the power button simultaneously for 5-6 seconds. When you see the bootloader screen, connect your device to the PC using a USB cable.(Choose fastboot if option is available) You can also issue the following code while connected to the PC, to boot into the bootloader.
adb reboot bootloader
  • Now plug in your device to the PC and let the drivers install.
  • Navigate to the location where you have placed the factory image file on PC and extract it to get files with .img.flashall
  • While the folder with the extracted factory image is open, run the flash-all.bat file on Windows PC and confirm the flashing process. Wait for the process to complete. If you use Linux or Mac OS,  run the file and follow the instructions.
  • Once done, reboot the device normally. Once you see the new boot logo, that means the system has successfully been installed.

First boot may take a while, so be patient. If necessary, unlock the bootloader on your Nexus 5. To do so, issue the command “fastboot oem unlock”. If you need to lock the bootloader, simply issue the command “fastboot oem lock“, while your device is connected.

Also See:

Install Android 6.0 Marshmallow based AOSP and Other Custom ROMS on Nexus 5

For queries, comment down below. If we have helped you, then like and share us on social platforms. If you need help with other devices, let us know.

This site uses Akismet to reduce spam. Learn how your comment data is processed.