yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Actually, SuperSU works with encrypted data.

It'll first install everything onto cache partition if data isn't accessible in TWRP. The SuperSU modified boot image contains a script that will move them to data after booting up the first time, which in this case the system decrypted the partition.

It's all working fine on my encrypted 10.

BTW, is it possible to store TWRP configs on the external sdcard? I would like to keep my data encrypted using stock rom, and I would like to use TWRP by only using external sdcard or adb sideload. Everytime I boot up to TWRP, the configs aren't saved because it couldn't access data.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
We're talking about manual encryption. I had said before that if the device is already encrypted, it doesn't matter. That SuperSU install method didn't used to work well, but I think it works better now as newer versions have been released.

Currently TWRP won't read default settings from anywhere other than internal storage. I do agree that it's a good idea, if storage is encrypted and the device has external storage. If you join the IRC channel and suggest it to [MENTION=912474]Dees_Troy[/MENTION] & [MENTION=4878287]_that[/MENTION] or if you can code it you can submit a patch to Gerrit. I'll take a look at it tomorrow.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] janjan:
In successfully build deodexed version and modified stock boot.img to disable force-encryption and disable dm-verity. If anyone wants two try it, please let me know. It shouldnt work. Thanks in advance.Thanks to topjohnwu for uploaded stock image TWRP back up.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
After reviewing the TWRP code, it appears that this may indeed be possible by adding a flag to fstab. Try the 3.0.2-2 version I just posted on the Downloads tab, and let me know if it saves your settings. If you want to use a theme, you'd have to also put that into a folder called "theme" under the TWRP folder on your SD card.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] joey91133:
Did I unlock BootLoader before flash this recovery?

Because unlock BL will lost user data.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Onepagebook:
**

First of all,

Thanks very much for the great work for sure, Cap!!

Here I just figured it out the "reboot ----->reboot to recovery tab would NOT back to recovery

it will reboot to system :)

3020/3021/3022 all versions got same situation.

No hurts :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Aldo101t:
did a little test, made a backup to sd card, phone gets hot, made a backup to internal card,phone doesn't even get warm, must be something with the read write speeds of sd card, my opinion.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Took me over 800seconds to make a backup of everything onto MicroSD Card...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] HF299:
Over the mountains up and down. This will take a time... [emoji6]

Maybe you should try another faster SD card?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
What's "everything"?

You only need to backup either system or system image (not both), depending on whether your system is completely stock and untouched (system image) or not (system).

Cache you never need to backup, unless you're storing something there you really want to keep (but you shouldn't be).

And Recovery you shouldn't need to backup because if you're using TWRP, you already have an image file for it, so backing it up is redundant and unnecessary.

So any full backup should only contain Boot, Data & System/System Image.

I've done many backups of those items and it's never taken 800 seconds. Unless you're on an old TWRP that's trying to backup the entire encrypted data partition, I can't think of any reason a backup should take that long unless your card is really slow or damaged.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
A: my Card is really slow.

B: my Card is really Full 8gb free of 128gb

C: I've backed up System and System image. Better safe than sorry xD

D: I've activated compression. Works wonders. Except System img.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] vettejock99:
Yeah, mine go to SD. It's a 128gb Sandisk Ultra, and it can take north of 10 minutes with all my apps.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jayplusone:
For those having those heat issues, I save now to internal storage. No overheating issues... I'll just go the OTG route in the future.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ahrion:
I keep getting the "failed to mount /carrier (invalid argument) error?

What's going on?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Is it causing an issue?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
sandisk has bad write speeds and i had given up on sandisk ages back...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ahac85:
I have a sankdisk 128gb extreme microsd and its fantastic, my backups take approx 200 seconds and restores in approx 180 seconds 5gb of data. Phone never heats up in recovery. At the end of backup it shows write speeds of 54 mbps
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Used compression and internal memory for System image Backup.

* MD5 Created.
Average backup rate for imaged drives: -4 MB/sec
[3824 MB TOTAL BACKED UP]
Updating partition details...
I:Data backup size is 5138MB, free: 10709MB.
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Unmounting main partitions...
[BACKUP COMPLETED IN 112 SECONDS]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ahac85:
Just a normal backup, using my sandisk extreme microsd :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cajunflavoredbob:
I haven't seen this mentioned in the thread since decryption support was added. I had my device encrypted. I rebooted into TWRP to install a new ROM. I did a factory reset, then flashed the new ROM. I rebooted from TWRP. It brings up the decryption screen upon rebooting, but with no keyboard. The keyboard not popping up may be ROM related, but the decryption should not be showing up if I just wiped data, right? Is TWRP not wiping encrypted disks?

I am going to try restoring from the RUU, as I can still access the bootloader. If you need further testing on this, I will be available.

EDIT: Flashed stock RUU, booted with no decryption prompt, rebooted to download mode, reflashed recovery, rebooted to recovery, then flashed ROM. Success. My weekend is looking to be pretty slow if any additional troubleshooting needs to be done on this.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Testing on what? A factory reset in TWRP doesn't remove encryption. Only a "Format Data" does that. The RUU also takes care of that. It seems that everything is working as intended in TWRP, as far as I can tell?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cajunflavoredbob:
This is my first HTC device since the Leo, so I may be out of it a bit. However, coming from the G4, wiping data removed encryption just fine when I was swapping ROMs every few weeks. I never had to manually format on that device with TWRP. Perhaps it was just setup to format instead of remove data. Sorry for the confusion. I'll keep this in mind in the future. Thanks for the quick answer.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
[MENTION=1162986]Captain_Throwback[/MENTION]

Do I get that right that for Root We need to install superSu.zip in recovery. No way around?

And for installing recovery without Root We need fastboot.

So there is no way to install a recovery without a computer?

Is it possible, on S-Off of course, to flash the supersu.zip via Stock Recovery's "Apply Update from SD Card" function? Or does that only work for OTA zip files in a certain structure? (S-Off should allow modified files.)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
There are ways around everything ;). But the easiest way to root is via TWRP. You could manually patch a boot image, but that'll still require a computer.

If you rename the TWRP image file to recovery.img and zip it up with an appropriate android-info.txt file, you can flash it in Download mode as a 2PS6IMG.zip.

And no, you can't flash a zip other than an OTA zip via stock recovery. You have to use TWRP for that.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
[MENTION=1162986]Captain_Throwback[/MENTION] always wanted to ask you... but keeps forgetting... why aren't these twrp builds showing in twrp manager app?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You'd have to ask the devs of that app.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
thought that was by twrp devs only... my bad....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
What? Download mode and the 2PS6IMG.zip don't have a verification? Gotta try that....

Okay, but because the original OTA.zip has a firmware.zip inside with a fota_boot that updates it should be possible to modify (and lose signature, so s-off only) the whole file to skip firmware and only flash recovery.img in firmware.zip

I'm a little bit pissed that I have to ask around for a laptop and download Fastboot tools every time an OTA arrives ^^

Life is hard without a computer.

P.S

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
If /system is untouched and ro.boot.veritymode is still "enforcing", you can flash the downloaded OTA zip with TWRP (TWRP will skip the firmware portion of the install). If you extract the firmware zip from the OTA zip prior to flashing it, that can be flashed as a 2PS6IMG.zip. Then you'd just have to reflash TWRP as a 2PS6IMG.zip (after updating the android-info.txt from the latest OTA) in order to get back where you started. If S-OFF, you could just remove the stock recovery from the firmware zip and flash it as a 2PS6IMG.zip in order to leave TWRP untouched. That's how I usually update.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] vegetaleb:
Hello bro, I need to restore an untouched system to update the FW or like some people are saying a simple signed FW can be flashed in RUUmode?

And if yes flashing a signed FW will wipe my internal SD?

Sorry for being noob :o
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] seniorstew:
I love Mr. Sparkle! ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
These aren't TWRP-related questions. Please use the Q&A forum or post in a relevant thread.

In fact, I'm pretty sure I recently answered your first question in another thread....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
That really works... even on S-On

Isn't that the easiest way to install a recovery?

Just put the 2PS6IMG.zip onto ext_sd Card and reboot Into Download Mode?

(Didn't modify the android-info.txt from OTA Version but works anyway.)

https://drive.google.com/file/d/0BwqG3liwGXQHRGIwcVlzUXVjVkE/view?usp=drivesdk

That should even work on a locked Bootloader or not? Is Download Mode limited on locked Bootloader?

Didn't see any verification for 2ps6img in Download Mode. With UL-BL and S-On.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Tsukiyohikage:
I keep getting error 255 when I try to make a backup on my htc 10 . my twrp version is 3.0.2-4.

I am trying to backup my sys, data, boot.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Locked S-OFF should work fine, as would Unlocked S-ON.

I don't think it's the easiest way, personally, but I have a PC. But it works in a pinch if there's no computer around and I don't have TWRP installed already (for some unknown reason).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] luka2000:
Where can I find a link to the TWRP 3.0.2-5?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
According to the FAQ, the best TWRP to use right now is the official 3.0.2-4. Any other version is irrelevant.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] vettejock99:
Just wanted to provide an update and seek advice. I posted previously about how blazing hour my phone got doing even the initial compressed backup to my 128gb Ultra. It was suggested to try internal and it was much cooler though still warm for sure. I've added my 100 or so apps and I bought a 64gb Extreme card and I'm still seeing this problem backing up to SD. And now even going internal is way warm. I've owned probably two dozen Android devices over the years and I've never seen it this warm, even in my metal body M7. I love everything about this phone except doing these backups because I'm afraid this heat will greatly accelerate device failures. Any good suggestions would be appreciated.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] vettejock99:
IIRC it was showing about 45mbps write speeds, but this takes around 5 minutes to complete and produces a 8.5gb compressed backup. It doesn't really get warm until I start backing up. I've been taking the case off every time, which is a pain, and I'm always in an open AC room about 72 degrees F. Does the device show temps while backing up?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] TomF1979:
Can I flash in Twrp the Untouched System Image 1.30.401.1_twrp.zip from the Stock Thread here on xda as zip install or as restore?

Because when I go to restore there nothing in the list to choose?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] vettejock99:
I can't find your post to respond directly. Thanks for the info. One thing I'll note is that my temp is always basically 39 when idle and cool so if you're starting at 31 maybe I've got an issue to start. I'm on latest US unlocked firmware on an unlocked Tmo device FWIW.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] SacredDeviL666:
its okay i had removed it....

mine is 31degree Celsius in Fahrenheit- 87.80

what is your room temperature and what kernel...

again this would go off topic if we discuss this here further... i would suggest you post your heating concern of the relevant kernel probably the dev could see what exactly it is...but if your phone is static at 39degree Celsius? then its definitely not good but if its Fahrenheit its okay
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] vettejock99:
Okay thanks, after this post I won't take it OT any further. I didn't reallize it was as I thought since it was recovery it wasn't really a kernel thing as much as a firmware or TWRP thing. I did see it down to 35 Celsius today but it's usually 39 Celsius. I'll just keep an eye on it and hope maybe a firmware flash will fix it. Until then I'm going to try an OTG cable backup and maybe have to pop it in the fridge during backup/restores :(
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] pro nexus:
6. How do I backup stock recovery prior to flashing TWRP?

You can't. The "fastboot boot" command appears to be disabled on the 10's ABOOT, so TWRP must be fastboot flashed over stock recovery. You can however, extract the stock recovery.img from the OTA firmware.zip when it's received and use that to install the OTA.

If I flash the stock recovery extracted from the OTA firmware.zip, won't that stock recovery belong to the new firmware while my phone is still on the old firmware. How, will the updated stock recovery process the OTA?(Would the stock recovery accept the OTA?)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mossief1965:
I flashed TWRP using fastboot. When I go to bootloader and select recovery, it boots to a red triangle. If I then press power + volume up I get what appears to be stock recovery. What am I doing wrong?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Magnum_Enforcer:
What command did you use? Did you notice any errors in the output once you issued the command via fastboot?

Sent from my HTC 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mossief1965:
I used fastboot flash recovery didn't see any errors at the time but just looked at command prompt window and saw it failed because of low battery. Thanks..
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
It'll work fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Took another OTA with TWRP today.

I think it's definitely my preferred method now. No more worries about finding the right stock recovery to take an update! :D

I'm guessing most people will find the process too cumbersome, though....:rolleyes:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
I have a question.

I have a system-image backup of my untouched system (twrp was in read-only mode).

Can I restore this backup and flash systemless root + systemless xposed to get OTA updates (of course with stock recovery)?

I'm already using normal root and xposed variants, that's why I'm asking.

Or I have to flash a RUU and start fresh?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] TomF1979:
Is this normal that I only check the Read only mode on Twrp at the first install?

Because I was on Twrp then Stock Recovery then took OTA then flash again Twrp but no choice for Read only again?

Best Regards

Tom
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
so what do you think Cap? :D

yes, yes, after twrpDU (that's gonna go through several PS i think, till everybody is happy), if i get a chance (hopefully), i'll upload PS1 tomorrow night
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I already expressed my feelings about it.

But yes, that other thing is more important. Then you can tackle this beast (actually might be more of a kitten....) :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
No GUI then ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
Well, a quote of my post.

Looks like I'll get an nice answer soon :D

I'm curious.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
But yeah, we've been bouncing some ideas around, maybe yes, maybe no... twrpDU comes first ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
I'm curious :)

Can you help me anyway with my question?

Is it possible to restore system-image of a stock system, flash systemless root/xposed and install OTA?

Or I have to start with a clean system => flashing a RUU an start from the beginning?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Captain has done it several times, last time http://xdaforums.com/htc-10/how-to/stock-stock-collection-recovery-ruu-ota-t3359297/post67306178

yes,

(1) you need a fully untouched stock image (yeah, a few other things, but hopefully you didnt trip those)

(2) stock recovery is not "really" "mandatory" <- note the qoutes

(3) no point in having systemless anything

while

taking an OTA

(4) since you'll have to redo it/them after the OTA most likely
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
It thought with the systemless variant I can use the OTA updater inside the ROM (Settings > About > Software Updates) and still have root and Xposed after the update.

I want to prepare for the upcoming 1.30 > 1.80 update.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
No, systemless does not mean you retain root and Xposed after an OTA. By the very nature of their setup, that can't be the case, since the OTA replaces boot.img and boot.img is what's modified for the systemless mods. After taking an OTA you'll still need to flash root and Xposed to return to your previous condition.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
So what are the benefits of systemless root/xposed?

I thought this is the only argument for systemless variants.

Edit: Sorry for off-topic. I'll stop now ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
This isn't a relevant thread, lol. Your question has nothing to do with TWRP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Patrick V.:
Since the new firmware (1.80), it's hard to work in TWRP. Halfway the screen my touch isn't recognized as it should be. I needed to move my ROM into the Whatsapp folder because i couldn't select the rom.

In the aroma menu i couldn't select everything i wanted, because TWRP did a scroll instead of a 'click'.

Anybody else has this issue?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] HF299:
Yes, same here. Seems this belongs to new sensor drivers or touch drivers...?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Weird, I'm not having this issue. Must be specific to certain devices. And I was in TWRP for most of the day yesterday.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] HF299:
And now the HIT... Starting Installation of Lee´s actual release and TWRP is totally working as designed. No glitches no Troubles. Everything´s fine.

You see me :confused:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
Can someone explain me what exactly is included in a /data backup?

Which files will be restored?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
"Data" is everything under /data, excluding /data/media (which is the emulated /sdcard folder). So that means all of your apps & application data.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
Deleted.

Found a solution in FAQ.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] guyverzero:
Would it be okay if, after taking an RUU from 53 to 80, I did the usual steps (unlock, recovery) and then restored my twrp backup of venom that was using the 53 firmware? Or would restoring that cause problems to where I should just start with a fresh install
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Do not have any of this Problems either on my m10h 709.1 Taiwanese phone.

Might be related to sharp panel?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] TomF1979:
[MENTION=1162986]Captain_Throwback[/MENTION]

Is this normal that I only check the Read only mode on Twrp at the first install?

Because I was on Twrp then Stock Recovery then took OTA then flash again Twrp but no choice for Read only again?

Best Regards

Tom
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Why would you have to unlock again? The phone doesn't get locked from running an RUU :confused:. And your question isn't about TWRP, so I'm not sure why you're asking it here.

The primary rule of ROM flashing is that you can try a dirty flash (which is essentially the same as restoring data), and if you have issues, you clean flash.

If you checked to box to not see the screen again, you won't (whether you chose to keep it read only or not).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] TomF1979:
Where can I check if it is now Read only or not?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Mount page.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] TomF1979:
Sorry for my stupid question. How does it look like when it's Read only?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
A check mark in the "Mount system read-only" box.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] remix92:
i have a big problem.

I unlocked my HTC 10 and flashed latest twrp.

1. I can't select my internal storage ....

only my SD Card is avaible .

2. And if every time reboot to recover it tells me that i have to enter a password ....

can cancel this notification,. Why i get this notifcation ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Wipe -> Format Data -> type "yes" -> Reboot System -> Profit!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] remix92:
did it!

it shows me still :

"Mount Decrypt Data. Enter Password"

Which password i need ?

and can't still select internal storage...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Do you have a password set for when you boot into Android? If so, that's the password you should be using.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] remix92:
only my SIM Pin !