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

揭秘 Android 应用中的设备特定兼容性问题

Demystifying Device-specific Compatibility Issues in Android Apps

Junfeng Chen, Kevin Li, Yifei Chen, Lili Wei, Yepang Liu

AI总结:

本文实证分析 GitHub 94 个仓库中的 197 个 Android 设备特定兼容性问题,将其划分为功能中断与 OEM 特性,并总结成因、修复策略及工具开发启示。

摘要:

由于 Android 系统频繁更新以及移动设备制造商普遍进行定制,Android 生态系统存在严重的碎片化。以往研究主要关注识别和修复由演化引发的 API 兼容性问题,对设备特定兼容性问题(DSC 问题)的考虑有限。为填补这一空白,我们对从 GitHub 上 94 个开源仓库收集的 197 个 DSC 问题开展了实证研究。我们根据这些问题的表现形式和根本原因,将其分为功能中断和 OEM 特性两大主要类别,从而引入理解这些问题的新视角。功能中断问题会破坏标准 Android 系统行为,导致特定设备上发生崩溃或出现意外行为,并要求开发者实现变通方案以保留原有功能。OEM 特性问题则涉及引入超出基础 Android 系统的设备特定功能或特性。功能中断问题与 OEM 特性问题的不同性质导致解决它们时面临独特挑战。功能中断问题的常见解决方案包括调用额外 API、替换有问题的 API,或使用特定参数;而解决 OEM 特性问题通常依赖 Android 组件间通信方法和反射,并辅以其他非常规策略。这些观察结果凸显了在 Android 应用中处理 DSC 问题的独特挑战,并将促进未来面向此类问题的测试与分析工具开发。我们的研究表明,功能中断问题和 OEM 特性问题具有不同特征,未来研究可能需要分别对其进行考察。

英文摘要:

The Android ecosystem is profoundly fragmented due to the frequent updates of the Android system and the prevalent customizations by mobile device manufacturers. Previous research primarily focused on identifying and repairing evolution-induced API compatibility issues, with limited consideration of devices-specific compatibility issues (DSC issues). To fill this gap, we conduct an empirical study of 197 DSC issues collected from 94 open-source repositories on GitHub. We introduce a new perspective for comprehending these issues by categorizing them into two principal groups, Functionality Breaks, and OEM Features, based on their manifestations and root causes. The functionality break issues disrupt standard Android system behaviors, lead to crashes or unexpected behaviors on specific devices, and require developers to implement workarounds to preserve the original functionality. The OEM feature issues involve the introduction of device-specific functionalities or features beyond the basic Android system. The different nature of functionality break issues and OEM feature issues lead to unique challenges in addressing them. Common solutions for functionality break issues involve calling additional APIs, substituting problematic ones, or using specific parameters, while resolving OEM feature issues often relies on Android inter-component communication methods and reflection, with additional unconventional strategies. Such observations highlight the distinctive challenges in addressing DSC issues in Android apps and will facilitate the future development of testing and analysis tools targeting these issues. Our study demonstrates that Functionality break and OEM feature issues have different characteristics, and future research may need to investigate them separately.

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

↑