yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] zr_hazem:
View attachment 4495521

First of all, thank you !

I spent all day trying to downgrade from oreo to nougat and you came to the rescue.

I didnt exactly follow your steps but the hosd part was what made it all work for me.

So make it clear and for anyone who's finding a difficulty in downgrading here are my steps:

Prerequisites:

-HTC Drivers

-Adb Drivers

-HTC Version Tool

-Unlocked phone with stock Oreo installed,twrp and unlocked bootloader

-Firmware zip (I got mine from here https://xdaforums.com/htc-10/how-to/2016-05-27-fastboot-flashing-firmware-t3387520 , download a full stock zip that corresponds to the SKU version you have and want to flash) > For example, my phone is PME UHL International 3.16.401.2 Oreo so I chose PME UHL International 2.41.401.3 Nougat.

-Stock Nougat RUU zip for your device. You need to search around for this one because there arent many sources for Nougat zips but mine was from here

-SD Card

Steps:

1. Boot into TWRP then connect your phone to your pc then open adb terminal and run HTC Version Tool then change to the version of the RUU youre going to flash.

2.Reboot into download mode then run

fastboot getvar all

make sure that the (version-main) is the one you changed. Then lock your bootloader with

fastboot oem lock

(This is to be able to flash the RUU)

3.Next, you have to flash the firmware zip so run

fastboot oem rebootRUU

fastboot flash zip YOUR_FIRMWARE.zip

(If it gives error that's ok)

4.Open firmware zip then extract hosd_signed.img to adb directory then run

fastboot reboot-bootloader

fastboot flash hosd YOUR_HOSD.img

5.Reboot to RUUmode then flash firmware zip again

6.You need to put the RUU.zip you have in the sd card then rename it to "2PS6IMG.zip" ( Make sure its not 2PS6IMG.zip.zip) then reboot to download mode and choose to flash it (Vol up)

7.That should be it. If you boot into system and find youre stuck on HTC logo but somehow volume controls and power menu work then reboot to recovery and do a format then boot back into system then hold (Vol up + vol down+ power) for around 5 seconds until the setup screen displays. I don't know why this happens but it just does.

8.To restore IMEI and signal unlock bootloader,flash twrp then from recovery :

Note: If you soft-brick your phone and lose recovery, system, bootloader unlock, then flash the same RUU zip as your version and android from external sd card through download mode. (It happened to me :/ )

I hope this helps you guys out. If I missed any step or something isnt well explained, please tell me.
[HTC 10 Guides, News, & Discussion] sabpprook:
Do not relock bootloader, leave bootloader unlocked still have ability to flash RUU
[HTC 10 Guides, News, & Discussion] zr_hazem:
Hm. Are you sure about that? Because whenever i tried to flash anything it gave me an errror so I searched it up and read that bootloader needs to be relocked (at least when flash stock RUUs).
[HTC 10 Guides, News, & Discussion] sabpprook:
The information is out date, HTC with download mode devices can flash RUU even bootloader is unlocked.
[HTC 10 Guides, News, & Discussion] zr_hazem:
That's odd. Alright, anyway I crossed it out but kept it in the post just in case because those exact steps worked fine for me.

Thanks for your input!
[HTC 10 Guides, News, & Discussion] X46X:
What is and where I can get the HTC Version Tool?
[HTC 10 Guides, News, & Discussion] StarSix01:
Im currently on LOS 15.1 but i Want to downgrade.

Installed the Simple CID Getter and it shows T-MOB101 TDM

How to start? Or how i can downgrade?
[HTC 10 Guides, News, & Discussion] zr_hazem:
Follow my guide 2nd post in this thread.

It's a tool that just changes your firmware version so you can downgrade. You can get it here
[HTC 10 Guides, News, & Discussion] X46X:
I have flashed HOSD but still getting error when I trying to flash Nougat firmware. I'm S-on. Can anyone help? I think I need a signed firmware but I can't find it. Mine is from Sneakyghost thread (PMEUHL_2.41.401.41_FullStock.zip) md5 matched..

C:\Android\com>fastboot flash zip firmware_n.zip
target reported max download size of 1578400000 bytes
sending 'zip' (107187 KB)...
OKAY [ 5.131s]
writing 'zip'...
(bootloader) HOSD CL#857212
(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 36 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: 8.697s
[HTC 10 Guides, News, & Discussion] zr_hazem:
are you sure you downloaded the right firmware for your device
[HTC 10 Guides, News, & Discussion] X46X:
yes, 401 wwe which I have..
[HTC 10 Guides, News, & Discussion] zr_hazem:
Did u use the version tool and changed ur version to 2.41.401.41? If youve done all that then maybe get a firmware from somewhere else. It's weird because it should work for u since youre the same version as mine. I'm sure youll find a solution its just trial and error
[HTC 10 Guides, News, & Discussion] X46X:
Yes I changed the version to the firmware version. But there is only one thread about firmware and I can't find firmware from another source..
[HTC 10 Guides, News, & Discussion] X46X:
While you are S- on follow this (I did it just like that and everything working, so don't worry):

1. Boot into TWRP run HTC Version Tool and change the version of the RUU youre going to flash.

2. Reboot into download mode then run

fastboot getvar all

make sure that the (version-main) is the one you changed.

3. Use HTC Decrypt Tool to extract the signed RUU.zip (not only firmware, just whole RUU)

4. Open decrypt output, find hosd_signed.img and flash it

fastboot reboot-bootloader

fastboot flash hosd hosd_signed.img

5. Put the RUU on your SD Card, name it "2PS6IMG.zip" and reboot to download mode. Press volume up and wait till the end. Then shut down and boot up your phone (after phone boot up you see a HTC logo for a few minutes - calm down and wait :). Now you are on Nougat - without signal.

6. Alow ADB and flash TWRP recovery

7. Boot into recovery and do this in ADB:

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

8. Thats It, you have everything working after downgrade
[HTC 10 Guides, News, & Discussion] wtosta:
My RUU file is PERFUME_UHL_N70_SENSE80GP_MR_HTC_Europe_2.41.401.3 _Radio_1.0.U010241a@61226_79.07_F_release_493442_signed.zip

I decrypted and extracted hosd_signed.img from the RUU zip above, then

C:\fastboot>HTC_Version_Tool.exe

HTC Version Tool, code by sabpprook@xda-developers

-- misc: /dev/block/mmcblk0p38

-- offset: 2208

-- version: 3.16.401.2

new version: 2.41.401.3

Press ENTER to continue...

-- Erase version...

-- Write version [2.41.401.3]...

-- current version: 2.41.401.3

Finish!

then

C:\fastboot>fastboot getvar all

(bootloader) kernel: lk

(bootloader) product: htc_pmeuhl

(bootloader) version: 1.0

(bootloader) max-download-size: 1578400000

(bootloader) serialno:

(bootloader) slot-count: 0

(bootloader) current-slot:

(bootloader) imei:

(bootloader) version-main: 2.41.401.3

(bootloader) boot-mode: download

(bootloader) version-baseband: 2.0.U010241a@71204

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 2PS620000

(bootloader) cid: HTC__034

all:

finished. total time: 0.016s

while I have tried to flash hosd_signed.img this happened

C:\fastboot>fastboot flash hosd hosd_signed.img

target reported max download size of 1578400000 bytes

sending 'hosd' (52525 KB)...

OKAY [ 1.594s]

writing 'hosd'...

(bootloader) HOSD CL#1012001

FAILED (remote: 35 RU_PARTITION_NOT_SUPPORT hosd)

finished. total time: 2.609s

Do you have any idea what I did wrong?

Best regards

Witek
[HTC 10 Guides, News, & Discussion] X46X:
Are u using HTC decrypt tool to get hosd from RUU?
[HTC 10 Guides, News, & Discussion] wtosta:
Yes. Exactly this one hosd_signed.img from the RUU, that I was going to install from sdcard after successful hosd operation.

But I have not tried another RUU so far presumably compatible with my phone.
[HTC 10 Guides, News, & Discussion] sabpprook:
Please reboot to bootloader (white background) and then flash hosd file again
[HTC 10 Guides, News, & Discussion] wtosta:
Interesting thing. When I run the fastboot reboot-downloader command (white background), the windows system says that the USB device was not recognized. That's why I did not execute the fastboot reboot-downloader command and maybe that's why the fastboot flash hosd command did not work. In Windows_10_x64 I have installed only driver HTC Driver 4.10. When I turn on the phone with the buttons VOL DOWN + PWR and the system enters the Download Mode, the HTC device is correctly recognized in Windows, and no longer in the bootloader mode.
[HTC 10 Guides, News, & Discussion] sabpprook:
The device driver can be installed in this way

https://imgur.com/a/awUfrFM
[HTC 10 Guides, News, & Discussion] wtosta:
I will try to manage this, but forgive me I don't understand language you are using in Taiwan, especially national symbols. These are screenshots in the link you gave me thus I am unable to translate it into English. But don't worry, I'm going to figure it out by myself. You gave me a hint, that uninstalled driver could be a cause of matter of an error that happened to my flash procedure. I will follow your path. Thank you so much :)

...

...

...

Thanks to your hints, I finally managed to get back to Nougat on my HTC 10. I installed other drivers in the Windows system for the MyHTC device and the phone finally was visible both under Download and Bootloader modes (previously under the bootloader mode, the device was not visible). RUU upload went smoothly. Only a problem occurred when I was deleting persistent partition under adb shell (no space left on device error).

c:\fastboot>adb shell

~ # [6ndd if=/dev/zero of=/dev/block/bootdevice/by-name/persist

dd: writing '/dev/block/bootdevice/by-name/persist': No space left on device

65537+0 records in

65536+0 records out

33554432 bytes (32.0MB) copied, 5.219381 seconds, 6.1MB/s

~ # [6n

However, after re-flashing RUU everything works correctly. And now I have HTC 10 on Nougat with radio carrier working.

Thank you one again :)
[HTC 10 Guides, News, & Discussion] RobertHaung:
I want to rollback from 3.16.709.1 to 1.20.709.1 and I followed all your step. :)

BUT

After I flash hosd_signed.img from 1.20.709.1 in bootloader I can't enter download mode neither RUU mode.:crying::crying:

Then I flash the hosd_signed.img from 3.16.709.1 ,it work again.

What should I do?:confused:
[HTC 10 Guides, News, & Discussion] wtosta:
Do you really need such old firmware? Did you think about it well? 1.20.709.1 is, I assume, MM firmware, one of the first ones for the device. I my opinion Nougat firmware and ROMS are the most suitable for HTC 10.
[HTC 10 Guides, News, & Discussion] vladmitra:
Try another hosd image, but not that old. I had the same problem, couldn't boot to download/ruu modes. Also, for EVERYONE, use htc_fastboot.exe command instead of usual fastboot. This works better after flashing hosd images.
[HTC 10 Guides, News, & Discussion] sabpprook:
There are TWO decrypting keys in HTC 10, N70 and M60 use the same key, therefore you can use N70 hosd.img to downgrading to M60
[HTC 10 Guides, News, & Discussion] RobertHaung:
Today I try to downgrade from 3.16.709.8 to 2.41.709.73.

I did it and running stock rom with signal work.

After I flash RR 7.1.2 it no signal again.

I don't know why.

The strangest was when I got signal (just appear short time) in RR I can call out but my phone won't get any phone call.

This is my daily phone and I really need signal to call so I back to 3.16.709.8

Very thank you guys help me:)
[HTC 10 Guides, News, & Discussion] wtosta:
However my current version-main is 2.41.401.3, yours is 2.41.709.73, in your case it should not make any difference.

What version of GAAPS did you flash with RR 7.1.2? I flashed pico version for arm64 7.1 GAAPS from first week of september 2017. As you can see these GAAPS were released just before the RR 7.1.2 release date. I think it is very little chance that it is it, but you may try.
[HTC 10 Guides, News, & Discussion] RobertHaung:
I'm sure version of GAAPS I flash is recent but not newest.

Can you give me your GAAPS you flash.

I will try again this weekend:)
[HTC 10 Guides, News, & Discussion] wtosta:
Of course, I have chosen this one https://github.com/opengapps/arm64/releases/download/20170918/open_gapps-arm64-7.1-pico-20170918.zip. But in my opinion you may choose whichever you like dated before RR 5.8.4 release day, which means before 2017.09.18, but of course not too old. Probably the august 2017 ones will be ok too.
[HTC 10 Guides, News, & Discussion] RobertHaung:
Thanks so much:)
[HTC 10 Guides, News, & Discussion] gustav30:
Trying this now.

When I reboot in TWRP to use HTC Version Tool

I get:

Can not locate misc partition!

then when I try again I get:

No device detected!

Any ideas on changing the version?

Edit - my bad, obviously had to start adb first...
[HTC 10 Guides, News, & Discussion] marto777:
Now im with last LeeDroid (oreo). So im first need to flash stock Oreo firmware and after that i can downgrade to nougat ? Is there a place that is collected all of RUUs ?

From where can i see my SKU version ?
[HTC 10 Guides, News, & Discussion] zr_hazem:
The SKU version can be found in Settings>About on your phone and then look under Build number. It should be there. And no, you need to flash the nougat firmware first then flash nougat ruu.

If you need Nougat RUUs unfortunately there arent a thread for all of them but I'd recommend searching on google and xda "HTC 10 RUU *SKU version* " you should find multiple sources if not then go on androidfilehost.com and search for "PERFUME" (Device code) there are over 400 files there but make sure to download one that has a similar name to this "PERFUME_XXX_N70_SENSE80GP_MR_HTC_Europe_X.XX.XXX.X _Radio_1.0.U010241a@61226_79.07_F_release_493442_signed.zip" .

Best of luck :)

Please if someone has a thread I don't know about please post it here for the convenience. Thanks
[HTC 10 Guides, News, & Discussion] marto777:
I succesfully downgraded to Nougat 7.0 and after that installed Viper Rom.I used links in this thread - https://xdaforums.com/htc-10/how-to/downgrade-problems-downgrading-htc-10-t3735658 and used tutorial from the video.I made it without S-off
[HTC 10 Guides, News, & Discussion] zr_hazem:
Awesome to hear that you figured it out! :D
[HTC 10 Guides, News, & Discussion] marto777:
For now im very happy with that.Its a lot better with Viper10 rom on Nougat.The phone is more smooth, battery is better and my phone unlock almost a lot faster with fingerprint
[HTC 10 Guides, News, & Discussion] zr_hazem:
How is the battery better? Could you post screenshots for your usage? I'm thinking about going back to Viper but I dont know if battery life will be any better..
[HTC 10 Guides, News, & Discussion] marto777:
I see its lowering slower than before.But on Nougat you dont have a SoT on power options of the phone and im not use another program to monitor the battery.I will install Gsam battery monitor to check it.Now im using only Battery historian (take bug report from developer menu)
[HTC 10 Guides, News, & Discussion] marto777:
Here is my stats from GSAM battery monitor pro. This is the best results for me, but i dont used Facebook and Messenger and these two are the biggest drainers no matter which rom or kernel i will use.I dont know what is the problem on HTC with Facebook and Messenger but they drain my battery so fast, even with Helix engine and lower CPU speeds for them.I also optimized foreground use for them with Boost+ but nothing changed.Today i used Facebook lite but i dont like it.I will try Helix kernel for Viper rom to see if i can get even more battery.The only reason that i downgraded was for the bettery.If you have good battery life on Oreo stay with it.The only advantage of the Viper (nougat) over leedroid(oreo) is the custumizations.Viper have custommuzations of everything.
[HTC 10 Guides, News, & Discussion] zr_hazem:
Wow. That doesnt look bad at all. With my new battery, I get 4:40hrs SoT which isnt bad but i think i can push it. The kernel for some reason takes 20% of battery not sure why. I might consider downgrading.

Thanks for the feedback!
[HTC 10 Guides, News, & Discussion] marto777:
For me everything above 3 hours is excellent.With LeeDroid i have 2h sot best results with low performance but my battery isnt new and i dont give a try without facebook and messenger.Maybe without them i will have better results because they are the biggest culprits
[HTC 10 Guides, News, & Discussion] zr_hazem:
Yes, FB is awful. I'm not sure but i remember that on oreo you can turn off background activity for some apps, so maybe check that out.
[HTC 10 Guides, News, & Discussion] elawady.2014:
i try this mithod but unfortunately i lose baseband and signal after downgrade

Any one know how can i fix it ?
[HTC 10 Guides, News, & Discussion] Mr Hofs:
Dear god, please read your own thread instead of wandering off......seriously, i posted there before you posted here so that means you just don't READ !

https://xdaforums.com/htc-10/how-to/downgrade-oreo-to-marshmallow-signal-t3804542
[HTC 10 Guides, News, & Discussion] marto777:
It doesnt make difference.The main drain is when using the app.Its like you play some heavy 3d game. I think the app isnt optimised at all.I dont even play videos.Just browsing.In messenger is same thing.
[HTC 10 Guides, News, & Discussion] gustav30:
I just successfully downgraded from Oreo to Nougat via S-on. The only thing that wasn't working for me was flashing firmware from either ruu mode or putting the zip on SD card. What worked for me was following all the steps, then after flashing the hosd.image, while in RUU mode, just run the RUU.exe from a Windows computer. Let it go through all the steps. It should match the version if you ran the HTC version tool correct.

(Hoping battery will be better now back to Nougat)
[HTC 10 Guides, News, & Discussion] jack15381:
Hi, Thanks Bro. This Work for me.

But Now how receive ota again ?

My Oem unlocking grayed out !!! :rolleyes:
[HTC 10 Guides, News, & Discussion] X46X:
OEM what? I don't say anything about locking, relocking or unlocking :) Just take the OTA If you are on stock 7.0
[HTC 10 Guides, News, & Discussion] jack15381:
After install twrp, we couldn't install ota. Correct?
[HTC 10 Guides, News, & Discussion] X46X:
I'm not sure. Just flash the 2PS6IMG.zip (7.0) again and then take OTA :)
[HTC 10 Guides, News, & Discussion] scutworker:
I've tried to do this, but HTC Version tool reports that my device is not detected. I can see it using ADB and Fastboot, but not this.

Anybody else had this problem? My drivers are up to date.

SOLVED: used another PC and it worked fine
[HTC 10 Guides, News, & Discussion] HARVEY.SPECTER94085485:
Hi,

I'm also having the same problem as the last poster using HTC _V_T (found in HTCU11 downgrade forum). Not sure what i'm doing wrong? Running W7-64, all drivers installed etc. When cable plugged into device gives some error (at work so can't replicate error atm) when unplugged it gives device not detected?

Could someone please upload the HTC_Version_Tool, with clear instructions on how to change version-main?

(bootloader) product: htc_pmeuhl

(bootloader) version: 1.0

(bootloader) max-download-size: 1578400000

(bootloader) serialno: FA

(bootloader) slot-count: 0

(bootloader) current-slot:

(bootloader) imei:

(bootloader) version-main: 3.16.401.2

(bootloader) boot-mode: download

(bootloader) version-baseband: 2.0.U010241a@71204

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 2PS620000

(bootloader) cid: HTC__001

Running: OS: MaximusHD 4

Twrp: 3.2.1.4

Thanks in advance.
[HTC 10 Guides, News, & Discussion] an_other_884:
Every time I run htc_version_tool (downloaded from https://doc-0g-8c-docs.googleuserco.../1ubjDGNqCfIply-aRN8C7IQNb-YVkD4M7?e=download ) I get:

C:\temp>HTC_Version_Tool.exe
HTC Version Tool, code by sabpprook@xda-developers

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
at HTC_Version_Tool.Tool.CheckPermission()
at HTC_Version_Tool.Program.Main(String[] args)

I've tried 2 different PCs (Win 7 / Win 10). Running cmd.exe as administrator.

Anyone?
[HTC 10 Guides, News, & Discussion] fresh777:
Hi, i success to downgrade to nougat. But i can't flash twrp. It says: "cannot flash this partition in s-on state". Please help

Edit: never mind, i'm very stupid. not to reboot to download mode :)
[HTC 10 Guides, News, & Discussion] fresh777:
You still can get ota and flash it while using TWRP. It's work for me.
[HTC 10 Guides, News, & Discussion] Ivanovic:
Trying to go back to 2.41.401.4 from oreo but no luck. I am LOCKED and S-OFF

1. Tried to flash full stock 2.41.401.4 firmware, got an error that I had to flash again.

2. Boot into bootloader and flash hosd successfully.

3. Tried to flash firmware again but I got an error.

4. Tried to flash nougat ruu then but again I got an error regarding partition.

If I flash oreo firmware phone boots. View attachment 4593820View attachment 4593821View attachment 4593822

Στάλθηκε από το CLT-L29 μου χρησιμοποιώντας Tapatalk
[HTC 10 Guides, News, & Discussion] Khizar Amin:
Thank you for this. However, i have a problem. I have nougat ruu.exe. I extracted the ruu.zip from it, extracted the zip_0.zip, but i cannot open this zip file as windows explorer and 7-zip both say that its not a valid zip file. My version-main is 3.16.617.2. so what i did was:

1. I downloaded the 2.48.617.1 firmware.zip which contains hosd_signed.img

2. Using htc version tool, i changed my version to 2.48.617.1

3. Flashed hosd img

4. Flashed nougat ruu.zip (2.51.617.32)

RUU flashed successfully, but after flashing was complete, my phone got stuck on the htc logo. booted into recovery, formatted data and cache, rebooted while holding power+vol-up+vol-down, but no success. left the phone on splash screen for some time but still nothing.

What am i doing wrong here?
[HTC 10 Guides, News, & Discussion] vladmitra:
You must flash the same ruu version you changed in version tool. If still not working, try flashing marshmallow with marshmallow hosd img
[HTC 10 Guides, News, & Discussion] kallardo:
Hi, I have oreo, s-off, supercid, unlocked bootloader. But can't install nougat rom. Trying install from sdcard, give me a fail 12 ru zip error.

Anyone can help me?
[HTC 10 Guides, News, & Discussion] Tarima:
What zip file are you using? Make sure it's the right one for your phone and is actually a full ruu
[HTC 10 Guides, News, & Discussion] arminmo:
Hey guys

I just did what you said but my download mod is gone now

What the hell i suppose to do?

I'm in leedroid 5.2.3 and I wanna get back to Android 7 stock

Pn: s-on

Build number : 401

Cid: j---15
[HTC 10 Guides, News, & Discussion] katak.bali:
firmware .710

hy does anyone know wht MM firmware number for oreo 3.20.710.2 ?
[HTC 10 Guides, News, & Discussion] Mr Hofs:
MM ? I think 1.95.710.x
[HTC 10 Guides, News, & Discussion] katak.bali:
confused again with Stock RUU, please help me stock RUU for firmware 1.53.710.6
[HTC 10 Guides, News, & Discussion] iNeri:
For those who already downgrade to 7.0 did battery really improve??
[HTC 10 Guides, News, & Discussion] tuanbichtam2:
Very big difference
[HTC 10 Guides, News, & Discussion] iNeri:
Thanks.

So. Time to downgrade then. Let's try this :D

Enviado desde mi HTC 10 mediante Tapatalk
[HTC 10 Guides, News, & Discussion] iNeri:
Just FYI...meen, this is like day and night diference.

With android 8 i can barely do 4 hours of SOT over WIFI, on 3.5g 3.5 hour if i was lucky. Now 6 hours SOT over wifi, thats like 50% more juice!!! WTF!!