yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] venom55521:
is there a chance to use Nowipezip to a htc 10 stock phone S- ON even though s-off is needed because i have to flash ruu but i dont want my data deleted ?
[HTC 10 Guides, News, & Discussion] xunholyx:
No.

Backup data only in TWRP to your extSD card. Then you can restore it after running the RUU
[HTC 10 Guides, News, & Discussion] Prinz069:
Still running the beast but since I use the 10 for ages, I'm currently looking for an alternative. Unfortunately HTC for me is not working anylonger on flagships so I compared and got stuck at Xiaomi Mi 9 or the Mate 30 pro. But as I'm still saving some money until I decide what will be next, I want to upgrage my 10.

I am on Build 2.41.401.3.8.0_g

Android 7

Viper 5.00

S-On

Unlocked

Rooted.

Didn`t flash for ages but as far as I remember, I can restore a Nand in order to get a stock rom which will be updated with the newest firmware, then installingTWRP again and flashing curent Viper rom. Am I right, or did I miss something?

Now, after a while of searching, I am not able to find a restorable NAND or a .zip ro flash.

I appreciate your help. Thx in advance.
[HTC 10 Guides, News, & Discussion] venom55521:
since youre aware of my situation, would I be able to flash TWRP? also is RUU a deep format or standard format, because i came accross this website called dr.fone and read about the recovery options,
[HTC 10 Guides, News, & Discussion] Sneakyghost:
With your preconditions I'd suggest to RUU, then pick up any available OTA.

With these later HTCs its a bit messier to restore a NAND and get an OTA. There's a variety of things that need to be just right in order to get an OTA with a restored system. I have not done any of that stuff in 2 years myself, so forgive me if I don't recall the exact things, but trust me, RUU is easier.
[HTC 10 Guides, News, & Discussion] Sneakyghost:
As I let you know already via PM, I strongly believe your device is broken. I suggest you look for a new phone.

To remind you and other possible readers: the HTC 10 likes to have its USB port broken as first part to go. Then, it likes to die on NAND failure (second most often thing I see on the net). In any case, the batteries from the earlier HTC10's (must be around 4 years now, right?) will all die by now. No way those last much longer. The one from my HTC10 died months ago (my niece was using that phone the past year and at the end, it would hold a charge for only 2 hours). I see no point in wasting more time trying to fix your device, as you described plenty of symptoms that are - according to my experience - pretty much signs of "multiple organ failure". I believe it is unlikely you can fix it.
[HTC 10 Guides, News, & Discussion] Prinz069:
Well,

As I didnt find any Nand I decided to try something else for now. Current HTC specs arent sexy enough for today so I decided to buy a Mi9.

Still stock but with a Snapdragon 855 and 6GB of RAM it runs very smooth.

Missing Sense so I installed it. Now I need to get rid of all that Spam.

Sorry HTC!! I really apollogize. I wish my new device would have been one of yours!
[HTC 10 Guides, News, & Discussion] Dukenukemx:
I need help, I'm trying to convert my HTC 10 Asian model to US to use on T-Mobile because the reception was awful. I have my phone bootloader unlocked and S-Off and checked the CID and MID. When I ran HTC's RUU it quit and gave me error 132. I dug around the internet and found 3.16.617.2 and flashed that in download mode, but I got a few errors. 12 RU_ZIP_ERROR and FAIL12 RU_ZIP_ERROR. Can using Fastboot flash fix this problem? The phone does boot but I want it on 2.51.617.32 and properly flashed. This is what getvar shows. This is the rom I flashed to get here thus far.

(bootloader) kernel: lk

(bootloader) product: htc_pmewl

(bootloader) version: 1.0

(bootloader) max-download-size: 1578400000

(bootloader) serialno: hide

(bootloader) slot-count: 0

(bootloader) current-slot:

(bootloader) imei: hide

(bootloader) version-main: 3.16.617.2

(bootloader) boot-mode: download

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

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 2PS650000

(bootloader) cid: BS_US001

---------- Post added at 02:03 AM ---------- Previous post was at 01:18 AM ----------

I tried flashing PMEWL_2.51.617.32_NoWipe_TWRP3110.zip twice but it gets stuck at tp_SYN3708.img@50%. I've tried flashing twice. Can anyone please help? Tried flashing from SD Card and same problem.
[HTC 10 Guides, News, & Discussion] andybones:
Hey first hide your IMEI..

I'm a little confused.

You can fastboot flash just the radio.img

The link you posted to isn't a ROM, it is an RUU. -- big difference.

An RUU has the stock ROM, stock kernel, stock recovery, and the firmware.

I see that you are on "(bootloader) version-main: 3.16.617.2" which is the same as the RUU that you posted to above.

If you are trying to downgrade from the Oreo 3.16.617.2 to Nouget 2.51.617.32 there's a few things you must do, I forget them, but there's a thread on it, was a big deal when Oreo came out.

Basically from what I can tell you either want to flash 3.16.617.2 without errors, or 2.51.617.32

-----------

Can I ask what method you went about installing the RUU?

I always suggest using the SD-Card method. It's truly the safest. No worry about PC crashing, or power outage or something like that and risking bricking the deice. :eek:
[HTC 10 Guides, News, & Discussion] Dukenukemx:
I thought 2.51.617.32 was the latest? That's why I'm flashing it. If 3.16.617.2 is the latest American rom then I'd gladly go to that.

---------- Post added at 04:56 AM ---------- Previous post was at 04:06 AM ----------

I was able to get it back to 3.16.617.2 using that zip file but it had errors when flashing but the phone still boots fine and my T-Mobile LTE is much stronger now than when it was on the Asian rom. Then I tried this RUU to get a proper flash and it failed with error 155. Does the bootloader need to be locked or unlocked to flash a RUU?

---------- Post added at 05:21 AM ---------- Previous post was at 04:56 AM ----------

BTW the errors I get when flashing as a zip are this. But like I said, the phone boots up fine.

tp_SYN3708.img@FAIL

33 RU_UPDATE_FIRMWARE_FAIL

FAIL33 RU_UPDATE_FIRMWARE_FAIL
[HTC 10 Guides, News, & Discussion] andybones:
x.xx.617.x = is unlocked.

So, both are us unlocked, since they are .617

2.x = Nougat 3.x = Oreo

Unfortunately I don't know those errors are and will try and Google them later, but if you are booted up and signal us better then I would just stay where you are and if want to flash custom Ron you're set to go. The output shows you're on the 3.x firmware so that's good. I also don't if that's the latest us up firmware but I believe it is. (I'm on vzw, we are x xx.605.x)

Bootloader doesn't need to be touched for ruu/firmware/rom

This thread might help

https://xdaforums.com/htc-10/help/htc-10-standard-behavior-t3558682/page2
[HTC 10 Guides, News, & Discussion] Dukenukemx:
Could it be that my original firmware was 3.16.709.3 and flashing 3.16.617.2 is not nearly as new enough? Thanks for the help BTW.
[HTC 10 Guides, News, & Discussion] andybones:
very welcome :cool:

I don't think you're understanding, or I am not doing well enough to explain...

why and where are you getting or thinking that 3.16.709.3 is newer than 3.16.617.2?

x.xx.617.x = us unlocked

x.xx.709.x = no friggin idea, lol, asia or w.e u had on it before I'm assuming.

the key you need to understand my friend are those 3 numbers. .617 = us unlocked.

for me, for example, verizon = .605

so the reason you have better service is because of that 3.16.709.3 firmware, namely the radio.img

both are Oreo and just as updated. it would be like running the att firmware on my verizon sim, i guess if that makes sense. sure it works, it's oreo, but i wont be getting any 4g, etc.

hope this makes some sense. :good:
[HTC 10 Guides, News, & Discussion] yellowhornet13:
Hello, I'm S-OFF and got 12 RU ZIP Error with RUU

Bootloader unlocked and unlocked - the same issue.

Any idea what could cause that?
[HTC 10 Guides, News, & Discussion] paapaapaa:
Hi, one month ago I bought new HTC 10 from AliExpress. I ordered an European model and got delivered with US OS (htc_pmewl / version-main: 3.16.617.2 / mid: 2PS650000 / cid: 11111111). I wanted to downgrade to Marshmallows and run Viper 10. 11111111 is super cid?

I unlocked and installed TWRP (3.5.0). I rooted (SuperSu Chainfire) the phone and installed LOS Oreo 15.1. Everything good so far. I have not done any Version Tool on the phone so still 3.16.617.2. I further installed RRemix Nougat and got into some Imei problems. To solve that I found advice on web to fastboot erase persist for items on S-OFF. Then persist was lost and the phone was stuck on boot. I did not try to downgrade further to Marshmallow as there are some bootloader issues with that downgrade.

I earlier downgraded a HTC 10 with WWE OS (401) from Oreo to MM stock. That one was S-on and I used a dd .. zero command to solve imei problems. On that on I used Version Tool to change version. I did run into bootloader problems during the process. Thereafter I installed Viper10 3.5.0. Everything worked fine. That phone still works and there is a persist directory which of course should be possible to copy.

I have on the new tried to find a persist.img but cannot find. I have extracted by HTC Encryption Tool several stock RUU but cannot find persist.img. Seems imei still on the phone but sure persist is deleted. I have a 3.16.617.2 clean Disk Image (prepared before rooting). I’m not to keep trying to reinstall 3.16.617.2 because I’m afraid I’ll lose TWRP and phone may stuck in booting as it is doing now. No problem to launch TWRP recovery.

I notice there is not a lot of activity on this thread but hope I can get advice how to get persist back and solve this. Maybe reinstall persist I have imei problems?
[HTC 10 Guides, News, & Discussion] Sneakyghost:
Hi,

I am gathering from your post that you're familiar with dd and that your HTC10 is S-OF.

For this situation i could offer you to dd pull the persist partition from my european version of that phone (.401).

You could then dd this partition image to your phone, provided you can enter twrp recovery and access that via adb.

There also is a slight chance that you can even flash it with fastboot, by using "fastboot flash persist persist.img" - i have never tried. Run fastboot help to get an overview over the available commands. Try different fastboot versions as well - they have different command sets.

Recovery questions:

If you do not have a custom recovery but can access fastboot, you can simply flash a custom recovery via fastboot.

If you cannot flash a custom recovery but can still access fastboot, you can fastboot boot recovery.img.

Please let me know if this appears helpful. I will then pull the partition for you.

Please be aware that although i did this process on my U11, which now appears to be working fine, i am still not sure that it did what i hoped for. I think it might have messed up other things. I do not fully understand, what persist contains on either the HTC10 or the U11. So there might be a risk of further damage which i am not taking responsibility for.
[HTC 10 Guides, News, & Discussion] paapaapaa:
Getvar data as from today from 3 phones / the last one troublesome:

htc_pmeuhl / imei: 3542610736xxxx / main: 1.90.401.5 / baseband: 1.0.U010141a@60714.2 / mid: 2PS620000 / cid: HTC__J15

htc_pmeuhl / imei: 3542610721xxxx / main: 1.21.401.4 / baseband: 1.0.U010013@60331.4 / mid: 2PS620000 / cid: HTC__034

htc_pmewl / serialno: HT66PBN0xxxx / imei: 3542610729xxxxx / main: 3.16.617.2 / baseband: 2.0.U010241a@71228.2 / mid: 2PS650000 / cid: 11111111 (phone is S-OFF / not sure why supercid 11111.. / bought new from AliExpress this year).

For the last I have stock Oreo (3.16.617.2) untouched (prior to flashing SuperSu) TWRP System Image and Nadroid backup. I also have Oreo Los 15.1 TWRP Nadroid backup. I access fastboot from PC and from phone buttons. 2 days ago I tried to pull persist using adb pull but it did not work (maybe wrong syntax). I have not tried to find out how to prepare an image file. I extracted stock RUU firmware but could could not find persist image. I also tried to fastboot boot an unofficial twrp on one old phone but phone stopped during the process. I was able to start the phone again but maybe have some problems now. https://xdaforums.com/t/how-to-backup-persist-partition.3926590/

Thank you Sneakyghost for your response to my problems. Also very helpful that you offer to prepare an image for me (or advice me how to). If I had been able to pull it would also have been from an European phone. Think better to try this route first. If you have other suggestions tell me.
[HTC 10 Guides, News, & Discussion] Sneakyghost:
When you use "DD" to pull a partition, it will be pure binary, raw data. Technically, it won't comply with "img" specifics, but you can rename the pulled data file to "persist.img" and flash it using either DD again (in that case, the file extension really doesn't matter, what matters is that you know what's in it), or using fastboot, in which case the file extension might matter (not sure).

I can try to get that persist image for you tomorrow. Today i won't have the time.
[HTC 10 Guides, News, & Discussion] paapaapaa:
Thank you. No urgency but would be nice to get the phone working.
[HTC 10 Guides, News, & Discussion] Sneakyghost:
I forgot. I'm sorry. I'll try to set up my machine and do that before work today. I hope i can still remember everything that's necessary. Haven't done this in ages.

[EDIT]

Ok done. Wasn't too hard after all. Pulling mostly works with S-ON (my HTC10 is a replacement which i never bothered to set S-OFF). You might need to be S-OFF for pushing it though.

I remembered the commands when I sat down at my machine. adb pull /dev/block/mmcblk0p48 persist.img is what worked. How did I figure out what Block? I remembered to run adb shell and then su and then ls (@JEANRIVERA had a nice post that helped me remember lol) while in TWRP 3.5.0_9

I had a look inside that persist.img dump (used UltraEdit) and found its mostly empty. only a few lines in there, most are encrypted or something, very little clear text strings. I saw SELinux stuff and not much more. Not sure what this will do to your device. If you have any strange things going on in regards to SELinux later when you boot up, let us know here.

On the U11, this persist swap helped fix WiFi after trying to mess around with LineAgeOS and it also helped fix IMEI problems. I do believe the U11 has a very different archicture though. I doubt persist has such a strong place on the HTC10. Not sure though. Haven't been dealing with this since years. Just flash away and report what you find. For others to learn.

I put the image plus a device-info text file into a RAR archive. Its compressed with RAR5, so you'll need a current WinRAR to unpack.

Have fun.
[HTC 10 Guides, News, & Discussion] paapaapaa:
Fastboot gave the following message:

PS C:\htc\com> fastboot flash persist PMEUHL_persist.img

target reported max download size of 1578400000 bytes

sending 'persist' (32768 KB)...

OKAY [ 2.433s]

writing 'persist'...

(bootloader) HOSD CL#1012001

FAILED (remote: 35 RU_PARTITION_NOT_SUPPORT persist)

finished. total time: 3.448s

I found the following in MI Community:

1. You need Unlocked Bootloader and TWRP. You can boot in TWRP instead of flashing it.

2. Download the fastboot ROM for the device. Extract it and copy persist.img file to the internal memory of the phone. Make sure put the file in internal storage rather than in any folder.

3. Put the phone in fastboot Mode, Power Button and Volume Down key.

4. Boot in TWRP by "fastboot boot twrp.img" command.

5. In the TWRP Main Menu. Go to Advanced ------ Terminal

6. Write the below 2 lines:

simg2img /sdcard/persist.img /sdcard/persist_EXT4.img

dd if=/sdcard/persist_EXT4.img of=/dev/block/bootdevice/by-name/persist

If you are facing this error "invalid sparse file format at header, failed to read sparse file" no need to use simg2img command, Just use the dd if command.

I used TWRP Terminal for copying persist.img to internal storage. The simg2img command gave the “invalid sparse....” error message. Thereafter I entered the dd command (dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist). Problem solved and the phone booted.

However fingerprints probably part of persist.img and lost. Booted to TWRP and could probably solved fingerprint issues by restoring a backup but don'know.

From TWRP 3.5.0 I did a wipe/format data which removed encryption and a lot more. No problems for me as I did not have important data on the phone. Thereafter I flashed SuperSu from TWRP. I also decided to encrypt with pattern again.

I can now take next step for downgrading from LOS15.1 Oreo to Marshmallow.

Thank you Sneakyghost for helping me solving the persist problem.

Previously I downgraded an European (401) S-On Htc10 from Oreo to Nougat to MM with stock RUU and when on MM installed Viper10 3.5.0 easily. This time I considered to move from Oreo 617 to Oreo 403 and then downgrade but skipped that route. Which route may be the least complicated? The case is also that a lot of software links are broken due to the age of the phone and Android version.
[HTC 10 Guides, News, & Discussion] Sneakyghost:
I'd not downgrade and run stock and stop messing around. I found nice little helpers for everything i like to do, like Microsoft Launcher for replacing Sense, button remapper from Flar2 for getting some extras on the buttons, etc pp...

That's what I'd do. You'll need to find what suits you best. Sorry.
[HTC 10 Guides, News, & Discussion] paapaapaa:
The idea is to run a tiny screen recorder app made by iwobanas (https://xdaforums.com/t/app-4-0-root-scr-screen-recorder.2422061/).

The beauty with that app is that it is possible to record internal sound of a video call. It means that any video call whether whatsapp or other can be recorded with full sound. Android blocked with some Nougat API or other modifications to block this possibility. So for running this OS has to be pre Nougat. I have tried to install this app on several other phones but only succeeded with HTC. One month back I tried to install on One Plus 3 with MM OS but did not get the app working. Then I bought this brand new HTC 10 for installation.

But except for this app I see no reason to downgrade to MM. There is also an element of nice to test out and try. Thank you for your comments Sneakyghost.
[HTC 10 Guides, News, & Discussion] Sneakyghost:
Yeah that's all totally ok, i was just gonna say I'm not active anymore and do not have much to say to what users want or need anymore. I came out of my hole to help someone out with an ancient phone i happen to have, but now I'm walking away again... 😉
[HTC 10 Guides, News, & Discussion] paapaapaa:
Thank you Sneakyghost for coming out of your hole. Without your help I would not have been able to solve a phone stuck in boot process.
[HTC 10 Guides, News, & Discussion] ThePhoneGeek:
So since this thread is only 20 pages long I would suggest reading it in it's entirety as you'll avoid many of the problems encountered. Don't rush because when it comes to firmware it's real easy to brick a device, albeit harder with the 10 than in the past but you still need to be careful.
[HTC 10 Guides, News, & Discussion] Sk1985:
Formatted user data and storage was visible again :) Installed my rom and hopefully i'm fine again..
[HTC 10 Guides, News, & Discussion] nkk71:
how about you post your full command prompt/terminal output (that means: including the commands you typed)

and

also include links to the file(s) you were trying to flash,

not to mention a "fastboot getvar all" (excluding IMEI) from download mode

we can see it "fails", but no clue what you were flashing
[HTC 10 Guides, News, & Discussion] Sk1985:
I must say that i didn't read all the known errors and problems.. will take me a long time so it's my own fault.

I used the procedure described on page 1. The last command i entered was "fastboot flash zip Firmware_xx.zip"

I used the Combined, NoWipe ZIP Version 1.80.617.1
[HTC 10 Guides, News, & Discussion] Sk1985:
That's looking better! I will try it at a later moment when i have some more time! :)
[HTC 10 Guides, News, & Discussion] nkk71:
it's only an "indication", you need to provide the actual commands you typed,

eg, I'm booted into the rom and issue the same commands... nothing will happen

i honestly can't make this foolproof, but the first several post have more than enough info to guide you through it.

if however, something fails, then not providing the full command prompt/terminal output, is pretty useless, you'll just have people guessing.... for example: why did i choose to use htc_fastboot.exe? .... simple i'm flashing a full RUU, the size limit wont allow "normal" fastboot to flash it, so i have to use htc_fastboot... had it been a "normal" firmware only (i do believe this thread is about that), then even normal fastboot would be fine

but (personal choice), i like to see a full output, not the error.... eg "fastboot flash Viper10" .... yeah, that's not gonna work ;)
[HTC 10 Guides, News, & Discussion] bocke85:
What have i to in your batch tool to flash the new firmware? i can't type in the zip i wantt to flash. i always close the batch tool. i had put it into the Folder in the discription.

In RUU mode he tolds me that the command fastboot is not exicst or written wrong. any help?
[HTC 10 Guides, News, & Discussion] ksong12:
Hey guys,

Has anyone run into an issue where the flash runs fine, and in download mode it says that "OS-1.80.617.1", but when I boot it up in the Android settings, it reports 1.53.617.5? I'm attempting to flash the NoWipe version. Perhaps it really did work, but the version number in Settings is wrong?
[HTC 10 Guides, News, & Discussion] Kratos90:
That means it's fine, your OS version in download mode is the actual firmware that your phone has, the version number in settings is the build number of the ROM you're using.
[HTC 10 Guides, News, & Discussion] ksong12:
Doh! Of course haha. Thank you!
[HTC 10 Guides, News, & Discussion] bocke85:
Gesendet von meinem HTC 10 mit Tapatalk
[HTC 10 Guides, News, & Discussion] Sneakyghost:
Extract my batch tool like suggested to C:\android, then put the zip into the subfolder C:\android\com and rename it ROM.zip for the FUU (I think function 17 launches the FUU).

Alternatively, put it in \com, then pick function 3 in the batch tool for a command prompt, and then run the command fastboot flash zip <firmware.zip> (replace with actual zip name).

Execute that with the phone in download mode.
[HTC 10 Guides, News, & Discussion] bocke85:
if i try with step 3 it always say that the command fastboot not exicst or written wrong. if i use the fuu. is there also just lost my data from phone but the rom stays?

Gesendet von meinem HTC 10 mit Tapatalk

and if i run the FUU i always get the 171 usb connection error. i reset the drivers on the pc and make the sync manager update. and everytime i got the same problem. one more thing looks not real. if i use the FUU and want to flash the new version i've renamed to ROM.zip it say something like :#*+~~²3+++~4 not exactly but it does not take the version number. do i something more wrong?
[HTC 10 Guides, News, & Discussion] Mace490:
Hey Guys,

i am now on Leedroid v.1.5.0 so the the 1.80.xxx base. I am s-off but still on stock firmware. I would like to upgrade my firmware to the newest 1.80.xxx. Can i just go supercid and flash the firmware or do i have to concider anything?

THX in advance!
[HTC 10 Guides, News, & Discussion] ThePhoneGeek:
Which device do you have? US Unlocked, TMO, Verizon?
[HTC 10 Guides, News, & Discussion] Mace490:
Ahh Soryy :) My 10 is Europe Unlocked with T-mobile CID. Already s-off and rooted of course.

Thx
[HTC 10 Guides, News, & Discussion] ThePhoneGeek:
Ah... T-Mobile US CID or TMO European CID. I believe the 1.80.401.x firmware should work for European models.

However if you're using TMO US CID then you could supercid and use the US unlocked version 1.80.617.1.

TMO US hasn't released firmware for 1.80 yet so your best bet will be unlocked version.