Metadata-Version: 2.4
Name: aospdtgen
Version: 1.2.1
Summary: Create an Android device tree from a device dump
License: Apache-2.0
License-File: LICENSES/Apache-2.0.txt
Author: Sebastiano Barezzi
Author-email: seba@sebaubuntu.dev
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: GitPython (>=3.1.45,<4.0.0)
Requires-Dist: Jinja2 (>=3.1.6,<4.0.0)
Requires-Dist: sebaubuntu-libs (>=1.6.1,<2.0.0)
Project-URL: Repository, https://github.com/sebaubuntu-python/aospdtgen
Description-Content-Type: text/markdown

# aospdtgen

[![PyPI version](https://img.shields.io/pypi/v/aospdtgen)](https://pypi.org/project/aospdtgen/)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/0ec14174bf9840458f27062444b1e375)](https://app.codacy.com/gh/sebaubuntu-python/aospdtgen/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

Create a [LineageOS](https://github.com/LineageOS)-compatible device tree from an Android stock ROM dump (made with [dumpyara](https://github.com/SebaUbuntu/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](https://play.google.com/store/apps/details?id=tk.hack5.treblecheck) or with `adb shell getprop ro.treble.enabled`).
For pre-Treble devices please use [twrpdtgen](https://github.com/twrpdtgen/twrpdtgen).

Requires Python 3.9 or greater

## Installation

```sh
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
#
```

