NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Columbus: Android App Testing Through Systematic Callback Exploration

Priyanka Bose, Dipanjan Das, Saastha Vasan, Sebastiano Mariani, Ilya Grishchenko, Andrea Continella, Antonio Bianchi, Christopher Kruegel, Giovanni Vigna

Abstract

Automated testing of Android applications is hindered by the complexity of event-driven architectures and the need for precise user interaction sequences to reach deep code paths. This paper presents COLUMBUS, a framework that bypasses the UI layer by systematically discovering and invoking application callbacks. By combining static analysis for callback discovery with hybrid argument generation—using symbolic execution for primitives and heap introspection for objects—COLUMBUS achieves superior code coverage and crash detection compared to existing state-of-the-art tools. Evaluation on both benchmark and real-world datasets demonstrates its effectiveness in uncovering hidden bugs in widely-used software.

Introduction

Android application testing is notoriously difficult because apps are fundamentally event-driven. To exercise specific code segments, traditional tools must typically simulate precise sequences of user interactions, such as clicks, swipes, and text entries. Standard "monkey" testers or model-based tools often fail to navigate "composite events"—complex sequences like configuring a specific date in a calendar widget—or reach code requiring specific data inputs (e.g., logic that only executes if a specific numerical threshold is met).

A more robust alternative is callback-driven testing, which invokes an app's internal functions directly, effectively skipping the UI layer. However, previous implementations of this approach suffered from a "human-in-the-loop" bottleneck, requiring experts to manually identify callbacks and write "stub" code for arguments. Given the massive and evolving nature of the Android API, these tools typically supported only a small fraction of available callbacks.

Methods

COLUMBUS addresses these limitations through a fully automated, two-phase approach to callback-driven testing.

The COLUMBUS framework architecture overview.

1. Automatic Callback Discovery

Rather than relying on a static, hardcoded list, COLUMBUS performs static analysis on both the Android framework and the application's bytecode. It identifies any method that overrides a framework-defined event handler, allowing it to discover thousands of potential entry points that previous tools overlooked. This automated discovery scales the testing surface from dozens to tens of thousands of callbacks.

2. Hybrid Argument Generation

To successfully invoke discovered functions, appropriate arguments must be provided. COLUMBUS employs a dual strategy:

  • For Primitives (int, string, etc.): It uses under-constrained symbolic execution to analyze callback code and identify specific values (e.g., day == 15) required to trigger different execution paths.
  • For Objects: It utilizes type-guided dynamic heap introspection. During app execution, COLUMBUS searches the live memory (the "heap") for existing objects of the required type. If no suitable object is found, it uses Java reflection to instantiate a new one automatically.

3. Feedback and Guidance

The framework incorporates data dependency feedback to prioritize calling functions in sequences likely to trigger crashes (e.g., reading a variable before initialization). Additionally, crash-guidance is used to deprioritize code paths that have already resulted in failures, focusing exploration on untested areas.

Evaluation

The authors evaluated COLUMBUS using two primary datasets: the AndroTest benchmark (60 open-source apps) and a Real-World Dataset of 140 popular apps from the Google Play Store, each with over 500,000 installs.

Key Results

COLUMBUS demonstrated significant improvements over existing tools like STOAT (ST), EHBDROID (EH), APE (AP), and TIMEMACHINE (TM).

Comparative evaluation of COLUMBUS against state-of-the-art tools.
  • Superior Coverage: On the AndroTest benchmark, COLUMBUS achieved an average statement coverage of 58%, outperforming STOAT (46%), APE (53%), and TIMEMACHINE (52%).
  • Crash Detection: The tool identified 137 unique crashes in the benchmark set—between 1.2x and 5.4x more than competing tools.
  • Real-World Impact: In the Play Store dataset, COLUMBUS discovered 70 unique crashes across 54 different apps, highlighting hidden bugs in highly-rated, widely-used software.
  • Reliability: The tool maintained a low false-positive rate of approximately 10.4%, indicating that the majority of detected crashes were legitimate bugs.

Discussion and Key Insights

A primary strength of COLUMBUS is its scalability; while previous tools like EHBDROID supported only 58 callbacks, COLUMBUS can target the tens of thousands present in the modern Android framework. Its use of the live heap for argument generation allows it to provide realistic inputs without requiring exhaustive knowledge of the app's internal state. Furthermore, by strategically violating data dependencies, COLUMBUS effectively uncovers robustness issues related to uninitialized states.

Limitations and Future Work

Despite its success, COLUMBUS faces challenges such as state-blindness, where it may explore callbacks in sequences that are valid for testing but inefficient relative to the app's intended state machine. It also struggles with "login walls" that block access to app functionality. Future work may involve extending symbolic execution to the internal fields of objects retrieved from the heap to further refine argument generation.

Summary updated

BibTeX
@inproceedings{bose2023columbus,
  author = {Priyanka Bose and Dipanjan Das and Saastha Vasan and Sebastiano Mariani and Ilya Grishchenko and Andrea Continella and Antonio Bianchi and Christopher Kruegel and Giovanni Vigna},
  title = {{Columbus: Android App Testing Through Systematic Callback Exploration}},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse48619.2023.00121},
}
Figure