EnergyPatch: Repairing Resource Leaks to Improve Energy-Efficiency of Android Apps
- 29 March 2017
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 44 (5) , 470-490
Abstract
Increased usage of mobile devices, such as smartphones and tablets, has led to widespread popularity and usage of mobile apps. If not carefully developed, such apps may demonstrate energy-inefficient behaviour, where one or more energy-intensive hardware components (such as Wifi, GPS, etc) are left in a high-power state, even when no apps are using these components. We refer to such kind of energy-inefficiencies as energy bugs. Executing an app with an energy bug causes the mobile device to exhibit poor energy consumption behaviour and a drastically shortened battery life. Since mobiles apps can have huge input domains, therefore exhaustive exploration is often impractical. We believe that there is a need for a framework that can systematically detect and fix energy bugs in mobile apps in a scalable fashion. To address this need, we have developed EnergyPatch, a framework that uses a combination of static and dynamic analysis techniques to detect, validate and repair energy bugs in Android apps. The use of a light-weight, static analysis technique enables EnergyPatch to quickly narrow down to the potential program paths along which energy bugs may occur. Subsequent exploration of these potentially buggy program paths using a dynamic analysis technique helps in validations of the reported bugs and to generate test cases. Finally, EnergyPatch generates repair expressions to fix the validated energy bugs. Evaluation with real-life apps from repositories such as F-droid and Github, shows that EnergyPatch is scalable and can produce results in reasonable amount of time. Additionally, we observed that the repair expressions generated by EnergyPatch could bring down the energy consumption on tested apps up to 60 percent.Keywords
Funding Information
- Singapore MOE Tier 2 (MOE2013-T2-1-115)
This publication has 35 references indexed in Scilit:
- GreenDroid: Automated Diagnosis of Energy Inefficiency for Smartphone ApplicationsIEEE Transactions on Software Engineering, 2014
- Verifying android applications using Java PathFinderACM SIGSOFT Software Engineering Notes, 2012
- Automated concolic testing of smartphone apps2012
- Where is the energy spent inside my app?2012
- Bootstrapping energy debugging on smartphones2011
- SEEP2011
- Online inference and enforcement of temporal properties2010
- JPF–SE: A Symbolic Execution Extension to Java PathFinder2007
- Memory Leak Analysis by ContradictionLecture Notes in Computer Science, 2006
- Model checking JAVA programs using JAVA PathFinderInternational Journal on Software Tools for Technology Transfer, 2000