If what you want is the necessary commands to create a build for a specific device, I can put the content of the script that does it for you. Well, better I separate it in 2 scripts, one to update the sources, and another one to make the compilation having the sources already in local.
It is not interactive. It’s just run it and wait for it to finish hours later.
For example… a device: tissot (Xiaomi Mi A1)
updaterepos.sh
#!/bin/bash
mkdir ~/bin 2>/dev/null
PATH="$HOME/bin:$PATH"
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
mkdir -p .repo/local_manifests
cp ‘roomservice.xml’ .repo/local_manifests
read -p "Que sincronizo 1=eOS-Q ; 2=LineageOS 17.1 ? " OS
if [ $OS -eq 1 ]; then
echo “Sincronizando repositorio de /e/”
repo init -u https://gitlab.e.foundation/e/os/releases.git -b v1-q
else
echo “Sincronizando repositorio de LineageOS”
repo init -u git://github.com/LineageOS/android.git -b lineage-17.1
fi
repo sync --force-sync
compilar.sh
#!/bin/bash
export USE_CCACHE=1
export CCACHE_SIZE=70G
export LC_ALL=C
export MINIMAL_APPS=true
source build/envsetup.sh
breakfast tissot
croot
brunch tissot
The MINIMAL_APPS variable is used if you do not want these apps to be included in your build:
- LibreOffice viewer
- PDFViewer
- Maps
- Weather
If you set false then you will have all apps are include.