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

Proactive Libraries:在Android应用中强制执行正确的行为

Proactive Libraries: Enforcing Correct Behaviors in Android Apps

Oliviero Riganelli, Ionut Daniel Fagadau, Daniela Micucci, Leonardo Mariani

摘要:

Android框架提供了一组丰富的API,开发人员可以利用这些API来构建他们的应用程序。然而,这些API的快速发展以及Android组件生命周期的特定特征给开发人员带来了挑战,他们可能会发布不正确使用API的应用程序。在这个演示中,我们介绍了主动库,这是一个可以用来装饰常规库的工具,它具有在运行时主动检测和修复API误用的功能。主动库将库与多个主动模块混合在一起,这些模块收集数据、检查API使用是否符合正确性策略,并在检测到可能违反策略时尽快修复执行。我们对27种可能的API误用进行了评估,结果显示了主动库在纠正API误用方面的有效性,而运行时开销可以忽略不计。

英文摘要:

The Android framework provides a rich set of APIs that can be exploited by developers to build their apps. However, the rapid evolution of these APIs jointly with the specific characteristics of the lifecycle of the Android components challenge developers, who may release apps that use APIs incorrectly. In this demo, we present Proactive Libraries, a tool that can be used to decorate regular libraries with the capability of proactively detecting and healing API misuses at runtime. Proactive Libraries blend libraries with multiple proactive modules that collect data, check the compliance of API usages with correctness policies, and heal executions as soon as the possible violation of a policy is detected. The results of our evaluation with 27 possible API misuses show the effectiveness of Proactive Libraries in correcting API misuses with negligible runtime overhead.

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

↑