FORUMS

[EXPERIMENTAL][RECOVERY][3.4.0][cmi]Unofficial TWRP for Mi 10 / 10 Pro Unified

296 posts
Thanks Meter: 537
 
By simonsmh, Senior Member on 28th May 2020, 12:47 PM
Post Reply Email Thread
Team Win Recovery Project 3.x, or twrp3 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.
Code:
#include <std_disclaimer.h>
/*
 *
 * We are not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at us for messing up your device, we will laugh at you.
 *
 */
Features:
- TWRP boots.
- Decryption is working.
- Vibration
- System, Vendor and Product partitions mount is working but you can't modify them.
- You can flash magisk, miui roms, kernels, firmwares, etc.


Not working:
- Partition formatting (upstream)
- ADB sideload (upstream)


Install guide:
To boot (Reccomended):
Code:
fastboot boot <twrp.img>
To install (NOT reccomended):
Code:
fastboot flash recovery <twrp.img>
Download:
Now build is checking "ro.boot.hwversion". If it is begined with "1" then use Mi 10 Pro cmi profile, otherwise it will use Mi 10 umi profile.
Please report ro.boot.hwversion if possible. You can get it from getprop command.
Mega Drive Link

Source code:
Device Tree
Recovery Source

Thanks:
@mauronofrio @bigbiff and more open source TWRP devs.

Mi 10 (umi) thread:
https://forum.xda-developers.com/xia...mi-10-t4106381
The Following 8 Users Say Thank You to simonsmh For This Useful Post: [ View ] Gift simonsmh Ad-Free
28th May 2020, 01:09 PM |#2  
simonsmh's Avatar
OP Senior Member
Thanks Meter: 537
 
More
cc @TipzTeam Could you help me to do some functional test? I didn't own a Mi 10 Pro.
The Following User Says Thank You to simonsmh For This Useful Post: [ View ] Gift simonsmh Ad-Free
28th May 2020, 01:30 PM |#3  
Quote:
Originally Posted by simonsmh

cc @TipzTeam Could you help me to do some functional test? I didn't own a Mi 10 Pro.

yes, you can send me the tree and i am able to compile, dont say you based on instantnoodles
The Following User Says Thank You to TipzTeam For This Useful Post: [ View ] Gift TipzTeam Ad-Free
28th May 2020, 02:02 PM |#4  
simonsmh's Avatar
OP Senior Member
Thanks Meter: 537
 
More
Quote:
Originally Posted by TipzTeam

yes, you can send me the tree and i am able to compile, dont say you based on instantnoodles

The instantnoodle maintainer helped me a lot on decryption.
The source is in the post. In case you need, here is part of the roomservice.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="build/make" name="simonsmh/android_build" remote="github" revision="android-10" >
    <copyfile src="core/root.mk" dest="Makefile" />
    <linkfile src="CleanSpec.mk" dest="build/CleanSpec.mk" />
    <linkfile src="buildspec.mk.default" dest="build/buildspec.mk.default" />
    <linkfile src="core" dest="build/core" />
    <linkfile src="envsetup.sh" dest="build/envsetup.sh" />
    <linkfile src="target" dest="build/target" />
    <linkfile src="tools" dest="build/tools" />
  </project>
  <project path="build/soong" name="AndroiableDroid/android_build_soong" remote="github" revision="ten" >
      <linkfile src="root.bp" dest="Android.bp" />
      <linkfile src="bootstrap.bash" dest="bootstrap.bash" />
  </project>
  <project path="system/core" name="simonsmh/android_system_core" remote="github" revision="android-10.0" />
  <project path="bootable/recovery" name="simonsmh/android_bootable_recovery" remote="github" revision="android-10.0" />
  <project path="device/xiaomi/umi" name="simonsmh/android_device_xiaomi_umi" remote="github" revision="android-10.0" />
</manifest>
Uncomment Thttps://github.com/simonsmh/android_device_xiaomi_umi/blob/android-10.0/init/Android.bp#L9 if you are on Mi 10 Pro.

Do you have Telegram account? You could find me there.
The Following 2 Users Say Thank You to simonsmh For This Useful Post: [ View ] Gift simonsmh Ad-Free
28th May 2020, 11:39 PM |#5  
Quote:
Originally Posted by simonsmh

Team Win Recovery Project 3.x, or twrp3 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.

Code:
#include <std_disclaimer.h>
/*
 *
 * We are not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at us for messing up your device, we will laugh at you.
 *
 */
Features:
- TWRP boots.
- Decryption is working.
- System, Vendor and Product partitions mount is working but you can't modify them.
- You can flash magisk, miui roms, kernels, firmwares, etc.

Not working:
Partition formatting (upstream)
f2fs (upstream)
Vibration

Install guide:
To boot (Reccomended):
Code:
fastboot boot <twrp.img>
Download:
Currently it's not unified. I provide two builds just for flashing rom with "ro.product.device" check, but they should be ok to boot either of them.
umi is for Mi 10.
cmi is for Mi 10 Pro.
Mega Drive Link

Source code:
Device Tree
Recovery Source

Thanks:
@mauronofrio @bigbiff and more open source TWRP devs.

Mi 10 (umi) thread:
https://forum.xda-developers.com/xia...mi-10-t4106381

Have you noticed any Wi-Fi problems?
Thanx
The Following User Says Thank You to Swarai For This Useful Post: [ View ] Gift Swarai Ad-Free
29th May 2020, 02:22 AM |#6  
Quote:
Originally Posted by simonsmh

The instantnoodle maintainer helped me a lot on decryption.
The source is in the post. In case you need, here is part of the roomservice.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="build/make" name="simonsmh/android_build" remote="github" revision="android-10" >
    <copyfile src="core/root.mk" dest="Makefile" />
    <linkfile src="CleanSpec.mk" dest="build/CleanSpec.mk" />
    <linkfile src="buildspec.mk.default" dest="build/buildspec.mk.default" />
    <linkfile src="core" dest="build/core" />
    <linkfile src="envsetup.sh" dest="build/envsetup.sh" />
    <linkfile src="target" dest="build/target" />
    <linkfile src="tools" dest="build/tools" />
  </project>
  <project path="build/soong" name="AndroiableDroid/android_build_soong" remote="github" revision="ten" >
      <linkfile src="root.bp" dest="Android.bp" />
      <linkfile src="bootstrap.bash" dest="bootstrap.bash" />
  </project>
  <project path="system/core" name="AndroiableDroid/android_system_core" remote="github" revision="android-10.0" />
  <project name="simonsmh/android_bootable_recovery" path="bootable/recovery" remote="github" revision="android-10.0" />
  <project path="device/xiaomi/umi" name="simonsmh/android_device_xiaomi_umi" remote="github" revision="android-10.0" />
</manifest>
Then define cmi instead of umi in https://github.com/simonsmh/android_...t/init_umi.cpp if you are on Mi 10 Pro.

Do you have Telegram account? You could find me there.

Please contact me on telegram asap, i can't pm people rn because i am blocked on telegram for doing that for some idk reasons. my tele is @TipzTeam

---------- Post added at 02:22 AM ---------- Previous post was at 02:07 AM ----------

Tested and works!
29th May 2020, 04:32 PM |#7  
Senior Member
Thanks Meter: 75
 
More
Awesome work Dude, the Mi 10 series ist finally getting a trustworthy TWRP. Keep up the good work.
29th May 2020, 10:53 PM |#8  
Member
Flag Iisalmi
Thanks Meter: 8
 
Donate to Me
More
I'll try when I just can unlock the bootloader. Can I flash magisk via twrp or should I patch boot.img?
30th May 2020, 05:06 PM |#9  
simonsmh's Avatar
OP Senior Member
Thanks Meter: 537
 
More
Quote:
Originally Posted by henkka22

I'll try when I just can unlock the bootloader. Can I flash magisk via twrp or should I patch boot.img?

I have tested this. You can install magisk zip and miui rom zips.
The Following User Says Thank You to simonsmh For This Useful Post: [ View ] Gift simonsmh Ad-Free
30th May 2020, 05:41 PM |#10  
nocturnoz's Avatar
Senior Member
Thanks Meter: 47
 
More
Do I have to flash it via ADB? I flashed your version with the closed source TWRP which is available. When I try to boot your TWRP I am forced into the fastboot mode
31st May 2020, 06:40 PM |#11  
simonsmh's Avatar
OP Senior Member
Thanks Meter: 537
 
More
Hi guys, new build (rev. 2) has been uploaded. Tested fastboot flash recovery is working.
The way to fix it is just appending recovery dtbo from official recovery. Source code has been updated.
cc @nocturnoz
The Following 5 Users Say Thank You to simonsmh For This Useful Post: [ View ] Gift simonsmh Ad-Free
Post Reply Subscribe to Thread

Tags
twrp

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

Advanced Search
Display Modes