Affiliation:
1. Institute of Computing, Federal University of Amazonas, Manaus 69080-900, Amazonas, Brazil
Abstract
Context: Mobile devices contain some resources, for example, the camera, battery, and memory, that are allocated, used, and then deallocated by mobile applications. Whenever a resource is allocated and not correctly released, a defect called a resource leak occurs, which can cause crashes and slowdowns. Objective: In this study, we intended to demonstrate the usefulness of the LeakPred approach in terms of the number of components with resource leak problems identified in applications. Method: We compared the approach’s effectiveness with three state-of-the-art methods in identifying leaks in 15 Android applications. Result: LeakPred obtained the best median (85.37%) of components with identified leaks, the best coverage (96.15%) of the classes of leaks that could be identified in the applications, and an accuracy of 81.25%. The Android Lint method achieved the second best median (76.92%) and the highest accuracy (100%), but only covered 1.92% of the leak classes. Conclusions: LeakPred is effective in identifying leaky components in applications.
Funder
CAPES
Research Support Foundation State of Amazonas
Reference11 articles.
1. Statista (2024, May 02). Number of Mobile Devices Worldwide 2020–2025. Available online: https://www.statista.com/statistics/245501/multiple-mobile-device-ownership-worldwide/.
2. World (2024, May 02). Current World Population. Available online: https://www.worldometers.info/world-population/.
3. Zhang, H., Wu, H., and Rountev, A. (2016, January 14–15). Automated test generation for detection of leaks in Android applications. Proceedings of the 11th International Workshop on Automation of Software Test, Austin, TX, USA.
4. Android (2024, May 02). Android Lint. Available online: https://developer.android.com/studio/write/lint.
5. Pugh, B., Loskutov, A., and Lea, K. (2024, May 02). FindBugs. Available online: https://findbugs.sourceforge.net/bugDescriptions.html.