Skip to content

A script to automatically generate TWRP-compatible device tree (with termux support)

License

Notifications You must be signed in to change notification settings

TaishoVault/TWRP-device-tree-generator-termux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TWRP device tree generator

Codacy Badge

Create a TWRP-compatible device tree only from a recovery.img

With this script I tried to write TwrpBuilder script in Bash, and somehow I succeded, supporing more features

Features

  • Create device tree initial structure (like Android.mk, AndroidProduct.mk etc.)
  • Android 10 support (beta)
  • Add proper license headers in every file
  • Automatically detect device architecture
  • Pick stock recovery image info (eg. image size, kernel pagesize etc.)
  • Inherit more infos directly from the device with ADB (optional)
  • Create ad-hoc recovery.fstab
  • Add needed init.rc files
  • Take cmdline automatically
  • System-as-root support
  • dt.img support (not appended DTBs)
  • dtbo.img support (device tree blobs overlay)
  • Samsung Odin TAR support
  • Samsung SEAndroid support
  • Ramdisk compression support (LZMA, 7Z, GZIP etc...)
  • MTK support
  • Extract stock kernel automatically
  • Fill BoardConfig.mk without needing to inherit external makefiles (like TwrpBuilder does), making a standalone device tree
  • Easily improveable with a text editor, w/o needing to know any programming language
  • Create a ready-to-push git repo in device tree folder

TODO

  • A/B support

Credits

  • SebaUbuntu - for this script
  • EngMoPro - for archiving it
  • Shubhamvis98 - for arm64 AIK

About

A script to automatically generate TWRP-compatible device tree (with termux support)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%