yashsingh1/xdaforums huggingface dataset:
[Verizon HTC One (M9)] mikeataol:
and I answered you, yes

you can follow the instructions for flashing a zip through rebootRUU as in the first few posts in this thread.

perhaps this is a clearer explanation

http://www.**********.com/how-to-restore-verizon-htc-one-m9-to-stock-using-ruu/

evidently that link not allowed

Method 1

1.Download the RUU file and copy it the Android/sdk/platform-tools folder where the ADB and Fastboot files are located. Kindly choose the location of ADB and fastboot tools if you’ve installed them somewhere else.

2.Connect your Verizon HTC One M9 to computer using a USB cable.

3.Navigate to the folder where you’ve extracted the ADB & Fastboot files and open a command prompt by pressing Shift + Right click on any empty space inside the folder, and select Open command window here from the context menu.

4.Just to make sure that you have set up ADB properly and your computer can communicate with your phone, type the following command in the command prompt and press Enter key:adb devices

If you see the serial number of your device on the command prompt, you’ve set them up fine.

5.Now reboot your HTC One M9 into Bootloader mode. You can do it by pressing Volume Down + Power keys simultaneously, or by executing the following command:adb reboot bootloader

6.In bootloader menu, scroll to Fastboot option and select it using the Power button. To test if your device is connected in Fastboot, execute the following command in the command prompt.fastboot devices

7.Since we are using a RUU file to install the stock ROM, boot the device into RUU mode. To do this, simply type this command:fastboot oem rebootRUU

8.Rename the downloaded file to 0PJAIMG.zip for convenience. Now execute the below command to install the RUU file:fastboot flash zip 0PJAIMG.zip

9.This command will install the RUU file and you’ll see a green progress bar at the bottom of the phone’s screen showing installation status.

10.In case if you see any message asking you to reboot or flush, issue the below command and start again from Step 6.fastboot reboot-bootloader

11.When you get a success message on the command prompt, you can reboot your device by typing the following command:fastboot reboot
[Verizon HTC One (M9)] Janat106:
See here
[Verizon HTC One (M9)] santod040:
What operating system are you on?

Have you tried same process, but with device in Download Mode?

Something off on your end.
[Verizon HTC One (M9)] mikeataol:
try command "htc_fastboot flash" , instead of "fastboot flash"

(use the htc version of fastboot command)
[Verizon HTC One (M9)] Janat106:
Windows 10 64bit

Tried and got this

"9 RU_SECURITY FAIL zip from usb command in download mode"

---------- Post added at 03:14 AM ---------- Previous post was at 03:13 AM ----------
[Verizon HTC One (M9)] mikeataol:
I ran the RUU today with no problem

I suggest you re-download it and give it another try

did you also reboot in oem rebootRUU mode?
[Verizon HTC One (M9)] Janat106:
yes
[Verizon HTC One (M9)] santod040:
Paste the output of the following command from download mode please:

fastboot getvar all
[Verizon HTC One (M9)] santod040:
[MENTION=8885801]Janat106[/MENTION] how much free Ram does your PC have?
[Verizon HTC One (M9)] Janat106:
12Gb
[Verizon HTC One (M9)] santod040:
I think your USB cable is faulty, or not proper for data transfer.

I suggest using oem USB cable, which should resolve your issue.

If it is the oem cable, then try a different USB port and a reboot of the computer.

Such as one on the back of the PC, rather then a front bay port.
[Verizon HTC One (M9)] Janat106:
I tried with oem cable, with galaxy s7 cable, with xperia z3 cable

tried on 4 usb ports

nothing helped....

but, I also tried with 4Gb Class 4 - nothing, 8Gb Class 4 - also nothing, tried with 16Gb Class 10 - nothing and after all this bought 32Gb Class 10, downloaded the same update zip that I downloaded to other sds and it found update :) finally I could flash my phone and now it works fine :cyclops:

PS all sd cards were Fat32 formated

Thank you santod040 for your patient and experience :D
[Verizon HTC One (M9)] santod040:
No problem, glad you finally got it to work for you.

Sorry to hear it gave you so much grief, but at least it's done now.

[emoji106]
[Verizon HTC One (M9)] Janat106:
But I got experience, knowledge is much better :D
[Verizon HTC One (M9)] DaveedDB:
Did you find out the problem though? Or did it just work
[Verizon HTC One (M9)] Janat106:
Yes, I could do only with 32Gb Calss 10 sd card. The other sd card didn't work.
[Verizon HTC One (M9)] santod040:
Get your Krack fix!

Updated all firmware zips for January 2018 OTA 4.49.605.16 Official Nougat

Current Software Update Benefits

Software Version: 4.49.605.16

Android® Security Patch Level: 2017-11-01, including Krack security patch

Firmware zips located in Post #2

Stock rooted flashable rom and Official RUU will be uploaded as time permits

:good:

​
[Verizon HTC One (M9)] mikeataol:
4.49.605.16_NoRedText_aboot

attached is "no red text" for today's firmware update 4.49.605.16

tested 2X on my M9

boot phone to downloader mode

fastboot oem rebootRUU

fastboot flash zip 4.49.605.16_NoRedText_aboot.zip

You will see "(remote: 90 hboot pre-update! please flush image again immediately )"

run command again after the phone has rebooted (it will be in RUU mode still)

fastboot flash zip 4.49.605.16_NoRedText_aboot.zip

then

fastboot reboot
[Verizon HTC One (M9)] santod040:
4.49.605.16 RUU Added to post #4

4.49.605.16 Official Signed RUU

Android 7.0 Nougat

Verizon HTC One M9

This RUU may be used on S-Off and S-On devices

and

WILL WIPE

DOWNLOAD IS IN POST #4

RUU:

0PJAIMG_HIMA_WL_N70_SENSE80_VZW_MR_VERIZON_WWE_4.4 9.605.16_Radio_2.15.C1144077@70710_CNV_1.26_002_re lease_520623_combined_signed_2_4.zip

ENJOY!

:good:

​
[Verizon HTC One (M9)] ElConedeTJ:
Are there any mayor benefits to update from 4.49.605.11 to 4.49.605.16? is it work the time and effort of wiping my phone (S-On and Locked Bootloader) and installing everything again by updating via the RUU?
[Verizon HTC One (M9)] mikeataol:
you can install the firmware stand alone, then install the rom bringing your version up, (no need to wipe)

from this thread: https://xdaforums.com/verizon-one-m9/development/6-0-verizon-htc-one-m9-marshmallow-3-37-t3318605 only if -S-OFF sorry

I think the only updates are Google security patches

https://www.verizonwireless.com/support/htc-one-m9-update/

if in the US you can also update through the HTC sync program which wont wipe , or take the OTA
[Verizon HTC One (M9)] ElConedeTJ:
I'm not in the US (I live in mexico) and because of that I'm not on the Verizon Network and that I know of that is the main reason the OTA or the HTC Sync Manager update won't work, because to update to the firmware I have I had to use the RUU becuse the HTC Sync Manager update just staid at 1%.
[Verizon HTC One (M9)] santod040:
Yes, so the choice is yours then.

If the Krack vulnerability isn't a concern, then I suppose there's no reason for you to update.

If it is, then I suggest you do.

Entirely up to you and each individual user, whether it's worth it or not.

I can't decide that for anyone.

I just make it available.
[Verizon HTC One (M9)] mikeataol:
Sync manager has worked for me even when carrier was not Verizon (3 different MVNO's)

OTA has worked for me on at least one.

If you can get to a PC in US , I think it will work

re: HTC Sync Manager update just staid at 1%

I think that's a temporary issue, by now I would think has been resolved
[Verizon HTC One (M9)] ElConedeTJ:
Thank You! maybe I should have rephrased my question as "what are the changes/benefits of the update?" and I would make the decision to update or not. If the update is only for the Krack vulnerability, then I will investigate what it is first then decide if it's worth it or not.
[Verizon HTC One (M9)] santod040:
Details:

https://source.android.com/security/bulletin/2017-11-01
[Verizon HTC One (M9)] lithophone:
I'm getting stuck on the Lineage logo after flashing 4.49.605.16_NoBoot-NoRecovery_firmware.zip. I had a similar problem back when we were going to 3.37.605.38. At that time, you said you didn't edit the android-info.txt so that it doesn't wipe. Is that the same case this time? Or am I the only one having this problem?
[Verizon HTC One (M9)] santod040:
Same edits as the twrp firmware zip and between the two, 50 or so downloads.

Since nobody posts in the vzw m9 threads anymore, unless they have an issue, I'm gonna guess you're alone.

As I made sure to edit the files specifically for that before uploading.

I'll triple check when/if I get time...doubt that's gonna help you much though.
[Verizon HTC One (M9)] mikeataol:
I used that file coming from the .11 with no issue.
[Verizon HTC One (M9)] tolba251:
H:\HTC\New folder\HTC_fastboot_and_ADB>fastboot oem rebootRUU

...

OKAY [ 0.062s]

finished. total time: 0.062s

H:\HTC\New folder\HTC_fastboot_and_ADB>HTC_fastboot flash zip firmware.zip

< waiting for device >

sending 'zip'... (2537621 KB) FAILdata too large, 2598524062 > 1451044864

FAILED (data size is too large(2537621 KB) for device to download ZIP file 'firmware.zip'

)

Execution time is 6(s)

H:\HTC\New folder\HTC_fastboot_and_ADB>
[Verizon HTC One (M9)] mikeataol:
what file did you rename to "firmware.zip"? (what are you trying to flash?)
[Verizon HTC One (M9)] tolba251:
HIMA_WL_N70_SENSE80_VZW_MR_4.49.605.16_AROMA.zip
[Verizon HTC One (M9)] mikeataol:
Hi,

That appears to be a ROM only, which u would flash using TWRP, AFTER getting the firmware updated if needed. It doesn't get flashed in RUU mode
[Verizon HTC One (M9)] feralicious:
Do I need to update firmware before flashing this? I'm on old firmware... don't know which but I got my phone in Jan. 2016 and got it rooted and s-offed then and flashed ViperRom (5.1 android) back then and nothing since.

If I need to update firmware first... can I just flash it off my sd card? I posted a thread for help inHelp forum in case I need more help than should be given in this thread: https://xdaforums.com/verizon-one-m...one-please-t3785614/post76416068#post76416068
[Verizon HTC One (M9)] foxa88:
hey guys i purchased apretty htc m9 with verry good condition .. the phone running stock MM rooted and s-offed

i am kinda new to htc coming from galaxy s4

i think its verizon one because of the cpu-Z told me its htcm9 vzw and the code name is himawl...

and the software running now its indeed verizon htc m9 one

the software number is (3.37.605.7)

the wierd thing is am from sudan ..

what bring a verizon mobile to sudan !? deep african country ..

whatever... iam planning to update it to the last nougat stock , my search bring me to this awesome thread by [MENTION=1331268]santod040[/MENTION] ...

i need help what should i flash exactly since am new to this RUU files and i cant lose the root and s-off cuz of my personal and country situation and of course icant receive OTA ...

i need help.

and

thanx for this great support and community
[Verizon HTC One (M9)] mikeataol:
RUU wont change S-OFF status

and

this rom is stock nougat with installation options

https://xdaforums.com/verizon-one-m9/development/6-0-verizon-htc-one-m9-marshmallow-3-37-t3318605
[Verizon HTC One (M9)] foxa88:
do i need twrb or stock recovery since idnt have twrb

1-can you xplain to me how to install twrb and wich version is the one to use with this rom ???

2- i thought the ruu is safest and the more stable thing to flash since i read alot about bricked phone cuz of (cid,mid) number !!?
[Verizon HTC One (M9)] DaveedDB:
With the SD card method it doesn't matter I also upgraded using RUU but remember to backup cause everything will be deleted
[Verizon HTC One (M9)] darken shyamal:
Its show fail

I do everything of your instructions but it shows,

7 RU_CID_FAIL CID IN ANDROID-INFO MISMATCHED

how to do?

my phone is under verizon.
[Verizon HTC One (M9)] santod040:
If your CID is not a Verizon CID, then it won't work.

Using Verizon and having a Verizon model of the phone are not the same thing.

Either you have a different variant or you've changed the CID.
[Verizon HTC One (M9)] darken shyamal:
how can i find what variant my phone is and cid?
[Verizon HTC One (M9)] santod040:
Boot to Download mode and enter the following command in terminal:

fastboot getvar all

Paste the results, but delete the imei and serial for security purposes.
[Verizon HTC One (M9)] darken shyamal:
can i flsh it in sd card? please give me the sd card firmwere link nougat.

can i flsh it in sd card? please give me the sd card firmwere link nougat.

---------- Post added at 09:37 PM ---------- Previous post was at 09:29 PM ----------

4.49.605.16_FULL_firmware.zip can i flash it in sd card? for my verizon one m9?

please tell me the full process in sd card metho.
[Verizon HTC One (M9)] santod040:
Yeah just hard reboot and hold volume down and try again.

You should also be able to do it in Download Mode on the M9.
[Verizon HTC One (M9)] j33zy:
I'm not sure if it likes the file. I'm not even able to unzip it on my Windows PC. I've tried re-downloading the file twice now.

Here is the new error I'm getting:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash zip firmware.zip

target reported max download size of 800000000 bytes

sending 'zip' (74990 KB)...

FAILED (status read failed (Unknown error))

finished. total time: 5.463s
[Verizon HTC One (M9)] santod040:
The file is fine.

It's a signed firmware zip straight from the OTA.

You can extract it with 7-zip but not with the standard Windows zip utility.

Not sure why you'd want to unzip it though.

Problem is probably your fastboot.

Maybe you should try HTC_fastboot.

Added HTC_fastboot to Firmware post #2.

Extract to your adb/fastboot firectory.

Change command to "HTC_fastboot flash......"
[Verizon HTC One (M9)] aer0zer0:
It has been my experience that HTC fast boot works better in all situations with HTC devices
[Verizon HTC One (M9)] vedru:
Thanks santod040, awesome work on that. Just out of curiosity, will you also add the official RUU also or will the roms only be rooted ones?
[Verizon HTC One (M9)] santod040:
Sure, when it's available.

Currently, it is not yet.

Usually takes a few days for it to become available, at least a day or two.
[Verizon HTC One (M9)] im_high_tech:
Hello Santod,

I highly appreciate your work and effort and just sent you some beer money for your time and effort. You put up with all of us, including me so you definitely deserve it. Can't wait to see your MM Rom soon.
[Verizon HTC One (M9)] dottat:
Folks I just dropped in to make sure everything was good here and to my surprise had a cleanup in aisle 5 already.

Should I need to revisit this thread I will be driving a bull dozer down the aisle and removing any/all foul objects.

Please stay on topic and consider yourself warned.
[Verizon HTC One (M9)] DSGONDREZ:
Stuck on Verizon red screen

I have been attempting to flash the 3.37.605.7_OTAPkg.zip with no luck. I have tried several times with adb as well as with an SD card. I am stock unrooted. from recovery mode using adb it will go to about 50% before rebooting and finishing the install from the phone. the phone reboots and installs several times and then reboots. This gets stuck on the red Verizon screen. When going to recovery and loading from an sd card I can load everything fine. The phone does the same reboots and then gets stuck on the red Verizon screen. I have been reading the posts and do not believe I am missing anything. Thank you for your help.
[Verizon HTC One (M9)] dottat:
How long did you let it on that screen. My daughters phone took about 10 mins on that screen and perhaps 30 to rebuild art for 105 apps. Just took forever.
[Verizon HTC One (M9)] DSGONDREZ:
I let it sit for about an hour just to be sure.
[Verizon HTC One (M9)] dottat:
If you are s-on and the firmware was updated the only thing I can recommend is to verify on the download menu that your phone did in fact flash the firmware. Then factory reset. If that doesn't help we may need a new ruu to fix you if s-on. If s-off, we have options.
[Verizon HTC One (M9)] hgoldner:
I was a tester on the Marshmallow ROM and rebuild always took forever every time they did a ROM update. I usually have 150+ apps installed and the "let it sit for an hour" is pretty good advice. It can also get hot during the cache rebuild, so best to keep it out of a case and on a charger. Occasionally, I'd even perch it over a glass of ice water or on a plastic "ice block" to keep it from overheating during the rebuild.
[Verizon HTC One (M9)] hallstevenson:
I had no issues using download mode to flash the firmware myself.
[Verizon HTC One (M9)] aer0zer0:
just as a FYI, the new elemental-X kernel works

it can be found here: http://xdaforums.com/one-m9/orig-development/kernel-elementalx-m9-0-1-t3087586
[Verizon HTC One (M9)] j33zy:
I'm having the exact same issue since flashing the OTA update via recovery. I can get into recovery, and it appears to be on 6.0 firmware as it's a newer recovery. I am unable to get past the red Verizon splash screen when phone first loads. Any suggestions on what to do to fix my phone to at least make it workable? I've tried to fastboot flash zip the stock RUU on the site but I believe because my phone is detecting a newer version it is not letting me. I am S-ON.
[Verizon HTC One (M9)] Captain_Throwback:
I recommend fastboot flashing the full, signed firmware zip via RUU mode. It's possible your bootloader or boot.img didn't get properly updated.
[Verizon HTC One (M9)] j33zy:
I've downloaded the full signed firmware from: http://xdaforums.com/verizon-one-m9/general/ruu-vzw-3-10-605-7-0pjaimg-signed-t3277629 and when I run it via htc_fastboot I get the below error message. I think my next step might be to pickup a microSD card reader and put it on my microSD card and try from that.

C:\Users\Sean\Desktop\HTC_fastboot_and_ADB>htc_fastboot erase cache

erasing 'cache'... OKAY

Execution time is 28(ms)

C:\Users\Sean\Desktop\HTC_fastboot_and_ADB>htc_fastboot oem rebootRUU

... OKAY

Execution time is 56(ms)

C:\Users\Sean\Desktop\HTC_fastboot_and_ADB>htc_fastboot flash zip 0PJAIMG.zip

sending 'zip'... (79724 KB) OKAY

sending time = 5.459 secs

writing 'zip'... (bootloader) HOSD CL#669662

(bootloader) ERR [SD_UPDATE_ERR] Main version NOT ALLOWED

(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 19

(bootloader) ERR Update zip file failed.

(bootloader) ERR ZIP ERROR, exit read zip loop

(bootloader) ERR ZIP signature checking failed...

(bootloader) Update zip file OK

(bootloader) ERR ZIP ERROR CODE, 19

(bootloader) end@Done

FAIL19 RU_MAIN_VER_FAIL os-version in android-info missing or i

FAILED (remote: 19 RU_MAIN_VER_FAIL os-version in android-info missing or i)

Execution time is 10(s)
[Verizon HTC One (M9)] Captain_Throwback:
The one from the current version, i.e. the first page of this thread. You tried flashing an old version.
[Verizon HTC One (M9)] santod040:
Not sure why there's issues with flashing the OTAPkg.zip.

Also not sure why folks who are s-on aren't just taking the OTA, but that's not the apparent issue regardless.

I assume they aren't on the Verizon network or something, again irrelevant to this post.

I've pulled that file as of earlier this morning.

I'd advise anyone stuck with red Verizon boot screen, to load HTC Sync Manager and attempt to do the Repair process.

Those who are unlocked, take the OTA through the network, or wait until the rooted roms are posted when I get home from work.

The missing Android info in the post above, could possibly be tied to not having updated firmware since running an older Twrp which leaves the OS version blank in hboot.

Not that this helps anything at this point...
[Verizon HTC One (M9)] santod040:
Sd card process, is the same process as Ruu process on the first page.
[Verizon HTC One (M9)] darken shyamal:
Help me - give the link, verizon, nougat, sd card

Please give me the verizon nougat sd card flash ruu link. I download one file but when i extract its say file corrupt, the file link here https://androidfilehost.com/?fid=818070582850488127
[Verizon HTC One (M9)] santod040:
You can't simply extract an encrypted Ruu.

It's not corrupt, it's encrypted and signed.

All files needed are posted.

Follow the instructions...
[Verizon HTC One (M9)] estofjlw:
From https://xdaforums.com/showpost.php?p=65358023&postcount=3

[MENTION=1331268]santod040[/MENTION] I see the red text zip is only posted last for 3.37.605.28 - I completed the root process on my HTC ONE M9 (verizon) using a downgrade from 605.28 to 605.7 and used Sunshine to get S-off and unlock.and am now on Magisk as root

Then the red text showed up again

Is there a 4.405.605.16 red text zip or will the 3.37.605.28 zip work ??
[Verizon HTC One (M9)] lithophone:
I used the one uploaded by mikeataol here. Works great, no problems.
[Verizon HTC One (M9)] imonxda:
Does anyone know if it's possible to downgrade firmware from 4.49.605.xx down to 3.xx.605.xx IF you are S-Off?
[Verizon HTC One (M9)] imonxda:
@santod040 If you're still around and not sick of answering Qs :) would you know the above or below?

I guess no one looks at this thread anymore, but I'm gonna ask another question anyway, maybe I'll get lucky:

Why is it on the M8 when formatting DATA where you have to type "yes", it will wipe TWRP config in SDCARD/TWRP, but on the M9 formatting DATA does not wipe TWRP config? Same with wiping Internal using advanced wipe in TWRP does not wipe TWRP config on M9, but it does on M8.
[Verizon HTC One (M9)] santod040:
On a lunch break and just going from long ago memories:

If I recall correctly, the M9 has A/B partitioning.

Which gives Twrp somewhere to store persistent configs.

On the M8, when you wipe all, it's wiping your only partition, which is the only place for the config file to live.

Hope that answers your question.
[Verizon HTC One (M9)] imonxda:
Hope you're enjoying your lunch :) You get back to me whenever you got time, and thank you.

If it has A/B partitions, would that explain why installing anything that has to do with flashing a boot image or recovery image using TWRP does not work? Examples:

Flashing systemless root with SuperSU or Magisk does not work. It flashes the installer and the log shows that it is patching and flashing the boot image, but after reboot no root - the only way I'm able to get root is to patch the boot image with magisk app, then use fastboot to flash the patched boot image.

Using TWRP to flash boot .img feature doesn't work. I cannot use TWRP to flash boot image or recovery image, it's super annoying. When I do, the flashing process gives no errors, it completes, but after reboot the boot or recovery partition is unchanged.

Installing a rom that has systemless root installer does not work - same behavior, install seems to go fine, but after reboot, no root.

However, using fastboot to flash boot or recovery works fine. Yes, I've tried many different TWRP versions.

You think it's the lastest Nougat firmware that's causing this behaviour? Which brings me to my other Q I asked a while back:

Does anyone know if it's possible to downgrade firmware from 4.49.605.xx down to 3.xx.605.xx IF you are S-Off?

I'd like to get Marshmallow firmware so I can have MultiROM - MR does not work on this Nougat firmware, probably because MR TWRP can't inject the MR trampoline boot menu into boot image for the same mysterious reason as it can't flash boot or recovery images, even tho MR TWRP and MR flash installer all work and install fine and have no errors. I have another M9 (Sprint) that still has old MM firmware and MR works fine on that, so does flashing .img with TWRP for boot and recovery.

BTW, this M9 with N firmware is VZW. Comparing the Download Mode and BootLoader screens for Sprint VS VZW, I notice for Sprint it says "UNLOCKED" and S-Off, but VZW says "LOCKED" and S-OFF - have I not unlocked something on the VZW when I did S-Off? I used XTC2Clip to S-Off the Nougat VZW M9, but I used Sunshine to S-Off the MM Sprint.