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
pip install aospdtgen$ 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
#
# SPDX-FileCopyrightText: The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#