sm6150-dev / twrp_device_xiaomi_davinci

TWRP Source for Xiaomi Mi 9T / Redmi K20 davinci

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

android_device_xiaomi_davinci

For building TWRP for Xiaomi Redmi K20 / Mi 9T

TWRP device tree for Xiaomi Redmi K20 / Mi 9T

Features

Works:

  • ADB
  • Screen brightness settings
  • Correct screenshot color
  • MTP
  • Flashing (opengapps, roms, images and so on)
  • Backup/Restore (Needs more testing)
  • USB OTG
  • Android R Support
  • Vibration support

To-do:

  • Decryption of /data (policy V2)

Compile

First checkout minimal twrp with omnirom tree:

repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-9.0
repo sync

Then add these projects to .repo/manifest.xml:

<project path="device/xiaomi/davinci" name="mauronofrio/android_device_xiaomi_davinci" remote="github" revision="android-9.0" />

Finally execute these:

. build/envsetup.sh
lunch omni_davinci-eng
mka recoveryimage ALLOW_MISSING_DEPENDENCIES=true # Only if you use minimal twrp tree.

To test it:

fastboot boot out/target/product/davinci/recovery.img

Other Sources

LineageOS kernel

Thanks

@mauronofrio

About

TWRP Source for Xiaomi Mi 9T / Redmi K20 davinci


Languages

Language:Makefile 77.6%Language:C++ 22.4%