logo
0
0
Login
Forkfromaosp/monorepo, behind:main11 commits

AOSP (Android Open Source Project)

badge badge

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.

1. Repository Introduction

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.

2. Code Download

2.1 Download Using Repo Tool

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

2.2 Processing and Merging Code

  • After downloading, the code is merged into monorepo, removing sub-repositories' .git directories and root directory's .repo directory (no further need for Repo tool management).
  • Large files are converted to Git LFS tracked files.

2.3 Environment Setup and Local Build

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

3. CNB Configuration

The project uses cnb's git-clone-yyds for fast cloning, volume caching, and remote development features. See .cnb.yml for detailed configuration.

4. Experience Incremental Build

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.

About

Android-14.0.0_r1 of AOSP.

Language
C++14.7%
Java11.4%
C7%
XML6.1%
Others60.8%