arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.04003cs.SEcs.PL
收藏

理解并检测 Android Auto 应用中的平台特定违规行为

Understanding and Detecting Platform-Specific Violations in Android Auto Apps

Louisiana State University(路易斯安那州立大学)

Moshood Fakorede, Umar Farooq

AI总结:

本文提出AutoComply,一个用于检测Android Auto应用平台特定合规问题的静态分析框架,通过构建Car-Control Flow Graph识别媒体播放、UI渲染和语音命令集成等违规行为,有效提升应用合规性检查效率。

摘要:

尽管有超过350万个Android应用和200多万辆支持Android Auto的车辆,只有少数几百个应用支持Android Auto,这是由于平台特定的合规要求。Android Auto要求采用基于服务的架构,其中车辆系统通过调用应用回调来渲染UI并处理交互,这与标准的Activity-based Android开发有根本区别。通过分析14个Android Auto应用仓库中的98个问题,我们识别出三大主要合规失败类别:媒体播放错误、UI渲染问题以及语音命令集成失败,这些都符合必须集成Android Auto支持的强制性要求。我们介绍了AutoComply,一个静态分析框架,能够通过专门分析平台特定要求来检测这些合规违规。AutoComply构建了一个扩展传统控制流分析的Car-Control Flow Graph(CCFG),以建模Android Auto应用的基于服务的架构。在对31个大型开源应用进行评估时,AutoComply检测到了27个违规(比Android Lint多13倍),未发现假阳性,分析速度达到2倍。开发人员已认可14个违规,其中已有8个修复,验证了AutoComply的实用效果。

英文摘要:

Despite over 3.5 million Android apps and 200+ million Android Auto-compatible vehicles, only a few hundred apps support Android Auto due to platform-specific compliance requirements. Android Auto mandates service-based architectures in which the vehicle system invokes app callbacks to render the UI and handle interactions, which is fundamentally different from standard Activity-based Android development. Through an empirical study analysis of 98 issues across 14 Android Auto app repositories, we identified three major compliance failure categories: media playback errors, UI rendering issues, and voice command integration failures in line with mandatory requirements for integrating Android Auto support. We introduce AutoComply, a static analysis framework capable of detecting these compliance violations through the specialized analysis of platform-specific requirements. AutoComply constructs a Car-Control Flow Graph (CCFG) extending traditional control flow analysis to model the service-based architecture of Android Auto apps. Evaluating AutoComply on 31 large-scale open-source apps, it detected 27 violations (13X more than Android Lint), while no false positives were observed, achieving 2X faster analysis. Developers have acknowledged 14 of these violations with 8 fixes already implemented, validating AutoComply's practical effectiveness.

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

↑