This website uses cookies to ensure you get the best experience on our website. OK
57 Shares 25 comments

How to get Android 5.1.1 Lollipop on the Nexus 5

The Android 5.1.1 Lollipop update is here and the new factory image is up for the Nexus 5: LMY48B. If you've got a Nexus 5 and a few minutes to spare, you can flash the latest version of Lollipop on on your Nexus 5 in a jiffy. Here's how to get Android 5.1.1 Lollipop on the Nexus 5.

Android L lollipop interface purple 02
There's even more Lollipop in Android 5.1.1 for the Nexus 5. / © ANDROIDPIT

Note: Factory images are just what they sound like: a picture of the system as it comes out of the factory. That means no Candy Crush, none of your cute kitten pics, no music, no files, no accounts. So before you flash a factory image, make sure you have a full backup of your data (or are OK with wiping it all).

The Nexus 5 Android 5.1.1 update is rolling out over-the-air (OTA) as well, so you can just wait for that if you like.


How to get Android 5.1.1 Lollipop on Nexus 5

1. Turn your Nexus 5 off.

2. Press and hold Power and Volume Down to restart your Nexus 5 in to the bootloader (see image below).

AndroidPIT Nexus5 Fastboot Start
This is the Nexus 5 bootloader. / © ANDROIDPIT

3. Connect your Nexus 5 to your computer with a USB cable.

4. Open a Windows Explorer window and find the unpacked firmware you downloaded to the ADB Tools folder.

5. Double click the flash-all.bat file and let it do its thing.

6. Your Nexus 5 will reboot and be running Android 5.1.1 Lollipop.

AndroidPIT flash all bat nexus 5 hammerhead
Flash-all.bat does the work for you: sit back and enjoy Android 5.1.1. / © ANDROIDPIT


If you have a problem before installation, make sure you have USB Debugging enabled and an unlocked bootloader as described in the linked guide above.


If you get stuck in a bootloop (your Nexus 5 sticks on the loading screen at startup), you can try to clear the cache partition first by going back to Fastboot and using the volume keys to enter Recovery Mode (use the Power button to confirm your selection). Once you've wiped the cache partition you can try to reboot.

If you still don't get past the boot screen, go back to Fastboot and select wipe data/factory reset and press the Power button to confirm. This should clear things right up.

ADB problems

If you get an error message in the command prompt window telling you you're missing the system.img file, do the following: unpack the file as well and copy and paste those files into the same place as the rest of the unpacked files (this should be the ADB Tools folder alongside the as adb.exe and fastboot.exe). 

Then, open a command window (hold Shift and right click, select ''Open command window here'') and enter the following commands:

  • fastboot flash bootloader <bootloader-filename>.img
  • fastboot flash radio <radio-fileame>.img
  • fastboot reboot-bootloader
  • fastboot flash recovery recovery.img
  • fastboot flash boot boot.img
  • fastboot flash system system.img
  • fastboot flash cache cache.img
  • fastboot flash userdata userdata.img

When you've finished all this, you can use the volume buttons to select ''Reboot system now'' and press power to confirm. However, to avoid any bugs on startup, I suggest you first go to Recovery Mode and wipe the Nexus 5 cache partition and then factory reset your Nexus 5.

If you have a custom recovery installed, after pressing Power and Volume Up and selecting Recovery you'll be taken straight to Recovery Mode. if you have stock recovery you'll see the Android robot lying on his back. On this screen press and hold Power and then Volume Up to access Recovery Mode. 

This stops 75 percent of all update problems from taking hold and ruining your first days of a new Android version. When you're all done, choose ''Reboot system now''' and wait.

Once your Nexus 5 reboots it should be running Android 5.1.1. You can then restore your apps and data from your backup.

How are you enjoying Android 5.1.1? What have you noticed so far?



Write new comment:
  • Great post, it helped a lot on my research. Thanks a ton.

  • what should i do if the command prompt get's stuck on the writing 'system'... part? how long should it take?

  • how long do i have to wait until it´s done? after all procedures

    • First of all make sure that battery is above 60%. After all process it will take 15-20 min or more to boot up dont do anything untill you get an welcome screen.

  • Hey, I continued commands to fastboot reboot-bootloader but as well as I typed fastboot flash recovery recovery.img command it shows error message. What should I do???

  • Hy, I'm having this message "error: update package missing boot.img", is it the same as if I got the system.img missing? Thanks!

  • arivendu May 22, 2015 Link to comment

    U copy the extracted files, & make sure you have the reqd batch files.
    Better still use the "adb sideload <ota zip file >" to side load the 5.1.1 from 5.1, that way you can preserve your data.

  • Can someone please tell me what does this mean ??

    *Download Android 5.1.1 factory image for Nexus 5 (hammerhead – LMY48B) - save it to the ADB Tools folder and unpack it too

    the confusion is:

    * I get that ADB Tools Folder is the Platform Tools folder but should i copy the extracted files that are within the 'hammerhead – LMY48B' or just the extracted 'hammerhead – LMY48B' folder ????

    Thank you in advance :)

  • Updated successfully! Thanks a lot!

  • Saz D Mar 28, 2015 Link to comment

    Thanks for the article!
    Typo in adb problems section: fastboot reboot bootloader should be
    fastboot reboot-bootloader

    Also "I suggest you first go to Recovery Mode and wipe the cache partition and wipe data/factory reset"
    On that screen you get an Android lying on his back. Press power and up volume to get the menu with the factory reset option.


  • works fine for me, with no lags. thanks for the post

  • system.img file is currupted...still flashed it & now my phone stucked in google logo screen.

    Pls help

    • arivendu Mar 25, 2015 Link to comment

      Instead of factory image use "adb sideload" to upgrade to 5.1 using the OTA URL. Refer to android

  • Do I have to have a unlocked bootloader ? I came to know that if I unlock the bootloader i will lose my data

  • sw00sh Mar 16, 2015 Link to comment

    did all of the above, but it says im still running 5.0.1..
    any advice?

Show all comments

This website uses cookies to ensure you get the best experience on our website. More info

Got it!