AOSP is the Android Open Source Project, a complete software stack including the operating system, middleware and applications. The goal of AOSP is to provide a complete, general-purpose, open-source, and portable software stack to support the development of mobile and embedded devices such as phones, tablets, car systems, TVs and other devices.
This repository contains AOSP code (android-14.0.0_r1) synced from official sources using the Repo tool. The downloaded code has been processed and merged into a monorepo.
Using cnb for code hosting and compilation: 125GB of code prepared in under 10 seconds.
Download the code for android-14.0.0_r1 branch using Repo with depth=1 (no commit history), then execute repo sync command to complete the download.
repo init -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r1 --current-branch --depth=1 --no-clone-bundle && repo sync -j 32 -c -d --no-clone-bundle
.git directories and root directory's .repo directory (no further need for Repo tool management).Refer to the pipeline's Dockerfile which includes dependencies required for AOSP compilation. You can also follow the official documentation to install dependencies.
Building AOSP code requires significant memory and disk space. Recommended: 32GB+ RAM and 500GB+ disk space.
# Set environment variables
source build/envsetup.sh
# Select build target
lunch aosp_arm-eng
# Build with -j64 (64 parallel jobs), adjust based on your machine configuration
make -j64
The project uses cnb's git-clone-yyds for fast cloning, volume caching, and remote development features. See .cnb.yml for detailed configuration.
You can modify line 6181 of frameworks/native/services/surfaceflinger/SurfaceFlinger.cpp file, specifically the mClientColorMatrix method coordinates.
This method adjusts Android 14's background color. After modification, execute source build/envsetup.sh && lunch aosp_arm-eng && make -j64 to trigger incremental compilation.