Characterizing and detecting resource leaks in Android applications
Authors:
- 1 November 2013
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 389-398
Abstract
Android phones come with a host of hardware components embedded in them, such as Camera, Media Player and Sensor. Most of these components are exclusive resources or resources consuming more memory/energy than general. And they should be explicitly released by developers. Missing release operations of these resources might cause serious problems such as performance degradation or system crash. These kinds of defects are called resource leaks. This paper focuses on resource leak problems in Android apps, and presents our lightweight static analysis tool called Relda, which can automatically analyze an application's resource operations and locate the resource leaks. We propose an automatic method for detecting resource leaks based on a modified Function Call Graph, which handles the features of event-driven mobile programming by analyzing the callbacks defined in Android framework. Our experimental data shows that Relda is effective in detecting resource leaks in real Android apps.Keywords
This publication has 10 references indexed in Scilit:
- Where has my battery gone? Finding sensor related energy black holes in smartphone applications2013
- Retargeting Android applications to Java bytecode2012
- What is keeping my phone awake?2012
- Where is the energy spent inside my app?2012
- Memory Leak Detection Based on Memory State Transition Graph2011
- QVMACM Transactions on Software Engineering and Methodology, 2011
- Effective interprocedural resource leak detection2010
- Cork2007
- Bell2006
- Low-overhead memory leak detection using adaptive statistical profiling2004