arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.11040cs.SE
收藏

Android应用程序数据丢失错误的基准测试

A Benchmark of Data Loss Bugs for Android Apps

Oliviero Riganelli, Marco Mobilio, Daniela Micucci, Leonardo Mariani

摘要:

Android应用必须能够处理停止事件和启动事件,停止事件要求立即停止应用的执行而不丢失状态信息,启动事件要求在应用停止的同一点恢复应用的执行。对这类事件的支持必须由开发人员显式实现,不幸的是,开发人员经常无法实现用于保存和恢复应用程序状态的正确逻辑。因此,应用程序在移动到后台然后返回前台时可能会丢失数据(例如,以应答呼叫)或者当屏幕简单地旋转时。这些错误可能是恼人的可用性问题和意外崩溃的原因。本文介绍了Android应用程序中的110个数据丢失故障的公共基准,我们系统地收集了这些故障,以促进对这些问题的研究和实验。该基准测试可在GitLab上获得,包括错误的应用程序,修复的应用程序(可用时),自动重现问题的测试用例,以及可能有助于研究人员完成任务的其他信息。

英文摘要:

Android apps must be able to deal with both stop events, which require immediately stopping the execution of the app without losing state information, and start events, which require resuming the execution of the app at the same point it was stopped. Support to these kinds of events must be explicitly implemented by developers who unfortunately often fail to implement the proper logic for saving and restoring the state of an app. As a consequence apps can lose data when moved to background and then back to foreground (e.g., to answer a call) or when the screen is simply rotated. These faults can be the cause of annoying usability issues and unexpected crashes. This paper presents a public benchmark of 110 data loss faults in Android apps that we systematically collected to facilitate research and experimentation with these problems. The benchmark is available on GitLab and includes the faulty apps, the fixed apps (when available), the test cases to automatically reproduce the problems, and additional information that may help researchers in their tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑