AOHP: An Open-Source OS-Level Agent Harness for Personalized, Efficient and Secure Interaction

Shanhui Zhao, Jiacheng Liu, Guohong Liu, Jichao Yan, Jialei Ye, Yuhao Yang, Hao Wen, Shizuo Tian, Yizhen Yuan, Yuxuan Chen, Yunxin Liu, Ju Ren, Ya-Qin Zhang, Chao Huang, Yao Guo, Yuanchun LiarXiv 2026

TL;DR

AOHP (Android Open Harness Project) is an open-source, agent-native OS harness built on top of the Android Open Source Project (AOSP) that treats AI agents as first-class system actors rather than human-mimicking app users. By introducing OS-level primitives for service composition, efficient text-based interfaces, and sandboxed information flow, AOHP boosts task completion by 21% while cutting LLM token costs in half and ensuring robust privacy protection.

What Problem Does This Paper Address?

Current operating systems are fundamentally app-centric and human-oriented. They are designed around the assumption that a human user is looking at a graphical user interface (GUI), interacting with one application at a time, and manually coordinating data across siloed apps.

AI agents, however, have completely different operational properties: they process structured text much more efficiently than raw pixels, can execute tasks in parallel, require long-lived context, and make rapid tool calls. Forcing an AI agent to operate on a conventional OS requires it to scrape screens and simulate clicks on brittle GUI coordinates. This mismatch leads to massive token overhead, slow execution, high failure rates, and severe security risks—such as exposing private plaintext data to the LLM context or leaving the system vulnerable to prompt injection attacks.

App-centric Android vs. agent-native AOHP paradigm

Methods

AOHP bridges this architectural gap by modifying the system and framework layers of AOSP, preserving hardware and app compatibility while introducing three core agent-oriented mechanisms:

  1. Personalized Service Composition: Instead of forcing sequential app-switching, AOHP allows the OS agent to break app silos and synthesize task-level entrances (e.g., a single "shopping aggregator" interface combining multiple distinct shopping apps) tailored to user intent and system-level memory.
  2. Efficient Agent Interfaces: AOHP introduces a Unified Interaction Interface supporting four invocation modes: API, CLI, Structured UI (accessibility trees/XML), and Rendered GUI fallback. It also enables parallel background execution via lightweight virtual displays, a native sandbox runtime for local code execution, unified file shortcuts, and an event stream abstraction to capture transient notifications and sensor data without continuous polling.
  3. Secure Information Flow: To protect privacy, AOHP replaces private plaintext data with typed placeholders (e.g., <payment-card:uuid>) before it ever reaches the agent context. The actual sensitive values are isolated inside a secure Data Vault. When the agent needs to perform an operation (like validation or formatting), it submits an intent to a Trusted Vault Executor. Furthermore, AOHP implements data-flow taint tracking to monitor how sensitive data propagates across apps and tools.
Architecture overview of the AOHP framework

Datasets

The authors evaluated AOHP using a self-crafted benchmark consisting of 30 real-world mobile tasks built exclusively from real Android applications. The benchmark covers five core capability categories:

  • GUI operation
  • Non-GUI operation
  • Event capture
  • Multi-source information retrieval
  • Memory management

A sixth hybrid category composes these primitives into complex, cross-app workflows. The evaluation was performed using the OpenClaw agent framework, comparing AOHP against a stock Android baseline.

Key Insights and Ideas

  • Structured Text > Pixels: Shifting from visual GUI scraping to structured text representations (like layout XMLs or direct APIs) drastically reduces the input context size for LLMs, yielding massive efficiency gains.
  • Security via Abstraction: Replacing sensitive data with UUID placeholders keeps private data out of the LLM prompt entirely. This neutralizes many prompt injection and data exfiltration risks by design, as the agent only reasons over references while the OS handles the actual data securely.
  • Decoupling from the Physical Screen: Traditional mobile OSes freeze or kill background apps to save resources. AOHP’s use of lightweight virtual displays allows agents to execute long-running, multi-step tasks in the background without interrupting the user's active foreground session.
  • OS-Mediated Cross-App Memory: By maintaining a system-level memory layer, user preferences learned in one app (e.g., a preferred delivery window or clothing size) can seamlessly personalize interactions in another app without violating data boundaries.

Key Results

Experimental results demonstrate that AOHP significantly outperforms stock Android across all major performance and efficiency metrics:

  • Task Completion: AOHP raised the average checkpoint-weighted completion rate from 54.44% to 75.56%, fully solving 7 more tasks out of 30 than the baseline.
  • Execution Efficiency: On tasks solved completely by both configurations, AOHP achieved a 44.64% reduction in tool calls and a 44.21% reduction in total execution duration.
  • LLM Cost Reduction: Total token consumption plummeted by 51.55% (3.44M vs. 7.10M tokens), and the number of LLM requests dropped by 47.62% (143 vs. 273).
  • Security Compliance: In case studies using a custom annotated payment app, AOHP successfully passed all security checks, effectively redacting sensitive displays, mediating sensitive actions, and enforcing strict data-flow policies.
Overall performance and cost comparison between OpenClaw on AOHP vs. stock Android

Limitations and Future Work

Despite its success, the authors note several areas for improvement:

  • Compatibility Coverage: AOHP currently struggles with apps that employ custom rendering engines, anti-automation logic, or undocumented behaviors. Future iterations will focus on improving structured UI extraction and predictable GUI fallbacks.
  • Automated Capability Discovery: The framework currently relies heavily on accurate service descriptions and policy metadata. The authors plan to integrate automatic capability inference to reduce the need for manual developer annotations on legacy apps.
  • Resource & Thermal Scheduling: Running multiple background virtual displays and sandboxes strains mobile hardware. Better scheduling policies are needed to balance resource constraints, thermal limits, and foreground user activity.
  • Policy Usability: Fine-grained information-flow control requires user approvals. Designing an intuitive approval UI that explains data usage without causing "notification fatigue" remains an open challenge.

Summary updated

BibTeX
@misc{zhao2026aohp,
  author = {Shanhui Zhao and Jiacheng Liu and Guohong Liu and Jichao Yan and Jialei Ye and Yuhao Yang and Hao Wen and Shizuo Tian and Yizhen Yuan and Yuxuan Chen and Yunxin Liu and Ju Ren and Ya-Qin Zhang and Chao Huang and Yao Guo and Yuanchun Li},
  title = {{AOHP: An Open-Source OS-Level Agent Harness for Personalized, Efficient and Secure Interaction}},
  year = {2026},
  eprint = {2606.23449},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.23449},
}
Figure