[Onetouch Idol 3 Android Development] persona78:
Team Win Recovery Project 3.X+, or twrp3for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface,but you can use hardware buttons too.The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

Features since 3.1.0-0

vold decrypt on a few select HTC devices, TWRP will now attempt to use the system partition's vold and vdc binaries and libraries to decrypt the data partition (nkk71 and CaptainThrowback)

adb backup to stream a backup directly to or from your PC, see documentation here (bigbiff)

tweak MTP startup routines (mdmower)

support new Android 7.x xattrs for backup and restore to fix loss of data after a restore (Dees_Troy)

support POSIX file capabilities backup and restore to fix VoLTE on HTC devices and possibly other issues (Dees_Troy)

better indicate to users that internal storage is not backed up (Dees_Troy)

improve automatic determination of TW_THEME (mdmower)

minimal getcap and setcap support (_that)

try mounting both ext4 and f2fs during decrypt (jcadduono and Dees_Troy)

shut off backlight with power key (mdmower)

timeout during FDE decrypt (Dees_Troy and nkk71)

support for FBE decrypt and backing up and restoring FBE policies (Dees_Troy)

boot slot support (Dees_Troy)

TWRP app install prompt during reboot (Dees_Troy)

support for AB OTA zips (Dees_Troy)

support new Android 7.x log command (Dees_Troy)

update recovery sources to AOSP 7.1 (Dees_Troy)

numerous bugfixes and improvements by too many people to mention

This is thanks to the Xiaomi mi4i devs and [MENTION=5218324]persona78[/MENTION] for porting it to 6045 (and [MENTION=8126292]satana.nik.1996[/MENTION] for starting to port TWRP from other phones, in 4PDA)

Supported Devices

Any 6045 Variant

Installation Guide

There are multiple methods, i will post the 3 i know here

If you have stock recovery and you are on Lollipop

Install fastboot tools (Android) from google's Sdk on your PC

Reboot in Fastboot mode, pressing volume - and USB cable into the pc or enter into fastboot using in adb (with usb debug enabled) adb reboot-bootloader

Enter the command : fastboot -i 0x1bbb flash recovery twrp-3.1.0-0-m1_Idol3.img (I suggest to rename the file, for to example twrp.img, so you just write fastboot-i 0x1bbb flash recovery twrp.img)

write : fastboot reboot, and when the phone is starting, only press volume+ and you will enter to TWRP

If you have TWRP installed (Any android version)

Boot into TWRP using Vol+ and Power

Go to Install

Press Install Image and search twrp-3.1.0-0-m1_Idol3.img

Then Press Recovery, swipe and it is installed

If you have MM stock, without TWRP and ROOT

Install/Search Rashr from Play Store

Grant SD and Root Permissions

Press Recovery, then search twrp-3.1.0-0-m1_Idol3.img

Press install and you are done

Bug/s TWRP 3.1.0-0

You can't reboot into Recovery from Recovery (you can just press vol+ to avoid this)

It shows internal Storage 2 times, but does not affect in anything (just make sure when you wipe, just wipe 1 and not both at the same time)

You tell me

Bug/s TWRP 3.0.2-0-r5

You can't reboot into Recovery from Recovery (you can just press vol+ to avoid this)

Sort of Laggy (like TWRP 3.0.1-0)

You tell me

Download

TWRP 3.1.0-0 https://mega.nz/#!p4g2RYQS!uq4nFsef55JiKUoepU6kASGfI8sz6Tf970nEyNHHdE8

TWRP 3.0.2-0-r5 https://mega.nz/#!FxxxWYRS!PebYGrzogP8OohJ9IrjpAar8Ya2c4BK8NdmX4jFyJPw

Full ROM backup via ADB https://xdaforums.com/idol-3/general/backup-adb-recovery-twrp-3-0-2-r5-twrp-t3574214

[TOOL] [WINDOWS] TWRP Backup & Restore Tool For PC (not tested on idol3) https://xdaforums.com/android/software-hacking/tool-twrp-backup-restore-tool-pc-t3572241 (from xda, [MENTION=6216886]dexbyte[/MENTION])

Creator

juliusssssmiui

Edited for Idol 3

[MENTION=5218324]persona78[/MENTION]

Source Code: https://twrp.me/devices/xiaomimi4i.html

Version Information

Status: Beta

Current Stable Version: 3.0.2-0-r5

Stable Release Date: 2016

Created 2017-03-10

Last Updated 2017-03-17