yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Skorpyun812:
I actually was having troubles using the adb push command so instead, I opened my "Downloads" folder in Win10 where the .zip file was waiting. Then in a new window, I went to "This PC", selected my device which gave me two choices, "Internal Storage" and "Micro SD card" (sometimes listed as "External storage" depending on what mode the phone is in), I selected "Micro SD card" and the window showed all the contents of my SD. I simply drug the Super SU .zip file from the "Downloads" window, to the "Micro SD card" window. It showed up when I booted into TWRP recovery and I successfully flashed. If anyone is having troubles with the .zip file showing up in TWRP while in recovery using the adb push command, try my simple, less technical approach. It worked for me. HTC M9 vzw

Thank you. :)
[One (M9) General] kybaly:
Missed a step and ended up with a tablet instead!!

Hello guys!

After root and custom recovery I forgot to backup my stock. Flushed everything, flashed custom ROM and ended up on with CM13 but device M9 no longer recognizes my sim card. Everything else works like a charm. I guess it's my modem missing. I have a Canadian Videotron HTC M9.

The only difference I see is:

1 - Sim not recognized anymore

2 - IMEI is now 'unknown' (same for IMEI SV)

3 - Baseband version 'unknown'

Am I stuck with a tablet instead of a smartphone? How can I fix this?

Please help! Thanks

Status:

- UNLOCKED

- S-ON
[One (M9) General] iPhonesSuck:
Guys I've followed all instructions but I keep getting this error when trying to flash twrp..I already got boot loader unlocked..any help would be greatly appreciated
[One (M9) General] life25ak:
i already flashed the TWRP 2.8.6 on htc m9 but the superuser didnt installed even it said successful
[One (M9) General] defloated:
Whenever, I try and do the fastboot oem code, it always says 'waiting for device.'
[One (M9) General] FlatOutRU:
Cant get device to be seen with adb while in fastboot mode to unlock the bootloader, windows marks the device as My HTC, but adb devices says no devices, win10x64
[One (M9) General] pasiee:
after flashing i reboot to recovery mode it gives me a red warning sign
[One (M9) General] evialc:
bought my htc m9 phone recently from another seller .. unfortunately i was not informed that it was a T-mobile unlocked phone.. I wanted to update my software via OTA but was not able to ..

can please someone let me knw if my phone is rooted? tHANKS

HTC Donload Mode

***Locked***

htc_himaulatt PVT S-OFF

CID-11111111

LK-1.0.0.0000

RADIO-01.01_U11440792_97.00.512

BUILD NUMBER 3.35.617.12 CL669696
[One (M9) General] undeadninja0212:
I have followed these steps but it seems my device is stuck in a bootloop. what should i do?
[One (M9) General] -markus-:
may be your zip file (UPDATE-SuperSU-v2.46.zip) is corrupted? My MD5 checksum is: 332DE336AEE7337954202475EEAEA453
[One (M9) General] dannyb2100:
I'm also having the same problem. Flashing with TWRP. But for some reason, on reboot SuperSU is stating that it is not rooted?
[One (M9) General] ChronoWerX:
I'm root at O2 Germany device, today the OTA came. How can I unroot the device without lose all data?
[One (M9) General] Captain_Throwback:
My guess is that the original user that flashed successfully is using TWRP 2.8.5.0, while the above two users are using the latest TWRP (2.8.6.0).

The 2.8.5.0 version was incorrectly set up with system in read/write mode, which means as soon as it boots, no OTA will successfully install on the device without some sort of modification. The 2.8.6.0 version, on the other hand, mounts system as read-only. This allows the checksum of the partition to remain intact so that a stock backup can be made. Then zips can be flashed in the usual manner. It seems that in some cases, zips just don't install as easily in recovery when system must be mounted properly by the zip. It's possible a slight update may need to be made to the SuperSU zip. A recovery log might be helpful, from the people having issues. You might also want to let [MENTION=631273]Chainfire[/MENTION] know in case there's something he can do.
[One (M9) General] jbm76:
Yep on 2.8.6.0.. also TWRP when I reboot the phone says there is no os installed when there is...

I have attached recovery log and su installer logcat for [MENTION=631273]Chainfire[/MENTION]
[One (M9) General] Captain_Throwback:
Yeah that "No OS Installed" message is because system is read-only.
[One (M9) General] swieder711:
Can you explain how you have a custom recovery on an M9 with Verizon? Does the dev version of the M9 support the Vz network?
[One (M9) General] hgoldner:
No. Not yet, at least. I used 2.8.5.0 and had no issues getting SU to flash. I will stick to that version for now. Hope I am not sorry that I updated my M8 to 2.8.6.0.

My name is Harold and I'm a flashaholic.....
[One (M9) General] quirky:
hey gang, I've not been able to install the twrp-2.8.6.0-hima.img recovery when i try from download mode it says

target reported max download size of 800000000 bytes

sending 'recovery' (35928 KB)...

FAILED (data transfer failure (Too many links))

And on the phone something about unable to mount.

Now I obviously don't have an SD card in there, is this why? Sorry if this is a dumb question but I've not seen anyone state an SD card was a requirement, either in this thread or a couple of other howtos I've read about the new m9 - been planning on buying one anyway, but thought I'd check anyway

thanks in advance!
[One (M9) General] jerryv6:
much thanks about this info my friend.
[One (M9) General] Captain_Throwback:
Flash it in bootloader?
[One (M9) General] kash20:
So I had to tweak the method but I've successfully managed to root mine, I unlocked the bootloader via htc dev as usual, and then flashed recovery using the steps, but I manually copied across the superuser.zip file onto my internal storage.

I then just booted into recovery again, hit install and found the zip file to install. And just a note it didn't work the first time for me (not quite sure why), so I just repeated the install zip and it seems to have stuck

EDIT: Hmm, I assumed when it rebooted with the "Android Apps Updating", it would have stuck, looks like it hasn't, hopefully someone smarter than myself will think of a fix
[One (M9) General] Vampyric:
Thank you!

Perfect! This is what I needed to do!

Once in TWRP, I went to reboot because I couldn't get adb to push to my SD card.

TWRP asked if I wanted to install SU. I selected yes.. let it do its thing, then I did the 'I have Root Access' dance around my kitchen :D

THANK YOU! This has been bugging me for days!
[One (M9) General] dannyb2100:
Damn! Rather jealous :(

Still can't get mine to work.....
[One (M9) General] jbm76:
What ver of TWRP did you use?
[One (M9) General] Vampyric:
:(

Are you trying from the black screen or the white screen. Boot in to Download Mode, then use the fastboot command. That's what I did.. I have an Australian Telstra branded M9, not sure if it matters..

---------- Post added at 04:32 PM ---------- Previous post was at 04:27 PM ----------

Not the newest one.. 2.8.5.0 is what I installed.
[One (M9) General] VelosCohagen:
i have unlocked the bootloader and flashed tewrp 2.8.5.0 via fastboot. After flashing the supersu.zip several times, i still can't get root on my device.
[One (M9) General] kash20:
I've just managed to get mine working, I initially tried TWRP 2.8.60 and flashed that through download mode, and then manually copied the superuser zip to my sd card and tried installing, although successfully installing, the phone wasn't actually rooted

So today I flashed the older TWRP 2.8.5.0 recovery over the current one, then went in recovery and flashed the superuser zip and it has seemed to work
[One (M9) General] VelosCohagen:
I first tried with 2.8.6.0, too. Then i tried with 2.8.5.0. Both to no avail. Yesterday there was an ota update on my One. Maybe this is the culprit. Im on Android 5.0.2, Software Version 1.32.161.15.
[One (M9) General] niekie73:
Thank you

It worked for me :) i used TWRP 2.8.5.0 and copied the SU manuallyl to my sdcard

(I had also a update yesterday, now im on Android 5.0.2 Software Version 1.32.401.15)
[One (M9) General] radioshed:
please help, i have bene the biggest noob and got my phone stuck in a boot loop of some sort.

i have an unlocked bootloader and S-OFF as phone was previously vodafone and i reverted to stock WWE.

I applied twrp-3.0.2-0-hima.img and SR1-SuperSU-v2.78-SR1-20160915123031.zip without a hitch yet as soon as I rebooted my phone has continually rebooted, only showing the white HTC screen that says "this build is for development purposes only..." in red.

I can get into download mode, bootloader and recovery but not really sure what to do :(

I have tried a factory reset but thats seems to have made no difference!

I am really struggling with this and super annoyed at my own stupidity so I am hoping someone will be kind enough to help :D

ALso in download mode it says FILE /mnt/media_rw/ext_sd/0PJAIMG.zip FILE NOT FOUND.

I just cannot seem to do anything to boot into the OS :(
[One (M9) General] vipuljad3:
need stock recovery

i ve rooted my m9+ .. i have twrp,, i need to install the marshmallow ota update.. cant find stock recovery.. any help?
[One (M9) General] Flippy498:
Reflash the RUU you used and try again with SuperSU 2.65. Newer flashable versions aren't compatible with the M9. Updating via the play store should be fine, though.

You should take a look at the M9+ forum or ask your question there. This is thread is for the M9. However you won't be able to install the OTA just by reflashing the stock recovery and un-rooting your phone due to the block-based OTAs google introduced. They will check the checksum of your system which changes as soon as you modify something. You'll need a stock backup which is mounted read-only and corresponds to your currently installed firmware or a publicly available RUU for your SKU. Otherwise you'll need to either pay for Llabtoofer's RUU service or for S-OFF if you want to update your phone.
[One (M9) General] vipuljad3:
need stock recovery

i cant find stock recovery for my m9+ ant help?
[One (M9) General] radioshed:
Thanks for the reply. When you say the RUU I used, do you mean the original stock RUU I used ages ago when I first go the phone? Will that revert me back to stock (Android 5 I think, as apposed to 6 that I am now)?

I tried a few links for that last night but none seemed to work :(

Also when you refer to newer, flashable versions, is the SuperSU your are talking about? If so, can I not just try that from recovery mode?

Sorry for the n00b question I have actually flashed several phones over the years but I do it that infrequently I have mostly forgotten how to do it each time is comes back around.
[One (M9) General] Flippy498:
Then I misunderstood you. I thought you recently switched to the WWE firmware. Use the latest WWE RUU. Download links and instructions shouldn't be too hard to find here in the general section. ;)

Yes, I meant the flashable SuperSU versions. Only 2.64 and 2.65 are compatible with the M9 but it's safe to update them via the play store.
[One (M9) General] radioshed:
OK thanks for the advice. I have found some links for the RRU for Europe, cannot see a listing for the WWE:

0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.8_Radio_01.01_U11440261_56.02.50306G_2_F_release_425571_signed.zip 2087.9MB 2015-04-08 21:18:54

0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.15_R1_Radio_01.01_U11440261_56.02.50306G_2_F_release_426891_signed.zip 2087.8MB 2015-04-08 21:19:06

0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.15_R2_Radio_01.01_U11440261_56.02.50306G_2_F_release_427846_signed.zip 2087.9MB 2015-05-18 20:10:46

How can I see what version I have currently? Cant see any metnion of a number like 1.32.401.15 on the download mode > show info screen.

Thanks for all your help so far.

Actually I think the latest version is 3.35.617.21 but I currently have 3.35.401.12. As far as I am aware I have the latest OTA update so I am not sure why I don't have 3.35.617.21
[One (M9) General] Flippy498:
So you neither looked at the sticky threads nor read my signature... :p I don't plan to write things that can already be found on xda so please do read either of the two.

617 and 401 are different SKUs. You can only update to versions that belong to the same SKU. 3.35.401.12 is the latest international firmware. 617 belongs to the US developer edition of the M9.
[One (M9) General] radioshed:
thanks for the info, sorry to have taken up your time. I searched the website and google for the information but i have to admit, never thought to look at your sig. It's much easier to find the information I need when I know the information I need.

I will go and read the relevant pages now.
[One (M9) General] hgoldner:
Again, you are posting in an M9 forum, the M9+ is a different handset; different bands, different CPU. Find the right forum.
[One (M9) General] 4chanz:
can i root my m9 (unlocked) even if im on stock rom? can i install mods (camera, sound) once i do the root?
[One (M9) General] radioshed:
Hi again, so I have flashed back to the latest stock RRU and everthing is working fine :)

However I am still not rooted so in reference to your comment above, do I try again with 2.65 SU the same way as detailed in the instruction in this post? TWRP and install the zip? When you refer updating via play, is this after I have deployed the 2.65 zip?

In other words, 2.78 is fine to update to, after I have deployed 2.65 via TWRP.

Furthermore, do you think there is any risk to getting stuck in a boot loop again or was that simply a consequence of install 2.78?

Thanks for all your help (again)
[One (M9) General] Flippy498:
I'm keeping my answers short and simple this time. ;)

Yes, yes and yes.

No and yes.
[One (M9) General] radioshed:
Thanks for your time :)
[One (M9) General] :
i flashed linked .zip file for root its stucked at boot stock marhsmallow firmware and unlocked bootloader ( M9 unlocked model )
[One (M9) General] efrant:
Try flashing version 2.65 of SuperSU: https://download.chainfire.eu/921/SuperSU
[One (M9) General] :
i flashed it but still same :(
[One (M9) General] robburns20:
thanks for zip

this one finally worked for me:D thanks again
[One (M9) General] calikevin:
You have to flash a Stock Rom Backup to go back to the original recovery, then you can accept the OTA update. What does the changelog say for the new update, it may not even be worth doing all that for.
[One (M9) General] mihai.zaim:
Hello, I've tried to rooting my m9 but it after I've installed SuperSu 2.78 it got stuck in a bootloop, so I've tried installing the factory image from HTC but it got stuck in to a loading screen.

Can someone PLEASE help me?
[One (M9) General] sidjohn:
Don't know if this is your answer but from [MENTION=5872674]Flippy498[/MENTION]

http://xdaforums.com/showpost.php?p=69373099&postcount=7
[One (M9) General] mihai.zaim:
I would love to know this before, but now how can I get out of the OTA loading screen? I've left the phone for 5 hours so that the battery would drain but it's still going.:confused::confused::confused:
[One (M9) General] sidjohn:
Holding Power+Volume Up together for +/- 15 seconds should reboot the phone to a menu. Should be able to access bootloader and recovery from there.
[One (M9) General] mihai.zaim:
It doesn't work. I'm really scared!
[One (M9) General] sidjohn:
Sometimes you have to hold those two buttons for longer to get a reaction - I've read up to a minute for reboot to start. Don't recall either but you may have to hold until you see the menu.

Sorry but we've come to the end of my limited knowledge without risk of steering you wrong. Hopefully someone can jump in and help you get your device working properly again.
[One (M9) General] Flippy498:
It's actually been posted several times here on xda and people are still making the same mistake over and over again because they start flashing before they start reading and therefore don't know what they're doing. I think that's quite interesting because I (personally) wouldn't want a phone which costed several hundred bucks to become a fancy paperweight. But that's just my opinion. :p

Did you use a RUU.zip or an *.exe file? Which firmware version was it made for? What was the firmware version of your phone before you flashed the RUU?

The volume down up button and the power button should be sufficient for a forced reboot, btw. But as you said it can take some time and therefore those buttons should be hold until the phone reboots (to the bootloader if you only use volume down up and the power button).

Edit: My bad, it's volume up, not volume down.
[One (M9) General] mihai.zaim:
I've used the .zip file version 2.78 and my android version is 6.0. And yes I was an Idiot because I've didn't the last pages of this topic. How can I remove the old SuperSu?
[One (M9) General] Flippy498:
That's not the answer to my question. I wanted to know the version of the RUU (you called it factory image but that's not the correct term) you used and not the one of the SuperSU archive. And the android version isn't the firmware version. An example for a firmware version is "3.35.401.32". Android 6 on the M9 means that your firmware starts with a 3 but what's the rest? It's stated in the line with OS at the beginning which can be found in download mode. Just keep pressing volume up and the power button until the phone reboots to the bootloader if you still didn't get out of the bootloop.

A bootloop caused by the wrong SuperSU version can be recovered by reflashing the boot.img of the currently installed firmware. However, since you said you got stuck after using a RUU there might be some more steps that need to be done to recover your phone's system. But it's impossible to help without knowing "where you came from" and "where you wanted to go" or if you faced any errors on your way (and if you did which ones).
[One (M9) General] mihai.zaim:
My phone software is 3.36.709.3 and I've tried installing through the .exe file that HTC distributes the version 3.35.617.31. And I thank you very much for helping an idiot like me that is to lazy to read a couple of pages.:o:o:o:o:o:o
[One (M9) General] Flippy498:
And there we have the problem with the RUU. You can't flash RUUs for different models of the M9 than the one you own. :p However, you're lucky and the failed flash didn't harm your phone.

Follow the link in my signature which leads you to my google sheet. Download the backup for your firmware and follow the instructions with the following exceptions: don't wipe anything, don't re-mount the system as read-only and only restore the boot.img not the rest of the backup. Your phone should be booting afterwards.

After all that do yourself a favor, read the whole sheet and follow the link that leads you to the file collection here on xda. There you should read the OP and every link that is marked as "basic literature".
[One (M9) General] mihai.zaim:
I can't find boot.img in ''Stock_Backup_3.36.709.3'' and either ''0PJAIMG_HIMA_UHL_M60_SENSE70_MR_hTC_Asia_TW_3.36.709.3_Radio_01.01_U11440792_97.00.51203G_F_release_464289_signed'' where is it located?
[One (M9) General] Flippy498:
Just do what the instructions tell you (and don't forget the exceptions I've mentioned in my last post). The boot.img has a different name and a different format since it's part of the backup. If you untick "recovery" and "system image" while the restoration process and all should be fine.

And of course you can't find a RUU inside a backup since that wouldn't make any sense. A RUU and a backup a two different ways which lead to the same goal (a stock system). There is no need to pack the one into the other. The RUUs are located in the dedicated tab of my sheet.

Edit: Or did I missunderstand you and you meant that you can't find the boot.img inside the RUU? That's normal. It's encrypted. You'll need the decryption tool that is linked in my sheet.
[One (M9) General] mihai.zaim:
I've search everywhere I can't find any information,do I need to poot the whole .zip file on the sd card?
[One (M9) General] Flippy498:
Are you kidding me? It's explained in steps 5 and 6.

You did notice that the sheet contains more than one tab, didn't you? You need to look at the TWRP backups tab.
[One (M9) General] mihai.zaim:
Thanks! I'm out of that bootloop! Now I have to install SuperSu 2.65? Right? And I also want to install Xposed, are there any version limitations even there?
[One (M9) General] Flippy498:
Yes and not as far as I know.
[One (M9) General] JiUsY:
Hello Flippy,

Please help me if you still follow this thread :)

I had an issue with my stock M9 (3.35.206.13). After a restart (hadn't done one in a while) phone was stuck on "Optimizing App 3 of 5" after reboot. Tried rebooting again and got same result. After a couple of restarts, it didn't go pass the HTC logo.

So I followed your guide and unlocked bootloader, installed TWRP, SuperSu 2.65 and flashed Viperone 5.2.0. It worked fine, phone was booting and things were dandy. Upgraded to 5.3.0 and that also went well, except that, after another reboot, it went into a boot loop again. It gets to start the animation "android viperone" and then just reboots. I managed to get it to boot once by pressing buttons during boot (or at least I think that is what did the trick). Now it's stuck though and I can't get it to boot. Tried also other ROMs (LeeDroid, Resurection, Slim) - no-go.

I tried going back to stock via TWRP backup, but I didn't work - still in boot loop. I can't do it via RUU as the only stock zip I found for 3.35.206.13 is corrupted.

PS - Software status: modified, S-ON, Unlocked. Tried also to re-lock, same result.
[One (M9) General] Flippy498:
I would have preferred if you had asked that question in my thread (the sticky one here in the general section ;)) since that's probably the place where you found the files you used but since you already posted here that doesn't matter anymore. :p

The RUU is not corrupted. It's actually working fine, even with S-ON. It got tested by a S-ON user of the German forum called Handy-FAQ before it got added to my sheet. Did you try to unzip it? That's not possible due to its encryption unless you know the correct steps. Simply flashing it with the instructions in my sheet should work just fine.

Re-locking a phone that is not 100% stock is actually the worst choice you could make with the M9. It's unnecessary to re-lock in 99% of all cases and in the worst case you won't be able to re-unlock due to some security features. Besides the phone won't boot if it's not completely stock and the bootloader gets locked or re-locked since that's the way the M9 tries to prevent itself from getting damaged by "faulty" (in other words: not original) software.

Furthermore, flashing SuperSU is completely unnecessary if you wipe the system partition afterwards for flashing a custom rom. ;)

Since you've already tried using a backup and neither that nor other custom roms are working fine I actually think your phone might have a hardware issue. If you follow my backup restoration instructions or the flashing instructions of a custom rom without skipping a step your phone should be working fine. It doesn't matter for your phone whether you restore it's original state by using a backup or a RUU. The only difference is that a RUU re-flashes the whole firmware and not only the system. However, since your phone is S-ON you aren't able to tinker with the firmware so that re-flashing the stock one is not necessary.