Create an Android device tree from a device dump
Project description
aospdtgen
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.8 or greater
Installation
pip3 install .
Instructions
$ python3 -m aospdtgen -h
Android device tree generator
Version 0.1.0
usage: python3 -m aospdtgen [-h] [-o OUTPUT] dump_path
positional arguments:
dump_path path to an Android dump made with dumpyara
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
custom output folder
License
#
# Copyright (C) 2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aospdtgen-1.0.0.tar.gz
(25.1 kB
view details)
Built Distribution
aospdtgen-1.0.0-py3-none-any.whl
(57.3 kB
view details)
File details
Details for the file aospdtgen-1.0.0.tar.gz
.
File metadata
- Download URL: aospdtgen-1.0.0.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.10.10 Linux/6.2.5-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1221d7b295e9945ce771ee2dec15ce081f55b6e2cddafa4a70ef138ed6e624b0 |
|
MD5 | d6157405b9d1d38563f96dad132380ac |
|
BLAKE2b-256 | 0191c93467e46599233149de2221b646d56a59688aa9b363f10511c63ba7e8c1 |
File details
Details for the file aospdtgen-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: aospdtgen-1.0.0-py3-none-any.whl
- Upload date:
- Size: 57.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.10.10 Linux/6.2.5-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 186f40bf1ffb864508999bba9a55f8b63f76b31a0dae3e22f76b8e3a20ed3505 |
|
MD5 | 23f426f08901047fc6e99e1f183aa98f |
|
BLAKE2b-256 | 1d17a1ced07246ed517df035b6d7f1d5ada7a51d5a2f6eff9e55af2dd5211db3 |