Nexus 4 users have finally received the most eagerly awaited Android 5.0 Lollipop update with build LRX21T via official factory image, and discerning Android developers have already unleashed the rooting tool as well as SuperSU update for the same.
The catch here is this root method works with both OTA as well as factory image. You just have to ensure that ClockworkMod (CWM) Recovery is pre-installed on your phone to get started.
Interested users can go ahead and root their Nexus 4 via CWM recovery and then install SuperSU by using our simple step-by-step guide given below.
IBTimes UK reminds readers that it will not be held liable for any damage to device during or after root installation. Users are advised to proceed at their own risk.
1. Install USB Drivers for Nexus 4 on the computer.
2. Enable USB Debugging Mode on the phone by navigating to Settings >> Developer Options.
3. Back up all your important data before you proceed with installation process.
4. Ensure the phone's bootloader and SIM are unlocked before you proceed.
6. Download Fastboot from the following links (based on your OS) and extract its contents to android-sdk-windowsplatform-tools directory. Create a new directory if it does not exist.
7. Ensure the phone's battery has at least 80% charge and running Android 4.4 KitKat stock firmware before you proceed.
Other Downloads Required
Steps to Root Nexus 4 on Official Android 5.0 Lollipop Build LRX21T and Install SuperSU
Step 1: Download SuperSU v2.19 (UPDATE-SuperSU-v2.19.zip) for Nexus 4 on your computer.
Step 2: Connect and mount the Nexus 4 USB mass storage on computer via USB cable.
Step 3: Copy the downloaded SuperSU root package to the root folder on your phone's internal memory.
Step 4: Power off your phone.
Step 5: Download CWM 220.127.116.11 or TWRP 18.104.22.168 and save it to the android-sdk-windowsplatform-tools directory on your computer.
Note: You may use either of the two custom recoveries based on your preference and convenience. Try using the other, if one fails to work.
Step 6: Boot the Nexus 4 into Fastboot/Bootloader mode by pressing and holding Volume Down and Power keys for a few seconds until some text pops up on screen. This confirms entry into Bootloader mode.
Step 7 - Browse to android-sdk-windowsplatform-tools directory and launch Command Prompt (hold Shift + Right-click and select Open Command Prompt).
Step 8 – Type the following command and press Enter:
fastboot flash recovery recovery-clockwork-touch-22.214.171.124-mako.img
Step 9 – After executing the command, choose RECOVERY from the Fastboot menu and enter Recovery Mode.
Step 10 - In CWM recovery, navigate to install zip from SD card option and hit power button to select it.
Step 11 -Tap the Power button again and select choose zip from sdcard.
Step 12 - Now use volume keys to navigate to UPDATE-SuperSU-v2.19.zip file and select it by tapping Power button. Confirm the root installation on next screen and let the install procedure begin.
Step 13 - Once the installation is done, choose "+++++Go Back" and reboot the device by selecting "reboot system now" from the Recovery menu. The device will restart now and it may take about 5 minutes for first boot to complete. So, please wait.
Your Nexus 4 is now rooted on official Android 5.0 LRX21T Lollipop official firmware. Check for SuperSU app in your apps list to verify if root installation is successful.
[Source: Team Android]