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

废弃Android API使用更新的系统研究

A Systematic Study of Deprecated Android API Usage Updates

Texas A&M University–Kingsville(德克萨斯农工大学金斯维尔分校);Central Queensland University(昆士兰中部大学);The University of Queensland(昆士兰大学)

Tarek Mahmud, Meiru Che, Guowei Yang

AI总结:

本研究分析1000个废弃Android API与4336个GitHub迁移示例,确定6类迁移模式,将其融入GUPPY基准提示后,在156个任务上正确更新数从139增至147,多数类别性能提升。

摘要:

Android应用程序接口(API)不断演进,导致现有API被废弃,要求开发者将其使用迁移至推荐的替代方案。尽管已有研究提出了自动化迁移技术,但其有效性常受API变更的多样性和上下文复杂性限制。本文对废弃Android API、其推荐替代方案以及开发者进行的真实使用更新开展系统研究。基于对从GitHub收集的1000个废弃API和4336个迁移示例的分析,我们确定了6个迁移类别,并推导了涉及Android版本检查、参数适配、对象初始化、数据类型转换及API交互机制变更的重复使用更新模式。为评估其适用性,我们在零样本GUPPY基准提示中添加了迁移类别及对应使用更新模式。在156个基准任务上,该模式引导的提示使正确更新从139提升至147,且在6个类别中的5个表现更优。

英文摘要:

Android Application Programming Interfaces (APIs) continuously evolve, causing existing APIs to become deprecated and requiring developers to migrate their usages to recommended replacements. Although prior studies have proposed automated migration techniques, their effectiveness is often limited by the diversity and contextual complexity of API changes. This paper presents a systematic study of deprecated Android APIs, their recommended replacements, and real-world usage updates performed by developers. Based on an analysis of 1,000 deprecated APIs and 4,336 migration examples collected from GitHub, we identify six migration categories and derive recurring usage-update patterns involving Android-version checks, parameter adaptation, object initialization, data-type conversion, and changes in API interaction mechanisms. To assess their applicability, we augment the zero-shot GUPPY benchmark prompts with the migration category and corresponding usage-update pattern. On 156 benchmark tasks, the pattern-guided prompt improves correct updates from 139 to 147 and performs better in five of the six categories.

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

↑