深入理解Android API:官方列表、厂商定制与现实使用
Towards Understanding Android APIs: Official Lists, Vendor Customizations, and Real-World Usage
AI总结:
本文通过分析四个官方AALs,揭示其内容特征与演变,发现其不一致性和不稳定性,并探讨厂商定制API对现实应用的影响,为Android API研究提供可靠指导。
摘要:
Android应用基于抽象的核心系统功能构建的API。这些API在Android源代码或SDK中以多个文件形式官方文档化,统称为Android API列表(AALs)。先前的研究依赖特定AALs,通常将其视为等同的真实数据。然而,最近的研究表明,不同的AALs可能导致显著不同的研究结果,引发了关于Android API分析有效性和可重复性的担忧。为解决这一问题,本文首次深入研究了四个广泛用于先前工作的官方AALs。我们系统地描述了它们的内容,并分析了它们在Android版本中的演变。然后,我们对每个AAL记录的API进行细致比较,以揭示其底层API包含政策和不一致之处。为了评估这些差异的实际影响,我们进一步检查了九台Android设备上的API可用性,包括标准Android和厂商定制系统。最后,我们分析了17,759个现实世界Android应用(包括开源应用、商业应用和恶意软件)中的API使用情况,以量化AAL选择对经验Android研究的影响。我们的结果表明,官方AALs既不稳定又不一致,它们之间的差异可以显著影响研究结论。我们还发现,厂商定制的API被正常应用积极使用,但被现有研究忽视。基于这些发现,我们讨论了它们对Android API研究的影响,并提供了可操作的建议,帮助研究人员更可靠地选择和解释AALs。
英文摘要:
Android apps are built on APIs that abstract core Android system functionalities. These APIs are officially documented in multiple files distributed with the Android source code or SDK, which we collectively refer to as Android API Lists (AALs). Prior Android research has relied on specific AALs, often treating them as interchangeable ground truth. However, recent studies suggest that different AALs can lead to substantially different research outcomes, raising concerns about the validity and reproducibility of Android API-based analyses. To address this issue, we present the first in-depth empirical study of four official AALs that are widely used in prior work. We systematically characterize their contents and analyze their evolution across Android releases. We then perform a fine-grained comparison of the APIs recorded in each AAL to uncover their underlying API inclusion policies and inconsistencies. To assess the practical impact of these differences, we further examine API availability on nine Android devices, including both stock Android and vendor-customized systems. Finally, we analyze API usage in 17,759 real-world Android apps (including open-source apps, commercial apps, and malware) to quantify how the choice of AAL affects empirical Android research. Our results reveal that official AALs are neither stable nor mutually consistent, and that discrepancies among them can substantially influence research conclusions. We also observe that vendor-customized APIs are actively used by normal apps, yet remain largely overlooked by existing studies. Based on these findings, we discuss their implications for Android API-based research and provide actionable suggestions to help researchers select and interpret AALs more reliably.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。