模型与实验室 3.0 · 值得看 2026-10-13 · 论文

A Systematic Study of Deprecated Android API Usage Updates

论文整理 1,000 个废弃 Android API 与 GitHub 上 4,336 个真实迁移更新,归出六个迁移类别,并提炼出反复出现的更新模式:Android 版本检查参数适配对象初始化数据类型转换API 交互机制变化把这些类别与对应模式加进 GUPPY 基准 zero-shot prompt 后,156 个任务的正确更新从 139 提到 147,六类中五类更好提升幅度不大,价值在语料与模式归纳本身:4,336 个真实例子可直接当 LLM 辅助迁移与 code review 的核对清单

打开原文回到归档

A Systematic Study of Deprecated Android API Usage Updates

  • 原文链接: https://arxiv.org/abs/2610.19150
  • 作者: Tarek Mahmud, Meiru Che, Guowei Yang
  • 日期: 2026-10-13
  • 分类: coding
  • 来源类型: paper
  • 标签: android-api-migration, llm, benchmark, guppy, iceccs-2026
  • 质量评分: 3/5
  • 入库时间: 2026-11-01

中文导读

论文整理 1,000 个废弃 Android API 与 GitHub 上 4,336 个真实迁移更新,归出六个迁移类别,并提炼出反复出现的更新模式:Android 版本检查、参数适配、对象初始化、数据类型转换、API 交互机制变化。把这些类别与对应模式加进 GUPPY 基准 zero-shot prompt 后,156 个任务的正确更新从 139 提到 147,六类中五类更好。提升幅度不大,价值在语料与模式归纳本身:4,336 个真实例子可直接当 LLM 辅助迁移与 code review 的核对清单。

English Summary

Android APIs deprecate continuously and migrating usages to recommended replacements is a recurring developer burden. This systematic study analyzes 1,000 deprecated APIs and 4,336 real-world migration commits from GitHub, identifying six migration categories and recurring usage-update patterns: Android-version checks, parameter adaptation, object initialization, data-type conversion, and changes in API interaction mechanisms. Augmenting the zero-shot GUPPY benchmark prompts with the migration category and matching pattern raises correct updates from 139 to 147 of 156 tasks, improving five of six categories. The gains are modest; the durable value is the corpus and the pattern taxonomy, usable directly as checklists for LLM-assisted migration and code review. Accepted at ICECCS 2026.

Abstract (arXiv)

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.

关键信息

  • ICECCS 2026 录用;2026-10-13 提交 arXiv(cs.SE)