Detecting data manipulation errors in android applications using scene-guided exploration

Shuqi Liu, Yu Zhou, Wenhua Yang, Taolue Chen, Harald Gall

Published: 01 Jul 2025, Last Modified: 06 Nov 2025Empirical Software EngineeringEveryoneRevisionsCC BY-SA 4.0
Abstract: Data manipulation functionalities (DMFs) refer to operations such as create, read, update and delete which are crucial for maintaining the integrity of Android application (app) data. Existing testing techniques often fail to explicitly verify DMFs in combination, having limited capability to uncover non-crashing data manipulation errors (DMEs). In this paper, we propose a novel approach SceneData, which utilizes a scene-guided exploration strategy to effectively detect DMEs in Android apps. Particularly, we model the UI pages as scenes and present a scene transition graph (SceneTG) to capture the relation between scenes. By utilizing SceneTG, we explore app states to thoroughly validate DMFs across different scenes. We evaluate SceneData on 17 popular real-world apps, and SceneData discovers 25 previously unknown bugs in their latest releases, 21 of which are non-crashing DMEs. The experiments also show that a significant fraction (15/21) of these bugs cannot be detected by the state-of-the-art techniques.
Loading