[RECOVERY] TWRP 2.8.7.0 touch recovery for Mi4i

Search This thread

dh.harald

Senior Member
May 20, 2010
594
1,611
London
Team Win Recovery Project 2.x, or twrp2 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

Use it carefully, i didn't tested it very well... At least, installing my CM works :)
I'm not responsible if you transform your phone into a brick!


I've decided to compile own TWRP.

FEATURES
- Latest cm kernel (https://github.com/dh-harald/android_kernel_xiaomi_ferrari)
- upstream repository from (https://github.com/omnirom/android_bootable_recovery)
- native 64bit / QCOM_BSP / QCOM HW disk encryption
- f2fs enabled (to use it, you need 20150916 or later CM of mine -- if you're using different CM version, contact to your maintainer)

COMPILE GUIDE
Soon...

DOWNLOAD
twrp-2.8.7.0-ferrari.img - 30.15 MB

INSTALL
- Install fastboot drivers
- Download it to your computer
- Reboot your device into bootoader mode
- fastboot flash recovery twrp-2.8.7.0-ferrari.img

BUGS
You tell me...
 
Last edited:

dh.harald

Senior Member
May 20, 2010
594
1,611
London
HOW TO COMPILE
1. you need to use my minimal repo to create the build environment:
Code:
repo init -u git://github.com/dh-harald/twrp_android.git -b cm-12.1
2. add a xml file to local_manifests:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
    <project path="device/qcom/common" name="CyanogenMod/android_device_qcom_common" />
    <project path="device/xiaomi/ferrari" name="dh-harald/android_device_xiaomi_ferrari" />
    <project path="kernel/xiaomi/ferrari" name="dh-harald/android_kernel_xiaomi_ferrari" />
</manifest>
3. sync the repository
Code:
repo sync
3. (optional - I don't know is it still need or not) You need to patch external/sepolicy
use this link, what do you need to change: http://review.cyanogenmod.org/#/c/89474/
4. compile it
Code:
$ . build/envsetup.sh
$ lunch cm_ferrari-userdebug
$ make -jX recoveryimage
X is based on your nr of CPUs

If you have a synced CM working tree, you can try to replace CWM to TWRP, and compile it, but last time it breaks my CM build... -> I use this method
 
Last edited:

candiesdoodle

Senior Member
Jan 24, 2012
851
286
New Delhi
@dh.harald when you say " fastboot boot flash fastboot flash recovery twrp-2.8.7.0-ferrari.img"
It really means " fastboot flash recovery twrp-2.8.7.0-ferrari.img"
correct?
just got confused with the initial "fastboot boot flash "
 

Kreaz

Senior Member
May 5, 2012
402
132
Jakarta
IIRC, we can just simply push the recovery to its corresponding partition/folder in /dev/block/ using Android's Terminal Emulator using dd, right? Does anyone have a detail of this phone's /dev/block? CMIIW
 

milav

Senior Member
Dec 5, 2010
607
57
Ahmedabad
I dont flash ota i use full rom only and i can flash with custom recovery can this recovery flash full rom or take backup of miui rom?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    Team Win Recovery Project 2.x, or twrp2 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

    Use it carefully, i didn't tested it very well... At least, installing my CM works :)
    I'm not responsible if you transform your phone into a brick!


    I've decided to compile own TWRP.

    FEATURES
    - Latest cm kernel (https://github.com/dh-harald/android_kernel_xiaomi_ferrari)
    - upstream repository from (https://github.com/omnirom/android_bootable_recovery)
    - native 64bit / QCOM_BSP / QCOM HW disk encryption
    - f2fs enabled (to use it, you need 20150916 or later CM of mine -- if you're using different CM version, contact to your maintainer)

    COMPILE GUIDE
    Soon...

    DOWNLOAD
    twrp-2.8.7.0-ferrari.img - 30.15 MB

    INSTALL
    - Install fastboot drivers
    - Download it to your computer
    - Reboot your device into bootoader mode
    - fastboot flash recovery twrp-2.8.7.0-ferrari.img

    BUGS
    You tell me...
    2
    HOW TO COMPILE
    1. you need to use my minimal repo to create the build environment:
    Code:
    repo init -u git://github.com/dh-harald/twrp_android.git -b cm-12.1
    2. add a xml file to local_manifests:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
        <project path="device/qcom/common" name="CyanogenMod/android_device_qcom_common" />
        <project path="device/xiaomi/ferrari" name="dh-harald/android_device_xiaomi_ferrari" />
        <project path="kernel/xiaomi/ferrari" name="dh-harald/android_kernel_xiaomi_ferrari" />
    </manifest>
    3. sync the repository
    Code:
    repo sync
    3. (optional - I don't know is it still need or not) You need to patch external/sepolicy
    use this link, what do you need to change: http://review.cyanogenmod.org/#/c/89474/
    4. compile it
    Code:
    $ . build/envsetup.sh
    $ lunch cm_ferrari-userdebug
    $ make -jX recoveryimage
    X is based on your nr of CPUs

    If you have a synced CM working tree, you can try to replace CWM to TWRP, and compile it, but last time it breaks my CM build... -> I use this method
    2
    How can I enable f2fs filesystem?
    Go to Wipe/Advanced Wipe
    Select Data/Cache
    Select "Repair or Change File System"
    Select "Change File System"
    Select "F2FS" (Swipe to change will format the filesystem.)
    So, if you want to use /data as f2fs, you need to backup everything (sdcard/data)