yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Oceanik:
nijel8, is it possible to port this your twrp to Mi Max 2? No any worthy ones there, unfortunately...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] cobben:
New official version available 3.3.0-0 as of 20190415 for most devices, surprisingly also for Max1.

No changelog for helium/hydrogen, but article on XDA here about changes.

https://www.xda-developers.com/twrp-3-3-0-release/

Major changes for A/B partitioned devices

Maybe useful if you need encryption, or edl?

I have had no problems, on Xiaomi EU which is now EOL but running well for me.

Maybe I'll try this just to see what's in it
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
I do not understand you. [MENTION=3484543]paarkhi[/MENTION] asked for: Which recovery to use....for MIUI8 Nougat beta.....

Not for your ROM. MIUI8 Nougat beta is a closed beta ROM now. Paarkhi've pasted a link, that drives us to vietnamese MIUI site. This site contain some illegal shares. Not your work, original but unpublished Xiaomi's MIUI.

Sorry, I like your work, but now I do not understood you now.

I wish you a very-very hapy new year!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
I pasted a link which takes you to XDA thread and not vietnamese MIUI :D
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
Ok. You are right. Your link drives to XDA, that contain link to vietnames link.

Bytheway MIUI8 Nougat is closed rom. (Expect Mi5) sorry for my misunderstood.

Never mind, I am quit there.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
What all this has to do with this thread!?

And what is your problem with leaked stuff!? We get them all the time(grateful for that)... We have moderators to take actions for this kinds of problems if necessary...

And like I said use first link for twrp build with Android 7.1 branch and CM14.1 kernel no matter what ROM you are/going to flash/use...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] astherion:
Does anyone has problem with restore "cust" partition in this recovery? I has it today, and its OK with 3.0.2-2
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
Yes, I got an error while flashing leaked MIUI 8 Android 7 (could not install it)

error 'cust' could not copy '/cust'

But not with the beta miui roms
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] panyan:
does this on my helium, 8.1.3, unlocked bootloader
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] caniranges:
Hi,

Pls I have a hydrogen 3gb memory 64gb storage MimaX

Will this TWRP work on my phone?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Updated TWRP with freshly build kernel... Olld sdcardfs enabled CM14.1 kernel might be causing problems...

Updating TWRP just in case is advisable!!!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] orangekid:
I have a Hydrogen, 32GB / 3G device. I just did a full OTA, then bootloader unlocked, then flashed the latest version you have in the OP via fastboot command, and I get the weird flashing no work thing that others have stated.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
One page back https://xdaforums.com/showpost.php?p=70309828&postcount=31
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] orangekid:
Ok, may want to add that to the OP too.

the official TWRP build works perfect, I flashed that one.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] laolang_cool:
can you add f2fs support please? your version even can't reboot to recovery if data formated to f2fs, official has no this issue but it can't mount f2fs partition.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Support is there, why not working? Don't know... I can add f2fs encryption support too which might help if you ask nicely...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] laolang_cool:
I dont know... if I formated data into f2fs, your twrp will get stuck at the logo when booting, and screen is blinking always.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Ranomez:
[MENTION=4399618]nijel8[/MENTION] something is broken in this recovery, I do not know if it's because of changes made to the TWRP sources or specifically this build made by you but it fails to flash gapps zip files patched for mult-boot, what logs should I provide, recovery.log or would the MultiBoot.log also be helpful?

EDIT: Forgot to mention the gapps zips flash alright with TWRP 3.0.2.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
recovery log
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] laolang_cool:
can't... it even can't go into twrp when data/ is f2fs, has to go back to official twrp and format data to ext4.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tarkzim:
hey [MENTION=4399618]nijel8[/MENTION] , i found that someone has fixed encryption for Mi Max TWRP, but it's for helium for now, and seems like official maintainer is not going to respond for his pull request, maybe you can take a look into it, thanks.

https://github.com/AnClark/android_device_xiaomi_helium
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Looks interesting... I also asked him to add f2fs support so I can "steal" all at once.:p
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ivoxda:
hi everybody,

Can someone confirm?[emoji4]

i try install this recovery and beta N MiUi8...

thanks in advance
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] scurrvy2020:
the latest version 19-1-2017 did not work for me with my helium device. The screen flashed the twrp logo and was unresponsive.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Can you test this one. Pure code from TWRP source, no modifications... Can't figure out what the hell is going on!?:confused:

https://drive.google.com/open?id=0B60OA264UF_PTm9hT0FZUXBkOU0
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
I flashed 19-1-2017(modded by you) on my helium through recovery and so far it's running good.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
You see...? That's what I mean by "what the hell is going on"... And the worst part is you can't get log...:(

Must be different bootloaders/firmwares or something...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Tried that thing but twrp can't mount a single partition. Apparently this is not working for Android 7.1 with current 7.0 MIUI encryption libs. With 6.0 MIUI libs can't even boot... And I am not even encrypted.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Reb0rn:
The first thing I did after unlocking bootloader was try this twrp but as they stated, it only flashes the screen and didn't let me do ****. So I went with official and it worked as it should. Haven't bothered trying this again.

But as you stated. I was encrypted.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
I found that screen flashing bug happens when I flash any other ROM than your linageos. Happened when installing AICP. Got log for you, hope it helps.

Edit: I had to manually reboot by holding down power button. And after AICP booted and restarted back to recovery it started working fine without screen flashing.

Edit 2: Ohhh I think it was some different bug as it just wasnt booting to system after flashing AICP just screen flashing and booted back to recovery. So did thing with holding down power button.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Thanks, couldn't find anything pointing to that "flashing stuck"...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Another thing is that when I flashed latest miui Beta 7.1.19 it was showing me no OS message after I tried reboot from recovery to system(and miui wasn't booting) . I had to flash firmware and vendor zips from your linageos to get OS to boot. It happens on latest recovery. Can provide logs if u want.

Edit: I got a question, is there a way to make backups restore system settings(such as display, development settings and so on). That would be useful feature as those settings are always reset to default after restoring a backup.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Yeah, that really sucks and I thing it is something new in nougat rejecting restored settings b/c they are restored properly and still don't work on boot. Same goes for sms/mms in messages app... they are all gone after restore. Must be something similar like the lockscreen security that cannot be restored.

Have you tried to backup and restore with the official twrp 3.0.2.. ? If that one doesn't work then it's really something in nougat.

It also might be a bug b/c the same happens when you try to boot with profile that disables the lockscreen... it boots to black screen with status bar and you can't do anything. Only systemUI is running but no launcher and you loose the same settings, sms/mms etc. You have to reboot to twrp and delete /data/system/profiles.xml to be able to boot properly to Android. That is a nasty bug for me b/c this is the only way I know of that I can use fingerprint without lockscreen.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SubZeroNexii:
I'm on miui 7.1.12 and the latest recovery doesn't work, the screen just flashes with the TWRP logo. The official 3.0.2-0 works btw.

Edit: Formatting userdata seems to fix it.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
What do you mean by flashing userdata? Which userdata image did you flash? I am eager to fix this issue... give me more details, please.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SubZeroNexii:
I'm sorry, i acidentaly typed flash instead of format.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Was it encrypted?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] OrionBG:
I'm also having this flashing screen issue on my helium. Right now I'm on a completely stock MIUI 8.1.9.0 Stable.

When flashing the recovery with fastboot the screen just flashes the TWRP logo and nothing else happens...

TWRP 3.0.2 works.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SubZeroNexii:
Came from miui 7.1.12. I don't know if miui has forced encryption or not.

I never encrypted from settings.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] :
If you have come from stock miui it is encrypted by default
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SubZeroNexii:
A different type of encryption than the AOSP one?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] :
I think so. I had to wipe my device with fast boot after installing twrp so I could access my internal storage
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SubZeroNexii:
That's how I fixed it myself. I'm on lineageos now
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
That must be the problem, encrypted userdata. twrp 3.0.2(official) doesn't care but the new 3.0.3 is trying to decrypt and it can't b/c it's hardware encrypted.

Will see what I can do about it. Thanks for the feedback guys.

If someone can do one more test... When twrp starts to flash splash and can't boot, boot back to miui, decrypt your storage and see if it will boot...thanks.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] OrionBG:
Sorry for the stupid question but how to decrypt from MIUI?

UPDATE: I did Data Partition format from TWRP 3.0.2 and then flashed TWRP 3.0.3.1 and this time it booted correctly. So as you thought, the problem is with the encrypted data partition.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] The_wolf88:
I noticed the flashing TWRP screen when with the following,

When running MIUI 8 stock and flashing "twrp_v3031_hydrogen-helium_nijel8-MOD_A7.1-19.01.17" TWRP flashing bug happens and in won't boot to TWRP.

But when running same MIUI 8 stock and flashing twrp_v3030_hydrogen-helium_nijel8-MOD_A6.0 it boots to TWRP just fine.

Then when wipe data and flash img file for twrp_v3031_hydrogen-helium_nijel8-MOD_A7.1-19.01.17 from within TWRP itself it boots to the new TWRP normally.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Yeah, exactly what I was describing. MOD_A6.0 is twrp 3.0.2(despite I called 3030... that was before even twrp put 3.0.3 officialy) which doesn't try to decrypt userdata. MOD_A7.1 is 3.0.3 which tries to decrypts userdata at boot.

Latest official 3.0.2 hydrogen device tree already have xiaomi hardware encryption built-in but it wasn't working on 3.0.3 code last time I tried.

Soo....we'll see...

But as long as you don't have userdata encrypted you should not have problems running TWRP 3.0.3-1 at all. Except loosing some settings and stock sms/mms after userdata resrtore which is a Android 7.x thing and happens on any TWRP version right now unfortunately.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] XenSA:
sorry for the silly question but when i install via twrp it asks which partition to use recovery or boot?

i presume recovery partition is the right one?

thank you for any help
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I guess so...:)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Laut:
helium doesn't work. Just blinking.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
Yes. I confirm. On my Helium too. TWRP just blinking.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Decrypt userdata and it wont blink anymore...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
Aham...first use old twrp, and after your new... Thanks.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Laut:
need pass for do this.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kyler084:
Wipe data or install a unsecured boot img it won't be encrypted anymore
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
Yepp. Working. Thanks.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] brooklyn2001:
After flashing Lineage can't reboot to system - always reboot to recovery/
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SubwayChamp:
Can you enable MTP and mount system?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] brooklyn2001:
Yes, I can
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
If you have 64GB, you DON'T have Hydrogen, you have Helium. Be careful!

Mi Max 3/32 with Snapdragon 650 = Hydrogen

Mi Max 3/64 with Snapdragon 652 = Helium

Mi Max 4/128 with Snapdragon 652 = Helium
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] aaryan45:
Mi Max 2/16 with Snapdragon 650 = Hydrogen
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
And for more fun there are 3/64GB versions with Snapdragon 650 that are also Hydrogen :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
Information must have changed.

http://en.miui.com/thread-278949-1-1.html
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sebr:
I'm running MIUI 8 Global 6.12.22 Beta with unlocked bootloader (hydrogen). Is it safe to install this twrp version or will it result in the device being stuck at the MI logo?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] TEKME:
You'll only experience a softbrick with a locked bootloader, so yes, it's safe.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
First install official 3.0.2, decrypt userdata and then you can install this one.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] aaryan45:
But after installing lineage it reboots twrp again
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SubwayChamp:
Deleted
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sebr:
By "decrypt userdata" you mean wipe the device ?! Is it also neccessary to replace boot.img to avoid encryption?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Yes, you have to wipe. Lineage by Nijel8 has an unencrypting boot image so you can use that, but MIUI beta of Android 7 is encrypting, so is MIUI Android 6 ( at lest there is modified image for that somewhere in this forum ).
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sebr:
I guess with Lineage by Nijel8 (unencrypting bootimage) this should not happen, or?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] bbtown:
MY twrp logo also flash again and again loop loop loop.

And the google drive link is broken.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] caniranges:
Good Sir,

when i try to decrypt data, the 3.0.2 twrp asks for a password.

I dont know the password, and I cant find where to remove it.

My Helium Mimax has been unable to flash roms, as and it doesnt seem to have access to the internal storage.

Also, I tried installing your twrp, but it just flashes the twrp boot animation all the time off and on and nothing else.

I hope if i reinstall 3.0.2 twrp and decrypt data, it will work.

Please , how do i get past the password?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
You do not need password.

You need to go, Wipe, and Wipe data.

Be careful and know it will delete ALL DATA! But after reboot TWRP, you can access to internal storage and install custom roms.

小米MAX 3/64 - MIUI8 Dev 7.1.22 Android 7.0
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
What he said^^^

There is no password, it's hardware encryption. You just format data and you are good to go.

Don't install/boot MIUI after that unless boot.img is modified b/c it will encrypt your data at boot and you'll be back where you started.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] munkustrap:
Always curious why other Xiaomi devices, such as Mi5(the 'older' device) and Redmi Note4(the new device) got TWRP that can decrypt DATA without wipe.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
Main Secret... You are right.

小米MAX 3/64 - MIUI8 Dev 7.2.9 Android 7.0
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Uncle_James:
I have a same problem, but when I flashed first time, two days before, it worked OK. Wipe data, blinking.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tsd560ti:
Awesome fast and that new Recovery fixed my hydrogen@helium issue (you remember my noob-hardbrick? :DD)

One issue on Helium 3-64:

- When I press Restart System/Recovery or Power off, it always goes back into the Recovery. I shut it down with PWR+Vol down and then booted into your Lineage.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Neo.Collin:
[MENTION=4399618]nijel8[/MENTION] I always have this issue with your TWRP versions... after flashing when rebooting to recovery, it keeps blinking... i use hydrogen. I have to go back to older version, wipe data and get back and flash your recovery... anyway this can be fixed?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
First thanks for the translation... will be in next build if you just use template in OP and replace english with german. Keep it in

wrapping so no html interfering in copy/paste.

Try all these restarts again and after boot back to recovery run this command with USB connected from PC command prompt:
[CODE]
adb shell "cat /proc/last_kmsg" > c:\last_kmsg-[restart_to_what].txt

renaming file to last_kmsg-system.txt, last_kmsg-bootloader.txt, last_kmsg-poweroff.txt whatever you are restarting to. Post them here

flashing what? If stock MIUI that's exactly what should be happening b/c it forces userdata encryption unless you modify fstab in boot.img.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Update posted with added encryption support... Let see if this thing boots and decrypts MIUI now.

NOTE: it relies on encryption libs from ROM so if your system is corrupted or something and data is encrypted it probably not going to boot(need testing)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Recovery flashing bug is still present. Too bad i cant get logs cause i have no pc and when trying copy logs through recovery it only brings me dmesg and recoverylog.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sdheer2012@gmail.com:
Hi Brother, In my Hydrogen (India) with Twrp 3.0.2.0 I flashed MIUI8 N7 Version 7.2.9 from here

https://www.androidfilehost.com/?fid=529152257862702162

Then I restored the backup of MIUI8 version 6.12.22. In the first boot Sim card worked perfect but on reboot Sim Card is not detected, so no phone calls. Even I tried by restoring Global Stable version 7.5.7.0, same phone problem, but no problem with CM 14.1 rom. Is this any MIUI encryption problem? Can I try this Twrp 3.0.3.2 version of Yours, Pl suggest Brother what to do, Thank You.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Your flasing supersu also? If yes than flash latest supersu from here. No sim card its known issue on miui with older versions of supersu.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sdheer2012@gmail.com:
Thank You Brother for suggestion but SuperSU was not the problem for my device, I found out that was because of SimCard/tray, Now Sim working properly after reinserting it, I'm Sorry, Jesus Bless You.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] add_pl:
I cant restore my nandroid backup, cuz this error.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] avi3230:
U must have taken backup with different recovery.

Flash that recovery again and restore it.

Again flash this recovery and take backup which can be restored using this recovery.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] add_pl:
I cant boot into twrp by nijel8 only flash twrp logo and reboot
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
[MENTION=4934852]add_pl[/MENTION], First you need wipe all data with other twrp, encrypt your phone, as he said: https://xdaforums.com/showthread.php?p=70904413

小米MAX 3/64 - MIUI8 Dev 7.2.15 Android 7.0
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] add_pl:
My phone is encrypted
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Your wrong, encryption is about miui. While you flash any other rom like AICP, Nitrogen you get flashing screen. Its something with /data partition. Wiping data doesnt work after flashing rom cause it cant mount it(says theres that /data partitions doesnt exist). You have to reboot phone manually by long pressing power button and let rom boot than later theres no problem with flashing screen in recovery. Another workaround is to restore /data from backup after flashing rom and then it will normally rebbot to system. Also i cant covert /data to f2fs with nijel recovery(no problem with converting /cache to f2fs).

Probably it doesn't matter but i see that after wiping data from advanced wipe, "/Data" changes to "/data"(big and small D).

Since i have no PC I copied logs through recovery option. logs.zip
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
I have a working F2FS setup. Nijel8 rom and the built in kernel allow for F2FS /data partition. You have to clean

/data and /internal_sd

then convert them to F2FS, then restart recovery to let them be mounted correctly, then you have to change a variable in settings to use rm- rf instead of formatting (do that again even if you had that set before because cleaning internal_sd deleted all twrp settings so it was lost). Now you can install rom, then google apps, then firmware (if you want to) then restart.

Nijel8 fixed his rom/kernel in the midle of january I think, he made some changes to F2FS encryption and now it works - AFAIK the only rom that works.

You can't convert /system to F2FS but it would be useless anyway as the only speedup for f2fs comes from writing and writing/reading combination. Frankly /cache is most in need of f2fs anyway.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
I cant. I attached screenshot with error.

To get f2fs working i have to convert partition with official recovery(than after conversion official twrp cant mount f2fs /data and /cache dont know why). After this i flash njiel recovery, reboot to it and than njiel can mount them without problem.