Extending EcoAndroid with Automated Detection of Resource Leaks

Ricardo B. Pereira, J. Ferreira, A. Mendes, Rui Abreu
{"title":"Extending EcoAndroid with Automated Detection of Resource Leaks","authors":"Ricardo B. Pereira, J. Ferreira, A. Mendes, Rui Abreu","doi":"10.1145/3524613.3527815","DOIUrl":null,"url":null,"abstract":"When developing mobile applications, developers often have to decide when to acquire and when to release resources. This leads to resource leaks, a kind of bug where a resource is acquired but never released. This is a common problem in Android applications that can degrade energy efficiency and, in some cases, can cause resources to not function properly. In this paper, we present an extension of EcoAndroid, an Android Studio plugin that improves the energy efficiency of Android applications, with an inter-procedural static analysis that detects resource leaks. Our analysis is implemented using Soot, FlowDroid, and Heros, which provide a static-analysis environment capable of processing Android applications and performing inter-procedural analysis with the IFDS framework. It currently supports the detection of leaks related to four Android resources: Cursor, SQLite-Database, Wakelock, and Camera. We evaluated our tool with the DroidLeaks benchmark and compared it with 8 other resource leak detectors. We obtained a precision of 72.5% and a recall of 83.2%. Our tool was able to uncover 191 previously unidentified leaks in this benchmark. These results show that our analysis can help developers identify resource leaks.","PeriodicalId":408284,"journal":{"name":"2022 IEEE/ACM 9th International Conference on Mobile Software Engineering and Systems (MobileSoft)","volume":"44 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE/ACM 9th International Conference on Mobile Software Engineering and Systems (MobileSoft)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3524613.3527815","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

When developing mobile applications, developers often have to decide when to acquire and when to release resources. This leads to resource leaks, a kind of bug where a resource is acquired but never released. This is a common problem in Android applications that can degrade energy efficiency and, in some cases, can cause resources to not function properly. In this paper, we present an extension of EcoAndroid, an Android Studio plugin that improves the energy efficiency of Android applications, with an inter-procedural static analysis that detects resource leaks. Our analysis is implemented using Soot, FlowDroid, and Heros, which provide a static-analysis environment capable of processing Android applications and performing inter-procedural analysis with the IFDS framework. It currently supports the detection of leaks related to four Android resources: Cursor, SQLite-Database, Wakelock, and Camera. We evaluated our tool with the DroidLeaks benchmark and compared it with 8 other resource leak detectors. We obtained a precision of 72.5% and a recall of 83.2%. Our tool was able to uncover 191 previously unidentified leaks in this benchmark. These results show that our analysis can help developers identify resource leaks.
扩展EcoAndroid与自动检测资源泄漏
在开发移动应用程序时,开发者通常需要决定何时获取和释放资源。这会导致资源泄漏,这是一种获取资源但从未释放的错误。这是Android应用程序中的一个常见问题,它会降低能源效率,在某些情况下,还会导致资源不能正常工作。在本文中,我们介绍了EcoAndroid的扩展,这是一个Android Studio插件,可以提高Android应用程序的能源效率,并具有检测资源泄漏的过程间静态分析。我们的分析是使用Soot、FlowDroid和Heros实现的,它们提供了一个静态分析环境,能够处理Android应用程序并使用IFDS框架执行过程间分析。它目前支持检测与四个Android资源相关的泄漏:Cursor、SQLite-Database、Wakelock和Camera。我们使用DroidLeaks基准测试对我们的工具进行了评估,并将其与其他8种资源泄漏检测器进行了比较。我们获得了72.5%的精度和83.2%的召回率。我们的工具能够在这个基准测试中发现191个以前未识别的泄漏。这些结果表明,我们的分析可以帮助开发人员识别资源泄漏。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信