An empirical study on the quality, reliability and security of Android native libraries
Modern mobile applications increasingly rely on native libraries, which act as a double-edged sword across the “QRS” spectrum: integrating them under appropriate scenarios elevates software Quality, deploying them without adequate testing leads to misuse that inherently diminishes app Reliability, and harboring vulnerable or malicious code precipitates Security risks. However, comprehensive research examining these “QRS” aspects in the context of native libraries remains fragmented. To bridge this gap, this paper presents an extensive empirical study on the “QRS” facets of native libraries in Android applications. First, we survey industry developers to gather their concerns regarding library usage, security implications, and testing practices. Second, we evaluate the testing behaviors of native libraries by assessing the triggerability of native functions. To facilitate deep semantic analysis, we propose a novel LLM-based approach that automatically identifies native functionalities at both the macroscopic library level (using naming metadata) and the fine-grained function level (leveraging cross-language call-stack contexts), substantially outperforming traditional name-only baselines. Finally, we conduct a large-scale investigation of real-world apps, both benign and malicious. This phase not only uncovers how native libraries are used in practice-comparing empirical data with developer concerns-but also dissects malicious apps to expose their hidden threat behaviors. Our insights and findings can guide application developers to prudently integrate libraries and maximize their benefits, enable library developers to tailor optimizations for specific usage scenarios, and help testers adopt cost-efficient strategies for library validation.
Authors
- Xuejun Yu (ORCID: https://orcid.org/0009-0000-6084-3219)
- Yin Liu (ORCID: https://orcid.org/0000-0002-0637-4471)
- Wenxuan Liu (ORCID: https://orcid.org/0000-0002-8459-0241)
Institutions
- Beijing University of Technology (CN)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1038/s41598-026-80075-2
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00