CovAgent: Overcoming the 30% Curse of Mobile Application Coverage with Agentic AI and Dynamic Instrumentation

Wei Minn, Biniam Fisseha Demissie, Yan Naing Tun, Jiakun Liu, Mariano Ceccato, Lwin Khin Shar, David LoarXiv 2026

TL;DR

Automated Android GUI testing tools frequently hit a "30% coverage ceiling" because they cannot satisfy complex code-level activation conditions, such as specific device configurations or server responses. CovAgent breaks through this barrier by combining LLM-powered AI agents with dynamic instrumentation (Frida) to automatically analyze decompiled code, infer guard conditions, and inject scripts that bypass these roadblocks. In evaluations, CovAgent improved activity coverage by up to 179.7% over traditional fuzzers and significantly outperformed state-of-the-art LLM-based testing tools.

What Problem Does This Paper Address?

Automated Graphical User Interface (GUI) testing is essential for catching bugs in mobile applications. However, even the most advanced testing tools (fuzzers) struggle to explore more than 30% of an app's activities in real-world scenarios—a phenomenon researchers call the "30% coverage curse."

The root cause isn't just poor UI navigation; it's code-level dependencies. Many app screens (activities) are guarded by strict preconditions. For example, an activity might immediately terminate if it doesn't detect an active SD card connection, a specific hardware sensor, or a successful response from a third-party server.

Fig. 1. Data dependencies of an app activity. While an app activity can require data from received ICC messages from source components such as caller activities, it can also require data from non-ICC sources such as APIs for communicating with servers and devices.

Traditional tools explore apps from the outside in, failing to satisfy these internal data and control dependencies. Manually identifying and bypassing these guards is incredibly labor-intensive, requiring reverse-engineering expertise.

Methods

CovAgent introduces a fuzzer-agnostic, multi-agent framework that solves these constraints from the inside out using a four-phase workflow:

Fig. 2. Overview of CovAgent. After initial exploration using an existing GUI fuzzer, the static analysis agent explores the static features of the app to infer their activation conditions of unreached activities. The dynamic edge instrumentation agent uses these inferred activation conditions along with static features related to unreached activities to generate Frida instrumentation script. The script validation agent validates the generated instrumentation scripts in an emulated Android device. Finally, CovAgent loads the validated scripts for all the target activities of the app into the app’s process, and runs the GUI fuzzer concurrently to reach the target activities.
  1. Initial Exploration: An off-the-shelf GUI fuzzer (like APE or Fastbot) runs normally to map out easily reachable parts of the app and identify a list of unreached "target activities."
  2. Activation Conditions Inference: A Static Analysis Agent (powered by Claude 3.7 Sonnet) uses the Model Context Protocol (MCP) to interact with static analysis tools. It performs forward and backward analysis on the app's decompiled Smali code and Component Transition Graph (CTG) to deduce exactly why an activity is locked and writes a guideline on how to unlock it.
  3. Dynamic Edge Instrumentation: A Dynamic Edge Instrumentation Agent takes these guidelines and generates a JavaScript script using the Frida framework. Instead of trying to naturally trigger a condition (like forcing a physical SD card connection), the script hooks into the running app's memory to mock the return values of the guard functions. A Script Validation Agent tests this script in an emulator, feeding any runtime errors back to the generator for up to five refinement iterations.
  4. Instrumented Exploration: Once validated, CovAgent injects a pop-up dialog with custom button widgets into the app. When clicked by the fuzzer, these buttons execute the Frida scripts, cleanly bypassing the guards and launching the previously unreachable activities for further fuzzing.

Datasets

The authors evaluated CovAgent using two primary sets of apps:

  • $Dataset_{Akinotcho}$: A benchmark of 11 popular real-world apps from the Google Play Store and F-Droid, where unreachability reasons were manually labeled by a mobile analyst to serve as a ground truth.
  • $Dataset_{All}$: A broader set of 27 apps combining the 11 popular apps with 16 filtered apps from the standard AndroTest benchmark. The AndroTest apps were pre-instrumented with the Emma coverage tool to allow tracking of fine-grained class, method, and line coverage.

Key Insights and Ideas

  • Removing the Lock vs. Finding the Key: Traditional testing attempts to craft complex inputs to satisfy code paths naturally. CovAgent shifts the paradigm: it uses dynamic instrumentation to simply "remove the lock" by altering the app's perception of the device state or server environment in memory.
  • The Power of MCP and Episodic Memory: Rather than stuffing an entire decompiled codebase into an LLM's context window (which causes hallucinations and high costs), CovAgent uses the Model Context Protocol (MCP) to let the agent systematically query code structures. Furthermore, passing the tool call history (episodic memory) from the analysis agent to the instrumentation agent ensures the code generator stays contextually grounded.

Key Results

CovAgent was paired with existing fuzzers (APE and Fastbot) and compared against standard baselines and the state-of-the-art LLM-guided fuzzer, LLMDroid:

  • Breaking the Ceiling: On real-world apps ($Dataset_{Akinotcho}$), CovAgent augmented APE to achieve 49.5% activity coverage, compared to just 17.7% for APE alone—a 179.7% improvement.
  • Outperforming State-of-the-Art: When paired with Fastbot, CovAgent achieved 34.6% activity coverage, outperforming LLMDroid-Fastbot (17.2%) by 116.3%.
  • Granular Code Coverage: Across $Dataset_{All}$, CovAgent-Fastbot outperformed all baselines in deeper code metrics, yielding a 27.3% increase in class coverage, 31.9% in method coverage, and 29.2% in line coverage over LLMDroid.
  • Targeted Launching Success: CovAgent achieved a 54.8% activity launching success rate, vastly outperforming Scenedroid (15.8%), which relies purely on standard Android Debug Bridge (ADB) intent commands.

Limitations and Future Work

  • Fuzzer Dependency: CovAgent relies on the underlying fuzzer to interact with its injected UI buttons. In some tests, tools like Fastbot occasionally ignored the injected widgets, creating an exploration bottleneck.
  • Second-Order Feasibility: While CovAgent successfully forces target activities to launch, it does not yet comprehensively populate internal views (like dropdown lists or text fields) with complex, context-specific data once inside.
  • API Cost: Relying on commercial LLMs like Claude 3.7 Sonnet averaged $0.39 USD per target activity, totaling $328.45 USD for the evaluation dataset. The authors plan to explore locally run, lightweight LLMs to make the framework more cost-effective for large-scale industrial deployment.

Summary updated

BibTeX
@misc{minn2026covagent,
  author = {Wei Minn and Biniam Fisseha Demissie and Yan Naing Tun and Jiakun Liu and Mariano Ceccato and Lwin Khin Shar and David Lo},
  title = {{CovAgent: Overcoming the 30\% Curse of Mobile Application Coverage with Agentic AI and Dynamic Instrumentation}},
  year = {2026},
  eprint = {2601.21253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.21253},
}
Figure