cs.SEAug 26, 2026

RotDroid: Cross-Orientation State Equivalence Testing for Detecting GUI Rotation Bugs in Android Apps

Authors: Mengdi Qin, Bo Jiang

Organizations: SKLCCSE Beihang University Beijing 100191, China

Abstract

Screen rotation is a fundamental interaction in Android applications, but it often introduces non-crashing functional failures (NCFs), such as layout inconsistencies and state loss, which are difficult to detect automatically. A key challenge is the lack of effective test oracles for checking cross-orientation state equivalence between portrait and landscape views. We propose RotDroid, a testing framework for detecting GUI rotation bugs via cross-orientation state equivalence. RotDroid generates and mutates State-Preserving action Sequences (SPS) to construct semantically equivalent GUI states across orientations. To support reliable oracle checking, we build RotBench, a dataset of paired portrait-landscape GUI states, and develop RotVL, a vision-language model fine-tuned for equivalence checking. Experiments on both synthetic and real-world datasets show that RotVL outperforms state-of-the-art models, and RotDroid detects more rotation-induced failures than existing techniques under equal budgets. In large-scale studies on open- and closed-source apps, RotDroid reports 94 previously unknown bugs, with 47 confirmed or fixed by developers, demonstrating its practical effectiveness.

Figures & tables

Explore similar work

CardsList
  1. GUITestScape: Towards Open-set Evaluation on Exploratory GUI Testing

    May 28, 2026Xiaoyi Chen, Yifei Gao, Yang Xu +3GUI AgentsAI Agent Benchmarks

  2. Readable Yet Unpredictable: Rotated-Outcome Prediction in Vision-Language Models

    Jun 1, 2026Lexin Wang, Shenghua Liu, Yiwei Wang +2VLM EvaluationVLM Reasoning

  3. Rotated, but How Far? Diagnosing and Improving Object-Rotation Reasoning in VLMs

    Oct 5, 2026Zhaochen Wang, Yujun Cai, Huangbo Zou +4VLM EvaluationObject Pose Estimation