Before starting check hardware requirement.
This is for informational purposes only, without any guarantee, you may need extra packages.
The following is from CrDroid README. Some complements can be found here too.
$ adduser mk #set add. info. 20lts
$ adduser mk sudo
$ exit
$ login mk
$ sudo apt update
# Several packages are needed in order to build LineageOS & CrDroid
$ sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-gtk3-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
# Install Repo tool
# Make a directory where Repo will be stored and add it to the path
$ mkdir ~/bin
$ PATH=~/bin:$PATH
# Download Repo itself
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
# Make Repo executable
$ chmod a+x ~/bin/repo
#symlink python and add git credentials
sudo ln -s /usr/bin/python3 /usr/bin/python
#400M > apt
git config --global user.name Name Surname
git config --global user.email [email protected]
git config --global credential.helper "cache --timeout=86400"
#clone a repo
sudo reboot
# Create dirs
$ mkdir lineage17 ; cd lineage17
# Init repo
$ repo init --depth=1 -u https://github.com/muhammadkarodia/android.git
# Clone my local repo
$ git clone https://github.com/muhammadkarodia/android_manifest_samsung_a3y17lte.git .repo/local_manifests
# Sync official Github repo
$ repo sync --no-repo-verify -c --force-sync --no-clone-bundle --no-tags --optimized-fetch --prune -j`nproc`
# Pull latest unofficial changes from Gerrit : https://review.lineageos.org/q/branch:lineage-17.1
# Since only security patch up to february 2023 have been published on Github
# you need to apply patchs from Gerrit to use latest security fixes
$ . build/envsetup.sh
# Apply the patchs months by months in chronological order (here March 2023 for instance)
# where Q_asb_2023-03 is the name of the topic dedicated to it on Gerrrit
$ repopick -t Q_asb_2023-03
# Build
$ . build/envsetup.sh && lunch lineage_a3y17lte-userdebug && mka clean && mka bacon -j`nproc`
You need to modify the android_framework_base repo and use my commits from August 10 2023 shared here.
Additionnal features such as Signature Spoofing support are set in a android_X repo. Check my personnal repositories to find them ;).
2019 @Astrako
2020 @Martin
2021-22 @debie @gonic
2023 @debie
Telegram support group : https://t.me/debieLineageOS