arrow
Return

Refactoring Android Source Code Smells From Android Applications

delete2025-01-01
delete0
delete
OA
AI
M
Muhammad Fawad *
G
Ghulam Rasool
M
Muhammad Bilal Riaz
DOI:10.1109/ACCESS.2025.3529687delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
As technology advances and new features emerge, the demand for Android applications continues to grow, leading to rapid release schedules. These accelerated development timelines often push developers to make rushed changes, often resulting in suboptimal design practices, commonly known as code smells. These issues can degrade application quality, drive up maintenance costs, lead to unexpected behaviors, and complicate evolution and re-engineering efforts. While substantial research has focused on identifying Android-specific and object-oriented code smells, comparatively less attention has been devoted to their systematic refactoring and evaluation. This study introduces a web-based technique, validated through a tool specifically developed to detect 20 Android-specific code smells and automatically refactor 10 of them. Our approach surpasses traditional desktop and plugin solutions by providing easy accessibility, cross-platform compatibility, and eliminating setup requirements. When applied to six open-source and two industrial Android applications and evaluated against the ISO/IEC 25010 quality standard, our tool demonstrated considerable improvements: reducing CPU utilization by 15.39%, lowering memory consumption by 12.85%, and enhancing battery efficiency by up to 5.78%. The tool's accuracy, validated through precision, recall, and F-measure metrics, achieved averages of 91.81% precision, 97.77% recall, and a 94.67% F-measure. This study enhances the Android application development lifecycle by offering developers a feasible solution for optimizing CPU efficiency, reducing memory use, and minimizing battery consumption.
Keywords:
Codes
Operating systems
Smart phones
Mobile applications
Software
Source coding
Performance evaluation
Memory management
Standards
Software development management
Android applications
code smells
refactoring
software quality

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

T
Technical University of Ostrava
Scholars:
3.7K
Papers: 2.9K
Citations: 4
L
Lebanese American University
Scholars:
3.0K
Papers: 3.0K
Citations: 6.9K
C
comsats university islamabad (cui)
Scholars:
1.1W
Papers: 1.1W
Citations: 7
researcher View more organizations
Cited Papers

Cited Papers

Preparation of ZnGa2S4 by reacting GaI3 and ZnI2 with sulfur
err2016-06-28
err0
PREAI
errA. P. Velmuzhov; M. V. Sukhanov; A. I. Suchkov; M. F. Churbanov; E. A. Tyurina
errShare
errSave
The DNA Glycosylases Ogg1 and Nth1 Do Not Contribute to Ig Class Switching in Activated Mouse Splenic B Cells
err2012-04-20
err0
errOAAI
errAnna J. Ucher; Erin K. Linehan; George W. Teebor; Carol E. Schrader; Janet Stavnezer
errShare
errSave
Impact of Port Clearance on shipping Safety, Energy Consumption and Green Ports Sustainability
err
IF0
err2023-09-28
err0
errOAAI
errVytautas Paulauskas; Viktoras Senčila; Donatas Paulauskas; Martynas Simutis
errShare
errSave
Late-life health effects of teenage motherhood
err2018-11-16
err0
errOAAI
errViola Angelini; Jochen Mierau
errShare
errSave
A Systematic Literature Review on the Code Smells Datasets and Validation Mechanisms
err2023-07-13
err6
errOAAI
errZakeri-Nasrabadi, Morteza; Parsa, Saeed; Esmaili, Ehsan; Palomba, Fabio
errShare
errSave
errShare
errSave
errShare
errSave
errShare
errSave
researcher View more