All Projects → twrpdtgen → twrpdtgen

twrpdtgen / twrpdtgen

Licence: other
A Python library/script to automatically generate TWRP-compatible device tree from a boot/recovery image

Programming Languages

python
139335 projects - #7 most used programming language
Jinja
831 projects

Projects that are alternatives of or similar to twrpdtgen

ainur narsil
Sauron audiomod developed with many experimental tweaks to squeeze more from your device in terms of sound
Stars: ✭ 61 (-81.95%)
Mutual labels:  twrp, recovery
Latest-adb-fastboot-installer-for-windows
A Simple Android Driver installer tool for windows (Always installs the latest version). Sponsored by https://sendletter.org, the Cheapest way to Send Letters
Stars: ✭ 242 (-28.4%)
Mutual labels:  twrp
Fossapps
Fossapps has been abandoned and replaced by Fossapps Creator.
Stars: ✭ 13 (-96.15%)
Mutual labels:  twrp
kunlun-storage
Kunlun-storage is the storage component for KunlunBase. It's developed based on percona-mysql-8.0.x and contains exclusive features used by KunlunBase, performance enhancements and XA transaction crash safety enhancements without which MySQL would not be able to execute XA transactions reliably under error conditions such as power outage, proces…
Stars: ✭ 2 (-99.41%)
Mutual labels:  recovery
TwrpBuilder
TWRPBuilder Android app
Stars: ✭ 142 (-57.99%)
Mutual labels:  twrp
recovery
Create recovery/backup codes for 2FA
Stars: ✭ 72 (-78.7%)
Mutual labels:  recovery
Anarchy-Droid
One-Click Android Rom Installation Assistant
Stars: ✭ 40 (-88.17%)
Mutual labels:  twrp
awesome-oneplus-3t
一加 3T ROM、内核(Kernel)、固件(Firmware)、Recovery、框架(Framework)、软件(APP)
Stars: ✭ 45 (-86.69%)
Mutual labels:  recovery
OutlookPasswordRecovery
This tool usable for recover Outlook passwords and it working with all versions. I tested with 2007, 2010, 2013 and 2016.
Stars: ✭ 14 (-95.86%)
Mutual labels:  recovery
twrpbuilder tree generator
Device Tree Generator for TWRP compilation
Stars: ✭ 91 (-73.08%)
Mutual labels:  twrp
BlockHashLoc
Recover files using lists of blocks hashes, bypassing the File System entirely
Stars: ✭ 45 (-86.69%)
Mutual labels:  recovery
QR-secret-sharing
🔒 Create QR codes to secret-share a message. Ideal for cryptocurrency wallet recovery keys and passwords.
Stars: ✭ 94 (-72.19%)
Mutual labels:  recovery
btrfscue
Recover files from damaged BTRFS filesystems
Stars: ✭ 28 (-91.72%)
Mutual labels:  recovery
serde-device-tree
Serialize & deserialize device tree binary using serde
Stars: ✭ 20 (-94.08%)
Mutual labels:  device-tree
sqbrite
SQBrite is a data recovery tool for SQLite databases
Stars: ✭ 27 (-92.01%)
Mutual labels:  recovery
undo
Gelöschte Artikel, Slices und Kategorien wiederherstellen
Stars: ✭ 31 (-90.83%)
Mutual labels:  recovery
emergency-kexec
Kexec into an in-memory emergency system
Stars: ✭ 21 (-93.79%)
Mutual labels:  recovery
warrick
Recover lost websites from the Web Infrastructure
Stars: ✭ 76 (-77.51%)
Mutual labels:  recovery
Motorola-Moto-E-condor-unbrick
Tools for Motorola Moto E XT1021, XT1022, XT1025 condor unbrick
Stars: ✭ 31 (-90.83%)
Mutual labels:  recovery
Windows-911
Curated list of FREE emergency resources when you find yourself in the inevitable pickle with Windows. PRs welcome!
Stars: ✭ 24 (-92.9%)
Mutual labels:  recovery

TWRP device tree generator

PyPi version PyPi version status Codacy Badge

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.9 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
Version 2.2.0

usage: python3 -m twrpdtgen [-h] [-o OUTPUT] [--git] [-d] image

positional arguments:
  image                 path to an image (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
  --git                 create a git repo after the generation
  -d, --debug           enable debugging features

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.devicetree import DeviceTree

# Get image info
devicetree = DeviceTree(image_path)

# Dump device tree to folder
devicetree.dump_to_folder(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].