论文标题
主动库:在Android应用中执行正确的行为
Proactive Libraries: Enforcing Correct Behaviors in Android Apps
论文作者
论文摘要
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.