The Architecture Battle of Three AI Phone Technical Paths
This article compares three architectural paths for building AI agents on mobile devices: vision-based interface automation, service-orchestrated task scheduling, and system-level intelligence in the OS kernel. It explains how each path handles execution authority, capability placement, and ecosystem adaptation costs, along with their engineering pipelines, strengths, and constraints. Developers will find practical guidance on layered capability design, dual-channel fallback, idempotency, observability, and compliance, plus a view on where the competition is heading.
1. Background: The Mobile Interaction Entry Point Is Being Redefined
As the phone evolves from a “tool that passively responds to commands” into a “steward that actively understands intent,” the core tension in interaction shifts with it. Users used to adapt to the interface structure of apps; now the goal is for machines to understand natural-language intent and decide which capabilities to invoke to complete a task end to end. Three distinct technical paths have emerged around this shift. They are not merely a contest over how many features each offers, but an architectural disagreement about who holds execution authority, which layer capabilities live in, and how the ecosystem shares adaptation costs. Understanding the constraints and trade-offs of these three paths is the foundation for judging where the mobile ecosystem is heading.
2. Path One: Vision-Driven Interface Automation
2.1 Basic Principle
This path treats the screen as the only input interface. It captures pixels through screenshots, uses a vision recognition model to locate interactive elements such as buttons, input fields, and list items, then combines semantic understanding to generate an action sequence that simulates taps, swipes, long presses, and text input to complete tasks across apps. Its biggest advantage is generality: in theory, an agent can operate any interface a human can operate, with no modifications required from the app side.
2.2 Engineering Pipeline
A deployable pipeline typically has five stages:
Intent parsing → Screen capture → Element recognition and coordinate mapping → Action planning → Execution and state verification
State verification is the most easily overlooked. Vision-based approaches lack stable structured feedback and must confirm whether the previous step took effect by comparing page features, checking whether key text appears, or observing scroll position changes. Otherwise, misoperations are highly likely around pop-ups, ad overlays, and loading delays.
2.3 Main Challenges
- Stability: UI redesigns, dynamic content, and A/B experiments all cause recognition results to drift.
- Performance and power: Frequent screenshots and visual inference bring noticeable compute and battery overhead.
- Permissions and compliance: Driving business flows directly, bypassing the front-end page, crosses platform security red lines and business rules; restricted access often occurs in practice.
- Explainability: When something goes wrong, it is hard to pinpoint whether the recognition, the planning, or the execution failed.
3. Path Two: Service-Orchestrated Task Scheduling
3.1 Basic Principle
This path does not simulate human hands. Instead, it positions the agent as a “scheduling center”: it decomposes user intent into subtasks and executes them through callable service APIs, capability platforms, or built-in system actions. Execution authority moves up from the interface layer to the service layer, and stability is guaranteed by interface contracts.
3.2 Layered Design Recommendation
Intent layer: multi-turn clarification, slot filling, context inheritancePlanning layer: task decomposition, dependency ordering, failure fallback strategyIntegration layer: capability registration, authentication, rate limiting, version managementExecution layer: invocation, retry, idempotency control, result normalization
Illustrative orchestration logic can be abstracted as:
def run_task(intent, slots):plan = planner.decompose(intent, slots) # Build a directed acyclic dependency graphfor node in plan.order():if not registry.available(node.capability):return fallback(node) # Degrade or hand off to a human when a capability is missingresult = executor.invoke(node, idempotent=True)if not result.ok:return retry_or_abort(node, result)return aggregator.merge(plan.results())
3.3 Advantages and Constraints
The advantages are strong determinism, testability, and easy idempotency and auditing. The constraint is that coverage depends on how open the ecosystem is. Long-tail apps and vertical industry software often lack usable APIs, so this path needs to be combined with the vision approach to form a dual channel of “API first, vision as fallback.”
4. Path Three: Pushing Intelligence Down into the System Kernel
4.1 Basic Principle
The third path pushes models and inference capabilities down to the OS layer. The system uniformly provides semantic understanding, content generation, cross-app context passing, and permission arbitration, and apps integrate through standard system capabilities. Its value lies in a global perspective: the system has visibility into foreground apps, notifications, sensors, and the account system, enabling more complete judgments than any single app can make.
4.2 Key Engineering Issues
- Device-cloud collaboration: Lightweight models stay resident on-device to handle high-frequency, low-sensitivity requests, while complex inference goes to the cloud; this requires routing policies and a degradation path.
- Memory and scheduling: A resident model squeezes foreground app resources, requiring dynamic loading, quantization, and inference priority control.
- Privacy boundaries: Sensitive data is processed locally and desensitized before going to the cloud, combined with fine-grained authorization and revocable credentials.
- Consistency: After a system capability upgrade, upper-layer apps must remain backward compatible.
5. Side-by-Side Comparison of the Three Paths
| Dimension | Vision Automation | Service Orchestration | System Kernel |
|---|---|---|---|
| Execution location | Interface layer | Service layer | System layer |
| Generality | High | Depends on openness | Medium-high |
| Stability | Lower | High | High |
| Adaptation cost | Borne by the agent | Borne by the service provider | Shared by system and apps |
| Permission risk | High | Medium | Medium-low |
| Typical weakness | Power consumption and misoperations | Insufficient long-tail coverage | Fragmentation and compatibility |
The conclusion is not to pick one of three. A more realistic form is layered collaboration: the system layer handles understanding, authorization, and context; the service layer handles deterministic execution; the interface layer serves as long-tail fallback.
6. Practical Recommendations for Developers
- Layer capabilities: Separate “understanding, planning, execution, and auditing” so a monolithic agent does not become hard to evolve.
- Dual-channel fallback: Degrade to interface operations when an API call fails, and record the reason for degradation.
- Idempotency and rollback: Irreversible actions such as payments and order placement must have a second confirmation and token validation.
- Observability: Build full-chain tracing for every task, collecting metrics such as recognition confidence, node latency, and failure categories, and close the loop with logging services and monitoring alerts.
- Elastic infrastructure: Deploy inference and task scheduling services in containers, use message queues to smooth peaks, and use object storage to retain audit data.
- Compliance first: Least privilege, clear disclosure, and the ability to interrupt at any time are prerequisites for an agent to remain usable in the long term.
7. Trend Outlook
The focus of future competition will shift from “demonstrating model capability” to “execution trustworthiness”: whoever builds solid permission boundaries, failure recovery, and auditing systems is more likely to become the user’s default entry point. General capabilities from Baidu AI Cloud in model services, container platforms, and observability can serve as one underlying choice for carrying this kind of agent engineering. For developers, a more reliable starting point is to first determine whether their scenario is long-tail general-purpose or a vertical closed loop, and then decide the weight of each path.
