yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Bet you didn't expect to see me here...;)

The above issue is in the process of being fixed with a patch on Gerrit. Once that patch is merged (likely tonight, or at the latest, over the weekend/early next week), I will have an updated device version run with the updated dd binary. I have already tested the dd command with "seek" to confirm that it runs without an error. I was previously having some issues with the grep binary as well, and I submitted a patch that'll fix that too. At this point, building with toybox should be as good (or possibly better) than building with busybox, now that we're using the proper versions of the tools. [MENTION=4544860]osm0sis[/MENTION] was very helpful is providing a link to the Google documentation around which tools we should be using, so I thank him for that :).

If you're wondering why I'm here posting, I recently handed off maintainership of the U Ultra to [MENTION=6407372]tarkzim[/MENTION], and in the process, he took ownership of a couple of my posts. So I ended up being 2 down from 20K. I made one post in the A9 TWRP thread, because I finally conquered a longstanding issue with decryption on LineageOS over there, and felt it warranted a victory lap :cool:. And since this device is still my daily, and will always be my most current device, I figured I would check in here too, especially since [MENTION=950857]ziand[/MENTION] posted about that issue (which I've been working on for the U12+ too, but we ended up solving a different way) and I've been working with [MENTION=2638973]bigbiff[/MENTION] for some weeks on creating a fix for it, which is finally complete.

Hopefully official Pie for this device is just around the corner, and then maybe I'll have more work to do (though the current version of TWRP *should* decrypt Pie just fine). Guess I'll see when (if) it happens. So, this will once again be my last post, unless I somehow lose a few more, though I don't expect to.

Cap

P.S. If the latest TWRP doesn't flash your ROM, go tell your ROM maintainer to update their scripts to call the sh, dd and/or unzip binaries directly, like I've been telling most of them for the past several years. I'm pretty sure [MENTION=398245]LeeDroid[/MENTION] made those updates a while ago, and I thought the Viper Devs did too, but maybe not all of them (or maybe all of the Sense ROMs for this device are old). Don't go blaming TWRP for your issues. TWRP continues to be updated as Android gets updated. So, try and make sure you and your devs keep up ;).

P.P.S. Don't forget that you can join me in the TWRP Testing Slack (link is in OP) if you want access to new features early or if you want to help test! You can also just pop in and say hi if you miss me too much, lol.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Golv:
Updated TWRP v.3.3.1.0 - https://dl.twrp.me/ocn/
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] ziand:
Now dd commands work perfect.. checking other things...

Thank you very much to all TWRP Team and personally for help to [MENTION=1162986]Captain_Throwback[/MENTION]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

Are those dd commands you're using posted somewhere? That looks really convenient for changing main version to downgrade quickly.

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] ziand:
Hi,

Yes, Look at here : https://xdaforums.com/u11/how-to/collection-htcu-u11-ruu-firmware-t3612048/post73066566
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] doomscooter:
I am one that succeeds in downgrade following the [MENTION=950857]ziand[/MENTION] way according to Step by Step.

Downgrade from U11 sea india to U11 taiwan
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Brds7t7:
Alright guys, I'm a little stuck here. I've just updated my TWRP to latest version on the website. Have updated TWRP previously and never had any issues, but with this update I'm getting a Decrypt Data prompt at the TWRP screen and it's asking me for a password. At the time of updating, I didn't even have a password set, so I've just cancelled the prompt for now.

I've tried to look for lockscreen.db files, but all my internal storage is showing as blank (0MB) in TWRP. Should i delete these files when booted into Android?

I can boot into the phone and see my files and have backed them up, so no issues there. But what's the best course of action now? Should I format data and restore a previous backup? Or is there an easier solution to getting around the Decrypt Data issue?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Electronic Punk:
What base are you on?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Brds7t7:
Hi, It's 1.27.401.12 I'm still running a Nougat ROM

Ahhhh, I've just noticed in the OP about Nougat ROMs..... OOPS!

I'll try and restore an older TWRP and see if that solves the issue.

EDIT: Problem solved guys! I tried flashing 3.2.3, but that didn't work, so then flashed 3.2.2 and finally got into TWRP without the Decrypt Data screen and it's seeing all my files again! :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Electronic Punk:
Yeah may have to go back even more if you can
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Brds7t7:
Thanks EP! Yeah seems 3.2.2 is working again now. Completely my fault - I've been out of the flashing game for a over a year now and didn't even notice the newer versions won't decrypt Nougat ROMS! :silly:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] M7er4life:
Hey guys

I can´t wipe system with twrp-3.3.1-0-ocn.img.

With twrp-3.2.3-1_CPTB-20190220-01-ocn.img it works.

Must i format data?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Muxeu:
TWRP 3.3.1-0 doesn't take my PIN for decrypt data.

The system (Pie 3.22.709.2)takes it and works properly.

Should we wait update for Pie?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

I highly doubt that TWRP has been updated for Pie, especially since it's not even out for the region [MENTION=1162986]Captain_Throwback[/MENTION] lives in. So yes, you should wait.

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] NotExist:
Just found 3.3.1-0 cannot decrypt after latest Pie update in Taiwan (3.22.709.3), FYI.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] scottnet:
I am on stock Android Pie (3.22.709.3) too. I can't find any way makes the decryption work in TWRP recovery.

Tried twrp-3.3.1-0-ocn and twrp-3.2.3-1_CPTB-20190220-01-ocn are the same...

Any solution or workaround ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] JEANRIVERA:
There is no solution or workaround yet, and it might never be one.... same issue with U12+
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] scottnet:
TWRP 3.2.3-1 supported AOSP Pie decryption, so I am not that pessimistic...

[MENTION=1162986]Captain_Throwback[/MENTION]

Hi Captain,

Looks like you have retired already... but do you have any thought on this?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

All of the official versions since the one you mentioned also support AOSP Pie decryption. So, if that's all that was needed to support decryption on stock Pie, it would already be working. The point is, it isn't. I think [MENTION=453495]JEANRIVERA[/MENTION] has worked with [MENTION=1162986]Captain_Throwback[/MENTION] in the past, so I'm sure he's speaking on behalf of him when he says that it may never work. I'm not sure how you would ever expect to get a response from Captain_Throwback directly since he doesn't post here anymore.

TWP

P.S. [MENTION=2895321]scottnet[/MENTION] you could join the TWRP Testing Slack and ask him directly, and then let us know what he says...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] scottnet:
Oh... It's too bad hearing that... But thank you TWP for the background explanation!

Have we happened to address the issue? It is an unknown problem or it is like something need to be fixed from the stock ROM?

I am not sure how to join the TWRP Testing Slack...lol...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
HI,

To join the Slack, just click the link in the OP ;).

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] JEANRIVERA:
Just because I got permission from Captain himself, but I do believe I don't need to provide evidence of my post and beliefs, since I have been around here on xda for long time and I have collaborated or worked with known developers here some them retired from xda like Captain himself.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] elgreco29:
Hi,

today i upgraded from oreo to pie. TWRP aks me for a password and partitions are decrypted. Is there really no solution for a working twrp?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Lars6112:
Maybe in future. Maybe it will never work.For the moment it doesn't.

Lock at the post above your post and the attachment.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] minur:
hi friends, can i downrage from pie to oreo version?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

There are no "Pie" or "Oreo" versions of TWRP. I think you're in the wrong thread.

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] linuxdep:
Hi, thanks for TWRP development!

I have a issue, after OTA update to Pie i would boot TWRP to make a clean backup (fastboot boot .\twrp-3.3.1-0-ocn.img)

But i't don't work...

fastboot boot .\twrp-3.3.1-0-ocn.img
Downloading 'boot.img' OKAY [ 1.906s]
booting FAILED (status read failed (Too many links))
Finished. Total time: 358.186s

with oreo it works fine. Can you help me, why this not boot?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

This would be a bootloader issue, and not related to TWRP itself. You'll have to flash TWRP and just take the recovery image out of the OTA zip firmware.

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] linuxdep:
ok, i have always see that the TWRP and Pie not working with decryted FS (default of U11), i can't mount or so on, but way can system boot mount this FS??? In this case TWRP has no added value, no backup and so on.

So i have flashed back the original recovery and i hope someown can fix the issue.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] flamadiddle:
I'm trying to get a backup of stock recovery on Android 9 Pie. I have tried twice to:

fastboot boot twrp-3.3.1-0-ocn.img

Both times, I got the following output:

downloading 'boot.img'...
OKAY [ 1.253s]
booting...
FAILED (status read failed (Too many links))
finished. total time: 147.720s

Then, my phone is unresponsive on the bootloader screen. No buttons have any effect; not even the force reset Volume Up + Power for 15 seconds combination. I just have to wait until the battery dies.

Any idea what's going on?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

It seems the Pie update broke fastboot boot. You can just extract the stock recovery from the OTA firmware zip. There's no need to back it up in TWRP.

TWP

P.S. The "battery-pull-reset" on this device is Volume Down+Power, not Volume Up.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] flamadiddle:
Where can I find the OTA zip? I haven't seen links here yet, and I assume my device deleted it after taking the update.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

Have you checked the "Collection" thread? See if anyone has posted the OTA zip for your variant there: https://xdaforums.com/u11/how-to/collection-htcu-u11-ruu-firmware-t3612048. They wouldn't be posted in the TWRP thread.

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] flamadiddle:
I had been looking at the master Google Spreadsheet, assuming it was up-to-date. The Android 9 update for my version wasn't on there. Searching through the thread, I found the one I needed: https://xdaforums.com/showpost.php?p=80182656&postcount=2100

Thanks!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] flamadiddle:
So I finally put TWRP on my HTC U11, and I wish I'd read the last few pages of the thread better. I see that TWRP can't decrypt the data partition on stock Android 9. Bummer.

This is probably a dumb question, but if I decrypt, would that get around the issue? Has anyone tried that yet?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

If you mean do a "Format Data" in TWRP and then patch the boot image so it doesn't encrypt on boot, then yes, TWRP will work fine.

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] flamadiddle:
How would I go about patching the boot image?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

The easiest way is to reboot recovery after formatting data and flash Magisk. It will not only patch the boot image so that the device doesn't encrypt, but it'll also give you root ;).

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RandomPooka:
Is there even a stock pie release for us unlocked yet?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Aldo101t:
i think there is for us unlocked, no carrier releases that i know of though.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RandomPooka:
I just searched through the ota/ruu there's and found it m thanks for the speedy reply. I had only been looking at the spreadsheet very infrequently, and that hasn't been updated in ages.

Between that and not using my u11 as a daily driver, I wasn't looking into it very deeply until just now
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] flamadiddle:
Oh cool. And I just want to make sure I completely understand before I do something (else) dumb: formatting data will not hose my stock ROM. It will just wipe it as if I did a factory reset, correct?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

Yes, formatting data will not touch your currently installed system.

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Golv:
The kernel source code for U11 (for the Chinese version 3.38.1405.1, Android 9.0 Pie) is available at htcdev.com
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Golv:
TWRP 3.3.1-1 is available

https://github.com/CaptainThrowback/android_device_htc_ocn/releases/tag/3.3.1-1

Thanks [MENTION=1162986]Captain_Throwback[/MENTION]

It was released on time. I check it out with Android 10 ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] htc_one_mini_m4:
I'm having a little trouble installing TWRP 3.3.x on a OTA updated to Pie U11.

Bootloader unlocked via HTC unlock file.

While trying to fastboot flash it, it gives a failed, not allowed on production device error.

fastboot boot twrp.img also doesn't seem to work ( it gives no error, fastboot reads booting... but it never boots on the device ).

Any ideas ?!

---------- Post added at 08:05 PM ---------- Previous post was at 07:49 PM ----------

nevermind the question, I succesfully flashed it via download mode instead of fastboot
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Golv:
TWRP 3.4.0-0 Released

https://twrp.me/site/update/2020/06/24/twrp-3.4.0-0-released.html

Download links: https://twrp.me/htc/htcu11.html
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] kurtschmeichel:
Thank you. :)

I see a lot of changes dealing with encryption. Does this mean TWRP can mount encrypted system partition now?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Golv:
I suppose this release will not decrypt stock Pie.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

System partition isn't encrypted. But if you're asking if the new TWRP can decrypt stock Pie data, the answer is still no.

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] kurtschmeichel:
Thank you both. Yes, I meant Data partition.

I can't use the data partition for flashing files with TWRP. So I use the SD Card instead.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Aldo101t:
if you flash magisk right after flashing twrp(before you boot to system) you'll be able to use your internal.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hammered58:
So this will work on pie roms??
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

TWRP has always worked on Pie ROMs. If you're referring to decryption on stock, though, that's already been answered (and it's listed in the "Known Issues" section of the OP).

TWP
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] hammered58:
Must have missed that one!!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] kurtschmeichel:
Thanks, I will have to try this… but the phone works fine right now, no need to mess it up ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] shadowmoses7:
Wouldn't I need to boot to system in order to install Magisk and download the necessary file? Or is there another route I could go where that wouldn't be necessary?

Maybe I could save them to a microSD card instead, wipe data save for the card to remove encryption, and install the image in TWRP afterwards?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Magisk comes as a zip install that can be flashed in TWRP. That's the original installation method.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Golv:
TWRP 3.5.0_9-0 Released -

TWRP 3.5.0 Released

TWRP 3.5.0 is out now for most currently supported devices.

twrp.me

Download links: https://twrp.me/htc/htcu11.html

Thx to devs for update!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
I'll update the OP at some point, but the forum conversion has caused some issues with being able to edit posts. I'll get to it when I can. At least the download links still work :sneaky:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
Hey mate, I am having issues where my banking app is fine until I boot to recovery. I think it has something to do with the decryption that's causing it. After I reboot, banking app detects whatever it is and no longer works. Rom doesn't matter so I'm banking on it being twrp 😉

I have a before and after log if you are happy to have a look?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Are you sure your app isn't looking for the "TWRP" folder as an indication of being rooted? Just booting to recovery doesn't change anything in Android. If Android is able to decrypt after you boot into TWRP, then you can be assured that TWRP hasn't changed anything related to decryption. I am confident that this is not a TWRP issue.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
Wow... Such a simple fix! Can't believe that's all it was. It's been annoying me for years. Deleted it and the app opens right up!

Thank you so much
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Every time you boot into TWRP, that folder will be recreated, and it's also where the default settings and backups are stored, so you may want to consider just renaming the folder when using your banking app instead of deleting it completely.

Unfortunately it's not currently possible to customize the default folder location, but maybe I'll see what would be involved with changing that upstream.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] osm0sis:
Pokemon GO looks for /sdcard/TWRP too and the Storage Isolation root app is the go-to solution for such detections. Hiding 3 apps is included without unlocking the pro app, so it covers most people's use cases for free out-of-the-box. (y)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] woldo123:
Really cool and clear - thank you for this comprehensive roundup guide!!!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] linuxdep:
Hi

I have installed LOS 18.1 and Magisk&Co, fine, then i decrypt the phone and TWRP can't mount FS with my pin. I thought this only affects the original ROM from HTC and not also LOS?

Why it is not possible to encrypt with my pin?

I use TWRP 3.4.0.0
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Use the latest TWRP.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] linuxdep:
ok, i see 3.5.0_9-0, from the last day of last year... tanks. I test it.

Do you have also information for my question?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] chloris_:
Hello, folks. After recent success with flashing my tablet, I went on to do so with my HTC U11 as well. I attempted it for the second time and could not get it to work. Here's the procedure (bootloader is unlocked):

adb reboot bootloader

Use bootloader features to reboot to download mode

sudo fastboot flash recovery twrp-3.5.1_9-0-ocn.img

Got an error, response follows:

Sending 'recovery' (47824 KB) OKAY [ 2.513s]
Writing 'recovery' (bootloader) HOSD CL#1118777
(bootloader) start@1
(bootloader) ERR flash_partition_by_file, partition recovery is not foun
(bootloader) recovery@FAIL
(bootloader) end@Done
FAILED (remote: '23 RU_READ_PARTITION_FAIL read/open partition fail ')
fastboot: error: Command failed

As much as I understand this, my device does not have a recovery partition and TWRP would probably need to be written into ramdisk (actually my recovery is pretty empty and says "no command" or something like that). But we have another option - boot directly into the recovery (this was a saver with my tablet).

Rebooted my phone to bootloader again.

sudo fastboot boot twrp-3.5.1_9-0-ocn.img

Response was as follows:

Sending 'boot.img' (47824 KB) OKAY [ 1.180s]
Booting OKAY [ 10.139s]
Finished. Total time: 11.345s

Boot time is so long because of unlocked bootloader notice my phone displays. Now comes the real issue: the screen is black after the boot and I can't do anything with volume buttons or power button. The screen is powered on though, because I can see the backlight. The phone will still respond to fastboot (this is how I actually reboot it out of this miserable state), but not to adb. I've tried this with a wide variety of TWRP versions for U11.

Does anyone know what is wrong? Help me, pretty please, I want to get rid of Google on my phone. :cry:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] ahlockc:
Reboot to download mode friend.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] chloris_:
I tried, but it does not boot. Just hangs at this:

$ sudo fastboot boot twrp-3.5.1_9-0-ocn.img

Sending 'boot.img' (47824 KB) OKAY [ 2.489s]
Booting

I think booting like this should be done in bootloader mode.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] ahlockc:
I did it for download mode.

Simply 2 steps

adb reboot download

fastboot flash recovery file.img

And some prerequisite such as you have put the file.img to the adb directory...etc
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] chloris_:
Sadly, I've already tried this and it does not work. The only difference being how I got into download mode (and I did get there).
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
If your device doesn't have a recovery partition, then it's not a U11. Are you sure you don't have a U11+?

If so, then this TWRP isn't for your device.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] chloris_:
This makes the most sense till now. You're probably correct and it may not be a "pure" U11.

Here's hardware info:

Model: HTC U11 life

Serial number: HT83G1C00097
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
U11 Life is a different phone. This TWRP isn't for you. I'm not sure if there's a TWRP for your device, but I am sure that this isn't the thread you need.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] chloris_:
Thanks Captain. You made my day. I'll try my luck with this old thingie of version 3.2.1. Or try to find an alternative.

EDIT: I'll write that down for anyone having a similar issue. Captain_Throwback was right, a different version of TWRP is needed. I found one (not so recent though) that worked here. I could fastboot boot it, could not flash it though.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
FYI - The latest version of TWRP allows the default folder name to be changed.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
Thanks so much! It works flawlessly!