Droidlens: Robust and Fine-Grained Detection for Android Code Smells

被引:3
作者
Mao, Chenguang [1 ]
Wang, Hao [1 ]
Han, Gaojie [1 ]
Zhang, Xiaofang [1 ]
机构
[1] Soochow Univ, Sch Comp Sci & Technol, Suzhou, Peoples R China
来源
2020 INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF SOFTWARE ENGINEERING (TASE 2020) | 2020年
基金
中国国家自然科学基金;
关键词
Software Testing; Android Code Smell; Detection; Parser; Mobile Application;
D O I
10.1109/TASE49443.2020.00030
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
With rapid changes and rich context of user requirements, mobile applications are becoming complex software systems. Frequent iterations and mazy implementations of software functions lead Android developers to make poor design choices, called Android Code Smells. Past researches have shown that they have negative impacts on Android applications including performance, security, etc. Therefore, the automated detection of Android code smells is indispensable to help alleviate the workload of software maintainers and developers. There are already two automated detection tools, aDoctor and Paprika. However, they both have shortcomings in detecting granularity and accuracy. In this paper, we present a novel approach, called Droidlens, realizing the analysis, detection, location and refactoring of Android code smells. We also make an empirical study focusing on the performance of Droidlens, aDoctor and paprika. The empirical result shows that Droidlens realizes the detection for 18 Android code smells. Moreover, compared to existing tools, our Droidlens can provide robust and fine-grained detection, which contributes to software refactoring and maintenance.
引用
收藏
页码:161 / 168
页数:8
相关论文
共 24 条
[1]  
Abrahamsson P, 2004, COMP ACM SIGPL C OBJ COMP ACM SIGPL C OBJ
[2]  
[Anonymous], 2018, Refactoring: improving the design of existing code
[3]  
[Anonymous], DALVIK BYTECODE
[4]  
[Anonymous], ANDROID OVERTAKESWIN
[5]  
App Annie, 2017 2022 APP EC FOR
[6]  
App Annie, TOP PRED APP EC 2018 TOP PRED APP EC 2018
[7]  
Bartel Alexandre, 2012, P ACM SIGPLAN INT WO, P27
[8]  
Carette A, 2017, 2017 IEEE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), P115, DOI 10.1109/SANER.2017.7884614
[9]  
Hecht G, 2016, 2016 IEEE/ACM INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2016), P59, DOI [10.1145/2897073.2897100, 10.1109/MobileSoft.2016.030]
[10]   Detecting Antipatterns in Android Apps [J].
Hecht, Geoffrey ;
Rouvoy, Romain ;
Moha, Naouel ;
Duchien, Laurence .
2ND ACM INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS MOBILESOFT 2015, 2015, :148-149