Automated Repair of Resource Leaks in Android Applications

03/06/2020
by   Bhargav Nagaraja Bhatt, et al.
0

Resource leaks – a program does not release resources it previously acquired – are a common kind of bug in Android applications. Even with the help of existing techniques to automatically detect leaks, writing a leak-free program remains tricky. One of the reasons is Android's event-driven programming model, which complicates the understanding of an application's overall control flow. In this paper, we present PlumbDroid: a technique to automatically detect and fix resource leaks in Android applications. PlumbDroid uses static analysis to find execution traces that may leak a resource. The information built for detection also undergirds automatically building a fix – consisting of release operations performed at appropriate locations – that removes the leak and does not otherwise affect the application's usage of the resource. An empirical evaluation on resource leaks from the DroidLeaks curated collection demonstrates that PlumbDroid's approach is scalable and produces correct fixes for a variety of resource leak bugs. This indicates it can provide valuable support to enhance the quality of Android applications in practice.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/24/2016

DroidLeaks: Benchmarking Resource Leak Bugs for Android Applications

Resource leak bugs in Android apps are pervasive and can cause serious p...
research
09/19/2018

DroidBugs: An Android Benchmark for Automated Program Repair

Automated Program Repair (APR) is an emerging research field. Many APR t...
research
09/19/2018

DroidBugs: An Android Benchmark for Automatic Program Repair

Automated Program Repair (APR) is an emerging research field. Many APR t...
research
01/18/2018

On-Device Bug Reporting for Android Applications

Bugs that surface in mobile applications can be difficult to reproduce a...
research
11/21/2019

Controlling Interactions with Libraries in Android Apps Through Runtime Enforcement

Android applications are executed on smartphones equipped with a variety...
research
05/30/2017

A Sound Flow-Sensitive Heap Abstraction for the Static Analysis of Android Applications

The present paper proposes the first static analysis for Android applica...
research
01/08/2018

An Empirical Study of Android Changes in CyanogenMod

Many phone vendors use Android as their underlying OS, but often extend ...

Please sign up or login with your details

Forgot password? Click here to reset