yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
When you have SD card set as adopted storage, wiping "Data" wipes the SD card, because that is "Data". You can fix the card in TWRP by repairing it in TWRP, and then using the Partition SD card feature and choose 0 size for swap and ext. Then you can change FS to exfat and start over.

Also to fix the unlock problem just delete the locksettings files under /data/system.

Next time, if you suspect a TWRP issue, pull a recovery log, otherwise there's nothing I can do but speculate about what the problem might be.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Viper4713:
Well son of a goo, I did not know that lol, so is there no way to wipe data while leaving adoptive storage untouched? because it appears internal storage remains untouched.

Or is it known that using custom roms and adoptive storage at the same time is a disaster? If so its annoying to me I never found this information out :silly:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I honestly don't know. I'd really need a recovery log to know what's going on. It could be a bug, but without a log I can only speculate as to what actually happened.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Viper4713:
Unfortunately I already ran that RUU so logs are vanished, sorry to say I don't want to try again either to replicate it, but if the data thing you are saying is true then that would mean I would be stuck on my current rom, or have to leave adoptive storage :/

I XDA and Google searched anything related to this and have found nothing what so ever except news about Android 6 and "TWRP now supports adoptive storage yay!!"

So I am not sure. I don't mind sticking with Stock ROM, these days I only use Root for V4A, but unfortunately no one is currently maintaining a Stock rom for US variant and I don't know how to make a flash-able zip of new versions.

But anyways, thank you! I wish I had a log for you, but unfortunately I don't have anything left :laugh: maybe I should have calmed down and not jumped the gun on a RUU, even though my internal storage was almost empty anyways, not much to save.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Use [MENTION=5787964]SuperR.[/MENTION]'s Kitchen to build a stock rooted ROM from the Unlocked Edition RUU. It's easy :).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Viper4713:
I just wish there was a way to take OTA updates, and use V4A, I mean I have V4A as a standard apk, it would be awesome to just take OTA's and flash SuperSU and reinstall drivers

but its my understanding sense Android 5.0 if the system partition is tempered even by 1kb then OTA's fail even on stock recovery, horrible.

Idk man its crazy, HTC is raving about the audio on this phone, yes its great!! but gosh darn! there isn't even a real EQ, and the volume steps are still 15, that doesn't sound like an audiophiles dream to me.

the Sony Xperia phones have an EQ with "ClearBass, ClearAudio+" all that stuff, and if I'm not mistaken I read it has 70+ volume steps!!

Sure I can use poweramp EQ but it sounds muddy and dull compared to V4A and that doesn't help Pandora or Spotify.

But I wouldn't ever want the Sony phone, HTC all the way!!

Anyways I am getting all off topic here! Thank you for your help, its nice chatting with you sir!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Does V4A add files to /system, or just replace them? If the latter, you could use bind mounting in conjunction with SuperSU & su.d to make the modifications you need. That's how I'm running a completely stock system now, but with APM and a few other mods going :).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Viper4713:
V4A installs a separate universal driver to install, no file replacements, so I suppose that would throw off any OTA's.

What do you mean exactly? I never read up on that, and if you are stock too, how do you receive updates, like me? "download full stock rom, dirty flash, flash mods, wipe cache's, reboot?"
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Bind mounting allows you to "replace" files on /system without actually touching system. But it requires "replacing" a file/folder that already exists on /system. For example, for my APM, I've bind mounted the entire /system/framework folder from /su/framework. I've also replaced TouchPal with HTC Sense Input and replaced the Facebook stub with an older version of Facebook that supports Contacts Sync.

As far as OTAs, because my system is untouched, I can take an OTA as normal. TWRP *should* be able to flash everything in the OTA zip besides the firmware, which I would modify to remove stock recovery anyway.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] pablo11:
Yeah - I'm almost certain it's not a recovery problem. I'm gonna post it over in Lee's thread and see if anyone can replicate it.

I'm leaning towards a root issue at the moment because if I set a pin and just do a normal reboot I get the "please de-crypt this phone" message before it gets to the OS.

So I don't even get into Android to be able to enter my pin normally - I have to enter it before the phone can boot properly. And then signal is broken.

If I remove the pin it reboots just fine - straight into the Android OS and the signal is fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
[MENTION=1162986]Captain_Throwback[/MENTION]

http://xdaforums.com/showpost.php?p=63744131&postcount=1

a mess that i ran into today and i was almost about to do a clean install but then this thread helped me out...

above step is a life saver.

could you please include this in op for other poor souls like me who would run into this issue or a fix for us in future...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I guess this is a TWRP issue, but I don't really think so. I think this is a security feature, tbh. But I can add some content regarding it to the FAQ, I guess, since it's already come up several times :rolleyes:.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
yes, please do so...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azndan2:
I have the USA unlocked variant, but I'm planning to flash Leedroid or ViperOne and run the phone on verizon. Is it ok to use this recovery (as opposed to the one in the verizon thread for pmewl)?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You mean that Verizon thread that's just a redirect that sent you to this thread?

I'm pretty sure you won't find a different Verizon TWRP anywhere....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
FAQ #10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cimbom:
I m installed twrp and supersu but sdcart zero folder in twrp why? How can I do fixed
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Log?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jakdillard:
Yeah about that ... I have been trying to build and flash a simple custom and it won't boot, not only that but my back up made in TWRP won't boot either. I get to the white HTC splash the the screen brightens up and it never boot into the system.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] edwin810:
Everytime I restart my phone I keep getting a prompt to decrypt my phone with pin and I done it but keeps coming up over and over
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Stephen:
It would be great if a solution could be found, so twrp backups could be made without removing fingerprints. I keep on forgetting to do it!!!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You don't have to remove fingerprints. Just the Pattern/PIN/Password.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Make sure you use set_metadata and not sparse_dat when building your ROM.

As far as the backup, not sure about that. This is the first I've heard of a restored backup not booting.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Wipe -> Format Data ->type "yes" and reboot so your device can re-encrypt.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jakdillard:
I tried that and my rom won't boot it acts like the back up, now what I am able to do is restore the backup and then flash the system image thru twrp and it will boot also other roms boot I'm sorry I'm mobile and not giving the best details of what's going on, but I'd like to get this fixed with your help.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Probably better to start a thread in Q&A, since your questions are really ROM building related and not about TWRP. If mention me when you create the thread, I'll try to offer some assistance. I haven't personally tried building a ROM for the 10 with the kitchen, but as far as I can tell, it should be working fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcrompton:
Does anyone know what's causing this error anytime I try to backup the data partition to my extSD?

Latest TWRP
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Screenshots aren't really that helpful (and they also take up a lot of space).

If you read the OP, it tells you what to provide if you have an issue.

EVERYONE - Please read the OP to understand how to report a bug.

EDIT: Going forward I will be ignoring posts that report an issue without including a recovery log.

P.S. I just backed up data to my external SD card without any issues.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcrompton:
I can do just that........ But that was not what I asked

Does anyone know what the error is right off the bat? . I was not reporting a bug... Just asking a simple question
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Stephen:
Moderator Information,

Thread has been cleaned, please were possible provide as much information as possible eg logcats or logs. It will help developers when trying to diagnose the issue. Dont forget these guys do it for free, to make our phones even better.

Cheers

Stephen
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] [Cruzer]:
when you say reboot.. reboot to system or reboot back to recovery.

thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
System.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] stonew5082:
I'm trying to read this TWRP log I copied. How many reboots/cycles does it show and how can I tell them apart? I wanted to figure out why my device booted into TWRP instead of booting the rom l I told it to...

If anyone knows of a guide for reading TWRP logs let me know
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcrompton:
I continue to have trouble backing up data partition to ExSD. Everything else backs up fine, just not data

Data will backup to internalSD

Attached is a log where I first successfully backed up data to internal then failed to external

I had previously posted a screenshot (but by the response found out the problem may not be as common as I thought it might be)

The externalSD seems to work just fine for all other functions
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Get rid of /data/hrdmp.rdmp

Size problems

Edit: just to elaborate, looks like your external sdcard is probably FAT32, not exfat, so there's a individual file size limit, and hrdmp is the entire RAM size, so it's huge
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] diamond09:
Ot try to disable the security setting, worked for me.

Under settings-security-Lock screen - PIN there is a setting for "pin at startup" or something like this, just disable it.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Format your External SD card as exFAT (which should be the default anyway), and you won't have a problem. Though you should also delete the file [MENTION=2605798]nkk71[/MENTION] mentioned, as it's not needed and just adds an unnecessary 4GB to your backup.

EDIT: I'll see if I can exclude this file automatically from the backup on future TWRP versions if it exists.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] italynstylion:
Been using twrp on my M8 for a long time so I'm happy to see it come to the M10. Great work!

One question I have is when I try to run a backup it says my Data partition is very large. Something like 27GB. I started a backup before realizing what it was about to try and do and then I cancelled it. Why is twrp trying to backup all of that? There's no way in hell I have 27GB on the Data partition.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] italynstylion:
Roger that captain. Didn't realize I was back revisioned.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Indeed, it helps to read the OP :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] italynstylion:
It shan't happen again.... *bows and retreats slowly*
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
How's -5 going?

Haven't tried it myself ... Don't really have those PIN or ram dump problems, atm
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] migascalp:
I tried to flash a recovery image with TWRP 3.0.2-5

someone else has this problem?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JEANRIVERA:
Where is 3.0.2-5 coming from? Is not an official release
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] migascalp:
deleted
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I posted that as a test for someone. I didn't post about it in the thread for a reason....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] migascalp:
sorry, I haven't understood that the tab "Download" was reserved to some member
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Well obviously you can download and flash from it, but reporting bugs on a version I didn't announce in the thread and that isn't the recommended version isn't necessarily helpful.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] migascalp:
so where? Bug Reports tab?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Nowhere, that's my point. Do you have the issue with the latest official? If not, then there's nothing to report.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] remix92:
Hello together :)

i have one question

.

If i want to install twrp, i have to unlock the bootloader via developer options.

But then i also have to do it from HTCDEV.com ?

Or is it quiet enough to unlock with Dev. options ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] themultiX:
I have an issue: Evertime I reboot to recovery my Music folder in sd card get corrupted and end up to lost.dir folder.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
You got to allow the unlock in developer options to be able to later on flash the unlock_token.bin and by this unlock the bootloader.

---------- Post added at 12:46 PM ---------- Previous post was at 12:46 PM ----------

Which version of TWRP are you using atm? Don't have those issues on mine, running 3.0.2-4.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] remix92:
That mean i have also to do all the steps in HTCDEV ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
Yes it does!

The unlock bootloader check in setting > developer options is just an additional security feature.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Stephen:
Please upload a copy of your logs as shown how to in the OP of the thread. Also pleas let know what version of twrp you are on.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
TWRP won't touch any files unless you tell it to. It's more likely your ROM is doing an abnormal shutdown when booting to recovery and that's causing your corruption, not TWRP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] themultiX:
Thank you. Yes. It's seems is related to abnormal shutdown.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] justcallmeTHEKID:
any reason when i try to reflash twrp it says FAILED (remote: cannot flash this partition in s-on state)

note that ive already flashed twrp once successfully
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mick_soul:
Did you flash in download mode?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] vettejock99:
I just did my first backup with this and it got so hot I had to toss it in the fridge. hotter than I've ever felt a phone. any way to enable more aggressive thermal throttling? fwiw it was on charger to start, then off but it stayed hot so I tossed it in the fridge.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
[MENTION=2605798]nkk71[/MENTION]

If someone else knows how to do that, feel free to submit a patch to Gerrit.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] purple patch:
Never got that hot for me, and I've done 1 or 2 backups in my time. Definitely wouldn't throw it in the fridge, that's asking for trouble (condensation). If my phone was so hot to touch I would've rebooted. Sure it gets hot but so does any electronics. Sorry if I misread this.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] vettejock99:
This was different. I've owned android phones since the very first one, and this was considerably hotter than anything I've ever seen before. It was about 70% done when I noticed it so it only spent about 15 minutes in there because yeah, condensation.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ChronoReverse:
I wonder what happened then. I can say that when I do my backups it doesn't seem to get particularly warm and I'm using compression (backup up to SD card). My Nexus 6P for instance, got very warm in comparison.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] afuller42:
mine was in a freezer for a bit, about a hour at most, cause I set it on a shelf when working and forgot about it, battery had the red line through it cause it was so cold about 32 degrees and yes lots of condensation on the screen. it was still working pretty well a that temp, usually the a phoe will lag horrible when froze, knowing this from experience in Minnesota winters :p phone is avoiding the cold from now on.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nobnut:
Condensation on the outside is irrelevant... obviously.

Think about it :cyclops:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] DroidShift79:
Everytime I boot into twrp-3.0.2-4 it tells me too grant access or keep read only.

I have already taken my nandroid and flashed viperROM, also tick to not show that message again. it always come back.

Any Hint?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Stephen:
I had a similar issue as well. It wasn't keeping my setting, eg disable vibrate etc. Each time I rebooted, it was back to stock settings. What I did was take the twrp folder with my backups and backed it up on to my PC, then removed all twrp folders from my internal and SD card memory. Then I created a simple backup of the boot image, to recreate the twrp folder, then configured my settings. It seemed to resolve the issue. See if that works for you.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You can't encrypt after rooting with SuperSU. It's possible it'll work with seSuperuser, but the latter method can be used whether you're encrypted or not, so I guess I don't understand the relevance?

Also, there's no need to disable dm-verity if /system isn't being touched, as long as the verity_key isn't deleted (which SuperSU does).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] orrorin:
Got it; so there's no way to use encryption if you want to modify the system partition. Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Where did I say that?

dm-verity and encryption are two separate things.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] orrorin:
I apologize to everyone for taking this mildly off topic.

The question I'm trying to pose is whether I can mod the system partition and enable /data encryption at the same time, and if so which rooting method do I need.

I have both a Galaxy S7 and the HTC 10, and on the Galaxy S7 when you disable dm-verity to enable the modification of the system partition, encryption stops functioning, even if you try to enable it manually.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You didn't originally ask about modifying the /system partition - you asked about root, which doesn't require modifying /system.

I guess my confusion is that the device comes encrypted. So there's no need to encrypt it again. You can root with seSuperuser in TWRP regardless of whether /data can be decrypted, because all it does is patch the boot image. It doesn't remove the forceencrypt or dm-verity flag (though it can be configured to do so).

If you disable dm-verity while the device is already encrypted, what happens on your S7?

It seems that since you're the one that has the device, you'd be in the best position to tell us what works and what doesn't.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] orrorin:
Unlocked BL, installed TWRP (so good!), flashed SuperSU, and can confirm that you can't manually encrypt.

So yeah, if you want to goof around with the system partition you leave your ass flapping in the breeze.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
But I already said you can't encrypt if you use SuperSU. Just flashing SuperSU doesn't touch the system partition. But the SuperSU install process automatically removes forced encryption and dm-verity (and deletes the verity_key), which is why I suggested using seSuperuser.

I thought you were going to confirm some of the things we didn't already know, not confirm the ones we already did.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] orrorin:
Hm, not very polite. Anyway, I'm down to test whatever, but there are some points of specificity here.

First, yes, SuperSU disables forced encryption, but my question was about manual encryption triggered in the settings on most phones. So yep, that doesn't work. There's no option in the security menu.

I'll try seSuperuser as soon as I get off work.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Sorry, it's difficult to determine tone or intent over the Internet, isn't it? I was stating that interrogatively, but you took it a different way.

I always try to err on the side of people not attempting to be impolite, unless what they said is obviously insulting. I don't think what I said was, unless you disagree?

P.S. I also think you don't understand the point about SuperSU. Once it deletes the "verity_key" from the ramdisk, NO encryption will work (manual OR forced). That's why I mentioned that point before.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
I made this zip to simply remove verify from the fstab (disabling dm-verity boot prevention), and set forceencrypt to encryptable (disabling forced encryption, but still maintaining encryption support)

https://idlekernel.com/fun-stuff-trust-me/no-verity-opt-encrypt.zip *

I have no idea if it works on this device, but I'm leaving this link here in case anyone wishes to try it.

I suppose it's useful for those who have no intention to root their device but would like to disable encryption to save some small amount of battery or whatever, as well as those who just want to modify their system without rooting.

* Back up your current boot image before using this, just in case.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
Cap.

Are you thinking Sprint US will have the BL unlockable?

Is there any hope for this?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Sprint bootloaders are always unlockable via HTCDev. I'm not at all concerned about that :).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
Verizon is that different?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Yes. Verizon doesn't allow unlocking.