paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Detecting and fixing data loss issues in Android apps

检测并修复 Android 应用中的数据丢失问题
ISSTA Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis2022匹配度 1/10 · 该论文研究 Android 应用中的数据丢失检测与自动修复,属于移动应用测试与调试领域,不涉及用户关注的 LLM/Agent、静态分析、形式化验证、浮点程序分析或贝叶斯程序分析。引用 17 inbox
Wunan Guo, Zhen Dong, Liwei Shen, Wei Tian, Ting Su, Xin Peng
crossref: 2026-09-12crossref: 2026-09-12

AI 速览

一句话:提出 iFixDataloss,自动检测并修复 Android 应用因外部事件中断导致的数据丢失问题。

Android 应用是事件驱动的,外部事件常中断执行,导致数据丢失问题(如屏幕旋转时页面销毁重建,状态保存不当则用户数据丢失)。本文提出工具 iFixDataloss,自动检测并修复此类问题:识别可能发生数据丢失的场景,设计暴露问题的策略,并设计补丁模板进行修复。在 66 个 Android 应用上的实验表明,iFixDataloss 检测到 374 个数据丢失问题(其中 284 个此前未知),为 188 个问题成功生成补丁;提交的 20 个补丁中 16 个被开发者接受。与现有技术相比,iFixDataloss 在检测问题数量和生成补丁质量上均显著更优。

问题
Android 应用的事件驱动执行常被外部事件中断,若状态未妥善保存会导致用户数据丢失。本文旨在自动检测并修复此类数据丢失问题。
方法
提出 iFixDataloss,通过识别数据丢失可能发生的场景、设计暴露问题的策略、设计补丁模板,自动检测并生成修复补丁。
评估
在 66 个 Android 应用上评估,检测到 374 个数据丢失问题(284 个未知),为 188 个生成补丁,20 个提交中 16 个被接受,优于现有技术。
原文摘要(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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot7422,
  title = {Detecting and fixing data loss issues in Android apps},
  author = {Wunan Guo and Zhen Dong and Liwei Shen and Wei Tian and Ting Su and Xin Peng},
  booktitle = {ISSTA},
  year = {2022},
  doi = {10.1145/3533767.3534402}
}