Automated offloading of android applications for computation/energy optimizations