Metraipolis › archive › dc_a33e143e11ca
Hardware-Aware Conditional Code in Android Apps — arXiv:2611.00296
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.00296
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-03T11:27:13.422Z
- SHA-256 of the archived text
cf4ff3ea06ca5acadfbe58056c683d4ba287306dbaf6795d64c623f3d3bf22c9- Stable URL of this page
https://metraipolis.com/documento/dc_a33e143e11ca
How to cite
Hardware-Aware Conditional Code in Android Apps — arXiv:2611.00296 — arXiv (en), https://arxiv.org/abs/2611.00296 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a33e143e11ca (Metraipolis archive dc_a33e143e11ca, sha256 cf4ff3ea06ca5acadfbe58056c683d4ba287306dbaf6795d64c623f3d3bf22c9)
BibTeX
@misc{dca33e143e11ca,
title = {Hardware-Aware Conditional Code in Android Apps — arXiv:2611.00296},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.00296},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a33e143e11ca; sha256 cf4ff3ea06ca5acadfbe58056c683d4ba287306dbaf6795d64c623f3d3bf22c9},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.00296. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Android OS runs on a highly diverse set of devices, spanning entry-level phones and flagships with substantially different hardware characteristics, including memory capacity, processors, displays, cameras, and sensors. Through APIs, apps can query device information at runtime, such as memory, hardware features, and manufacturer, among other device properties, allowing developers to execute different code paths on different devices. Existing studies cover only specific compatibility bugs or brand-specific behavior; however, the broader use of hardware information in app logic has not been comprehensively explored. We address this question with a large-scale empirical study of hardware-related if statements in Android apps. We statically analyze 50,000 apps to identify the if statements whose conditions depend on the values of hardware-related APIs, and extract their conditions together with the code of their branches. Our results show that 95% of successfully analyzed apps contain at least one such statement, with an average of 74 per app, which suggests that hardware-related logic is widespread. We then apply an LLM-assisted open-coding process to the extracted code to build a structured taxonomy of the purposes behind hardware-related conditional code. The resulting characterization shows that developers use hardware information for feature availability checks, UI adaptation, emulator detection, device tiering, and resource management, among others. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.SE, nuovi lavori del giorno). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2611.00296 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-03T11:02:52.174Z dalla pagina https://arxiv.org/list/cs.SE/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).