yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ogghi:
OK, I had time today, so complete fresh install.

Did flash official firmware, then TWRP RC1 over fastboot.

Then 20170221 LOS build with gapps pico and su.

Encrypted, and it works just fine to decrypt, everything as expected.

Thanks for your work!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Does format data work for you? Did you try it? Would be nice to know it is individual issue or common...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ogghi:
Well, I formatted everything after flashing TWRP.

There were no issues...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Xiaoyu Jiao:
Same here...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] zilan:
Hi, im coming from miui 7 and then back to miui 6, twrp ask to decrypt data, whats the password?

Iam using twrp from post#3 and flash using flashify but cant decrypt using default_password.

Also i hv set screenlock to password and use the password to decrypt but still it failed. :confused:

Any solution plz? :confused:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Philb90:
Password is yes.... By the way just backup your stuff and format data.... U will be decrypted forever :)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] BatChen:
reboot recovery and reboot bootloader is broken
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ogghi:
No need to quote the whole post...

What version?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Xiaoyu Jiao:
I've been using the RC1 for nearly three weeks and it works well.Thank you!?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] stillka:
same here, RC1 works great
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] the_poolee:
TWRP v3.1.0 released... Straight PC backup..gotta check...:fingers-crossed: [MENTION=455439]bgcngm[/MENTION] OP to be updated, right?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Yes, new official release. Will update thread when possible.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Strange thing happened...I have just updated to official stable TWRP 3.1.0-0 release and after that I noticed PC can't recognize the phone anymore even if ADB, fastboot, device drivers are reinstalled.

I can't transfer files from PC to phone neither...

Anyone with this issue after updated to latest TWRP? What is the solution?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] simplicio11:
me too. If I select photo transfer works, but files (generic) no, the PC can't recognize Mi5.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Strange why the other "hardcore" users here did not notice that or if he noticed that why they did not give feedback to developer in the test phase!?

I was the only one who provided feedback regarding this major issue... Others just said all perfect...lol...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
...and a minor issue also detected. Directly after reboot to TWRP it displays incorrect battery level in the status bar (50%) and after a while it will change to the correct value:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ARUN B:
This issue was present in earlier versions also.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Yeah I know, but the phone can't be recognized by the PC after update TWRP issue wasn't present in 3.0.2-3 release for sure...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ARUN B:
Right. I was talking about the second issue.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Simply don't use the latest official release. I realised it was built with old 6.0 device tree and Omni 6.0 sources. Already asked TeamWin to remove this build and compile a new one with proper sources, so please wait.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
3.1.0-0 should be withdrawn imo
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
I don't know if they will remove it and build a new 3.1.0-0 image or build a maintenance release (3.1.0-1) instead. Just wait.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Thanks. Proper corrective action...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Tech_Savvy:
in order to get computer to see phone you have to go into device manager, find the mtp with ! mark next to it/rightclick/update software device/browser my computer for driver software/ pic "let me pick from a list of device drivers on my computer/ click "MTP USB Device" and click next.....and done
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Tried but it does not work! Phone can be recognized only in case if (PTP) Transfer Photos USB mode enabled.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] reggger:
What will happen with the 3.0.3 release if 3.1.0 is out now?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] smeroni68:
Hi Bruno, new version has been released as a maintenance build.

Installed and the first thing that appear is the inversion of the hardware buttons related to previous builds and navbar. Back hw is on left instead of right position. :)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Yes, released as 3.1.0-1 and 3.1.0-0 was pulled off.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vampsoft:
Work on Miui otas??
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
Yes, but that's only about original MIUI recovery.

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Alkemix:
By test release (USB OTG fix) flashing roms and Nandroid backup works without issues. Good work !
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] hvung1982:
Im on 3.0.2.0, and make full backup official China Dev ROM successfully.

But when I restore it, my Mi5 stuck at Mi Logo.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] baszu:
Sometimes, twrp restart during flashing. For example, I select 4-5 zip but it reboot after flashing 1st file.

This happen especially when I switch between each rom e.g. Global <> xiaomi.eu <> sMIUI. If flashing the same rom (file) again, it will not reboot during flash.

Using 3.0.2-0
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Alkemix:
I've tried to restore also and no problem, all work perfect for me for now.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] hvung1982:
In my case, everything seems all right when Im in recovery.

But after I reboot, my phone stuck on Mi logo, I wait for about 20 minutes but nothing happened [emoji24]
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] hampa:
Should I use this one if I'm going to install CM13? or the miui8 recovery?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Good luck using stock recovery to flash a custom ROM. Seriously, you need TWRP.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] hampa:
Yes, ofcourse. What I ment is there is two versions of TWRP out. One from eu.xiaomi TWRP_gemini_MIUIv8.zip at this site. https://www.androidfilehost.com/?w=files&flid=50678 and one from official twrp site. Which one to use?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
TWRP official one, obviously.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] trifos:
i have this issue me to.

---------- Post added at 01:05 AM ---------- Previous post was at 01:00 AM ----------

just so, in miui 7 I had no problem with the installation
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
That's curious. Can you share the recovery log? Grab it from /tmp:

adb pull /tmp/recovery.log
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] baszu:
Today, the suddenly reboot while flashing issue happen again. What can I do to identify root cause?

1. I'm on Global Beta 6.8.11 with official 3.0.2-0 (build 2016-07-06 07:39:19 EDT)

2. Dirty Flashing xiaomi.eu 6.8.12, and notice twrp reboot while flashing rom.

3. Recovery corrupt and cannot boot into twrp recovery anymore

I suspect twrp crash when there is a command to flash recovery in updater-script, however, re-flash the same file does not always reboot during flash.

Cannot copy /tmp/recovery.log as I don't have root access after this issue, re-flashing twrp via fastboot again make a new recovery.log

============

just flash test build, will feedback again if issue occur.

============

test build is also suddenly reboot while flashing xiaomi.eu rom.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
That's most likely an issue with the update.zip that you're trying to install. Not much I can do without a log.

Can you get last_kmsg right after the phone reboots to see if something comes up?

adb pull /proc/last_kmsg
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] baszu:
last_kmsg is 0 byte, so nothing there after phone reboot.

shell@gemini:/proc $ ls -l last_kmsg*

ls -l last_kmsg*

-r--r----- system log 0 2016-08-17 16:30 last_kmsg
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
It is not, it can't be empty. Pull it with adb like I've advised above or just:

cat /proc/last_kmsg > /sdcard/last_kmsg
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] baszu:
Yes, I try adb pull like your advised command and the file is 0 byte. That's why I do adb shell and ls -l to check file size.

Maybe, we can't access the file without root permission.

shell@gemini:/ $ ls -l /proc/last_kmsg

ls -l /proc/last_kmsg

-r--r----- system log 0 2016-08-17 17:02 last_kmsg

shell@gemini:/ $ cat /proc/last_kmsg > /sdcard/last_kmsg

cat /proc/last_kmsg > /sdcard/last_kmsg

shell@gemini:/ $ cat /sdcard/last_kmsg

cat /sdcard/last_kmsg

shell@gemini:/ $

---------- Post added at 10:15 AM ---------- Previous post was at 10:00 AM ----------

Another interesting point that I just found.

I try flash only rom file (1 file) for 5 times and there is not reboot, but when I try select 3 files together, it reboot. If select those 3 files one by one, it is also not reboot.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ViRuS-MaN:
this version work with miui 8.0 ???
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
It works with everything.

- sent from my Mi5
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ViRuS-MaN:
when i install trwp with miui 8 in my mi5 pro i see trwp but it s not possible to choice the language and when i rebbot i have black screen with the logo mi , for me no work
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
TWRP 3.1.0-1 tested and it works fine for me. Now phone can be recognized by PC in all (below) phone states while connected by cable :

1. TWRP normal mode

2. TWRP ADB Sideload mode

3. Fatboot mode

4. After reboot to system and "transfer files" usb mode selected

For this result I had to reconfigure the corresponding driver in device manager as Android phone > MTP USB Device

It did not work in previous 3.1.0-0 build...

Thanks!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] masterlo3:
You mentioned the previous one was compiled with Android 6.0 sources, can you confirm the 3.1.0-1 version is built with latest nougat sources?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Yes, 3.1.0-1 was built with Omni 7.1 sources and of course android-7.1 device tree.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
...and Android 7.1 device tree is fully compatible with devices using Android 7.0 based ROMs? (just like Android 7.0 based MIUI8)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] masterlo3:
Thanks and am downloading right away
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
[MENTION=455439]bgcngm[/MENTION] could you please check it? Thx
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Check what? Recoveries are ROM agnostic.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Check my post...

I just would like to know Android 7.1 device tree (what you mentioned above) is fully compatible with Android 7.0 and Android 7.0 based ROMs? (for example Android 7.0 based MIUI8)

So, can we use TWRP 3.1.0-1 with Android 7.0 based MIUI without any compatibility issue?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
I already answered to that on my previews post.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
What happens normally when a new version is out? People tend to update to the latest, which should be the case here. Besides, the new one is now official and the one you refer was a preview/test version.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andythedev:
Thanks for all the work. I'm currently on 3.1.0 and wondering if official support for 7.0/7.1 encryption is coming.

I've encrypted my device with LOS which has left TWRP unable to decrypt it.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Are you saying that decryption isn't working on the official 3.1.0-1?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
I can confirm it (official 3.1.0-1) isn't working on my end. The release candidate from this thread still works fine, however.

Perhaps I need to encrypt on a newer build to test this better? Would that test be of any use to you?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
No, that doesn't make any sense. I don't know what happened, but I can't investigate right now.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] simplicio11:
I've the same issue: PC can't recognize phone. I'm on twrp 3.1.0-1. How do yuo fix this?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
connect phone and choose transfer files USB mode on the phone > open device manager on PC > find the MTP with ! mark and right click on it > update software device > browse on my computer for driver software > let me pick from a list of device drivers on my computer > choose Android Device > choose "MTP USB Device" > done

---------- Post added at 08:18 PM ---------- Previous post was at 07:34 PM ----------

Checked and unfortunately I cant find the answer, but would be nice to know that...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
He mentioned recoveries are ROM agnostic, so it doesn't matter which ROM you're on. The TWRP 3.0.2 we were running with nougat for so long was based on marshmallow. You can run 3.1 with any ROM without any issue.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Great! Thanks a lot!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andythedev:
To clarify, decryption in TWRP, following encryption in LOS, doesn't work.

No rush but I'd be happy to test if needed.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] lukigoes:
Thank you very much for your work!

Is it possible to correct to link you had written in your post? For me it is broken..

I think you meant this link: https://github.com/omnirom/android_bootable_recovery/commit/ce8f83c48d200106ff61ad530c863b15c16949d9

Thanks again, keep it up! :) :good: :fingers-crossed:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
That's right, thanks for the notice. Already corrected.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] fuxmen:
hey, after flashing latest TWRP, its not booting just show mi logo for 10-15s and then shutown :/ Rom boots normally, and strange is that when trying to boot to TWRP there is no unlocked under mi logo. Flashed with app.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] patrikos23:
me work fine in miui 7.3.9 and RR 5.8.2
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andythedev:
Any update/recognition on the issue mounting LOS encrypted storage? I assume it'll be an issue for all 7/7.1 ROMs.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
OT, but out of interest, are you currently able to change your encrpytion password in LOS? It was possible before but it seems to be broken for me now.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
There we go again.... Please download the test release from post #3 and let me know if decryption is working.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] busdriver+:
Hi togehter,

I have the problem with Error 7 at my Mi5 64GB version.

Every time when I want to update my phone with the Updater app I still get Error 7. Then, I reboot to system and MIUI recognizes that the update was failed.

The MIUI loads the full ROM down to my phone, then I restart to recovery and the installation works.

At TWRP 3.0.2.0 I had the touch problem, at TWRP 3.1.0.0 the problem is solved, but I have always the update problem.

I use the official MIUI Global Developer ROM.

What can I do? Some users on the internet means I have to update my bootloader.

Recovery log attached. Thanks.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
This TWRP doesn't support incremental OTA updates
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] hans william:
I have the same problem Sir
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] busdriver+:
Ok, thanks.

But why does this TWRP doesen't feature this function?

When I re-flash the stock MI Recovery I get Error 7 too.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] BatChen:
hey，i have a problem.i used twrp 3.1.0-1 to flash lasted cm13 . and then it is not booting，just always show cm logo.so，could you tell me how to deal with it ？thanks a lot.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] IgorEisberg:
I'm still on Marshmallow.

Both TWRP-3.0.3-0-RC1-gemini and TWRP-3.1.0-test-gemini still ask for a password...

Had to go back to twrp-3.0.2-3-gemini. :/
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] achickennugget:
3.0.3-1 Official is available on TWRP website
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] IgorEisberg:
Let me be more specific.

The official twrp-3.1.0-1-gemini.img asks for a password on recovery boot.

And so... I tried the releases on this post.

Both TWRP-3.0.3-0-RC1-gemini and TWRP-3.1.0-test-gemini still ask for a password...

So I went back to twrp-3.0.2-3-gemini.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ippatt:
If your data partition is encrypted, Twrp will always ask for password code, Except You format the data partition.

Edit: you are in the marshmallow rom now?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] IgorEisberg:
Yes, I'm on Marshmallow.

And if what you say is correct, then 3.0.2 should also ask for a password - but it doesn't. It mounts the data partition normally.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ippatt:
Agree...

Now i remember, few days ago, I flash miui eu nougat with encrypted data partition using twrp 3.1.0-1. And I can boot both system and twrp without input pin or password code after set something in the setting app,,, under privacy setting, there an option like "use lockscreen code to decrypt data", try to enable and disable it there.

And, I think you need to know, twrp 3.0.3 and newer is (especially) for nougat rom, because they use blob from Android N now.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] IgorEisberg:
Well, my lock screen is turned off and the "Encrypt device using lock screen password" is also turned off, so... I don't think that's the issue here.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Sir Mohd:
I have a new Mi5 i want to flash a custom rom

Should i use this one here in thread : 3.1.0-0

or

from the official website TWRP : 3.1.0-1

Regards.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Official.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Xiaoyu Jiao:
3.1.0-1 is recommended:o
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] SignalX:
okay guys

finally i found this simple way to solve and bypass this unknown required password for using latest twrp

SIMPLE WAY TO USE TWRP without PASSWORD

1- backup your data to your pc

2- flash twrp-3.0.2-0-gemini.img (dl from HERE)

3- go to recovery menu and Format data

4- THROUGH RECOVERY, reboot to Bootloader directly

5- flash twrp-3.1.0-1-gemini.img (dl from HERE)

and enjoy your latest twrp without any password
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ippatt:
LOL ?

Guide is to long.

Simply way is format data from recovery will clean everything and done, no more encryption in data partition and no more decryption password.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] IgorEisberg:
How about a real solution to the problem, instead of a workaround that involves the removal of about 80GB of data?

There is no encryption to begin with (else TWRP 3.0.2 would request a password as well), so the problem is incompatibility rather than the data being encrypted. There is no good reason why the new TWRP can't treat the data in the same way as the old TWRP.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Right, I didn't realise this when I tested. So 3.1 will only work on a clean install?

Has anyone tested encryption on 3.1 with the Mi5?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vicky1859:
I'm on latest global developer version, just now unlocked the bootloader. whenever I try to flash latest twrp 3.1.0-1, it always gets stuck at MI logo. I reflashed the Fastboot rom a couple of times with flashtool and tried again but still the same. Can someone help me with this issue please.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] zabihjan:
Wrong thread
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] 4719:
Still can't backup to PC.

Stuck on: Now open your device and confirm the backup operation.

Help anyone?

Thanks
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] jalalrsa:
always when flash new rom, i convert file system as f2fs, after i install rom, file system remains ext4, im on twrp 3.1 version, is there anything i have to do, please need help for that
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] p8pepe:
Only Ext4 is allowed for System partition. Even if you manually convert it to f2fs it will be reformatted to ext4 during rom installation.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] georgekav33:
For me the

adb backup -f <filename> --twrp --compress system

doesn't seem to work. It displays "Now unlock your device and confirm the backup operation..." and stops.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] crashdjent:
The last TWRP 3.1.0-1 shows incorrect information about the battery. Always 50%
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
It corrects itself after a while. Known issue. Search the thread.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] char101:
To run

adb backup --twrp

with this recovery, run this command first:

adb shell cp /sbin/bu /system/bin

(note: don't mount the system partition when running this command).

Based on https://review.lineageos.org/#/c/165386/ and https://github.com/omnirom/android_bootable_recovery/issues/132.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] 4719:
At last! Spend hours trying to solve this one.

Thank you very much!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] kamleshrc:
i unlocked my bootloader and installed twrp via fastboot. i reebooted to twrp and rebooted to system. but it got stuck on the mi logo. did i do something wrong ?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] crashdjent:
You must install any rom via twrp. Miui or aosp based custom rom
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] kamleshrc:
so i download the miui v8 from the website and i can flash this using twrp ?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
You have to flash it via twrp, just get the rom version you need, boot to twrp recovery and flash the rom you have saved on your phone.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] kamleshrc:
every time i boot into recovery it asked for a pattern password to decrypt the phone. Is there a way to disable this ? is this standard for this version of twrp or did i do something to enable this ? thank you
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] graw2:
Official twrp-3.1.0-1-gemini.img seems buggy. I am using it with latest MIUI develeoper ROM and if I make format data then I get lot of red lines as result. Please someone test it.