We’ve examined long about the security worry of running SELinux in a lenient mode in our post to Root Android 6.0 Marshmallow. It’s quite genuine from the security perspective.
Chainfire has quite recently made a return with root for Marshmallow and updated beta of SuperSU (v2.50), which joined with modified boot pictures, can root your Nexus device while keeping SELinux in Enforcing mode.
On account of Chainfire however, you would now be able to 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 after that flash the SuperSU v2.52 by means of TWRP recovery.
Chainfire has given modified boot.img to all Nexus devices which got the MRA58K Android 6.0 update.
- hammerhead-mra58k-boot.zip – Nexus 5
- shamu-mra58k-boot.zip – Nexus 6
- razor-mra58k-boot.zip – Nexus 7 (2013) WiFi
- volantis-mra58k-boot.zip – Nexus 9 WiFi
- volantisg-mra58k-boot.zip – Nexus 9 LTE
- fugu-mra58k-boot.zip – Nexus Player
- razorg-mra58k-boot.zip – Nexus 7 (2013) WiFi
Step by step instructions to Root Android 6.0
- Setup ADB and Fastboot on your PC.
- Download and install TWRP recovery:
- Download the modified boot picture file for your device from the downloads area above and remove/unfasten the file to get the boot.img file.
- Boot your Nexus device into bootloader mode and flash the boot.img file using the accompanying order:
- fastboot flash boot boot.img
- Download and flash the most recent SuperSU zip beta (v2.52).
There’s nothing more to it. All credits for the modified boot files and SuperSU v2.52 goes to Chainfire. Look at his unique post at xda here.