yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Slusho:
Out of curiosity, what would happen if you tried to install SuperSU from the internal storage instead of a microSD?
[One (M9) General] niekie73:
I did copied to my internal storage and it worked :p dont know why the op thought you need a microSD :confused:

pushed didn't worked for me so i just copied to internal storage, im coming from de M7 so i forgot i had a microSD installed
[One (M9) General] :
Link to TWRP: http://twrp.me/devices/htconem9.html
[One (M9) General] ledvedder:
I'm getting this when trying to use ADB/Fastboot tool to install TWRP.

C:\adb>adb devices

adb server is out of date. killing...

* daemon started successfully *

List of devices attached
[One (M9) General] :
Is USB debugging enabled/Try a different cord. Please make sure USB debugging is enabled though.
[One (M9) General] ledvedder:
I got it working by killing the adb process in task manager.
[One (M9) General] Slusho:
Thanks.

Also, what do I have to do (if anything) before making modifications to be able to revert all changes later, for example if want to update using an OTA?
[One (M9) General] rjearl:
Just got my M9 yesterday from AT&T. Worked like a charm!

I used all the links from the OP.

twrp-2.8.5.0-hima.img

UPDATE-SuperSU-v2.46.zip

Only issues I had were getting TWRP installed - I was on the bootloader and not "download mode" , and I attempted this before my phone was charged enough so fastboot yelled at me and failed because I wasn't 30% charged.
[One (M9) General] isaythings:
Just got the AT&T variant as well.

Which guide did you use to unlock your bootloader before flashing TWRP and SU?
[One (M9) General] rjearl:
I followed these steps below taken from the main post.
[One (M9) General] timsah:
I exactly have the same issue + when I try to make a Backup, i get the following.

[Edit]

Thanks to Captain_Throwback and SneakyGhost problems solved. Great!
[One (M9) General] Flippy498:
No, it doesn't*. Check the ReadMe thread for the nougat-compatible instructions.

* The M9 is a bit picky. You need to use certain SuperSU versions for each of the different M9 firmware versions or you'll end up in a bootloop.
[One (M9) General] bsskkd:
I have HTC M9 with 2.7.531.6 EXE Developer ROM Installed. I wish to update it with 4.23.617.1 latest ROM. Currently am in Android 5.1 and if i update what would be my Android version. I want to root my phone. So what is the exact TWRP & Supersu required in 4.23.617.1 latest ROM. My device is S-OFF and how to check my bootloader is locked or not. And i want to know in which order i should flash, flash 4.23.617.1 ROM & then TWRP recovery or Recovery first & finally ROM. Thanks in advance
[One (M9) General] revelvislee:
Stuck in a bootloop

And since TWRP is my recovery image now, I'm... boned?
[One (M9) General] drgutman:
Hey guys, I managed to do everything and flash TWRP but it freezes when selecting to boot recovery in the Bootloader mode (white screen). Immediately after I press Boot to recovery mode I get a blue message underneath the menu that says "This build is for development purposes only .etc" and it justs freezes there.

I've been reading this thread up and down but I can't figure out what I'm doing wrong, maybe I'm too tired.

[edit] got some sleep, woke up, re-read parts of the thread, now my guess is that it's because I have HTC One M9+ and TWRP is not compatible

I'm going to search for compatible TWRPs and post updates here

[edit2]

found twrp_e9pw_2.8.6.0_en.img but I get the same error, the only difference is that now, if I let it stay there it reboots by itself.

and of course it doesn't work, it's e9pw :eek:

[edit3]

FIXED (for now)

it filnally worked with:

recovery-twrp-2.8.7.0-htc_m9pw-english.img

i found it on MediaFire, I only hope it doesn't install something werid along with it.

I still get the blue message but it quickly boots in recovery mode.

[edit4]

and the last update, the

adb push SuperSU.zip /sdcard

didn't work I got an error

failed to copy 'SuperSU-v2.82.zip' to '/sdcard': Is a directory

I had to normal boot and copy it from computer to the phone's /download and open it from twrp

I hope this will help someone else, if not you can delete this comment

thanks :highfive:

[/edit]
[One (M9) General] Jorge_Amaya:
ey there...i mtrying ti return to Modding and flashing.

have my GF phone (M9 ofc)

and it's AT/T bloated with usless stuff.

i wan to install stock or anything else blatless.

But I cant find the Fastboot option.

Phone is Locked, S-off, and of course no Root.

im trying to do the command "fastboot oem get_identifier_token" on the Download Mode since it is stated that it should work on it but nothing happens.

any ideas :(
[One (M9) General] slacktheplanet:
Go to HTC Dev website and follow instructions to unlock your bootloader.
[One (M9) General] CrispyK:
Did everything right, after flashing the super su i just got stuck on htc logo. Thnx for the nice tutorial though.

Got it to boot after flashing another supersu version, but i don't get the supersu icon once the phone has booted up and it's not rooted.

Edit:

So i tried to get another version suggested in other posts (version 2.65). Didn't work. So tried another one, and now i have the supersu icon, and root checker tells me that i am rooted :)

Htc one m9 gold, with android 7.0.

twrp: version twrp-3.2.2-0-hima

supersu: SR5-SuperSU-v2.82-SR5-20171001224502 (google it)
[One (M9) General] sausje85:
Yep worked here too, so the "must have MicroSD" is not true. (and this was quite frustrating, as i don't have a card here or somewhere near and i was in the middle of the process already)
[One (M9) General] clsA:
This is the Beta of TWRP EVERYONE should be using now on the M9 >>> https://basketbuild.com/devs/Captain_Throwback/One (M9)/Recovery

And HERE's Why
[One (M9) General] rjearl:
So if we followed the OP instructions, installed TWRP 2.8.5.0 and got Superuser installed ( my software status is now showing modified) is there a way to go back so we can receive the OTAs, Or am I screwed for now.
[One (M9) General] PhyscoAssassinx:
Glad i bought the developers version the process is so much easier then getting the damn token lol:cool:
[One (M9) General] Rydah:
Wait til someone creates a stock backup of the system partition for your variant and restore it. By then this stuff should be sorted.

Sent From My HTC One (M9)
[One (M9) General] rjearl:
Thanks I figured it would be a waiting game.
[One (M9) General] m03sizlak:
<nothing to see here>
[One (M9) General] lucky_strike33:
Someone stated earlier in the thread is that you are suppose to be in the download mode to flash twrp
[One (M9) General] sentry07:
Followed OP's instruction and everything went smoothly (AT&T variant), no error msg when installing supersu but upon reboot and installation of supersu from play store it says that device is not rooted.

Any ideas?
[One (M9) General] Captain_Throwback:
Read the TWRP thread.
[One (M9) General] sentry07:
Thanks CT, I did, and I flashed with the latest 286 beta version but to no avail.
[One (M9) General] Captain_Throwback:
Yeah, OTA won't work unless you have a fully stock system. I think that's going to be the case now.

Read more here: https://source.android.com/devices/tech/ota/block.html

Excerpt:
[One (M9) General] bpdamas:
Does anyone have the stock recovery for Sprint? I stupidly did not pull it because I was so excited to root.
[One (M9) General] Captain_Throwback:
You shouldn't need it. New OTAs always come with stock recovery. Once that happens, you can flash it then if you want to take the OTA. Also, Sprint typically uploads full RUUs for their devices anyway.

Do you have a stock system backup from Sprint?
[One (M9) General] bpdamas:
Sounds good. However, I had some issues on my M7 and lollipop where it required the old recovery to install the OTA. It could have been a fluke or something left over from modifying my system files back to original, but it wouldn't install unless I had the stock recovery. Oh well. I will wait for the RUU. No big deal right now.
[One (M9) General] Captain_Throwback:
Yes, you will need a specific stock recovery - either the one from the current software or the one from the current OTA. The OTA zip verifies the build fingerprint when it runs, so it has to match one of those, otherwise it will fail.

With an RUU of course, it won't matter ;).
[One (M9) General] bpdamas:
So, I can't get root. I have tried many variants of 2.8.5.0 and different SuperSu apps and nothing seems to stick. Anything I can do to help (logs, etc.)? Did I just miss where it is figured out?
[One (M9) General] bpdamas:
I got it to work now. Not sure what I did. What finally worked was 2.8.6.0 and supersu 2.46 mounted on internal storage.
[One (M9) General] flex360:
do you think you can help me out with an updater script?

any help would be awesome

thanks
[One (M9) General] Captain_Throwback:
I posted what I have that worked on a test ROM already. Is that what you're using?
[One (M9) General] flex360:
yeah this is exactly what i want

it has all the symlinks for tmobile m9 as well?
[One (M9) General] Captain_Throwback:
I don't have a T-Mobile M9. It has the symlinks for the ROM I had. If there are any others, you'll have to find them yourself, or use a tool like ArchiKitchen to identify them from a stock system image.
[One (M9) General] B.K.Q:
Thank you very much guys , It worked ..

BTW

I flashed the twrp 2.8.6.0 version and didn't work ( I can't get root after installing SuperSu )

Then I flashed the 2.8.5.0 ver and moved supersu manually to internal storage , now it works fine :good:
[One (M9) General] Captain_Throwback:
Did you read the TWRP thread?

[MENTION=6525498]KingInTheNorth[/MENTION]

Can you please link people to the TWRP thread rather than the TWRP pages? There's important information there people need to read before rooting. Thanks!
[One (M9) General] B.K.Q:
Actually no , I just read the first post and do what is written there .

Should I be worried about something ?
[One (M9) General] Captain_Throwback:
It's too late now, but yes. I'd still read it ASAP.
[One (M9) General] Captain_Throwback:
http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720/post59853702
[One (M9) General] mahdibassam:
So judging by the OP, there is no way to unlock the M9 bootloader and get TWRP/ROot at this stage ?
[One (M9) General] aaronc_98:
help- failed error

delete- found answer
[One (M9) General] lukemo:
Sorry but I installed TWRP 2.8.6.0 after unlocking but now I'm not able to flash anything (neither Ruu) cause I got the error:

target reported max download size of 800000000 bytes

Invalid sparse file format at header magi

what can I do now?

Thanks a lot

EDIT: solved exiting windows and rebooting.
[One (M9) General] bkong:
So I tried rooting on the latest 617.30 using 2.8.60 but it didn't work. Twrp installed successfully but software status was always official, and SuperSu did not flash correctly/did not show up in the app drawer. I followed this http://xdaforums.com/one-m9/general/videos-ultimate-guides-s-off-root-t3072131 video to a T but I guess it does not work on the new update? I also tried installing SUpersu from the playstore but it said I was not rooted.

Anyway, I flashed back to the stock recovery and will hold off on rooting until the versions gets sorted out. Can someone definitely tell me if OTA updates are possible with root? I'm getting mixed answers. I mean I was able to flash the stock recovery which means I should be able to get OTA updates back?
[One (M9) General] mick_soul:
You should read here carefully. Captain_Throwback explained everything very clear.

http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720
[One (M9) General] mghtymse007:
HTC ONE M9 Dev model

i also have dev version M9 too.

which version of TWRP did you use? if you used 2.8.6.x, which of the three varients worked.

also, which version and install method did you use for installing supersu?

thanks
[One (M9) General] Captain_Throwback:
There is only one "variant" of TWRP. Just read the TWRP thread - the answers are all there.
[One (M9) General] mghtymse007:
I have read thru all the posts and see both successful installs and failures. I am pretty sure what to do, I'm just double checking before I begin...something I always do with new device releases.

I do understand to install 2.8.6.x and why. So maybe I used the wrong term, but there are 3 "builds" on your DL site: .0, .2, & .3.

Since the majority of posts are carrier models, I wanted to see what this user did and which build of TWRP/SuperSU he used with this particular model to successfully get rooted.
[One (M9) General] aos10:
i just got my HTC m9 gold edition

how to unlock the bootloader ?

---------- Post added at 09:06 PM ---------- Previous post was at 08:50 PM ----------

i went to this page

http://www.htcdev.com/bootloader/

but i didn't see the HTC one m9 with those devices

what should i do ?
[One (M9) General] Captain_Throwback:
Choose "All Other Supported Models" at the bottom of the list.
[One (M9) General] aos10:
thanks

before i start

can i undo the bootloader ?
[One (M9) General] warrip:
Mine just says "Waiting for Device" and yes I am in download mode, please help. Thank you very much, and I have never unlocked any bootloaders or used adb anyhow, so explain like I am 5
[One (M9) General] PhyscoAssassinx:
well i flashed 2.8.5.0, with SuperSU 2.46 via recovery mode (flashable zip method)
[One (M9) General] xploitnt:
Thank you :D I was trying to flash in the old school HTC bootloader looking screen and failing as I'm thinking "mother fu****** maybe I shouldn't have gotten a dev edition" but doing it in download mode worked flawlessly. Thanks!!!!! :silly:
[One (M9) General] mghtymse007:
Thank you! Huh, this changes my thinking now....

By chance, did you try getting a stock backup thru TWRP...prior to SU install?
[One (M9) General] Captain_Throwback:
Won't matter with that version of TWRP. Just booting it up breaks OTA-ability.

Thus the reason I stated to read the TWRP thread . . .
[One (M9) General] angasreid:
So after a couple hours of stumbling around I now have a rooted T-Mobile M9 running a custom ROM. If you're having issues, give this a read. See my comments in BOLD. Just make sure your backup as described below.

Unlocking the bootloader.

- 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)

- SELECT DOWNLOAD MODE (BLACK SCREEN)

- 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

- Reboot (Enable USB DEBUGGING AGAIN)

Once my bootloader was unlocked, I flashed the BETA Recovery Below:

- On Phone pressing Volume Down + press Power to boot in "HTC download mode" (black Background)

- SELECT DOWNLOAD MODE (BLACK SCREEN)

- Beta Recovery LINK

Make Stock Backup:

- Boot to Recovery, Backup

Flash SuperSU:

- If you already have a stock backup, proceed

- Boot to Recovery

- Under Advanced, choose Terminal, press the select button to start it in the root folder

Mount System (this part is hard to find in the forums)

- Type this command in the line:

mount -t ext4 /dev/block/bootdevice/by-name/system /system

- Once done, hit back

- Then flash the SuperSU installer zip.

* Get yourself a glass of wine or beer, then profit by rebooting and testing root. Hope this helps, let me know with a "Thanks!"
[One (M9) General] mghtymse007:
ok. maybe i misunderstood this:

post #15

http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720/page2

That being said, after a LOT of work I was able to detect whether system has been previously modified and mount system as either read-only or read-write in TWRP. So essentially on first boot up, system will be intact, you can take a backup, flash a custom ROM, and the next time you boot into recovery, it'll detect system has been modified and mount in read-write (like everyone's used to)

So you're stating upon initial boot, post 2.8.5.0 install, (regardless of what your booting to) the system is now mounted as r/w...therefore breaking the OTA and performing a backup of stock ROM?
[One (M9) General] Captain_Throwback:
Correct.

I fixed that with 2.8.6.x.
[One (M9) General] sparkx86:
So I'm in need of some help. I followed this tutorial verbatim. However, despite TWRP stating it successfully installed SuperSU, when I reboot, the app does not show as being installed. I have tried to re-flash it multiple times as well as I cleared dalvik/cache. Is there something I'm missing or not doing? I am running developer edition with 5.0.2 installed.
[One (M9) General] salmonfishy:
many people are saying to create a backup of the stock recovery before flashing twrp, so you can revert and get OTA's. but, i've searched for a few hours now, and can't seem to figure out how? dd commands require root.. so i tried fastboot boot recovery.img to root it with stock recovery but after multiple attempts discovered that htc blocked remote recovery booting since the m7. not sure how else to get in and get the backup? i'll skip the backup because i can just ruu later if i need to. (once the phone takes off and support grows and stuff. imma newb.)
[One (M9) General] Captain_Throwback:
Seems like you haven't read the TWRP thread.

Don't worry about the stock recovery. OTA will come with a compatible one anyway ;).
[One (M9) General] sparkx86:
You're so right, I feel like a noob...sigh. Good news is I got it working, I figured it was something with recovery when it wouldn't let me make a backup.
[One (M9) General] Justrelaxzin:
Having issues with SU binary

I got the bootloader unlocked and TWRP flashed but cant seem to get root. I flashed superSU both via the SD card sideloading and it seems to be successful but after rebooting the SuperSU app says there is no binary installed. I used the beta version of twrp listed here, and this version of superSU. I tried clearing the dalvik and cache as well. Anyone else have this problem?

Also i have the Tmobile version of the m9 if that makes a difference.
[One (M9) General] Captain_Throwback:
Please read the TWRP thread. The very post where you got the Beta version of TWRP contains your solution.
[One (M9) General] Justrelaxzin:
...So it does. I am ashamed.
[One (M9) General] kruuth:
Ok I went to the thread and I'm a little confused. I tried installing UPDATE-SuperSU-v2.46.zip via both twrp 2.8.6.4-hima and 2.8.6.0-hima-sptb and can't get su to save my life. I've got the bootloader unlocked. What am I doing wrong?
[One (M9) General] jamieunit:
I had the same untill I followed this post,

Once my bootloader was unlocked, I flashed the BETA Recovery Below:

- On Phone pressing Volume Down + press Power to boot in "HTC download mode" (black Background)

- SELECT DOWNLOAD MODE (BLACK SCREEN)

- Beta Recovery LINK

Make Stock Backup:

- Boot to Recovery, Backup

Flash SuperSU:

- If you already have a stock backup, proceed

- Boot to Recovery

- Under Advanced, choose Terminal, press the select button to start it in the root folder

Mount System (this part is hard to find in the forums)

- Type this command in the line:

mount -t ext4 /dev/block/bootdevice/by-name/system /system

- Once done, hit back

- Then flash the SuperSU installer zip.

http://xdaforums.com/showthread.php?p=59968485
[One (M9) General] blink182_joel:
O2 UK Rooted, but want OTA Update

Hi! I've successfully unlocked bootloader and rooted with no problems, using TWRP-2.8.5.0. However, I stupidly forgot to backup my stock recovery. I want to flash to the stock recovery that is available on the internet (Europe) But I'm worried this may brick my device. When I run 'fastboot oem readcid' it shows as O2___001.Does this mean I would need an O2 stock recovery? The phone is carrier locked to O2 (not sure if that makes any difference at all)

Can someone please tell me if I'm ok to flash to 1.32.401.8 Stock recovery?

Many thanks,

Joel
[One (M9) General] aos10:
can anyone help me ?

i booted to the black screen, i see

system info

show barcode

reboot to bootloader

reboot to download mode

reboot

power down

i choose reboot to download mode

black i am in black screen just like the before with the same options

connected my m9 to PC using USB , and it recognize it

opened CMD and typed fastboot oem get_identifier_token

but i got error

'fastboot' is not recognized as an internal or external command,

operable program or batch file.

what i should do ?

i downloaded the file from htcdev , but i can't execute it
[One (M9) General] jauhien:
Did you start adb? Did you open cmd in the same folder as adb.exe placed?

Where's fastboot.exe ?

What fastboot devices returned?

How many instances of running ADB the task manager shows?
[One (M9) General] whosaysjohn:
Thank you very much for this...i was wondering why i was getting the failed message...
[One (M9) General] aos10:
i don't know what is adb , is the the SDK for android ?
[One (M9) General] HectorW:
guys please advice - after unlocking my bootloader i was trying to get TWRP flashed but i get this:

c:\android>fastboot flash resending 'recovery' (35928 KB

OKAY [ 0.797s]

writing 'recovery'...

FAILED (remote: cannot flash this partition is s-on state)

finished. total time: 0.813s

thanks in advance

---------- Post added at 08:28 PM ---------- Previous post was at 08:16 PM ----------

sorted with mini-sdk method :D
[One (M9) General] aos10:
ok , finally unlocked the bootloader

did this step

also did this

and found my m9 in bootloader mode

entered this

when trying to install the img this happen

C:\>fastboot flash recovery C:\Users\LORD\Downloads\twrp-2.8.6.0-hima.img

< waiting for device >

target reported max download size of 536870912 bytes

sending 'recovery' (35928 KB)...

OKAY [ 0.792s]

writing 'recovery'...

FAILED (remote: cannot flash this partition in s-on state)

finished. total time: 0.821s
[One (M9) General] warrip:
Same problem
[One (M9) General] riz157:
i've just flashed superuser via twrp recovery and now when i try to reboot it says No OS installed!

what should i do?
[One (M9) General] phatmanxxl:
Relock your bootloader, run the appropriate RUU
[One (M9) General] BUBBA DUB'S:
​

I have yet to unlock and root, but post #2 in the link below might help ya out.

http://xdaforums.com/one-m9/orig-de...h-recovery-t3066720/post59745198#post59745198

EDIT: check out post #6 in this thread, are you flashing this from the black download screen?
[One (M9) General] dangling_refrenz:
I have the same issue too - AT&T USA HTC M9 Android 5.0.2 (just bought phone today).

Does anyone have a soln to this ? Thanks
[One (M9) General] aos10:
ok , i reached to this point

downloaded the file , but i can't install like this\

so , i turned on the device , copied SuperSU.zip to the sd card

turned off , recovery mode , then installed it

after rebooting , i can't see the program , is it suppose to be installed ?

so i went to the store and install it from the play store

after opening the program its said there is no binary files

also , i can't take screen shot anymore

"couldn't capture screen shot"

---------- Post added at 10:15 AM ---------- Previous post was at 09:50 AM ----------

ok , my phone screen just stuck at TWRP

i can't swipe it

i tried to press the power for 1 minute , no luck

leave it for 1 minute and it will turn off the screen

i press the power button ... same problem
[One (M9) General] aos10:
ok , i fixed the screen stuck problem

but i still can't take screen shot

and there is no binary files for supersu
[One (M9) General] DesirableDesire:
nevermind, wrong thread
[One (M9) General] aos10:
ok , hard reset my phone solved the screen shot problem

now to the root problem

i have TWRP last version

installed supersu.zip from the micro SD card

but root checker said its not rooted

and when i open supersu it says no binary installed

i also updated from google play