# Building On-Device AI Agents on Android with Google ADK -- Part 6: Advanced Agent Architectures --...

DevFeed: [Building On-Device AI Agents on Android with Google ADK -- Part 6: Advanced Agent Architectures --...](<https://devfeed.tech/articles/building-on-device-ai-agents-on-android-with-google-adk-part-6-advanced-agent-architectures-90232.md>)

Original publisher: [Read original article](<https://medium.com/google-developer-experts/building-on-device-ai-agents-on-android-with-google-adk-part-6-advanced-agent-architectures-b4b2bffbf1ba?source=rss----a67bd6fa7d58---4>)

Author: Pankaj Rai

Published: 2026-10-19T14:27:20Z

Content type: tutorial

Language: en

Sources: [Google Developer Experts](<https://devfeed.tech/sources/google-developer-experts-medium.md>)

Topics: [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [google-adk](<https://devfeed.tech/topics/google-adk.md>), [human in the loop agent](<https://devfeed.tech/topics/human-in-the-loop-agent.md>), [hierarchical agent systems](<https://devfeed.tech/topics/hierarchical-agent-systems.md>), [LiteRT](<https://devfeed.tech/topics/litert.md>), [vercel ai sdk](<https://devfeed.tech/topics/vercel-ai-sdk.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [google-adk](<https://devfeed.tech/tags/google-adk.md>), [human-in-the-loop](<https://devfeed.tech/tags/human-in-the-loop.md>), [litert](<https://devfeed.tech/tags/litert.md>), [multi-agent](<https://devfeed.tech/tags/multi-agent.md>), [on-device-ai](<https://devfeed.tech/tags/on-device-ai.md>)

## AI overview

This Android tutorial demonstrates how to use Google ADK to organize an on-device agent into a supervisor and specialist agents, route requests with `transfer_to_agent`, and pause destructive tool actions for user confirmation through a Jetpack Compose dialog. It also shows Kotlin implementation patterns and a mode selector for comparing single-agent, multi-agent, and human-in-the-loop designs.

## Source excerpt

Building On-Device AI Agents on Android with Google ADK -- Part 6: Advanced Agent Architectures -- Hierarchical Multi-Agent Teams & Human-in-the-Loop Safety Scale from a single agent to an autonomous multi-agent system. Implement supervisor routing with transfer_to_agent and safety approval gates. 1. Beyond the Monolithic Agent Over the course of this series, we have built a capable on-device AI agent: In Part 1, we initialized LiteRT-LM with Gemma on Android. In Part 2, we empowered it with programmatic BaseTool and compile-time @Tool KSP bindings. In Part 3, we explored ToolContext and session artifacts. In Part 4, we built local RAG with Room SQLite. In Part 5, we enabled real-time SSE streaming and an observability drawer. However, as applications scale into production, monolithic single-agent designs hit two major walls: 1. Tool Bloat & Cognitive Overload When an agent is given 15 to 20 tools, its system prompt becomes crowded with tool definitions. On small mobile models (1B to 2B parameters), too many tools degrade instruction following, cause tool hallucination, and dramatically increase prefill latency on mobile CPUs. 2. Unchecked Autonomy An autonomous agent must never perform destructive actions -- such as wiping an entire database, deleting user data, or triggering a financial transaction -- without explicit user confirmation. In this final article, we solve both challenges using Google ADK's most advanced primitives: Hierarchical Multi-Agent Teams: Decomposing our monolithic agent into a Supervisor Agent and specialized sub-agents with ADK's native transfer_to_agent mechanism. Human-in-the-Loop (HITL) Safety Gates: Pausing agent execution to prompt the user with an interactive Compose approval dialog before running destructive code. 2. Architecture One: Hierarchical Multi-Agent Teams Instead of forcing one generalist agent to know everything, we structure our system as a team of focused specialists overseen by a Supervisor Agent: graph TD User["User Prompt"