Skip to content

Instantly share code, notes, and snippets.

View masemoel's full-sized avatar
🤪
Working from home

Manuel José Moral Eliche masemoel

🤪
Working from home
View GitHub Profile
@masemoel
masemoel / gist:537301229c1bd4c8b20c50f535751d19
Created January 25, 2022 22:41
Enable ccache on Android 12 environments
# 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).
@masemoel
masemoel / BuildGuide.txt
Last active September 6, 2024 10:55
How to build an A12+ ROM from scratch under Ubuntu 22.04 (or based) and higher
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****