Android 5.1 Lollipop
Root Nexus 5 and Nexus 7 2012 (Wi-Fi) on Android 5.1 LMY47D Lollipop firmware YouMobile

Google recently rolled out the Android 5.1 Lollipop official factory images for Nexus 5, Nexus 6, Nexus 7 2012 (Wi-Fi) and Nexus 10 and industrious third-party Android developers have already released the latest SuperSU (v2.46) tool for rooting these devices on the latest update.

Interested users can root their Nexus 5, Nexus 6 or Nexus 7 2012 using SuperSU, after installing the ClockworkMod (CWM) recovery on their handsets running Android 5.1 build LMY47D.

IBTimes UK reminds readers that it will not be held liable for any damage to device during or after root installation on the Nexus device running Android 5.0 Lollipop.

Pre-requisites

1. Install USB Drivers for LG Nexus 5 or Motorola Nexus 6 or Nexus 7 2012 on the computer.

2. Enable USB Debugging Mode on the device by navigating to Settings >> Developer Options.

3. Backup all your important data before you proceed with installation process.

4. Ensure the device's bootloader and SIM are unlocked before you proceed.

5. Ensure the device's battery has at least 80% charge.

6. The SuperSU rooting tool is compatible only with the LG Nexus 5 and Nexus 7 2012 models. Do not attempt to install this firmware on incorrect variants as it may damage or brick the device. Verify the model number of the Nexus device by navigating to Settings >> About phone.

7. Enable USB debugging by navigating to Settings > Developer Options and choose USB debugging checkbox.

Note: You may want to enable developer options (if it is disabled) as follows: go to device's Settings > About Phone/Tablet and then scroll down to the bottom and tap on Build number seven times to enable developer options.

How to root Nexus 5, Nexus 6 and Nexus 7 2012 (Wi-Fi) on Android 5.1 LMY47D Lollipop firmware and install CWM recovery

Step 1 Download Android SDK from the Android Developers website and install it.

Step 2 – Download the appropriate Fastboot tool depending on your OS (use links below) and extract it to android-sdk-windowsplatform-tools directory. You need to create a new directory if it does not exist.

NOTE: Skip steps 1 and 2 if you already have them.

Step 3 - Download SuperSU v2.46 (UPDATE-SuperSU-v2.46.zip) for your Nexus device on the computer.

Step 4 - Connect and mount your Nexus device's USB mass storage on computer, using an USB cable.

Step 5 - Now copy/paste the UPDATE-SuperSU-v2.46.zip file to the root folder on the phone/tablet's SD card.

Step 6 - Power OFF your phone/tablet.

Step 7 - Download CWM 6.0.4.5 and save it to your android-sdk-windowsplatform-tools directory on your computer.

NOTE: You can use any of the two custom recoveries – CWM or TWRP. If one fails to work, try using the other.

Step 8 - Boot the device into Fastboot/Bootloader Mode by pressing Volume Down + Power keys for a few seconds until you see some text on the screen.

Step 9 - Navigate to android-sdk-windowsplatform-tools directory and launch Command Prompt as follows: Hold Shift + Right-click and then select Command Prompt from the context menu.

Step 10 - Type in the following command and press Enter:

For Nexus 5: fastboot flash recovery recovery-clockwork-touch-6.0.4.5-hammerhead.img

For Nexus 7 2012: fastboot flash recovery recovery-clockwork-touch-6.0.4.3-grouper.img

Step 11 - Once the command is executed, choose RECOVERY from the Fastboot menu and boot into Recovery Mode.

Step 12 - In ClockworkMod recovery, scroll down to highlight "flash zip from SD card" option and then tap Power button to select it.

Step 13 - Hit Power button again and select "choose zip from sdcard".

Step 14 - Use volume keys to navigate to UPDATE-SuperSU-v2.46.zip and select it by tapping Power button. Confirm the installation on the next screen and the installation procedure should begin.

Step 15 – Once the installation completes, go to "+++++Go Back" and reboot the phone by selecting "reboot system now" from the Recovery menu. The phone will reboot and it might take about five minutes for first boot to complete. So, please be patient and do not interrupt the process.

That's it. Your Nexus device is now rooted on Android 5.1 Lollipop firmware via SuperSU. Check if the SuperSU app appears in your apps list to verify that root is successful.

[Source: Team Android – Nexus 5 / Nexus 6 / Nexus 7 2012]