yashsingh1/xdaforums huggingface dataset:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Over567:
What did I mess up?

So I have the Miui.eu ROM on my phone which looks like it's discontinued and I wanted to try an other rom. Didn't want to decrypt so my phone is encrypted. Backuped all my data as always before a rom installation and logged out from everything also removed my security measures, did a reboot too and after that went to the newest TWRP.

Did a wipe(everything except the SD card so it's empty and clean.

Did a reboot to recovery.

Falshed the new rom and gapps also magisk. wiped the chache and dalvik as TWRP suggested.

Did a reboot to system and the logo was on so the ROM did managed to start to work but then it went dark and said my phone is encrypted and I need some sort of key to decrypt it.

Well ofc I couldn't do anything so I went back to TWRP and tried to do a format data which failed and TWRP said I should try to reboot.

Did a reboot to TWRP and tried a format data again well same message.

So on my last try I did a reboot to system and everything went well and I got into the ROM.

Sorry for being a noob just trying to figure out what did I do wrong.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
What ROM did you tried to flash?

You can take look at my POCO F1 Ultimate Collection & Guides and follow the steps there.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Over567:
Went from MIUI.eu to PE+ then tried out LineageOS 17.1 and after that it was messed up, I panicked and flashed back the MIUI.eu and it did again with that too.

Thanks for the link. :D

Ps: already learnt a lot from your guides, thanks for your work!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] thepierrezou01:
Twrp can't decrypt FBE on android 11 for me, is it normal ?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] gebcruz06:
@althafvly Kind sir, can you also update the device tree with the blobs from the latest miui stock rom? Thanks a lot.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] althafvly:
Try this build. Decryption for A11 is fixed in this build

https://sourceforge.net/projects/althafvly/files/twrp/twrp-3.4.0-0_10-beryllium.img/download

I have updated blobs in this build
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Skazzy3:
Even with the option for TWRP App Installation disabled in settings, I still get prompted to install the TWRP app every single time I use the recovery, even when automatic reboot is enabled. Hope that can be fixed.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] wbercha:
Yesterday i flashed PE 11 and it couldnt decrypt saying password incorrect.

Any help?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
Use TWRP Recovery FBE Decryption Android 11. You can find it in my collection or few posts above yours. It's made by the official dev althafvly.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] althafvly:
Updated to TWRP 3.5.0_10-0 (Based on Android-10)

Check here for changes: https://twrp.me/site/update/2020/12/31/twrp-3.5.0-released.html

Download: https://twrp.me/xiaomi/xiaomipocophonef1.html
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] ishtiak02:
Thanks a lot for the update. Does FBE decryption work with f2fs?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] althafvly:
No. Maybe in future releases
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] arz_steal:
It does work with f2fs, the only broken decryption was within 3.4.1, 3.4.0 and this one is working really well, thanks for this new one
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] althafvly:
Cool 👍. Anyway i haven't tried f2fs decryption.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] duttyend:
Thank you so much!!!

After downloading, all I get is a '... .bin' file, is it normal?

Happy new year and all the best for you!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] :
Happens to me too, when I use the xda App. With a normal Browser, it works fine.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] duttyend:
Thanks for your feedback, I downloaded it with Firefox and tried several times to no avail. I'll try with stock LineageOS browser.

Edit: same result... Maybe we can just rename the file to .img or somebody could upload it elsewhere
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
I downloaded it as .img fine, but you can try from here.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] fubo73:
I used chrome and no problem to get IMG file.. But I confirm that Firefox changes extension in bin...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Neko7o7:
Just rename the extension. Or u can use idm app to download it just copy the link and go to idm tap add link then paste.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] HatMan22:
Does this TWRP version do not support notch? Because in previous version notch are normal but this version have UI below notch. Or I did something wrong?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] xelwaren13:
thanks hopefully android 11 fbe decryption supported soon keep it up
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Barbarian king:
Just swipe and it should start the flashing prcess. OTA updates works fine for me with lineage 17.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] -nothing:
it`s my first time installing twrp . is this twrp that I looking for ? for poco f1
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] - Chaorrupted X -:
Yes.

Please do visit this thread https://xdaforums.com/t/poco-f1-ultimate-collection-guides.4192715/ for guidance.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] HatMan22:
After updating to TWRP 3.5_10, OTA update in Lineage OS 17 cause removal of root. I need to fash Magisk each time I do OTA upgrade.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] guhvanoh:
Of course it does. Every time you update your ROM you have to reflash Magisk.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] JoseRebelo:
That's not true. Magisk includes an addon.d script that should make it persist across ROM updates.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] guhvanoh:
Well it doesn't on my fone so there...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] MikelFuchs:
Hello,

Currently I have twrp-3.2.3-0 on my Poco F1 and I'm still using MIUI 11 based on Android 9.

If I flash the latest TWRP from here, will the backup and restore still work for MIUi 11?

And does the latest TWRP allow to backup the system and vendor partitions instead of using the system image and vendor image options which I have to use with my current TWRP and which use much more space?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] schrickz:
got error when flashing any ROM with the latest TWRP. Tried dirty and clean installation but always got error (without any error code, just showed error flash xxxxxx.zip) when flash through internal and external sdcard. any solution?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Barbarian king:
Try format
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] MusterMaxMueller:
Does work with Android 11 f2fs and fbe.

Tested with POSP and NGK kernel
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] schrickz:
fixed, apparently all the zips were corrupted but the TWRP can't show it
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] cRaWnEr:
Hi guys.

I was on Android 10 LineageOS and latest OTA got me into a bootloop. I re-flashed TWRP but when I write my password to decrypt it says E: took to long to decrypt. Killing the process

I would reaaally apreciate not to format my phone if possible. Any suggestions?

PS: Password is correct, it is my PIN. I also tried other password but then it says wrong password so it is something related to the 'taking too long' message
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] R46N4R0K:
Hi All,

I have TWRP 3.2.3-2 installed and I can't see *.img at install. I have tried to zip the img, but then it shows zip file is corrupted.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
1. In TWRP > Press

Install Image

.

2. Locate the recovery.img you recently downloaded.

3. Select it and choose the option Recovery and Flash.

4. Go back and Reboot to Recovery.

5. Done! Your new recovery should be installed.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] R46N4R0K:
Thanks a lot, I didn't know this option. :)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] AIParvez:
Working like a charm. Thanks
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bresslau:
Twrp.me seems to be down. Is there an alternative and trustworthy download option like github for the poco twrp?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] xelwaren13:
new twrp is out i dont see any changelog but im gonna update this now thanks to dev keep it up
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] voetbalremco:
General changelog:

TWRP 3.5.1 Released

TWRP 3.5.1 is out now for most currently supported devices.

twrp.me
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] SoftLibre:
Review by munchy

TWRP 3.5.1 Released | New Features | Magisk Apk Support & More
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] duttyend:
New build is up (3.5.2).

I can confirm it's working fine with LineageOS 18.1 (but I am using FBE encryption).
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] akashrathi7978:
My device is Poco F1 on stock MIUI 12 and I'm facing an Issue where Stock recovery always replaces TWRP even after flashing .img file with both methods as you can see below.

On TWRP official website: "Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install." tried this also but the result was just as same.

And I don't want to root my device so is there any other way to get it worked?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Falcon_fan:
Yeah. Exactly!

As far as I know, there is something called DM Verity built in to the stock MIUI ROM which replaces any other recovery with stock recovery upon reboot (I leave it to the pros to describe in more detail)

Need to flash disable_dm_Verity immediately after installing the recovery before you reboot. (I always look at zackptg5 website to get the disable_xyz file).

This is as per my limited knowledge. Those who know better may throw more light on this..
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] akashrathi7978:
so after some research, I had to boot into TWRP and then flash custom ROM from there and that's what I did finally, now TWRP is working fine for me
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Tremolo4:
I think this is incorrect.

I successfully used TWRP 3.5.0_10-0 to decrypt FDE data during my upgrade from LineageOS 17.1 to 18.1. TWRP decryption works both before and after the upgrade.

Then I installed TWRP 3.5.2_10-0 and it is still able to decrypt my FDE 18.1 data successfully.

(Of course you only need to decrypt data in TWRP for Magisk addon.d updates etc.)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TimHermans:
If I update my recovery TWRP 3.4.0_10-0 which works to TWRP 3.5.2_10-0 it boots but can't see any partition size and thinks no OS is installed..

Anybody who knows what causes this?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] duttyend:
You should provide more details about your setup (ROM, mods, data encryption type, etc.)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TimHermans:
My rom is latest ReloadedOS (android 10) with stock kernel, not rooted and not encrypted..
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] duttyend:
I can't help you, I'm on LineageOS 18.1 and latest official TWRP and everything is working perfectly.

Maybe you could first make a nandroid backup of your data with TWRP 3.4, copy it to a computer and then format your partitions and install TWRP 3.5.2 from scratch.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TimHermans:
So I just went for it

took backup and copied it to pc to be sure..

flashed latest twrp, said no os installed..

wiped system , cache, dalvik and vendor

flashed pixelplusui rom, everything fine (weird cause of "no os installed")

rebooted

system works

reboot to recovery, still says no os installed on reboot

and at backup screen it shows all partitions as 0Gb size

pressed refresh sizes and after a few secs it shows correct sizes

nand backup works!

only on reboot the no os installed message stays, no biggie

so all in all succes so far!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] greenawatterson:
So.. if I wanted to update my TWRP, should I flash it (and dfe, obviously) via adb boot twrp command or just straightforward from the currently installed TWRP recovery?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milancnakum:
Directly flashing from installed TWRP should be fine. I mostly update from TWRP itself, never failed.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Kallyt001:
How can I download
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] speter2:
You need to find it on the official twrp website. When you are there search for "poco" and you will find it.

If you need further help, let us know.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Kuro08:
By this you mean no PC and just the TWRP within device does the trick? Similar to,say, updating an app from play store?

This also does not wipe data right?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milancnakum:
Yes, just boot into TWRP, go to Flash, select Flash Image, select recovery img file and flash. Or even, you can download official TWRP app from Play Store and update it from there without even rebooting to recovery, if rooted.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Kuro08:
Thats good to know. Confirm two things if possible please.

1) Heard that after twrp gets used for flashing to twrp recovery or any custom rom then the next reboot or a custom rom or rom update reverts twrp back to stock recovery. Is that right? If so, how does one permanently keep twrp without rooting?

2) If what you say about flashing twrp is right then I can use it on even stock rom too right?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milancnakum:
For 1st, I don't think custom ROMs replace recovery, I used Pixel Experience Plus, MSM Xtended, Resurrection, CR Droid, Awaken, Corvus, MIUI.eu, Elite ROM, etc. None of those replace TWRP. Stock MIUI & LOS might.

For 2nd, and for stock MIUI & LOS if flashing any of them replaces recovery, when you try to reboot to system, it would show alert saying TWRP has been replaced, do you want to keep TWRP or something, if you select that you should be able to keep TWRP even with these ROMs.

If flashed Magisk/rooted, you would still be able to use TWRP app from play store and flash recovery directly after successful boot, in case ROM replaced your custom recovery, so make sure to flash Magisk alongwith ROM.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] althafvly:
Hi guys,

I don't have poco f1 (beryllium) anymore, moved to mi 11x aka poco f3. There will be twrp updates for beryllium until the source is okay for builds. All current builds are automated by teamwin team. I would try to fix if theres any issues. Or let me know if you want to submit any fixes to current one. 😄✌️

Take care everyone.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pixelodin:
My rom is encrypted so when I boot into twrp it's not asking me for decryption password
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
TWRP doesn't support decryption of A12 encrypted ROMs yet. Already reported to althafly long ago.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] 535iu:
@althafvly

Hi, TWRP has already been updated to version 3.6.2_9-0 this month for our F1.

I have read that there are already mobiles that are already able to decrypt A12 memory with password. For example, the GT Neo 2. Please could you update our TWRP so that it can read the encrypted A12 memory?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
He doesn't have the device anymore.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
Finally @REIGNZ3 fixed encryption/decryption of latest TWRP 3.6.2.

You can get it here or in my AFH mirror. You can also find it in my collection.

Notes:

If you're using system_ext roms, use the system_ext version otherwise, use the non system_ext (NSE) version.

It is currently in beta, so please report any bugs if you notice.

Bugs:

There is no system partition in Wipe section. Dev looking at it. Fixed

"Cannot mount the vendor" error message. Fixed

I tested it on crDroid and working fine. -OTA on crDroid also worked fine-

Again many thanks to the Hall of Fame Developer @REIGNZ3. :cool:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Doomguy6:
Να σαι καλα φιλε!🤘
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Tremolo4:
Decryption does not work for me, even with this version. Same error as with official TWRP: "Failed to decrypt data". Maybe FDE is not supported, only FBE? Can anyone confirm?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
It's working with FBE. I am not sure about FDE. Most A12L encrypted ROMs are FBE anyway.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TioCareca:
it only decrypt FBE...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] WoolfishStrives:
edit: wrong thread feel free to delete this
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
Update 01/07/2022:

Fixed System issue. Everything seems to working now.

Use the v2 builds. You can find it here or in my AFH Mirror.

Did you thanks already @REIGNZ3? Do it, he deserve it :cool:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] REIGNZ3:
only support for A12 use old recovery if u wanna use encryption for A11
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] alberto88a:
It's actually not working on my side. After booting for the first time it asks me to type the sequence and then "Failed to decrypt FBE" or something...had to go back to lineage default recovery :(
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TioCareca:
when you boot rom?

if its rom asking it, its not recovery problem, its rom.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] alberto88a:
nope, while booting into recovery :(

It stays a bit in the boot screen with the TWRP logo and then asks for the sequence...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TioCareca:
your rom is locked with screen lock?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] alberto88a:
Yes..
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TioCareca:
ok, thats it, it suppose to be same lock, but unfortunately twrp still bugged with that, its suppose to be the same to decrypt in twrp as in rom, but it dont work for me too, if you remove screen lock twrp will decrypt without problems
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
Remove your lockscreen pattern/pin and set it again.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Tremolo4:
I am using A12 (Lineage 19.1) with FDE. I have been upgrading since A9 or A10. As far as I know there is currently no recovery at all that can decrypt my data.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Tremolo4:
Accidental double post
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] 535iu:
It doesn't work for me either. I have a F1 that is in bootloop and relies exclusively on TWRP to be able to recover my data. Hopefully @REIGNZ3 can solve our problem, although I know there are few of us who are still having problems with decryption.

Have you guys somehow managed to decrypt without having to remove the password (I can't remove it, as I don't have access to the system, but I do remember the password?

In my case, TWRP recognizes that the password is correct and tries to decrypt (FBE), but after two seconds TWRP restarts again without decrypting and asks me again for the password (a PIN).
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TioCareca:
there were a zip that removes the password, unfortunately i can't find it, it may not need to system be decrypt because is a zip like rom, and even before decryption were available it worked...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
Now there is 😝
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Tremolo4:
Huh? As I said already, both vanilla TWRP 3.6.2 and the version from @REIGNZ3 are unable to decrypt my FDE data on A12.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
Oh, you said FDE. Well most encrypted A12 ROMs are FBE.

You should do clean install at some point to move to FBE since I read you are upgrading since A9.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Tremolo4:
Ah :)

Yes, you're probably right I should reinstall soon in order to switch to FBE. I'll have to find a new way of backing up my data as I was using TWRP for that. I was just holding out hope that FDE support would be added back to TWRP soon.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] REIGNZ3:
beryllium: fstab: Switch to FBE as default encryption method · LineageOS/android_device_xiaomi_beryllium@0e4af96

* Switching to a different encryption method as FBE, which has no support to encrypt existing files, requires users to format /data completely. However, we are able to retain FDE functionality ...

github.com

lineage use fbe tho
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Tremolo4:
Only on fresh installs. Not on my device, because I have not wiped data since at least A9. The very commit you linked says
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] guhvanoh:
Have you tried the older TWRP versions, say 3.6.0 which support FDE, to see if they work? And what about the other recoveries - ofox, pbrp?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] 535iu:
Please, that zip file would help me a lot. I have already tried everything to recover my data. I tried all the current TWRP versions, I also contacted @REIGNZ3 several times (and shortly after he did me the favor of releasing new TWRP versions), but no TWRP version decrypts my data. I also tried updating the ROM (crDroid 8.4 from April 17) to the latest 8.4 and 8.5 (I previously informed myself that there were no partition changes). I also contacted @gwolfu months ago, but he could not help me. I don't have much money, but I can make a donation if someone can help me decrypt my data.

If anyone can help me, you can write me by private message or in this thread, please. I have been having this problem for over two months now.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Retrial:
Hello,

Sorry for late reply but I didn't paid attention earlier. You could try to post in my thread.

So as far I understand u are currently on crDroid encrypted, you bootloop and you want to upgrade to latest version of crDroid and TWRP without losing ur data.

So take a look on the steps below:

Download latest TWRP by @REIGNZ3.

Download latest crDroid build.

Download latest GApps you use. (I recommend FlameGApps full with config but it's up to you)

Boot into to TWRP by REIGNZ via adb:

Example:

fastboot boot C:\Users\Retrial\Desktop\twrp-beryllium-v3.6.2-A12-V3.img

Wipe: System, System_EXT, Vendor, Cache, Dalvik / ART Cache

Go back to TWRP at Advanced and press the ADB sideload to dirty install the ROM and GApps via adb from your pc, type: adb sideload /path/to/rom.zip (if you have sdcard or USB OTG you can just install it via it without adb)

Then reboot to system.

If it boots, backup ur data just to be safe from now and go on and then remove ur pattern,pin and set it again, boot to twrp (make sure to flash twrp by reignz in recovery section because we previously just boot into it) and check if it can decrypt.

If you still have issues please post in my thread to not spam this thread.