Want to root your Nexus 5 that was just upgraded to Android 6.0 Marshmallow? Well, it didn’t take long for a high-quality root to hit the internet.
This tutorial comes courtesy of Kris Carlon over at AndroidPit.com. It’s specifically designed to work on a Nexus 5 with build number MRA58N but has also been verified to work on all of the most recent Nexus 5 builds (regardless of their monthly security patch number).
Step 1) Before You Begin
Before you root your Nexus 5, you’ll need to unlock the bootloader, enable USB debugging, and install ADB tools on your computer.
If you haven’t done this before, please note that unlocking the bootloader will wipe out all data on your device, so you’ll want to back it up first.
Unlocking the bootloader is pretty easy. I explain it below, so you can follow through these steps even if you haven’t already unlocked your bootloader. If you haven’t unlocked your bootloader before, then I recommend this tutorial here.
Step 2) Install a Custom Recovery
First, we’ll need to flash a custom recovery without root access. We’ll use this custom recovery to flash a rootable kernel.
-Download TWRP for the Nexus 5
-Rename the file you just downloaded to recovery.img and move it to the ADB Tools folder (the same folder where the ADB and Fastboot files can be found)
-Pick up your Nexus 5 and reboot to the bootloader, which you can do by turning it off and then pressing and holding the Power and Volume Down buttons (the physical buttons) until you see a menu with Start written in green text. You’ve just accessed Fastboot mode – which is the bootloader.
-Hook up your Nexus 5 to your PC using your standard USB cable
-Only proceed past this step if you’ve already unlocked the bootloader (like using the tutorial I linked above). If you’re too lazy to read through that tutorial, then here’s a quick version – to unlock your bootloader, go to the ADB Tools folder on your computer, then hold the Shift button and right-click the mouse, then click Open command window here. Type adb devices to make sure your computer can find your device. In that command window that popped up, type fastboot oem unlock. Congrats – you have an unlocked bootloader.
-Now we’re ready to flash a custom recovery (in this case, TWRP) via fastboot. In your command window, type fastboot flash recovery recovery.img
-Disconnect the USB cable from your computer once the recovery file has completed the writing process.
-Use the volume buttons on your Nexus 5 to toggle to Recovery, then select it by tapping the Power button
-You’ll see a TWRP screen pop up. On that screen, swipe your slider to the right. This makes TWRP your default recovery.
-In TWRP, tap Reboot > System (note: do not let TWRP try to root your phone at this point).
Step 3) How to Install the Rootable Kernel on your Nexus 5
Next, we need to download a rootable kernel and SuperSU onto your Nexus 5 and complete the rooting process:
-After downloading both files, reboot your Nexus 5 to get to the fastboot/bootloader menu once again (in case you forgot, you turn it off and press and hold Volume Down + Power at the same time)
-Use the volume buttons to highlight Recovery and tap Power to enter TWRP
-Tap Install, then find the kernel you downloaded. By default, this kernel will be in the Downloads folder.
-Tap the kernel file and slide the slider to flash it
-After the kernel has completed flashing, tap the home button
-Tap Install and navigate to the SuperSU file (once again, this will be in your Downloads folder by default)
-Tap the SuperSU file and slide the slider to flash it
-After the flashing process is complete, tap the Reboot System button
-Once your phone has finished rebooting, you will have successfully rooted your phone. At this point, the only thing left to do is install Root Checker from the Google Play Store. Make sure you grant that app’s superuser request when you launch it, then check to make sure you actually rooted properly.
Want to Avoid All This Hassle?
Rooting can be complicated, annoying, and time-consuming. A way better solution is to avoid this hassle and install software like One Click Root onto your PC.
After you’ve installed One Click Root, you can use it to repeatedly root and unroot your devices whenever you like.
All of the Android phones and tablets supported by One Click Root have been individually certified to work with the software.
Of course, even if your device isn’t certified to work with One Click Root, you can contact One Click Root’s team of rooting specialists who will use TeamViewer to remotely connect to your PC and then safely perform a root on your connected Android device.
Whether you’re trying to root a Nexus 5 running Android 6.0 Marshmallow or a more obscure device, rooting Android is a great way to get the most out of it.