yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] sol81:
I tried installing miui eu 7.1.12 today. Installed twrp-3.0.2-3-gemini.img. Rebooted and i saw the right version number in recovery, but when I tried to install 7.1.12, I got an error message: "updater process ended with error 7 " "couldn't mount cache".

After that when I rebooted the recovery, I saw that the twrp version number went back 3.0.2.2.

Reinstalled 6.11.10 for now
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] PanNet:
Thanks for suggestion. I solved my problems after a day of battle. Just install Mi8 latest Chinese version by fastboot method and after that have installed twrp 3.0.2.0 (not 3.0.2.1) and EU version of Mi8. Twrp 3.0.2.1 freezes all the time
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
For those having freeze issues, can you please check if this temporary test build works for you?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] shade.sh:
For me, it vibrates and reboots directly to system. no sign of TWRP with this version.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Did you flash it to recovery partition and really booted into recovery mode? I know I shouldn't be asking you this, but I tested the image. :rolleyes:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] m4h4j4y4:
I test your build and it's work. OTG on TWRP worked. everything working good. thank you:good::good::good:

I use MIUI 8 china dev 6.7.21
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Thanks, but I need feedback only from those that were having freeze issues with TWRP 3.0.2-1.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] m4h4j4y4:
I got freeze twrp 3.0.2-1 logo with miui 8 6.7.21 eu and china before. And no otg support with twrp 3.0.2.0.

With your build everything works

---------- Post added at 04:04 PM ---------- Previous post was at 04:03 PM ----------

I got freeze twrp 3.0.2-1 logo with miui 8 6.7.21 eu and china before. And no otg support with twrp 3.0.2.0.

With your build everything works
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] fmcheetah:
Same for my device!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] PanNet:
It works for me now. Looking at build number it is 3.0.2.0 not 3.0.2.1

Regards
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Don't worry. That's normal because it was just an unofficial test build.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Joangarc:
I had issue with 3.02-1 (freeze at first screen), with mi Mi5 Pro (128 gb).

This test file works perfect, and OTG is detected.

Thanks!!!!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Thanks for the feedback, guys. Next official release will contain the fix.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
When will it be released?

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Hmmm... taking into account that I have shared the test build here and it's working, I don't think a maintenance release is required, so you'll have to wait for next TWRP major version update.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Alkemix:
Test release works fine, no problem at all by USB OTG !

Works perfect (my rom is Miui v8 based) ! Thanks :) ... I'll use this test release, USB OTG function is too important for me... awaiting the new official release
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] emixam29:
With TWRP 3.0.2-1 i can't install official global ROM from Mi.com, i have a bootloop after the flash. But i have this problem only with official ROM not whith these from xiaomi.eu or Resurection Remix ROM. Someone have this problem too?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
You can't flash official roms with twrp. Read the instructions next time, you have to use miflash.

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] emixam29:
I have already flashed official ROM with TWRP before and i had no problem...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
Well, every zip that Xiaomi releases is a fastboot zip, so how is it possible to flash them with twrp?

Anyway that's my suggestion, do whatever you want.

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] emixam29:
When you download the ROM from here : http://en.miui.com/download-299.html this not a fastboot zip but a ROM zip for a recovery
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
It seems you have wiped the system partition before install 7.1.12 that's why you have got error7
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] sol81:
No, I didn't​do any wipe, and when I try to clean the cache, i get the error message that can't mount cache. Also I am not encrypted.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
He meant that you need to wipe the system partition before installing. I believe the same might need to be done for data too.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] sol81:
On miui eu there are various mentions of brick after you wipe system
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] aimcr7:
Yeah don't do it for miui 8 nougat, it will hard brick your device.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mayex:
Where is download link to latest TWRP?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nsn:
Has anyone else tried 3.0.3-3 test2 build with Android 7 encryption?

I don't think it works yet but would like to hear feedback from others. [MENTION=455439]bgcngm[/MENTION], when you have time to take a look into this I can run test builds are provide logs.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Ramshu97:
Install the official TWRP app from the play store
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Piricho:
I get my Mi5 tomorrow. I keep reading about this password encryption issue and to not wipe system partition etc.

I don't care about encryption and i just wanna wipe everything and install LineageOS.

The phone is already unlocked (it's used), do i have to worry about anything?

In my head it's just, install TWRP or update if it's already there, to version twrp-3.0.2-3-gemini and then flash latest LineageOS.

Am i wrong?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] devrruti:
I was on latest weekly Dev miui ROM (8.2...?) and wiped system, data and cache, before installing lineage. No brick No problem

I suppose you need to wipe system if you change rom
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Obviously, you need to wipe system when switching ROMs. Nonsense posts, that's pretty much it.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mayex:
One of MIUI 8 builds bricked Mi5 actualy when you full wiped your device. There was no problem when going from older builds without wipe. When going from CM you had to flash old MIUI build with full wipe, and then witout wiping -> flash MIUI8.

When you had CM -> then full wiped -> and flashed MIUI 8, you were given brick.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Schnedi:
I just tried the version "3.0.3.0 test 2" but it doesn't decrypt the internal storage.

Back to 3.0.2-3; this one asks for password and decrypt it.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] sas_sas:
Hi folks,

I have mi5 and screen JDİ...

Can someone tell me if miui7 and miui8 needs different TWRP ?

if yes, what are the best versions for miui7 and miui8?

As I often replace (by TWRP flashing) miui7 with miui8 roms or vise versa I come cross loosing my TWRP.

What Should I do not to loose TWRP during such TWRP flashings?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
Just flash the latest official.

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
New test build: * link removed *. The only feedback I need is regarding decryption.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Thanks bruno. I'll try it on my encrypted device and let you know. I can probably attempt to encrypt my other Mi5 this weekend whilst using that too.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] sas_sas:
I just flashed your test build

The below is for your info;

I have no encryption at all meaning my device was not encrypted...

This version is not booting system, not turning power off but always returns to itself meaning TWRP recovery.

It also not executing to flash any other TWRP recovery meaning previous versions..

İt executes to flash Rom and Gapps.. It wipes etc..

It makes backup..
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nsn:
I tested the latest version. Behaviour is this:

Test1 : Passcode setup during the first encryption - I get "decryption failed" when I add correct passcode

Test2: Pincode changed from above situation - I get stuck on "trying decryption"

Test3: Passcode changed from Pincode - I get stuck on "trying decryption".

[MENTION=455439]bgcngm[/MENTION], sent you link to all recovery logs from above.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Kamal Birda:
[MENTION=455439]bgcngm[/MENTION]

Thankyou very much for your work, its really appreciated.

I installed the twrp 3.0.3 test 3

And I had a question.

When I wipe data are the obb files supposed to be deleted..

?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] beast_drc:
I have strange issue. Touch doesn't work in the recovery. I have to use mouse. I updated the recovery, but no effect. It happened suddenly
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ViRuS-MaN:
after i install trwp in my mi5 i reboot but i arrive in the black screen with mi and in botton have a cadenas with bootloader unlock in red and it s not possible to start my mi5 , trwp dont work il the rom miui 7.1.19 (nougat) ??? because i want to install super user and it s not possible if trwp no work
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Which version? 3.0.2-3?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ViRuS-MaN:
3.0.2.0 and 3.0.2.3 try the 2 version
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Whoops. That spiralled out of my limited knowledge domain really quickly. Sorry.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nsn:
Since the recovery doesn't currently work with Nougat (7.1) encryption, I decided to try running LineageOs with Marshmallow (6.0) encryption because that allows me to run updates from recovery.

It works if you encrypt data with cm13 and then do clean install to LineageOS but it's crazy how much slower os works that way. I swapped back and forth couple times, just that it isn't in my head and no, when you run system with new way of encryption it run so much more faster and is lot more responsive. I know that was one of the reasons why they changed the way encryption works but didn't realise difference is so clear.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Heh, no way! I don't think I've used this ROM without Marshmallow encryption, and I've always thought it was perfectly snappy. Mind you, I've upgraded from a Nexus 5 so...

I'm always playing around with VR and Daydream games (modified handheld_core.xml) without any issue, and apps just fly for me. In what way does it feel slower to you?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nsn:
I don't see any big difference in antutu score but its clearly faster when opening apps that are not in memory for example. I still kind of question the results but now when I am back to Nougat encryption everything is pretty much instant. Which is was not the case with MM encryption.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Ah, you got it working with the test build? Awesome. I'll need another weekend to set that up again, I think. Good to know, however.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nsn:
Not really, I have non-encrypted backup which i can restore and when done with updates then encrypt it but recovery won't work after that.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
So, in which version works the decrypting? Still test 3 is the latest release?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Headbanger1982:
I've had strange issues with test 3, like phone stuck in recovery (not rebooting or returning to bootloader) hope to get a stable release, thanks for all the hard work!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
3.0.2-3 with marshmallow encryption. Can't be used with Nougat encryption yet.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] puhu:
[MENTION=455439]bgcngm[/MENTION]

I wanna wipe all my partitions

System

Data

Cache

Dalvik

Cust

Everything

If I do that I lose my IMEI and MODEM?? PLS HELP ME!

puHu
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Have you already wiped these partitions or not? Backup your EFS if you haven't.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] puhu:
But I can't get safe my efs backup can't copy to pc

puHu
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] deathscythemeng:
I think it is a permission issue. You can copy them to PC in TWRP itself.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Headbanger1982:
With ADB commands?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] deathscythemeng:
MTP is enough.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] MatVekk:
Hello to all. I installed ota 7.1.19 for Nougat radio. Now for xiaomi.eu which recommended TWRP for not having a brick? Thanks!

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] yannmrt:
I would like to instal last TWRP and download the version 3.0.3 test 3. I'm with LOS 14.1. (then I want to flash official LOS)

1 Do this version is stable?

2 When flashing with TWRP I have to select boot or recovery portion?

Thanks for your time
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
1 Use 3.0.2-3 if you want stability.

2 I thought this would be self explanatory, but you install TWRP as recovery, though I understand the confusion when presented with that option.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nsn:
Updating this one: Its not related to encryption type, its something else in my phone that degrades the performance over time (some app?). Happens with both encryption types after 24hrs or so after using bit more apps.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Good to know, and thank you for elaborating on this.

I hope you find the culprit.

With that said, I wouldn't solely depend on benchmarks as a reliable performance metric.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] MatVekk:
Deleted

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] lastbronx:
I flashed gemini 3.0.2-3 recovery img using official TWRP app and rebooted to recovery.

But now I am not able to get to the recovery mode. Stuck at MI logo.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] FcukBloat:
if you press and hold for long power button with volume up pressed also, does it enter in twrp?

otherwise press and hold power button and vol -, does it enter in fastboot mode? if so then try fastboot flashing twrp..
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] lastbronx:
Yes. Tried hardware combination as well.

I just found out that 'twrp-3.0.2-3-gemini.img' is just 7kb. How is this possible ?:confused:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] FcukBloat:
that's wrong download.. get it again from twrp.me ;)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] lukigoes:
I tried this version with AICP 12.1 official.. this is an aosp based ROM.

Right after the first boot my phone was encrypted, but I need not to enter any password to boot. Then I changed the encryption password in settings. After the next reboot I entered my PIN and the device boots perfekt. But then I went into TWRP, I tried to enter my PIN, but actually the phone doesn't decrypt, it says wrong password..

Any idea? Thanks a lot for your work! :good: :)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
I thought AICP was cm-based.

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] lukigoes:
I think it should be AOSP, but when it is CM than this is my fault.

The way of encryption should be the same, so I hope the dev could find a solution for this problem :)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] zsoltpopa:
N
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Someone with an encrypted device can try this new build? Follow the link to the original post to get the new image.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] muff99:
Works, didnt check backup/restore though.

Hmm, not a big fan of the twrp APP advertising, but since it can be switched off ...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] blueberry6401:
It works on my device, encrypted with /data and /cache in f2fs.

EDIT: But the decryption process seems pretty slow. After enter password it shows E: decryption took too long, killing process, but after that it decrypt successfully.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nsn:
[MENTION=3454683]muff99[/MENTION] & [MENTION=5905566]blueberry6401[/MENTION] is your phone encrypted with marshmallow or nougat (partition or file based)?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] muff99:
My phone came encrypted with M.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] blueberry6401:
Me nougat.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Someone else with a device encrypted with N?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Sorry man, I was meant to try this well before, but I had some complications moving backup files to my PC. I'll give it a go perhaps tomorrow evening and I'll get back to you. I don't really mind running a clean install from now on if something goes wrong.

Thanks,
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] TheDarkAngel666:
Encrypted with n on ext4 but i see this error:

E: decryption took too long, killing process, but after that it decrypt successfully.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nsn:
I had same issue, where it gives error about some file type(?). You can move them when you boot to twrp and decrypt your data (if you're still in old encryption model). MTP works from there.

I am on work trip for next 3 weeks, so cannot test this for now. OT.. phone runs great btw, performance issue was probably some app which went rogue. During last clean install I installed only apps I really need and haven't had any issues so far.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] islamtaalab:
I'm going to unlock my mi5 and install lineage OS, I'm on miui beta with android 7, which version of twrp should I flash exactly?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
3.0.2-3.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] blueberry6401:
Use 3.0.2-3 if your partitions in ext4, 3.0.3 latest test version if you are planning convert your partition to f2fs.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
So, decryption works with TWRP 3.0.3-4 on nougat CM/LOS builds?

Also would be nice to know what can TWRP 3.0.3-4 do with official china nougat MIUI, because this builds encrypted by default.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] islamtaalab:
Thank you guys, I will try it today, wish me luck
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mastersanta:
Now its work ok. Latest build of Lineage OS and latest TWRP from you - null problemo :) Only after enter password it's take long time to phone but it's unimportant for now I think ;P anyway gj :)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
You or someone else running MIUI should try. There's a high chance that MIUI decryption is also working.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Given the feedback, I have added the latest working build to post #3. Consider it stable even though it is not official. TeamWin hasn't yet declared 3.0.3-0 as official anyway.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Headbanger1982:
I can give it a shot, since I'm actually on MIUI Global, encrypted and the only way to fit in a TWRP was to put in ZCX because TWRP 3.0.2.-3 didn't recognized my encryption password and stucked me in bootloop.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Nice, please try and then let me know. :fingers-crossed:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Okay. 3.0.3-4 is the latest test build what I should try, right? Furthermore what password should I give after first reboot to TWRP in order to decrypt the device If I have never set any password before?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Bimalhort:
Where can I get TWRP 3.0.3-4

I have 3.0.3-3.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
The one and only can be found on the third post.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Is that same as 3.0.3-4 build just renamed to 3.0.3-0 ? Also please answer regarding my previous question too? (namely, what password should I use after first reboot to TWRP in order to decrypt the device?)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Yes, I have only renamed the file and uploaded it to post #3.

Try "default_password". Although, this one should be the default one that TWRP is supposed to try automatically. If it stills asks you for a password, then... ¯\_(ツ)_/¯
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vinsensiusk:
Guys.. i'm just bought mi5.. how to unlock this phone by unofficial? Or i must use mi unlock and wait for verification? Thx
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Yes, you must unlock it via the official method. There's no other way, as far as I know.

But the how-to and related questions take place here.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mysa50:
Is this last release works with golabal dev 7.1.19? Everytime i try to flash the last official version the fastboot command tells me it was successful but the phone keep booting on miui recovery i don't know why. I follow this thread for a few weeks but didn't see (or remember) something similar
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
[MENTION=455439]bgcngm[/MENTION], just testing N-cryption now, waiting for my phone to charge back up before it allows me to do so.

Small question: I noticed you moved the recovery link to post 3 (thanks btw), which prompts a download for a 3.0.3-0 build. I have a 3.0.3-4 version of yours, however.

I'm assuming that the 3.0.3-4 version that I have is less stable? Would you like me to test both anyway?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
The latest stable is the one I attached to post #3. It's named 3.0.3-0.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Oh, snap - my bad.

Regardless, it worked, despite taking slightly longer than usual, and showing up with the "Decryption taking too long killing process" as others have reported.

I'll try changing the decryption password from within Lineage and I'll edit this post accordingly.

Update: Changing the decryption password works flawlessly; for the system and for recovery. It doesn't show up with the false error message anymore and decrypts faster as a result.

Update 2: The encryption process required me to manually boot the phone back up to proceed. If your phone stays switched off for more than a couple minutes (wait for at least 5 to be safe), don't be alarmed, just turn it back on and let it finish up.

Very well done, Bruno!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] FatherJony:
I just flashed that version and the reboot options are broken. To be more precise, every option when selected, causes TWRP (and not the phone) to restart itself. Moreover, it also seems to forget the 'allow system modifications' user setting as it keeps asking for a choice no matter what you've previously pressed.

[EDIT]

This behavior is triggered by wiping, probably formatting data.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vinsensiusk:
Okay thanks..