paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Automated API-usage update for Android apps

Android 应用的自动化 API 使用更新
ISSTA Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis2019匹配度 2/10 · 该论文研究 Android 应用的 API 变更自动更新与补丁生成,属于软件工程中的自动化程序修复/迁移,未涉及用户的 PL↔AI 核心方向(如 LLM/Agent 与静态分析结合、浮点程序分析或贝叶斯程序分析),与当前研究画像匹配度低。引用 81 inbox
Mattia Fazzini, Qi Xin, Alessandro Orso
crossref: 2026-09-12

AI 速览

一句话:提出一种基于他人更新示例自动为 Android 应用生成并验证 API 变更补丁的技术。

移动应用依赖底层操作系统 API,而 OS 与 API 频繁变化,开发者必须及时更新应用以适配新版本。本文提出一种自动化更新技术:给定待更新应用与 API 变更信息,先定位受变更影响的代码,再从已有代码库中检索其他开发者针对同一 API 变更的更新示例,对其分析、排序并转化为通用补丁,最后按排序应用补丁,并借助差分测试验证更新。作者实现了该技术,并在 15 个真实应用上评估,覆盖 85% 的 API 变更,自动验证 68% 的更新,结果展现出良好前景。

问题
移动应用需随 OS/API 频繁变更而更新,人工更新耗时且易错。
方法
基于其他应用的 API 更新示例,定位受影响代码,检索、分析、排序并泛化为补丁,再应用补丁并用差分测试验证更新。
评估
在 15 个真实 Android 应用上进行实证评估,覆盖 85% 的 API 变更并自动验证 68% 的更新。
原文摘要(Abstract)

Mobile apps rely heavily on the application programming interface (API) provided by their underlying operating system (OS). Because OS and API can change frequently, developers must quickly update their apps to ensure that the apps behave as intended with new API and OS versions. To help developers with this tedious, error prone, and time consuming task, we developed a technique that can automatically perform app updates for API changes based on examples of how other developers evolved their apps for the same changes. Given a target app to be updated and information about the changes in the API, our technique performs four main steps. First, it analyzes the target app to identify code affected by API changes. Second, it searches existing code bases for examples of updates to the new version of the API. Third, it analyzes, ranks, and transforms into generic patches the update examples found in the previous step. Finally, it applies the generated patches to the target app in order of ranking, while performing differential testing to validate the update. We implemented our technique and performed an empirical evaluation on 15 real-world apps with promising results. Overall, our technique was able to update 85% of the API changes considered and automatically validate 68% of the updates performed.

链接与引用

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

BibTeX
@inproceedings{paperbot5358,
  title = {Automated API-usage update for Android apps},
  author = {Mattia Fazzini and Qi Xin and Alessandro Orso},
  booktitle = {ISSTA},
  year = {2019},
  doi = {10.1145/3293882.3330571}
}