Installing custom recovery on your device opens up great new possibilities, such as rooting your device, installing custom ROMs/scripts/kernels on your device. We have already written a guide on how to root Nexus 5 device running Android 5.0 Lollipop. So, after installing TWRP, this might be another thing that you should do.
Following this procedure may void your warranty. You yourself are responsible for your device. We can’t be held responsible for what happens to your device.
Things to remember
- 1Match Device Model
This is the first and foremost thing you should do before you begin to follow our guide. This guide is written for Nexus 5 D820/D821 variants only. Don’t follow this tutorial on any device other than mentioned here, otherwise your device might be hard bricked.
To check if your device is indeed the correct version, go to Settings > About device and ensure that it is the correct model.
- 2Backup your device
It is very important that you make a backup of your device’s internal memory, including your apps, app data, contacts, messages and other important stuff. This procedure might wipe your internal memory so make sure that you have a backup of all of your device’s data.
- 3Install device drivers
This procedure requires that your device communicates to/from PC. Thus, make sure that you have installed the correct device drivers on your PC. We have written a great guide to install Nexus 5 ADB Fastboot device drivers on your PC.
- 4Unlock Bootloader
In order to mess around with internal system of your device, you should have an unlocked bootloader. Without unlocking bootloader, we won’t be able to install the TWRP custom recovery on your device. Just follow our guide to unlock Nexus 5 Bootloader.
- 5Maintain proper battery level
This is very important too, if your device or PC dies in the middle of procedure, you device might get hard bricked. Thus, make sure that you have atleast 50% battery level on mobile and PC before you begin following this procedure.
Guide – Nexus 5 Install TWRP Recovery
- 1Download and extract the one-click-recovery-installer.zip separately in a folder.
- 2Download the openrecovery-twrp-22.214.171.124-hammerhead.img file and rename the file to recovery.img.
- 3Now the folder where you extracted the one-click-recovery-installer.zip should look something like this-
- 4Follow steps below to enable USB debugging on your device-
- 5Connect your Nexus 5 to PC via USB cable. A new popup should appear on your screen asking for permission to allow USB debugging. Tick the Always allow from this computer box and press OK.
- 6Double click the one-click-recovery-installer.bat and follow the simple onscreen instructions to install the TWRP recovery on your Nexus 5.
- 7Once the process is complete, your device will reboot automatically.
Congrats! You have successfully installed TWRP recovery on your Nexus 5.
If the one-click-recovery-installer.bat script gets stuck on < waiting for device > for more than two minutes then it means that there is a communication problem between your device and the computer. Re-read our tutorial to install the Nexus 5 ADB & Fastboot device drivers on your PC and follow this guide once again.