[Nexus 6  General] TCPDump:
Hey everyone!

Since the release of the Android M Preview I have been trying to figure out a way to root my device. In almost every case I found myself in a boot loop or validation error after modifying the system partition. After a day or so I finally found the following combination to root Android M on the Nexus 6. I wanted to put this in an easy to find format for anyone wanting root.

Update: Here are a few things I want to point out based on trending replies thus far:

Please not that this boot image sets SE Linux to Permissive rather than enforcing. If you care about this sort of thing, don't flash it.

Before you say "this doesn't work on my favorite CrapROM, CM, OmniROM, etc. please remember it wasn't designed to. This was designed and tested exclusively with the M Dev Preview.

I am not responsible for any damage to your devices, etc. If you get a boot loop you can get back to booting by simply flashing the stock "M" system image via fastboot.

Dev Preview 1:

Download the Elite Kernel from here: http://projectelite.net/buck/shamu/M/Elite_Shamu_M-05_31_2015.zip

Download and the SuperSU flashable zip package. In this case you'll want the 2.49 package. - http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

Put both flashable zips on your /sdcard/.

Download fix_rw_boot.img from here: http://downloads.codefi.re/networkingpro/fix_rw_boot.img

Reboot to bootloader mode.

Flash fix_rw_boot.img to the boot partition using fastboot. (fastboot flash boot fix_rw_boot.img)

Reboot phone normally and allow the phone to attempt to boot (you will see the boot animation but it will never boot completely).

Wait for two minutes then reboot into TWRP recovery. You can use physical buttons or adb reboot recovery.

Once rebooted into TWRP flash the Elite Kernel then the SuperSU package.

Reboot - Note that the validation check is gone at this point.

Profit

Update: See second post for a flashable Busybox .zip for the Android M Preview.

*** If you have already installed a different Kernel you can still keep it. To unlock system R/W simply download and flash the included fix_rw_boot.img, reboot, wait 2 minutes, reboot to TWRP and flash original boot image again via recovery.

Dev Preview 2:

It has been brought to my attention that the second Dev Preview does not work like the first. I personally have not had time to test or use it, but [MENTION=4730746]abogrhen[/MENTION] sent me the following directions, and requested I update the OP. All links are included and all credit to abogrhen. Here goes:

1. Download no encrypt img

2. Install the M Preview 2 normally, but replace the boot img with no encrypt img (you can use NRT )

3. After the phone boots normally do a factory reset (if the storage space is lower than normal) if not skip this step.

4. After booting normally enable USB debugging then flash the latest TWRP.

4. Boot into TWRP and flash the latest Elemental X (others may work ), SuperSU , and Busybox (in that exact order).

5. You now have a rooted M2 with no encryption.

http://projectelite.net/buck/shamu/insecure_noencrypt_boot.img

https://www.androidfilehost.com/?fid=24052804347786093

https://download.chainfire.eu/740/SuperSU/BETA-SuperSU-v2.49.zip

http://downloads.codefi.re/networkingpro/BusyBox-Android_M.zip

Credits:

[MENTION=4730746]abogrhen[/MENTION] - Tutorial for Dev Preview 2

Kernel - Elite Kernels - buckmarble

SuperSU - Chainfire

Root Verification - Root Checker Pro - Joey Krim - https://play.google.com/store/apps/details?id=com.joeykrim.rootcheckp&hl=en

Enjoy everyone!

NetworkingPro

Try to learn something about everything and everything about something.

NetworkingPro | TEAM CODEFIRE