yashsingh1/xdaforums huggingface dataset:
[One (M9) Original Android Development] miggsr:
Well if you are S-on then.... You MUST issue ***RELOCKED*** command to the bootloader... Then run the RUU again. Ruu will not run if bootloader is unlocked while S-on
[One (M9) Original Android Development] sentry07:
'

I did tinker with unlocked & relocked in hope it would change the 'official/modified' status but can't remember if I actually tried reflashing while in 'relocked' status. Now we'll never know, phone was returned earlier 'as is' without issue.
[One (M9) Original Android Development] phanompin23:
Im on Tmobile US and just picked up my M9.

Should I take all OTA updates, then unlock bootloader, then flash TWRP beta, then do stock backup before wiping and installing a custom rom, OR what's the right/best way to do it?

*Forgive me if I was reading too fast or lazy and missed some instructions around here. A little lost and don't understand some of the computer jargon and codes around here. =/

But thank you for any help and replies in advance. (=
[One (M9) Original Android Development] miggsr:
Correct take all OTA updates... Unlock bootloader flash Twrp beta make your stock backup or if you are bold just skip the backup and flash your rom of choice. Also download this and keep it if you ever need to return to stock

http://www.htc.com/us/support/htc-one-m9-t-mobile/news/
[One (M9) Original Android Development] phanompin23:
Awesome!

Do I flash TWRP beta like what I'm used to, thru adb and fastboot commands, or is there a way to flash on stock recovery?
[One (M9) Original Android Development] miggsr:
If you want a copy of the stock recovery you'll need to check tmo threads... But to flash Twrp put phone in download mode type fastboot flash recovery xxxx.img (xxxx is whatever name you label the Twrp img file it's best to label it recovery) if you label Twrp recovery type fastboot flash recovery recovery.img remember to have the file in the same directory as your adb and fastboot files.
[One (M9) Original Android Development] clever_man:
I flashed latest TWRP beta (2.8.6.4) but MTP and adb sideload doesn't work. What's wrong?
[One (M9) Original Android Development] miggsr:
Have you read the OP?? Or the first few posts? I believe you'll find your answer there.
[One (M9) Original Android Development] clever_man:
Ok, I read the first few post again and again like before writing my previous post but (maybe my english SO bad) i can't find answer for my questions. About MTP I just found that:

"MTP is now functional with the 2.8.6.4 Beta release"

About adb sideload I found nothing.
[One (M9) Original Android Development] miggsr:
You may need to update htc drivers also just to be sure also update Android SDK.
[One (M9) Original Android Development] hgoldner:
Make sure that you install HTC Sync on your PC. That also installs the device drivers for the M9. You can remove HTC Sync later without uninstalling the drivers.

My name is Harold and I'm a flashaholic.....
[One (M9) Original Android Development] sentry07:
'

Make sure you do a backup before rooting or installing new ROM.
[One (M9) Original Android Development] clever_man:
I had latest HTC Drivers and always update ASDK.

I uninstalled HTC Drivers and reinstalled it with latest HTC Sync than removed Sync. Unplug USB from 3.0 port and plug to 3.0 port. Reboot to recovery - MTP doesn't work. Trying adb sideload - not worked, in "Device Manager" appeared not recognized device "Android Phone". Automatic driver install didn't affect. I trying Update Driver Software -> ... -> Let me pick from a list ... -> Android ADB Devices - My HTC -> adb sideload has started to work.

MTP still does not work.
[One (M9) Original Android Development] jauhien:
Let me share my experience:

I don't own PC or laptop or whatsoever..

At work due to strict IT policies - no any third party software or drivers may be installed..

Workstation has Windows 7, I plugged hima m9, allowed Win 7 to something quickly install so it popped up as camera and CD drive, copied folder named adb from the virtual CD drive to Download folder inside my username, opened that adb folder then SHIFT + right click and chose 'start command prompt in this folder'.. after command prompt window appeared - I simply typed adb devices = and profit my M9 S/N appeared there..

NO ANY DRIVERS OR SYNC HAVE BEEN INSTALLED on my workstation - I verified in the Control Pannel.. :)
[One (M9) Original Android Development] clever_man:
It's working fine. MTP in TWRP doesn't work - only in TWRP.
[One (M9) Original Android Development] 2WildFirE:
At first thanks Captain_Throwback for your work!

MTP working fine to.

But have problems restore nand with data ends with ERR 255 tarfork or so.

Any idea whats going wrong on my side?
[One (M9) Original Android Development] miggsr:
If you can upload the recovery log that would help to possibly track down the issue.
[One (M9) Original Android Development] ronii1123:
Has anyone else experienced issues flashing certain roms, even while mounting the system through the terminal? I haven't been able to flash roms like AndroidRevolutionHD. Would the issue be direved from having used 2.8.5.0 before? I'm currently on 2.8.6.4, and that hasn't really changed anything. Any help would be awesome, as I've been searching and haven't found any answers that have worked for me.

If it helps, at the end of every flash says Status 7 but I'm not sure what that means.
[One (M9) Original Android Development] Aldo101t:
it's probably the updater script in that rom.
[One (M9) Original Android Development] ronii1123:
Ah okay. Would you say that's could be the case for Insert Coin's latests betas and Leedroid?

Thanks for the reply by the way
[One (M9) Original Android Development] Aldo101t:
no don't think you should have any trouble with insertcoin, don't know about the other.

try reflashing recovery and see what happens(2.8.6.4)
[One (M9) Original Android Development] ronii1123:
Yeah it's very strange. Every rom I flash boots to the HTC screen with red text, then reboots to the recovery. Viper works just fine, but everything else does the same thing. I remember when I experienced issues like this on my One M7, it would tell me that SuperSU isn't installed, like my M9 is doing now after every flash. It's very weird. I've gotten Installer status 7 from InsertCoin and Leedroid. I'm thinking of starting fresh but that will have to wait until after my girlfriends birthday or else I'll never hear the end of it X)
[One (M9) Original Android Development] arcs_porwal:
I'm trying to get back to stock but cant by flashing system.emmc.win its 4.37 GB

the fastboot hangs up giving error

I cant copy it to my phone sd or otg as the file is too big for a single file to be copied

How did u get it done need help desperately!

need to get bacck to stock for the ota!
[One (M9) Original Android Development] miggsr:
What carrier
[One (M9) Original Android Development] bschram:
Have you tried updating your Android SDK platform-tools?
[One (M9) Original Android Development] Boostjunky:
You using the HTC specific fastboot, or the generic fastboot that is commonly found in the Android SDK Platform Tools (or minimal ADB and Fastboot package)?
[One (M9) Original Android Development] xda23:
Hi! Guys I have a question what could cause my htc one 9 not to be able to do any back ups roms using twrp.When trying to do a back up it will back up for 3-4 seconds then it will say failed. Thanks ;)
[One (M9) Original Android Development] Andrewbud:
I had this issue. My sd card was set to read only.
[One (M9) Original Android Development] bpdamas:
Are you sure it hangs up? I thought the same thing but realized it was a large file and takes awhile. I would try again and just be patient. Give it 15-20 minutes and see if it does anything.
[One (M9) Original Android Development] arcs_porwal:
Minimal ADB Fastboot Package

---------- Post added at 05:03 PM ---------- Previous post was at 04:58 PM ----------

Unlocked Taiwan Model

CID: HTC__615
[One (M9) Original Android Development] Boostjunky:
That's your problem, right there.
[One (M9) Original Android Development] Andrewbud:
System partition is unusable. I would appreciate some assistance

S-on

Custom rom shows me nothing but UI errors plus some tag along errors.

When I boot into download mode I get a yellow error at the bottom "Security checking failed NOT_FIND_SMART IO SD NOT MOUNTED" If I have an SD card or not. Its limiting my flash sizes and always result in an error. I have a backup. It results in the same. Downloaded stock RUU but have yet to complete the flash.

Have tried a clean install w/ a custom rom. Clean install of RUU. Reflashed recovery. Tried to chmod the system partition.

Pretty stuck here.

edit: I can no longer get a custom rom to boot. TWRP says I have no OS.
[One (M9) Original Android Development] miggsr:
.... What recovery are you using
[One (M9) Original Android Development] MCube74:
I have flashed the RUU for my HTC One M9 and have brought it back to stock.

However my device says bootloader "relocked" and also says "Modified" on top. The device is S-On.

Can this be fixed when the device is fully stock now?
[One (M9) Original Android Development] Andrewbud:
TWRP beta 2.8.6.4 I believe it is.
[One (M9) Original Android Development] Simer03:
2.8.6.4 is one sexy looking recovery, I have to say
[One (M9) Original Android Development] Andrewbud:
Fixed. I formatted system partition. Shut off the device, then restored only the system partition from original backup..
[One (M9) Original Android Development] xda23:
So how do I fix this problem. Thanks ;)
[One (M9) Original Android Development] Andrewbud:
No Idea. I thought I had it fixed but it seems to hate me.

When you go in to Download mode do you get the error "Security checking failed NOT_FIND_SMART SD NOT MOUNTED" ??????
[One (M9) Original Android Development] Johnny424:
Mine also says as not mounted in bootloader

---------- Post added at 08:59 PM ---------- Previous post was at 08:55 PM ----------

Anyone else back up to their sd card taking 20 minutes ? Lol
[One (M9) Original Android Development] vizzy:
Mine normally takes about 200seconds, but they are around 7gb ha
[One (M9) Original Android Development] p50kombi:
Are you using compression?

That might increase the backup time....
[One (M9) Original Android Development] repl1ca:
Probably also depends on the write speed of the SD card
[One (M9) Original Android Development] Johnny424:
Class 10 64 GB SanDisk I believe .. compression is not enabled... I don't know what might be the issue
[One (M9) Original Android Development] chukis13:
Where can I download 2.8.6.4 beta?
[One (M9) Original Android Development] 2WildFirE:
Read op, scroll down, here you find link for beta

powered by SkyDragon ROM
[One (M9) Original Android Development] jeryx:
Lazy link :p

https://basketbuild.com/filedl/devs... (M9)/Recovery/twrp-recovery-2.8.6.4-hima.img
[One (M9) Original Android Development] virajxp1:
Quick question. If I'm s-on, how do I restore to stock? Thx!!!
[One (M9) Original Android Development] miggsr:
This thread is for TWRP recovery for the M9 it is recommended that you go check in your carrier specific threads that pertains to your device. Also there is a search option that is highly recommended...
[One (M9) Original Android Development] BillTheCat:
Just wanted to revisit this for a second. Having used the 'fix permissions' function before applying an RUU, is there any lingering affect that I ought to be concerned about, or did the RUU take care of whatever might have gone bad from that command?
[One (M9) Original Android Development] miggsr:
Ruu will clear out anything... Ruu sets your software to Stock rom stock recovery stock everything.
[One (M9) Original Android Development] Aldo101t:
FYI, this thread is for all variants when concerning TWRP recovery.(M9)
[One (M9) Original Android Development] miggsr:
That's irrelevant to what the person was talking about. I also am familiar that this is for all variants. Still the solution to the problem is not in this thread. Hence why I directed them back to carrier specific thread.
[One (M9) Original Android Development] Aldo101t:
yeah, like a dumby I quoted the wrong person
[One (M9) Original Android Development] BillTheCat:
Three quick questions.

1) When you guys use TWRP to make a nandroid, do you back up cache and boot? I figure since they are recreated on-the-fly there's no need, but I figured I'd check anyway.

2) When using the 'wipe' function, it seems a reboot is necessary because the partition (in my case, the Cache) is formatted, rather than just erased. Is this correct?

3) Since it seems 2.8.6.4 is working well, when can we expect that it gets folded into and recognized as part of the Official version?
[One (M9) Original Android Development] anthony2424:
I can't backup my system partition :mad:

https://docs.google.com/file/d/0BwiObjDYE6FJbFVCVjNKdUNUVW8/edit?usp=docslist_api
[One (M9) Original Android Development] donmarkoni:
1) cache no, boot yes

2) it is formatted, no reboot necessary

3) probably never, but merged into next

U mad bro? :D
[One (M9) Original Android Development] fethi2:
Thank you great effort!!! You know the 2.8.6.0 version is not working correctly.. and could you please share the beta version 2.8.6.4 or later.

Thanks.
[One (M9) Original Android Development] hgoldner:
Don't EVER quote the entire OP, and, while you're at it, why don't you READ it? (And post #2 and post #3, all of which answer your question.)

Kindly go back and edit your post to remove the quote.
[One (M9) Original Android Development] fethi2:
I will but the links were not responding when i clicked them. I know how this forum works ;)
[One (M9) Original Android Development] liam_davenport:
If you knew how it worked you wouldn't quote the whole OP ;) Here the links work fine: http://xdaforums.com/devdb/project/?id=8915#downloads
[One (M9) Original Android Development] 2WildFirE:
OK guy's I can reproduce the error while restore data.

Recovery log

https://docs.google.com/file/d/0B8j9OdHN69y6aW1HcmI4YURnRkU/edit?usp=docslist_api Thanks

Powered by SkyDragon ROM
[One (M9) Original Android Development] kaosb0x:
HGoldner : Dont be a **** to the guy, he asked nicely......Can you please post what versions are broke for the m9, what is broke and what is not...I need a "working" recovery im going to flash the latest beta thinking maybe it has the most fixed?? thanks keep up the good work! :)
[One (M9) Original Android Development] BUBBA DUB'S:
It's not that they are broke, but for the m9 you have to use beta TWRP 2.8.6.4 due to HTC changing it to a block based OTA system. Post #3 Explains all this and the download links are under that post. Hope this helped :)
[One (M9) Original Android Development] Sneakyghost:
Yesterday, that didn't work. CT already pointed out (In some chat, not here) that not even the stock recovery can be fastboot booted on the HIMA. So that path is currently blocked.

What I did: I flashed TWRP (multiple versions and it took me a while until i understood what i was doing) and then ran manual dd pull commands for all 70 partitions. So i have a full untouched raw backup of every partition except 67, which is /userdata and too big. It would not even dd to sdcard properly for some reason. And partition 64. which is /recovery and was already replaced with TWRP. This image can be taken from later Firmware OTA's and RUU's. Not overly important.

I published a table with partition Data here: https://docs.google.com/spreadsheets/d/1yCWtDQ-2tpUzC-JDoVaScllsF3Db96Tr18U1izo7oJM/edit#gid=0

And will have more informational stuff with [MENTION=5324408]herwegan[/MENTION] in his new Firmware thread sometime around this week or next.

After having that done, I just now created a backup with TWRP, the system still untouched and intact. Relevant instructions are in Post #2 and Post #10 of this very thread.

Procedure i followed was:

1. flash TWRP (beta release) from Post #2

2. Run Backup Task with /system being invisible and mounted R/O.

3. After completion, mount /system manually following instructions in Post #10

4. Flash SuperSU.zip from Chainfire's site manually.

5. Reboot and be rooted ;)

I wish to express my gratitude here for the work Captain does for us once again. And sorry for the hard time i gave you on chat - i am not the brightest at times. Thanks a ton, Sir!
[One (M9) Original Android Development] Captain_Throwback:
As [MENTION=1102297]Sneakyghost[/MENTION] mentioned, I did initially try to fastboot boot the stock recovery, however I tried this in bootloader, not download mode, originally. I just tried it in download mode, and it still doesn't boot. However, my device is LOCKED, so someone else with a signed stock recovery that is unlocked may be able to accomplish this. If stock recovery is in fact able to be fastboot booted, then the issue would lie with TWRP. I highly doubt this is the case though, as the current TWRP uses the same kernel and dtb as the stock recovery.

So like I said, give it a try - it doesn't work for me, but you never know how much variation there is between device variants. The M8 had quite a bit of differences between variants, though it seems that the M9 is more unified.
[One (M9) Original Android Development] Electronic Punk:
Seems to hang my device in both download and bootloader, dispite acceping both commands

F:\Android>fastboot boot twrp-2.8.5.0-hima.img

downloading 'boot.img'...

OKAY [ 0.799s]

booting...

OKAY [ 0.044s]

finished. total time: 0.845s

F:\Android>fastboot boot twrp-2.8.5.0-hima.img

downloading 'boot.img'...

OKAY [ 2.089s]

booting...
[One (M9) Original Android Development] Captain_Throwback:
Yup, same behavior I was seeing with stock recovery (and TWRP).

It seems HTC has disabled fastboot booting for some unknown reason.
[One (M9) Original Android Development] Sneakyghost:
I remember experimenting with this on the M7 a long time ago and I do remember fastboot booting recovery and kernel was changed somehwere along the hboot updates - it used to work until some base, then it broke because Google had changed something in fastboot, then after a while I think it started working again.

We might see this function come back at some later stage. Maybe keep an eye open for this.
[One (M9) Original Android Development] Captain_Throwback:
Interesting. What I haven't tried is fastboot booting using htc_fastboot. Does anyone have an M9 version to try?
[One (M9) Original Android Development] Captain_Throwback:
UPDATE: I tried fastboot booting stock recovery with the M8 version of htc_fastboot, but the behavior is the same as with the stock fastboot. Is there an M9 RUU.exe floating around somewhere with and htc_fastboot.exe that we can test?
[One (M9) Original Android Development] SoLdieR9312:
i only have the 1.32.401.8 ruu in zip format, not exe, but on the htc dev site (unlock bootloader) you get the htc_fastboot, maybe it got updated..
[One (M9) Original Android Development] Captain_Throwback:
Nope, doesn't work. Same result.
[One (M9) Original Android Development] SoLdieR9312:
****. I'll ask a good friend, maybe he got a newer htc_fastboot. Will post then.
[One (M9) Original Android Development] Captain_Throwback:
It could just be like [MENTION=1102297]Sneakyghost[/MENTION] says and that it's simply missing from the current bootloader. And maybe that was an oversight and they'll add it with a future update. We'll all just have to keep trying it as updates are received.
[One (M9) Original Android Development] SoLdieR9312:
I think it was the same on the m8, 4.16.401.6 (non released ruu) was not able to boot images, final ruu .10 was working again.

Maybe we get it back soon :P
[One (M9) Original Android Development] navalynt:
It doesn't work with an M9 htc_fastboot.exe either (but I'm not going to elaborate on that). There are a few posts about Nexus devices and booting recovery or boot images via fastboot and having to use "fastboot -c <kernel parameters> <boot.img>".
[One (M9) Original Android Development] il Duce:
[MENTION=1162986]Captain_Throwback[/MENTION] woot! My dev edition m9 is on the way. Maybe I can test something once I get it if it's not sorted? I only briefly read the latest comments. Hit me up on hangouts
[One (M9) Original Android Development] S2kT68m:
[MENTION=1162986]Captain_Throwback[/MENTION]

Thx for your hard Work. The beta is very helpful and all is flawlessly on my M9! *highfive*
[One (M9) Original Android Development] timsah:
Thanks to Captain_Throwback and SneakyGhost I have a nandroid backup and root. Keep up the good work, guys. :good:
[One (M9) Original Android Development] barleysoda:
Nice to see some familiar faces again. Sprint M9 on its way. Talk about taking a Loooong time out with that LG G2. Duce and D3rp helped in the early days but its been a ghost town for far too long. I was living in flashers prison. Only my work phone (Verizon M8) was giving me any joy but its technically not mine so I was limited. The M9's all mine so let the bricking begin!!:D
[One (M9) Original Android Development] SteelH:
Quick question, is this compatible with Sprint HTC M9?
[One (M9) Original Android Development] Captain_Throwback:
Yes. If you check the Sprint forum, you'll see the TWRP thread there redirects here ;).
[One (M9) Original Android Development] SteelH:
Indeed it did.
[One (M9) Original Android Development] clsA:
[MENTION=1162986]Captain_Throwback[/MENTION]

Seeing this has been in "beta" for the entire time i have had the M9, I'm guessing their won't be any changes to it again. Maybe it should be called 2.8.6.4 final ;)

I do have a suggestion for v2.8.6.5, is it possible to add a password screen to enter Recovery ?

Before Sense 6 it was possible to enable Fastboot under Settings / Power and that made it difficult to enter recovery without a PC (the phone basically skipped the bootloader screen)

The way it stands now if anyone gets hold of your phone they can easily enter recovery and wipe your password and have their way with your phone

Being HTC made it so easy to get to recovery, maybe it should be kept locked for some kind of feeling of security. Just a thought
[One (M9) Original Android Development] donmarkoni:
If I may...

First, [MENTION=1162986]Captain_Throwback[/MENTION] is taking some time off, so probably he won't answer.

Second, about security, half of not-just-users from XDA would easily remove any kind of security from phone and the other half would search XDA first, then remove security. So, best advice would be: don't loose your phone. ;) Other advices: don't keep anything of high importance connected to your google account, don't save passwords for applications giving access to high importance stuff, and of course, don't save sensitive data in your phone. That's what I do/do not. If I loose phone, I loose just money it costs.

Cheers mate! :)
[One (M9) Original Android Development] juan5600:
oh master! thank you
[One (M9) Original Android Development] Electronic Punk:
I think any non beta would be what the TWRP team released on their website.
[One (M9) Original Android Development] zorantoma:
pc not recognizing phone

hello.

Today i used the mount usb storage in recovery. after that my phone doesnt charge and doesnt get recognized by my pc anymore.

any sugestions?
[One (M9) Original Android Development] donmarkoni:
I would say coincidence. Used it many times...

Try another PC/charger/cable.
[One (M9) Original Android Development] Desertio:
okay. Im having an issue flashing twrp. through the cmd prompt i cd into the necessary folder which contains my fastboot files. twrp image and unlock.bin code. I then type fastboot flash recovery twrp-2.8.5.0-hima I put phone into download mode which is unlocked but still s-on and in the cmd prompt is says error:cannot load twrp-2.8.5.0-hima

I've read the disclaimer and everything. I am in dire need of help please. Any assistance is greatly appreciated
[One (M9) Original Android Development] Anzinger:
Try twrp 2.8.6.4 beta
[One (M9) Original Android Development] Desertio:
i can only find 2.8.6.0

which i have downloaded as well but it gives me the same error
[One (M9) Original Android Development] Anzinger:
https://basketbuild.com/devs/Captain_Throwback/One (M9)/Recovery