yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] swerff:
I will. I'll be so pissed if it doesn't work. I just got lineage reinstalled and everything setup and device registered (bank apps)

It was an asshole surprise when I wasn't around a laptop. I had nothing on the storage to flash clean again.

Sent from my pme using LineageOS
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mahdibassam:
So then how could one flash an OTA if they are rooted and bootloader unlocked on stock firmware ? Could that be in your tutorial?

Sent from my Galaxy S7 Edge
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
HTC has always had something that flags a device with unsigned boot images are booted, that isn't new, and isnt likely causing this.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
This is wrong, you dont need to be decrypted to put a rom on the device
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] duowing:
I would go with the system/recovery mismatch. On my Moto Maxx when I backed it up, I restored the recovery from the full image, but the system backup I had made had the stock+ota. So when I tried to install the ota update to Marshmallow, it checked the system and recovery. It saw my system at .16, but the recovery was a .13 version and it aborted. So I went back to everything stock with the .13, reapplied the .16 ota, then applied the Marshmallow OTA and everything went fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bl4ckluna:
i just unlocking. not flash twrp.ota success
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Looks to me like root was the issue, after decompiling Updater.apk. Look at the same of the string:

<string name="msg_update_unable_rooted">"There was an unexpected error and the file system may be corrupted.
Please contact HTC support for further assistance."</string>
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] OMJ:
yep..if he was using the wrong recovery...

build.prop has the check: ro.expect.recovery_id=xxx
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
need to add blarp so i can keep track of this thread, sorry for the intrusion
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Thanks for the confirmation :), if this were the case than things are much simpler.

However, the recovery mismatch will still be a problem though, because HTC disabled fastboot boot, there is no way to backup current recovery image (unless you have two phones, flash TWRP to the recovery on one to backup the boot image, and then flash TWRP to boot on the other to backup the recovery image).

So if people replaced their recovery as soon as they got the phone like what I did, they will have a problem receiving the first OTA.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
You should trust me with the tests I've done lol

I'm really careful doing the tests, I reverted to 100% pure stock before saying that OTA is not working on my phone It's impossible for me to make simple mistakes such as leaving root or modified boot image on my device :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] techlogik:
Somebody do a test. logcat the update when you run it, just the Check for Update, before you ever download it. Then, find the URL for the download in the logcat.

Try to download the file directly through a web browser on your computer.

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
This is the method how I updated my device.

However, things aren't that simple because there is no URL in logcat.

I luckily found out that the updater will check if the OTA file exists, it will show the OTA zip filename.

And then I "guessed" the OTA link, took me several tries before I got a working link :)

Then you have to extract the recovery from the OTA firmware and manually apply the OTA with stock recovery.

This is why I said it will be a lot of hassle to update your phone if HTC blocks you from updating.

I'll post a detailed guide about how I got it soon, right now I'm too busy to do so.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nenebear:
1.21 system.img boot.img and 1.30 stock recovery is can update .
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
If someone on the 1.21 software hasn't yet flashed TWRP, please do this - flash TWRP to boot, and then make a backup of the stock recovery. That way we'll at least have a copy of that for OTAs. You can then restore the backup of boot from the OP and be back to how you were.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Two phones, or a community of people with the same software ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
If you read carefully you'll note the difference :p

You cannot even see the OTA coming to your device if the recovery is not matched, so it means you cannot download the OTA.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] meyerweb:
This is nothing new. Many phones won't apply and OTA unless the system it's going to update is stock, and that's a good safety feature. An OTA can update all sorts of system files, and if you've altered them through root there's no way to predict what an OTA would do to your phone.

Refusing to apply the OTA is a heck of a lot better option than applying it and then discovering you've just hosed your phone.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Update the OP with more detailed information, also provide the guides to help those already replaced their recovery.

HTC never had this strict verification before. Stop claiming that there is no new information.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Are you fully sure it's about the recovery version, I cant find anything in the Updater: http://hastebin.com/ogabeyaxun.avrasm

However, verity, does seem to trigger the corrupt emmc (as far as i can tell, though didnt look into much detail or compare to anything previous either): http://hastebin.com/yexojojuho.coffee
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
To piggyback on this, [MENTION=4470081]topjohnwu[/MENTION], did you try removing forced encryption and leaving the verify flag and see if you still have issues with mobile data? Did you confirm that the OTA wouldn't apply with that setup also?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
I tested OTA with following configurations:

Modified system + modified boot + TWRP --> Show system corrupt.

Stock system + stock boot + TWRP --> Show system corrupt.

Stock system + stock boot + wipe data + TWRP --> Show system corrupt.

Stock system + stock boot + new stock recovery--> Show system corrupt.

I upgraded with this procedure:

Stock system + stock boot + TWRP --> Use trick stated in OP to download OTA --> extract new stock recovery and flash to phone --> manually apply OTA with new stock recovery without any problems.

About data encryption, I tested with following condition:

Modified system + supersu modified boot (which means both dm verity and encryption disabled) --> Wipe data --> no signal

Stock system + supersu modified boot (which means both dm verity and encryption disabled) --> Wipe data --> no signal

Stock system + manually modified boot (only changed forceencrypt flag in fstab) --> Wipe data --> no signal

Stock system + stock boot --> Wipe data --> signal working

Hope this is clear enough :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Superguy:
So does this mean that modding and romming are going to be more difficult with this phone than previous HTC phones?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
We don't know that until we actually try. How about we wait until a few more people have it and try to dev for it before we start getting too worried.

This post is focusing on being able to take the OTA, which most people using custom ROMs have no interest in doing anyway.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Superguy:
Fair enough.

In your opinion, if there's an OTA when the phones ship, are we better off waiting on accepting it?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Simply said, nobody is questioning [MENTION=4470081]topjohnwu[/MENTION] (the OP), who has brought valuable information to us all... yes some things change, and others not.

Personally, i'm just asking questions, and topjohnwu has been sharing his findings as best as can be... possibly better than anybody has, but your questions doesn't (IMHO) belong here.... asking a personal opinion... it's personal, you do it at your discretion

this seems more of a R&D thread from my perspective.... and yeah, i'm not entirely clueless to that
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nenebear:
No signal is because

1.encrypttion disable

2.superSU.zip

So you can do this

1.keep forceencrypt

2.remove superSU.zip

Hope that can be helped for everyone.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Superguy:
I disagree my questions are inappropriate as I'm trying to understand what it means. Facts themselves are great, but without analysis and the "why does this matter", they don't mean much.

It's obvious things have changed this generation, even with Sammy phones.

I just want to understand what this all means, and the best way to do that is to ask questions. Given the new complexities, I don't see how asking questions about what should we do regarding OTAs it's a bad one. If you disagree, that's fine.

I'm grateful for all the work these guys are doing and by no means intend to be a pain or anything like that.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] PhoenixPath:
From the sounds of it, it means we need sock recovery to even get OTA, much less install it.

It's not a show stopper, but makes things more difficult until we get easily flashable stock recoveries.

For most users once they are on ROMs, this will make no difference whatsoever.

Note: All of the above assumes I am reading the current situation properly. Pretty sure that's the case, but there's an awful lot of information to grok here.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] htc-hd2:
Just to make sure.. (It's been a while back last time I rooted my old HTC)

Basically use: htcdev.com to unlock bootloader, and install a recovery and SuperSU?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Yes, but again, SuperSU isn't the only root option. TWRP is the only recovery option, though ;).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] htc-hd2:
Thank you for the info... So here we go.. Hell.. I've only got the phone about 5 hours now.... :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] hgoldner:
It's going to be interesting to see whether the fingerprint scanner works on unlocked bootloaders. On the One Max, the fingerprint scanner does NOT work unless the bootloader is locked. This has lead to us locking and unlocking the bootloader once S-OFF in order to change ROMs, etc.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
On the A9 it worked fine with an Unlocked bootloader, and I'd say that's the closest device to the 10 from a firmware perspective. I think it'll work fine.

EDIT: Besides, I think someone would've reported that by now if it was an issue ;).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] hgoldner:
I didn't realize they had bootloader unlock on the A9, but, then, remember I sent my test device back some time ago, and it was never available on Verizon.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
If unlocking the bootloader will break the fingerprint scanner, I would already freak out in the forums :)

I believe it now accepts unlocked bootloader because of the force encryption.

Simply unlocking the bootloader will not expose your data since all your data are encrypted, thus your sensitive fingerprint scanning information won't be leaked.

BTW, I have a feeling that the new OTA check will result in endless posts complaining about the issue when the 10 is more widely available and a new OTA is available. People will cry for help all over the place that their system is corrupted and cannot even receive the new update.

People really had to be aware of the risk before they unlock their bootloader. Many mod their phones without even knowing what they is doing to their device.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] techlogik:
I think since Marshmallow (I have a US A9), this has been the issue with us the entire time. We have no "Roms" first of all.

Could never get the OTA to work with a modified system of course/rooted, formatted/removed encryption on data. As the thread has talked about.

So several things to take an OTA I've had to do with the A9 and 6.0.1 version: 1) RUU back to stock 2) Take OTAs, 3) TWRP and format Data immediately to remove encryption, 4) then root SuperSU/xposed etc to finally get back to where I was, restore/setup all apps.

I've had to do this every time a new OTA has come down.

Again, I have an US unlocked A9 with S-Off and Marshmallow 6.0.1.

Maybe Devs will figure this out as we move forward and they get the M10...maybe not.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] enewman17:
Stumbled upon reading this thread today... anyway back in the day on the Nexus 4 they disabled fastboot boot idk if it will help... while on the m8 fastboot boot works this also works to boot recovery by specifing a kernel command line to use "fastboot boot". fastboot -c "lge.kcal=0|0|0|x" boot twrp-3.0.2-0-XX.img
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Just tried and it's not working.

I believe the "lge" part is only for LG devices, maybe HTC devices requires a different command.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] enewman17:
I honestly have no idea, I just remember having to use that command back in the day on my nexus 4 which obviously was an lg product... Oh well, maybe since fastboot boot works on the m8 the -c "lge.kcal=0|0|0|x" part is bypassed cause twrp still booted. :good:

I messed with it more and it actually didn't matter what I used... lge, htc, 111, 222 it all ended up booting on my m8 so it must skip that command since fastboot boot works, IDK... could be something to it, just need to find the right command or it could be a total waste of time.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Well, here's the full commandline I use in the 10 TWRP:

console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 user_debug=31 ehci-hcd.park=3 androidboot.bootdevice=7464900.sdhci lpm_levels.sleep_disabled=1 cma=16M@0-0xffffffff androidboot.hardware=htc_pme androidkey.dummy=1 androidboot.selinux=permissive

I don't know if specifying that entire thing (or some part of it) will work, but it can't hurt to try it, I guess.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] greco2003:
HTC might not have but most of the other phone makers have once you modified your system even if its just rooting it you giveup your access to ota's i have a note 5 now and the only way i know an ota is out is if my friend who has the same phone tells me. If your rooted why would you take an ota anyway might loose root or even brick your phone the risks of taking the ota are not worth the gains.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Sleep-_-23:
Hi,

I dont have the issue with loss of signal with dm verity and encryption disabled, I just flashed phhSupersU with eng noverity nocrypt config.

My phone are model 2PS6500 Telcel(Mexico)

Here are my boot backups with twrp my soft ver is 1.02.600.3

Boot Images
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chazall1:
Have you looked at FlashFire. Maybe this could assist you at looking at a different method to explore??

http://xdaforums.com/general/paid-software/flashfire-t3075433
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
I'm not a noob dude.

Maybe Samsung is using this stricter check in their phones too. I have a Nexus and you can receive OTAs after modifying things. You just cannot install it.

Samsung has full recovery software and can be flashed through Kies or Odin. iPhones have iTunes to restore their firmware.

Most HTC don't have this kind of stuff. HTC does't provide full system recovery software (known as RUU).

So most people had to upgrade their firmware using the OTA system. That's why we do backups before doing any modifications to our system.

Do you enjoy your phone stuck at a low firmware??

1. It depends on if there are RUU leaks. Only he US models have official RUU available.

2. Yes, you can keep encrypted with most modifications such as root, xposed, and adaway.

Did you wiped data after installing the boot image?

If you haven't wiped your data, your device is still encrypted, even if your boot image is not force encrypted.

It will stay encrypted until you wipe the whole internal data.

Flash fire can do many things, but it cannot help you receive OTAs.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Sleep-_-23:
Yes, I have to wipe data, my phone is decrypted, twrp can mount system and everything. I already flash xposed.

If you want I can do some test or try anything.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
You can confirm if your data is decrypted in Settings > Storage > Phone Storage and check if the "Phone storage encryption" option is grayed out.

If it is not grayed out and the option is checkable, you indeed is decrypted.

If signal is working for you, then things are a bit weird, since some Taiwanese users also experienced this issue, and I tested very thoroughly.

Hope this is not a system bug only happening on Taiwanese base.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Sleep-_-23:
Yes, the option is checkable.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Thanks for the confirmation :)

Look like we need more people to find out what's actually going on :)

Also, did you backup your raw system image?

If you do, please upload them and share them in my Stock collection thread in the general section.

Thanks man :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ufkal:
Also, did you backup your raw system image?

If you do, please upload them and share them in my Stock collection thread in the general section.

Thanks man :)[/QUOTE]

I want to sound like a total NOOB so I don't do something stupid. Is there a specific procedure to backing up a raw system image? So I know what to do as soon as my phone arrives.

Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] dottat:
As someone who has hand crafted many an RUU over the years and spent time helping folks out on many many variants of HTC devices, I'm surprised there's surprise here. This recovery check has long been part of HTC. I have already had to tell folks on m8/m9 who failed to OTA that the reason for the failure was their stock recovery.

The best examples are s-on/locked folks who flash signed firmware from a newer OTA and then try to OTA. The OS is still old however the OTA fails once it checks recovery and see's it's not matching whats expected.

The only time we really see this as an issue is on the first build/release. After an RUU surfaces or someone is able to s-off, temp root and dump stock recovery it won't matter.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] dottat:
While there are many wild variants of the HTC devices in the rest of the world (non-US).... there are many places to look for RUU from which image files can be extracted. These RUU are not limited to the US.

Here's one path for the m9...

http://androidruu.com/?developer=M9
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
In my previous experience (M8), I can still be able to download the OTA file and boot into TWRP to pull the OTA zip file. But right now the only thing shows up is an error message saying that my system is corrupted (as the screenshot in the OP).

I unlocked by bootloader and flashed TWRP because I thought that I can simply just wait for the first OTA to arrive, and then I can pull the OTA easily, then replace the recovery with the one included in the OTA, then restore system, and finally upgrade my phone.

But all of this is not applicable once the OTA arrives to my 10, it refuses to even show me that there is an update available, which makes me quite shocked at first and panicked for a whole night until I found the solution myself (also stated in the OP).

This thread is not here to tell people they cannot apply OTAs with custom software installed (I think most people should know this), I'm here to spread the fact that HTC is being more strict about the OTA checks. Average users might won't even bother to know this, since many helpful members on XDA will guide them and provide the files they need to upgrade their devices.

Yeah I know this nice website, but I guess that most RUUs are re-hosted from this site [url]http://ir-file.com[/URL]. Whether an RUU is available mostly depends on whether there is a leak, or whether people are interested in the files, willing to pay for the files and share it publicly.

On androidruu, many regions do not have the latest version of RUUs available, people have to create their own handmade RUUs, or they have to restore to a very old version and upgrade all the way up to the latest version.

So I still think a reliable way to retain the ability to receive OTAs are important, especially for those experienced enough to help others in the forums so that they can provide files many need.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Sleep-_-23:
I achieve S-off with Sunshine!!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
*Update*

I've blocked HTC 10 in SunShine again, I do apologize, that was not suppose to be enabled until we could actually test it. I will make some changes and re-enalbe soon.

Ummm whoops

Sorry this was suppose to be disabled, we haven't been able to test it ourselves, as we dont have a htc 10 yet.

SunShine will LIKELY wipe data on the htc 10 at this point, or at least corrupt userdata.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Sleep-_-23:
Sunshine didn't wipe anything, when phone reboot sunshine said "the phone is already S-off there's nothing to do" or something like that, and thats all, my phone still S-off and I have all my data.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
Were you encrypted?

Can you run

adb shell getprop ro.crypto.state

For me and give me the output? Our phones are not here yet.

Thanks for being the test case for us, we were hoping to annouce this week but not today lol
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Sleep-_-23:
Haha no problem

My phone are decrypted, I will run that command, please wait.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
Ok, yeah teh data loss should only happen on encrypted ones
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Sleep-_-23:
Haha ok, here's the proof.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lucky_strike33:
wow good to know!!!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
HTC 10 support has been re-enabled in SunShine 3.3.4

If you are encrypted, you will need to format data after SunShine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
If someone wants to make a system dump of a htc 10 rom that is asking to OTA, i will look at making an OTA downloader
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Hi guys,

I'm expecting my HTC 10 any day now. Is there anything I can do to help the people who are now unable to receive OTA's? Maybe backup the stock recovery and post it here?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ataf:
Anyway a good idea to do that
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Onepagebook:
edited
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Deleted.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] dottat:
You two need a room?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Problem solved, thanks :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] dottat:
You two guys crack me up.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nenebear:
Thanks !

SunShine 3.3.4 is work for my HTC 10 .