Disclaimer:


Team Win strives to provide a quality product.  However, it is your decision to install our software on your device.  Team Win takes no responsibility for any damage that may occur from installing or using TWRP.

Status:


Support Status: Current

Maintainer: Bruno Martins (bgcngm), Louis Popi (h2o64)

Code Name: gemini

Device Tree / files

Support thread on xda-developers

Notes About Xiaomi Mi Devices:


Some Xiaomi Mi devices have bootloaders that require additional steps to unlock before you are able to flash custom images. This typically involves filling out an application to have your device unlocked.
You will need to follow the steps on Xiaomi's MIUI website in order to unlock your device.
Understand that unlocking your device will wipe all of your personal data, settings, and apps from its memory.

See: Apply for unlocking Mi devices

App Install Method (Requires Root):

Download the Official TWRP App (root required):

Install the app and open it. Agree to the Terms. Select TWRP Flash. Select your device from the device list (gemini) and choose a version. The file will download to your Downloads folder. Browse to and select the file. Tap on Flash to Recovery. Find out more about the app here.

Download Links:


Current and past versions of TWRP can be found at one of the mirrors below:

TWRP Install (Requires TWRP 2.8.4 or higher already installed):

Download the latest TWRP image file (.img) from the download link and boot TWRP. Go to install and find and select the Images... button. Browse to the image that you downloaded and select it. Choose recovery and swipe to flash.

Fastboot Install Method (No Root Required):

You will need the platform-tools from the Android SDK on your computer. Find the Android command line tools section on the page linked and install the SDK tools package. From the SDK Manager, download only the platform-tools to get adb and fastboot binaries.

Windows users will need proper drivers installed on their computer. You can try the simple FWUL adb/fastboot ISO or the Naked ADB drivers or the Universal ADB drivers if you don't already have a working driver installed

On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:

adb reboot bootloader

You should now be in fastboot mode.

Download the correct image file and copy the file into the same folder as your adb and fastboot binaries. Rename the image to twrp.img and type:

fastboot flash recovery twrp.img

fastboot reboot

Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.

Changelog:

  • Bruno Martins
    2017-02-23T22:30:46Z
    Merge changes from topic 'gemini-N-updates' into android-7.1 * changes: gemini: Update dependencies gemini: Update USB configs

  • Bruno Martins
    2017-02-23T18:50:15Z
    gemini: Update dependencies Change-Id: I9ca5befc019ce9136f1a00da05c80050de6ae2ff

  • Bruno Martins
    2017-02-23T18:43:22Z
    gemini: Update USB configs * Disable USB storage and remove mass_storage entries as there's no external sdcard * Only change USB mode to mtp when ready for MTP Change-Id: I4b989bf620c26ccca93df6d85d65485349ea8b70

  • Bruno Martins
    2017-02-22T14:38:41Z
    Merge changes from topic 'gemini-N-updates' into android-7.1 * changes: gemini: Remove init extension gemini: Add additional EFS partitions gemini: Add perf settings

  • Bruno Martins
    2017-02-22T14:30:34Z
    Merge changes from topic 'gemini-N-updates' into android-7.1 * changes: gemini: Sync with latest N ramdisk gemini: Update to N kernel and crypto libs