yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
How the hell did you get that far with oem lock still enabled?
[HTC 10 Guides, News, & Discussion] tailor999:
I relocked via fast oem relock..... now i cant do anything
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
You can try to power of, hold Vol- & Power to boot to bootloader/download mode and try to unlock with the code you received doing it for the first time. If this doesn't work try to run through the HTCDev process again and receive a new token.

In any case you should be unlocked prior to trying anything else.
[HTC 10 Guides, News, & Discussion] tailor999:
Ok thanks, Im going to try the HTCDEV unlock process as the code is not able to unlock bootloader.

---------- Post added at 06:56 PM ---------- Previous post was at 06:46 PM ----------

i went through the HTCDEV process again and i got this message:

OKAY [ 1.046s]

writing 'unlocktoken'...

(bootloader) flash unlocktoken

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

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

(bootloader) unlock token check successfully

OKAY [ 0.069s]

finished. total time: 1.115s

I believe that didnt work :(
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
What does bootloader show on top?
[HTC 10 Guides, News, & Discussion] tailor999:
It shows

RELOCKED

S-ON

Security Warning
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
I got no idea unless you're able to boot and active OEM unlock in developer options.
[HTC 10 Guides, News, & Discussion] tailor999:
The last resort is to send it to HTC and pray
[HTC 10 Guides, News, & Discussion] Qevinator:
Hi guys,

I've got 2 questions I hope you guys can answer.

1.	Is it correct that if you follow directions stated in OP, you CAN recover from the ‘stopped radio’-problem, but you WON’T be able to receive OTA’s until someone can obtain an official stock recovery? This because at this point we are unable to backup stock recovery?

2.	Is it mandatory to use the adb sideload command to flash SuperSU? Can’t we just install it via the ‘Install’-function in TWRP?
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
An ruu will be available soon which will fix you up, or you can try flashing a system image backup from download mode. I've never had to resort to this, but it should work. You can find the 617 system image backup in the ruu/stock collection thread
[HTC 10 Guides, News, & Discussion] topjohnwu:
[MENTION=2376614]jcase[/MENTION]

You can add my modified SuperSU to your OP before Chainfire releases his new update.

http://xdaforums.com/htc-10/development/root-supersu-2-71-forceencrypt-verity-t3373258

Although I've done some mistakes initially, thanks to your remind, I now changed the re-enable encryption process. The only thing it will do is changing the "encryptable" back to "forceencrypt" in the fstab. You can verify it by checking the flash script. It is fully tested on custom roms, and everything is working as expected.

It can save many confusion for people rooting their devices.
[HTC 10 Guides, News, & Discussion] Diumlol:
Is unlocking the bootloader (and potentially s-off) something I want to do right away (and also root if I wanted to)?

I know root won't let me use Android Pay, but will an unlocked bootloader affect that too? Will s-off affect any of the phone's functionalities or whatnot?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
You can use Android Pay with root.
[HTC 10 Guides, News, & Discussion] Superguy:
Is there anything special you have to do? It's not working on my rooted M8. It'll let me attempt to add cards, but it ultimately fails.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
You have to use the latest SuperSU beta, and you can't use mods like Xposed.
[HTC 10 Guides, News, & Discussion] tailor999:
Tried system image flash..download mode stares I need an unlocked boot loader. Not excepting any fastboot commands.
[HTC 10 Guides, News, & Discussion] jcrompton:
Thank you for this guide ...... in the instructions where it suggests "sideload" the supersu ............ Is it not possible to just flash it from the external sdcard if you have placed the supersu on the card ??
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
Not accepting ANY fastboot commands? What about fastboot devices? That should at least return your device id. If that doesn't work then you have windows driver issues most likely.
[HTC 10 Guides, News, & Discussion] Diumlol:
If I needed Xposed for like rootcloak would there be another solution?
[HTC 10 Guides, News, & Discussion] Scutariu:
Hello, Just a quick question

I bought a HTC 10 from UK(401 firmware, CID: HTC_001 MID:2PS620000) Unlocked the bootloader, twrp'ed, rooted and ran sunshine.

Now I'm S-OFF/Unlocked, and I've changed my CID/MID to US Unlocked, also ran latest ruu.exe from us unlocked

So now, my firmwares is: 1.96.617.2, and my CID and MID are from the US Unlocked version.

Now, if I were to s-on, and lock my bootloader, will my phone remain the "us unlocked" version?
[HTC 10 Guides, News, & Discussion] mitchst2:
[MENTION=2376614]jcase[/MENTION]

Does Sunshine do everything in app without a PC?

Does it leave temp root in place?

If so could Flashify be used to back up stock recovery, flash TWRP then SuperSU from recovery?

Just wondering if the whole process can be PC free?
[HTC 10 Guides, News, & Discussion] jcase:
Temproot is temporary, it goes away when sunshine is done and is only usable by sunshine. We REALLY dont recommend flashing recovery using temproot, have seen far to many people mess up doing that. In fact we limited the temproot to just sunshine for that reason, people were abusing it. They would use it to flash twrp, they would end up getting it flashed wrong and messing up the phone then blaming us. Or they would use it as their root solution, instead of unlocking with sunshine then blame us when it wasnt stable.

You dont need a PC, but PC works best, you could pack the recovery as an RUU and flash in download mode without a pc using a sdcard.
[HTC 10 Guides, News, & Discussion] mitchst2:
Thanks.

I still have a mini sdk setup on my work PC which still works on my m7. Will that be OK or does it need updated?
[HTC 10 Guides, News, & Discussion] jcase:
should be ok for fastboot
[HTC 10 Guides, News, & Discussion] mitchst2:
So

Run Sunshine app

fastboot flash recovery recovery.img

Boot twrp and flash su zip

Couldn't be easier.
[HTC 10 Guides, News, & Discussion] jcase:
Yep, sunshine takes 2 runs back to back, just remember that
[HTC 10 Guides, News, & Discussion] onkel_Andi:
Hi,

Is there any chance that dirty cow exploit works on HTC 10?
[HTC 10 Guides, News, & Discussion] screamingbanche:
I followed this method you root, s- off, and unlock bootloader. When rebooting from TWRP, I get a message saying no os installed, do you wish to reboot. I backed up everything while following this tutorial but I cannot find it anywhere. Any ideas where I may locate my original backup? I can find the backup log file but that's it. Nothing that I care use to restore back to stock.
[HTC 10 Guides, News, & Discussion] magistrateee:
I have been using a Galaxy Note 3 and have been away from from flashing my phone for quite some time. I recently purchased an unlocked HTC 10 from htc.com which I am running on T-Mobile. I am use to the Samsung and its ODIN software in case I softbrick my phone. Before I proceed for any rooting I was wondering if anyone can answer my questions. This is my first HTC device. Thanks.

1. Is there a flash file or some method to get completely back to stock without recovering from a TWRP stock backup (which I will create)? I am wondering in case I get a softbrick what should I do. (I am used to samsung, odin, and removable batteries)

2. I bought directly from HTC so I have UhOh and bootloader unlock warranty. Is there a difference between using the HTC Dev unlock versus Sunshine? Should I use one method or another to safeproof or ease my flashing of root-ROMs process?

Currently on 1.96.617.2

Thanks for the help.
[HTC 10 Guides, News, & Discussion] scottspa74:
The HTC 10 forums are pretty damn quiet. Best answer I can give you is, instead if Odin, on HTC you run a RUU file to return to stock. But I believe it has to be the RUU OS version your device shipped with. This is the first android device I haven't rooted immediately since 2010, so I can't get more specific. This is trickiest, most confusing, HTC to root that I've ever had. That's why I've waited. Good luck.
[HTC 10 Guides, News, & Discussion] Xajel:
From what I understand as there's no clear guide here, rooting the HTC without unlocking the bootloader is possible with Sunshine, and this will allow rooting without wiping the data ( which is my need ATM )

I've already S-Off'ed mine with Sunshine, so I just flash twrp and then flash the su ? If so is there's any specific version of twrp and SU to use with as one old guide mentioned a modified SU for HTC 10.
[HTC 10 Guides, News, & Discussion] jcase:
Newest twrp and newest supersu
[HTC 10 Guides, News, & Discussion] pierceheart:
So, all the guides are kind of back and forth, and unclear, now that all supersu version don't have any issues with the encryption .. so it seems.

Following the video guide by root junky:

I unlocked via htcdev, flashed twrp, then supersu (never saw any encryption comments), then sunshine, I'm now s-off and unlocked ... but I'm also not encrypted.

I haven't swapped my service over from my old HTC M7, want to get the 10 set up how I like it before losing the old phone, but I want to check - if I'm on AT&T, am I going to be okay, given that my phone storage is NOT encrypted? I just checked settings, it's not grayed out, I could check the box.

Do I, or is there a step I missed in flashing supersu?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
http://xdaforums.com/htc-10/how-to/guide-root-optionally-s-off-radio-t3373025/post69141751

[MENTION=2376614]jcase[/MENTION] still needs to add that to the OP
[HTC 10 Guides, News, & Discussion] jcase:
done, might be worth having m10 twrp doing it automatically?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Not sure how easy (or practical) that's going to be to add, especially since people on custom ROMs don't necessarily need it.
[HTC 10 Guides, News, & Discussion] mstevan:
Hi all,

i was on Note 3, till couple days ago, and just like somebody already write here, i use to root phone with odin. Long time ago, i had desire hd, but i totally forgot all this s-off, RUU, and other stuff.

So, please, if somebody can answer me: do i need do make s-off if i only want to have root on stock rom? Is it enough to do like it is in OP, unlock bootloader and flash twrp, without sunshine and s-off? For what is s-off matter?
[HTC 10 Guides, News, & Discussion] Rolo42:
You do not need SunShine/S-off to root or to flash ROMs.

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

Is step 3 (the shell command) new? I never saw that before and I'm stock, rooted, using encryption/PIN on boot....

Check with a guide(s) but here are my notes I made for myself a couple weeks ago:

(I copy the zips in step 4 onto the external SD card first)

1. In DOS, Android fastboot, not htc:
a. fastboot flash recovery twrp.img
b. fastboot reboot
2. On Phone:
a. Select BOOT TO RECOVERY
3. In TWRP:
a. Keep read-only
b. Backup
c. Select System Image
d. Select Storage: external
e. Set Name
f. Reboot: Recovery
4. In TWRP:
a. Install
i. SuperSU 2.78 0901
ii. Xposed arm64
b. Wipe Caches
c. Reboot System
5. In Android, Setup/Login
[HTC 10 Guides, News, & Discussion] mstevan:
Ok, thx.
[HTC 10 Guides, News, & Discussion] kairanz:
so

unbox my phone, install sunshine, buy a license, s-off it, flash TWRP, then i can flash custom ROM

as simple as that?
[HTC 10 Guides, News, & Discussion] beaups:
Yep.
[HTC 10 Guides, News, & Discussion] herzzreh:
Is Android Pay completely broken now? Installed SuperSU SR3 systemless, S-OFF LOCKED using Sunshine, tried suhide... still fails SN check. Any ideas?
[HTC 10 Guides, News, & Discussion] kairanz:
is it true that we must run sunshine twice for it to work?
[HTC 10 Guides, News, & Discussion] jcase:
Yes

Runs tests, reboots sets shift, turns off
[HTC 10 Guides, News, & Discussion] cameljockey1:
do we still need to run the command in the twrp for the radio?
[HTC 10 Guides, News, & Discussion] kairanz:
what command and for what?

thans for the explanation
[HTC 10 Guides, News, & Discussion] cameljockey1:
It is in the instructions in the OP.
[HTC 10 Guides, News, & Discussion] kairanz:
OK, i missed that, sorry

so, when we need to enter that command?

one time only? or everytime we flash ROM?
[HTC 10 Guides, News, & Discussion] cameljockey1:
I believe so just one time.
[HTC 10 Guides, News, & Discussion] 2WildFirE:
thanks, great job [MENTION=2376614]jcase[/MENTION] ! very simple s-off without htc bootloader unlock!!!
[HTC 10 Guides, News, & Discussion] smallba:
Had to do some extra steps, but got it, thanks for the posts
[HTC 10 Guides, News, & Discussion] allhill:
so the simple way is,

1. no need to unlocked via htcdev (?)

2. use Sunshine root to s-off

3. flash twrp

4. flash SU

5. ready to rock!
[HTC 10 Guides, News, & Discussion] pupochek:
FWIW, went thru 2 different (T-Mobile) devices - Sunshine never was able to use Temproot...
[HTC 10 Guides, News, & Discussion] beaups:
Latest version of sunshine *shluld* temproot all HTC 10
[HTC 10 Guides, News, & Discussion] allhill:
that what i mean... so no need to unlocked first in HTCdev, so no 'wipe' data ;)
[HTC 10 Guides, News, & Discussion] pupochek:
Well, whatever was "latest" Sunshine last week of September, first week of October, could NOT do it on T-Mobile devices...
[HTC 10 Guides, News, & Discussion] beaups:
Yes we've updated it since then.

--beaups
[HTC 10 Guides, News, & Discussion] rdasante:
I just got the device yesterday..T.Mo variant. It's already unlocked as my sim is working in it. I'm somewhere in Africa.

I plan to buy the Sunshine code for S-OFF and then flash the Unlocked RUU (Get rid of the T-Mo stuff). I don't need root, TWRP for anything. I just need a working phone - that's all. I don't plan to root at all.

Are root/TWRP steps necessary in my case?

And would I lose sim unlock if I just S-OFFed and run Unlocked RUU?

Thanks
[HTC 10 Guides, News, & Discussion] allhill:
i forgot the step 3, it's doest really matter?

just using sunshine to s-off/locked, and already flash SU
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Guess you'll find out...
[HTC 10 Guides, News, & Discussion] Xajel:
Anybody tried Sunshine on locked HTC 10 Nought ?

I used it on Marshmallow and it succeeded, but I don't know now if it will work on Nought...
[HTC 10 Guides, News, & Discussion] kairanz:
hi

what method that i must choose on sunshine?

s-off/locked or s-off/unlocked?
[HTC 10 Guides, News, & Discussion] 2WildFirE:
Safer is s-off /locked as sunshine told you to choose this.

Powered by HTC 10
[HTC 10 Guides, News, & Discussion] steno66:
Just a question. I have bootloader unlocked via htcdev, I have installed TWRP, Super SU and ROM.

Running Sunshine I lose data? I have to choose unlocked or locked ?

Thanks
[HTC 10 Guides, News, & Discussion] beaups:
Since you are already unlocked, you will need to format data regardless of which option you choose in sunshine. We do recommend the locked option.

--beaups
[HTC 10 Guides, News, & Discussion] typhoonikan:
Can anyone tell me if it is OK to OTA and install nougat and use it for a while before using this root method?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
It's not.
[HTC 10 Guides, News, & Discussion] shortydoggg:
I'd first S-OFF with Sunshine:

http://theroot.ninja/

if I were you, then OTA, then follow topjohnwu's root method for Nougat.

http://xdaforums.com/htc-10/development/root-magisk-autoroot-magisk-phhs-t3507505
[HTC 10 Guides, News, & Discussion] typhoonikan:
Thanks for the quick reply. Will do!
[HTC 10 Guides, News, & Discussion] steno66:
I need to format data so I'll lose what? Internal memory?

After this can I made a TWRP restore? Sorry I'm a little bit confused.

Thanks for helping me.
[HTC 10 Guides, News, & Discussion] typhoonikan:
So I unlocked the boot loader, s-offed, and am at the decrypt screen. I am not at home where I can put a twrp img on my external memory card to flash via the boot loader or download mode or whatever. But, I can still do that, right? I didn't flash twrp prior to sunshine.

Thanks
[HTC 10 Guides, News, & Discussion] bence.szij:
I've watched the video guides that OP linked in his post but I'm still a bit confused. I currently have a non-rooted, S-ON HTC 10 with a locked bootloader (in other words it's factory new). I want to upgrade to Nougat when it becomes available in the EU, but since I want to have an "S-off LOCKED" + rooted phone I was told that doing the Sunshine method while still being on MM is the best thing to do. To do this, as far as I'm concerned I have to follow these steps:

1.) Download, run and purchase Sunshine.

2.) Select the S-off LOCKED option and start the process.

3.) This is where things become confusing. According to the videos I've watched, now my phone should be encrypted. Since I don't have TWRP, should I use the original recovery program's factory reset option?

4.) Flash TWRP, just like you had your bootloader unlocked. (?)

5.) Wait for the Nougat OTA and install it. (The update should come automatically, right?)

6.) Root it.

After rooting, I would still get the OTA updates, right? (since I have my bootloader locked)

I would be grateful if someone could verify these steps. Thanks in advance!
[HTC 10 Guides, News, & Discussion] Stevrule:
Can i install a stock image if i follow the HTCDEV instructions?
[HTC 10 Guides, News, & Discussion] Ispinne:
No go with Sunshine

I've got a HTC 10, chinese/asian version, running ChinaSense 8.0.0 (it seems), which I cannot get through Sunshine (no temproot button at all).

I've tried several guides, but they all stop somewhere along getting the phone to communicate with the computer while using the bootloader.

It says unlocked, it loads into bootloader, but I can't for the life of me get it to talk to the computer in download mode. It says S-ON, but as far as I understand, that's not a dealbreaker? Anyone able to either link me to a working version of whatever software I need, or point me to a step-by-step guide somewhere that might cater for my version?

If I need to give you more info, please inform, and I will get whatever I can out of the phone.
[HTC 10 Guides, News, & Discussion] Labeled:
Twrp install completes but can never boot into twrp. I don't know what to do?
[HTC 10 Guides, News, & Discussion] malinemir13:
s-offed, twrped and rooted without touching computer, thanks [MENTION=2376614]jcase[/MENTION]
[HTC 10 Guides, News, & Discussion] blackdog7:
Hi all,

first thanks for the guide! I S-OFFed, installed TWRP and rooted the phone successful.

After that I booted in stock ROM as well. Now I flashed the ICE rom from baadneewz.

But now if I go into recovery mode I cannot see the internal storage. Why? I'd like to flash the ICE rom again.

Please help if you can!
[HTC 10 Guides, News, & Discussion] roirraW "edor" ehT:
Do you have USB Debugging in Android turned on?

The latest SunShine app is always at http://theroot.ninja/download.html. They provide support, too. I'd try one of the support methods which include a FAQ, a Ticket System and Live Chat right on the website. That will be the best bet if the latest version of the app isn't doing the trick for you.

More than likely you need to reformat your internal storage from TWRP because TWRP can't deal with encrypted internal storage on Nougat yet.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
When was the last time you were in the TWRP thread?
[HTC 10 Guides, News, & Discussion] roirraW "edor" ehT:
Shortly after I wrote that. :)
[HTC 10 Guides, News, & Discussion] Respectful:
Android 7 Root

Hi,

I have Android 7 on Htc 10, unlocked bootloader, S-OFF & TWRP installed. Where can I find the rooting thread please?

Thank you in advance
[HTC 10 Guides, News, & Discussion] fmedrano1977:
I can't boot into TWRP, what gives? Have never had an issue till Android 7? Has any one else had this issue and solved it?

---------- Post added at 08:21 PM ---------- Previous post was at 07:44 PM ----------

http://xdaforums.com/devdb/project/dl/?id=22077

Had the same issue, flash that test version of TWRP, recovery booted for me.
[HTC 10 Guides, News, & Discussion] Xajel:
I'm in locked BL, S-Off'ed and rooted...

Just want to upgrade to Nougat while keeping the root ( no need for TWRP )... so what's the steps to do so if it's possible or I'll have to unlock the bootloader to be able to get root in Nougat.
[HTC 10 Guides, News, & Discussion] Goliath27:
With this method, does it matter if you're locked or unlocked? I just got my 10 yesterday directly from HTC, and I have done nothing to it so I would still need to know if there is anything I need to do otherwise.

1. S-Off

2. Take the OTA for 2.28.617.8 to get Nougat

3. Root it?

How did that above method work for you? Easy to do before and after taking 7.0?
[HTC 10 Guides, News, & Discussion] shortydoggg:
I'm S-Off, but not currently rooted because without Xposed working on Nougat, I just don't have enough reasons to root right now.

The steps I believe that you should take:

1. S-Off : http://theroot.ninja/

2. Take the OTA for 2.28.617.8 to get Nougat

3. http://xdaforums.com/htc-10/development/root-magisk-autoroot-magisk-phhs-t3507505

4. Maybe the unofficial TWRP from post 2 of this thread:

http://xdaforums.com/htc-10/development/recovery-twrp-touch-recovery-t3358139
[HTC 10 Guides, News, & Discussion] Goliath27:
1. Done with S-Off Locked (I hope that was the correct choice).

2. OTA is complete and up and running.

3. This is to Root the device, but does not come with any TWRP which is why I really wanted Root. Do I root using the Magisk process and then later add TWRP, or do you mean to do only one or the other?

Thank you in advance!

EDIT: Why Magisk and not the Chainfire root method? Any difference? Just looking for the easiest method as a Noob can get very lost in this rabbit hole.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Just flash TWRP, and then whatever root method you want. You don't need the non-TWRP root methods anymore.
[HTC 10 Guides, News, & Discussion] Goliath27:
Your thread from his 4 link shows instructions for those who already had TWRP installed. Mind you, I'm coming from a long drought of HTC so I don't have any of this by memory anymore.

TWRP from your thread HERE first. Do I install that by using the regular ADB Fastboot method (This would be the method I would follow if correct)

Once TWRP is installed, which root method would be the easiest and cleanest. I'm sure there are a couple but I would like to do the easiest one if possible. I'm getting old and lazy.
[HTC 10 Guides, News, & Discussion] swebb76:
I just used the sunshine app, installed twrp, ran the supersu adb command and then flashed latest supersu. Not getting 4G, only 3G. I noticed someone had the same issue, but never saw a solution. Any ideas? When people talked about radio issues, is this what they were talking about, or it didn't work at all? Thanks for any help!
[HTC 10 Guides, News, & Discussion] shortydoggg:
Haven't rooted in a while, but I'm thinking you may have flashed the wrong latest SuperSU.

You may have flashed the official (UPDATE-SuperSU-v2.79-20161211114519.zip) when you were supposed to flash the beta (SR1-SuperSU-v2.79-SR1-20161221223537.zip).

I could be wrong.

Anyway, to fix that, you might need an RUU, which will wipe all of your data; or a restore from the twrp backup of boot and maybe system image for your phones firmware.
[HTC 10 Guides, News, & Discussion] Xajel:
I'm on same boat as [MENTION=4339338]Goliath27[/MENTION], Locked BL with S-Off, currently on 6.0 rooted, wants to go for 7.0 and root

Can I flash TWRP with Locked BL ?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
As long as you're S-OFF, yes.
[HTC 10 Guides, News, & Discussion] Xajel:
Cool, I've asking this question for a while but no body answering me :D

Thanks mate, I'll give it a shot tomorrow.