TWRP tree
How to build twrp
Guide: https://unofficialtwrp.com/build-compile-twrp-recovery/
Tip: If you use WSL2 on windows avoid performin commands in /mnt dirrectory, otherwise it will hugly decrease your performance.
mkdir twrp
cd twrp
repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11
# This download can take aroud 2 to 3 hours so be patient( in my case it was around 15 min on the second try, because at the begining I have accidently used /mnt directory ||BRUH|| ).
repo sync -c -j 12 --force-sync --no-clone-bundle --no-tags
cd twrp
export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
lunch twrp_odinlite_6877_fhd_v1-eng
# We are building boot image, because ayn odin lite uses A/B partition scheme and does not have separete partition for recovery. Because, of that we need to bundle it with boot.
mka bootimage
boot.img
Now you can flash It will be located at out/target/product/odinlite_6877_fhd_v1/boot.img
My attempts to create a TWRP device tree
Attempt 1: Port oneplus nord 2 ce 5g
Base image thread: https://forum.xda-developers.com/t/unofficial-twrp-3-6-2_11-0-oneplus-nord-ce-2-5g.4490091/ Base image git: https://github.com/Ko-Hi-Dev/twrp_iv2201.git
Tutorials( not working):
- https://www.youtube.com/watch?v=txY_pc3IxHU
- https://www.youtube.com/watch?v=m_dGUYDcKQ0
- https://www.youtube.com/watch?v=wmJY7ix1dLU
Attempt 2: twrpdtgen
Tool: https://github.com/twrpdtgen/twrpdtgen
Guide: https://forum.xda-developers.com/t/guide-to-twrp-building.4515895/
Attempt 2.5: Manual device tree port
Similar devices: https://www.gsmarena.com/results.php3?s4Gs=0&sChipset=100&sWLANs=3&sBluetooths=1
- https://www.gsmarena.com/oneplus_nord_ce_2_5g-11269.php
- https://www.gsmarena.com/samsung_galaxy_m53-11439.php
- https://www.gsmarena.com/xiaomi_redmi_k50_pro-11372.php
Tools:
TWRP templates:
- https://github.com/pjgowtham/recovery_device_xiaomi_agate
- https://github.com/Ko-Hi-Dev/twrp_iv2201.git
- https://github.com/imasaru/android_device_tree_template
- https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp/tree/twrp-11
Tutorials:
- https://www.alexenferman.com/articles/TWRP/how-to-create-a-twrp-device-tree
- https://gist.github.com/lopestom/a5e6b690028cedd47d7e648a1035b358
- https://gist.github.com/lopestom/3c1f3eaa66248c56e61acf19ddd4b96c
- https://gist.github.com/rokibhasansagar/15c8e728d94a6bd35a687aac73ef79a5
- https://forum.xda-developers.com/t/how-to-device-tree-for-building-twrp-to-your-device.2581702/
- https://forum.xda-developers.com/t/guide-porting-twrp-without-source.3843473/
- https://www.techora.net/port-twrp-for-mediatek-64-bit-mt67xx.html