FORUMS
Remove All Ads from XDA

ROOT Nexus 6 - Android M Dev Preview

382 posts
Thanks Meter: 270
 
By TCPDump, Senior Member on 31st May 2015, 07:06 AM
Post Reply Email Thread
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:
  1. Download the Elite Kernel from here: http://projectelite.net/buck/shamu/M...05_31_2015.zip
  2. Download and the SuperSU flashable zip package. In this case you'll want the 2.49 package. - http://forum.xda-developers.com/apps...v2-05-t2868133
  3. Put both flashable zips on your /sdcard/.
  4. Download fix_rw_boot.img from here: http://downloads.codefi.re/networkin...ix_rw_boot.img
  5. Reboot to bootloader mode.
  6. Flash fix_rw_boot.img to the boot partition using fastboot. (fastboot flash boot fix_rw_boot.img)
  7. Reboot phone normally and allow the phone to attempt to boot (you will see the boot animation but it will never boot completely).
  8. Wait for two minutes then reboot into TWRP recovery. You can use physical buttons or adb reboot recovery.
  9. Once rebooted into TWRP flash the Elite Kernel then the SuperSU package.
  10. Reboot - Note that the validation check is gone at this point.
  11. 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 @abogrhen 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/i...crypt_boot.img
https://www.androidfilehost.com/?fid=24052804347786093
https://download.chainfire.eu/740/Su...erSU-v2.49.zip
http://downloads.codefi.re/networkin...-Android_M.zip


Credits:
@abogrhen - Tutorial for Dev Preview 2
Kernel - Elite Kernels - buckmarble
SuperSU - Chainfire
Root Verification - Root Checker Pro - Joey Krim - https://play.google.com/store/apps/d...otcheckp&hl=en

Enjoy everyone!
NetworkingPro


Try to learn something about everything and everything about something.
NetworkingPro | TEAM CODEFIRE
Attached Thumbnails
Click image for larger version

Name:	root_n6.PNG
Views:	12530
Size:	179.8 KB
ID:	3340581   Click image for larger version

Name:	busybox_m.PNG
Views:	12308
Size:	122.2 KB
ID:	3340852  
The Following 39 Users Say Thank You to TCPDump For This Useful Post: [ View ] Gift TCPDump Ad-Free
 
 
31st May 2015, 10:25 AM |#2  
TCPDump's Avatar
OP Senior Member
Flag Central US
Thanks Meter: 270
 
More
Busy Box and Ad Away
Update: Install Ad Away v 3.0 and Busy Box on Android M.

Busy Box - http://downloads.codefi.re/networkin...-Android_M.zip - This is a flashable zip I made to install Busybox on Android M. Flash in TWRP. This zip also creates all Simlinks.
Ad Away v 3.0 - Verified to work on Android M - http://downloads.codefi.re/networkin...dAway_v3.0.apk

Note: This version of Busy Box is NOT the same as most Busy Box installers on the play store. Never versions of Android, including Android M, require that Busybox be compiled using (PIE) Position Independent Executable support. This version has been compiled specifically for that on the ARM architecture.

Enjoy, and let me know if you have any issues!
The Following 15 Users Say Thank You to TCPDump For This Useful Post: [ View ] Gift TCPDump Ad-Free
31st May 2015, 10:32 AM |#3  
Quote:
Originally Posted by NetworkingPro

Update: Install Ad Away v 3.0 and Busy Box on Android M.

Busy Box - http://downloads.codefi.re/networkin...-Android_M.zip - This is a flashable zip I made to install Busybox on Android M. Flash in TWRP. This zip also creates all Simlinks.
Ad Away v 3.0 - Verified to work on Android M - http://downloads.codefi.re/networkin...dAway_v3.0.apk

Note: This version of Busy Box is NOT the same as most Busy Box installers on the play store. Never versions of Android, including Android M, require that Busybox be compiled using (PIE) Position Independent Executable support. This version has been compiled specifically for that on the ARM architecture.

Enjoy, and let me know if you have any issues!

thanks for posting this,
btw, your bb and aa links are 403.
The Following 2 Users Say Thank You to bweN diorD For This Useful Post: [ View ] Gift bweN diorD Ad-Free
31st May 2015, 10:35 AM |#4  
TCPDump's Avatar
OP Senior Member
Flag Central US
Thanks Meter: 270
 
More
Quote:
Originally Posted by bweN diorD

thanks for posting this,
btw, your bb and aa links are 403.

Thanks for the info! Mind giving it a try now? Had to CHMOD magic.
The Following User Says Thank You to TCPDump For This Useful Post: [ View ] Gift TCPDump Ad-Free
31st May 2015, 10:39 AM |#5  
Quote:
Originally Posted by NetworkingPro

Thanks for the info! Mind giving it a try now? Had to CHMOD magic.

yep, good now
thanks
31st May 2015, 10:52 AM |#6  
Senior Member
Flag Jersey City
Thanks Meter: 259
 
Donate to Me
More
This doesn't seem to work with MultiROM.
31st May 2015, 11:21 AM |#7  
gerard_f's Avatar
Senior Member
Flag Catalunya ||*||
Thanks Meter: 1,328
 
Donate to Me
More
But this kernel change the selinux to permissive or disabled, right?
I don't like this, I will wait root for enforcing selinux.
31st May 2015, 11:44 AM |#8  
Senior Member
London
Thanks Meter: 166
 
More
Does anyone know how to fix device failed verification message at the start of boot process ?
31st May 2015, 12:09 PM |#9  
Junior Member
Thanks Meter: 0
 
More
At first, I reflashed android M again after getting that nasty error. Though, your phone will still boot. However, I got rid of it when I went back to 5.1.1.

Sent from my Nexus 6 using XDA Free mobile app
31st May 2015, 12:11 PM |#10  
Senior Member
London
Thanks Meter: 166
 
More
Quote:
Originally Posted by arregull

At first, I reflashed android M again after getting that nasty error. Though, your phone will still boot. However, I got rid of it when I went back to 5.1.1.

Sent from my Nexus 6 using XDA Free mobile app

Tried reflashing M, but its still there.

So you are not on M in the end? I want to keep M for now.
31st May 2015, 12:16 PM |#11  
gerard_f's Avatar
Senior Member
Flag Catalunya ||*||
Thanks Meter: 1,328
 
Donate to Me
More
Quote:
Originally Posted by jodvova

Does anyone know how to fix device failed verification message at the start of boot process ?

Install stock recovery, do a full wipe with it, and don't install TWRP for the moment or the message appears again.
The Following User Says Thank You to gerard_f For This Useful Post: [ View ] Gift gerard_f Ad-Free
Post Reply Subscribe to Thread

Tags
android m, root, supersu, twrp

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes