To get started with Android, you'll need to get familiar with Git and Repo.
1.Set up your environment
sudo apt-get install git-core
git clone https://github.com/akhilnarang/scripts
cd scripts
bash setup/android_build_env.sh
2.Then run these commands to get git all working:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
3.Then Create a folder for SpiceOS and open it
mkdir spiceos
cd spiceos
4.To initialize your local repository using the SpiceOS trees, use a command like this:
repo init -u https://github.com/SpiceOS/android.git -b 11 --depth=1
5.Then to sync up:
repo sync -c -f --force-sync
OR, for those with limited bandwidth/storage:
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
6.To start the build once everything is ready , Run to prepare our devices list
. build/envsetup.sh
7.Now build
breakfast codename
mka bacon