FORUMS
Remove All Ads from XDA

[RECOVERY] TWRP 2.8.7.0 touch recovery for Mi4i

594 posts
Thanks Meter: 1,618
 
Post Reply Email Thread
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...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...
The Following 16 Users Say Thank You to dh.harald For This Useful Post: [ View ] Gift dh.harald Ad-Free
 
 
18th September 2015, 10:25 AM |#2  
OP Senior Member
Flag London
Thanks Meter: 1,618
 
Donate to Me
More
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
The Following 2 Users Say Thank You to dh.harald For This Useful Post: [ View ] Gift dh.harald Ad-Free
18th September 2015, 10:31 AM |#3  
What's different from current TWRP build in Mi Toolkit?
18th September 2015, 10:35 AM |#4  
OP Senior Member
Flag London
Thanks Meter: 1,618
 
Donate to Me
More
Quote:
Originally Posted by haikalizz

What's different from current TWRP build in Mi Toolkit?

I don't know... I've no spec for old recovery...
At least, it's supporting f2fs filesystem That's why I compile own version
18th September 2015, 10:36 AM |#5  
Any compilation guide?
18th September 2015, 10:39 AM |#6  
OP Senior Member
Flag London
Thanks Meter: 1,618
 
Donate to Me
More
Quote:
Originally Posted by haikalizz

Any compilation guide?

Like I said: soon
The Following User Says Thank You to dh.harald For This Useful Post: [ View ] Gift dh.harald Ad-Free
18th September 2015, 02:24 PM |#7  
haahaaah's Avatar
Senior Member
Thanks Meter: 55
 
More
TWRP 2.8.7.0 work
I am on miui 7 5.8.28
The Following User Says Thank You to haahaaah For This Useful Post: [ View ] Gift haahaaah Ad-Free
18th September 2015, 05:48 PM |#8  
Senior Member
Flag New Delhi
Thanks Meter: 277
 
More
@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 "
18th September 2015, 05:49 PM |#9  
OP Senior Member
Flag London
Thanks Meter: 1,618
 
Donate to Me
More
Quote:
Originally Posted by candiesdoodle

@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 "

Yes, you've right... Thanks!

I've fixed it
The Following User Says Thank You to dh.harald For This Useful Post: [ View ] Gift dh.harald Ad-Free
18th September 2015, 07:28 PM |#10  
Senior Member
Flag Ahmedabad
Thanks Meter: 51
 
More
at last update to recovery
21st September 2015, 11:42 AM |#11  
Kreaz's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 140
 
More
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
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes