@
ingbrzy
I faced problems with device encryption long time ago with my Mi MIX 2 but thoudt it is specific to my personal device.
Today i had to learn that there seems to be general issues when using your ROM and enable device encryption for the Mi MIX 2.
I've testetd it today with another Mi MIX 2 and faced the same situation like before with my personal device.
If you select device encryption device will reboot and showing you it's encrypting.
This process will never end it seems it got stuck shor before finish :-/
This could be reproduced with weekly ROMs as well as with stable ROMs.
If you use the original Xiaomi ROMs as well as Omni/LineageOS/Resurrection Remix encryption works as expected.
My assumption:
Something is wrong with the kernel/boot.img your distribution utilizes for en-/decryption.