Android 5.1 Lollipop (build LMY47D) was just released for the Nexus 5. You can download the Android 5.1 factory image for the Nexus 5 and install it manually. This latest Lollipop software update was first released for the new Android One devices launched in Indonesia and since then Google has been completely quiet on when they would be releasing a full Lollipop update to the Nexus 5 and the rest of Nexus family of devices. Android 5.1 LMY47D Lollipop is now available! The exact Android 5.1 build is LMY47D for Nexus 5. You can manually update Nexus 5 to Android 5.1 LMY47D factory image from the tutorial below — and also root Nexus 5 on this software update. The only catch is that if this will be your first time playing around with a factory image, you might have to unlock your bootloader first before continuing – which means wiping all of your phone data.

If this is your very first time installing / flashing a factory image, we understand you would want to make sure your installation process go as smooth as possible. So before we actually jump to the installation process of Android 5.1 LMY47D image, let’s take a look below at how to backup all your data. When installing this Android 5.1 Lollipop factory image, your entire data will be wiped clean — like a brand new phone. As a Nexus 5 user, you have several options to choose from depending on how you want to store your data. These are the some of the tips given below that we want you to keep in mind and then proceed.


Disclaimer: All the custom ROMs and firmwares, official software updates, tools, mods or anything mentioned in the tutorial belong to their respective owners/developers. We ( or the developers are not to be held responsible if you damage or brick your device. We don’t have you on gun point to try out this tutorial 😉

Nexus 5 Android 5.1 LMY47D Factory Image Details:

Android 5.1 Lollipop was just announced earlier today and we already now have the new Android 5.1 LMY47D Lollipop factory image files for all the Nexus family of devices. This will be the second major update to Lollipop after the first one was released a few months back. We have written a complete step by step tutorial on how to get this new Android 5.1 Lollipop update installed and working on your phone.

UPDATE: The new and latest Android 5.1.1 LMY48B Lollipop update is now available. Download here!

Meanwhile, you should also check out the following articles:

If you plan on rooting this phone or are still confused for why to root Nexus 5, read: Benefits of Rooting Your Android Device.

LG Nexus 5 USB Drivers

You will need to connect your Android phone with the computer. For that, please make sure you have installed the USB drivers for LG Nexus 5 properly. If not, you can download the latest official drivers from our Android USB Drivers section here:

Download LG Nexus 5 USB drivers!

Backup and Other Important Tips

Done with the USB drivers? Perfect. The tutorial is on the next page, but first, please take a look at the following tips and important points you need to take care of. These are important, as we don’t want anyone losing their personal data or apps:

Always backup your important data that you might need after you install a new custom ROM, an official software update or anything else. Make a backup for just in case, you never know when anything might go wrong. See below for some tips on how to backup data:

If you already have a custom recovery (ClockworkMod, TWRP etc.) installed on your phone, we strongly recommend a backup using that as it creates a complete image of your existing phone set up.

A few more optional tips that you should remember:

1. Having problems connecting your Android phone to the computer? You need to enable USB debugging mode. See here: How to Enable USB Debugging — for Gingerbread, Ice Cream Sandwich and Lollipop.

2. Make sure your Android device is charged up to 80-85% battery level. This might help you: How to Check Battery Percentage. Why? Because, if your phone goes off suddenly while installing a custom ROM, flashing an official firmware update or installing mods etc. — your phone might get bricked or go dead permanently. No one wants that, right?

4. Most of the tutorials and how-to guides on Team Android are for factory unlocked Android phones and tablets. We recommend not to try our guides if your phone is locked to a carrier, unless we have specified the carrier name or device model.

If you find the above tips useful and they were helpful to you, please consider giving us a +1 or LIKE to thank us!

All set and ready? Good. You can now continue reading below and update your Nexus 5 to Android 5.1 factory image.

Install Android 5.1 LMY47D on Nexus 5 Using Official Factory Image

We have put together a detailed step-by-step instructions guide on how to install the official Android 5.1 Lollipop (LMY47D) on Nexus 5 using the factory image provided by Google. This tutorial is for beginners who are not used to playing around with official factory images by Google for their Nexus devices.

Please make sure your phone fulfills all the requirements and you read the entire tutorial once before actually performing it on your device.

Disclaimer: Try this on your own risk. We are not responsible if you mess up with your Nexus 5.

Just To Remember:

  • This tutorial is only for LG Nexus 5 and we are not sure if it will work on the other variants of the Nexus 5 on other carriers.
  • Your phone can be on any previous Android version or even on a custom ROM. It doesn’t matter at all. This tutorial will still work for installing Android 5.1 Lollipop.
  • Enjoy Android 5.1 on your device and let us know your review about it!

NOTE: Installing Android 5.1 LMY47D Lollipop factory image will WIPE / DELETE / ERASE everything from your phone if your bootloader is not already unlocked. Please make sure you have a backup of all the data. Read: How to Backup Android Apps and Other Data.

Complete Step-By-Step Instructions:

Step 1 – Download Android 5.1 Factory Image (hammerhead-lmy47d-factory-6c1ad81e.tgz) for Nexus 5 on your PC, if you haven’t already.

Step 2 – Connect your Nexus 5 to your computer using the USB cable.

Step 3 – Please make sure Fastboot is configured and properly installed on your computer. How? See here: How to Set Up ADB and Fastboot with Android SDK.

Step 4 – Turn OFF your phone.

Step 5 – Get into the Fastboot/Bootloader Mode on your phone. Turn ON the phone while pressing and holding the Volume Up + Volume Down + Power buttons till you see the Fastboot menu and START on top.

Step 6 – Now extract the downloaded file anywhere in your computer. Go to the folder hammerhead-LMY47D and then copy/paste all the files to your Fastboot directory.

Note: If you followed our tutorial on setting up Fastboot on your computer, there is a 99% chance your Fastboot directory will be the platform-tools folder in your Android SDK directory.

Step 7 – From the factory image files in your Fastboot directory, do the following depending which OS you are on:

  • On Windows: Run the file “flash-all.bat”.
  • On Mac: Run the file “” using Terminal.
  • On Linux: Run the file “”.

Step 8 – That’s pretty much that you had to do for flashing the stock factory image on your Nexus 5. Now wait and watch as the process is completed — or follow the on-screen instructions on your phone if in case you have to unlock the bootloader.

Step 9 – After the installation completes, the phone will boot now and it might take about 5 minutes to boot on your first time. So, please wait with patience!

That’s it! Your Nexus 5 should now have the official Android 5.1 LMY47D Lollipop software update installed on your phone using the stock factory image from Google! Go to Settings >About phone to verify.

ROOT TUTORIAL: How to Root Nexus 5 on Android 5.1 LMY47D Lollipop Official Update.

Hit +1 or LIKE to thank us!

Have fun playing with the new Android 5.1 Lollipop. All the instructions are clearly given above, but if you have any issues, please let us know through Facebook, Twitter or Google+!


He lives on everything Android; has countless devices, apps and games to play with everyday. Currently serving as the Chief Editor at Team Android.


    • A recovery has nothing to do with the installation of a factory image. So yes, it would work — and installing this will also wipe your custom recovery.

  1. @Calin, I got that error flashing 5.0 when i my phone was connected to a USB 3 port. Using a USB 2 worked in my case.

  2. Luca Viggiani Reply

    Hi, thanks for the tutorial! three questions:
    1) Root is not required, right?
    2) If I have platform-tools in my $PATH, there is no need to copy files there, I can run the bash script directly form where I have extracted files, correct?
    3) Is this exaclty the image that is going to be delivered via OTA?

  3. Aakash Shah Reply

    i am getting this error:
    checking version-bootloader …

    Device version-bootloader is ‘HHZ12d’.
    Update requires ‘HHZ12f’.

    what should I do now?

  4. Kyle Huang Reply

    This wipes all your phone’s data, even if you have an unlocked boot loader! My phone had an unlocked boot loader, rooted, with a custom recovery. I followed these steps, and all of my data was wiped. Please update this post, because it is slightly misleading.

  5. Ricevo questo errore:
    Device version-bootloader is ‘HHZ12d’. Update requires ‘HHZ12f’.

    Consigli su come procedere?

Write A Comment