Prior today, Google revealed the much anticipated Android 6.0 Marshmallow OTA update to HTC One M8 Gpe version. The update is taking off to all M8 Gpe devices on the double, be that as it may, in the event that you haven’t got the update notification yet, you can get OTA zoom from here and physically install it by means of recovery.
With respect to the root, well, it’s quite outstanding that you need a modified boot to get root on a device running on Android 6.0 Marshmallow. Fortunately, engineer topjohnwu over at xda as of now has rooted for One M8 Gpe Marshmallow build MRA48K.
The root is like Chainfire’s root for Nexus devices running Android 6.0. You initially need to flash a modified boot and after that a SuperSU bundle, both by means of twrp recovery.
Get the modified boot to root Marshmallow on HTC One M8 Gpe from the download link underneath and just flash it through TWRP recovery without wipes of any kind.
When you’ve flashed the modified boot. Download and install SuperSU 2.52 from the link beneath and you’ll have root get to.