The AOSP Build System
summary
AOSP on Android 13 is a multi-stage build: Blueprint/Soong parses >8,000 Android.bp files and generates a ~5–10 GB build.ninja, Kati converts legacy android.mk into additional ninja manifests, and Ninja executes a dependency graph that often builds 900–1,000 product packages taking hours. Repo pulls >1,100 git trees (~150 GB), the tree totals 50 million lines of code, and there are ~1,000 android.mk files. Right now the kernel is built with Bazel and Bazel is planned as the eventual unified build driver.
AI-written summary · about
chapters (11)
- 0:00Introduction to AOSP build
- 2:34Source and build workflow
- 8:01Build recipes and components
- 9:25Soong, Kati, and Ninja
- 11:48History of the build system
- 15:25Understanding Soong and UI
- 19:20Blueprint modules and output
- 26:05Kati and Makefile handling
- 27:43Ninja execution and tools
- 31:04Future migration to Bazel
- 33:58Questions and answers








