yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Update (May 20): Update to latest version 2.74-2

All versions after SuperSU 2.72 has force encrypt support built in. However it will still disable force encryption by default, you have to set flags manually.

I only modified the default value of the force encrypt flag in the flashing script, so no need to worry that this might break things :)

If your OCD forces you to use the official version, please look here for instructions to set the flag manually by yourself.

Hi, many people have their hands on the HTC 10, and you may found out that wiping data after rooted with SuperSU, your signal will be broken.

This is caused by the fact that by default, SuperSU's flashing script will change the data encryption flag from "forceencrypt" to "encryptable". If you wiped data after the flag is set to "encryptable", your data partition will be decrypted. In many times, decrypted data is good, but on the HTC 10, for some unknown reason the signal will break with data decrypted.

More info here:

[PSA][MUST SEE] New HTC Policy : Things You Should Know Before Unlocking Bootloader

This issue has caught more attention after an S-OFF method is available. You're required to have root and wipe data after gaining S-OFF. The developer of the S-OFF tool has created a tutorial for this particular problem, you can find it here:

[Guide] Root (Optionally s-off) and Keep your radio working

I slightly modified the SuperSU flashing script, so now it won't change the encryption flag.

This zip will remain useful until we find a way to decrypt our data partition with working signal.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] starbase64:
Hi,

this works without problems, big tanks. Device is rooted now.

regards

starbase64
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] MNoisy:
Big thanks. I wish I would have had this yesterday afternoon!

Now I just need to get a stock 1.21.617.3 image to start again with my US unlocked. If anyone has it, please let me know.

Is there a way to manually change the flag back to forceencrypt?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] datafoo:
I have TWRP images for system_image and boot if you need them to fix broken signal as per [MENTION=2376614]jcase[/MENTION]. We're both 1.21.617.3
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] MNoisy:
Yes yes yes please! THANK YOU!

Where can I find them?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Nice buddy, will update the method used in my build, makes life a lot easier.

I had considered making similar modifications but you appear to have beaten me too it ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
I would NOT use this zip to root the HTC 10, you really need to remove verity, this is going to cause many many many issues, its going to softbrick a huge number of phones, anything from a lot of root apps, to restoring a twrp backup is going to trip dm-verity
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Chainfire:
SuperSU v2.72 has all of this built in via KEEPVERITY and KEEPFORCEENCRYPT flags. It's not publicly released yet but will be within a few days.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Out of curiosity, where will we put those flags? /data/.supersu isn't an option, because /data is encrypted and unmountable, and /system/.supersu isn't an option if /system is read-only and we want to preserve dm-verity.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
My system is modified, but everything is working fine. I'm using this without a problem so I shared it.

Is it because my device is S-OFF? If this is the case, then I'll remove the link. Thanks for the kind remind.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcase:
I'd have to look at the zip and test to see why. It could be that your particular firmware isn't actually enforcing dm-verity (I believe google mandates this on 6.0+), that HTC disables enforcing when s-off or the zip isn't properly enforcing verity.

Best advice is not to enforce verity on system if you are rooted.

What should (and did for my phone) happen if you have dm-verity enabled on system and a modified system is the phone shouldn't successfully boot.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Chainfire:
I've added /cache/.supersu as location specifically for those devices with a TWRP that can't read encrypted /data.

Still, you can echo to /data/.supersu even if /data isn't mounted and that'll still work. It just will not persist between boots.

Custom ROM devs should put it in /system/.supersu, though, or set the variable in shell and export that variable (important!) before running the SuperSU ZIP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] dottat:
Will that cause complications for users who wipe cache often?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Sorry everyone, didn't though much about the dm_verity.

Re-uploaded one with dm_verity removed.

Everyone should re-flash this zip if you've used the old one, thanks a lot.

[MENTION=398245]LeeDroid[/MENTION], could you please test if this works on your rom? :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Will have a bash tonight mate
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
still no go on boot
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Yeah... Just tested myself and it won't boot.

It's weird though, it can boot on my modified system:confused:

I might need more investigation, or just wait for Chainfire to release the new update.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chazall1:
Is it OK to use SYSTEMLESS with your current build?

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
ah, perhaps encountered a blarf

you wanna stick with blarp ... he's much nicer :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Ahh, I knew why.

I cannot separate the forceencrypt flag patch and verify flag by modifying the script.

Had to wait for Chainfire to release new version, or we have to manually modify the boot image.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
might help you... http://xdaforums.com/htc-10/how-to/guide-root-optionally-s-off-radio-t3373025
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] scottspa74:
That was one of the many things I was reading. I was just hoping for some confirmation that my interpretation was correct. Thanks, though.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
yeaps///

you start by unlocking through htc dev ....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
I'm a bit puzzled... Every time there is a System Update available I restore System Image and take the OTA. But once booted back up, SuperSU always says it can't find binaries. I have to flash it again, and then all is fine. Can anyone explain this behavior to me? The whole point of systemless is that it doesn't touch /system right? So an OTA should't break SuperSU afaik?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
- OTA survival mode (no guarantees) --- > http://xdaforums.com/showpost.php?p=23427715&postcount=1
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Ahw, thanks! Scrolled through that page, but wasn't quite sure what it meant. Everything works after a re-flash, so there isn't really a problem. I was just curious about what exactly happens that makes SuperSU lose binaries. Could you maybe explain it to me?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
sorry buddy :(

i guess chainfire or someone who has indepth knowledge of how supersu and its binaries operate should be able to be of help....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
The OTA replaces boot.img. Boot.img is what SuperSU modifies in order for systemless root to work. So, SuperSU has to be reflashed so that the boot.img can be modified again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Clear! Thanks!! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] scottspa74:
Hey guys, QQ. Last week I read a ton to understand what's up with the encryption issue, etc. But a problem with HTC dev prevented me from moving forward. Really don't wanna read hours again to find info.

If I root and flash TWRP, do I have to flash a custom ROM to not break encryption, or will just flashing SU work? (haven't gotten stoked about a custom ROM since no aosp-ish roms yet)

Thanks.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] yldlj:
Flash twrp then this SUPERSU and your good
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ewokmojo:
Hey, can I encrypt my 5.1.1 phone while temporarily unrooting with SuperSU?

Elsewhere I read a description of the process that required flashing SuperSU after encryption, though my build has no custom recovery.

I need a fast answer. Any thoughts?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Diumlol:
[MENTION=4470081]topjohnwu[/MENTION] Do you mind updating the thread with the latest SuperSu?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
i think he hasn't because its not required anymore....

you could check out in chainfire's thread
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Cro Cop:
How, I thought flashing all other/newer SuperSUs (without forceencrypt) break the signal on HTC 10 ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Cyber Akuma:
I am curious about this too. Did SuperSU fix the radio/encryption issue with the HTC 10? Or do we still need to install this force-encrypt version? I couldn't get an answer at the SuperSU thread.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
you can flash the regular supersu from chainfire thread 2.76 and the radio shouldn't break.... chainfire had incorporated fix in supersu 2.74 onwards if i am not wrong

i am currently on Lee's rom, decrypted data and using 2.76systemmode of supersu...

at the worst if radio breaks you could flash supersu from here which i don't think would be required :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Diumlol:
better safe than sorry, right?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
:good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I don't think you understand the issue, or the fix.

The instructions for flashing the standard SuperSU zip and keeping the "forceencrypt" flag are right in the OP, so no newer modified zip is needed. Just follow the instructions (you just need the "KEEPFORCEENCRYPT" flag).

Custom ROMs are patched to prevent the loss of mobile network issue when decrypted using the method from this thread: http://xdaforums.com/htc-10/development/teaser-decrypted-device-mobile-network-t3394437.

So again, a modified zip is no longer needed (and hasn't been for quite a while).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Khixar27:
ok so got my device

now im s-on bootloader unlocked rom base 1.80 stock recovery

now the question

i want to install a custom kernel on completely stock rom with root

i know i have to flash twrp but im confused with losing data idk

please guide me with the process and ow should i continue with the rooting thanks

and is s-off necessary for updated rom installation ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Magnum_Enforcer:
Install TWRP via PC, then flash the latest version of SuperSU via TWRP. This won't cause a loss of data. As an alternative to flashing SuperSU via recovery, you can install a custom ROM that already has root. If you just want root with a stock ROM, simply install SuperSU via recovery, as already mentioned.

As far as S-off, it's not necessary, although it can be useful.

Sent from my HTC 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
Just a tip when I first got my phone I kept trying to fastboot TWRP and because I didn't change the file name too recovery.img it wasn't letting it install correctly.. Figured I'd post this cause most of the recovery guides don't stay to change the filename :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] stonew5082:
Not sure of anyone else's experience but that download site caused multiple popups and vibrating flashing messages. FAIL.

Although I do appreciate the effort!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] quickdraw86:
Same, not possible to validate captcha for DL and numerous pop-ups. Tried 3 browsers. Will just modify the latest beta for myself.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Chrypsisilon:
Its a realy popular site, i alwasy use it and i never heard about trouble like this, maybe it will help you to add an Ad-Blocker? (this is always recommended)

Just go to Addons and search "Adblock Plus", its for Mozilla, Chrome and IE.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] stonew5082:
Already using ad block. I even tried ad block browser. Then I tried my computer with Ublock and had the same problem

---------- Post added at 03:07 PM ---------- Previous post was at 03:07 PM ----------

Hook it up man
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
android file host mirror :-

UPDATE-SuperSU-v2.78-forceencrypt -- > https://www.androidfilehost.com/?fid=24727376692773299
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] andybones:
This is incorrect.

They don't say to change name for good reason. You don't need to. ;)

You can have the .img named whatever you want.

The important part is where you flash the .img, so when issuing the cmd, fastboot flash, make sure it is recovery if that is what you are flashing.

A good tip is the tab button, type in the first couple characters and then press tab and it will fill in the rest for you.

This is especially helpful if I have a RUU.zip with a long name I am flashing and too lazy to rename it before hand.

fastboot flash recovery NameOfFile.img

fastboot flash boot NameOfFile.img

Some things need to be flashed in rebootRUU mode (be careful and understand what you are doing before you do it) such as splash screens, which is a .zip with the .img and android.info.txt-(with the correct information).

Same goes here, can be named whatever you'd like, but the cmd is

fastboot flash zip NameOfFile.zip
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
Well for me it wouldn't work.. I tried it like 10 times and no dice. I should of looked around to see if other people had that problem or not before I posted that.. I apologize.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] andybones:
No need to apologize at all. Just correcting the misinformation.

I'm interested as to the reason of your error. Are you S-OFF?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
Yes we are both S-Off/Locked
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] andybones:
That is same setup as myself (Verizon, S-OFF/locked).

Ahh well, glad you have it working. :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
Hey can we talk on a private I'm?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JohnCorleone:
I was able to get past the pop ups and get it to download but the zip was tiny! It wasn't anywhere near the size of the 2.74 forceencrypt version. Let me try downloading it again and see if I get a full download...

Edit...the download comes up as 13.78kb instead of the 4.76MB! I can't get a complete download and I really want to keep that extra layer of having to enter a PIN number then have the device reboot then do a fingerprint or PIN to access my device

---------- Post added at 04:12 AM ---------- Previous post was at 03:56 AM ----------

But the HTC 10 had a white page pop up requiring a PIN number to keep data encrypted but once the system is messed with even with Root Explorer it makes that first layer keeping data encrypted disappear! I no longer have it when I reboot even though I have stuck with the 2.74 forceencrypt zip. I am 99% sure that allowing RW access with Root Explorer seemed to make that extra layer of security disappear

---------- Post added at 04:18 AM ---------- Previous post was at 04:12 AM ----------

So you still have the white screen when you reboot requiring a PIN number and that says you have 30 attempts to decrypt data or something like that every time you reboot your phone? I have had to stick with the 2.74 forceencrypt version myself. I think I just figured out that using Root Explorer instead of HTC File Explorer takes away that initial encryption message on every boot.

Edit...I just found a working link for SuperSU v2.78 forceencrypt a page back. I am going to refresh the latest T-Mobile RUU and start fresh because I am pretty sure as soon as I allowed read write permission with Root Explorer, upon my next reboot the data encrypted page was gone after a long reboot. :rolleyes:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] typhoonikan:
After using this and gaining root, is it safe to update SuperSU in the play market with no issues??
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Magnum_Enforcer:
Yes, you can update the app.

Sent from my HTC 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] PRao700:
Keep getting stuck in a boot loop after installing this throigh TWRP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
There's no need for this. Just use the latest SuperSU Beta - it'll work fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] PRao700:
I tried the one that was the main download. That's not the most recent ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I don't know what you're referring to.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] PRao700:
So I should just try a regular version of supersu?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I'd recommend the latest Beta, like I already said.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Supreme_One:
Will this work on Nougat with unlocked bootloader?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] aer0zer0:
dont use this!!!! the last few posts above you have tried the same thing.....

USE THIS BELOW!!!!

http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

download the beta and flash via TWRP
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Lol, I should've done it this way in the first place :)

All issues fixed, tested on a custom rom and it's booting fine with force encryption.

Although I had a feeling that Chainfire will release the update soon :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] devsk:
What's the current state of affairs? Can we flash the ZIP from OP for root? Or should we wait?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
I have tested many scenarios, it should be safe to flash, even in custom roms.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cauqazn:
modified supersu works great, just unlocked/rooted my 10. thanks for this!

I hear there is an OTA coming soon. Is the only way to obtain it to RUU and "start all over again"? Maybe I should've waited lol...

I did make backup of stock rom via TWRP. Just wish there was a way to apply OTAs quickly without having to restore everything from backup, it takes forever ugh

Big price to pay just to have Adaway :(
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Giblet-dono:
The OTA zip will probably be uploaded to XDA soon after the release.

When it does you can probably just flash it trough TWRP without having to revert anything
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You can't flash an (unmodified) OTA zip with TWRP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Giblet-dono:
I know, but can't they be edited to allow for flashing trough TWRP?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Electronic Punk:
Anyone know if ES Explorer Pro still has an issue with the newer versions of SuperSU?

Seems to work fine with 2.65 but can't recall when it broke.

I should really ditch that software tho! But so used to it!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You could, but then you'd still have to flash the firmware separately. Makes more sense to just wait for a stock flashable ROM to be posted. Though I guess there may be some wait for that as devs continue to receive the device.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Chainfire:
FlashFire may be able to flash the OTA. But I can't test that as I'm on the latest firmware already :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cauqazn:
Dammit.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Electronic Punk:
Nevermind, flashed v2 of your 2.71 and everything is working as expected.

I won't be wiping my userdata to do a full test, but as an upgrade it works fine ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] FreydNot:
Just to make sure I'm understanding properly... I have a USA unlocked 10. I have unlocked the bootloader via HTCdev.com I have flashed TWRP. I am S-on. I do not have root. My data is encrypted and I'd like to keep it that way. So far I have never formatted data or wiped data.

I want to root the phone so I can run AdAway. In the past I've manually copied the hosts file over from a rooted phone and placed it in /etc with TWRP file manager but for some reason TWRP isn't seeing files in system like I think it should (It's probably my fault. If I had to guess I'm misunderstanding the directory structure. I am mounting system as read/write.)

Anyway, given all that can I flash this modified SuperSU to gain root while maintaining my existing encrypted data partition? That's kind of the whole idea of this modification, right?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cauqazn:
Yes ^. It works just like that.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chazall1:
Great Job with the fix. All functioning great here.

Thank You
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] owenbeals:
[YOUTUBE]E86QVzbkwmo[/YOUTUBE]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Implemented in the ROM and doing as expected, full wipe test last night was successful :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] FreydNot:
Thanks for responding. I flashed it and was able to root without killing my encrypted data partition nor killing the cell data. A+++++ would root again!!!11!!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Deadeye*:
Off topic here but if you disable encryption will the phone run faster?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
It should be, however decrypting data will cause broken radio signal.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Deadeye*:
Thanks for clarifying got slightly confused i though that this new fix fixed encryption allowing users to decrypt but also not to lose signal.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] BenPope:
I couldn't get this to work.

I have the Hong Kong version (it's usually very similar to the 401 version), so I:

1) Downloaded the OTA to 1.53.708.4 and put that aside for recovery and boot images.

2) Let the OTA update.

3) Unlocked with HTCDev

4) fastboot flash recovery twrp-3.0.2-2-pme.img

5) Started TWRP with read-only system

6) Installed SuperSU-v2.71-forceencrypt_v2.zip

It seemed to go through OK, patching the boot.img. Rebooted to system and had no SuperSu APK, so I extracted that from the zip and installed it manually, but it says it can't find the su binary.

What kind of stupidity have I done?

Thanks, guys.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chazall1:
You must install SuperSU by flashing ths .zip. It will not function by using the apk.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] BenPope:
Sorry if I wasn't clear:

6) Installed SuperSU-v2.71-forceencrypt_v2.zip

Was flashing it from TWRP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] deftoner:
I just received my htc 10, I came back from xperia z1 z2 z3 and z5 phones, (my last htc was the one x) so I had to read a lot. This save me a lot of troubles. THANKS!