[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] KoemanMag:
Bootlop after OTA updates + Encryption issues. Many questions...

At this moment im using LOS16 build from 19-04-05 (lineage_beryllium-userdebug 9 PQ2A.190405.003) with the extreme kernel 4.9.162 V9.3 on the latest firmware (beryllium-9.5.9-9.0-vendor-firmware.zip)

I'm using Magisk (v19.0) modules for AXN Camera and Youtube vanced

Every time i use OTA updates my Pocophone goes into bootloop. When this happened for the first time i formatted data partition and did a clean install of a newer LOS build fixed the bootloop.

But it seems that may users complaint about this bootloop on OTA updates and can be caused by Magisk Modules. It's true i had magisk modules installed when this happened to me for the first time.

To prevent the bootloop in the OTA updates what should i do before an update? disable the modules before or do i need to uninstall them?

These last days i wanted to flash the latest build of LOS 16 because they introduced th BT Dual Audio and it seems that there is an update that works well with the notch of the pocophone.

First, i did a Nandroid backup of the following partitions (boot, system image, vendor image, data)

So before i decided to flash the new build (i was afraid of the bootloop) I flashed the latest vendor/firmware (beryllium-9.5.9-9.0-vendor-firmware.zip) but i forgot to flash the DFE zip and after rebooting the system it started to encrypt my device.

It seems that after a vendor/firmware update if you don't flash DFE the device starts to encrypt by itself. Now i learned...

Now that i have my device Encrypted and from the searches I've made it seems the only solution to decrypt is to Format the data partition and do a clean install of the ROM. I read that even after doing a format of data some people when entered into recovery it asks for a password (or pin or pattern you created on your system)

Is this possible to happen?

My idea is if i format data partition the encryption goes away and when i flash the new rom i need also to flash the DFE zip to prevent force encryption, right?

So let's say i want to do a clean install with the latest firmware + latest build of Lineage with OTA updates working + kernel. Which are the corrects steps to do this?

I will put the procedures i know but please correct me on anything. I want to learn the right way of doing this.

A. "Clean flashing" (this instruction i toke from another threat in this forum and adapted to my situation)

1 - First on twrp recovery wipe everything, (cahe, dalvik, system, including data partition to remove encryption)

2 - reboot again to recovery to see if twrp ask for a password to decrypt data partition. It shouldn't i believe.

3 - With twrp recovery open i can connect the device to my pc and pass the files i want to flash to internal storage with windows explorer. I don't have with a sd card to use on the phone with the files i want to flash.

4 - Flash first the vendor file and without rebooting, flash the DFE file.

5 - Reboot back to recovery.

6 - Flash the latest build of LOS16.

7 - Reboot back to recovery (before doing anything else - so that any changes to partitions/filesystems done by flashing the new ROM will take full effect)

8 - Flash the MindtheGapps + Magisk, etc (should i do it Separately or can i use the twrp option to install all these files at once, respecting the order?).

9 - Reboot device to system.

10 - Optional - Flash the extreme kernel or whatever kernel i want to use.

11 - reboot back to recovery and after reboot to system

Now i have a backup of my previous installed Apps (the data partition that i backup). Can i do a restore only of the data partition and this way i don't have to re-install my apps, etc?

I know its a long post with many questions but it was difficult for me to search the forums to see so many different answers on so many different issues so i decided to create this post to get some help.

I will be so appreciated for any kind of help people give to me. I'm enthusiastic in this area but i'm not an expert or a have much experience with flashing Roms (only the little things i do to my devices)

Many thanks in advance.