Quote:

Originally Posted by

This week accidentally (for real, we planned on waiting until we had this PSA published first but goof'd on our build configuration, so it went live early) release SunShine for the HTC 10.



This PSA is need due to how HTC is tying in the keys for userdata encryption on newer devices and firmware. Modern device are encrypted by default, if you set a password or not. This is mostly seamless to those who don't use a password.



The way HTC encrypts the key for user data is to more or less mash up the bootloader lock status, the s-on/s-off status, and the password (for those without a password it is something like "default_password") together. Then the encrypt/decrypt the key.



What this means if you change the lock status, or the s-on/s-off status the phone can no longer decrypt your data, forcing you to wipe the device.



This will happen when you lock the device, unlock the device (which also wipes so who cares), go s-on, or go s-off. This does not matter if you use htcdev.com, SunShine, a new generation javacard, fastboot to go s-on/lock, or manually relock the device. They will all cause this to happen.



To fix this:



On stock recovery:

Do a factory reset



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).



So again, if you go s-on/s-off/lock/unlock/whatever and the phone magically is "encrypted" or "wont decrypt" or just won't work right, FORMAT userdata.



Happy Hacking