Light-Weight, Inter-Procedural and Callback-Aware Resource Leak Detection for Android Apps

被引:38
|
作者
Wu, Tianyong [1 ,2 ]
Liu, Jierui [1 ,2 ]
Xu, Zhenbo
Guo, Chaorong
Zhang, Yanli
Yan, Jun [1 ,3 ]
Zhang, Jian [1 ,2 ]
机构
[1] Chinese Acad Sci, Inst Software, State Key Lab Comp Sci, Beijing, Peoples R China
[2] Univ Chinese Acad Sci, Beijing, Peoples R China
[3] Chinese Acad Sci, Inst Software, Technol Ctr Software Engn, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Android apps; resource leak; static analysis; byte-code analysis; inter-procedural analysis;
D O I
10.1109/TSE.2016.2547385
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Android devices include many embedded resources such as Camera, Media Player and Sensors. These resources require programmers to explicitly request and release them. Missing release operations might cause serious problems such as performance degradation or system crash. This kind of defects is called resource leak. Despite a large body of existing works on testing and analyzing Android apps, there still remain several challenging problems. In this work, we present Relda2, a light-weight and precise static resource leak detection tool. We first systematically collected a resource table, which includes the resources that the Android reference requires developers release manually. Based on this table, we designed a general approach to automatically detect resource leaks. To make a more precise inter-procedural analysis, we construct a Function Call Graph for each Android application, which handles function calls of user-defined methods and the callbacks invoked by the Android framework at the same time. To evaluate Relda2's effectiveness and practical applicability, we downloaded 103 apps from popular app stores and an open source community, and found 67 real resource leaks, which we have confirmed manually.
引用
收藏
页码:1054 / 1076
页数:23
相关论文
共 11 条
  • [1] Path and Context Sensitive Inter-procedural Memory Leak Detection
    Xu, Zhongxing
    Zhang, Jian
    QSIC 2008: PROCEEDINGS OF THE EIGHTH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE, 2008, : 412 - +
  • [2] Light-weight resource leak testing based on finalisers
    Dai, Ziying
    Mao, Xiaoguang
    IET SOFTWARE, 2013, 7 (06) : 308 - 316
  • [3] Fixing Resource Leaks in Android Apps with Light-weight Static Analysis and Low-overhead Instrumentation
    Liu, Jierui
    Wu, Tianyong
    Yan, Jun
    Zhang, Jian
    2016 IEEE 27TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE), 2016, : 342 - 352
  • [4] When Program Analysis Meets Bytecode Search: Targeted and Efficient Inter-procedural Analysis of Modern Android Apps in BackDroid
    Wu, Daoyuan
    Gao, Debin
    Deng, Robert H.
    Chang, Rocky K. C.
    51ST ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS (DSN 2021), 2021, : 543 - 554
  • [5] Relda2: An Effective Static Analysis Tool for Resource Leak Detection in Android Apps
    Wu, Tianyong
    Liu, Jierui
    Deng, Xi
    Yan, Jun
    Zhang, Jian
    2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2016, : 762 - 767
  • [6] From source code to test cases: A comprehensive benchmark for resource leak detection in Android apps
    Riganelli, Oliviero
    Micucci, Daniela
    Mariani, Leonardo
    SOFTWARE-PRACTICE & EXPERIENCE, 2019, 49 (03): : 540 - 548
  • [7] Effective and light-weight deobfuscation and semantic-aware attack detection for powershell scripts
    Li, Zhenyuan
    Chen, Yan
    Chen, Qi Alfred
    Zhu, Tiantian
    Xiong, Chunlin
    Yang, Hai
    Proceedings of the ACM Conference on Computer and Communications Security, 2019, : 1831 - 1847
  • [8] Light-weight Frequency Information Aware Neural Network Architecture for Voice Spoofing Detection
    Choi, Sunmook
    Oh, Seungsang
    Yang, Jonghoon
    Lee, Yerin
    Kwak, Il-Youp
    2022 26TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION (ICPR), 2022, : 477 - 483
  • [9] Effective and Light-Weight Deobfuscation and Semantic-Aware Attack Detection for PowerShell Scripts
    Li, Zhenyuan
    Chen, Qi Alfred
    Xiong, Chunlin
    Chen, Yan
    Zhu, Tiantian
    Yang, Hai
    PROCEEDINGS OF THE 2019 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY (CCS'19), 2019, : 1831 - 1847
  • [10] Disease detection on medical images using light-weight Convolutional Neural Networks for resource constrained platforms
    Cococi, Alin-Gabriel
    Armanda, Daniel-Mihai
    Felea, Iulian-Ionut
    Dogaru, Radu
    2020 14TH INTERNATIONAL SYMPOSIUM ON ELECTRONICS AND TELECOMMUNICATIONS (ISETC), 2020, : 71 - 74