Skip to content

KrishnaZyala/surya_twrp

 
 

Repository files navigation

android_device_xiaomi_surya_twrp

For building TWRP for POCO X3 / X3 NFC (codenamed "karna / surya")

TWRP device tree for POCO X3 (karna/surya)

Features

Works:

  • ADB
  • Decryption of /data (MIUI A11/Custom rom A12.1)
  • Screen brightness settings
  • Vibration support
  • Correct screenshot
  • Correct date/battery level/temperature
  • MTP
  • Flashing (opengapps, roms, images and so on)
  • Backup/Restore to internal/microSD
  • Backup/Restore to/from adb (https://gerrit.omnirom.org/#/c/15943/)
  • USB OTG
  • Fasbootd
  • Sideload (adb sideload update.zip)
  • Reboot to bootloader/recovery/system/fasbootd
  • F2FS/EXT4 Support, exFAT/NTFS where supported

Compile

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/surya" name="brigudav/android_device_xiaomi_surya_twrp" remote="github" revision="android-12.1" />

Finally execute these:

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

To test it:

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

Other Sources

Using precompiled stock kernel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 100.0%