yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Yes, when Nougat came out, the official TWRP would no longer boot or decrypt. So I built locally with the stock Nougat kernel and [MENTION=2605798]nkk71[/MENTION] came up with a workaround/fix for decryption, and those were the "unofficial" versions. They weren't official because the patch needed to support decryption had to be merged into the official source before it can be built by the official TWRP server. And it needed to be tested to ensure that it didn't break compatibility with the other devices that TWRP supports. That testing was completed, the patch merged, and now the official TWRP supports Nougat decryption. Thus, the "unofficial" versions are no longer needed.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] roirraW "edor" ehT:
Donated! Confirmation # 7JF10181ND965121T It's not much but just a token of my appreciation for all the effort!

[MENTION=2605798]nkk71[/MENTION] you don't take donations? I was going to donate to you too but I don't see a way. Feel free to PM me if there's a way to donate to you, or I can give your part to [MENTION=1162986]Captain_Throwback[/MENTION] too.

I had donated to Dees Troy for the Pixel TWRP, and possibly before that, so just making my rounds catching up somewhat on my donations. :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
:silly:

But this one here looks like a nice feature:

btw 3.1.0 seems to load faster than 3.0.3-11 placebo?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Guess we'll have to take a poll. It probably does load faster, since I'm not using static busybox anymore and it's built from the 7.1 tree so it's optimized for Nougat. Or it could just be in your head :rolleyes:.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Zoandroid:
THANK YOU for all the hard work, TWRP support, fast responses, and putting up with those of us who don't know very much. :) I sent you a PayPal Donation. 5C028269YJ949351S

I think 3.1.0.0 may indeed load a bit faster. Saw something odd though. In the upper RH corner TWRP 3.1.0.0 shows the battery as "1%+". Once I booted back to system, Viper showed the battery at 48%. Not sure how to interpret that.

---------- Post added at 11:43 PM ---------- Previous post was at 11:41 PM ----------

I see you don't take donations, but I want to THANK YOU for all your hard work and support here!! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Thanks, it's very much appreciated.

I bet if you boot back into recovery again the battery will show up fine. It usually refreshes once decryption finishes. Mine usually says 33% until it gets to the main menu. If it persists, let me know.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Zoandroid:
OK, this is weird. I have the phone plugged into a Quick Charger, so it is now up to 70%, as reported in Viper. I rebooted TWRP as you suggested, and it showed 48%+ , the same value the battery charge was at last time I rebooted OUT OF TWRP and back to system. OOOH. We may have a problem. Back in Viper, it is now showing 48% again. And there is MORE.........

I didn't mention it before, because I had thought maybe I just misread things, but when I first flashed TWRP 3.1.0.0 - right before I ADB flashed, I could have sworn the battery, from Viper, showed 100%. I had it on the charger for some time before I downloaded the official TWRP file and got ready to flash it. IF I had indeed read that correctly, then there is some kind of bug relating to the new TWRP and showing crazy wrong percentage of battery charge, not only in TWRP, but ALSO back in the Viper 10.5.5.1 ROM.

Now shows only 50% in Viper. Back in TWRP it shows 48%+, then booting back into Viper it now shows 48% again. It seems TWRP 3.1.0.0 is somehow resetting the battery charge indication to 48% every time. I am gonna flash back to TWRP 3.0.3-11 just to see what happens, battery-wise.

Back in 3.0.3-11 it is also showing 48%+. I don't know what to make of all this. Perhaps some others could replicate these conditions and see if they find similar results? I am going to stay on 3.0.3-11 UNOFFICIAL, and try flashing the new official TWRP version sometime tomorrow when I am certain the battery is 100% charged in Viper, to see what it shows in TWRP 3.1.0.0 after flashing that.

---------- Post added at 01:12 AM ---------- Previous post was at 12:58 AM ----------

If it is useful, I found a command "adb shell dumpsys battery" that shows me from ADB a charge level of 52%, which is also what Viper is currently showing while the phone is plugged into my PC's USB3 port.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 2WildFirE:
So no battery issue here I try several times reboot to recovery and to system, no change on battery or stick. I'm on 3.1.0.0 have a Cid htc__034 and leedroid R75 Rom

my data isn't encrypted

Powered by the 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
confirmation: 3.1.0.0 boots up faster, maybe three to four seconds [emoji106]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Sneakyghost:
No battery meter issues here. Thanks guys for providing/keeping us a working recovery. Much appreciated.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
New official is working great guys. I'm experiencing a faster boot up as well. No battery meter issue on my end.

TWRP 3.1.0-0, Viper10 5.5.1.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
All TWRP does is read that battery level and display it. It can't break what shows in the ROM. It doesn't set anything related to battery percentage. So this isn't a TWRP issue.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] donibrasco:
No battery issue here too, working great the latest official twrp.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rajuabju:
3.1.0.0 working fine here, did both backup and restore test.

No battery issue for me.

Definitely loads a bit faster.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Zoandroid:
This morning, fresh off an overnight charge, at 100%, I booted twrp 3.0.3-11, and it showed 1% battery. Booted back into Viper and it showed 96%. But then the battery percentage started dropping crazy fast. It is down to 66% in less than 45 minutes. I had not installed anything else last night before all this started, so I can't explain it. What is the best way to diagnose the cause of such a rapid battery drain?

I am using twrp 3.0.3-11 to restore a nandroid I made with 3.0.3-10 on March 9th, before I did any twrp upgrades, back when the battery was showing me what I consider a normal use cycle, where I go 8 or more hours before the battery shows less than 50%. I make a nandroid backup every week, so I have a ton of them I can step back through to try to find a point where things work normally. I also try to remember to enter in the log I keep for the phone when I install an app, so if I do find a good point in the past to work from I might be able to look up what got installed after that.

I remember reading several times in the past about a battery's reporting ability getting messed up, and people had to fully charge, then fully discharge their phone until it died on its own, then fully charge it again to "reset" the reporting ability correctly, Could I need to do that in this case?

Edit . Dropped all the way to 1pct in the time it took to recover the nandroid backup. But now it is holding at 1pct for several minutes. I think it is falsely reporting the true charge state. Can someone suggest the best way to fix that?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Mr Hofs:
Can i suggest to flash and setup a rom with a full wipe instead of restoring backups. And even so, how often do you boot into twrp ? I personally find it hard to believe you have to boot it like every day ? And if you boot it everyday to flash roms/mods/themes the phone has no chance to settle properly and erratic battery drops could occur by that.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
TWRP adb backup directly to PC

[MENTION=1162986]Captain_Throwback[/MENTION] [MENTION=2605798]nkk71[/MENTION] allow me one quick question. Is TWRP adb backup directly to PC included into the 3.1.0-0 build for pme as well, and if so could you be so kind to provide me a link to read up on how this works?!

Found out of how to start a backup from cmd on PC, but this only starts backing up to extSD, as this is my standard directory set up in TWRP a the moment.

Thanks a million for your awesome support guys. You're just great.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Zoandroid:
I don't boot twrp frequently, except for troubleshooting this issue that concurred with my installing twrp 3.1.0.0 official last night. Otherwise, I use TWRP only on a charger, once a week for nandroid backups.

---------- Post added at 11:15 AM ---------- Previous post was at 11:09 AM ----------

With increased display brightness to 100, timeout increased from usual 10 minutes to 1 hour, battery showing same 1pct for 20 minutes now. If this isn't twrp related I don't wanna hog the thread. So if anyone has any ideas please post or pm me. I'm trying to deplete the battery for an aforementioned "reset" of battery stats.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
It's written in the Changelog.

https://github.com/omnirom/android_bootable_recovery/commit/ce8f83c48d200106ff61ad530c863b15c16949d9
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Black-FR:
Reset your battery stats manually.

It's pretty easy.

Here I explained, how to reset the battery stats:

https://xdaforums.com/htc-10/help/whats-current-battery-capacity-t3538773/post70590455

Edit:

BTW I don't have any issues, with the latest official twrp.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] buddahj:
No issues here with the newest official version. :good::good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Zoandroid:
THANK YOU!! Heading to your link right now. :)

Edit - I don't think it is working right. Gonna post over on that thread, if you could reply there, please.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] McIringer:
I have been searching through thread but did not find unequivocal anwer. So I unlocked my bootloader while on 7.0 official ROM, then installed TWRP recovery, installed ICE ROM. Now when phone is booting it asks for decryption. Can I bypass this by formatting data partition and will not have that problem any more or did I understand that wrong.

Besides that, I cannot backup data partition in TWRP (size of data partition in 0 Mb), I am assuming this also stems from same problem of encryption of data?

So formatting data partition or am I missing something else. Thank you for help!

Regards!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
What version of TWRP are you on? Is it the recommended version? If not, try that.

P.S. You didn't post a recovery log...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] McIringer:
3.0.3-10 unofficial is version. Are official versions ok on 7.0?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
The current/latest official version is, yes. The OP/FAQ always tells you what the best version is to use...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 2WildFirE:
Yep 3.1.0.0 does work on 7

☺️?

Powered by the 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
3.1.0-0, even :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Thank you both, unfortunately PayPal doesn't work in where I live, and figured bitcoin is too much of a hassle for people than what it's worth, so I removed the donation thing.

Feel free to send it to Captain_Throwback, your favourite charity or whatever you see most suitable, in any case, it's very much appreciated :)

Congrats on the official release, nice :D

... until the next unofficial one :p
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cajunflavoredbob:
Format /data, then flash your ROM and let it boot to set up the /data partition again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] McIringer:
Did what you said, now there is no encryption/decription on startup and in TWRP I can backup data too. Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] cajunflavoredbob:
Anytime you migrate between a Sense ROM and an AOSP ROM, you must format /data due to the encryption differences. This applies even for restoring backups over the top of another ROM. If you're updating the same ROM to a newer version, no wipe is needed unless you have issues. If you're flashing a new ROM of the same type, such as going from stock to Viper or going from Lineage to AICP, then you only need to factory reset. The format /data requirement is specifically for switching between ROM types.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JhoonB51:
[MENTION=5832952]5m4r7ph0n36uru[/MENTION], I was finally able to get it to backup to PC, have not tried a restore yet.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] pixelvisions:
All good with 3.1.0 using LeeDroid R75. Thanks again. Small token: 9FK98433XD846280S
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
Thanks for this info. Guess you followed the link Haldi4803 provided!? Will test tomorrow, as I didn't have any time to do so today.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JhoonB51:
Actually I did a little research and found an old thread by [MENTION=2791414]copkay[/MENTION] and it finally got it working for me.

https://xdaforums.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
Thanks again. Will have a read tomorrow. The linked thread is well known to me. It's the general adb backup feature. So now I'll have a look on what to do and how to do.

Have a nice evening!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
New official version, 3.1.0-1 is up. This fixes the broken adb backup functionality. There was a patch missing from the 7.1 build tree that was causing the backup binary to link to the wrong path. I submitted the fix for it yesterday, and had a new build run.

FYI - The Change log for all versions (including device-specific updates) will be in the OP. If you have any questions about what's included in a release, please look there FIRST.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] comstockload:
Very cool. It's great to be back on official ground. Much appreciated.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] remix92:
I have One question.

Is it now possible with the latest version, to change the Roms from sense based Rom to LOS based Roms without doing a factory reset?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Zoandroid:
Well, I still don't know what caused my battery stats to go so wacky after I tried flashing twrp-3.1.0-0-pme a couple days ago, but now that I have everything fixed and running Viper 10.5.6.0 on a clean full-wipe installation, and have my apps all restored, I flashed the most recent twrp-3.1.0-1-pme. All seems well. It reports the battery charge correctly, jiving with the % seen in Viper. Must have just been some fluke that coincided with my TWRP flash that night.

Thanks, [MENTION=1162986]Captain_Throwback[/MENTION] for all your efforts here! I see you have done a lot to update the OP with each new release, to keep us all well-informed! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Jeddix:
Ok, it seems that I'm now completely ****ed as I cannot restore any of my backups as they always fail with a tar error 255. The last time I got one of these I temporarely went back to 3.0.3-3 but even that is not working anymore.

If anyone has any idea how I could get my backed up data back without completely reseting everything and then starting fresh (at least I have current backups in Titanium) I would be more than happy :).

You can find the log in the attachment.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Have you booted the phone since Formatting Data? Try doing that and then rebooting to recovery to restore.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Jeddix:
Thanks, I feel really stupid now as I indeed went from LeeDroid to my Lineage Backup (and trying to get back) and formatted data in the process without starting afterwards. I really should have known that. Thanks :).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
I guess I have an issue with adb backup....Either just nothing happens or I get an error message

E:Unable to find file system (first period).
E:Unable to find file system (first period).
E:Unknown restore method for '/system'
E:ADB Restore failed.

The backup ran well and the backup file is there. So what am I doing wrong?:confused:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Where are the logs?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Ms_Trishlee:
hi, i'm new to htc 10 but had htc m8 before. Can I clarify, if i just flash twrp into htc 10 but NO plans in rooting it, will I have a risk of not being able to take OTA update or losing radio? My firmware is 2.41.401.3, is it safe to just flash the latest twrp as stated in first page?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
If you're not going to root, then why are you flashing TWRP?

To answer your question, if you leave system read-only like it says in the FAQ, then yes, you'll be able to take an OTA just fine, as long as you flash the appropriate stock recovery.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Ms_Trishlee:
Because i just want to create a system/system image back up via twrp.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Which logfile do you need?

Don't know if this helps... https://gist.githubusercontent.com/anonymous/03554f8935e2a215cddb904a1f96476e/raw/d5e6542a523c7f6b3f55be7a7d240277870a514a/recovery.log
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] gsw5700:
Tried flashing latest 3.1.0 using flashify and official twrp app and end up with no recovery... I have to reboot and flash old 3033 version.. Whats happening dudes
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Try a different install method. For example, the one(s) in the OP ;). Also confirm you got a good download.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Is there an adb.log file in /tmp after the failed restore? That would be helpful.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] gsw5700:
OK, tried downloading again, this time from backup link)

Flashed using OP method (install image from recovery for recovery partition)

No errors, but again no recovery...

I have attached recovery.log

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Did you confirm the MD5 of the download? I see nothing wrong in that log, so I have no idea why you're having an issue. You can also try flashing it via fastboot, but I don't see why there would be a problem, unless your download is bad.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] gsw5700:
Strange... downloaded it to PC, compared MD5 - OK

File size was different to size downloaded to phone.

Copied file to phone, flashed and now fine

Many Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Unfortunately not, there is only a recovery.log in /tmp. I guess due to I already clean flashed the rom:confused:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nathlynn22:
Hello I have a problem aswell.

flashed 2.41.401.4 RUU and back to stock on locked/soff.

have now tried flashing newest twrp but doesn't flash it fails. cant seem to work out the problem
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nathlynn22:
sorted now re downloaded and worked. thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] roirraW "edor" ehT:
No. Only once you flash the appropriate stock recovery.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You haven't read the FAQ...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Yes, just follow the instructions linked in the FAQ.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You have to update it manually, as described in the link. Read the entire link.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You need to extract the firmware zip from the OTA zip. You're completely missing that part. TWRP will not install the firmware. You can't edit the firmware zip, but you can still extract it untouched and rename it for Download mode flashing. You have to do that part. And you don't need to boot into TWRP and flash the OTA zip manually - just let the OTA updater do that after you initially delay the install to extract the firmware.

I don't think you read the entire post - at the bottom I explain the only difference in the process for S-ON users. The rest you still have to do, and you left that part out.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You have to rename the firmware zip and put it on the root of your SD card...you keep leaving out steps. And again, you don't have to manually boot into TWRP. Just choose the install option from the OTA update notification, and it should boot to TWRP and install automatically. Then you just have to boot to Download mode from TWRP to complete the installation by flashing the firmware.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sorg:
What is the status of full backup in the current release?

I miss /data/media backup very much. And when i need full backup i have to use command line tar through adb shell to backup which is quite inconvenient.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I don't understand the question. What data/media backup are you referring to? TWRP has never backed up data/media...:confused:.

EDIT: I guess the status is, it's waiting for you to code it and submit it to Gerrit ;).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sorg:
Unable to backup "data/media" is what i'm talking about.

Last time i've modified TWRP's code (some 2.x version) i've saw explicit check for /data/media path while backup /data and skip it. So, i guess it's just the matter of wish of TWRP developers to enable/disable of "/data/media" backup.

I know, that /data/media size can be very big, but when you need to do something with device which wipes the whole storage, then you really need full backup including /data/media.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Well TWRP has never backed it up, and there's no code to do it. But feel free to submit a code update to Gerrit for the option so it can be reviewed. I don't know where the "unable" message you're referring to is coming from. Can you clarify?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sorg:
/data/media is a part of /data partition. So, basically when you choose to backup data partition in TWRP it should backup the whole storage, but inside one function of TWRP there is a check for path "/data/media" and skip all folders inside this path.

So, the whole task is not adding some additional code but removing existing check. I know that not everyone wants to make backup of whole storage and get 30-40GB of backup, so simple option backup whole storage or not would be sufficient. I believe developers of TWRP are professional enough to add this option by themself. It's more political issue than real implementation problem.