SebaUbuntu / Twrp Device Tree Generator
Licence: apache-2.0
A script to automatically generate TWRP-compatible device tree from a boot/recovery image
Stars: ✭ 139
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Twrp Device Tree Generator
RecoverPy
🙈 Interactively find and recover deleted or 👉 overwritten 👈 files from your terminal
Stars: ✭ 189 (+35.97%)
Mutual labels: recovery
Android boot image editor
Parsing and re-packing Android boot.img/vbmeta.img, supporting Android 11
Stars: ✭ 258 (+85.61%)
Mutual labels: recovery
Pg probackup
Backup and recovery manager for PostgreSQL
Stars: ✭ 383 (+175.54%)
Mutual labels: recovery
twrpdtgen
A Python library/script to automatically generate TWRP-compatible device tree from a boot/recovery image
Stars: ✭ 338 (+143.17%)
Mutual labels: recovery
Twitchrecover
Twitch VOD tool which recovers all VODs including those that are sub only or deleted.
Stars: ✭ 123 (-11.51%)
Mutual labels: recovery
Seqbox
A single file container/archive that can be reconstructed even after total loss of file system structures
Stars: ✭ 480 (+245.32%)
Mutual labels: recovery
Device xiaomi grus Twrp
TWRP device tree for Xiaomi Mi 9 SE(treble)
Stars: ✭ 49 (-64.75%)
Mutual labels: recovery
Terraform
Share Terraform best practices and custom modules with the community
Stars: ✭ 39 (-71.94%)
Mutual labels: recovery
extract otp secret keys
Extract two-factor authentication (2FA, TFA) secret keys from export QR codes of "Google Authenticator" app
Stars: ✭ 217 (+56.12%)
Mutual labels: recovery
Planb Android
A crash recovery library for Android. It allows tracking and handling crashes with different rules for debugging and production.
Stars: ✭ 29 (-79.14%)
Mutual labels: recovery
Async Backplane
Simple, Erlang-inspired fault-tolerance framework for Rust Futures.
Stars: ✭ 113 (-18.71%)
Mutual labels: recovery
Barman
Barman - Backup and Recovery Manager for PostgreSQL
Stars: ✭ 1,044 (+651.08%)
Mutual labels: recovery
TWRP device tree generator
Create a TWRP-compatible device tree only from an Android recovery image (or a boot image if the device uses non-dynamic partitions A/B) of your device's stock ROM It has been confirmed that this script supports images built starting from Android 4.4 up to Android 12
Installation
pip3 install twrpdtgen
The module is supported on Python 3.6 and above.
Linux only: Be sure to have cpio installed in your system (Install cpio using sudo apt install cpio
or sudo pacman -S cpio
based on what package manager you're using)
How to use
$ python3 -m twrpdtgen -h
TWRP device tree generator
usage: python3 -m twrpdtgen [-h] [-o OUTPUT] [-k] [--no-git] [--huawei] [--recovery_kernel RECOVERY_KERNEL] [--recovery_ramdisk RECOVERY_RAMDISK]
[--recovery_vendor RECOVERY_VENDOR] [-v]
[recovery_image]
positional arguments:
recovery_image path to a recovery image (or boot image if the device is A/B)
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
custom output folder
-k, --keep-aik keep AIK after the generation
--no-git don't create a git repo after the generation
--huawei Huawei mode (split kernel, ramdisk and vendor)
--recovery_kernel RECOVERY_KERNEL
path to a recovery_kernel file (huawei mode only)
--recovery_ramdisk RECOVERY_RAMDISK
path to a recovery_ramdisk file (huawei mode only)
--recovery_vendor RECOVERY_VENDOR
path to a recovery_vendor file (huawei mode only)
-v, --verbose enable debugging logging
When an image is provided, if everything goes well, there will be a device tree at output/manufacturer/codename
You can also use the module in a script, with the following code:
from twrpdtgen.twrp_dt_gen import generate_device_tree
# The function will return a DeviceTree object, you can find its declaration here:
from twrpdtgen.utils.device_tree import DeviceTree
result = generate_device_tree(image_path, output_path)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].