aosp-part-infrastructure

Identify and contextualize Android infrastructure topics across Mainline, APEX, OTA, and virtualization.

122|30|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/aospbooks/aosp-internal-book --skill aosp-part-infrastructure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aosp-part-infrastructure
Source: https://github.com/aospbooks/aosp-internal-book/tree/main/agents/claude/skills/aosp-part-infrastructure
Command: npx skills add https://github.com/aospbooks/aosp-internal-book --skill aosp-part-infrastructure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured, high-level map of Android's core infrastructure topics—Mainline/APEX, OTA updates, virtualization, testing, and debugging tools—so engineers can reason about how these subsystems interact and affect system updates and reliability.

Core Features & Use Cases

  • Comprehensive overview: Covers Project Mainline, APEX formats/signing, apexd activation, module catalogs, and SDK Extensions; OTA update architectures (A/B, Virtual A/B) with payloads and rollback protection; virtualization stacks (AVF, pKVM, crosvm, Microdroid); and testing/diagnostics ecosystems (CTS/VTS/MTS, TradeFederation, Ravenwood, atest, presubmit).
  • Cross-cutting workflows: Explains the end-to-end flows for APEX deployment, Mainline module updates, OTA life cycles, and VM provisioning/attenuation, plus how each layer affects boot, security, and recovery.
  • Practical context: Provides concrete references to design goals, activation pipelines, and debugging/tooling pipelines (Perfetto, logcat, dumpsys) to support infrastructure reasoning and decision-making.

Quick Start

Read Chapters 52 through 56 to gain a structured map of Android infrastructure topics.

Frequently Asked Questions about aosp-part-infrastructure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does an APEX module activate during the Android boot process?

APEX activation relies on apexd to mount APEX packages, verify their manifests and signatures, and manage the Mainline module boundaries. This process ensures modular system components are safely integrated before the framework starts.

How do A/B and Virtual A/B OTA updates handle rollback protection?

A/B and Virtual A/B OTA updates use update_engine payloads paired with verity and snapshotting to verify system integrity and manage rollback protection. This architecture ensures devices can safely revert failed updates.

What is the difference between AVF, pKVM, and Microdroid in Android virtualization?

Android virtualization uses AVF as the framework, pKVM for protected hypervisor execution, crosvm as the virtual machine monitor, and Microdroid as the guest OS for isolated workloads.

Which testing frameworks should I use for Android Mainline modules and platform compatibility?

Mainline modules and platform compatibility are validated using CTS, VTS, and MTS frameworks orchestrated by TradeFederation. Developers can also run targeted tests locally using atest and Ravenwood.

How do I trace Android infrastructure performance issues using Perfetto?

Perfetto tracing captures detailed system metrics across Android infrastructure subsystems like APEX activation and OTA updates. Engineers analyze these traces to diagnose boot delays, virtualization overhead, and update_engine bottlenecks.

When do I need SDK Extensions for Project Mainline updates?

SDK Extensions are required for Project Mainline updates when new APIs need to be delivered independently of full platform releases. They define module boundaries and ensure backward compatibility across Android versions.