arrow
返回

Code smells analysis for android applications and a solution for less battery consumption

delete2024-07-26
delete0
delete
OA
AI
A
Aakanshi Gupta
S
Suri, Bharti
D
Deepanshu Sharma
S
Sanjay Misra *
L
Luis Fernández Sanz
DOI:10.1038/s41598-024-67660-zdelete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
In the digitization era, the battery consumption factor plays a vital role for the devices that operate Android software, expecting them to deliver high performance and good maintainability.The study aims to analyze the Android-specific code smells, their impact on battery consumption, and the formulation of a mathematical model concerning static code metrics hampered by the code smells. We studied the impact on battery consumption by three Android-specific code smells, namely: No Low Memory Resolver (NLMR), Slow Loop (SL) and Unclosed Closable, considering 4,165 classes of 16 Android applications. We used a rule-based classification method that aids the refactoring ideology. Subsequently, multi-linear regression (MLR) modeling is used to evaluate battery usage against the software metrics of smelly code instances. Moreover, it was possible to devise a correlation for the software metric influenced by battery consumption and rule-based classifiers. The outcome confirms that the refactoring of the considered code smells minimizes the battery consumption levels. The refactoring method accounts for an accuracy of 87.47% cumulatively. The applied MLR model has an R-square value of 0.76 for NLMR and 0.668 for SL, respectively. This study can guide the developers towards a complete package for the focused development life cycle of Android code, helping them minimize smartphone battery consumption and use the saved battery lives for other operations, contributing to the green energy revolution in mobile devices.
Keyword:
Android code smells
Software energy model
Green energy
Refactoring
Machine-learning
Robust statistics
Multi-linear regression
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Scientific Reports 封面图
Scientific Reports
IF:
3.9
论文数:
27.9W
被引数:
83.5W

机构

A
amity university noida
学者数:
3.6K
论文数: 2.8K
被引数: 6
U
universidad de alcala
学者数:
7.9K
论文数: 6.8K
被引数: 7
G
ggs indraprastha university
学者数:
1.2K
论文数: 944
被引数: 1
O
ostfold university college
学者数:
377
论文数: 460
被引数: 18
学者 查看更多机构
引用论文

引用论文

Green Corrosion Inhibition
err2024-02-02
err0
PREAI
errBharti Sheokand; Seema R. Pathak; Chandan K. Mandal; Drishti Gupta; Deepti Verma; Kamalakanta Behera; Ambrish Kumar; Monika Vats; Shruti Trivedi
err分享
err收藏
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
err分享
err收藏
GreenHub: a large-scale collaborative dataset to battery consumption analysis of android devices
err2021-03-20
err6
PREAI
errPereira, Rui; Matalonga, Hugo; Couto, Marco; Castor, Fernando; Cabral, Bruno; Carvalho, Pedro; de Sousa, Simao Melo; Fernandes, Joao Paulo
err分享
err收藏
err分享
err收藏
A Contemporary Review of Hearing Aids
err2009-10-12
err0
PREAI
errCatherine V. Palmer
err分享
err收藏
err分享
err收藏
学者 查看更多内容