Follow the my previous post how to unlock it here. Make sure that the LOCK STATE is unlocked, if it is locked you need to unlocked it first. Tap OK to allow it then re-run the command above to reboot into bootloader. When executing the above command, you may be prompted to allow USB Debugging. Open Terminal (in Mac OS, Linux) or Command Prompt (in Windows). We need to connect Nexus 5 to a computer / laptop using USB cable data to execute commands below. Connect the Nexus 5 to computer / laptop using USB cable data In Windows, you can follow my previous post in this post. In Debian / Ubuntu / LinuxMint / ElementaryOS: sudo apt-get install android-tools-adb android-tools-fastboot In Fedora / Centos : sudo yum install android-tools In Mac OS X you can install ADB / Fastboot tools by running command below: brew install android-platform-tools Turn on USB Debuggingunder Debugging section. To enable USB Debugging on Nexus 5, go to Settings > Developer Options. At the time of this writing, its version is TWRP 3.0.2-0 Enable USB Debugging Go to this page to download the recovery image for Nexus 5. Follow the steps below to install TWRP Recovery on Nexus 5 Download TWRP recovery image for Nexus 5
This post is written and tested using Nexus 5 (Hammerhead), but the methods should work on most of other Android devices. This post is talking about how to install TWRP Recovery Nexus 5. CyanogenMod now LineageOS, Resurrection Remix, Bliss OS, etc) in your Android devices you need to have a custom recovery software installed on it. If you want to install custom Android ROM (e.g. TWRP is a popular open-source custom recovery software available for many Android devices.