[Xiaomi Poco F1 Guides, News, & Discussion] ipdev:
To install an update, I normally just flash the new version and reboot.

No wipes.

If you use Magisk, you will have to flash Magisk after flashing the xiaomi.eu update.

Encrypted or Unencrypted.

For Magisk modules, the few I use, it did not make a difference if I disabled them or not before installing the update. The modules were active and running but, they were not quite right. Simply reinstalling them corrected the problems.

- Others have noted some modules may cause a boot-loop if you update the rom without first disabling some modules.

I use Magisk canary-debug.

Results may be different using another version of Magisk.

- To Update. (Using TWRP)

- Running xiaomi.eu only.

Boot into custom recovery (twrp)

Install xiaomi.eu update

Reboot to system

- If you use Magisk.

Boot into custom recovery (twrp)

Install xiaomi.eu update

Install Magisk

Reboot to system

Reinstall Magisk modules.

Reboot to system

or

Disable Magisk modules and reboot

Boot into custom recovery (twrp)

Install xiaomi.eu update

Install Magisk

Reboot to system

Enable / Reinstall Magisk modules

Reboot

As for your doubts about encryption and a dirty install.

Test 2 was actually a clean install. I wiped everything in twrp.

Dalvik, Cache, System, Data, Internal Storage.

I did not format data. I was still running an encrypted partition.

I got the same encryption password error regardless if I started from miui_global or xiaomi.eu. The error shows up on first boot and then TWRP could not decrypt the data partition afterwards. Normally encryption works fine in TWRP. Both encrypted miui_global and xiaomi.eu. This error only showed up if I tried to do a clean (encrypted) install of xiaomi.eu.

Yes I tried generic passwords and my miui password.

If you are running xiaomi.eu and choose to encrypt under setting, you can update it without problems. TWRP will be able to decrypt it just fine.

I tested with only the stable builds.

Test 1:

Clean install, including format data, v10.2.2.0 only.

Encrypt the phone. (Once I found were the setting was buried.)

Reboot to bootloader

Fastboot boot twrp

Install v10.3.4.0

Reboot

Test 4:

Clean install, including format data, v10.2.2.0 and Magisk canary-debug.

Setup a few Magisk modules.

Disable modules and reboot

Install v10.3.4.0 and Magisk (Backup script did not run.)

Reboot, enable modules and reboot.

Modules's setting were there but, I still had to reinstall the modules to make them work correctly. (Save for systemless hosts module.)

Note:

So writing this post I realized a few things.

1. I never dirty flashed a xiaomi.eu rom on top of it's self. Encrypted or decrypted.

2. (official)TWRP-> Wipe-> Advance wipe-> Missing vendor partition.

3. I never tried a clean install/format data with xiaomi.eu set to forceencrypt.

DAMN IT. I just came up with at least six more variables to test. I am most curious about setting forceencrypt.

Anyone interested in an EFE.zip :silly:

Cheers.

PS.

Sorry for the long post.

Edit: Quick test with forced encryption.

Clean flash including format data. xiaomi.eu_multi_POCOF1_9.4.18_v10-9 and Magisk canary-debug

Manually edited fstab. - I'm pretty sure no one made a flashable EFE.zip ;)

On boot, device was encrypted and no mystery password error.

TWRP can decrypt data also.

Will test more when I have some time.

Cheers again. :)