# aospbooks/aosp-internal-book architecture

> Architecture diagram of the GitHub repository aospbooks/aosp-internal-book, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aospbooks/aosp-internal-book
- Repository: https://github.com/aospbooks/aosp-internal-book

## Overview

AOSP Internals is a source-referenced technical book about Android’s architecture, with an accompanying manifest snapshot/diff tool and Mermaid diagram utilities. The main reader workflow is to consult the chapter index, choose relevant chapters, then use their AOSP paths and line references to verify details against source. The graph groups chapter nodes by architectural layer and includes the documented AI-agent entry point and auxiliary runtime tools. Edges reflect README workflow statements or shown code; chapter-to-chapter relationships are omitted because no such calls are established.

Main entry points: [`tools/manifest_snapshot.py`](https://github.com/aospbooks/aosp-internal-book/blob/main/tools/manifest_snapshot.py) (Manifest Snapshot Tool), [`llms.txt`](https://github.com/aospbooks/aosp-internal-book/blob/main/llms.txt) (Chapter Index), [`tools/render_mermaid_png.py`](https://github.com/aospbooks/aosp-internal-book/blob/main/tools/render_mermaid_png.py) (Diagram PNG Tool), [`mkdocs-mermaid-renderer/mkdocs_mermaid_renderer/renderer.py`](https://github.com/aospbooks/aosp-internal-book/blob/main/mkdocs-mermaid-renderer/mkdocs_mermaid_renderer/renderer.py) (Mermaid SVG Renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_book["AOSP Architecture Book"]
  node_chapter_index["Chapter Index<br/>[llms.txt]"]
  node_aosp_chapters["AOSP Chapters<br/>[01-introduction.md]"]
end

subgraph group_platform["Platform Chapters"]
  node_boot_kernel["Boot And Kernel"]
  node_native_base["Native Foundations"]
  node_ipc_hal["IPC And HAL<br/>[09-binder-ipc.md]"]
  node_native_services["Native Services"]
  node_graphics_media["Graphics And Media"]
  node_runtime["ART And Bridge<br/>[18-art-runtime.md]"]
end

subgraph group_apps["Framework And Apps"]
  node_system_server["System Server"]
  node_activity_window["Activity And Window"]
  node_package_content["Packages And Content"]
  node_system_apps["System Apps<br/>[48-systemui.md]"]
end

subgraph group_extensions["Platform Extensions"]
  node_connectivity["Connectivity<br/>[35-networking.md]"]
  node_security["Security<br/>[40-security.md]"]
  node_ai_devices["AI And Devices"]
  node_updates_virtualization["Updates And Virtualization"]
end

subgraph group_tools["Manifest And Diagram Tools"]
  node_manifest_cli["Manifest Snapshot Tool"]
  node_manifest_data["Manifest Snapshots<br/>[README.md]"]
  node_png_tool["Diagram PNG Tool"]
  node_svg_renderer["Mermaid SVG Renderer<br/>[renderer.py]"]
  node_svg_cache[("SVG Cache")]
end

node_reader(("Engineer / Agent"))

node_reader -->|"consults"| node_chapter_index
node_chapter_index -->|"lists chapters"| node_aosp_chapters
node_reader -->|"selects chapters"| node_aosp_chapters
node_reader -->|"runs command"| node_manifest_cli
node_manifest_cli -->|"writes snapshots"| node_manifest_data
node_manifest_cli -->|"compares snapshots"| node_manifest_data
node_reader -->|"requests renders"| node_png_tool
node_png_tool -->|"uses renderer"| node_svg_renderer
node_svg_renderer -->|"reads and writes"| node_svg_cache

click node_chapter_index "https://github.com/aospbooks/aosp-internal-book/blob/main/llms.txt"
click node_aosp_chapters "https://github.com/aospbooks/aosp-internal-book/blob/main/01-introduction.md"
click node_boot_kernel "https://github.com/aospbooks/aosp-internal-book/blob/main/04-boot-and-init.md"
click node_native_base "https://github.com/aospbooks/aosp-internal-book/blob/main/07-bionic-and-linker.md"
click node_ipc_hal "https://github.com/aospbooks/aosp-internal-book/blob/main/09-binder-ipc.md"
click node_native_services "https://github.com/aospbooks/aosp-internal-book/blob/main/12-native-services.md"
click node_graphics_media "https://github.com/aospbooks/aosp-internal-book/blob/main/13-graphics-render-pipeline.md"
click node_runtime "https://github.com/aospbooks/aosp-internal-book/blob/main/18-art-runtime.md"
click node_system_server "https://github.com/aospbooks/aosp-internal-book/blob/main/20-system-server.md"
click node_activity_window "https://github.com/aospbooks/aosp-internal-book/blob/main/22-activity-and-window.md"
click node_package_content "https://github.com/aospbooks/aosp-internal-book/blob/main/26-package-manager.md"
click node_system_apps "https://github.com/aospbooks/aosp-internal-book/blob/main/48-systemui.md"
click node_connectivity "https://github.com/aospbooks/aosp-internal-book/blob/main/35-networking.md"
click node_security "https://github.com/aospbooks/aosp-internal-book/blob/main/40-security.md"
click node_ai_devices "https://github.com/aospbooks/aosp-internal-book/blob/main/51-ai-appfunctions.md"
click node_updates_virtualization "https://github.com/aospbooks/aosp-internal-book/blob/main/54-mainline-modules.md"
click node_manifest_cli "https://github.com/aospbooks/aosp-internal-book/blob/main/tools/manifest_snapshot.py"
click node_manifest_data "https://github.com/aospbooks/aosp-internal-book/blob/main/manifest-snapshots/README.md"
click node_png_tool "https://github.com/aospbooks/aosp-internal-book/blob/main/tools/render_mermaid_png.py"
click node_svg_renderer "https://github.com/aospbooks/aosp-internal-book/blob/main/mkdocs-mermaid-renderer/mkdocs_mermaid_renderer/renderer.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_chapter_index,node_aosp_chapters toneBlue
class node_boot_kernel,node_native_base,node_ipc_hal,node_native_services,node_graphics_media,node_runtime toneAmber
class node_system_server,node_activity_window,node_package_content,node_system_apps toneMint
class node_connectivity,node_security,node_ai_devices,node_updates_virtualization toneRose
class node_manifest_cli,node_manifest_data,node_png_tool,node_svg_renderer,node_svg_cache,node_reader toneIndigo
```

## Components

### AOSP Architecture Book

- [Chapter Index](https://github.com/aospbooks/aosp-internal-book/blob/main/llms.txt): `llms.txt`
- [AOSP Chapters](https://github.com/aospbooks/aosp-internal-book/blob/main/01-introduction.md): `01-introduction.md`

### Platform Chapters

- [Boot And Kernel](https://github.com/aospbooks/aosp-internal-book/blob/main/04-boot-and-init.md): `04-boot-and-init.md`
- [Native Foundations](https://github.com/aospbooks/aosp-internal-book/blob/main/07-bionic-and-linker.md): `07-bionic-and-linker.md`
- [IPC And HAL](https://github.com/aospbooks/aosp-internal-book/blob/main/09-binder-ipc.md): `09-binder-ipc.md`
- [Native Services](https://github.com/aospbooks/aosp-internal-book/blob/main/12-native-services.md): `12-native-services.md`
- [Graphics And Media](https://github.com/aospbooks/aosp-internal-book/blob/main/13-graphics-render-pipeline.md): `13-graphics-render-pipeline.md`
- [ART And Bridge](https://github.com/aospbooks/aosp-internal-book/blob/main/18-art-runtime.md): `18-art-runtime.md`

### Framework And Apps

- [System Server](https://github.com/aospbooks/aosp-internal-book/blob/main/20-system-server.md): `20-system-server.md`
- [Activity And Window](https://github.com/aospbooks/aosp-internal-book/blob/main/22-activity-and-window.md): `22-activity-and-window.md`
- [Packages And Content](https://github.com/aospbooks/aosp-internal-book/blob/main/26-package-manager.md): `26-package-manager.md`
- [System Apps](https://github.com/aospbooks/aosp-internal-book/blob/main/48-systemui.md): `48-systemui.md`

### Platform Extensions

- [Connectivity](https://github.com/aospbooks/aosp-internal-book/blob/main/35-networking.md): `35-networking.md`
- [Security](https://github.com/aospbooks/aosp-internal-book/blob/main/40-security.md): `40-security.md`
- [AI And Devices](https://github.com/aospbooks/aosp-internal-book/blob/main/51-ai-appfunctions.md): `51-ai-appfunctions.md`
- [Updates And Virtualization](https://github.com/aospbooks/aosp-internal-book/blob/main/54-mainline-modules.md): `54-mainline-modules.md`

### Manifest And Diagram Tools

- [Manifest Snapshot Tool](https://github.com/aospbooks/aosp-internal-book/blob/main/tools/manifest_snapshot.py): `tools/manifest_snapshot.py`
- [Manifest Snapshots](https://github.com/aospbooks/aosp-internal-book/blob/main/manifest-snapshots/README.md): `manifest-snapshots/README.md`
- [Diagram PNG Tool](https://github.com/aospbooks/aosp-internal-book/blob/main/tools/render_mermaid_png.py): `tools/render_mermaid_png.py`
- [Mermaid SVG Renderer](https://github.com/aospbooks/aosp-internal-book/blob/main/mkdocs-mermaid-renderer/mkdocs_mermaid_renderer/renderer.py): `mkdocs-mermaid-renderer/mkdocs_mermaid_renderer/renderer.py`
- **SVG Cache**

### Other components

- **Engineer / Agent**

## Connections

- Engineer / Agent → Chapter Index: consults (evidence: `README.md`)
- Chapter Index → AOSP Chapters: lists chapters (evidence: `README.md`)
- Engineer / Agent → AOSP Chapters: selects chapters (evidence: `README.md`)
- Engineer / Agent → Manifest Snapshot Tool: runs command (evidence: `README.md`)
- Manifest Snapshot Tool → Manifest Snapshots: writes snapshots (evidence: `README.md`)
- Manifest Snapshot Tool → Manifest Snapshots: compares snapshots (evidence: `README.md`)
- Engineer / Agent → Diagram PNG Tool: requests renders (evidence: `README.md`)
- Diagram PNG Tool → Mermaid SVG Renderer: uses renderer (evidence: `tools/render_mermaid_png.py`)
- Mermaid SVG Renderer → SVG Cache: reads and writes (evidence: `mkdocs-mermaid-renderer/mkdocs_mermaid_renderer/renderer.py`)
