The new Android M (Android Marshmallow) Developer Preview 3 is now available. Many Android users have already installed Android M on their devices. But if you want to maximize the value of Android M, then you need to learn how to root it.
Today, I’m going to explain how to root the newest version of Android M.
Just like anytime you’re rooting or messing around with files on your phone, there are some inherent dangers to the process. Make sure you back up everything important. Please don’t blame me if you mess this up, because it was probably your fault anyway.
The tutorials listed below will only work on the Nexus 5 and Nexus 6, since those are the only two devices that have rootable kernels for Android M thus far.
What You Need
The first thing to know about rooting Android M is that SuperSU rooting doesn’t work on Android M out of the box.
Fortunately, a friendly developer named DespairFactor has created a set of Despair kernels that make rooting Android M relatively easy on the Nexus 5 and Nexus 6.
To start, you’ll need to download the three following files:
Place the SuperSU and Despair kernels somewhere on your Android device (just the raw zip folder). Then, follow the steps listed below.
Step by Step Guide
If you haven’t already installed TWRP, you should start by doing that:
Step 1) Navigate to your TWRP.img on your PC, then right-click that file and click Open in Command prompt (or Open command window here). Type the following into the command prompt:
fastboot flash recovery TWRP.img
Step 2) Next, boot your phone into recovery mode. Press the volume up, volume down, and power button simultaneously. Then, tap the volume down button twice to navigate to the recovery option, press power, and then you’ll reboot into TWRP.
Step 3) Flash the custom kernel by going to the main window and hitting Install .Then, navigate to wherever you put the Despair kernel on your device. Choose that file, then swipe to confirm the flash. Once you’ve successfully done that, return to the main window.
Step 4) Hit install again, and this time navigate to your Super SU folder. Once again, select that file, swipe to confirm your selection, then wait for it to finish. Now you reboot your device once more.
That wasn’t hard, was it? You’re done. You’ve successfully rooted Android M.
After rebooting into your home screen, you should see SuperSU installed and all your Android M features ready to use.
Photos courtesy of AndroidAuthority.com