[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] raupe:
########## #############

Official TWRP with prebuild Kernel is available here:

https://xdaforums.com/mi-mix-2/development/recovery-twrp-3-2-1-0-xiaomi-mi-mix-2-t3780525

########################

Greetings flashaholics!

As usual before flashing this TWRP make an complete backup of your system!!!

Why another TWRP?

you'll get the latest TWRP release with most recent features & bugfixes

build live from sources - no prebuild kernels/files

more partitions to backup/restore supported

made project treble compatible by adding vendor & vendor_image partitions (leaving cust partition available for legacy purposes)

double tap to wake display

survives installation of official MIUI Global/CN ROMs (read INFO section to know how to achive that result exactly)

DOWNLOAD TWRP 3.2.3-0

... please see also supplemental infos & tool downloads below in INFO section

Please leave feedback for the beta. Does it work well? Did you encounter any problems? THX

Important changes in latest 3.2.3-0 build: 20180815-2003

based on fresh MIX 2 OmniRom base files and new msm8998 common sources - speed seems to be upgraded a little

previous changelog:

TWRP 3.2.3-0 based - build on Nextgen-Networks build environment with latest kernel 4.4.78

"FrankenTab" - mixed fstab v1 & v2 layout to achive de-/encryption and also keep as much partitions available as possible

treble compatible (by adding vendor & vendor_image partitions)

backup write speed restored (80 MB/s for file systems / 110 MB/s for imaged drives) and stayed compatible with OmniRom power/storage/kernel settings

Build completely live from latest build tree files - prebuild kernel fragments not needed anymore *yay*

en-/decryption support

ADB/MTP support

display brightness fixed - it's bright again! (see detailed notes in download section if it did not work for you)

additional partitions backup & restoreable (20 overall)

doupble tap to wake display is supported

display works when booting from LOS/OmniRom/RR to recovery via menu

survives installation of official MIUI Global/CN ROMs (OTA not tested yet)

Tested and perfectly working with ROMs as follows

MIUI 8.8.9 xiaomi.eu

MIUI 8.7.x xiaomi.eu

MIUI 8.6.x xiaomi.eu

MIUI 8.6.21 CN / xiaomi.eu

MIUI 8.6.14 Global

MIUI 8.6.8 CN

MIUI 8.5.11 Global

MIUI 8.5.8 Global / CN / xiaomi.eu

MIUI 8.5.2 Global

MIUI 8.4.26 by xiaomi.eu

LineageOS 15.1 build 20180501

OmniRom 8.1.0-20180430 HOMEMADE

:confused: INFO:

official MIUI Global/CN ROMs installation survival: dont reboot after ROM installation/update - just start a new flash session and flash latest magisk beta in a separate process - thats all! (OTA survival has not been tested by now)

If your TWRP gets constantly overwritten then flash the no-verity-opt-encrypt-1.6.zip right after your flashed TWRP to your device and right after each install/update of an original XIAOMI ROM from (en.)miui.com.

Procedure not needed for xiaomi.eu based ROMs.

Download no-verity-opt-encrypt 1.6 here

To make the flashing a little more convenient I've written a little windows script that utilizes adb/fastboot and presents all recovery images in its folder for your flashing happiness ;)

This package also contains a script to remove/bypass the pin/passcode/pattern you've set - this could help then restoring an backup and the definitely correct pin/passcode/pattern is not accepted afterwards

Download recovery-flash.cmd 1.29 here

need an matching firmware for your device?

Download here from the Xiaomi Firmware Updater project on XDA (downloads in post 2)

Some very clarifying official information about en-/decryption types and how it works: https://source.android.com/security/encryption/

take a look here to have a full backup with internal storage covered also: [URL="https://xdaforums.com/android/apps-games/app-twrp-tipatch-backup-internal-t3831217]Info & Download TiPatch[/URL]

For more detailed changelogs visit the download page.

Updated versions will be announced in this thread.

Instructions how to setup & build your own TWRP:

https://github.com/nextgen-networks/android_device_xiaomi_chiron-OMNI/blob/android-8.1_v10/README.md

Sourcecode (updated 2018-08-15 / v13):

Modified TWRP: https://github.com/nextgen-networks/android_bootable_recovery

Device-Tree (Device): https://github.com/nextgen-networks/android_device_xiaomi_chiron-OMNI

Device-Tree (SOC): https://github.com/nextgen-networks/android_device_xiaomi_msm8998-common

Kernel: https://github.com/omnirom/android_kernel_xiaomi_msm8998

Vendor-Tree (Device/SOC): https://github.com/DonkeyCoyote/proprietary_vendor_xiaomi