yashsingh1/xdaforums huggingface dataset:
[HTC U11  Questions & Answers] presely:
wrong firmware

Hello,

I have successfully downgraded my utc u11 from pie to oreo.

Unfortunately, I made a significant error during installation.

i installed the ruu firmware for double sim from this site, but i have a single sim htc.

Lineageos runs almost without problems, unfortunately I have a small bug like sim card turns off as soon as I turn on gps.

my question now: is it possible to install the single sim firmware without problems or do i have to do a complete reinstall according to the instructions?
[HTC U11  Questions & Answers] presely:
i urgently need your help. after installing the rom.zip i am stuck in ruu mode with the error message

fastboot flash zip rom.zip

target reported max download size of 1560800000 bytes

Invalid sparse file format at header magic

error: write_sparse_skip_chunk: don't care size 994859082 is not a multiple of the block size 4096

sending sparse 'zip' 1/2 (1048572 KB)...

error: write_sparse_skip_chunk: don't care size 994859082 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 994859082 is not a multiple of the block size 4096

OKAY [ 41.732s]

writing 'zip' 1/2...

(bootloader) HOSD CL#1002308

(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_4

(bootloader) LfnEH

(bootloader) ERR [SD_UPDATE_ERR] update_fb_ZIP_buf: can not find ZIP hea

(bootloader) der

(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 22

(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, 22

(bootloader) end@Done

FAILED (remote: 22 RU_HEADER_ERROR )

finished. total time: 57.195s

please help me to solve this.
[HTC U11  Questions & Answers] metropical:
proper CID RUU version

My CID is BS_US001, which is US unlocked. That's fine. I don't want to change the CID.

From the spread sheet, to get back to Oreo, I assume that I use the latest version for the phone?

In this case - 2PZCIMG_OCEAN_WHL_O80_SENSE90GP_MR_NA_Gen_Unlock_2.42.617.7. Dated: 22.08.2018.
[HTC U11  Questions & Answers] hammered58:
Whenever I run the HTC Dev info tool the GetDeviceInfo bar is greyed out. Does twrp need to be installed for this tool to work? Thanks
[HTC U11  Questions & Answers] oliver101282:
In my case you'll need to have your phone rooted. Grant root permission after tapping Get ADB Devices, then you can tap Get Device Info.
[HTC U11  Questions & Answers] hammered58:
Ok thanks
[HTC U11  Questions & Answers] hammered58:
Thanks again for the info, once I rooted pie, the tool worked and with much hit and miss , I was able to downgrade.
[HTC U11  Questions & Answers] Invicta:
can you change MID with the afforementioned tool?
[HTC U11  Questions & Answers] hammered58:
Mid and cid and version with the help of the tutorial by Ryüg.
[HTC U11  Questions & Answers] doomscooter:
Change CID, not MID.

Downgrade is change CID

If you want change MID, must s-off.

Cmiiw
[HTC U11  Questions & Answers] jab5555:
Some ppl have been successful, I've tried it & it didn't for me, but waiting for response. I also tried the cmd method , my phone went into for repair & HTC cocked the update up then denied doing it, strange downgraded my 12+ no problem lol
[HTC U11  Questions & Answers] nedalnib:
Hello Team. If I will downgrade from Pie to Oreo with this procedure it will wipe my data? I have stock u11 (no root, no twrp) updated by OTA to PIE. Is it possible to downgrade and remain all data?
[HTC U11  Questions & Answers] hammered58:
yes all data will be gone, but data on sd card will remain . Also you need to have twrp installed and be rooted for the downgrade to work, at least that was the case for me! hth
[HTC U11  Questions & Answers] nedalnib:
I am thinking about flash stock OREO over my current stock PIE (fastboot, download...). Because this is my daily phone I am trying to investigate if this is possible. I wouldn't loose my daily phone. But also wouldn't loose my all apps and data...
[HTC U11  Questions & Answers] ahanix1989:
I get the feeling my phone is bricked. I've been following every guide and at this point I can't remember what I've done.

Phone arrived initially with 2.42.617.7, has since been rooted and OTA-updated to 3.37.617.1.

Wasn't smart enough to use the TWRP nandflash method.

Bootloader is locked, cannot unlock due to a killswitch that didn't exist before.

Will not boot normally, gives an error that the Device is Corrupt and cannot be trusted.

Can't use the RUU EXE before none exists for 3.37.617.1.

Decrypted 2.42.617.7 RUU, successfully flashed the HOSD.

Download mode displays an OS of 2.42.617.7, but GETVAR and the RUU EXE report 3.37.617.1 and fails with an Unknown Error 155.'

Attempting to flash 2.42.617.7 via 2PZCIMG.zip method fails with error 19 (RU_MAIN_VER_FAIL os-version)

Attempting to flash 2.42.617.7 through fastboot (fastboot flash zip RUU_OCEAN....) fails with error 9 (RU_SECURITY_FAIL)

Attempting to flash 2.42.617.7 through oem rebootRUU fails with error 19 (SD_UPDATE_ERR, Main version NOT ALLOWED)

I think I'll need to switch to the Pixel until a new RUU EXE exists
[HTC U11  Questions & Answers] Pantumaca:
You cannot do that with a stock phone.

With that scenario you can flash the same or newer version/firmware, but never an older one.
[HTC U11  Questions & Answers] ragaris:
Is it possible to downgrade from pie to nougat? My device htv33mla Build number 3.34.970.2 10.2.0_g CL1088389
[HTC U11  Questions & Answers] ragaris:
How to check CID bro? Oh can you give link for usb driver? My device cant connect to pc ive try with differen usb driver but still cant connect
[HTC U11  Questions & Answers] hammered58:
I installed the htc sync manager https://www.htc.com/us/support/software/htc-sync-manager.

There are other ways but this one worked best for me.

That will but put the correct drivers on the pc, once those are instaled run the command via adb in bootloder mode fastboot getvar all ,, this will show you cid , mid , version , etc

Ps,, I uninstall the sync manager but the drivers get left behind. Hth
[HTC U11  Questions & Answers] alexnaoumi:
is there any way to just flash a radio file? I need the one for oreo
[HTC U11  Questions & Answers] alexnaoumi:
So I went through all the steps and everything worked perfectly until the point where I need to flash the rom.zip. Can someone maybe mention what I'm doing wrong. I changed my misc version and I got the correct oreo firmware for single sim, unlocked HTC u11 I type the following and get this back:

htc_fastboot flash zip rom.zip

htc_fastboot v3.0.9.2 (2015-05-29)

target reported max download size od 536870912 bytes

invalid sparse file format at header magi

htc_fastboot finished. total time: 2.546s
[HTC U11  Questions & Answers] hammered58:
I just renamed mine to 2pzcimg.zip put it on my sdcard and then when it says "boot into ruu mode" I just booted into downloadmode and it flashed correctly from there. Hth
[HTC U11  Questions & Answers] hammered58:
when I ran getvar all it showed the correct version I was trying to flash, so I honestly don't know why it keeps hanging on 'processing file 25/28'.[/QUOTE]

After u place the 2pcimg.img on the sd card and after you flashed the hosd_signed.img, you ran the command ,,fastboot reboot download,,, thats was way I did it, why yours is freezing I dont know, you could try changing cid
[HTC U11  Questions & Answers] alexnaoumi:
After u place the 2pcimg.img on the sd card and after you flashed the hosd_signed.img, you ran the command ,,fastboot reboot download,,, thats was way I did it, why yours is freezing I dont know, you could try changing cid[/QUOTE]

I don't have an OS to boot and TWRP is gone so I'm not sure if I'll be able to change anything, but this is what my info is so far. The only thing different is the misc version, which I changed to 2.42.617.7.
[HTC U11  Questions & Answers] alexnaoumi:
After u place the 2pcimg.img on the sd card and after you flashed the hosd_signed.img, you ran the command ,,fastboot reboot download,,, thats was way I did it, why yours is freezing I dont know, you could try changing cid[/QUOTE]

and just to clarify, you flashed from download mode through the update on your sd card? when I do that I end up with this:

22 RU_HEADER_ERROR

22 RU_HEADER_ERROR

FAIL22 RU_HEADER_ERROR

press power to continue
[HTC U11  Questions & Answers] hammered58:
I don't have an OS to boot and TWRP is gone so I'm not sure if I'll be able to change anything, but this is what my info is so far. The only thing different is the misc version, which I changed to 2.42.617.7.

View attachment 4866389[/QUOTE]

I see under google spreadsheet there are 3 different oreo versions, you could try a different one.

---------- Post added at 09:32 PM ---------- Previous post was at 09:05 PM ----------

and just to clarify, you flashed from download mode through the update on your sd card? when I do that I end up with this:

22 RU_HEADER_ERROR

22 RU_HEADER_ERROR

FAIL22 RU_HEADER_ERROR

press power to continue[/QUOTE]

When I look up error this is the explanation

22 RU_HEADER_ERROR: something wrong with your zip; check md5 of download
[HTC U11  Questions & Answers] alexnaoumi:
I see under google spreadsheet there are 3 different oreo versions, you could try a different one.

---------- Post added at 09:32 PM ---------- Previous post was at 09:05 PM ----------

and just to clarify, you flashed from download mode through the update on your sd card? when I do that I end up with this:

22 RU_HEADER_ERROR

22 RU_HEADER_ERROR

FAIL22 RU_HEADER_ERROR

press power to continue[/QUOTE]

When I look up error this is the explanation

22 RU_HEADER_ERROR: something wrong with your zip; check md5 of download[/QUOTE]

I tried another zip file like you suggested and that worked! thank you so much!!!
[HTC U11  Questions & Answers] hammered58:
When I look up error this is the explanation

22 RU_HEADER_ERROR: something wrong with your zip; check md5 of download[/QUOTE]

I tried another zip file like you suggested and that worked! thank you so much!!![/QUOTE]

Glad it worked ?
[HTC U11  Questions & Answers] metropical:
in post #14 of this thread by Ryüg@.

HTC Dev info tool doesn't see phone. "No device detected"

I can get minimal adb/fastboot to see the phone and it will adb reboot botloader or download mode.

But fastboot getvar all / fastboot devices does nothing.

I am running W7 from VirtualBox 5.xxx on a Sierra Mac.
[HTC U11  Questions & Answers] myolgiden:
downgrade from pie to oreo

Hello,

I am using official pie rom for 2 months, and it really has many bugs. Also my battery life considerably reduced. That's why I want to downgrade my phone to official stock Oreo.

I didn't root my phone, and I don't know what I have to do for this operation. I got my CID, it says "HTC__622 / Asia-HK-CHT".

Please help me about downgrade my phone to good old Oreo.

Thank you!
[HTC U11  Questions & Answers] hammered58:
What worked for me was I had to install twrp, then root and then I followed the guide provide by Ryug at

https://xdaforums.com/u11/help/htc-u11-downgrade-pie-to-oreo-t3962791/page2

Hth
[HTC U11  Questions & Answers] myolgiden:
I don't want to root my phone. Aren't there any other way to downgrade my phone?
[HTC U11  Questions & Answers] hammered58:
Not that I know, but there are alot more knowledgeable people than me on this forum maybe they can help. Good luck
[HTC U11  Questions & Answers] metropical:
fixed my issue where HTC DevTool didn't see the phone by installing and granting permissions with Magisk.

Made the change in "misc ROM version" and applied.

But step 11 in #14 this thread. There is no "hosd_signed.img".
[HTC U11  Questions & Answers] hammered58:
There was for me, right after using the decrypt tool it was right where they said it would be in the Out folder of the decrypt tool folder. Double check or try a different ruu to decypt.
[HTC U11  Questions & Answers] ahanix1989:
So just to verify, when my phone says it's corrupted / cannot be trusted, bootloader is locked, and RUUs fail... I'm SOL unless HTC releases a RUU for Pie?
[HTC U11  Questions & Answers] MHD-MHD:
I'm getting this error any fix for it?

C:\Android\com>htc_fastboot flash hosd hosd_signed.img

sending 'hosd' (43705 KB)... FAILED (status read failed (Unknown error))

Execution time is 6(s)
[HTC U11  Questions & Answers] doomscooter:
Flash in bootloader not in download mode. Cmiiw
[HTC U11  Questions & Answers] MHD-MHD:
Solved the issue thanks
[HTC U11  Questions & Answers] sekret999:
Sucessfully downgraded to Oreo from Pie

Thanks a lot for your detailed guide. It is indeed very helpful and I had successfully downgraded my HTC U11 back to oreo from pie :)
[HTC U11  Questions & Answers] aristidis_halk:
yeap you are a hero. it worked and finally i downgraded. thank you so much!
[HTC U11  Questions & Answers] lilrice:
HTC DevInfo has some error about .NET framework on PC, can someone help me clarify this error. Thank you

Could not load type "System Value Tuple '2' from assembly 'mscorlib, Version= 4.0.0.0

Thank you
[HTC U11  Questions & Answers] MSMC:
I keep getting this:

c:\Android\com>htc_fastboot flash hosd hosd_signed.img

htc_fastboot v3.0.9.2 (2015-05-29)

sending 'hosd' (42397 KB)...

FAILED (remote: Requested download size is more than max allowed

)

finished. total time: 0.001s

htc_fastboot finished. total time: 0.225s

And before you say it, yes I am in bootloader not download or recovery. It wont check what size it's allowed to use so anything over 0 bytes fails. I am bootloader unlocked, s-on, and no access to the system at all. Still have custom recovery so I COULD flash a backup if I had one, but I have none. Hopefully this comes in handy. Great guide OP, but sadly this step of flashing the hosd is failing. Any help is HUGELY appreciated. Need my phone working as soon as possible.

EDIT:

I got it to work. I sent the command without the phone plugged in so fastboot was waiting for a device, then I plugged in the device while it was in bootloader mode already, and then i used teh menu to reboot to bootloader and voila, it figured it out. Hopefully this helps someone out.

EDIT 2:

The final step where u boot to RUU mode and flash it doesn't work, I get this when I try that:

target reported max download size of 1560800000 bytes

Invalid sparse file format at header magi

error: write_sparse_skip_chunk: don't care size 2184887382 is not a multiple of the block size 4096

sending sparse 'zip' (0 KB)...

error: write_sparse_skip_chunk: don't care size 2184887382 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 2184887382 is not a multiple of the block size 4096

OKAY [ 1.008s]

writing 'zip'...

(bootloader) HOSD CL#1002308

(bootloader) ERR lzipv1_init : Cannot read header len bytes

(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_o

(bootloader) 2d32x

FAILED (remote: 99 RU_UNKNOWN_FAIL terrible mishap with original ret: 0)

finished. total time: 3.058s

So I figured, well since I flashed that hosd file to trick it into thinking it is a different version, wouldn't that mean I can flash straight from SD card? Sure enough, I could, and it worked! No error 12 or anything. Thank you so much for your help. This phone is a nightmare to get to work if u screw it up, though, it's amazing that it is apparently hard to accidentally brick. Thank you again.
[HTC U11  Questions & Answers] Sumit Khuha:
After giving this command, it says permission denied

And also, in dev info tool, there is only one option that i can use - "get adb device". All other options are blacked out
[HTC U11  Questions & Answers] hammered58:
I had the same issue with the boxes greyed out,, I had to root my phone then the boxes became active.. hth
[HTC U11  Questions & Answers] Sumit Khuha:
Download latest microsoft .net framewor, then try, it worked for me
[HTC U11  Questions & Answers] Sumit Khuha:
i cannot find hosd.img
[HTC U11  Questions & Answers] luis saucedo:
Someone with the RUU Developer 3.37.617.1 ???

I would greatly appreciate your sharing ...;)
[HTC U11  Questions & Answers] Sumit Khuha:
Can someone help me with this?
[HTC U11  Questions & Answers] Sumit Khuha:
I somehow managed to get hosd_signed.img, but flashing hosd is showing some error, i will attach picture, please help...
[HTC U11  Questions & Answers] Golv:
"...reboot your phone to bootloader mode..."
[HTC U11  Questions & Answers] Sumit Khuha:
It was in bootloader mode already..
[HTC U11  Questions & Answers] Sumit Khuha:
Can u help me with this?
[HTC U11  Questions & Answers] federix17:
Hello everyone! I arrived at the step to install the rom using the "fastboot oem rebootRUU" and "fastboot flash zip rom.zip" command but I get the error:

FAILED (remote: 4 RU_BATTERY_LOW please connect charger (0% <30%)).

The battery is fully charged. Can you help me?
[HTC U11  Questions & Answers] DHorseman:
Follow the error mess, you try to flash wrong version of hosd_signed.img. You need to check hosd_signed.img file to make sure it match with your phone

Are you try to downgrade from pie to nougat. If yes, you need using hosd_singed.img from android oreo ota file
[HTC U11  Questions & Answers] Sumit Khuha:
What should i do?

I followed every step, but i get same error everytime, and that tmp folder disappears in few seconds after the rom.zip is extracted in the ruu decrypt tool
[HTC U11  Questions & Answers] DHorseman:
Are you sure you download exactly ruu match with your phone?
[HTC U11  Questions & Answers] Sumit Khuha:
I am on pie (3.35.400.1), i downloaded oreo (2.42.400.3)
[HTC U11  Questions & Answers] DHorseman:
I think you have the phone same with me. But I downgrade to nougat, because my stock ruu is android 7
[HTC U11  Questions & Answers] Sumit Khuha:
You downgrade from pie to nougat?

By the way my phone is Indian Dual sim.
[HTC U11  Questions & Answers] DHorseman:
Yes, my phone is vietnam dual sim version. If you want downgrade to android 7. You need hosd_signed.img from android 8 ota file. If you use file from ruu android 7, you will get battery not enough error
[HTC U11  Questions & Answers] Sumit Khuha:
I will try tomorrow.
[HTC U11  Questions & Answers] federix17:
Thanks a lot I made it downgrade! Excellent guide!
[HTC U11  Questions & Answers] aristidis_halk:
although this guide is awesome and clear and im doing all things correct i cant flash the hosd image. do you know why when i press the command to flash the hosd i get stuck in here and nothing happens?

C:\Android\com>htc_fastboot flash hosd hosd_signed.img

htc_fastboot v3.0.9.2 (2015-05-29)

its as its beginning to flash the image but it never completes. i have done all the steps correctly its just this,the img never gets installed. any ideas?
[HTC U11  Questions & Answers] DHorseman:
Try with fastboot from google
[HTC U11  Questions & Answers] aristidis_halk:
same. i downloaded th sdk from google and same.it just gets stuck there. i am like 2 hours and i cant get past this:p

only thing i thought is to try from a friends pc although i dont know what i have done wrong. my drivers are ok my phone is red on cmd and all the steps are right.

thanks!!
[HTC U11  Questions & Answers] eharvey:
Ok, I need to raise my hand for help. I have an S-on, unlocked, HTC U11 with no OS and TWRP recovery on board that was up to 3.37.617.1 before I formatted and deleted the OS - pls let's not go there :). I've flashed the 2.42.617.7 ROM I have, which matches my CID and MID before, to go back to stock OREO and take an OTA up to Pie so I know the setup is valid. Now that I am deducing I won't find an RUU OS at the Pie level to flash and you cannot go easily down to Oreo from Pie to do my old trick, I am here. When I try your instructions I can't get the MISC change to stick in step #5 - rebooting to download mode shows the OS at 3.37.717.1 still. I'm changing the MISC value to the 2.42.617.7 RUU I want to flash. Looking ahead, another issue I am having is when I do step #11, I get an CRC error on a zip folder and the sequence aborts. Please help if you can....
[HTC U11  Questions & Answers] DHorseman:
First: if stock RUU of your phone is android 8, please using tool to decrypt, don't using winRAR or winZIP. If still get error, please check your RUU file to make sure it not corrupt

Second: when you change version by htc devinfo tool, version in download mode will not change (in my case), don't worry, try to flash RUU.

Third: if you can't change mid or version by your phone has no os. You can flash custom room, and try to root with magisk. After that, you can using htc devinfo tool
[HTC U11  Questions & Answers] eharvey:
Thank you so much for the nudge. All set!! I had to download another RUU, I just went back one version and stayed at OREO, and updated all the values throughout the process accordingly. I noticed the MISC changed when I ran the fastboot command even though in download mode it said it was still he PIE value. Thanks again!!
[HTC U11  Questions & Answers] quattro527:
I would like to add that these instructions are ON-POINT.

I was on-the-fence on Pie, but the recent "stay-at-home" order also made Google update their Google Pay and Play Store where my phone would no longer pass Verity/CTS check rendering my Google Pay USELESS. I've tried everything--but realized I'm better-off back on Oreo due to the wider range of ROMs and support--but spent the weekend trying to S-Off (which won't work with Pie) so I can flash an old Oreo RUU.

I was stuck at using the HTC DevInfo Tool to change the CID/MID, as well as the current version (this value is what the RUU checks, so downgrade to a version that is older than the RUU you're planning on installing). RUU flash came back with a signature ERR (132 if I recall)--this caused a signature "mismatch" on validating the actual firmware that was on the phone.

What did the trick for me was the extracting and flashing the hosd_image file--flashing this was which allowed the RUU to detect the older/same version allowing it to proceed. However--I had issues flashing in oem RUU mode, so I simply grabbed the extracted *.zip file from the RUU decryption, renamed it to 2PZCIMG.zip, put it on a ZIP card, then rebooted into Download mode, pressed VOL+ to proceed, and it did the rest. I am now back on Oreo.

Thanks again, I can now again be "contactless". :)
[HTC U11  Questions & Answers] Fearreality:
All of this was exactly what I had to do to get mine flashed. As a side note, I also had to use an older RUU as the latest one from the google spreadsheet seemed to be broken.
[HTC U11  Questions & Answers] Adkun:
Error

PS D:\htc> fastboot flash hosd hosd_signed.img

Sending 'hosd' (9728 KB) OKAY [ 0.375s]

Writing 'hosd' FAILED (remote: 'verify HOSD fail')

fastboot: error: Command failed

Im flash hosd fail with mode bootloader, please help me
[HTC U11  Questions & Answers] Htcu11user:
Hi, im getting this error. I've tried different ruus but it isn't working. Please help. My phone is 100% charged. Still it's showing this error.

C:\Android\com>htc_fastboot flash zip rom.zip

htc_fastboot v3.0.9.2 (2015-05-29)

target rom version: 1.27.400.21

found large-zip header, file count: 26

processing file 1/26...

sending 'zip' (211221 KB)...

OKAY [ 8.939s]

writing 'zip'...

(bootloader) HOSD CL#952087

FAILED (remote: 4 RU_BATTERY_LOW please connect charger (0% < 30%))

finished. total time: 9.958s

htc_fastboot finished. total time: 12.767s

UPDATE : so i solved this issue by flashing different hosd_singed,img

Now im having problem with htc deviceinfo tool.im not able to get device info in htc deviceinfo tool. I open the tool then click on get adb devices then on get device info but nothing shows up. I tried in recovery mode as well as in system mode with magisk installed then it says cannot get root permission and sometimes it says a dialogue will appear for root permission please accept that but nothing appreas in my phone. I checked adb isconnected properly and all commands are working but this tool isn't working for me. Please help.