yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rogiebear07:
I flashed TWRP (latest version) and when I boot into TWRP I'm met with a dialogue box asking for my password to decrypt in order to mount my phone. I don't want to decrypt, and I don't want to wipe my phone again. Any idea what's going on here?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] BenPope:
It's asking you if you want to decrypt. Just hit cancel if you don't want to.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rogiebear07:
It's asking for a password to mount my internal storage. I can't seem to figure it out. It won't take my screen unlock passwords. I can but cancel and access the menu, but none of the actions work because the phone itself isn't mounted. Is there a default password or something?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
FYI - Official SuperSU Beta has been updated with KEEPFORCEENCRYPT and KEEPVERITY flags now available.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Update OP with new version.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] BenPope:
So i did:

1) fastboot flash boot boot.img (from the OTA I had taken)

2) Installed SuperSU-v2.72-forceencrypt.zip from within TWRP

3) Success!

AAAA+++++ would root again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jollywhitefoot:
Is this zip supposed to wipe userdata? I used your other wipe script and it works perfectly without wiping my userdata, then used this one and it got wiped. I'm not complaining, I had good backups for everything, but I'm just looking to understand better. I was just surprised when the setup screen appeared is all. Why use this zip over flashing SuperSU and then wiping with your other script that does not wipe all of the data partition?

Thanks for your great work. I have found these scripts extremely useful.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
This is not a script, this is the flashable zip for SuperSU.

I only modified 1 word in the script.

It shouldn't wipe anything at all.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JEANRIVERA:
double post
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JEANRIVERA:
i am using chainfire SuperSU 2.72 on leedroid and other phone on stock rom and my signal is working fine i thought it wasn't supposed to work unless i use the one provided here please correct me if i am wrong please [MENTION=4470081]topjohnwu[/MENTION]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Yes, the signal will work until you wiped your data.....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JEANRIVERA:
ok got it!! thanks for the clarification
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] relic120:
So I really want root, but at this time don't really care for custom ROM (until Viper makes one) since stock is pretty darn decent. Even after reading through several threads I'm still not 100% certain that it's okay to do this yet. The last phone I got to s-off, rooted, etc was my M8 and that was easy and I felt confident doing it, flashing roms/kernels/firmware/etc...

Would someone please sum up the pros/cons to getting this root method, specific to the HTC 10? For instance, will I still be able to get the OTA's from HTC and have root going? Like we just had an OTA today, if I had rooted yesterday would I have missed it? Also, will this method still work now that I did install the OTA today? Thanks in advance!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
It will work fine following the latest ota.

It's system-less root and won't affect your ability to ota, however it's always best to keep a stock system image and boot backup on your external sd, if an ota lands, you can restore you backup and flash a stock recovery image...

You won't get an ota notification with TWRP installed, the recovery id needs to match that in build..prop

There are no major cons compared to the M8, just the encryption niggle, but this root method gets around it perfectly.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LeeDroid:
Full wipe is working perfectly in the rom now as forced encryption is enabled, meaning no signal issues
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] relic120:
Thank you very much, this is just the info I needed!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
This actually isn't true. I received the OTA notification today with TWRP installed, and even installed it with TWRP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Have you ever modified your system before receiving OTA?

What I'm guessing now is that it will detect if your system has been modified before, once found out that the system was modified, it will refuse to receive OTA, no matter if you restore the system back or not.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Nope, I don't modify system, and I don't disable dm-verity either (though I did at one point to see if it would make any difference, and it didn't).

Restoring full stock using a Download-mode-flashable zip like the one I prepared for the 1.53 update should allow for installing OTAs. If someone would like to confirm, I can make one for the 1.21 version tomorrow, and they can see if the OTA is detected and will install (provided they haven't already updated). I think it will work.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rickd88:
Quick question, regardless of which Super_su version we use, or process, we could just click the Re-encrypt button in settings, after rooting and problem solved???

Is this correct?

And if so, what is downside of doing that versus going this route?

Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
hey could you please point me to or share the flashable zip of 1.53 which you have compiled?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
http://xdaforums.com/htc-10/how-to/stock-stock-collection-recovery-ruu-ota-t3359297/post66790169
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cauqazn:
Hopefully this is not the case :eek:. I rooted on 1.21 and couldn't OTA. Maybe im blacklisted already lmao. Captain's 1.53 dump was the only way I could update given my limited knowledge at the time.

From what I gathered on the other thread, boot also needs to be restored and I only restored sysimg and recovery before trying to OTA. Dont know. This stuff is all very confusing to noobie like me.

Anyways, used this thread again to root on 1.53. Screw it. lol
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Yeah, flashing through fast boot should reset some flags on the device.

I'll try this on my device and update the PSA thread when confirmed.

Thanks for this idea!! Nice thinking :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Chainfire:
This method generally re-encrypts based on password, pattern, etc, so you have to enter this before Android even loads (which is really annoying) as opposed to the default encryption which is completely transparent.

Also, it often fails if SuperSU is running. You need to unroot for the function to work, then reroot afterwards.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cauqazn:
After flashing your ZIP my phone says it's up to date, but radio/baseband has not been updated.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
If you're talking about my zip, that's because you have to flash the firmware zip from the OTA after it. I said that in both the other threads where I actually posted the zip....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cauqazn:
I read that a while ago. I can't flash firmware.zip.

Doing it thru the phone in recovery I get the errors:

E: footer wrong

E: signature verification failed

Doing it over USB

9 RU_SECURITY_FAIL zip from usb command in download mode

Do I need to be S-off or something? My device is S-on
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I replied in the other thread. Let's keep it over there, please.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] datafoo:
I have problems with this version and anything after 2.65 with Es File Explorer not being able to gain root.

I did the jcase work around by booting encrypted before flashing SU.

I bring this up (it's been mentioned in this thread already) again to see if it's something I'm doing wrong or to push on the issue again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Electronic Punk:
Blame ES Explorer for being terrible and I don't just mean the ads, they have hardcoded the su location.

Try adding ES Explorer manually or using other software. (Solid Explorer seems to get a lot of good shouts)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] datafoo:
Good feedback. I wondered if it wasn't an ES bug. Yeah the new versions are horrible. Talk about destroying a good app.

Thanks for the tip, I need a good root explorer.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Electronic Punk:
Yeah I bought the Pro version because I am stuck in my ways, but can't help but feel its literally an ad-free option, they haven't added any pro worthy features to the software other than removing all the adware they have slowly being adding!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Stephen:
I bought root explorer. Cant beat it at all. Awesome app.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Prinz069:
So, after several posts here, can I safely flash the SuperSU 2.72 from OP in TWRP and the radio still works?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jollywhitefoot:
works for me
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] steno66:
Adb sideload won't work for me, can I put supersu in microsd and flash from recovery?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Jarheadflip:
It didnt work for me on adb sideload so i flashed from twrp and it worked for me
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Electronic Punk:
or adb push supersu.zip /sdcard/ worked for me
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chazall1:
I flashed with TWRP and all is well
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] datafoo:
I regressed to an earlier 4.5 version without the horrible adware. I'm still on SU 2.65 as it works fine with systemless install and I am aware of the encryption issue.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Hi guys,

Just flashed this on my HTC10. Everything went fine, RootChecker confirms I have root but several other apps can't seem to detect root (ES File Explorer, Secure Settings). Is this a known issue?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] stonew5082:
Yes, read the last few pages those apps don't support systemless root.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Damn, I hate it when people don't bother to read. And now I'm doing it myself. My apologies, really was convinced this problem was due to something I did wrong.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] silv3rkn1ght:
I just finished rooting my HTC 10 and everything works great, apart from the fact that I lost the ability to mount my device on my computer. And also when I connect my cable, it now give me a slow charging warning and no possibility to change the usb mode.

It's the original cable and was working fine minutes before. I am still able to fast charge with the ac adapter

Edit : Oh it's doing the same thing on my laptop as well, which was working before root too.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Mikee4fun:
Just copy the su binary to system/bin and reboot. It will work. Or repack the rom with su in system/bin. Works for me for all apps, including ES.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Not the correct way to handle this, as this will modify system and break dm-verity. Better to just enable compatibility mode when flashing SuperSU if you insist on using apps that don't call su properly.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Mikee4fun:
I tried that too and it wasn't working. Guess at the end of the day these app developers need to update their apps. =)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Taking the splash soon. backing up stuff, downloading stuff, reading stuff... two and a half week on stock...now time for some unchaining :) looks pretty straightforward. thanks for saving the day with this supersu package
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] yldlj:
With the new twrp should we be using the official SuperSU instead of this one now?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
No, to have working data, you still have to keep your data encrypted.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] finsmaniac02:
Is it ok to do traditional, "compatible" root with the HTC 10?

I was wondering why nobody suggested this...

What are the downsides to the compatible root again?

If I remember - basically android pay?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Correct, Android Pay won't work with compatibility mode enabled.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Thanks you guys. Really trying to understand everything by reading all the threads that have something to do with this ([PSA][MUST SEE] (Updated) Things You Should Know Before Unlocking Bootloader, [Guide] Root (Optionally s-off) and Keep your radio working - Now Easier 5/11/2016 and this one).

So if you decrypt data, you'll lose signal. But I still don't really understand what will make you lose the ability to OTA. Would someone be so kind to explain that to me?

One last question: if I replace wpa_supplicant.conf in /data/misc/wifi with the one from my M8, will I break anything?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] goodtimes50:
How does one select compatible vs. systemless root? If I just flash without doing anything I'll get systemless, right? I really don't want to lose Android Pay...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ANDR01DN00B:
Okay may have totally messed up here. I have s-off, super cid, verizon radio flashed, and bootloader unlocked, BUT, my storage is unencrypted so I don't have signal. Is there any way I can encrypt the storage?

Thanks in advance!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Settings -> Storage -> Phone storage encryption
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ANDR01DN00B:
It get's stuck on the HTC splash screen and if I force reboot it doesn't encrypt :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Restore back to stock, and it will encrypt automatically.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ANDR01DN00B:
You mean flash an RUU? Okay I'll see. But I'm on Verizon on the moment so I'll flash the RUU then the Verizon radio and I should be good to go?

Thanks.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Yup, that'll do it.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ANDR01DN00B:
Cool. I will definitely be sure to report back the outcome.

Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] MNoisy:
I see 2.74-2 beta is released. (thank you as always!)

Will our builds for the 10 eventually be joined or are you planning to always keep a separate build with forceEncrypt defaulted for the 10?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Anyone can use the official version, as it now supports retaining both dm-verity and forced encryption. I believe this version is just for convenience, but it's not *necessary* so much as it's easier for the lazy ;).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] MNoisy:
Thank you!

---------- Post added at 02:17 PM ---------- Previous post was at 02:15 PM ----------

Is there a setting in 2.74 with dm-verity and forced encryption or is it all automatic? I don't see anything in 2.74. That is why I ask :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
https://plus.google.com/+Chainfire/posts/N6EARb8LF3d

Same settings as from v2.72. The below code comes from the update-binary in the 2.74-2 zip.

# Overridable variables (shell, /system/.supersu, /cache/.supersu, /data/.supersu):
# SYSTEMLESS - Do a system-less install? (true/false, 6.0+ only)
# PATCHBOOTIMAGE - Automatically patch boot image? (true/false, SYSTEMLESS only)
# BOOTIMAGE - Boot image location (PATCHBOOTIMAGE only)
# STOCKBOOTIMAGE - Stock boot image location (PATCHBOOTIMAGE only)
# BINDSYSTEMXBIN - Poor man's overlay on /system/xbin (true/false, SYSTEMLESS only)
# PERMISSIVE - Set sepolicy to fake-permissive (true/false, PATCHBOOTIMAGE only)
# [B]KEEPVERITY - Do not remove dm-verity (true/false, PATCHBOOTIMAGE only)[/B]
# [B]KEEPFORCEENCRYPT - Do not replace forceencrypt with encryptable (true/false, PATCHBOOTIMAGE only)[/B]
# Shell overrides all, /data/.supersu overrides /cache/.supersu overrides /system/.supersu

(bold mine)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] MNoisy:
Thank you. I will have to find the guide since I am not familiar with how to set those flags. I appreciate it!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] FreydNot:
http://xdaforums.com/htc-10/help/guide-using-supersu-beta-t3376837/post66797995#post66797995
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Of course, now we can echo to /data/.supersu rather than /cache ;).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] FreydNot:
An excellent point. I've edited my post to make a note of that.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Update OP with new version, also included instructions for those prefer un-modified versions :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Very clear story about why certain apps can't get root. Thanks man!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Diumlol:
Is there any benefit to updating SuperSu if I am on say like 2.72 or something?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
In this particular release, it is mostly aimed at Samsung devices, so it's not necessary to upgrade

But why not use the latest version :) Higher version numbers look nicer LOL