TRANSSION PBRP/TWRP/OFRP DT GENERATOR V2
アンドレイ | #𝙆𝙖𝙣𝙖𝘿𝙚𝙫_𝙄𝙎 | #𝙶𝚁𝙰𝚈𝚁𝙰𝚅𝙴𝙽𝚂 | #𝙏𝙧𝙖𝙣𝘾𝙤𝙧𝙚_𝘿𝙚𝙫_𝙇𝙚𝙖𝙙 | #𝘼𝙣𝙭𝙞𝙣𝙞𝙩𝙮𝙋𝙧𝙟𝙠𝙩Transsion Vendor Boot Recovery Tree Generator V2
What the Script Does – A Complete Overview
The Transsion Vendor Boot Recovery Tree Generator is a Python tool that automates the creation of device trees for custom recoveries (TWRP, PitchBlack, OrangeFox) from a vendor_boot image (or an unpacked directory). It intelligently scans and extracts necessary components from the provided partitions, handles multiple sources, and generates a ready‑to‑build device tree.
First make sure python is installed in your os
Here is the generator : https://drive.google.com/file/d/1wa9b0hSRDnU-w3niRe-bAFoNcurQVP-y/view?usp=sharing
sample run command :
python '/home/andrei/Downloads/TOUCH PATCHER RECOVERY/transsion_recovery_gen.py' --vendor-boot /home/andrei/MIO-KITCHEN-4.1.3-linux/X6873/vendor_boot -
-vendor-dlkm /home/andrei/MIO-KITCHEN-4.1.3-linux/X6873/vendor_dlkm --vendor /home/andrei/MIO-KITCHEN-4.1.3-linux/X6873/vendor --device-codename Infinix-X68
73 --market-name "Infinix GT 30 PRO" --recovery ofrp --maintainer XTENSEI --module-policy all --vendor-policy normal --fstab-policy prompt --vendor-init-p
olicy essential --interactive
Run flags :
Required:
- --vendor-boot PATH : path to vendor_boot.img (or unpacked directory)
Output:
- -o OUTPUT_DIR : output directory (default ./output)
Recovery Type:
- --recovery {twrp,pbrp,ofrp} : choose recovery (default twrp)
Extra Partition Paths:
- --vendor PATH : extracted vendor partition ( for essential vendor files and .rc files )
- --vendor-dlkm PATH : extracted vendor_dlkm (for modules)
Manual Overrides:
- --device-codename NAME : e.g. Infinix-X6711
- --market-name NAME : e.g. "Infinix GT 30 PRO"
- --interactive : confirm detected values interactively
Behavior Controls:
- --no-common : disable cloning of common trees
- --no-patch : skip patching adaptive-ts.ko
- --module-policy {all,essential,minimal} : which kernel modules to keep (default essential)
- --vendor-policy {minimal,normal,full} : how much to copy from non-vendor partitions (default normal)
- --git : initialize git repository in output tree and commit
- --dry-run : simulate without writing files
- --log-file PATH : save logs to file/directory
- -v / --verbose : verbose logging