Yeah, that's about it...
Just whatever I use to build Android for my phones with.
-
Ensure you are running a semi-recent Windows 11 version (using IoT LTSC 2024 in this case)
-
Enable WSL, Hyper-V, Windows Hypervisor Platform, and Virtual Machine Platform (will require a restart)
-
Install Ubuntu 22.04.3 from the Microsoft Store
-
Run the Ubuntu-22.04.3 App from the Start Menu and configure it
-
Create a
.wslconfig
folder in your User folder and add this code (specific to my CPU, adjust based on your specs):[wsl2] memory=48GB processors=12 swap=32GB
-
Terminate WSL and open it again:
wsl --terminate Ubuntu-22.04.3
-
Update the Ubuntu WSL instance:
sudo apt update sudo apt upgrade
-
Install the dependencies:
sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev libc6-dev-i386 \ x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig \ python-is-python3 repo git-lfs libssl-dev
-
Download and replace the
repo
applet in/usr/bin
from here
(needed to avoid git-lfs errors because the repo binary version that the deb ships is horribly outdated)
-
Create your working directory on the VHDX (I would suggest using your WSL user's
/home
directory) -
Set up repo / git:
git config --global user.name [your user] git config --global user.email [your email] repo init -u https://github.com/PixelOS-AOSP/manifest.git -b fourteen --git-lfs
-
Create the
local_manifests
folder in the.repo
directory and place theroomservice.xml
in it:cd .repo git clone https://github.com/legofanlovessayori/android_build.git local_manifests
-
Initiate the source download:
repo sync --force-sync --optimized-fetch -j `nproc`
-
Run the product configuration:
. build/envsetup.sh lunch aosp_a71-ap2a-[buildtype]
-
Start the build:
mka bacon