yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M9)] Kisakuku:
You upgraded the firmware, but not the ROM. Your old MM ROM fails to boot on the new N firmware. Flash an N-based ROM from TWRP to get your device to boot.
[Sprint HTC One (M9)] OMJ:
If you're using a custom rom or even if /system has been modified at all, a stock boot (in the firmware u just flashed) won't boot.

Flash matching rom or supersu

BTW, you'll need to flash TWRP again
[Sprint HTC One (M9)] jpwhre:
Split screen question?

How?

Couple days ago I was at work and needed to use my phone urgently. Opened up and swiped up for phone, and to my surprise my android message was on bottom, phone was on top, and an overlay to left on top of phone was my contact list. It took me a minute to notice my recent button down below wasn't a square, but 2 windows stacked. I pressed and held till it highlighted and swiped up.

For the life of me, I have no idea how it got that way. I can't find option in settings.

Running stock rooted version of this rom. xPosed hasn't update (last I checked anyway) running kernel that comes with rom. And I doubt tasker has anything to do with it.
[Sprint HTC One (M9)] shaqman89:
That is one of the new features of nougat.

There are various sites mentioning more details on this, one if it is: [youtube]lTPMNY16s3g[/youtube]
[Sprint HTC One (M9)] jpwhre:
Thanks. Nice knowing it's now native. Now I have it figured out, sweet.
[Sprint HTC One (M9)] conan785:
Thanks

I finally figured that out. It was a bad day.....

On a side note I tried a PRL and Profile update and they both failed. is that normal with this build?
[Sprint HTC One (M9)] pmb88:
Update failing in adb

I have issues where if I downloaded the OTA from my phone and tried to install, it would hang at 25%, and aborted the download.

Tried wiping/cache & going back to default, that didn't work.

Next, I downloaded the OTA 4.27 on the first page. I tried updating via adb. It went well for a while until it aborted with this message:

My specs are:

3.41.651.41

HTC Sense 7.0

Security Patch Nov 1st 2016

S-ON

Haven't rooted.

Could it be I'm using the wrong version?
[Sprint HTC One (M9)] zer0ality:
Hello I am S-OFF, Bootloader Unlocked and on Stock Rooted 7.0 ROM posted here (thanks!) . I need to downgrade to 6.0 . Can I know the best way to approach this? Do I use an RUU and if so do I need to relock my bootloader?
[Sprint HTC One (M9)] OMJ:
yes, u MUST use a 6.0 RUU to downgrade, no you don't need to lock BL
[Sprint HTC One (M9)] flaviusbelovan:
Help, no OS

Need help plz, have a htc one m9 no OS

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) imei:

(bootloader) version-main: 2.10.161.7

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U11440601_86.09.50723G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: VODAP304

Need ruu.zip or .exe

tanx.
[Sprint HTC One (M9)] jpwhre:
It's in the OP. First one under "0PJAIMG ruu"

Download t and put on main folder of your sd card and put it in your device.

You have to rename file to just

0PJAIMG.zip

Copy and paste that or something. It starts with a "zero" not a letter. And has to be all upper case letters following.

Once on card and in device, press power and volume down till you get black screen. Yellow text is warning about flashing custom software and such, just press volume up. It is pure stock from Sprint/HTC and will get you going.

I never have luck on newer pc.ruu files. They never start after waiting 10 minutes for first pop up that you have to agree before proceeding. Been searching and found you have to have all c++ packages to run. I have installed as far back as I can find from Microsoft, plus visual studio 2015, 2017, visual studio 2017 tools for unity, unity, visual studio code, Xamarin Workbooks, Xoreax incrediBuild, and I still can't get it. Both windows 7 and Windows 10 insiders builds.
[Sprint HTC One (M9)] JanetWee:
Getting errors

Hi im trying to update my RUU but keep getting errors

when i try to do the zip method i get

12 ru_zip_error

12 ru_zip_error

fail12 ru zip error

Do i need to relock the phone to do this?

My phone is sprint htc one m9 and its unlocked with s-off

Some detailed instructions would be awesome

---------- Post added at 11:22 PM ---------- Previous post was at 11:10 PM ----------

I'm having this error too. What do you mean you have to flash the new firmware first?
[Sprint HTC One (M9)] Macropoutsis:
Hey J. I'm assuming this is completely stock other than the rooting? Because I can't write to the sd card.
[Sprint HTC One (M9)] itc518:
That's weird, I'm just on stock rooted now and I can write to SD.
[Sprint HTC One (M9)] OMJ:
the boot.img has been modified for unsecure & init.d support, SuperSu & busybox added, but no apps were removed

deodex version coming soon
[Sprint HTC One (M9)] thicklizard:
cant get firmware to flash via download mode or fast boot. both error out with failed messages

(bootloader) Perform pre-update

(bootloader) ERR ZIP signature checking failed...

(bootloader) ERR [SD_UPDATE_ERR] Not allow flash image except boot/recov

(bootloader) ery/system

(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 14

(bootloader) ERR Update zip file failed.

(bootloader) Update zip file OK

(bootloader) ERR ZIP ERROR CODE, 14

(bootloader) end@Done

Cant wait for SOFF
[Sprint HTC One (M9)] pinky059:
Same here. Searched around and it doesn't appear anyone has successfully updated their firmware this way; using SD card method or fastboot method (download or bootloader).
[Sprint HTC One (M9)] Aldo101t:
someone posted a method that works, it's here in the forums somewhere

you flash the system.emmc.win first with fastboot then boot to twrp and restore the full rom =, then flash stock recovery, and boom. from what I read, can't remember it all or where it is. but it worked for 3 different people.look around maybe you can find it.

this is for the OTA.
[Sprint HTC One (M9)] OMJ:
OP updated w/ 1.32.651.30 deodexed stock rooted ROM

big thx to [MENTION=398245]LeeDroid[/MENTION] for the deodexing help!
[Sprint HTC One (M9)] Macropoutsis:
Thanks J. Any sprint junk taken out? And is tethering included?

---------- Post added at 07:00 PM ---------- Previous post was at 06:30 PM ----------

One thing about the odexed stock rom. USB debugging does not work. If you turn off usb debugging, pc sees the phone for file trans. If usb debugging is on, pc doesn't see the phone. ADB doesn't work ether way. :crying:
[Sprint HTC One (M9)] trev23sks:
Link to stock recovery?,
[Sprint HTC One (M9)] OMJ:
stock, no apps removed...usb debugging is a HTC issue
[Sprint HTC One (M9)] benny3:
I havn't had a problem with usb debugging or adb
[Sprint HTC One (M9)] Macropoutsis:
Not trying to bring up other roms but usb debugging works on Viper One. And it works on the stock rom before I rooted.

---------- Post added at 08:14 PM ---------- Previous post was at 08:13 PM ----------

I wonder why mine doesn't work. :confused: Are you on the odexed rom?
[Sprint HTC One (M9)] OMJ:
Stock rom doesn't have unsecure boot.... Maybe the international roms don't have that issue with unsecure, not all roms are equal.
[Sprint HTC One (M9)] ReproOne:
Deleted. Post in wrong thread.
[Sprint HTC One (M9)] mswlogo:
First thanks to [MENTION=506238]OMJ[/MENTION], [MENTION=1310675]chas123[/MENTION], etc. for some fine work. My annual dues are coming soon.

Can someone help confirm my understanding of how things stand with the M9 (vs M8, M7) etc.

That is, rules of the road for M9.

I only recently unlocked, used Beta TWRP to do backup and flashed Bad Boys and all is good.

But I want to understand about what components I might need in the future to take an OTA or run RUU.

So the strongly recommended procedures say do a Nandroid of stock before you root or flash a rooted ROM. I understand that.

But that backup is not fully restorable by TWRP. Correct?

If say I lost that backup, the critical files needed are already uploaded here?

To restore things enough for OTA, I would need a Stock System and Stock Recovery.

I'm not concerned with the details of that procedure (I can look it up, but see below). I'm just what components I need to keep handy.

Having said that, I know there were issues with some folks getting back to stock to take OTA.

It would be so nice if the 2nd post in this thread (or perhaps in TWRP thread) had that final sorted out procedure. So that one could find it 6 months from now :).

Another confusion I have, is this initial backup we do is not Restorable because System is Read Only when it's made?

And after Root it has a different structure so it cannot be restored with TWRP (before or after root)?

So After root and I make a Nandroid backup (including system), is that restorable like it always used to be (ala M8, M7)?

Also on the initial backup of RO only virgin system. Is the nandroid backup format exactly in the format needed for bootloader flashing?

If one wants to run RUU it will have the same stock requirements as an OTA?

S-Off really won't change anything other than except you want have to switch to stock (which would lose data) to take OTA or RUU (as always)?
[Sprint HTC One (M9)] Captain_Throwback:
Did you actually read the second post in the TWRP thread?
[Sprint HTC One (M9)] mswlogo:
Absolutely. It's great information. But it does not answer some of my questions. And you can infer and assume what the answers to my questions are from that info.

But I don't want assume anything.

Most my questions are just asking for confirmation of my understanding.

There is no mention about RUU, nothing mentioned about how subsequent backup and restore works once System is RW.

The procedure for actually getting a system back in stock is buried in a thread somewhere. I've read every post on M9-Sprint.

P.S. I read your post a few days ago. When I was ready I went to that post and went to the link at the TOP of that post (since the topic is more or less your BETA). That is NOT the TWRP people want.

I'd suggest putting the Beta link at the top of the post or put a note saying something like [This is not the BETA you probably want, see link below].
[Sprint HTC One (M9)] Captain_Throwback:
I will attempt to make the post clearer. Per your suggestion, I've also moved the "official" links to the bottom of the post. Thanks for your feedback.
[Sprint HTC One (M9)] Aldo101t:
Geez Louise. I don't know how much clearer he can be, where ever it is on the page.

also: I don't know why everone is so darn concerned about OTA's. I've never taken one. all we need is s-off, and your all set.
[Sprint HTC One (M9)] mswlogo:
Geez Louise, what's the big deal of my affirming some assumptions.

There was nothing wrong with what Captain wrote but there further implication of what he wrote that I wanted to make I understood.

Why the concern about OTA?

First S-OFF is not released or tested on Sprint.

If I sell my phone, I like to run RUU on it.

If something gets messed up, or a mistake is made by me (or even by a developers), the ability to run RUU can be valuable.

Oh you didn't know OTA has the same requirements as RUU. Oh, I didn't know either, which is why I asked and nothing is in the TWRP thread about RUU.

You could replace all my "?" with "!" and just say "Correct".
[Sprint HTC One (M9)] OMJ:
Flash the latest firmware from OP, then use the ruu zip method
[Sprint HTC One (M9)] flaviusbelovan:
No luck with that, error message :

Failed : -2, 12: fail to flash via downloadzip

Failed : -2, 12: fail to flash via downloadzip

Failed : -2, 12: fail to flash via downloadzip

power to continue

Photo of phone https://mega.nz/#!pCx2TIhD!87_9kLxsAqMIjHL7YJZd2WSf7t-PoJ1yGoqHKYLmLqk

The phone was sent by Vodafone España
[Sprint HTC One (M9)] OMJ:
the files in this thread are for Sprint only, you do not have a Sprint M9

(bootloader) product: htc_himawhl

(bootloader) cid: SPCS_001

(bootloader) mid: 0PJA20000
[Sprint HTC One (M9)] flaviusbelovan:
Sorry, I'm new here, my mistake
[Sprint HTC One (M9)] Uzephi:
This is the sprint HTC one M9 forum. These RUU are only for the sprint model and won't flash with your CID. If it happens to flash, you'll likely be in hotter water than you are in now.

Edit: oops, was on wrong page and didn't know that was already answered.
[Sprint HTC One (M9)] jpwhre:
What is your device? What country? What carrier?

With that info, one of us here can point you in the right direction. You may be on your own when you get there, but we could help push you there.
[Sprint HTC One (M9)] flaviusbelovan:
Thank you very much, i solved my self the problem but you cant send my a link were is this subject to help others

my phone is a HTC one m9 carrier Vodafone Spain

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) imei:

(bootloader) version-main: 2.10.161.7

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U11440601_86.09.50723G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: VODAP304
[Sprint HTC One (M9)] OMJ:
M9 INTL forum: https://xdaforums.com/one-m9

M9 variants firmware: https://docs.google.com/spreadsheets/d/1ZaiJ3F_f76sVa4daU5H62OYi5Bj23LEBBv4xDTQ8y-M/pubhtml

taken from this thread: https://xdaforums.com/one-m9/development/firmware-t3068243
[Sprint HTC One (M9)] zer0ality:
I have tried all the 6.0 RUU (executable) except 3.4. 651.4 and they all give me a "Signature Error"

I'm on Stock Rooted 7.0, S-Off / Rooted/Unlocked and I need to downgrade. Someone please tell me if I need to do the sd card zip method or am I doing something wrong?
[Sprint HTC One (M9)] OMJ:
Hmm, shouldn't see a sig error when s-off

Post a getvar, with serial # etc removed
[Sprint HTC One (M9)] hasseye:
Hey OMJ, can you confirm that the signed firmware is uploaded and working just fine? Every time I download it, I get an error saying it's corrupt. Downloaded it multiple times. I'm S-on, and relocked my device, tried to just use the RUU, and that didn't work either, I got an error 164 (?) I believe which pretty much said this wasn't the correct version. Shocked why it was such a pain getting this, as normally it's very quick and painless.

Look forward for your help.
[Sprint HTC One (M9)] OMJ:
Where are you seeing the corrupt msg? If you're trying to open the zip, you can't, it's signed/encrypted

Another option is to flash latest M ruu then ota
[Sprint HTC One (M9)] zer0ality:
sorry for delay.

(bootloader) product: htc_himawhl

(bootloader) version-main: 4.27.651.4

(bootloader) boot-mode: download

(bootloader) version-baseband: 4.00.C1310411@70106

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA20000

(bootloader) cid: SPCS_001

I've tried ALL the 6.0 RUU ( executable) and all of them throw a sig error (132)
[Sprint HTC One (M9)] OMJ:
Odd, my only suggestion would be to flash the latest full firmware for M (from RUU) , then try the same version ruu. My thought is just as you need to be on N firmware before you can flash the N RUU, maybe the same is true when downgrading.

https://www.androidfilehost.com/?fid=385035244224405570
[Sprint HTC One (M9)] zer0ality:
tried to flash the file you sent . it throws an error in twrp :[ . Did I do it wrong?
[Sprint HTC One (M9)] OMJ:
Firmware is not flashed in TWRP, see OP for firmware flashing instructions
[Sprint HTC One (M9)] zer0ality:
Sorry about that . Went dumb for a moment

I did that now .... turned itself off . didn't start . booted into recovery and I actually lost TWRP .

Shows me an "Android Recovery"

I tried sideloading the 6.0 stock rooted rom from adb since there's an "apply update from adb " option but it doesn't work.

Can I sideload the RUU.zip file . I don't think it works that way. Or maybe I push it to SD card and see if it detects it next time I go into download mode?

For what it's worth I removed the leftover write protections that still persist after S-Off.

Didn't know downgrading would be so hard. Now I gotta have it no matter what. :D

It's softbricked but I've dealt with worse ( I think) . Keep helping me out please.
[Sprint HTC One (M9)] OMJ:
Yeah flashing full firmware will overwrite twrp. Try flashing the M ruu now... Or flash latest TWRP, then rom
[Sprint HTC One (M9)] zer0ality:
managed to flash stock rooted 6.0 rom without errors in twrp .

does the whole thing . "Android is starting " "optimizing apps" finishes it and goes right back to htc logo and does it again . Any ideas how to get out of this loop?

I can obviously go back to twrp whenever I want but what do I do is the issue here . :(
[Sprint HTC One (M9)] OMJ:
I don't know why you're avoiding the ruu, if you're having this many issues... Just flash it & start fresh
[Sprint HTC One (M9)] thicklizard:
In twrp wipe>advance wipe>select data then reboot
[Sprint HTC One (M9)] zer0ality:
THE RUU has power man. Thanks a lot for your help. I've managed to downgrade. :D

Should've seen this sooner. Now gotta do twrp and supersu again. Thanks for replying though :)
[Sprint HTC One (M9)] koolcat7:
So I have an HTC M9 Sprint, unlocked, rooted, still s-on. After i rooted, the stock android 5.0 worked fine and all but i wanted 6 Marshmallow. Flashed various versions of the roms on this page and I cannot get APPFREEZER apps to freeze any apps on these roms. I don't understand... App freezers worked on the stock ROM. I made a TWRP stock backup but it got lost, and now I'm unsure how to go back. I'm on OS-3.41.651.4. Any suggestions appreciated!
[Sprint HTC One (M9)] OMJ:
you have to be s-off to downgrade, but really you shouldn't have to...the apps you're freezing are they apps u don't want? if so, why not just remove them in twrp? then there's no need for a app freezer...
[Sprint HTC One (M9)] koolcat7:
Thanks for your reply. I found my twrp backup and was able to go back to stock rooted where app freezers work but its laggy and slow, your roms much better. But why won't app freezers work in your roms listed here? I wasn't aware you can remove apps in TWRP... But i need something that freezes because some frozen apps I do use on occasion. Do you think the app freezers not working has to do with me still s-on? Also I'm using the latest version of TWRP if that matters.
[Sprint HTC One (M9)] OMJ:
when I say remove apps in twrp, you basically use the file explorer to delete the apps u want from /system/app & /system/priv-app

I have no idea about your issue w/ app freezers, have u tried titanium backup?
[Sprint HTC One (M9)] koolcat7:
Gotcha. Didn't know you could do that in twrp. I have tried titanium backup to no avail. Tried all similar programs with no luck. I've never had so much trouble with a phone before. I flashed your rom back to try again and now twrp won't let me restore my stock backup saying "cannot write to /system" when its mounted as read write. Smh. Coming from the M8 and I never had issues like this. At a point where I'm wondering if I should s-off and keep trying or just buy a different phone :(
[Sprint HTC One (M9)] brybo86:
Hi i have a Sprint HTC ONE M9 S-off

currently running viperone 4.1.0

12 ru_zip_error

12 ru_zip_error

fail12 ru zip error

was the error i get when trying to flash the 2nd link in the OP

0PJAIMG_Sprint_HTC_One_M9_4.27.651.4_RUU.zip

renamed to "0PJAIMG.zip" and left on SD card.

so i download the 4th link under firmware from the OP

4.27.651.4 Full Firmware from RUU (fastboot flashable)

changed name to "0PJAIMG.zip"

and booted into download mode and let it do its thing

now i am at the white HTC screen forever, i can get into bootloder and stock android recovery

i have the full file ruu, 2nd link in OP on my sd card, do i need to rename it to "0PJAIMG.zip" ?

I went to the recovery and did the adb option

do i need to type "adb sideload fastboot oem rebootRUU" NO didnt work

how can i rename the full ruu.zip on the sd card to 0PJAIMG.zip using adb?

and change the name of firmware file that is currently named 0PJAIMG.zip? nevermind

... i was able to remove sd card and rename the file on computer to "0PJAIMG.zip" and reinsert to phone

looks likes its doing something.... i feel like im about to brick it....

crosses fingers
[Sprint HTC One (M9)] OMJ:
what are u trying to accomplish?

12 ru_zip_error means: signature fail - phone expects a HTC signature and finds none or a wrong one.

maybe a bad download?

so when u flash the full firmware, it overwrites twrp & also the modified boot.img from the custom ROM...stock.img wont boot on a modified /system (custom ROM)

depending on what you're trying to accomplish, to get it to boot, you'll need to flash twrp, then dirty flash your ROM or flash supersu or magisk...either one modifies the boot.img

if u want to return to stock or just a clean start, I'd download the RUU again & try again, renaming to 0PJAIMG.zip
[Sprint HTC One (M9)] brybo86:
i was on 4.1.0 trying to get to the latest viperone 6.1.0

K I was able to use 2nd link zip renamed to 0PJAIMG.zip

after a long boot screen it is optimizing apps.

once this is done

to get back to 6.1.0

what steps do i need to take?

i have TWRP 3.1.1 on my computer can i flash it with the stock recovery or do i need to adb it?
[Sprint HTC One (M9)] OMJ:
I know nothing about viper versions
[Sprint HTC One (M9)] brybo86:
Thanks for your help OMJ i read some posts back on page 115 where someone had the same issue and it worked for me as well.

after flashing the firmware only zip it allowed me to rename the stock full ruu and flash it

then i used adb to flash TWRP and used twrp to flash supersu, then Viper.
[Sprint HTC One (M9)] koolcat7:
Does the firmware version have to match the RUU version? Ex. must flash firmware that matches RUU?
[Sprint HTC One (M9)] OMJ:
firmware should always match your OS version....RUU simply restores phone back to factory firmware & OS...if you are s-off, you can flash older RUU to downgrade
[Sprint HTC One (M9)] mswlogo:
I can't seem to update my firmware.

I've tried the RUU and the FUU Method. Says I have wrong firmware. Goes through the check showing old and new firmware starts downloading and says get the correct firmware.

The phone is S-OFF and has old Bad Boys and Team Recovery on it (like a year old).

I don't recall if I ever did any flashing on this computer or not but it's Windows 10 x64 (Build 1703).
[Sprint HTC One (M9)] OMJ:
Need more info... What’s your current version, and which are you trying to update to?
[Sprint HTC One (M9)] SirDeuce:
Okay, quick question. Still shaky on this and I second guess myself every time. I am returning my phone to Sprint and want to root it back to original stock. Currently have S-off now so I just want to know what I need to do. Download the first link on the page (0PJAIMG_Sprint_4.27.651.4_signed_firmware.zip) to my SD card. Then completely wipe phone using TWRP and do it 2nd time just to be sure. Then run the zip file from TWRP? I currently am on a Viper Rom so the last post with the Viper Rom issue has me a little nervous. Thanks for the help
[Sprint HTC One (M9)] OMJ:
if you're returning to stock, flashing only the firmware isnt enough, you need to flash the latest RUU

https://www.androidfilehost.com/?fid=673368273298946816

Rename to 0PJAIMG.zip, copy to sd card, boot into download mode, it should scan card & prompt to install

once it's done, the phone will be 100% stock except for being s-off & unlocked bootloader
[Sprint HTC One (M9)] SirDeuce:
Thanks so much.
[Sprint HTC One (M9)] SirDeuce:
I did as instructed and then I received the following errors listed in the quote below:

I tried it twice and it gives same error then reboots back into the Viper Rom for initial setup like a brand new phone again (which thankfully means I didn't brick it LOL). I downloaded the link you shared. Am I missing something or doing something incorrectly?:confused: Should I wipe anything specifically? Does it matter if I flash from the recovery (TWRP) or in download mode? Thanks again for your help.
[Sprint HTC One (M9)] OMJ:
what's your current firmware version? if it's pre-N you'll need to flash the N firmware 1st b4 flashing the N RUU
[Sprint HTC One (M9)] SirDeuce:
That would be the culprit then. Just updated to Nougat so I will now try your previous steps. I can relock the bootloader after I flash stock RUU?