For building TWRP for Xiaomi Mi 10 Pro
TWRP device tree for Xiaomi Mi 10 Pro
All blobs are extracted from ()miui_UMI_V13.0.4.0.SJBCNXM) firmware.
The Xiaomi Mi 10 (codenamed "cmi") is high-end smartphone from Xiaomi.
Xiaomi Mi 10 / 10 Pro was announced and released in February 2020.
Device | Xiaomi Mi 10 |
---|---|
SoC | Qualcomm SM8250 Snapdragon 865 |
CPU | 8x Qualcomm® Kryo™ 585 up to 2.84GHz |
GPU | Adreno 630 |
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:
- ADB
- Decryption of /data (MIUI - password/pattern only!!!)
- Decryption of /data (AOSP - Roms with wrapped key support only!!!)
- Screen brightness settings
- Vibration support
- MTP
- Flashing (opengapps, roms, images and so on)
- USB OTG
- Fasbootd
- Sideload (adb sideload update.zip)
- Reboot to bootloader/recovery/system/fasbootd
- F2FS/EXT4 Support, exFAT/NTFS where supported
First checkout minimal twrp with aosp tree:
repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1
repo sync
Then add these projects to .repo/manifest.xml:
<project path="device/xiaomi/umi" name="yarpiin/twrp_device_xiaomi_umi" remote="github" revision="android-12.1" />
Finally execute these:
. build/envsetup.sh
lunch twrp_umi-eng
mka recoveryimage ALLOW_MISSING_DEPENDENCIES=true # Only if you use minimal twrp tree.
-
Device makefile in the device tree and dependencies file should use the "twrp" prefix.
-
Currently, decryption on 12.1 is a work in progress (WIP). Decryption is only fully functional (i.e. works with password/PIN/pattern) on legacy Pixel devices that use weaver but do not use wrappedkey. On other devices, decryption will only work if no PIN is set in Android.
-
FDE decryption is not presently supported in this branch.
-
In order to successfully build in this branch, the following patch(es) will need to be cherry-picked:
fastboot boot out/target/product/umi/recovery.img