Detecting and Fixing Data Loss Issues in Android Apps

09/19/2022
by   Wunan Guo, et al.
0

Android apps are event-driven, and their execution is often interrupted by external events. This interruption can cause data loss issues that annoy users. For instance, when the screen is rotated, the current app page will be destroyed and recreated. If the app state is improperly preserved, user data will be lost. In this work, we present an approach and tool iFixDataloss that automatically detects and fixes data loss issues in Android apps. To achieve this, we identify scenarios in which data loss issues may occur, develop strategies to reveal data loss issues, and design patch templates to fix them. Our experiments on 66 Android apps show iFixDataloss detected 374 data loss issues (284 of them were previously unknown) and successfully generated patches for 188 of the 374 issues. Out of 20 submitted patches, 16 have been accepted by developers. In comparison with state-of-the-art techniques, iFixDataloss performed significantly better in terms of the number of detected data loss issues and the quality of generated patches.

READ FULL TEXT
research
05/27/2019

A Benchmark of Data Loss Bugs for Android Apps

Android apps must be able to deal with both stop events, which require i...
research
08/17/2023

Automated and Context-Aware Repair of Color-Related Accessibility Issues for Android Apps

Approximately 15 disabilities or impairments. However, many mobile UX de...
research
10/12/2020

Data Loss Detector: Automatically Revealing Data Loss Bugs in Android Apps

Android apps must work correctly even if their execution is interrupted ...
research
06/17/2022

Detecting Connectivity Issues in Android Apps

Android is the most popular mobile operating system in the world, runnin...
research
10/17/2021

Studying Eventual Connectivity Issues in Android Apps

Mobile apps have become indispensable for daily life, not only for indiv...
research
05/21/2020

Concurrency-related Flaky Test Detection in Android apps

Validation of Android apps via testing is difficult owing to the presenc...
research
12/08/2022

The Metamorphosis: Automatic Detection of Scaling Issues for Mobile Apps

As the bridge between users and software, Graphical User Interface (GUI)...

Please sign up or login with your details

Forgot password? Click here to reset