[RECOVERY][UNOFFICIAL] TWRP 3.2.3-0 recovery - regularly updated

Search This thread
########## #############

Official TWRP with prebuild Kernel is available here:
https://forum.xda-developers.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://forum.xda-developers.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:

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

DaCoolX

Member
Dec 1, 2017
12
2
Thanks, works great so far.

As mentioned in the Lineage thread I intend to you encryption, neither the MIUI nor the iceman TWRP recoveries manage to mount my encrypted LineageOS storage, they just fail after the prompt.
Under this recovery I don't get a prompt.

Just wanted to mention, I will use it and test it anyway if encryption is not working yet, I will manage somehow.
 
  • Like
Reactions: raupe

Feenfleisch

Senior Member
Nov 22, 2010
91
8
Only then ist booting recovery. Ich flash with Flashify

---------- Post added at 07:02 PM ---------- Previous post was at 06:57 PM ----------

The TWRP fromm the last link work (twrp-3.2.1-0-chiron_raupe-20180104-1520.img), the TWRP from your first Link not work. Maybay the wrong link?
 
Only then ist booting recovery. Ich flash with Flashify

---------- Post added at 07:02 PM ---------- Previous post was at 06:57 PM ----------

The TWRP fromm the last link work (twrp-3.2.1-0-chiron_raupe-20180104-1520.img), the TWRP from your first Link not work. Maybay the wrong link?

Uuuuuuups ;)
Link leaded to Mi MIX instead of Mi MIX 2 download.
I fixed that ...

Thanks for the hint.

I've heard about several issues with flashify - better use fastboot.
 
  • Like
Reactions: allrockedout

allrockedout

Senior Member
Mar 31, 2011
1,472
373
Xiaomi Mi 9
OnePlus 9
... hmm this is very unusual - tested the speed to server and it took me a couple of seconds.

If you host the file as mirror please keep an eye for updated versions in future.
Yeah I'll keep it updated of course. Plan on keeping this phone for a while. So I flashed twrp 3.2.1-0 image in twrp rebooted back into twrp..now my file storage is encrypted again. So I'll have to wipe data again... Ugh ok I'll test it out.
 

AndyYan

Recognized Contributor
Jan 30, 2012
4,682
4,185
Beijing
Cheers - downloading now.
This is vanilla TWRP right? Tired of seeing different themes, Chinese or other "customizations" in other TWRPs.

Sent from Xiaomi Mi Mix 2 @ LineageOS 14.1
 
Cheers - downloading now.
This is vanilla TWRP right? Tired of seeing different themes, Chinese or other "customizations" in other TWRPs.

Sent from Xiaomi Mi Mix 2 @ LineageOS 14.1

Jepp this is stock/vanilla TWRP.
The only change i've made was to activate NTFS support some Qualcom specific stuff and disable the annoying "mouse" cursor that is present on default builds.

As you can read in comments (here and in Mi MIX forum) there are some hick-hacks with encryption.
This take a more deep dive because of the huge amount of variants the encryption has made from (a.k.a.: every OS build of MIUI/LOS/RR/Epic/mi-globe may use an different approach/driver for encryption).
There seems to be an problem with software and hardware encryption that conflicts with each other (see LineageOS change id 199842)
 
Last edited:
I had to flash back to epic twrp. Couldn't remove encyption. After wiping data and rebooting to system than back to twrp. Everything was encrypted.

Greetings @allrockedout!

Thanks for your report!
Just to figure out what leads to this behavior - could you give some information about your current firmware version, build date of the epic rom you used and what kernel the device info states?

Thanks in advance!
 

allrockedout

Senior Member
Mar 31, 2011
1,472
373
Xiaomi Mi 9
OnePlus 9
Greetings @allrockedout!

Thanks for your report!
Just to figure out what leads to this behavior - could you give some information about your current firmware version, build date of the epic rom you used and what kernel the device info states?

Thanks in advance!
I'm on Global Developer beta
 

Attachments

  • Screenshot_2018-01-05-07-11-42-122_com.android.settings.png
    Screenshot_2018-01-05-07-11-42-122_com.android.settings.png
    144.1 KB · Views: 359
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 36
    ########## #############

    Official TWRP with prebuild Kernel is available here:
    https://forum.xda-developers.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://forum.xda-developers.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:

    Sourcecode (updated 2018-08-15 / v13):
    7
    Attention: BETA, BETA!

    Are you in "treble"? ;)

    Here is how to:
    Someone™ is working on a project treble compatible Android release - here is an matching TWRP for this
    https://has-inter.net/index.php/s/KoszcczpaKoYngs - Download possible until: 2018-03-08

    Changelog:
    • removed /cust partition entry
    • added /vendor & /vendor_image entry (those leading to the partition that was previously mounted to /cust)
    • changed kernel to official Mi MIX 2 Oreo kernel released some days ago

    Working (tested with MUI 8.2.1 by xiaomi.eu):
    • touchscreen
    • brightness
    • partition layout

    Has to be proved as working or failing:
    • en-/decryption with LineageOS/Resurrection Remix/AOSP/AICP/...
    • en-/decryption with MIUI
    • project trebble support

    Any feedback with information what is not working and what OS & version you use is very welcome.
    6
    It looks like we have a winner ...

    ... stay tuned for an update tomorrow!

    (have to do some compatibility checks with different firmwares & OS versions)
    6
    Short update:

    I've build a new version with MTP/ADB support mainly for the Mi MIX 2 yesterday.

    Download new version here: https://www.nextgen-networks.de/downloads/category/15-xiaomi-mi-mix-2.html

    To-Do List for universal:
    • MTP/ADB via USB should be fixed - done
    • USB Storage via OTG should be fixed
    • en-/decryption should be fixed (discussion/development here)
    • touchscreen issues have to be sorted out
    • display brightness should be improved
    5
    TWRP recovery 3.2.1-0 UNIVERSAL BUILD - 20180119-1700

    Update time! :)

    New build (20180119-1700), with many fixes unter the hood...
    ... those that can be noticed by you:
    • display brightness fixed - it's bright again!
    • additional partitions backup & restoreable (15 overall)
    • Backup is on speed again! :) (70-100 MB/s)

    DOWNLOAD: https://www.nextgen-networks.de/downloads/category/15-xiaomi-mi-mix-2.html

    Please read known issues carefully! (en-/decryption still does not work)