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

GAPS:通过静态路径重构实现安卓应用的定向执行

GAPS: Targeted Execution of Android Apps via Static Path Reconstruction

University of Padua(帕多瓦大学);University of Luxembourg(卢森堡大学)

Samuele Doria, Alexander Pilgun, Jordan Samhi, Jacques Klein, Eleonora Losiouk

AI总结:

研究安卓应用定向执行难题,提出GAPS方法,结合静态程序分析与动态GUI探索,通过反向遍历调用图和数据流推理识别路径并转化为策略,在基准测试和热门应用评估中表现出色,有效且可扩展地解决了定向方法执行问题。

摘要:

安卓应用的定向执行在软件测试和分析中一直是个长期挑战。尽管GUI测试有进展,但现有方法多是覆盖驱动,难以可靠地将执行导向特定感兴趣的方法,这阻碍了漏洞检测等下游任务。本文提出GAPS,它结合静态程序分析和动态GUI探索。给定目标方法,GAPS通过轻量级静态反向遍历调用图并结合数据流推理来识别通向目标的可行执行路径,再转化为可操作策略指导与应用的动态交互。在AndroTest基准测试中,GAPS能重构88.24%目标方法的路径,平均每个应用仅需12.67秒,动态执行时能达到56.93%的目标方法,优于现有工具。在谷歌应用商店50个最热门应用上评估,GAPS重构路径比例为62.03%,平均每个应用278.9秒,动态达到54.80%。结果表明结合静态路径合成与引导式动态探索为安卓应用定向方法执行提供了有效且可扩展的解决方案。

英文摘要:

Targeted execution of Android applications (apps) remains a longstanding challenge for software testing and analysis. Although recent advances in GUI testing have substantially improved app exploration, existing approaches remain largely coverage-driven and struggle to steer execution reliably toward specific methods of interest. This limitation hinders important downstream tasks, such as vulnerability detection, program comprehension, and dynamic analysis. We present GAPS (Graph-based Automated Path Synthesizer), the first approach to bridge static program analysis and dynamic GUI exploration, enabling targeted execution in Android apps. Given a target method, GAPS performs a lightweight static backward traversal of the call graph, enriched with data-flow reasoning, to identify feasible execution paths that lead to the target. It then translates these paths into actionable execution strategies that guide dynamic interactions with the app. We evaluate GAPS on the AndroTest benchmark and show that it reconstructs paths toward 88.24% of the target methods, requiring only 12.67 seconds per app on average. During dynamic execution, GAPS reaches 56.93% of the target methods, outperforming state-of-the-art alternatives. In comparison, the model-based GUI testing tool APE reaches only 11.12%, the hybrid exploration framework GoalExplorer reaches 4.75%, and the recent LLM-driven approach Guardian reaches 34%. To assess scalability in real-world settings, we further evaluate GAPS across the 50 most-downloaded apps on the Google Play Store. GAPS reconstructs execution paths toward 62.03% of the target methods, averaging 278.9 seconds per app, and dynamically reaches 54.80% of them. These results show that combining static path synthesis with guided dynamic exploration provides an effective and scalable solution for targeted method execution in Android apps.

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

↑