How to Root Android M Preview in 5mins

In this guide, you will learn How to Root Android M Preview in 5mins.Here, First we have to Flash tWRP recovery then just have to installed SuperSu to get root access on Android M Preview

Google has already released Android M developers preview for Google Nexus 5,6 and 9.If you have installed Android Marshmallow on your Nexus device and want to root it then you are in the right place.Here I share a very simple step by step guide on How to Root Android M Preview in 5mins.

Important: Make sure there is at least 80% battery left on your smartphone before begin rooting your device.This is only for Android M preview not newly released stable builds

Warning: will not be held responsible for any kind of damage occurred to your Nexus device while following this tutorial.Do it at your own risk.

Remember Before rooting:

  • Rooting your phone can void your warranty
  • After rooting, you can tweak your phone
  • You can unroot it if you want
  • You can overclock or underclock your CPU to make your phone faster
  • Make sure you have unlocked the bootloader

How to Root Android M Preview in 5mins


  • Backup your device completely in case anything goes wrong you can restore to previous ROM
  • Charge your device to sufficient battery level.More than 50% is recommended
  • Enable USB debugging
  • Install Android SDK for ADB and fast boot. Or download the Android tools package and move its content to the directory where you’re going to work.


Download TWRP image: Nexus 5 | Nexus 6

Download these files and transfer them to internal memory of your device

SuperSU root package: | Mirror

blu_spark custom kernel: Nexus 5 | Nexus 6

How To Install TWRP Recovery On Nexus Running Android M

  1. First Connect your N5 or N6 to the PC via USB cable.
  2. Open CMD (Command prompt) if in Windows, or Terminal in Ubuntu or Mac, and cd to the location where the TWRP image has been downloaded.
  3. Issue the following command to reboot the Nexus into fastboot mode
    adb reboot bootloader
  4. Now when the device has entered fastboot/bootloader mode, type the command to flash the TWRP image:
    fastboot flash recovery twrp-x.x.x.x-devicename.img
  5. When done, highlight Recovery using the volume keys and select it using the power button to reboot into TWRP recovery mode.

How to Root Android M Preview in 5mins
Root Android M Preview & Install TWRP

  1. Now TWRP is installed on your device, its time to install the blu_spark kernel and SuperSU root packages.
  2. Boot your device into recovery if you are not
  3. Tap on the Install button on the TWRP main screen.
  4. Browse and select the kernel zip package (e.g.
  5. Once the file is selected, swipe the button at the bottom to start the flashing process.
  6. Once the installation is completed,  return back to the TWRP main screen.
  7. Now, just flash the SuperSU root package ( (Same way you did the custom kernel)
  8. When the flashing is done, tap on Reboot system.

DONE!!!!You have successfully rooted your Nexus 5 or Nexus 6 running Android M.

To verify the root status install Root Checker.

Dibyashree Sharma
Dibyashree Sharma
Dibyashree Sharma graduated in Computer Science from NIT Rourkela. For the past eight years, she has been blogging about Android, which she is really passionate about. She has built a good reputation as a reliable source. Away from the digital sphere, Dibyashree enjoys playing tennis, a sport she is as passionate about as she is about technology.

Leave a Comment