Automated Re-factoring of Android Apps to Enhance Energy-efficiency

被引:0
|
作者
Banerjee, Abhijeet [1 ]
Roychoudhury, Abhik [1 ]
机构
[1] Natl Univ Singapore, Singapore, Singapore
关键词
Mobile Apps; Re-factoring; Energy-efficiency;
D O I
10.1145/2897073.2897086
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Mobile devices, such as smartphones and tablets, are energy constrained by nature. Therefore, apps targeted for such platforms must be energy-efficient. However, due to the use of energy oblivious design practices often this is not the case. In this paper, we present a light-weight re-factoring technique that can assist in energy aware app development. Our technique relies on a set of energy efficiency guidelines that encodes the optimal usage of energy intensive (hardware) resources in an app. Given a prototype for an app, our technique begins by generating a design-expression for it. A design-expression can he described as a regular-expression representing the ordering of energy-intensive resource usages and invocation of key functionalities (event-handlers) within the app. It also generates a set of defect-expressions, that are design-expressions representing the negation of energy-efficiency guidelines. A non empty intersection between an app's design-expression and a defect expression indicates violation of a guideline (and therefore, potential for re-factoring). To evaluate the efficacy of our re-factoring technique we analysed a suite of open-source Android apps using our technique. The resultant re-factoring when applied, reduced the energy-consumption of these apps between 3 % to 29 %. We also present a case study for one of our subject apps, that captures its design evolution over a period of two-years and more than 200 commits. Our framework found re-factoring opportunities in a number of these commits, that could have been implemented earlier on in the development stages had the developer used an energy-aware re factoring technique such as the one presented in this work.
引用
收藏
页码:139 / 150
页数:12
相关论文
共 13 条
  • [1] EnergyPatch: Repairing Resource Leaks to Improve Energy-Efficiency of Android Apps
    Banerjee, Abhijeet
    Chong, Lee Kee
    Ballabriga, Clement
    Roychoudhury, Abhik
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2018, 44 (05) : 470 - 490
  • [2] Hardening the OAuth-WebView Implementations in Android Applications By Re-factoring the Chromium Library
    Mohsen, Fadi
    Shehab, Mohamed
    [J]. 2016 IEEE 2ND INTERNATIONAL CONFERENCE ON COLLABORATION AND INTERNET COMPUTING (IEEE CIC), 2016, : 196 - 205
  • [3] Automated Energy-Efficiency Evaluation
    Junge, Mark
    Martin, Lars
    [J]. BWK, 2012, 64 (03): : 7 - 9
  • [4] Introduction of energy management systems to enhance energy-efficiency
    Orlik, Gerald
    [J]. Gaswaerme International, 2009, 58 (7-8): : 539 - 541
  • [5] Debugging Energy-efficiency Related Field Failures in Mobile Apps
    Banerjee, Abhijeet
    Guo, Hai-Feng
    Roychoudhury, Abhik
    [J]. 2016 IEEE/ACM INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2016), 2016, : 127 - 138
  • [6] Static/Dynamic Analysis of Android Applications to Improve Energy-Efficiency
    Jalili, Mohammad
    Faghih, Fathiyeh
    [J]. 2022 CPSSI 4TH INTERNATIONAL SYMPOSIUM ON REAL-TIME AND EMBEDDED SYSTEMS AND TECHNOLOGIES (RTEST 2022), 2022,
  • [7] The contributions of logistics to enhance energy-efficiency in freight traffic
    Humpl, Doris
    [J]. PROCEEDINGS OF THE 2010 IEEE INTERNATIONAL SYMPOSIUM ON SUSTAINABLE SYSTEMS AND TECHNOLOGY (ISSST), 2010,
  • [8] PWA vs the Others: A Comparative Study on the UI Energy-Efficiency of Progressive Web Apps
    Huber, Stefan
    Demetz, Lukas
    Felderer, Michael
    [J]. WEB ENGINEERING, ICWE 2021, 2021, 12706 : 464 - 479
  • [9] Automated 3D model reconstruction to support energy-efficiency
    Son, Hyojoo
    Lee, Sungwook
    Kim, Changwan
    [J]. ICSDEC 2016 - INTEGRATING DATA SCIENCE, CONSTRUCTION AND SUSTAINABILITY, 2016, 145 : 571 - 578
  • [10] Digital Twins-Based Automated Pilot for Energy-Efficiency Assessment of Intelligent Transportation Infrastructure
    Tu, Zhen
    Qiao, Liang
    Nowak, Robert
    Lv, Haibin
    Lv, Zhihan
    [J]. IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS, 2022, 23 (11) : 22320 - 22330