Root Nexus 5 after upgrade to Android 5.0

November 21, 2014

*** IMPORTANT: These procedure do not works on encrypted device. For encrypted device you need to factory reset the phone to factory state before rooting.
I upgraded my Nexus 5 through OTA on the way to office. And I lost root on the road…

I performed the procedures below and gain my root back during lunch. Quick and easy.

Reminder: Procedures works with my device does not necessary works on yours. Rooting do have risk bricking thing. Take your own risks, pls.


Both the files and procedures were downloading from some blog on Internet. I have absolute no guarantee what actually the software is doing by installing to any device.

You must take your own risk following the procedures and installing software below.


  • First thing first, always backup everything that is important to you.
  • Make sure your Nexus 5 is running 5.0 (LRX210).

    To verify, go to Settings > About phone > Build number

    Android 5.0 Build Number

  • Following the link to install Android SDK and Google USB Driver
  • Enable USB Debugging option on your phone: Settings > Developer options> USB Debugging.

    Android Developer Options

    Android USB Debugging

  • Unlock bootloader (unlock bootloader will erase everything on the phone and return the phone to factory status)

Begin rooting

  1. Download [download id=”2,3,4″]. Unzip
  2. Copy both .img files to the same directory as fastboot.exe provided by Android SDK.

    Copy custom image to fastboot directory

  3. Copy SuperSU zip file to the root directory of the of Nexus 5.

    Copy SuperSU to root directory of Nexus 5

  4. Power off Nexus 5

    Power off Nexus 5

  5. Press and hold volume down and press Power button until Nexus 5 is powered on and entered fast boot mode.

    Android fastbot mode

  6. Connect Nexus 5 to the PC with usb cable. Make sure the usb cable capable to transfer data. (Some usb cable only able to provide power to connected device…)
  7. Open a command prompt and cd to the directory of fastboot.exe
  8. If you did not unlock bootloader yet, input the command below to unlock bootloader

    fasboot oem unlock

    Android Unlock Bootloader

    IMPORTANT!! Unlocking bootloader will ERASE EVERYTHING and return the device to factory setting.

    If your device already have bootloader unlocked, SKIP THIS STEP.

  9. Make sure your phone in fast boot mode, with usb cable connected. Input the command below to flash custom recovery

    fastboot flash recovery recovery-clockwork-touch-

    Android Flash Clockworkmod Recovery

  10. Make sure your phone in fast boot mode, with usb cable connected. Input the command below to flash modified boot image

    fastboot flash boot boot.img

    Android Flash Modified Boot Image

  11. Press volume key until Recovery Mode shown. Press power button to confirm to the recovery mode.

    Enter Android Recovery Mode

  12. Use volumne key to navigate the menu and power button to confirm action.
  13. Navigate and choose Install zip
  14. Then navigate and choose choose zip from SD card
  15. Navigate and choose the SuperSU zip file
  16. Navigate and choose reboot to reboot the device
  17. Back to main menu of the custom recovery, it will ask you whether to fix root, choose yes to confirm.

Nexus 5 with Android 5.0 is now rooted.


I’m not sure if I am still able to receive further update from OTA because I’ve custom recovery on my phone. I prefer to rollback the stock recovery instead.

  1. Download Nexus 5 Android 5.0 Factory Image, choose 5.0 (LRX21P)
  2. Unzip the factory image until you find the recovery.img. Should be under this path nakasi-lrx21p-factory-93daa4d3\nakasi-lrx21p-factory-93daa4d3\nakasi-lrx21p\image-nakasi-lrx21p

    Android 5.0 Stock Image

  3. Copy the recovery.img to the directory of fastboot.exe

    Copy stock recovery image to fastboot

  4. Switch off the phone
    Power off Nexus 5
  5. Press and hold volume down and power button until fast boot mode is on

    Android fastbot mode

  6. Connect the phone with usb cable
  7. Input the command below to flash stock recovery

    fastboot flash recovery recovery.img

    Command to flash stock recovery

  8. Reboot the phone

Other procedures

Openvpn settings Android App no longer working on Android 5.0 (at the moment this article writting). I installed the official Openvpn Connect instead, it works just fine.

Update 2014-12-24

I can receive Android 5.0.1 OTA. But it failed to installed. Probably because the procedures above installed a custom boot image.

Please follow this blog post for procedures to fix 5.0.1 OTA upgrade issue.

Upgrade Android 5.0 to 5.0.1 through OTA on rooted Nexus 5


How to root Nexus 5 on Android 5.0 Lollipop [updated]

Leave a Reply

Your email address will not be published. Required fields are marked *