yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] dottat:
You do not want to chase that on this phone. If you try to, you will likely do some permanent damage.
[HTC 10 Guides, News, & Discussion] jcase:
wipe != wiping crypto key

lock != wipe
[HTC 10 Guides, News, & Discussion] MasterGP1:
Dear dev my phone is encrypted and i hace custom rom wirh s-on,i did as you wrote at the beginning i try to put a password at the twrp but it always say it is wrong ....

the message is password failed,try again...any help please
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
Tab cancel and it will boot into TWRP without a password.
[HTC 10 Guides, News, & Discussion] jcase:
On htc 10 the likely outcome is the phone going s-on at the same time, would need to test it.
[HTC 10 Guides, News, & Discussion] dems86:
Thanks for the guide and Sunshine App...this is my first HTC phone so all this s-off talk and then the possibility of breaking radios due to encryption was interesting, but the guide made everything a cinch.

After flashing TWRP and rooting I went ahead and downloaded Sunshine and purchased a license, ran that bad boy and voilà!!!

Thanks JCase and the rest of the team for all you do!!!
[HTC 10 Guides, News, & Discussion] dublinkev:
Is sunshine available for HTC 10 EU sim free version yet? Or when is it expected to be?

Sorry if this has been asked already
[HTC 10 Guides, News, & Discussion] datafoo:
I need to set S-On and possibly remove any tampered flags for an Uh-Oh protection claim.

Is setting s-on the same on this device as others?

> fastboot oem writesecureflag 3
[HTC 10 Guides, News, & Discussion] Jump1ng:
Yes Sunshine works on this I got the HTC_001 EU model and successfully S-OFF with Sunshine.

Also the program does a test before starting so you can always download and see what the test say before committing to anything.
[HTC 10 Guides, News, & Discussion] dublinkev:
Sweet thanks for the reply, I'm actually still waiting to buy it so had no way to check haha.

And can I ask did you buy it online direct from htc sim free, or from a retailer like carphone warehouse or something?

I want to make sure I get the HTC_001 unbranded CID, and not some weird version..
[HTC 10 Guides, News, & Discussion] Jump1ng:
I used mobiles.co.uk for my phone which is part of the carphone warehouse group. Main reason for this was because I knew that they would ship a non branded phone etc.

Not that branded phones are a big problem when you can s-off and then change CID etc. The only phone that sunshine struggles with is the US Sprint Verizon afaik and it can be still be done with contacting the Sunshine crew.
[HTC 10 Guides, News, & Discussion] dublinkev:
Oh yeah forgot about that - fastboot oem writecid ... it's been a while. Thanks again
[HTC 10 Guides, News, & Discussion] Kisakuku:
Verizon, not Sprint.
[HTC 10 Guides, News, & Discussion] Jump1ng:
Indeed sorry, thanks for correcting me.
[HTC 10 Guides, News, & Discussion] ANDR01DN00B:
EDIT: double post
[HTC 10 Guides, News, & Discussion] ZEDEK:
Peace...

Jcase...im kinda stuck, maybe I'm not understanding exactly what you mean when you state this:

On TWRP:

Enter any password (doesnt matter what)

Then go to advanced, and do a format of userdata (factory reset from twrp will not fix this it must be a format).

This is what happened to me: I am rooted with S-Off. I downloaded LeeDroid ROM(but in a rush forgot to make a backup). After setting my phone up how I wanted to, I decided to add my fingerprints. I made a change to my lockscreen (I think I chose to add my pin--before any apps could start after reboot). I then rebooted into recovery to re-flash ROM (by-passing pin code to decrypt data) and re-flashed ROM. When it booted up, HTC asked for a pin code--(this pin code was for data encrpytion, not the pin used when you normally reboot). Now I no longer have a signal.

LeeDroid stated that encrption is built into ROM and he stated the same thing you said--" a full format will be required in TWRP, no need to go back stock as forced encryption is working in the build

But when i go into TWRP I dont see anything in there that states format userdata. I do see where you can do an Advanced wipe--> then wipe data or 'Wipe Encryption", but thats it.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
First, it sounds like you're not using the latest TWRP. Update that, and then see if you see the "Format Data" option.
[HTC 10 Guides, News, & Discussion] ZEDEK:
Thanks Captain Throwback...

Since I don't have 4G (I'm at work now) would it be possible to connect to Wi-Fi at home and then update TWRP through downloading it and then flashing it from the root of my SD card or would I have to flash it via adb/fastboot?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
You can just flash the new version from within TWRP (see the TWRP OP).
[HTC 10 Guides, News, & Discussion] ZEDEK:
Hmmmm....i must be doing something wrong. I flashed the newest TWRP (3.0.2-3). Booted into recovery>swiped to allow modifications (tried READ ONLY first and it didn't work)>went to WIPE> chose option to format data and typed YES> rebooted and still no signal. I don't know what I'm doing wrong, I've been using HTC phones for years (rooting and tinkering with them)..but this new thing with encryption is baffling me
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
So now re-flash the ROM and it should encrypt on boot.
[HTC 10 Guides, News, & Discussion] ZEDEK:
Peace Captain Throwback...

Got it working, thanks for being patient and walking me through it :good:
[HTC 10 Guides, News, & Discussion] ricardod1:
Maybe not the right thread for this, but I have to ask.

Getting my HTC 10 this afternoon and wanted to know what I should do first. Would love the feedback
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Before you set anything up, I'd click through the Setup Wizard and enabled Developer options, then OEM unlocking.

Then use HTC Dev to unlock the bootloader.

Then install the latest TWRP and root using the modified SuperSU.

Then boot up and run SunShine for S-OFF.

Then boot back into TWRP, Format Data.

THEN decide what you want to do - either play on stock, or flash a custom ROM :)
[HTC 10 Guides, News, & Discussion] ricardod1:
Thanks Captain! Any recommendations on custom roms?
[HTC 10 Guides, News, & Discussion] frankcck:
Mhh... good question.

Something big is coming?

Sent from HTC 10 powered by Viper10
[HTC 10 Guides, News, & Discussion] nitramus:
Should we install any ota before rooting?
[HTC 10 Guides, News, & Discussion] mrlakadaddy01:
Yes
[HTC 10 Guides, News, & Discussion] ricardod1:
Unlocked, rooted and latest twrp... Was so easy!!!

---------- Post added at 12:47 AM ---------- Previous post was at 12:44 AM ----------

I see your signature... Can't wait
[HTC 10 Guides, News, & Discussion] ZEDEK:
Peace...

Captain Throwback---hate to bother you---but on your version of TWRP, if I wanted to make a backup of my current ROM, what items should be ticked off? Not all things can be backed up right? (HTC's data encryption scares me--even though I know now how to recover from it)
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
If stock, untouched, then boot & system image. If system is modified, then boot and system. If you want your data backed up, then back up Data too.
[HTC 10 Guides, News, & Discussion] RaPiiDe:
Hello,

I'm sorry to enter in this conversation but is it possible to restore a twrp backup (full backup or only data) without issue?

Right now, when I restore data on my working rom, the "unable to decrypt data" message is showing and I have to factory reset my HTC. Have I lost all my data or there is still a little hope?

Thank you.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Are you using the latest TWRP?

Either way, you're going to have to use the "Format Data" function in TWRP to remove encryption. If your data backup was taken with TWRP 3.0.2-3 or newer, you *may* be able to restore your data backup at that point.
[HTC 10 Guides, News, & Discussion] RaPiiDe:
Thank you for that fast answer!

I've checked and the twrp-3.0.2-3 has been released after my last installation... So to make it simple, my backup is useless and can be deleted isn't it?

Anyway, thank you again :D
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Yes, any backup of Data prior to that version is useless and can be deleted.
[HTC 10 Guides, News, & Discussion] RaPiiDe:
Ok, it's good to know. Too late but good to know. :)

Thank you again for your help.
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
Alright,I'm B/L Unlocked & S-Off TWRP/Root,the whole nine yards.

I was running VIPER ROM & had to revert back to stock to SIM Unlock my phone.

No problems there,but,when I tried to restore my Viper ROM backup,I'm stuck on the stock white HTC Splashscreen.

Any ideas,other than letting the battery run down & (attempting) to restore the stock backup?
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
Update:

Being stuck @ the HTC Splashscreen,the power & volume down will make the screen flash to black.

Immediately repeat the button combination & you'll be presented with the download mode screen.

Select Bootloader,then recovery,then,reflashed the backup of the original stock/unrooted.For good measure,I wiped data/cache & started over.

Now,I just need to re-root & I'l be on my way.

I usually forget (in haste) to do a stock backup,but,this time I slowed down & took the advice to do so.........................
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Did you try just re-flashing Viper?

P.S. Once the screen turns off, just release the Power button and continue holding Volume Down, and you'll arrive in Download mode ;).
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
What I did after reverting back to stock (successfully) was restoring my Viper backup.

That's when I ran into issues.

User error,I'm guessing,as stock wasn't rooted & trying to flash the Viper backup?

Would re-rooting & flashing the Viper backup work?

I'm not that worried about the backup,not a biggie starting over.

THX! :good:
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
I mean after the Viper backup failed to boot, did you try dirty flashing Viper over it?
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
No,I can though,for troubleshooting purposes.

I haven't even re-rooted stock yet,I'm on the charger,should be past 50% by now.

I tried flashing the Viper backup,not the barebones Viper ROM.

I'll try anything you suggest,for information/learning (for yours truly),seems easy enough to recover if things go south......... :good:
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
You don't "flash" a Backup - you "Restore" it. You "flash" a ROM.

Dirty-flashing the ROM over the non-booting backup may get the device booting with all your data intact - that's the only reason I suggested it.
[HTC 10 Guides, News, & Discussion] KOLIOSIS:
Gotcha,I misspoke. :o

The data was intact when I reverted back to stock from Viper.

So,I'm guessing the same would hold true for flashing the Viper ROM instead of restoring the backup.

It's moot now,as I wiped data,but,I do thank you for responding,some refresher lessons were learned here,hopefully others will learn from my haste. :good:

Now,before I get in a hurry once again,gotta start from square one,enable developer options....................... ;)

---------- Post added at 05:34 PM ---------- Previous post was at 04:45 PM ----------

Update #2:

After reverting back to stock/unrooted & re-rooting,I was able to restore my Viper backup.

My SNAFU/FUBAR was not re-rooting 1st when on stock/unrooted & attempting to restore the Viper backup. :o

Everything is back to normal.

Attention to detail is important & was my mistake here,THX for the feedback [MENTION=1162986]Captain_Throwback[/MENTION] :good:

My apologies for cluttering up the thread,by all means,feel free to have the related posts purged [MENTION=2376614]jcase[/MENTION] / [MENTION=1162986]Captain_Throwback[/MENTION] as you deem fit.
[HTC 10 Guides, News, & Discussion] xperia x root:
Are devs also working on a way to s-off for free?
[HTC 10 Guides, News, & Discussion] jcase:
I heard you were working on a way
[HTC 10 Guides, News, & Discussion] -Vulture-:
After reading the whole thread im still not completely sure about sunshine.

Currently im on 1.53 with Viper10 1.6, S-On and obviously unlocked. Now i want to update my firmware for Viper10 2.0.0, therefore i need S-Off.

Now Sunshine seems pretty straight forward, but i still have these few questions:

1. I will for sure lose my user data because of the encryption key, if i s-off with sunshine? (explanation on first page)

2. Is it possible to make a backup with the current TWRP version and restore it later? Make backup of user data -> s-off with sunshine -> format data in TWRP -> restore backup to get my Viper10 1.6 working again?

Thanks! :)
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
I see no reason that wouldn't work.
[HTC 10 Guides, News, & Discussion] -Vulture-:
Ok, sounds good! :)

So is the encryption of my user data partition still active after using the format data option in TWRP? I would guess yes.

Im referencing to this statement from you:

"Either way, you're going to have to use the "Format Data" function in TWRP to remove encryption. If your data backup was taken with TWRP 3.0.2-3 or newer, you *may* be able to restore your data backup at that point."

What do you mean by remove encryption? This sounds so "permanent". As far as i understand it right now, you have to format the partition because of the s-off procedure. You have a new encryption key after that which cant access the old user data partition anymore. Therefore the format to make it accessable for the new encryption key, correct?

Thanks! :)
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
The "Format Data" action removes encryption, because after SunShine completes, Android (and TWRP) won't be able to decrypt the data partition. Whether or not the device re-encrypts on boot is dependent on the method you used to root. But if it does encrypt on boot, everything should work fine at that point.
[HTC 10 Guides, News, & Discussion] -Vulture-:
Ah ok. I just flashed Viper10 which is already pre-rooted, i think its systemless. Will it re-encrypt then? Can i check the encryption status of the partition somehow in TWRP (or any other way)?

Thanks again and sorry for the questions, this encryption stuff is new to me. :angel:
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Look in Settings -> Storage -> Phone Storage, and scroll to the bottom and see if "Phone Storage encryption" is checked already. If it is checked and grayed out, you're encrypted. If you can check the box, it means you're decrypted. The previous versions of Viper10 forced encryption, but the latest one might not.
[HTC 10 Guides, News, & Discussion] -Vulture-:
Thanks, its encrypted right now. If i find a free weekend, ill give sunshine a try, since this wont be the last firmware released by HTC...Thanks for your support!
[HTC 10 Guides, News, & Discussion] :
Is it safe to go s-on after going s-off. And if so how can it be done?
[HTC 10 Guides, News, & Discussion] ahecht:
[deleted]
[HTC 10 Guides, News, & Discussion] eoinzy:
What happens if twrp won't accept any password so can't mount the data partition to wipe it?
[HTC 10 Guides, News, & Discussion] JochenP:
You have the choice to factory reset your phone

---------- Post added at 01:56 PM ---------- Previous post was at 01:55 PM ----------

Or format data [emoji2]
[HTC 10 Guides, News, & Discussion] :
Press cancel.
[HTC 10 Guides, News, & Discussion] ali nz:
what is s-off used for?
[HTC 10 Guides, News, & Discussion] matekaneve:
See Here
[HTC 10 Guides, News, & Discussion] metalfan78:
Hey guys, I would like to get some clarification on the newest version. I have a US unlocked version on t-mobile, I can run the s-off locked version and I don't need to wipe or run the ruu, correct?
[HTC 10 Guides, News, & Discussion] gmoe65:
Hey if I relock and s-on my phone will I have to pay to s-off it when I try to s-off it?
[HTC 10 Guides, News, & Discussion] andybones:
AFAIK, same device, no.

Once you buy a key it's linked to that specific device.

If you get a refurb, replacement, etc, then a new $25 key for Sunshine will be needed.
[HTC 10 Guides, News, & Discussion] gmoe65:
It would be the same phone ,doesn't that app unlockthe bootloader?
[HTC 10 Guides, News, & Discussion] metalfan78:
Sunshine doesn't unlock the bootloader, it only provides s-off

---------- Post added at 07:02 AM ---------- Previous post was at 07:01 AM ----------

So, I ran sunshine, device got encrypted so I had to format data, then run the ruu, then root and restore my nandroid. Such is life.
[HTC 10 Guides, News, & Discussion] andybones:
Sunshine unlocks the bootloader. It is "The #1 Bootloader Unlock tool"

Taken from: http://theroot.ninja/verizon10.html

"With SunShine 3.4+, the Verizon HTC 10 can be s-off'd (optionally unlocked, but not needed with s-off) using the app."
[HTC 10 Guides, News, & Discussion] metalfan78:
Isn't the bootloader unlocked through htcdev? Maybe I'm getting my terms confused. Maybe it unlocks the Verizon bootloader. Pay no attention to me, ;)
[HTC 10 Guides, News, & Discussion] andybones:
Ah yea, sorry I'm thinking Verizon.

But I do believe you can at any time download the app and change the bootloader status, however I could be wrong.
[HTC 10 Guides, News, & Discussion] razor54:
Can someone confirm that sunshine app doesn't have temp root compatible with European 1.90 firmware?

Thanks
[HTC 10 Guides, News, & Discussion] dryspuri:
I can confirm, did not wanted to root myself using htcdev, but sunshine is giving me error that it can not get access with temp root, may be my data is encrypted, and thats the reason. what about you, is data encrypted as well. I am tmepted to wipe the data and install from new device, without encrypting data.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
There's no way to run decrypted unless you unlock your bootloader.
[HTC 10 Guides, News, & Discussion] SkyboneNoya:
Just installed with Canadian htc10, on 1.90 if that helps..

Kind of a pain in the as since this is my first HTC phone, but sunshine did the trick after I unlocked bootloader with htcdev.com

see reference. http://xdaforums.com/htc-10/how-to/guide-root-optionally-s-off-radio-t3373025
[HTC 10 Guides, News, & Discussion] dastinger:
Hey guys, I'm really lost here.

First time HTC device owner and have been reading but can't fully understand some things.

Is it possible to unlock the bootloader using this app?

From what I understand, I need root and to have root, I need an unlocked bootloader. So, there isn't any way other than HTC Dev to unlock the phone?
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
You can pick the phone using SuneShine App,as long as your current firmware is 1.80.xxx.x or below. If you're on 1.9x.xxx.x you got to use the way via HTCDev S you already described it. This is due to temproot not sticking on 1.9x.xxx.x firmware and base.
[HTC 10 Guides, News, & Discussion] dastinger:
Thanks a lot! I'll have a look at that when the phone arrives.

If I unlock by HTC Dev and then relock will the state be relocked or locked?
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
If you're going with HTCDev it'll be "relocked". A real "locked" can only be done using SunShine.
[HTC 10 Guides, News, & Discussion] dastinger:
OK thank you!

I don't know how HTC handles unlocked phones + warranties. Let's hope it comes with a version I can use the Sunshine app with in case I need to relock it for repairs in the future
[HTC 10 Guides, News, & Discussion] wolf5150:
I unlocked via htcdev. I then performed "S-OFF/LOCK" with Sunshine and am now "s-off" and "locked". Formatted data to resolve "cannot decrypt" problem, breaking the radio. Good thing I backed up my virgin system_image and boot partitions after flashing twrp! Restored them and appear to be on my way to happily ever after
[HTC 10 Guides, News, & Discussion] dastinger:
Thanks a lot! How do you backup the partitions?
[HTC 10 Guides, News, & Discussion] wolf5150:
I did a nandroid backup in twrp before flashing supersu, then restored both from within twrp after s-off-ing with Sunshine. Good luck! :)
[HTC 10 Guides, News, & Discussion] kapica:
hello guys,

just to double check, my HTC 10 is on SW 1.95.401.3

I have to unlock BL on HTCDevs...

After that ill TWRP, backup system-image and other

After if i need to revert, Sunshine can relock the device to pre unlock BL state?

Tnx all.. still trying to grasp all HTC related stuff.. been i while since i was tampering with TWRP and roots stuff

cheers

EDIT: figured it out, found some good youtube videos, so i grasped the whole process, made backups so :)
[HTC 10 Guides, News, & Discussion] dastinger:
Hey guys,

I'm S-OFF with a Locked bootloader. I used Sunshine btw. I don't need it right now but, in case I ever need it, how can I go back to S-ON?

Thanks!
[HTC 10 Guides, News, & Discussion] Scutariu:
Hello, When I got my HTC 10 I have unlocked my bootloader via HTCDev, and then used SunShine to S-off/Unlocked.

I would like to go S-Off/Locked, how would that be possible ?

When I go into SunShine, this is what I get.

http://imgur.com/a/aATUd
[HTC 10 Guides, News, & Discussion] Kisakuku:
RUU, go S-On, run SunShine again. Switching to S-On has a risk of bricking, so generally not recommended unless you have a reason for doing so.
[HTC 10 Guides, News, & Discussion] :
Yes, you can.
[HTC 10 Guides, News, & Discussion] Rubble_2000:
Hi, I've unfortunately not followed what, for me, would have been the most important bit of this excellent guide:

http://xdaforums.com/htc-10/how-to/guide-root-optionally-s-off-radio-t3373025

Namely the line that would have enabled me to flash SuperSU and maintain encryption rather than blundering in and flashing the latest SuperSU regardless...doh!

The most important thing for me is to be able to use Android pay which obviously now I can't.

Can I undo my stupidity?......or not?
[HTC 10 Guides, News, & Discussion] HackxBox:
HTC newbie

Hi guys. First off, I want to express my utmost gratitude for all the work and the great advice you do on these forums. You are the best community!

Secondly, I have to acknowledge although I am computer and smartphone literate, I am very new to HTC modding, so probably my questions will sound noobish.

I also understand this thread is quite old and probably most of the questions I will ask are already answered multiple times, but I wasn't really able to find any consistent information, and believe me I tried.

Now on the topic - I am S-OFF Unlocked European (UK) version. When I did the Sunshine I actually debranded my 10 with a generic WWE, because it was on Vodafone UK and had some of their crap preinstalled. I tried several combinations of Firmwares and ROMs but none of them was up to my expectations of stability and battery life. So, when the WWE Nougat RUU zip's became available I decided to flash and start over with the idea to get the latest Viper with Magisk. Long story short, it didn't work for some reason and on top of that my nandroid backup gave me an error, and I had to setup everything from scratch. So, currently I am with fresh 2PS6IMG_PERFUME_UHL_N70_SENSE80GP_MR_HTC_Europe_2.28.401.9, with no root. The bootloader shows it as official, and most surprisingly it runs great and the battery is at least 30% better than any previous configuration. So I am very happy and I decided to go the stock way, at least until HTC release another partially tested sluggish battery devouring firmware. But being stock means I want to have my Android Pay working, which is invaluable for the busy London life. SO, here are my questions:

1. Can I lock my bootloader from my current state - S-OFF Unlocked, debranded, latest RUU zip flashed?

2. If yes, can I restore my data and apps after from nandroid?

3. Will the Android Pay pass the Safety Net check after all this?

Thank you very much!