This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First time building A12 | |
Open terminal and run: | |
sudo bash | |
mkdir /mnt/ccache | |
exit | |
sudo mount --bind /home/masemoel/.ccache /mnt/ccache | |
export USE_CCACHE=1 && export CCACHE_EXEC=/usr/bin/ccache && ccache -M 60G && export CCACHE_DIR=/mnt/ccache | |
(set ccache -M with the maximum of GB of your disk you wanna set available for ccache, and home/masemoel with home/ and your username on your Linux environment). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To build a A12+ (AOSP/LOS based) on Ubuntu 22.04+ (or distros based on it), there are four main steps: | |
(This guide is applicable for recoveries as well (TWRP, OFRP...)) | |
Working on Android 12 and upper | |
################################################################# | |
# Step 1: Setup your environment # | |
################################################################# | |
****Setup Linux to build Android**** |