yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] Wonders_Never_Cease:
You are trying to flash whole zip... thats not what instructions say to do... please redo step by step...Hint you dont flash whole rom via instructions and check your commands...
[HTC 10 Guides, News, & Discussion] houston_:
Oh ok, now I see.

But still it worked out.

I am just finished flashing MM on my phone.

Only problem I had:

Using htc_fastboot instead of fastboot...

So my steps were:

Custom Oreo, S-Off, Unlocked --->

1. Place Ruu.zip inside fastbootfolder (inkl. htc_fastboot.exe) (RUU has to be below 7.1.1 to have temp root capability)

2. Boot download-mode, htc_fastboot flash zip RUU.zip

3. Reboot to Bootloader, htc_fastboot erase persist

4. rebooted

--> Stock MM, S-Off, Unlocked, working SIM

After that, to go full stock:

5. download-mode: htc_fastboot oem writesecureflag 3 -->S-On, Unlocked

6. Sunshine App --> Temp Root --> S-Off, Locked

7. Let Sunshine work

8. Download-Mode, see: "S-Off, Locked"

9. Download-Mode: htc_fastboot oem writesecureflag 3

10. Download-Mode, see: "S-On, Locked" (Official and not"Fused")

Edit:// Fused dosn't mean anything "harmful" it is a changed filesystem within oreo (or similar). Nothing to worry about.

Right now I boot up and see if OTA works. Before Stop 5 it was already working.

Edit: OTA working, SIM working. :)

Edit2:// Pro-Tip: Use S-Off, Locked if using Sunshine!

Just flashed my device to stick again.

Was the same way like described above... With a little change.

I used Sunshine to make my phone "S-Off, Locked" after receiving it from repairs.

This made the second half of this how to much easier!

I was able to skip steps 5-7 and only needed to return S-On again.
[HTC 10 Guides, News, & Discussion] Wonders_Never_Cease:
Glad you got it sorted...
[HTC 10 Guides, News, & Discussion] rappinlarry:
I have a t-mobile S-Off unlocked phone with t-mobile nougat firmware and Viperom. I want to flash oreo firmware and Leedroid. If I want to go back to my Nandroid backup of Viper, I just have downgrade firmware and restore my nandroid backup? And should I change my cid first to supercid? Just being thorough, thanks for you replies and patience in advance, God bless!
[HTC 10 Guides, News, & Discussion] Wonders_Never_Cease:
Once you go to Oreo, you cannot run a Nougat ROM, CID I wouldnt worry about... Id wait till Tmobile releases Oreo, Flash everything back to stock and take oreo update...
[HTC 10 Guides, News, & Discussion] bigmack101:
did't work for me. stuck on flashin ruu from your post, signature error an then bootloop
[HTC 10 Guides, News, & Discussion] yldlj:
You can't just flash any RUU. it needs to be the one for your cid
[HTC 10 Guides, News, & Discussion] bigmack101:
Iknow that. Although, you are right - I used one from the post in quotes with version 2.51.617.32 applicable to BS_US001, but in the name of the file there are "VZW" letters. Will try it again with another RUU. WIll I have to clean persistent again?
[HTC 10 Guides, News, & Discussion] Wonders_Never_Cease:
What is your cid/mid?? It has VZW in all the RUU files as they are same devices... HTC do not build a separate ROM for unlocked/developer device... Had to have missed a step or something...
[HTC 10 Guides, News, & Discussion] bigmack101:
cid BS_US001, mid 2PS650000, S-On

Idk what do you mean by

because I've been always flashing RUU with name RUU_PERFUME_WL_N70_SENSE80GP_MR_NA_Gen_Unlock_2.51.617.32.exe
[HTC 10 Guides, News, & Discussion] sabpprook:
Did your device upgraded to Oreo 8.0 before?

If yes, signature error will pop up, the solution is that you must flash "hosd.img" for Nougat 7.0 version once.

Extract "hosd_signed.img" from partial firmware zip and flash it via fastboot

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

fastboot flash hosd hosd_signed.img

Please watch my downgrade video for the detail

https://www.youtube.com/watch?v=vJrNEsWVyOc

[YOUTUBE]https://www.youtube.com/watch?v=vJrNEsWVyOc[/YOUTUBE]
[HTC 10 Guides, News, & Discussion] bigmack101:
Yes, it has been upgraded. Thanks, I'll try it right now
[HTC 10 Guides, News, & Discussion] bigmack101:
No luck. Screenshot attached

C:\Windows\system32>fastboot flash hosd D:\HTC\hosd_signed.img

target reported max download size of 1578400000 bytes

sending 'hosd' (52529 KB)...

OKAY [ 1.835s]

writing 'hosd'...

(bootloader) HOSD CL#1012001

FAILED (remote: 35 RU_PARTITION_NOT_SUPPORT hosd)

finished. total time: 2.850s
[HTC 10 Guides, News, & Discussion] sabpprook:
Flash hosd.img under bootloader mode (not download mode)
[HTC 10 Guides, News, & Discussion] bigmack101:
success. next step trying to flash ruu, right?
[HTC 10 Guides, News, & Discussion] sabpprook:
Please follow all steps in my video for Oreo 8.0 downgrading.

I won't explain here in text again.
[HTC 10 Guides, News, & Discussion] bigmack101:
Sorry, the reason I'm asking things that are obvious for you is that your video doesn't cover such things as "Flash hosd.img under bootloader mode (not download mode)". Another reason is that for already 22 hours I'm without working phone, which is my "right hand" in my work. I'm very worried and don't want to mess up. Sorry for annoying you
[HTC 10 Guides, News, & Discussion] sabpprook:
It's okay dude, take it easy, you will nail it that following my video.

Now you need is to modify version number to match the RUU version which show in download mode, without this step you will get fail in flashing ruu again.
[HTC 10 Guides, News, & Discussion] bigmack101:
Thanks. Hopefully my sufferings gonna end soon)

---------- Post added at 03:49 PM ---------- Previous post was at 03:27 PM ----------

Dude, sorry for being so toxic. I just didn't notice all of the details in your video. But anyways I get error on flashing RUU

C:\Windows\system32>fastboot flash zip "C:\Users\Павел Кугаев\Downloads\PMEWL_2.51.617.32_FullStock.zip"

target reported max download size of 1578400000 bytes

sending 'zip' (143932 KB)...

OKAY [ 6.885s]

writing 'zip'...

(bootloader) HOSD CL#942117

(bootloader) GPT (gpt_main_32g.img) is up-to-dated. [17408]

(bootloader) Perform pre-update

(bootloader) WARN Skip partition_info due to unmatched partition name

(bootloader) get 38 images from zip(zip_type=3)

(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] update_fb_ZIP_buf: fail to flash zip: 1

(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

FAILED (remote: 14 RU_ZIP_INFO_ERROR android-info missing or malformed )

finished. total time: 10.810s

---------- Post added at 03:58 PM ---------- Previous post was at 03:49 PM ----------

nvm, ruu in exe worked like a charm, THANKS A LOT
[HTC 10 Guides, News, & Discussion] sabpprook:
I just remembered that I didn't try to flash partial firmware zip in my processes especially the decrypted zip archive, please flash whole firmware aka RUU zip.

I’m glad to hear that you’ve sorted it out.
[HTC 10 Guides, News, & Discussion] fmedrano1977:
Will this work to downgrade from Oreo to Nougat after running the first US unlocked RUU? I get error trying to run a Nougat RUU and been stuck with Oreo since.
[HTC 10 Guides, News, & Discussion] sabpprook:
It's for downgrading from Oreo 8.0 to Nougat 7.0
[HTC 10 Guides, News, & Discussion] Maslak856:
Hi everyone,

I've read all this thread and many others, but I'm not really sure I understand it correctly. I'm on S-ON and unlocked.

I had updated my HTC 10 to Oreo via OTA. Recently i decided to get rid of sense and install AOSP. So (stupidly without any research) I flashed first the latest TWRP and secondly the PureFusion rom (beta version, not latest official). Then i lost my signal and home button with fingerprint scanner didn't work. I started reading what i've done and found first page of this thread so i booted to TWRP and wrote that command for S-ON. Phone restarted and radio worked perfectly but home button still doesn't. Thinking that it is due to rom, i flashed stock Nougat and radio also worked fine but home button still doesn't. Then i thought to get back to Oreo and i flashed LeeDroid and both radio and fingerprint works perfectly. But I still have a sense based rom. And now my question:

Why my home button and fingerprint scanner didn't work? Because of beta version of PureFusion?

And what to do to get PureFusion with working radio and fingerprint scanner? Can i simply flash it while i'm on leedroid and next write that command again in TWRP?

Thanks for your reply
[HTC 10 Guides, News, & Discussion] Rolo42:
Version numbers! I don't know how many times I've heard "latest" and they weren't on the latest.

TWRP 3.2.1-2 is the latest; are you on that?

Which PureFusion are you using? 7.1.2 or 8.0? Neither work on Oreo firmware (read the PureFusion instructions/requirements and recent posts)

Unless you want to downgrade (I don't recommend it, especially if you're not good at reading instructions, hehe), you're stuck with stock or LeeDroid Oreo. I'm running stock Oreo and I do like it and it performs very well, even though I prefer AOSP-based ROMs (all of them have an issue with Hangouts and Bluetooth headsets, so I can't run them).
[HTC 10 Guides, News, & Discussion] Maslak856:
Yes I'm on that TWRP 3.2.1-2

I flashed the PureFusion 8.0.0

I was just curious why my signal worked after only writing that command in TWRP but my home button doesn't.

My problem is not to follow the instructions, I don't have required files because I don't really know which I have to download. My CID is HTC_034. I'm currently on 3.16.401.2.

Which nougat firmware and RUU need to be downloaded or it's doesn't matter? I can manage fastboot and writing all commands but I'm afraid I will do this on wrong files.
[HTC 10 Guides, News, & Discussion] yldlj:
Home button doesn't work because your running Oreo firmware and Pure fusion is for Nougat firmware. If you want to run pure fusion you will need to flash Nougat RUU first. Being S ON you will be downgrading, this can be dangerous. Read the OP of this thread there is a video that shows you how to downgrade. The RUU you need is 2.41.401.41
[HTC 10 Guides, News, & Discussion] Rolo42:
Does the phrase "bull in a China shop" mean anything to you? :)

Slow down. Pour over all the instructions; ensure you understand every. single. step. completely. before proceeding; otherwise you're going to just confuse yourself and mess up your phone and be worse off than before you started.

If, after all your study of what's posted, you are still uncertain, then ask for specifics so you're confident that you know what you're about to do and so that you can understand the answers to your questions. Only then will you know what's going on and will be able to deal with whatever happens, good or bad, and not be in a panic when things go wrong, compounding error.

The answers to your questions were already posted and available to you; back up and don't skip what's unclear.
[HTC 10 Guides, News, & Discussion] leandrohvlucas:
Hi Guys

I'm thinking

Can i downgrade from Oreo directly to Marshmallow using the S-ON method?

i will use Marshmallow firmware instead of Nougat

and i will flash marshmallow ruu instead of Nougat

can i do this?

or it's safer downgrade from oreo to nougat first and then downgrade to MM?

thanks
[HTC 10 Guides, News, & Discussion] Wonders_Never_Cease:
Why would you want to go back that far??? Can't say myself how safe it is... My device is s-off... Anything's possible... Some have reported going back to MM successfully...but that's not what this thread's purpose was for... Proceed with caution..Good luck...
[HTC 10 Guides, News, & Discussion] leandrohvlucas:
Please Sabpprook

I followed your steps to downgrade with S-ON

I've tried to downgrade directly to MM

I change the Version Number to 1.91.617.1

I flash the hosd file

But when i tried to flash the RUU, i got a error message "cannot flash this partition in S-ON state"

I should flash firmware first then the ruu?

i can't go in download mode, i search and it's because i flashed the hosd file from another firmware...
[HTC 10 Guides, News, & Discussion] sabpprook:
1. flash hosd.img in bootloader mode (not download)

2. reboot to RUU mode (S-ON device must flash RUU under this mode)

fastboot oem rebootRUU
[HTC 10 Guides, News, & Discussion] leandrohvlucas:
when i try to rebootRUU, my phone show the silver htc logo bit then restars

like i said before, i cant boot in download mode

P.S. My phone still work with oreo...
[HTC 10 Guides, News, & Discussion] sabpprook:
Try to flash Oreo 8.0 hosd.img and see how download mode works...

Perhaps you should downgrade to Nougat 7.0 first and then downgrade to Marshmallow 6.0 again.
[HTC 10 Guides, News, & Discussion] leandrohvlucas:
I really tried and i can't find a source of oreo hosd.img, i can't find any firmaware to a i can take it off...

it's possible to someone "copy" from your own cellphone and share with me?

i'm using US unlock Oreo, 3.16.617.2

thanks again!
[HTC 10 Guides, News, & Discussion] sabpprook:
partial firmware from RUU, decrypt it using HTC RUU Decrypt Tool if it is encrypted.

https://androidfilehost.com/?fid=962157660013070987
[HTC 10 Guides, News, & Discussion] santod040:
Stand alone Oreo firmware, really shouldn't be that hard to find...

https://xdaforums.com/showthread.php?t=3756126
[HTC 10 Guides, News, & Discussion] i_think_i_am_wrong:
Hi! Is firmware the same as RUU? Mine is S-OFF. Can I simply flash the whole Nougat RUU for my device before wiping persist? Thx in advance
[HTC 10 Guides, News, & Discussion] sabpprook:
In HTC devices, RUU equal to "FULL" firmware.

You should flash decrypted partial firmware first if your device is running on Oreo 8.0 and then flash full firmware.
[HTC 10 Guides, News, & Discussion] i_think_i_am_wrong:
Thx very much for your response. The next and the last thing I want to ask is: should I flash the full-size zip or the no-wipe firmware? I'm talking about the firmwares found here: https://xdaforums.com/htc-10/how-to/2016-05-27-fastboot-flashing-firmware-t3387520

Or should I better use the firmware I decrypt myself? If so, then could you please provide a link to the decryption tool you used?

Thx in advance
[HTC 10 Guides, News, & Discussion] sabpprook:
Your call, but I think it's better to flash no-wipe firmware zip which include TWRP also.
[HTC 10 Guides, News, & Discussion] locorokr:
could yo explain this: Write Version number 1.90.401.5 in HTC Version Tool (Enter Twrp recovery and write number in software), sorry for the noob question but i stuck in this step
[HTC 10 Guides, News, & Discussion] sorenjul:
You need to boot to twrp recovery and then on you PC use the htc version tool to manually type the version 1.90.401.5.

You can find it here:

https://xdaforums.com/u11/how-to/guide-downgrade-htc-u11-oreo-to-nougat-t3754481

btw. can you share the fullstock 1.90.401.5 firmware since I can't download it from android filehost.

\Sorenjul
[HTC 10 Guides, News, & Discussion] shayantaeed:
i used this command

adb shell

dd if=/dev/zero of=/dev/block/bootdevice/by-name/persist

and i have this error in recovery

Failed to mount '/persist' (Invalid argument)

now i cant do any thing...

i cant flash another rom and even i cant s off my phone to erase this Persist...

any suggest?
[HTC 10 Guides, News, & Discussion] Rolo42:
Is your firmware Nougat?

Are you S-On?

Post 1 and post 2 differ in S-On instructions; the latter omits /by-name/persist.

Which is the correct one?
[HTC 10 Guides, News, & Discussion] i_think_i_am_wrong:
Hi, guys! Has anyone already tried the flashable zip by [MENTION=1331268]santod040[/MENTION] to wipe persist partition? Thx
[HTC 10 Guides, News, & Discussion] shayantaeed:
i don't exactly know.... i used Pure fusion OS oreo and the I flash Resurrection Remix Nougat

yes S-On
[HTC 10 Guides, News, & Discussion] santod040:
I personally used it last week and worked as intended.

I have also had a few users report using it with success as well, such as this one here:

https://xdaforums.com/showthread.php?p=75691898
[HTC 10 Guides, News, & Discussion] ayyu3m:
Always take nandroid backup first - it saved me!!!

!PLEASE DO NOT TRY TO CONVERT BACK TO STOCK NOUGAT VIA MARSHAMALLOW. IT WILL MESS UP YOUR DEVICE IF YOU DO NOT HAVE S-OFF and ACCESS TO DOWNLOAD MODE!

Personally i will just wait for HTC / Google to release bug fixes for this lame 8.0

Okay so here is the first part to any possible "yes you can", "you did something wrong" replies

S-ON

Bootloader was unlocked

Debugging enabled

TWRP nandroid backup made for Android Oreo (8.0)

I am pretty much familiar with M7,M8,M9 and now HTC 10.

For those who are trying to revert back to Nougat, please dont proceed if you do not have a matching RUU or atleast an OTA file. Cos when you royally screw up this is your last hope. For me i will be talking about the experience i had regarding HTC__622 aka .708 which is Hong Kong CID. For me the only thing i could find was a Marshmallow RUU and Nougat OTA download link was broken from both HTC (Fota) and others are paid downlaod which i dont want.

How it got saved.

I installed TWRP

Took a NANDROID backup of stock OREO 8.0 which is the reason why my phone is alive now

Luckily after i screwed up downloade mode when i flashed hosd.img from Marshmallow i got hold of 3.16.708.3 hosd.img which i was able to flash back. Let this be a golden lesson for nandroid backup and matching your roms unless you are S-OFF.

By luck i was able to enter TWRP again and restore my NANDROID backup and voila i was in OS

How it got screwed.

So even after following the guide to every single word i was unable to enter download mode after it got messed up and when i had installed a custom rom in the hope to revive my device it ended up in bootloop to "decryption unsuccessful"

I wasnt able to enter TWRP recovery also. And without access to download mode it didnt allow me to flash anything.

But somehow in fastboot in bootloader mode i kept on persistenly flashing twrp recovery again even when it gave error saying this could not be flashed on S-ON.

So i am assuming from all of this you cannot downgrade directly to Marshmallow as per the yooutube video that is linked in the first post.

For anyone who is having the hong kong variant and have messed up, i attached the link for Oreo (3.16.708.3) hosd.img. Flash this in bootloader mode (white menu) and hopefully your device will get rescued.
[HTC 10 Guides, News, & Discussion] sabpprook:
Okay, so the point is HTC 10 HK variant can not bootup Marshmallow 6.0 hosd image with Oreo 8.0 firmware installed right?

Nandroid backup is not necessary, just prepare hosd.img which for Marshmallow or Nougat and Oreo (for revert back).

As you said "please don't proceed if you do not have a matching RUU or at least an OTA file", this is common sense :p
[HTC 10 Guides, News, & Discussion] ayyu3m:
Yeah HK variant can not bootup Marshmallow 6.0 hosd image with Oreo firmware

Also the only reason my phone got saved is cos i FIRST took a nandroid backup of my stock oreo before i followed the video you have linked which brings me to my point.

YOU NEED TO WARN OTHERS ABOUT THIS COS AS YOUR STATEMENT BELOW

THIS IS ENTIRELY WRONG AND FALSE INFORMATION AS HTC 10 CANNOT BE DOWNGRADED IN THE SAME MANNER AS SHOWN IN VIDEO WHICH GOES TO MARSHMALLOW. Because many newbies are following this video link and going straight to marshmallow since you HAVE NOT ADVICED to use NOUGAT RUU or OTA HOSD.IMG when attempting downgrade.

And i believe you dont even have an HTC 10 to provide proof of concept. So please put in a warning or disclaimer for others sake!!!!! Some people dont have the intelligence and all to do nandroid backup first.

---------- Post added at 11:28 AM ---------- Previous post was at 11:23 AM ----------

THIS is absolutely true. I am disappointed OP still tried to defend the consequences even though he never tried it himself i believe.

You need 100% S-OFF
[HTC 10 Guides, News, & Discussion] yldlj:
It clearly states in the OP to do this method on Nougat firmware. IMO no one should even be trying to go from Oreo to marshmallow. It's the NEWBIES that shouldn't be trying to downgrade while S ON in the first place because it's too risky.
[HTC 10 Guides, News, & Discussion] ayyu3m:
Correct. No one should try to downgrade without S-OFF

In my case i could not get hold of a NOUGAT rom so since the OP said it should work with marshmallow i just gave it a try. Fully knowing the consequences and with past experience is the reason why i made a TWRP Nandroid backup of 8.0

So when OP say it can be done while S-ON even for Nougat that i believe just is wrong. Unless he has POC on a video on HTC 10 downgrade to Nougat i dont advise.
[HTC 10 Guides, News, & Discussion] sabpprook:
Another proof

A friend of mine doing the downgrading on his HTC 10 from Ore 8.0 to Nougat 7.0 without S-OFF.

https://www.youtube.com/watch?v=PjzO42kDLnU

[YOUTUBE]PjzO42kDLnU[/YOUTUBE]

Are you still think it is impossible to downgrade without S-OFF ?

And as i said, "you can downgrade in same method", what is the method I demo?

1. flash the hosd.img to allow you flash Marshmallow RUU

2. erase version number to cheating download mode that you are running same version

3. flash Marshmallow RUU

Did I ever said you need to flash Marshmallow RUU for downgrading for HTC 10 ??? The answer is NO!!!

And here is the question, why you do downgrading with Marshmallow hosd.img and RUU?

So, your failure meaning nothing for me, it is just saying that can not downgrade to Marshmallow directly for HTC 10, the reason is it can not bootup hosd.img which extract from Marshmallow RUU

That's all :p
[HTC 10 Guides, News, & Discussion] ayyu3m:
Great you did your research NOW and edited the OP with vital information. Of course i did say i tried with Marshmallow. Thats because you never said in your previous post that it cannot be done.

When you post something for the first time it is assumed you have tried and it worked for you. Thats how newbies take info.

But i see you have EDITED AND ADDED THE REQUIRED INFO now AFTER I WARNED ABOUT the problem.

Thanks for that. And before you make another post PLEASE make sure ALL VITAL INFO ARE THERE and not ignored for your ego. I think that is common forum rules.

I think it would be vital if you can link to this video in your OP

:p
[HTC 10 Guides, News, & Discussion] sabpprook:
Yeah, I'm just add this information to avoid some newbie will make mistake to using Marshmallow RUU for downgrading.

BUT...

Please focus the title of this thread, this GUIDE is not for downgrading; If it is, I will write down all the information that must know about.

And last, I'm glad that you provide us the information that flashing Marshmallow hosd.img will semi-brick the device. :good::good:
[HTC 10 Guides, News, & Discussion] leodiavata:
Will installing ruu from .exe file work ? Or do I have to get a zip ?
[HTC 10 Guides, News, & Discussion] sabpprook:
It will work, but you need to flash hosd.img extract from RUU before running EXE type RUU
[HTC 10 Guides, News, & Discussion] leodiavata:
is there a place where all needed files for downgrade are available for download ? Kind of confused .
[HTC 10 Guides, News, & Discussion] sabpprook:
Sorry, you must find the files you need by yourself.
[HTC 10 Guides, News, & Discussion] ayyu3m:
A lot of firmware files are here including RUU and OTAs. Just expand the folders.

https://androidfilehost.com/?w=files&flid=170280

https://androidfilehost.com/?w=files&flid=177457
[HTC 10 Guides, News, & Discussion] hoalaxanh123:
Thank you very much, it work for me ( HTC_001 S-On unlocked)

Thank you very much, it work for me ( HTC_001 S-On unlocked)
[HTC 10 Guides, News, & Discussion] ninobrtv:
Downgrade to Marshmallow

Thanks to you, it worked for me with a htc 10 india sea s-on. I used this solution for downgrade from Oreo to Nougat. Do you think it is now possible that I downgrade to Marshmallow in the same way or it is silly to s-off.