Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1020 Bytes

README.md

File metadata and controls

57 lines (38 loc) · 1020 Bytes

android_device_xiaomi_jd2019

For building TWRP for Lenovo Z5S

TWRP device tree for Lenovo Z5S

Features

Works:

  • ADB
  • Decryption of /data
  • Screen brightness settings
  • Correct screenshot color
  • MTP
  • Flashing (opengapps, roms, images and so on)
  • Backup/Restore (Needs more testing)
  • USB OTG

TO-DO:

  • Vibration support

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/jd2019" name="mauronofrio/android_device_lenovo_jd2019" remote="github" revision="android-9.0" />

Finally execute these:

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

To test it:

fastboot flash recovery out/target/product/jd2019/recovery.img

Other Sources

Kernel Sources: using precompiled stock kernel

Thanks