Detecting and fixing data loss issues in Android apps
Wunan Guo, Zhen Dong, Liwei Shen, Wei Tian, Ting Su, Xin Peng
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Property-Based Fuzzing for Finding Data Manipulation Errors in Android Apps cites Data loss detector: automatically revealing data loss bugs in Android apps
- Property-Based Fuzzing for Finding Data Manipulation Errors in Android Apps cites An Empirical Study of Functional Bugs in Android Apps
- Property-Based Fuzzing for Finding Data Manipulation Errors in Android Apps cites Time-travel testing of Android apps
- Property-Based Fuzzing for Finding Data Manipulation Errors in Android Apps cites Understanding and finding system setting-related defects in Android apps
- Property-Based Fuzzing for Finding Data Manipulation Errors in Android Apps cites ComboDroid: generating high-quality test inputs for Android apps via use case combinations
- An Empirical Study of Functional Bugs in Android Apps cites LiveDroid: identifying and preserving mobile app state in volatile runtime environments
- An Empirical Study of Functional Bugs in Android Apps cites Data loss detector: automatically revealing data loss bugs in Android apps
- An Empirical Study of Functional Bugs in Android Apps cites Understanding and finding system setting-related defects in Android apps
- General and Practical Property-based Testing for Android Apps cites Data loss detector: automatically revealing data loss bugs in Android apps
- General and Practical Property-based Testing for Android Apps cites Property-Based Fuzzing for Finding Data Manipulation Errors in Android Apps
- General and Practical Property-based Testing for Android Apps cites An Empirical Study of Functional Bugs in Android Apps
- General and Practical Property-based Testing for Android Apps cites Understanding and finding system setting-related defects in Android apps
- LLM Based Input Space Partitioning Testing for Library APIs cites Time-travel testing of Android apps
- LLM Based Input Space Partitioning Testing for Library APIs cites Understanding and finding system setting-related defects in Android apps
- Understanding and finding system setting-related defects in Android apps cites Data loss detector: automatically revealing data loss bugs in Android apps
- Understanding and finding system setting-related defects in Android apps cites Time-travel testing of Android apps
Cited by top-tier papers7
- An Empirical Study of Functional Bugs in Android AppsYiheng Xiong, Mengqian Xu, Ting Su, Jingling Sun et al.ISSTA 2023 · 40 citations
- Property-Based Fuzzing for Finding Data Manipulation Errors in Android AppsJingling Sun, Ting Su, Jiayi Jiang, Jue Wang et al.FSE 2023 · 16 citations
- General and Practical Property-based Testing for Android AppsYiheng Xiong, Ting Su, Jue Wang, Jingling Sun et al.ASE 2024 · 5 citations
- LLM Based Input Space Partitioning Testing for Library APIsJiageng Li, Zhen Dong, Chong Wang, Haozhen You et al.ICSE 2025 · 2 citations
- Automated Repair of Information Flow Security in Android Implicit Inter-App CommunicationAbhishek Tiwari, Jyoti Prakash, Zhen Dong, Carlo A. FuriaFM 2024
Builds on5
- Time-travel testing of Android appsZhen Dong, Marcel Böhme, Lucia Cojocaru, Abhik RoychoudhuryICSE 2020 · 104 citations
- ComboDroid: generating high-quality test inputs for Android apps via use case combinationsJue Wang, Yanyan Jiang, Chang Xu, Chun Cao et al.ICSE 2020 · 61 citations
- Understanding and finding system setting-related defects in Android appsJingling Sun, Ting Su, Junxin Li, Zhen Dong et al.ISSTA 2021 · 35 citations
- Data loss detector: automatically revealing data loss bugs in Android appsOliviero Riganelli, Simone Paolo Mottadelli, Claudio Rota, Daniela Micucci et al.ISSTA 2020 · 28 citations
- LiveDroid: identifying and preserving mobile app state in volatile runtime environmentsUmar Farooq, Zhijia Zhao, Manu Sridharan, Iulian NeamtiuOOPSLA 2020 · 15 citations
Related papers
- DDLDroid: Efficiently Detecting Data Loss Issues in Android AppsYuhao Zhou, Wei SongISSTA 2023 · 1 citation
- Towards Automatically Repairing Compatibility Issues in Published Android AppsYanjie Zhao, Li Li, Kui Liu, John C. GrundyICSE 2022 · 25 citations
- ConfFix: Repairing Configuration Compatibility Issues in Android AppsHuaxun Huang, Chi Xu, Ming Wen, Yepang Liu et al.ISSTA 2023 · 10 citations
- Uncovering Intent based Leak of Sensitive Data in Android FrameworkHao Zhou, Xiapu Luo, Haoyu Wang, Haipeng CaiCCS 2022 · 9 citations
- Automatically detecting API-induced compatibility issues in Android apps: a comparative analysis (replicability study)Pei Liu, Yanjie Zhao, Haipeng Cai, Mattia Fazzini et al.ISSTA 2022 · 21 citations
