yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
You get directly from HTC. See the TWRP thread for instructions but typically, you just restore stock system backup in twrp (if you modified system at all), then flash stock recovery, then take OTA, then re-flash twrp and re-root.

This device has a slightly different OTA check than previous ones, though, so sometimes the above might still fail. In which case, I've written a guide for how to fix. This does not force data wipe either and my steps seem to work for almost everyone. There have only been 2-3 who have not been able to get it working and they weren't sure if they were doing something wrong or not.

Anyway, in the even my fix doesn't work, then and only then, would you need to RUU back to stock to take OTA.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
And if you're me, you just take your OTA with TWRP....:eek:
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
well you have that souped up version that us mortals can only dream about. :)
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Actually, I don't....it's the same version everyone else has now.
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
ah...nice. So just install OTA though system normally with TWRP installed?

When I was troubleshooting why OTA was breaking and how to fix it, OTA failed to install with TWRP, but that was 2 versions ago.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
I don't recommend this, of course. Just saying I do it because it's easier for me. TWRP won't install firmware, so that would have to be done manually via fastboot.
[HTC 10 Guides, News, & Discussion] Bobboman:
bah, bought unlocked version of HTC 10 can't unlock bootloader

C:\Android\sdk\platform-tools>fastboot oem get_identifier_token

...

FAILED (remote: unknown command)

am i putting the line in wrong, i know the same line got me the code on the moto maxx
[HTC 10 Guides, News, & Discussion] dems86:
You are in download mode when entering the command?
[HTC 10 Guides, News, & Discussion] Bobboman:
yea...i figured it out, i forgot to enable oem unlocking which was something not brought up in the HTC instructions, nor did i have to do with any of my old motorola devices (moto maxx, x 2014, G 2014, or E 2015)
[HTC 10 Guides, News, & Discussion] dems86:
Oh man, I almost asked that too lol

Glad you got it sorted though
[HTC 10 Guides, News, & Discussion] saulos29:
Good evening, I have the following issue: I have the unlock_code.bin but when I try to flash, it gaves this message

C:\adb>fastboot flash unlocktoken Unlock_code.bin

target reported max download size of 800000000 bytes

sending 'unlocktoken' (0 KB)...

OKAY [ 1.003s]

writing 'unlocktoken'...

(bootloader) flash unlocktoken

(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp

(bootloader) [KillSwitch] Last Byte is 0X01, enable unlock

FAILED (remote: UnlockToken Verify Fail!!)

finished. total time: 1.081s

What can I do? Thanks for the answers.
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
Use htc_fastboot that can be downloaded on htcdev as the official fastboot doesn't work well with HTC phones in some situations. This should solve your problem ;)

Further on: did you activate OEM unlocking in settings > developer options!?
[HTC 10 Guides, News, & Discussion] saulos29:
Yes, of course: Oem unlocking it's activated. I've tried with htc fastboot but this is the result

C:\adb>fastboot flash unlocktoken Unlock_code.bin

sending 'unlocktoken' (0 KB)...

OKAY [ 1.000s]

writing 'unlocktoken'...

(bootloader) flash unlocktoken

(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp

(bootloader) [KillSwitch] Last Byte is 0X01, enable unlock

FAILED (remote: UnlockToken Verify Fail!!)

finished. total time: 1.047s

Is it a problem with the token? If it's useful I tell you that when I have bought the phone, two days ago, I've updated to the last OTA. After this, this is what I read when my HTC 10 it's in download mode

*** LOCKED ***

htc-pmeuhl PVT S-ON

LK-1.0.0.000

RADIO-1.0.U010013@60331.4

OpenDSP-v18.2.8996.00524_0321

OS-1.30.401.1

Apr 23 2016, 22:37:57 (738269)

---------- Post added at 11:59 AM ---------- Previous post was at 11:24 AM ----------

I have unlocked the bootloader, it has been a problem with drivers. I have uninstalled the device through Usbdev, then I have connected the phone to the pc, and then I've installed HTC Drivers. I hope this is useful for other HTC 10 users with the same problem.

I've tried to flash TWRP Recovery but this is the result

C:\adb>fastboot flash recovery twrp.img

sending 'recovery' (47556 KB)...

OKAY [ 1.313s]

writing 'recovery'...

FAILED (remote: cannot flash this partition in s-on state)

finished. total time: 1.364s

So have I to became S-Off with Sunshine Tool and then try to reflash the recovery?
[HTC 10 Guides, News, & Discussion] Stephen:
No you should be able to flash recovery with s-on. Are you in bootloader mode when trying to flash? adb reboot-blootloader
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Flash it in Download mode.
[HTC 10 Guides, News, & Discussion] saulos29:
Little developments, I've flashed the TWRP recovery but I can't adb sideload SuperSU
[HTC 10 Guides, News, & Discussion] ekksman:
You can put on sd card and flash through recovery
[HTC 10 Guides, News, & Discussion] saulos29:
It's on sdcard, then I could flash this zip directly from recovery without using adb sideload command?

---------- Post added at 02:48 PM ---------- Previous post was at 02:47 PM ----------

I've flashed, there has been some problems with htc driver? Uninstalled and reinstalled latest htc drivers, then disabled Driver Signature in Windows, I have been able to flash recovery properly.
[HTC 10 Guides, News, & Discussion] ekksman:
Yes, that's what I did wouldn't sideload for me also
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Sounds like everyone having sideload issues needs to update their adb. I tested sideload with the latest TWRP (3.0.2-4) yesterday and it worked perfectly fine. I was using adb version 1.0.36 from the Android SDK.
[HTC 10 Guides, News, & Discussion] saulos29:
Finally I've rooted my device: tested with Root Checker and it says that's ok.
[HTC 10 Guides, News, & Discussion] geoff5093:
It didn't work for me, but all I did was mount USB storage and copied it to my SD card in recovery then flashed it manually.
[HTC 10 Guides, News, & Discussion] rmthx:
Many thanks for guide [MENTION=2376614]jcase[/MENTION] all works fine my htc 10 its lol now
[HTC 10 Guides, News, & Discussion] :
Noob asking if these are same steps for anh HTC10 directly from Sprint?
[HTC 10 Guides, News, & Discussion] jcase:
Works on sprint correct
[HTC 10 Guides, News, & Discussion] :
Jcase, thanks!

Any cons to rooting now? As in spoiling something like OTA, Warranty if wanting to return etc...(or similar to a Samsung Knox type thing)
[HTC 10 Guides, News, & Discussion] jcase:
You will ahve to check with HTC/Sprint on warranty,.

OTAs wont fully flash when rooted, you will have to flash an updated rom, or a RUU to get updates.
[HTC 10 Guides, News, & Discussion] :
OK. So sounds like we just have to work hard to get stuff as usual, but can figure a way to flash back to out of box stock if we need to...
[HTC 10 Guides, News, & Discussion] ErickF:
hey guys i keep getting this message not sure why. ive done this before with other phones just not this one. already unlocked. and im using a tmobile htc 10

writing 'recovery'...

(bootloader) HOSD CL#737608

(bootloader) start@1

(bootloader) ERR image is not valid

(bootloader) recovery@FAIL

(bootloader) end@Done

FAILED (remote: 255 )

finished. total time: 3.092s

and ive tried it with different twrp files

EDIT: Fixed. installed the stock recovery image and retried the twrp and worked with no problems.
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
I'm having this problem as well. (T-Mobile HTC 10)

Using Chrome+Windows 10 & the lastest ADB/FASTBOOT tools.

For whatever reason,when I copy the token,I cannot do so w/o copying the (bootloader) preceding each line.

Also,all text is underscored in red (IDK if this is normal or not,been a while since I last used HTC Dev).

I edit out the (bootloader) preceding each line & I still get the Error invalid token size when submitting the token.

Tried different browsers as some have suggested,same result.

Any suggestions would be greatly appreciated.
[HTC 10 Guides, News, & Discussion] dems86:
I know the first time I submitted it spit it back because there was a single space before the first line "<<<starts here>>>" or however exactly it goes.

I did the same though, I couldn't Mark and just select the token for whatever reason, so I copied it to a text document and deleted the bootloader on each line and then made sure there were no spaces in front of each line the second time and it worked a charm

You do need to include the lines with starts here and ends here too...not just the token between them... otherwise as long as you double check to make sure everything lines up and it's all there, I don't know why it wouldn't work...some people had to switch browsers to get the generate bin file to work for unlocking, but I think the code still took when they entered it
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
I'll give this a try,THX for the quick response. :good:

---------- Post added at 10:55 PM ---------- Previous post was at 10:37 PM ----------

Tried & still the same result,the same token length error.

THX for the suggestion :good: ,IDK why this works for some & not for others (Probably will turn out to be user error on my behalf,if so,I'll share the good news here :silly: )

I contacted HTC earlier today & they escalated this to the HTC Dev support team.

Apparently,HTC is doing better than some would think,they're busy & I'm in queue a la the DMV,they'll be contacting me sometime between now (5/23/16) & Saturday (5/28/16).
[HTC 10 Guides, News, & Discussion] ekksman:
Hi, what location do you have the ADB files? Try moving and creating from another path, C: should work, I had this problem also creating from "downloads" path, mixing to C: fixed it
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
THX, [MENTION=448461]ekksman[/MENTION] & [MENTION=4933571]dems86[/MENTION] That did the trick!

Also,I did as the previous suggestion,I had to enter it into a blank text field to edit out the (bootloader).

I'm booting up as we speak,THX again to both of you for the help,very much appreciated!

I'll be loading up TWRP/root & Sunshine later today,then VIPER ROM.
[HTC 10 Guides, News, & Discussion] anndrenaline:
If i'm stock rooted now and wish to update to the latest, what do i flash? I'm used to the Nexus methods of flashing a zip in Twrp or fastboot flash the stock image without wiping data.
[HTC 10 Guides, News, & Discussion] Jason0071:
Why is S-Off Optional?

Do we need S-OFF to flash ROMs and expect to get it to flash correctly? Without S-OFF certain partitions are not available like boot animation and such, but will TWRP not be able to flash kernels? Why do we need to pay $25 for S-OFF? Is rooting and flashing recovery and such just pointless with out S-OFF if you want to flash custom ROMS?
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
Here's HTC's FAQ response to unlocking/S-Off:

http://www.htcdev.com/bootloader/about_unlock_process

http://www.htcdev.com/bootloader/rom_flashing_guide

Whether you need S-Off,that's not for me to decide,but,if the only thing holding you back is the $25 for SunShine,I say it's well worth the price of admission.

Development isn't free,whether in actual $ spent or,the time investment,& the $25 is a drop in the bucket for all things considered.
[HTC 10 Guides, News, & Discussion] xperia x root:
For sure its not free and i highly appreciate the work of SMS, otherwise we won't be S-OFF at all, but 25$ isn't fair anymore. They've earned their costs since 2014 and the loss of s-offing the m8 for free.(thanks htc btw),multiple times now.Most people will never go S-OFF or even root. So there are these i guess maybe 2% of enthusiasts who really want to use their phone like its possible with android OS and this small group should pay for the rest who doesnt care for restriction in any way? Don't get me wrong, 25$ for freeing a phone costs 700$ isn't that much, but this isn't the way android development is meant to be i think. There are so few completly unlockable phones around today, in my opinion its unfair to charge young android enthusiasts for deciding to buy one of these. I remember when no one was able to unlock the bootloader of the se xperia X10 back in 2010. It was doomlord and his friend(also dev) who managed to get through sonys stupid DRM and managed to get the bl first bypassed and then unlocked in the end after 1,5 years.(thanks to finding a well hided exploit in the qualcomm SoC sources). Although they bricked multiple X10's they gave us the unlock file for free with the pride of having such an awesome fellowship behind them that never doubt in their competence. To take a look in the future, where this great community, where devs and maybe future-devs come together, should be still existing, just cut the price to reasonable 10-15$. Real heads who can effort it will donate the missing 10$ and its a win-win for everybody. Anyway Im still gratefull for SMS as they keep my sun shinning:cool:
[HTC 10 Guides, News, & Discussion] Behold_this:
Who said anything about young? The developers are adults, a large number, maybe even majority, of XDA members are adults. We adults can all well afford a one time per device fee of $25 if we so choose. If we couldn't we wouldn't spend up to $700 on a smartphone. Smartphones are not a life necessity. Only children who rely on mommy and daddy can't afford to unlock their phone for the cost of 5-6 cups of coffee.

Furthermore you're not being charged because you decided to buy a particular phone, you would be being charged because you decided you want to circumvent security put in place by that phone manufacturer, so that YOU can do what YOU want. That is not a necessity either my friend and nobody is going to feel sorry for you for not being able to do that.
[HTC 10 Guides, News, & Discussion] xperia x root:
Sry if my lack in english writing competence lead to wrong assumes. With young i mean, the whole smartphone generation in common and the people who part of it, not kids.

You are right in every word u said, but missed what my post means. For sure this whole dilemma starts with the manufacturer and so It's about the whole community to be part of using android at its full glance, no matter if this is a must or not. Its about the ability to gain full access to their phones and this is why devs like chainfire are still there. They do it cause they can, and not for the money, which does not mean they dont deserve getting paid.If things get this comercialised like you see them it would be sad in my opinion. Pls donate so i can afford s-off. (Irony off)
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
You can change boot animations without S-off. Those are located in system/customize/resource. You can't change the SPLASH screen without s-off, but that's static, not animated. Splash screen on the 10 is the white htc logo on black background with powered by android under it.

You definitely don't NEED to pay for s-off. You can flash any custom rom you want and they will work fine as long as you are on the same, or similar, firmware as the custom rom base. You can also root your stock rom without s-off. Sometimes, if you're not s-off, you have to wait until your carrier updates your device firmware before you can flash the NEWEST roms, but all of the devs on here will have older versions of their roms available.
[HTC 10 Guides, News, & Discussion] varun.gid:
Hi guys... I'm trying to root my HTC 10, but i can't gain access to adb! It keeps saying unauthorized and i'm unable to get the RSA popup thingy no matter what. tried factory reset also doesn't help.

Anyone to tell me how to solve this please.
[HTC 10 Guides, News, & Discussion] Qevinator:
As far as I know 'Unauthorized' usually means you haven't ticked USB Debugging in Developer Options, or you have denied the popup on your phone when it asks to grant permission to the PC which tries to execute ADB-commands....

Maybe it's worth to try to unplug the USB cable, on your phone click on the option right under USB Debugging (revoke permissions for USB Debugger or something similar (my phone isn't in English)) and then reconnect the phone to your PC. You should see a popup now which you have to grant.
[HTC 10 Guides, News, & Discussion] varun.gid:
I tried all possible ways.. i never denied it because nothing popped up. i tried deleting adbkey also, that still doesn't help. I'm stuck :(
[HTC 10 Guides, News, & Discussion] emrug:
Solid Explorer App messed me up here

Solid Explorer App messed me up here
[HTC 10 Guides, News, & Discussion] varun.gid:
Well i think its a PC problem.. i tried using my s7 edge which was perfectly working adb till 2 days back. So any device it says unathorized. Please help :D
[HTC 10 Guides, News, & Discussion] Howling Wolf:
As far as I know, you should FORMAT the data partition with twrp once you restored your initial stock backup to get your sim card working again.

My 2 cents ;)
[HTC 10 Guides, News, & Discussion] emrug:
Believe me i did all that, didn't work out on my favor.
[HTC 10 Guides, News, & Discussion] Howling Wolf:
You won't believe me, but seems like I encountered the same situation just after I gained the s-off status yesterday morning.

Formatting data, several times, did nothing for my sim card to resuscitate.

My last chance was to try restoring my initial stock backup with the system image, and that did the trick !! My 4G is back, live and kicking :)

A special mention for the Sunshine team (Beaups and Jcase) for their active support because getting s-off was quite a bit of a hassle...
[HTC 10 Guides, News, & Discussion] mweis:
hy i am on s-off and wanted to update my european t-mobile branded htc 10 to unbranded european firmware ... via command i got the following errors:
[HTC 10 Guides, News, & Discussion] kushman:
they truly dont make it so easy anymore
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
You used standard sdk fastboot. Try htc_fastboot, downloadable on htcdev.com.

In addition did you change your CID? I explained everything in my how to (see my sig).
[HTC 10 Guides, News, & Discussion] hgoldner:
Any reason why post OTA on an unrooted 10 that's already been S-OFF and bootloader unlocked and has data I would be unable to make a phone call?

There may be a signature on this sdcard somewhere.....
[HTC 10 Guides, News, & Discussion] mweis:
Is there actual a way to get back locked and s-on?

Gesendet von meinem Nexus 6P mit Tapatalk
[HTC 10 Guides, News, & Discussion] trsix:
tokens arrgh

Had a couple htc's in the past. Ridiculous they still have you go to to the htcdev site and play the token game.

I'll wait for the next Nexus.
[HTC 10 Guides, News, & Discussion] Kisakuku:
Perfect post for a perfect sig)
[HTC 10 Guides, News, & Discussion] darkenedpath:
Follows tutorial...... I guessthe newtwrp doesn't allowsideload? Stillnot rooted.
[HTC 10 Guides, News, & Discussion] Pauls57:
Did you enable sideload in TWRP? I think theres an option for it under advanced, but it's a little hard to find.
[HTC 10 Guides, News, & Discussion] darkenedpath:
Thought I did. I've triedaboulr five times. I'll try again tomorrow. Thought I found it. Maybe not. I'll try again tomorrow. On the newest twrp. I know thingsarent the same. Let you knowthen.
[HTC 10 Guides, News, & Discussion] Pauls57:
I found rootjunky's video very helpful ?
[HTC 10 Guides, News, & Discussion] darkenedpath:
It is. Very useful. I justhad to use the regular way instead of. Sideload. Just wanted it to work.
[HTC 10 Guides, News, & Discussion] Tiffany84:
Just wanted to stop by and say thank you [MENTION=2376614]jcase[/MENTION] and [MENTION=711482]beaups[/MENTION]. Just got finished running sunshine on my new 10. The whole process was flawless, not one problem. It's crazy that all that is done through a .apk. That's just amazing. To think what the process was like back in like the Evo 4g days to now is remarkable. To the people that complain about having to pay $25. Look, I understand it's a pain to have to spend an extra $25 when you just spent a bunch on the phone. But if you even stopped to think about the work that goes in to making this happen. HTC has some pretty smart people working for them but time and time again they break the security in these devices. The argument of it use to be free. The level of security that was in place back then versus the level of security today is night and day. It takes a lot more work to crack stuff today and who knows how many devices, that they pay for out of there pocket. But they always come though. So I think $25 is the least we could do. They've given a ton of there time and there talent in the past. It's time they get something in return. To be able to install an app on your phone and then use said app to S-Off the device is really incredible. As many people on here now a days that don't read before messing with there phones, we would have quite a few bricks back in the days when this stuff was free and you had to do the work yourself.
[HTC 10 Guides, News, & Discussion] :
Yes, it's pretty simple.

I already did it.
[HTC 10 Guides, News, & Discussion] darkenedpath:
DELETE
[HTC 10 Guides, News, & Discussion] Tiffany84:
No, running the RUU will not get rid of the red text and if I had to guess, I'd say the RUU not running has to do with your CID.
[HTC 10 Guides, News, & Discussion] wineds:
Can't get SU to stick with new Taiwan 709 1.55 update. BETA-SuperSU-v2.74-2-forceencrypt.zip worked OK with 1.30 after install from zip in TWRP but not after the latest update. Sideload didn't work for me with 1.30 or 1.55. What am I missing? SU says binary not installed.
[HTC 10 Guides, News, & Discussion] iHTC:
hi I performed all methoids, and got myself S-OFF. I also followed to guide to change my CID and flash the verizon software RRU, I never get signal and when I first boot it gives me a text saying no MEID I can not use the phone. I tried a wipe and a re-do of the Verizon RRU I get the sdame error. I can't seem to find anything googling .Was hoping Jcase or someone here can help. Thanks!

Tmobile model (which I believe is same as international) was used in this process to attempt to make it a verizon model.
[HTC 10 Guides, News, & Discussion] yldlj:
You need to format data
[HTC 10 Guides, News, & Discussion] iHTC:
I did format data and wiped cache etc. Just tried flashing Venom rom just to test My sim card wont read at all. It wont take my sim at all (which 100% works fine in my s7 I am trying to convert from)

now on viper rom same thing. just shows the radio bars with a line through it. no service , signal etc. Not sure what I can do at this point . When I got into network settings and tap network preference it says Please make sure there is a valid sim card inside the phone

Just to rule out the sim I tried another active one, same result. very frustrated :(
[HTC 10 Guides, News, & Discussion] sbong:
I'm using US unlocked with stock, S-Off..tried to install SuperSU zip file from twrp but still unable to achieve root.. tried both forceencrypt file as well as original SuperSU.. there were no errors when installing the zips..tried formatting data partition too but to no avail ..pulling my hair out on this

*Update*

Issue is due to the kernel flashing bug on S-Off/Locked using Sunshine 3.3.8

Resolved by relocking S-ON and following through the unlocking/S-OFF process again with the new version of Sunshine
[HTC 10 Guides, News, & Discussion] Tiffany84:
Did you wipe data or format it?
[HTC 10 Guides, News, & Discussion] iHTC:
Yes I think the issue is because I'm not sim unlocked . I purchased a code but the code says I need to run the T-Mobile app which since I'm flashed says unable to run on this device wish there was an ruu for T-Mobile