Enter the machine using adb shell
Run cat /proc/partitions
# Path Purpose Size
0 /dev/block/mmcblk0 7761920
1 /dev/block/mmcblk0p1 data 6085631
Before anything or any comments or ideas, this is a way I wanted to try to inform and update what a device tree is and what it has, and finally how Custom Recovery is created. So this is not a complete guide and it won't be! I never intended to do that.
Please take a look and may you take a few minutes to read the original guide. I had written myself that I intended to update the information. I hope that after reading the original guide you can go back and have a few minutes of reading and mainly practice to gain experience.
This guide comes to complement or update some important information. All thanks to @rokibhasansagar about first guide Make A TWRP Tree For Your Device & Build
Certainly, given the breadth of the subject, it should have many more parts. But understand about "Minimal" thinking and that I didn't intend to extend it any further than necessary. So the guide has:
So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.
Prerequisite: Certain requirements are to be met before you start with this amazing journey.
| #!/bin/bash | |
| # author: Marcos Oliveira <terminalroot.com.br> | |
| # describe: Clone Only a Git Subdirectory | |
| # version: 1.0 | |
| # license: GNU GPLv3 | |
| if [[ "$(echo $LANG | cut -c 1-2)" != "pt" ]]; then | |
| declare -x l=( "usage" | |
| "Use this flag to inform the REPOSITORY, this option is not optional." |
Dump of all commands from "So You Think You Know Git - FOSDEM 2024":
The full blog post: https://blog.gitbutler.com/git-tips-and-tricks/
| If you have a huge repository (in size and in history) and want to add a subfolder | |
| to your project as a submodule you can follow this example to save time and space | |
| using git's shallow clone and shallow checkout feature. It is a bit more complicated | |
| in this example because I assume that you want your submodule to track a non-default | |
| branch, called `mybranch`, instead of the `master` branch. Things could probably get | |
| a lot simpler when using the default branch. After following the commands in these | |
| examples you can use `git submodule update` and `git submodule update --remote` as normal. |
You will need something from your Stock ROM first. Get them all and Try to modify it using the procedure.
Note: This guide will be helpful for you if you have older mediatek devices (android-5.1 or android-6.0), but up-to-date devices can also work.
Update: This guide had a few typos and derps (Oops..), but I've tried to make it free of those now (Dated November 18, 2020)
Bonus: You can also use this tool by @SebaUbuntu, @yshalsager and @mauronofrio to auto generate the twrp tree. The tool is best if your device runs on android-9.0. The tools is still not 100% compatible to all devices, but I'll still recommend it and give it 8.5/10 in the scale of varsatility.
| #!/bin/bash | |
| ################ | |
| # Uncomment if you want the script to always use the scripts | |
| # directory as the folder to look through | |
| #REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| REPOSITORIES=`pwd` | |
| IFS=$'\n' |
A video is available that elaborates on the involved technologies and goes through these steps if you would prefer that format:
Installing Docker Desktop with WSL2 back end
I used the following references to learn how to install Docker Desktop and WSL2: