SkillAgentSearch skills...

Aospdtgen

LineageOS device tree generator

Install / Use

/learn @sebaubuntu-python/Aospdtgen
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

aospdtgen

PyPI version Codacy Badge

Create a LineageOS-compatible device tree from an Android stock ROM dump (made with dumpyara). This script supports any Android firmware from a Treble-enabled device (Higher than Android 8.0 and with VNDK enabled, you can check it with Treble Info or with adb shell getprop ro.treble.enabled). For pre-Treble devices please use twrpdtgen.

Requires Python 3.9 or greater

Installation

pip install aospdtgen

Instructions

$ python -m aospdtgen --help
usage: python -m aospdtgen [-h] [-o OUTPUT] [--no-proprietary-files] dump_path

Android device tree generator

positional arguments:
  dump_path             path to an Android dump made with dumpyara

options:
  -h, --help            show this help message and exit
  -o, --output OUTPUT   custom output folder
  --no-proprietary-files
                        Don't generate the proprietary files list and the
                        extract-files script

License

#
# SPDX-FileCopyrightText: The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
View on GitHub
GitHub Stars315
CategoryDevelopment
Updated1h ago
Forks62

Languages

Python

Security Score

85/100

Audited on Mar 28, 2026

No findings