Originally Posted by cimnine
As I struggled a bit, here's how to root the HTC One M8 Dual SIM.
As always, if you **** your phone up, it's not my fault. Don't blame me. Further, I will not answer any questions about this. Please help yourself.
Note: Reboot your device to the bootloader (POWER+VOLUME_UP until the screen blacks out, then POWER+VOLUME_DOWN). If it reads there something different than "m8_dugl", then this guide is not for you!
- Download the custom recovery "TWRP" from here: http://teamw.in/project/twrp2/225 (See hint below)
- Download "UPDATE-SuperSU-v2.14.zip" from here: http://download.chainfire.eu/supersu
- Copy "UPDATE-SuperSU-v2.14.zip" to you phone's internal SD
- Open a command prompt and navigate to your fastboot executable.
- Put your phone into fastboot mode: POWER+VOLUME_UP until the screen blacks out, then press POWER+VOLUME_DOWN. You see some options soon. Use the volume buttons to navigate, the power button to perform the selected action. Select FASTBOOT and press the POWER button.
- Connect you phone to the PC
- Type "./fastboot boot path/to/where/you/saved/m8-dual-twrp.img"
- --> Until now no harm has been done to you device but DEV UNLOCK. So this would also be a good time to do a BACKUP! #JustSaying
- Touch "Install"
- Select the "UPDATE-SuperSU-v2.14.zip" file
- Swipe to start
- Touch Reboot System.
- You're phone should be rooted.
** Hint **
If the official TWRP does not work for you, you can try this one here: http://forum.xda-developers.com/htc-...1/post54258731
This method should allow you to receive and install OTAs. But I won't vouch for that as I have not received an OTA yet.
provided some resources that might be useful to you. See his post: http://forum.xda-developers.com/show...5&postcount=12
[2014-10-20] a) I have been hinted that the official TWRP should work for the m8_dugl as well. b) The current version of SuperSU is v2.14 and works well. c) @donmarkoni
provided some more resources worth mentioning.
Just wanted to mention that you cannot install any OTA having a custom recovery on. So, if you have stock recovery and want to just get root, you can use this command instead
fastboot boot recovery.img
. This should get you in recovery without flashing it, so just do your thing, restart the phone and you're set.
Also, note that by unlocking your bootloader, you loose pre-loaded programs that need to be installed before performing an OTA update; that includes calculator, and so on. So, you need to install the pre-loaded apps before performing the update + you need relock the bootloader!