Google recently sent out the OTA Android 5.1.1 update for Nexus 5 and Nexus 4. Although not all the regions have received the OTA, its always possible to install it via the factory images. Once Android 5.1.1 is installed, you can install custom recovery like CWM if you plan to root the device. Follow the guide below to install the CWM recovery on Nexus 4 and Nexus 5 running on Android 5.1.1.
Disclaimer: Follow the instructions at your own risk. The writer cannot be held responsible for any bricked or unusable devices. Even though the chances of your device getting bricked are negligible, the owner of the device must take full responsibility of it!
Pre-requisites and Backing up your Nexus:
- Make a Backup of the SMSs, Call logs and Contacts using the Super Backup App
- Make a Backup of the data
- Make sure developer options is unlocked
- Enable USB debugging on your device
- Make sure the device has at least 60% charging
- Backup WhatsApp messages on Android and Email
- Bootloader unlocked
- Drivers installed on the computer
- Android SDK installed on the computer
- ADB and Fastboot installed on the computer
- CWM recovery for Nexus 4 and Nexus 5
- Download the CWM recovery file and place it in the android-sdk-windowsplatform-tools directory on your computer.
- Now boot the device in the fastboot/bootloader mode.
- To do this, power-off the device and then press and hold Volume Down + Power keys for a few seconds until you see some text on the screen.
- Now navigate to the android-sdk-windowsplatform-tools on the computer and open command prompt in this folder.
- Type the following command and press enter.
Nexus 5 – fastboot flash recovery recovery – clockwork – touch -126.96.36.199 – hammerhead.img
Nexus 4 – fastboot flash recovery recovery – clockwork – touch -188.8.131.52 – mako.img
- Once the command is executed, choose RECOVERY from the Fastboot menu and boot into Recovery Mode. Done!