Firmware 4 pda Nexus 5. Instructions on how to flash the official firmware of a Nexus device (Video). It's all somehow connected

Detailed step-by-step instructions for flashing LG Nexus 5 (Hammerhead) to the original firmware with an unlocked bootloader in Fastboot mode.

Attention!

For all further manipulations with the device, an unlocked bootloader is required. To unlock it, this instruction can help.

Installation instructions

    Create a folder in the root of the C:\ drive named " Android».

    Download the archive with the original firmware image and unpack it into the “Android” folder. You can find the current version on the official website.

    Open the command line and go to the created Android folder with the command “ cd c:\Android\"(commands are written without quotes).

    Connect your phone to your computer using a USB cable.

    Make sure that the computer finds the device via ADB.
    To do this you need to enter " adb devices" to the command line. When a request appears on your phone for permission to debug via ADB on this computer, you must click “ Ok", while selecting the item " Always allow from this computer" If the device is visible, the text “ List of devices attached" and a list of all devices (for example, xxxxxxx device). If instead of “device” it says “offline” or the list is empty, then you need to update ADB, check the drivers/cord, change the USB port/computer.

    Reboot your phone into bootloader mode.
    To do this, you need to turn off the device, turn it on while simultaneously holding down the Volume Down key and the Power button, or enter “ adb reboot bootloader" If everything is done correctly, the message will appear on the smartphone screen Start and an Android “lying” on its back with the lid open.

    The first time you connect to a computer in Fastboot mode, the system may ask for drivers. To install them, you must specify the path to the folder with the downloaded drivers. If this does not happen and the device is not detected, you need to go to “ device Manager", expand drop-down menu " Other devices" and double-click on the item " Unknown device"(or " Android 1.0") with an exclamation point in a yellow triangle. In the " Are common» click on the button « Update driver", refuse to search on the network and specify the path to the folder with drivers, while activating the item " Including subfolders" A warning may appear stating that the publisher could not be verified, but you should still ignore this message and continue with the installation. After some time, the drivers will be installed.

    Check the availability of the device in bootloader mode by entering the command " fastboot devices" If the device is connected correctly, the device identifier with the word “fastboot” will be displayed (for example, “ xxxxxxx fastboot"). If nothing is displayed or “waiting for devices...”, then you need to update the drivers, change the USB port, or try to do these steps on another computer.

    Now you can start installing the firmware in one of two ways. Both methods require that the phone is in bootloader mode.

    Method 1 (Automatic)

    • At the command line enter " flash-all.bat" and wait for the firmware installation to complete.

    When the operation is complete, the device should reboot. The initial startup may take some time, but no more than five minutes. If after this time the device is still “hanging” at boot, it is necessary to perform the so-called. Hard Reset. To do this you need:

    • Put your phone into bootloader mode.
    • Use the volume buttons to select the item Recovery Mode and press the power key to confirm your choice.
    • When a small recumbent robot appears with a triangle and the text " No command", hold down the power button and press the volume up key once, then immediately release them simultaneously. The phone will be booted into stock recovery.
    • Now you should select the item “ wipe data/factory reset" and on the next screen - " Yes -- delete all user data».
    • After deleting data is complete, select “reboot system now”.

    This time the device should boot without problems.

    Method 2 (Manual)

    On the command line, perform the following steps one by one:

    1. To clean the system:
      • fastboot erase boot
      • fastboot erase cache
      • fastboot erase recovery
      • fastboot erase system
    2. Now you need to flash the bootloader and reboot:
      • fastboot flash bootloader bootloader-hammerhead-*.img
      • fastboot reboot-bootloader
    3. Next, flash the modem and reboot the device again:
      • fastboot flash radio radio-hammerhead-*.img
      • fastboot reboot-bootloader
    4. And finally, flash the system in this way (if you remove the -w parameter, the user files will be saved):
      • fastboot -w update image-hammerhead-*.zip
    5. Or unpack the archive image-hammerhead-*.zip and manually flash all system components as follows:
      • fastboot flash system system.img
      • fastboot flash boot boot.img
      • fastboot flash recovery recovery.img
      • fastboot flash cache cache.img
    6. To completely clear user data, enter:
      • fastboot erase userdata
      • fastboot flash userdata userdata.img
    7. Wait for the operation to complete and reboot the phone manually:
      • fastboot reboot

    After some time, the device will boot and be ready for further work. The initial startup usually takes a long time, but no more than five minutes.

A couple of days ago I installed the latest version of Android 7.1.1 revision 21 from Pure Nexus on my LG Nexus 5. All this time I was driving in the tail and in the mane. At the moment I don't see any problems. The firmware is stable and works flawlessly.

The device began to work noticeably faster after Paranoid Android 6.0.1. Perhaps, of course, this is due to accelerated animations of the interface and service events. But the phone feels like a completely different device.

What will be required for installation?

  • Google Apps - Dynamic Gapps

With the camera in the latest version of Google applications, there was a problem with video recording, and the HRD+ mode was not working at all. This fix rolls back the camera version to stable and blocks its further updating.

How to install the firmware?

Naturally, you should start by creating a backup copy of your current firmware. This step helped me out when experimenting with the previous firmware revision No. 16. The post on XDA included a link to an incompatible version of Gapps, and the phone’s initial setup program kept crashing. It was impossible to use the phone. So never neglect to create a backup copy of working firmware.

Initially, I downloaded the installation files into the ROMs folder in the phone's memory using ES File Explorer. You can, of course, select any folder you wish.

Installation steps:

  • Backup systems- save the system partition, data, cache and boot partition of the current working system (TWRP checkboxes: System, Data, Cache, Boot);
  • Wipe systems- erase everything from the phone except the internal storage, where your files (photos, downloads, etc.) will remain;
  • Installing ROM firmware- in TWRP go to the section Install, find the purenexus_hammerhead file, click Install Image, wait for the process to complete;
  • Installing Google apps- similar to the previous paragraph only with the Full_Dynamic_GApps file;
  • Rolling back the camera app to the stable version - the same thing, but with the file n5_nougat_gcam3_fix-signed.zip


It is done! All the work took me about five minutes (except for the backup), TWRP worked quickly, without errors. The initial loading of Android lasts about three minutes, then loading and rebooting occurs very quickly - within 20-30 seconds.

After downloading, the Setup Wizard will launch, which will help you restore system settings from the cloud. Then, as usual, the long process of downloading applications that were installed earlier. And then you can enjoy your new Nexus 5 with the seventh Android on board.

Thank you, please.

It's all somehow connected

Sometimes there comes a turning point when the firmware gets boring and you want to sit on the “good old stock”. This instruction is also suitable for people who have experienced some technical problems and need to return the device under warranty (remove the hacking flag).

Instructions for installing stock firmware on Nexus 5

All your data will be deleted. If you want to save important information, I recommend making a backup. Everything you do, you do at your own peril and risk. The author is not responsible for the “bricking” of your device.

Preparing to flash stock firmware on Nexus 5

  • We charge the device to at least 70%.
  • Download the drivers and unpack them into any folder.
  • Installing the drivers: “First, you need to put your smartphone into Fastboot mode (Power +Volume down for 10 seconds when turned on). Then we go to the device manager -> RMB on our device -> properties -> driver -> update -> search for drivers on this computer -> select a driver from the list of already installed drivers -> show all devices -> install from disk -> we get there to the folder with our drivers, select the file android_winusb.inf -> Ok -> Android ADB Interface -> Yes -> install.”
  • Download ADB and Fastboot depending on the OS bit depth: , . Unpack the archive into any folder. It is necessary that there are no Russian letters and numbers along the way. I unzipped my folder to d:\ADB
  • Download the file with the firmware.

Installing stock firmware on Nexus 5

  • Put Nexus 5 into Fastboot mode:
    1. Turn off the smartphone.
    2. Press the Power + “Volume -” button for 10 seconds, fastboot starts
  • Connecting the device to the computer
  • Unpack the archive with the firmware into the ADB folder. It is necessary that you unpack not a folder into a folder, but precisely the files that are in the archive with the firmware into the folder with ADB. If this point is not entirely clear, you can watch the video.
  • We go to the folder with ADB (my ADB folder is located at the following path “D:\ADB”). And run the file flash-all.bat

We are waiting for the firmware to finish

If Nexus 5 is stuck in eternal loading

  1. Turn off the smartphone by holding the Power button for 10 seconds
  2. Press the Power + “Volume -” button, fastboot starts
  3. Go to Recovery Mode
  4. We see an android with an exclamation mark, hold down the Power button and volume “-“
  5. Select wipe data/factory reset and confirm the choice.
  6. And now we reboot the smartphone using the reboot system now item
  7. Enjoying the stock firmware

For those returning Nexus 5 under warranty

If you are going to return your smartphone under warranty, then you need to lock the Bootloader and reset the hacking flag, otherwise you will be denied warranty. This flag shows the unlocked service center whether the Bootloader has ever been unlocked.

Resetting the "jailbreak flag" and locking the bootloader on Nexus 5


If you unlock the bootloader again, then Device tampered will take effect again true.

Updating the operating system of a modern mobile device to the latest version can guarantee that the user will be among the first to receive any innovations, as well as corrections to current errors. Updating the Google Nexus 5 firmware can be useful even for the most undemanding users who are satisfied with their device performing the simplest functions of calling and sending SMS messages. Innovations have the ability to affect absolutely everything, which provokes transformation and a transition to more comfortable options for even basic actions. Here you will find a detailed description of how to update the Nexus 5 operating system, which is the first carrier of Android 4.4 KitKat.

Despite the fact that the Nexus 5 was one of the first smartphones to receive OS updates, which was the entire philosophy when developing the device, many will enjoy delving into the processes and making their own changes. Of course, this does not apply to those happy owners of the famous device who live in blissful ignorance of the intricacies and nuances of possible updates.

Google Nexus 5 update

Check that you have a stock version of the operating system installed on your device, just like you have access to a WiFi connection - the update file will usually take a couple of megabytes of memory.
When you receive a notification about a ready OTA for your Nexus 5, click on it.
You will see detailed basic information about the update files, as well as a “download” button that you need to click on.
The next step is installation. Click the “install” button and wait a couple of minutes, during which the process will be carried out automatically, after which the Nexus 5 will reboot itself.
Now start studying the innovations, or simply perform all the usual actions on the new version of the OS.
What to do if the notification does not arrive?
Don't worry, just try using an alternative method:
Go to Settings.
Find and open the item containing information about the device (About Device).
Go to the System Updates section and then click the search button (Check Now).
Provided the files are ready, download and install.

What should I do if there are official updates available online, but my Nexus 5 cannot detect them?
Any OTA update is not distributed immediately; in some regions it happens earlier, and in others later. The solution to this problem lies in manually installing a factory image (Factory Image) for Android. This will erase your data and settings from your Nexus 5.
Start by backing up all significant files and settings.
Download the necessary USB drivers for Nexus 5 to drive C in the SDK folder, install from.
Unlock your smartphone's bootloader.
Enable USB debugging option.
Make sure you have enough battery power.
Do not forget about the high degree of responsibility for the operation that rests only with you.

And now your Nexus 5 is ready for manual installation of official OS updates.
1. Download.
2. Unpack .tgz on PC.
3. Press the power button on the smartphone.
4. Boot the Nexus 5 into Fastboot Mode while holding down the Volume Down, Volume Up and Power buttons.
5. When using a USB cable, connect the smartphone to the PC.
6. On the PC, go to the folder with the content unpacked in the second step, run the flash-all.bat script for Windows or flash-all.sh for MAC or LINUX.
7. We wait for the installation to complete.
8. Go to the main screen of the Fastboot device, click the Recovery option.
9. Press the power button to boot the Nexus 5 into recovery mode.
10. Click the item wipe data/factory reset and confirm the start of the process.
11. We go back to the main screen of the recovery mode and press reboot to normal mode.
12. We disconnect the PC and device only after a complete reboot.

Good day. Previously, I wrote a couple of topics that you will need for the firmware. In them, you can unlock the device’s bootloader, which is necessary for further work. Today we will write detailed instructions about firmware and at the end of the topic we will post you the official firmware for Google Nexus 5. When you have checked the readiness of your device for flashing, make sure that the battery charge is at least 50%, install the drivers downloaded from the previous topic and install as described there and unlock the bootloader. Once you have completed these steps, transfer your device to the engineering menu using the smartphone buttons.

Now let's get started. Open on your computer drive C. On this disk you need create an empty folder with the title " Nexus5". Download and unpack the archive with ( ADB/Fastboot) . The file size in the archive does not take up 10 MB. You can download from our website, free of charge and without registration. After unpacking, you should get the same result as me. See the picture below.

Once all files have been transferred, go to or open Command Prompt. All work that will be performed on the device will be written directly through the command line. For those who don’t know how to open it, here are some instructions.

  • Go to Start and in the search box write “Command Prompt”.
  • Go to Start and select "Run" in the window that appears, type cmd.
  • Press the Win+R key combination.
  • Start - All Programs - Accessories - System Tools - Command Line.

Once you have opened the command line, enter the following code into it: "cd C:\Nexus5". This will allow your computer to visually open the folder that we recently created and with which we will continue to work. A folder can be created on any drive, but keep in mind that the folder path command will also be changed. Better do as written and shown here. Make sure your smartphone is set to engineering menu or bootloader/fastboot mode.

Now you need to check for drivers. To do this you need to enter one more code: fastboot devices. If you see your device number in the command line, and you can see it at the bottom of the screen in bootloader/fastboot mode, then you did everything correctly. You can proceed to the next steps.

Download the required firmware build for your device and unzip the archive on drive “c” in the “Nexus 5” folder. Now you can move on. Firmware can be done in two ways, but we are preparing everything for beginners, so we will consider only one.

  • Open the Nexus 5 folder on your computer.
  • Turn off the device and put it into the engineering menu or bootloader mode.
  • Connect it to your computer via a USB cable.
  • Run the flash-all.bat file from the Nexus5 folder.

Wait for the download to complete, this took me about 10-15 minutes. Once the firmware is finished, reboot your device. It will take some time to start up for the first time, so don't rush to turn it off.

That's all, thank you for your attention.