- Edited
Just did my first build and it worked fairly well (development branches). Hopefully the detail below help more than being annoying. It went surprisingly smooth, unlike compiling OpenWRT, except for one thing. I was a bit confused about signing and generating the certificates (I tried to explore the options); I will recompile after repo diff/ syncing and removing all the changes that I may or may not have done while trying to understand what I was doing. I was able to flash my phone with no issue. And I did made sure that the automated update were disabled as per the warning in the instruction.
My setup is a debian 12 vm using virsh with no graphics installed. What I did was (after following the instructions specific for Debian 12 and yarnpkg) to download repo from Google (manual method) and the required packages listed in "Install required software". Then for adevtool I followed the instruction from (what I hope is the) official github page. Since it mentioned minimum I installed node.js 22 using npm.
The repo tool and the .jar file from adevtool were all installed in the bin directory that I created in the home directory (~/bin). I then exported the path and added it to .bashrc . That's it. That and I found that I needed to restart from the beginning with lunch command if I were to exit the current session.
https://source.android.com/docs/setup/start/requirements
https://github.com/kdrag0n/adevtool/tree/main
And with this setup (no windows involved) I also saw the HOST_CROSS_OS=windows .