Chainfire has just made a come back with root for Marshmallow and updated beta of SuperSU (v2.50), which combined with modified boot images, can root your Nexus device while keeping SELinux in Enforcing mode.
We’ve discussed in length about the security concern of running SELinux in permissive mode in our post Root and Android 6.0 Marshmallow. It’s pretty serious from the security point-of-view.
Thanks to Chainfire though, you can now root your Nexus device on Marshmallow with SELinux in Enforcing mode. All you’ve to do is flash the modified boot.img file first, and then flash the SuperSU v2.52 via TWRP recovery.
Chainfire has provided modified boot.img for all Nexus devices which received the MRA58K Android 6.0 update.
Download modified boot.img
Note: The modified boot images may cause a factory reset, specifically on Nexus 6 and Nexus 9.
- Nexus 5 – hammerhead-mra58k-boot.zip
- Nexus 6 – shamu-mra58k-boot.zip
- Nexus 7 (2013) WiFi – razor-mra58k-boot.zip
- Nexus 7 (2013) WiFi – razorg-mra58k-boot.zip
- Nexus 9 WiFi – volantis-mra58k-boot.zip
- Nexus 9 LTE – volantisg-mra58k-boot.zip
- Nexus Player – fugu-mra58k-boot.zip
How to Root
- Setup ADB and Fastboot on your PC.
- Download and install TWRP recovery:
TWRP links: Nexus 5 | Nexus 6 | Nexus 9 | Nexus Player | Nexus 7 2013 (WiFi), (LTE)
└ How to Install TWRP recovery. - Download the modified boot image file for your device from the downloads section above and extract/unzip the file to get boot.img file.
- Boot your Nexus device into bootloader mode and flash the boot.img file using the following command:
fastboot flash boot boot.img
- Download and flash the latest SuperSU zip beta (v2.52).
That’s all. All credits for the modified boot files and SuperSU v2.52 goes to Chainfire. Check out his original post at xda over here.
Happy Androiding!
Discussion