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

通过Android应用中的库控制交互

Controlling Interactions with Libraries in Android Apps Through Runtime Enforcement

Oliviero Riganelli, Daniela Micucci, Leonardo Mariani

摘要:

Android应用程序在配备了各种资源的智能手机上执行,这些资源必须正确访问和控制,否则执行的正确性和整个环境的稳定性可能会受到负面影响。例如,应用必须正确获取、使用和释放麦克风、摄像头和其他多媒体设备,否则使用相同资源的应用的行为可能会受到影响。不幸的是,一些应用程序不能正确使用资源,例如由于错误和不准确的设计决策。通过与这些应用程序进行交互,用户可能会遇到意外行为,这反过来又可能导致不稳定和偶发故障,特别是在访问资源时。在本文中,我们提出了一种方法,让用户通过执行正确的使用协议来保护他们的环境免受不正确使用资源的应用程序的影响。这是通过使用可以观察执行并在必要时更改它们的软件执行器来实现的。例如,强制器可以检测到资源已被获取但未被释放,并自动执行释放操作,从而为其他应用程序提供使用相同资源的可能性。其主要思想是,软件库,特别是那些控制资源访问的软件库,可以通过执行器来增强,这些执行器可以根据用户的需求激活和停用,以保护他们的环境免受不必要的应用程序行为的影响。我们称用一个或多个执行器增强的软件库为主动库,因为执行器的激活用主动行为装饰库,该主动行为可以保证执行的正确性,而不管库实现的操作的调用。

英文摘要:

Android applications are executed on smartphones equipped with a variety of resources that must be properly accessed and controlled, otherwise the correctness of the executions and the stability of the entire environment might be negatively affected. For example, apps must properly acquire, use, and release microphones, cameras, and other multimedia devices otherwise the behavior of the apps that use the same resources might be compromised. Unfortunately, several apps do not use resources correctly, for instance due to faults and inaccurate design decisions. By interacting with these apps users may experience unexpected behaviors, which in turn may cause instability and sporadic failures, especially when resources are accessed. In this paper, we present an approach that lets users protect their environment from the apps that use resources improperly by enforcing the correct usage protocol. This is achieved by using software enforcers that can observe executions and change them when necessary. For instance, enforcers can detect that a resource has been acquired but not released, and automatically perform the release operation, thus giving the possibility to use that same resource to the other apps. The main idea is that software libraries, in particular the ones controlling access to resources, can be augmented with enforcers that can be activated and deactivated on demand by users to protect their environment from unwanted app behaviors. We call the software libraries augmented with one or more enforcers proactive libraries because the activation of the enforcer decorates the library with proactive behaviors that can guarantee the correctness of the execution despite the invocation of the operations implemented by the library.

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

↑