Hello all, Here I make a new blog post about how to create your own TWRP device tree for your device if you didn't have a device tree for your mobile you can adapt the TWRP tree to your device tree so now we can start...
First of we should download the TWRP device tree generator from github.
Install Tool
Then search TWRP device generator tool you can find the sebaubuntu in github. Just download it and install in your computer.
Create Device Tree
Once you downloaded and installed in your computer then download your stock recovery image that we used to generate the TWRP device tree.
All setup is finished then type below command in your linux terminal...
go to your stock recovery image folder in your terminal and type python3 -m twrpdtgen <your recovery image>
it will start to create your device tree in few seconds. After that you can find the device tree in output/manufacturer/codename
.
End of the Tutorial
You can use this method to adapt TWRP device tree for your custom rom device tree this very helpful for build custom rom. Don't forgot to upload your device tree in github it could be very useful for others.