Refactoring Android Java Code for On-Demand Computation Offloading - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2012

Refactoring Android Java Code for On-Demand Computation Offloading


Computation offloading is a promising way to improve the performance as well as reduce the battery energy consumption of a smartphone application by executing some part of the application on a remote server. Supporting such capability is not easy to smartphone app developers for 1) correctness: some codes, e.g. those for GPS, gravity and other sensors, can only run on the smartphone so that the developers have to identify which part of the application cannot be offloaded; 2) effectiveness: the reduced execution time must be bigger than the network delay caused by computation offloading so that the developers have to calculate which part is worthy to offload; 3) adaptability: smartphone apps always face with changes of user requirements and runtime environments so that the developers have to implement the adaptation on offloading. More importantly, considering the large number of today's smartphone applications, the solution applicable for legacy applications will be much more valuable. In this paper, we present a tool automatically refactoring Android applications to be the ones with computation offloading capability. For a given Android app, the tool at first analyzes the bytecodes for discovering the parts worthy to offload, then rewrites the bytecodes to implement the special program structure supporting flexible offloading, and finally generates two packages to be deployed into the Android phone and the server respectively. This tool is experimented on a set of real-world Android applications, reducing the execution time by 46%-97% and the battery energy consumption by 27%-83%.
Fichier principal
Vignette du fichier
Refactoring_Android_Java_Code_for_On-Demand_Computation_Offloading.pdf (1.3 Mo) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-00751656 , version 1 (14-11-2012)


  • HAL Id : hal-00751656 , version 1


Ying Zhang, Gang Huang, Xuanzhe Liu, Wei Zhang, Hong Mei, et al.. Refactoring Android Java Code for On-Demand Computation Offloading. OOPSLA 2012, Oct 2012, Tucson Arizona, United States. ⟨hal-00751656⟩


543 View
1781 Download


Gmail Facebook Twitter LinkedIn More