# Aosp Native Services And Media

> AOSP Part IV — Native Services & Media. Use when reasoning about surfaceflinger, audioserver, mediaserver, cameraserver, the graphics pipeline (BufferQueue, GraphicBuffer, OpenGL ES / Vulkan / Skia / HWUI, RenderThread, layer composition), the animation system (Choreographer, ValueAnimator, RenderNode animations, dynamic spring/fling), the audio stack (AudioFlinger, AudioPolicyManager, AAudio, OpenSL ES, Spatializer), the media pipeline (MediaCodec, MediaExtractor, NuPlayer, codec2 HAL), or the sensor stack (SensorService, sensor HAL, batching, wake-up sensors). Chapters 12–17.

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

---


# AOSP Part IV — Native Services & Media

The native daemons that run continuously and own audio, video, sensors, and
the graphics composition pipeline.

## Chapters in this Part

- `12-native-services.md` — surfaceflinger, audioserver, mediaserver, cameraserver process layout, init triggers, AIDL boundaries, HAL clients
- `13-graphics-render-pipeline.md` — SurfaceFlinger, BufferQueue, GraphicBuffer, OpenGL ES / Vulkan / Skia / HWUI, RenderThread, layer composition
- `14-animation-system.md` — Choreographer, ValueAnimator/ObjectAnimator, RenderNode animations, dynamic animation, shared-element transitions
- `15-audio-system.md` — AudioFlinger, AudioPolicyManager, audio HAL, AAudio/OpenSL ES, spatial audio (Spatializer), routing rules
- `16-media-and-camera.md` — MediaCodec, MediaExtractor, NuPlayer, codec2 HAL, camera service, image/video pipeline overview
- `17-sensors.md` — SensorService, sensor HAL, batching, wake-up sensors, FIFO and event delivery, sensor fusion

## When to load which chapter

- Question is about which native daemons exist or how they boot → `12-native-services.md`
- Question mentions SurfaceFlinger, BufferQueue, GraphicBuffer, OpenGL/Vulkan/Skia/HWUI, RenderThread, composition → `13-graphics-render-pipeline.md`
- Question mentions Choreographer, animator classes, RenderNode animations, springs/flings → `14-animation-system.md`
- Question mentions AudioFlinger, AudioPolicyManager, AAudio, OpenSL ES, Spatializer → `15-audio-system.md`
- Question mentions MediaCodec, MediaExtractor, NuPlayer, codec2, camera service → `16-media-and-camera.md`
- Question mentions sensors, SensorService, wake-up sensors, batching → `17-sensors.md`

