yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
That link doesn't take me anywhere but back to this thread. This is the post with the instructions you need: http://xdaforums.com/htc-10/how-to/stock-stock-collection-recovery-ruu-ota-t3359297/post66790169
[HTC 10 Guides, News, & Discussion] gotAndroid10:
This is what I gathered from reading through this thread and put it together in step by step instructions.

Hopefully this will help those looking to update their firmware for the unlocked US variant.

My HTC 10 is the unlocked US variant with firmware version 1.21.617.3 that is also bootloader unlocked, S-Off, and is running LeeDroid ver.1.0.1

1) Download this file at h t t p : / / d - h . s t / H r J 7 thanks [MENTION=1162986]Captain_Throwback[/MENTION] (This will flash stock boot, system, and recovery)

2) Rename downloaded file to "2PS6IMG.zip" (without the quotes) and place it in the root of your external SD card.

3) Download the 1.21.617.3 -> 1.53.617.5 OTA file in the OP.

4) Extract the firmware.zip out of the OTA file in step 3.

5) Boot into download mode by entering this command "adb reboot download"

6) Your device should prompt you to flash the "2PS6IMG.zip" file. Press volume down to flash that file.

7) Once the flashing process is complete, press the power button to turn off device

8) Boot into download mode by holding the volume button down while powering on your device

9) Flash the OTA firmware.zip from step 4 file by entering this command: fastboot flash zip "path to your firmware file"

10) It will give you an "error 90" telling you to flash the file again.

11) Phone will automatically reboot back into download mode. (This happened to me as I began to re-type in the command to flash the firmware.zip)

12) Re-enter the command: fastboot flash zip "path to your firmware file"

13) Phone will update to latest firmware.

14) Flash TWRP by entering: fastboot flash recovery "path to twrp.img"

15a) Reboot back into the phone and check if the firmware and baseband have been updated. (Build number 1.53.617.5 and baseband 1.0U010071@60419.3_45.00_F)

15b) Delete or rename the "2PS6IMG.zip" file on your external SD card to something else so that it won't automatically ask you to flash it the next time you boot into download mode. Thanks to [MENTION=2677117]FreydNot[/MENTION] for pointing this out!

Optional

16) Reboot into TWRP

17) Flash ROM of your choice. (I dirty flashed LeeDroid ROM)

18) Reboot device

note: After all this I only had to setup a couple of things on my device like Adaway and a few LeeDroid tweeks. All my other apps were untouched.

Feel free to make any corrections or suggestions to this guide cause I'm still pretty noob to flashing stuff on HTC devices, but this is what worked for me.
[HTC 10 Guides, News, & Discussion] rogiebear07:
I don't have an external SD card yet, so I manually flashed the boot, recovery, and system images. Once I completed that successfully, I moved on to flashing the firmware zip, but I continually was met with an error (a different error). My phone will no longer boot.

I tried factory resetting from recovery, and that didn't help. I just want to get back to plain old stock where I can get OTAs and all that plain vanilla stuff. Coming from a nexus device, this is a lot more challenging when there's no factory images posted anywhere (I think?).

I'm getting a micro SD card tomorrow. If I get the TWRP backup from OP, and can flash them from my SD card through TWRP, should I theoretically be able to go back to stock completely? Is there another way?
[HTC 10 Guides, News, & Discussion] rsa 329:
This is exactly what I needed. Thank you and [MENTION=5957136]jollywhitefoot[/MENTION] for your help and patience.
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
Once you get your external SD, this will be a lot easier. A lot. Touch base when you get it and I'll try to help you out.
[HTC 10 Guides, News, & Discussion] FreydNot:
15a) rename the "2PS6IMG.zip" file on your external memory card to something else so the next time you end up in download mode it doesn't try to flash it again.
[HTC 10 Guides, News, & Discussion] gotAndroid10:
Thanks for the reminder! I'll edit my original post.
[HTC 10 Guides, News, & Discussion] gotAndroid10:
You can try step 8 from this thread http://xdaforums.com/showpost.php?p=66347165&postcount=2
[HTC 10 Guides, News, & Discussion] matekaneve:
If I make a nandroid backup in twrp and backup the data along with system, system image... etc, is it going to work if it's restored? I did a backup before gaining s-off and root, so I have that one but that's without the data partition. I just wonder if I could backup everything with all my updated apps and messages etc... included. It's the official stock rom came with the phone. I have s-off, unlocked bootloader, latest twrp and stock rom with no root at moment as after sunshine I had to format data and seems like I lost root access and haven't flashed supersu yet.
[HTC 10 Guides, News, & Discussion] Pauls57:
If I'm already unlocked and running leedroid, is it ok to just flash the new firmware? Or, do i need to flash the system update as well?
[HTC 10 Guides, News, & Discussion] Nosferatu.:
great directions...being s-on is there a signed firmware package or anything different to be done?
[HTC 10 Guides, News, & Discussion] flashpointnova:
That's what I'm going for, but I need the stock recovery that matches my CID and I can't seem to find it. Can anyone point me in the right direction?
[HTC 10 Guides, News, & Discussion] JEANRIVERA:
http://dl3.htc.com/application/RUU_...415.261562413.1515139321-962993961.1510922130
[HTC 10 Guides, News, & Discussion] flashpointnova:
Thank you for the assist but it didn't work. Not sure what I'm doing wrong. The only thing I can think of is that when I rooted the phone I didn't bother getting S-off. Would that matter? I can't think why it would but I'm no expert.
[HTC 10 Guides, News, & Discussion] fdgd1998:
I have problems with exe RUUs, try a RRU in zip format.

What error do you get?
[HTC 10 Guides, News, & Discussion] flashpointnova:
Any links?
[HTC 10 Guides, News, & Discussion] fdgd1998:
First of all you own an HTC 10 right? Because the other guy provided an RUU fot the HTC U11.

This is for the 10: https://androidfilehost.com/?fid=673791459329059745

And also you will need the htc_fastboot binary:

https://androidfilehost.com/?fid=95916177934550031

And copy that binary to where you have fastboot installed.

Flash it by running in cmd "htc_fastboot flash zip ruu_path"
[HTC 10 Guides, News, & Discussion] Mr Hofs:
Don't need fastboot at all if you flash the ruu.zip from the SD card. Much easier as fastboot can be a total arse.

Just copy it to the SD card and enter the download mode, follow the procedures by pressing the volume rocker to select and powerbutton to confirm.
[HTC 10 Guides, News, & Discussion] fdgd1998:
I was giving options.:silly:

I personally have never tried the recovery method.
[HTC 10 Guides, News, & Discussion] flashpointnova:
"https://androidfilehost.com/?fid=673791459329059745?" If this link is for an RUU, what do I rename the file to run in from the sd card?
[HTC 10 Guides, News, & Discussion] fdgd1998:
Rename the file into 2PS6IMG.zip
[HTC 10 Guides, News, & Discussion] flashpointnova:
Failed. "22 RU Header error"
[HTC 10 Guides, News, & Discussion] fdgd1998:
Try the cmd method, it will be easier for you than trying to localize that error.
[HTC 10 Guides, News, & Discussion] yldlj:
Your doing something wrong. The SD card method is so easy.

Rename the RUU to 2PS6IMG. zip make sure it's capital letters.

Place on external SD card

Boot to DOWNLOAD mode

Press vol up to flash.
[HTC 10 Guides, News, & Discussion] Mr Hofs:
That won't help. When the phone is s-on the ruu is needed that is exactly as the firmware already installed or newer. Header error is just an indication that it's the wrong ruu.

In case the phone is actually s-off he needs to check the cid and mid too because when those are changed it won't flash either. It all has to match.

Just check the firmware version in the download mode and compare it to the ruu. If the ruu has a lower version number as the download mode indicates it won't flash.

Exactly.
[HTC 10 Guides, News, & Discussion] fdgd1998:
Ok, I forgot the phone is on S-ON...:eek:
[HTC 10 Guides, News, & Discussion] flashpointnova:
The sd method is very easy and yet it did not work. I'll achieve s-off then give it another shot and then post an update.

---------- Post added at 09:15 PM ---------- Previous post was at 09:12 PM ----------

Thank you for that catch. I will achieve s-off and check back in.
[HTC 10 Guides, News, & Discussion] The_Walking_Playground:
[MENTION=2859986]flashpointnova[/MENTION]

Hi,

The link that was posted above is not an RUU - it's an OTA zip, so you can't flash it in Download mode. It won't help your situation at all. You need to find a link to an actual RUU. If you want to install it in Download mode using the zip method, you just have to use the decrypt tool that's linked on the first page somewhere to extract the zip from the exe file. Hope that helps.

TWP

UPDATE: http://dl3.htc.com/application/RUU_PERFUME_WL_N70_SENSE80GP_VZW_MR_NA_Gen_Unlock_2.51.617.32.exe

There's the latest official RUU link for US Unlocked. That should work, hopefully. - -TWP

UPDATE: Just checked the first page and noticed there is no decrypt tool link (oops) so here's that: https://xdaforums.com/chef-central/...-htc-ruu-rom-decryption-t3382928/post66943720 - -TWP
[HTC 10 Guides, News, & Discussion] Mr Hofs:
You don't need to buy s-off! Just carefully read what you need. And indeed as pointed out.... it's an update file and not a ruu, so there is the header error.
[HTC 10 Guides, News, & Discussion] flashpointnova:
Is there a thread about achieving s-off for free, because i keep getting directed to the sunshine app.
[HTC 10 Guides, News, & Discussion] yldlj:
YOU DONT NEED S OFF!

Here is the us unlocked RUU zip file. You did say previously you need the RUU for CID BS_US001/BS_US002

https://androidfilehost.com/?fid=962021903579491246

Rename it to 2PS6IMG. zip

Place on external sd card

Boot to downloade mode

Press vol up to flash.

EVERYTHING will be erased after flashing an RUU.

?
[HTC 10 Guides, News, & Discussion] Mr Hofs:
No you can not achieve s-off for free
[HTC 10 Guides, News, & Discussion] fdgd1998:
Oh, I didn't noticed it's an OTA zip.

Here is the correct RUU link, in zip format:

https://androidfilehost.com/?fid=962021903579491246

So you don't need to decrypt the exe package to obtain the zip. Simply download, rename and flash. This time it os the correct package.:o
[HTC 10 Guides, News, & Discussion] flashpointnova:
This file worked fantastic. Thank you so very much although shared credit should also go to fdgd1998 who also sent me the link.

---------- Post added at 06:47 PM ---------- Previous post was at 06:47 PM ----------

This file worked fantastic. Thank you so very much although shared credit should also go to yldlj who also sent me the link.
[HTC 10 Guides, News, & Discussion] mollon:
Guys, any news on Android 8 update?
[HTC 10 Guides, News, & Discussion] Sloth:
It was canceled. :rolleyes:

Sent from ¯\_(ツ)_/¯
[HTC 10 Guides, News, & Discussion] mollon:
Really??

Got information from HTC in Mexico that it was under testing...

What a shame :crying:
[HTC 10 Guides, News, & Discussion] fdgd1998:
Very funny the joke:laugh:
[HTC 10 Guides, News, & Discussion] Mr Hofs:
Since when is this the update thread ? Oh wait it isn't that's another thread but in the same section which is extremely hard to find

?
[HTC 10 Guides, News, & Discussion] cedarknoll:
Am I correct that this is the t-mobile stock recovery? how come it is .win and not .img? does that matter?

Thanks so much for the help!
[HTC 10 Guides, News, & Discussion] fdgd1998:
That's because it's a TWRP backup.
[HTC 10 Guides, News, & Discussion] jcracken:
Apparently Oreo is rolling out now: http://www.androidpolice.com/2018/01/11/unlocked-htc-10-now-receiving-oreo-update-via-ota-ruu/
[HTC 10 Guides, News, & Discussion] knochnkopf:
Signature Problem?

I've tried it on my US Unlocked phone and keep getting a signature error before it begins sending the RUU to the device. I've tried US Unlocked CID and SuperCID but neither made a difference. I'm wondering if they have a corrupted RUU online?
[HTC 10 Guides, News, & Discussion] goodman_east:
U need OTA file. The decryption key changed, firmware needs to update.
[HTC 10 Guides, News, & Discussion] knochnkopf:
OTA

Isn't that the point of the RUU? it should contain everything regardless of the firmware version. It detects the software version correctly on my phone.
[HTC 10 Guides, News, & Discussion] goodman_east:
https://drive.google.com/file/d/1NK2Qombrne7cBZVhTqqs0tmdZcn21gjF/view

flash this first, and then flash the ruu
[HTC 10 Guides, News, & Discussion] puneet724:
http://dl3.htc.com/application/RUU_PERFUME_WL_O80_SENSE90GP_MR_NA_Gen_Unlock_3.16.617.2.exe
[HTC 10 Guides, News, & Discussion] effortless:
Can this firmware be flashed if you're S-ON?
[HTC 10 Guides, News, & Discussion] goodman_east:
It cannot be. HTC signature is lost. It can be flashed s-off only.
[HTC 10 Guides, News, & Discussion] effortless:
Thanks. Anyway to get Oreo on S-ON device... OTA isn't being pushed to me yet.
[HTC 10 Guides, News, & Discussion] goodman_east:
yes, no OTA file by now.
[HTC 10 Guides, News, & Discussion] tsalta:
Sorry for the Stupid question but i want to make it clear as much as posible.

IM Stock Nougat US Unlocked runing Viper Magisk 5.11 I had S-OFF and Unlocked Bootloader also and a TWRP

So when i remove the Viper module and uninstall the whole Magisk i dont have anymore root and the system is untouched Stock. i have only left a TWRP so in order to flash back the Stock Recovery in order to be able to recive the OTA str8 to my Device what i should do to flash it properly back and what is the stock version for me US Unlocked 2.51.617.32 firmware.

Thanks in advance
[HTC 10 Guides, News, & Discussion] ziand:
For now this is NOT OFFICIAL release because OTA is not issued. Only users with S-OFF can try this to see what new and waiting for the official RUU !!!

Oreo 3.16.617.2 for US Unlocked

CID: BS_US001/BS_US002 | MID: 2PS650000

Download RUU_3.16.617.2.exe from AFH

2PS6IMG_PERFUME_WL_O80_SENSE90GP_MR_NA_Gen_Unlock_3.16.617.2.zip

firmware_3.16.617.2_FullWipe_combined.zip (for S-OFF only)

Sttock_recovery_3.16.617.2.img

boot_3.16.617.2.img

TWRP_Backup_Untouched_System_Image_+_Boot_3.16.617.2_with_recovery.zip

P.S. Users with S-ON need to wait OTA.
[HTC 10 Guides, News, & Discussion] fdgd1998:
Great!! I was waiting for Oreo for a long time and now it's here. Only rests to see how it performs...:o
[HTC 10 Guides, News, & Discussion] fdgd1998:
I can't flash the the ruu. The zip neither. In cmd with zip I obtain the folloiwng:

htc_fastboot v3.0.9.2 (2015-05-29)

target rom version: 3.16.617.2

found large-zip header, file count: 25

processing file 1/25...

sending 'zip' (149596 KB)...

OKAY [ 5.782s]

writing 'zip'...

(bootloader) HOSD CL#942117

(bootloader) ERR check AES encrypted magic string failed.

(bootloader) end@Done

FAILED (remote: 12 RU_ZIP_ERROR )

finished. total time: 7.860s

htc_fastboot finished. total time: 8.642s

Any ideas?

edit: problem solved by flashing the updated oreo firmware before flashing ruu.
[HTC 10 Guides, News, & Discussion] wetxxx:
This rom have Polish Language or only English? Could check it? Thank you :)

If I have CID_032 i must change this to take firmware and Oreo RUU?

When EU OTA will be ready how restore OTA from Europe? Is it the same trick? Firmware 2.41.41.401 and than RUU 2.41.41.40 and than OTA Oreo?

"Live long and prosper"
[HTC 10 Guides, News, & Discussion] ziand:
Yes. You will always have Error 12 at flashing RUU from extSD card or Error 132 at flashing RUU. exe

You have to upgrade your software number with flashing a firmware in first and after that you can flash RUU immediately.

Right now a combined firmware is available for users with S-OFF.
[HTC 10 Guides, News, & Discussion] ali nz:
Is there anyway to restore this twrp backup on non unlocked devices?
[HTC 10 Guides, News, & Discussion] wetxxx:
If you do sunshine, S-OFF and Locked I told Yes. But with S-ON and locked nope :(

"Live long and prosper"
[HTC 10 Guides, News, & Discussion] fdgd1998:
I wasn't flashing form extcard... Anyway, just after writing the post I've read firmware.zip was needed.
[HTC 10 Guides, News, & Discussion] tsalta:
I have maybe a Stupid Question but is better to ask before to brick my device.

USA Unlocked S-OFF, Unlocked Bootloader, TWRP and Stock Nougat Latest Firmware 2.51.617.32

In order to Get the OREO in my case if i just RESTORE via TWRP this file:

TWRP_Backup_Untouched_System_Image_+_Boot_3.16.617.2_with_recovery.zip

I will be Updatet to the Latest OREO? with the Stock Recovery and Full stock everything i mean Firmware and Software? Or i will need also to FLASH the Firmware On top of that?

In My Case i don`t care for the FULL WIPE since i want to have it to start clen.

Or the Best Posible way is to Download the Official EXE

RUU_3.16.617.2.exe and to perform the Update via my PC under Download mode like i did in the past in this case for sure i will got the Firmware the Software and the WIPE all together!

Thanks

---------- Post added at 11:28 PM ---------- Previous post was at 11:04 PM ----------

Well do anybody have an idea why is like that?

in Nougat with the official RUU.exe if you Upgrade your firmware all is working without error and the need to flash anything prior to use the official US unlocked ruu exe

So i was thinking if this OREO RUU exe if is official one have to wipe the phone to factory and flash the Firmware the Software and the Stock Recovery together by itself at once.
[HTC 10 Guides, News, & Discussion] necktru:
Flash firmware by recovery or fastboot command?
[HTC 10 Guides, News, & Discussion] fdgd1998:
By fastboot command.
[HTC 10 Guides, News, & Discussion] throcker:
I'm a EU user, I have an unlocked HTC 10 which, unfortunately can't be flashed by RUU

SO.....since I'm S-ON I'm stuck here but.....

The TWRP backup should work actually

what about this guys?
[HTC 10 Guides, News, & Discussion] fmedrano1977:
So flash firmware, then run RUU?
[HTC 10 Guides, News, & Discussion] fdgd1998:
Yes. And if you doesn't have the unlocked phone chande the cid and mid before.

---------- Post added at 10:31 AM ---------- Previous post was at 10:28 AM ----------

No, you need the firmware.
[HTC 10 Guides, News, & Discussion] ziand:
No. As was posted only users with S-OFF can try this Oreo RUU. Users with S-ON have to wait for OTA.. do not try anything, do not looking for any troubles..maybe official release will be changed (?)!!!

Because encrypted keys are changed.
[HTC 10 Guides, News, & Discussion] trapcoder:
Any other method to flash stock recovery with s-on ?
[HTC 10 Guides, News, & Discussion] dizM0nkey:
Looking forward to the firmware_3.16.617.2_NOWipe_combined.zip ... soon, hopefully!
[HTC 10 Guides, News, & Discussion] fdgd1998:
Someone else is experiencing battery drain issues with stock oreo?
[HTC 10 Guides, News, & Discussion] ali nz:
It's normal... Because it was a leaked build and wasn't as stable as official OTA
[HTC 10 Guides, News, & Discussion] fdgd1998:
But the software is the same, ota or ruu....
[HTC 10 Guides, News, & Discussion] fmedrano1977:
So what are the requirements to get Oreo RUU to work? I flashed firmware zip. It went through but with one error. I then tried RUU, and got an error 155.
[HTC 10 Guides, News, & Discussion] cyrusct82:
You need S-off

And CID MID for US unlocked
[HTC 10 Guides, News, & Discussion] fmedrano1977:
What's giving me this error? After flashing firmware and I still can't get ruu to run and now I'm stuck with a systemless phone as I can't go backwards either. I'm supercid must I change that?
[HTC 10 Guides, News, & Discussion] fmedrano1977:
So no supercid?
[HTC 10 Guides, News, & Discussion] dtbinh:
Yes, just CID and MID for US unlocked.
[HTC 10 Guides, News, & Discussion] ali nz:
Try not to convert to supercid at all
[HTC 10 Guides, News, & Discussion] fmedrano1977:
Change CID, same error. Tried SD card method, that showed same error but it did boot. Now I'm trying to root but adb side load is not working, it's related to that, data encrypt asking for password, message when I go into recovery.

Trying to go backwards, now the older RUUs are not successfully running either.
[HTC 10 Guides, News, & Discussion] i_think_i_am_wrong:
I have a htc__j15, mid - 2PS620000, s-on.

I'm currently running pfos oreo but want to install stock sense and wait for an oreo ota. The problem is: I can't find a way to revert back to complete stock as there are no ruu.exe files for my htc__j15. Btw the last firmware version for my phone is 2.41.401.3. Any help will be greatly appreciated.
[HTC 10 Guides, News, & Discussion] ali nz:
I was in exact same condition(CID and MID) and easily flashed latest RUU (2.41.401.41) in download mode on my device :) and will get OTA
[HTC 10 Guides, News, & Discussion] i_think_i_am_wrong:
What do you mean by the exact same situation? The same ROM? Or only the CID/MID?
[HTC 10 Guides, News, & Discussion] ali nz:
Both
[HTC 10 Guides, News, & Discussion] mr-obot:
Hello, is there no one who can help me or has had the same problem?
[HTC 10 Guides, News, & Discussion] Mr Hofs:
If no one replied then i guess no. If you can't find or created a stock backup of your own i can merely suggest to s-off the device and flash a different firmware and/or available RUU.

You have your firmware number so that's what you need. As long as you are S-ON you can't use other firmwares and RUU's except the one with the number you specified in your previous post.
[HTC 10 Guides, News, & Discussion] ziand:
Oreo OTA 3.16.709.3_R1 for Taiwan

CID: HTC__621 | MID: 2PS620000

OTA_PERFUME_UHL_O80_SENSE90GP_MR_hTC_Asia_TW_3.16. 709.3_R1-2.41.709.73_release_5196641w4lmj50mv7k4fxl.zip

Download from AFH

Stock_Firmware_from_OTA_3.16.709.3_NoWipe_signed.zip

Stock_recovery_3.16.709.3.img

boot_3.16.709.3.img

Thanks to [MENTION=4031838]scan6[/MENTION] for OTA link.

---------- Post added at 17:16 ---------- Previous post was at 16:35 ----------

@Captain_Throwback asks to test this TWRP on Nougat and Oreo and to post a log to this thread... read this page:twrp-3.2.1-1_CPTB-20180114-01-pme.img

Any news who tried ?
[HTC 10 Guides, News, & Discussion] Rolo42:
Are you certain 111 is correct? Was it changed?

It's not on the htc RUU page and googling "2.41.111.42" only finds one other hit (are you the guy with the BMW connect issue also?)

T-MOB010 is 531 and the RUU is here: https://www.htc.com/us/support/htc-10-t-mobile/news/
[HTC 10 Guides, News, & Discussion] roirraW "edor" ehT:
He means that 3.16.617.2 isn't an official release, which is why HTC pulled the file within 24-48 hours of the link for it being leaked. If it were an official release you'd be able to find it at http://www.htc.com/us/support/rom-downloads.html, or specifically at http://www.htc.com/us/support/htc-10/news/. (They don't always update what the latest version is at the first link, and they haven't for awhile, plus the "View" link is what takes you to the second link, which has the Download at the bottom of the page. The Download link at the first link is broken.)

I hope that made sense. :)
[HTC 10 Guides, News, & Discussion] fdgd1998:
Alright, that makes sense. The problems I am having to get back to nougat also makes sense and makes me to believe this oreo build has been a leak...
[HTC 10 Guides, News, & Discussion] roirraW "edor" ehT:
Yes, it's unfortunate and worrisome. Hopefully, there are no problems updating to the official Oreo once it comes out, although I have to believe that there won't be a problem in that direction - it's only downgrading that's a problem. I don't necessarily think the problems downgrading are specific to this leak, however. It won't surprise me if downgrading from the official Oreo once it comes out has the same issue, but I'm just guessing.