# Aosp Getting Started

> AOSP Part I — Getting Started. Use when reasoning about the AOSP source tree at a high level, the repo/manifest workflow, the Soong (Android.bp) and Bazel/Kleaf build systems, lunch targets, the m build entry point, or aconfig feature flags (build-time vs. runtime, release configs, ramp/cleanup workflows). Chapters 1–3 (Introduction, Source Code & Build System, Feature Flags).

- Skill: `aospbooks/aosp-getting-started` (Agent Skill)
- Install (CLI): `npx skillmds@latest add aospbooks/aosp-getting-started`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aospbooks/aosp-getting-started/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: aospbooks (https://skillmd.com/u/aospbooks)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/aospbooks/aosp-getting-started

---


# AOSP Part I — Getting Started

Foundational chapters that orient a reader to AOSP, its source tree, how to
sync and build it, and how feature gating works across the platform.

## Chapters in this Part

- `01-introduction.md` — what AOSP is vs. Android, the layer-cake architecture, source-tree tour, who maintains what, version history
- `02-source-and-build.md` — repo/manifest, Soong (`Android.bp`), Bazel-from-Soong, Kleaf for the kernel, lunch targets, the `m` workflow
- `03-feature-flags.md` — aconfig declarations, generated Java/C++ accessors, build-time vs. runtime flags, release configs, ramp-and-cleanup workflow

## When to load which chapter

- Question is "what is AOSP / where do I start" → `01-introduction.md`
- Question mentions Soong, Bazel, Kleaf, repo, manifest, lunch, or m → `02-source-and-build.md`
- Question mentions feature flags, aconfig, release configs, or `read_only` flags → `03-feature-flags.md`

