arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2205.15546cs.SE
收藏

Android API中静默演化方法的识别和特征化

Identifying and Characterizing Silently-Evolved Methods in the Android API

Pei Liu, Li Li, Yichun Yan, Mattia Fazzini, John Grundy

摘要:

Android平台拥有超过500,000个提交和700多个贡献者,无疑是最大的工业规模软件项目之一。该项目提供了Android API,开发人员严重依赖此API来开发他们的Android应用程序。不幸的是,由于Android平台及其API的发展速度非常快,应用开发人员需要不断监控API的变化,以避免其应用中出现兼容性问题(\ie问题会导致应用在较新版本的API上运行时无法按预期工作)。尽管对Android API中的兼容性问题进行了大量研究,但研究社区尚未调查与沉默进化方法(SEM)相关的问题。这些方法的行为可能已经改变,但相应的文档没有相应地改变。由于应用程序开发人员依赖所提供的文档来发展其应用程序,因此对未适当记录的方法进行的更改可能会导致使用这些方法的应用程序出现意外故障。为了阐明这类问题,我们进行了一项大规模的实证研究,在该研究中,我们识别并描述了Android API的十个版本中的SEM。在这项研究中,我们确定了SEM,描述了变化的性质,并分析了SEM对一组1,000个真实Android应用程序的影响。我们的实验结果表明,SEM确实存在于Android API中,我们考虑的应用程序中有957个至少使用了一个SEM。基于这些结果,我们认为Android平台开发人员应该采取行动,以避免引入SEM,特别是那些涉及语义变化。这种情况突出了需要自动化技术和工具来帮助Android从业者完成这项任务。

英文摘要:

With over 500,000 commits and more than 700 contributors, the Android platform is undoubtedly one of the largest industrial-scale software projects. This project provides the Android API, and developers heavily rely on this API to develop their Android apps. Unfortunately, because the Android platform and its API evolve at an extremely rapid pace, app developers need to continually monitor API changes to avoid compatibility issues in their apps (\ie issues that prevent apps from working as expected when running on newer versions of the API). Despite a large number of studies on compatibility issues in the Android API, the research community has not yet investigated issues related to silently-evolved methods (SEMs). These methods are functions whose behavior might have changed but the corresponding documentation did not change accordingly. Because app developers rely on the provided documentation to evolve their apps, changes to methods that are not suitably documented may lead to unexpected failures in the apps using these methods. To shed light on this type of issue, we conducted a large-scale empirical study in which we identified and characterized SEMs across ten versions of the Android API. In the study, we identified SEMs, characterized the nature of the changes, and analyzed the impact of SEMs on a set of 1,000 real-world Android apps. Our experimental results show that SEMs do exist in the Android API, and that 957 of the apps we considered use at least one SEM. Based on these results, we argue that the Android platform developers should take actions to avoid introducing SEMs, especially those involving semantic changes. This situation highlights the need for automated techniques and tools to help Android practitioners in this task.

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

↑