主动式库:在 Android 应用中强制正确行为
软件工程
2022-02-25 v1
摘要
Android 框架提供了丰富的 API 供开发者构建应用。然而,这些 API 的快速演进连同 Android 组件生命周期的特定特征对开发者构成挑战,可能导致其发布不正确使用 API 的应用。在本演示中,我们介绍 Proactive Libraries,一种可将常规库增强为能在运行时主动检测并修复 API 误用的工具。Proactive Libraries 将库与多个主动模块融合,这些模块收集数据、检查 API 使用是否符合正确性策略,并在检测到可能违反策略时立即修复执行。我们对 27 种可能的 API 误用进行的评估结果表明,Proactive Libraries 能以可忽略的运行时开销有效纠正 API 误用。
引用
@article{arxiv.2202.11999,
title = {Proactive Libraries: Enforcing Correct Behaviors in Android Apps},
author = {Oliviero Riganelli and Ionut Daniel Fagadau and Daniela Micucci and Leonardo Mariani},
journal= {arXiv preprint arXiv:2202.11999},
year = {2022}
}
备注
Accepted for publication in the Proceedings of the 44th International Conference on Software Engineering (ICSE 2022). arXiv admin note: substantial text overlap with arXiv:1911.09357, arXiv:1703.08005