How rufolangus/aaosp works
AAOSP is an Android 15 reference platform for on-device LLM tool use through manifest-declared MCP services. The documented workflow runs from a user request in a launcher, through local inference and tool discovery, to consent-gated dispatch and a result returned for another model pass. The tree exposes only the Contacts provider source; platform services, launcher, registry, and Calendar implementation are documented but not present here, so those nodes have no source path. Relationships among those components reflect README statements, not inspected implementation.
Main entry points: ContactsMcpService.java Contacts MCP
Components 13
Agent experience
- AgenticLauncher
MCP platform
- Local LLM
- MCP manifest
- Manifest parser
- MCP registry
- LlmManagerService
Consent and audit
- Consent gate
- Audit log
Reference providers
- Contacts MCP
test-mcp-apps/ContactsMcp/src/com/android/contacts/mcp/ContactsMcpService.java - Calendar MCP
- Contacts provider
- Calendar data
Other components
- User
Connections 18
- User → AgenticLauncher: submits request
README.md - AgenticLauncher → LlmManagerService: sends prompt
README.md - LlmManagerService → Local LLM: runs inference
README.md - Local LLM → LlmManagerService: emits tool call
README.md - MCP manifest → Manifest parser: declares tools
README.md - Manifest parser → MCP registry: indexes tools
README.md - LlmManagerService → MCP registry: discovers tools
README.md - LlmManagerService → Consent gate: requests approval
README.md - Consent gate → Audit log: records call
README.md - LlmManagerService → Contacts MCP: dispatches tool
README.md - LlmManagerService → Calendar MCP: dispatches tool
README.md - Contacts MCP → Contacts provider: queries contacts
test-mcp-apps/ContactsMcp/src/com/android/contacts/mcp/ContactsMcpService.java - Calendar MCP → Calendar data: accesses calendar
- Contacts MCP → LlmManagerService: returns result
README.md - Calendar MCP → LlmManagerService: returns result
README.md - LlmManagerService → Local LLM: continues model pass
README.md - LlmManagerService → AgenticLauncher: returns answer
README.md - AgenticLauncher → User: renders answer
README.md