FORUMS
Remove All Ads from XDA

[GUIDE] [NOOB Friendly] Root and Install TWRP on HTC One M9

12 posts
Thanks Meter: 116
 
By KingInTheNorth, Junior Member on 22nd March 2015, 03:17 AM
Post Reply Email Thread
This is a guide on how to root the HTC One M9.

Your M9 must have an unlocked bootloader. There is currently not a way to unlock the bootloader, so unless your phone comes with an unlocked bootloader, you will need to wait until HTC updates www.htcdev.com to unlock the M9 bootloader.

Video Guide: Video
Link to the correct TWRP to use thread by Captain_Throwback READ DISCLAIMERS!: http://forum.xda-developers.com/one-...overy-t3066720
Link to TWRP page in general: http://twrp.me/devices/htconem9.html
Link to correct SuperSU to flash: http://forum.xda-developers.com/apps...v2-05-t2868133

Unlocking the bootloader. (Thanks -markus-)
- Login into HTCdev
- Unlock Bootloader
- Get Started
- On "Select Your Device" Select "All Other Supported Models"
- Begin Unlock Bootloader
- Legal Terms "Proceed to Unlock Instructions
- On Phone pressing Volume Down + press Power to boot in "HTC download mode" (black Background)
- Connect Phone via USB
- CMD: fastboot oem get_identifier_token
- Copy and paste the token in Textfield "My Device Identifier Token:"
- You will receive an Email with "Unlock_code.bin
- CMD: fastboot flash unlocktoken Unlock_code.bin
- Press Volume Button to secelt Yes for Unlock bootloader




If your bootloader is unlocked, follow these steps.
  • Download and install ADB/Fastboot using 15 second ADB/Fastboot installer.
  • Plug in the One M9, enable USB debugging.
  • Open up command prompt, type
    Code:
    adb devices
  • Code:
    adb reboot download
  • Code:
     fastboot flash recovery C:\Users\XDADev\Downloads\TWRP.img
    Replace C:\Users\XDADev\Downloads\TWRP.img with the path where the twrp.img is located for you.
  • Power off your device. Now, to boot into recovery mode.
    Press and hold Volume Down button, then press the Power button to switch on your phone and release it, but keep holding the Volume Down button.
    Select boot to recovery on the screen that appears(bootloader)
  • Download SuperSU.zip
  • Make sure you have an SD Card in your phone, then do
    Code:
    adb push C:\Users\XDADev\Downloads\UPDATE-SuperSU-v2.46.zip /sdcard
    Once again, replace C:\Users\XDADev\Downloads\UPDATE-SuperSU-v2.46.zip with your path.
  • On your device, click Install, then at the top of the screen it should say Internal Storage or SDCard. If it does not say SD Card, click it and change it to SD Card.
  • Now find SuperSU.zip, click on it, and swipe to flash it.
  • Once SuperSU is done flashing reboot the phone, and open up SuperSU. You are now rooted!

If this helped you, feel free to click Thanks below.
The Following 108 Users Say Thank You to KingInTheNorth For This Useful Post: [ View ] Gift KingInTheNorth Ad-Free
 
 
22nd March 2015, 03:44 PM |#2  
qbking77's Avatar
Senior Member
Flag Chicago
Thanks Meter: 5,406
 
Donate to Me
More
Awesome! Thanks, I'll get a quick tutorial video up once I get my hands on an M9
The Following 2 Users Say Thank You to qbking77 For This Useful Post: [ View ] Gift qbking77 Ad-Free
22nd March 2015, 04:19 PM |#3  
Captain_Throwback's Avatar
Retired Moderator / Recognized Developer / Recognized Contributor
Flag Bensalem, PA
Thanks Meter: 22,070
 
10
Donate to Me
More
FYI I'm pretty sure you can't root with the version of TWRP that's currently uploaded. It doesn't have writing to the system partition enabled. If you look in the recovery fstab, system is mounted as emmc.

You'll have to wait until an alternate version is uploaded for this to work. Someone will need to confirm whether rooting will completely break the ability to take an OTA too.

EDIT: There's also this disclaimer on the device page: "NOTE: Installing TWRP can break your ability to receive updates from HTC."

EDIT 2: The other question is whether unlocking the device will allow system to be written to at all in the OS, or only while in recovery. I think once some people have the device in their hands, some of these questions can finally be answered.
The Following 7 Users Say Thank You to Captain_Throwback For This Useful Post: [ View ]
24th March 2015, 08:28 PM |#4  
hgoldner's Avatar
Senior Member
Flag Southeastern Pennsylvania
Thanks Meter: 915
 
More
Quote:
Originally Posted by Captain_Throwback

FYI I'm pretty sure you can't root with the version of TWRP that's currently uploaded. It doesn't have writing to the system partition enabled. If you look in the recovery fstab, system is mounted as emmc.

You'll have to wait until an alternate version is uploaded for this to work. Someone will need to confirm whether rooting will completely break the ability to take an OTA too.

EDIT: There's also this disclaimer on the device page: "NOTE: Installing TWRP can break your ability to receive updates from HTC."

EDIT 2: The other question is whether unlocking the device will allow system to be written to at all in the OS, or only while in recovery. I think once some people have the device in their hands, some of these questions can finally be answered.

Test devices are S-OFF.....but bootloader locked. Go figure.
25th March 2015, 07:36 AM |#5  
Member
Flag Burbank,CA
Thanks Meter: 5
 
More
I have a t mobile M9 rooted
Hello I was able to unlock the bootloader from dev site and was able to install TWRP. I was able to install super SU and now i'm rooted!

here is my reddit post. http://www.reddit.com/r/htcone/comme...mobile_htc_m9/
The Following 2 Users Say Thank You to SkullNBones19 For This Useful Post: [ View ] Gift SkullNBones19 Ad-Free
25th March 2015, 09:01 AM |#6  
Junior Member
Flag Menden
Thanks Meter: 19
 
More
Worked for me
But to flash successfull recovery you have to boot to "htc download mode", the black background!
If you see white background you are on bootloader, here you are not able to flash TWRP Recovery, you will get the message "FAILED (remote: cannot flash this partition in s-on state)"
So boot to "download mode" an it work
The Following 14 Users Say Thank You to -markus- For This Useful Post: [ View ] Gift -markus- Ad-Free
25th March 2015, 11:02 PM |#7  
DroidShift79's Avatar
Senior Member
Flag Frankfurt am Main
Thanks Meter: 489
 
More
trying this tomorrow.
Is there any way to virginize the device if I don't want it to be rooted anymore ?
26th March 2015, 04:15 AM |#8  
hgoldner's Avatar
Senior Member
Flag Southeastern Pennsylvania
Thanks Meter: 915
 
More
Quote:
Originally Posted by DroidShift79

trying this tomorrow.
Is there any way to virginize the device if I don't want it to be rooted anymore ?

Pull the stock recovery image before you flash TWRP. I neglected to do so (but I do have my Verizon device rooted with TWRP.

One problem, TWRP can't read or write to encrypted sdcards, either internal or removable.

My name is Harold and I'm a flashaholic.....
The Following User Says Thank You to hgoldner For This Useful Post: [ View ] Gift hgoldner Ad-Free
26th March 2015, 09:12 AM |#9  
k1moe's Avatar
Senior Member
Thanks Meter: 54
 
More
Quote:
Originally Posted by -markus-

Worked for me
But to flash successfull recovery you have to boot to "htc download mode", the black background!
If you see white background you are on bootloader, here you are not able to flash TWRP Recovery, you will get the message "FAILED (remote: cannot flash this partition in s-on state)"
So boot to "download mode" an it work

Markus, what device do you have.. international, verizon?
The Following User Says Thank You to k1moe For This Useful Post: [ View ] Gift k1moe Ad-Free
26th March 2015, 02:53 PM |#10  
Junior Member
Flag Menden
Thanks Meter: 19
 
More
Quote:
Originally Posted by k1moe

Markus, what device do you have.. international, verizon?

I got it from O2 Germany CID is O2_102
The Following User Says Thank You to -markus- For This Useful Post: [ View ] Gift -markus- Ad-Free
26th March 2015, 06:11 PM |#11  
Slusho's Avatar
Senior Member
Thanks Meter: 11
 
More
Three questions:

1. Do I really have to buy an SD card to do this?
2. How do you boot to download mode?
3. Should the bootloader be unlocked before or after installing TWRP and rooting, or does it not matter?
Post Reply Subscribe to Thread

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