For building TWRP for Xiaomi Mi 10 / 10 Pro
TWRP device tree for Xiaomi Mi 10 and Mi 10 Pro
Kernel and all blobs are extracted from miui_CMI_21.9.17_1c6ed0daa1_11.0.zip firmware.
The Xiaomi Mi 10 (codenamed "umi") and Xiaomi Mi 10 Pro (codenamed "cmi") are high-end smartphones from Xiaomi.
Xiaomi Mi 10 / 10 Pro was announced and released in February 2020.
Device | Xiaomi Mi 10 / 10 Pro |
---|---|
SoC | Qualcomm SM8250 Snapdragon 865 |
CPU | 8x Qualcomm® Kryo™ 585 up to 2.84GHz |
GPU | Adreno 650 |
Memory | 8GB / 12GB RAM (LPDDR5) |
Shipped Android version | 10 |
Storage | 128GB / 256GB / 512GB UFS 3.0 flash storage |
Battery | Non-removable Li-Po 4780mAh |
Dimensions | 162.58 x 74.8 x 8.96 mm |
Display | 2340 x 1080 (19.5:9), 6.67 inch |
Works
- Booting.
- Decryption (Android 11)
- ADB
- MTP
- OTG
- Super partition functions
- Vibration
Mi 10 is using Dynamic Partition! We need update from TWRP.
First checkout minimal twrp with omnirom tree:
repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11
repo sync
Then add these projects to .repo/manifest.xml:
<project path="device/xiaomi/umi" name="sekaiacg/android_device_xiaomi_umi_TWRP" remote="github" revision="android-12.1" />
Use ccache
#Enable ccache
export USE_CCACHE=1
export CCACHE_EXEC=$(which ccache)
Finally execute these:
export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
lunch twrp_umi-eng
mka recoveryimage
To test it:
fastboot boot out/target/product/umi/recovery.img