ABSTRACT
Always-on continuous sensing apps drain the battery quickly because they prevent the main processor from sleeping. Instead, sensor hub hardware, available in many smartphones today, can run continuous sensing at lower power while keeping the main processor idle. However, developers have to divide functionality between the main processor and the sensor hub. We implement MobileHub, a system that automatically rewrites applications to leverage the sensor hub without additional programming effort. MobileHub uses a combination of dynamic taint tracking and machine learning to learn when it is safe to leverage the sensor hub without affecting application semantics. We implement MobileHub in Android and prototype a sensor hub on a 8-bit AVR micro-controller. We experiment with 20 applications from Google Play. Our evaluation shows that MobileHub significantly reduces power consumption for continuous sensing apps.
- Activity recognitionclient: http://developer.android.com/reference/com/google/android.Google Scholar
- Apple M7. http://en.wikipedia.org/wiki/Apple_M7.Google Scholar
- BeWell Mobile Application. https://play.google.com/store/apps/details?id=org.bewellapp&hl=en.Google Scholar
- Intel Context Sensing SDK. https://software.intel.com/en-us/context-sensing-sdk.Google Scholar
- ios core motion framework reference: https://developer.apple.com/library/ios.Google Scholar
- Physicaloid: Physical computing with a smartphone. http://www.physicaloid.com/?lang=en.Google Scholar
- RF, Wi-Fi and Other Wireless Microcontroller-Based Solutions. http://www.atmel.com/products/wireless/.Google Scholar
- XMega-A3BU XPlained. http://www.atmel.com/tools/XMEGA-A3BUXPLAINED.aspx.Google Scholar
- Atmel: USB Device CDC Application. http://www.atmel.com/Images/doc8447.pdf, 2011.Google Scholar
- TivaWare Sensor Library User Guide. http://www.ti.com/lit/ug/spmu371/spmu371.pdf, 2015.Google Scholar
- Agarwal, Y., Hodges, S., Chandra, R., Scott, J., Bahl, P., and Gupta, R. Somniloquy: augmenting network interfaces to reduce pc energy usage. In Proceedings of the 6th USENIX symposium on Networked systems design and implementation, NSDI'09, USENIX Association (Berkeley, CA, USA, 2009), 365--380. Google ScholarDigital Library
- Arzt, S., Rasthofer, S., Fritz, C., Bodden, E., Bartel, A., Klein, J., Le Traon, Y., Octeau, D., and McDaniel, P. Flowdroid: Precise context, flow, field, object-sensitive and lifecycle-aware taint analysis for android apps. In Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI '14, ACM (New York, NY, USA, 2014), 259--269. Google ScholarDigital Library
- Austin, T. H., and Flanagan, C. Permissive dynamic information flow analysis. In Proceedings of the 5th ACM SIGPLAN Workshop on Programming Languages and Analysis for Security, PLAS '10, ACM (New York, NY, USA, 2010), 3:1--3:12. Google ScholarDigital Library
- Bao, T., Zheng, Y., Lin, Z., Zhang, X., and Xu, D. Strict control dependence and its effect on dynamic information flow analyses. In Proceedings of the 19th international symposium on Software testing and analysis, ACM (2010), 13--24. Google ScholarDigital Library
- Bo, C., Li, X.-Y., Jung, T., Mao, X., Tao, Y., and Yao, L. Smartloc: Push the limit of the inertial sensor based metropolitan localization using smartphone. In Proceedings of the 19th Annual International Conference on Mobile Computing & Networking, MobiCom '13, ACM (New York, NY, USA, 2013), 195--198. Google ScholarDigital Library
- Cao, Y., Fratantonio, Y., Bianchi, A., Egele, M., Kruegel, C., Vigna, G., and Chen, Y. Automatically detecting implicit control flow transitions through the android framework. In In Proceeding of the Network and Distributed System Security Symposium (NDSS15 (2015).Google ScholarCross Ref
- Clause, J., Li, W., and Orso, A. Dytan: a generic dynamic taint analysis framework. In Proceedings of the 2007 international symposium on Software testing and analysis, ACM (2007), 196--206. Google ScholarDigital Library
- DATASHEET, A. 8-bit avr® microcontroller with 4/8/16/32k bytes in-system programmable flash, 2010.Google Scholar
- Denning, D. E., and Denning, P. J. Certification of programs for secure information flow. Commun. ACM 20, 7 (July 1977), 504--513. Google ScholarDigital Library
- Enck, W., Gilbert, P., Chun, B.-G., Cox, L. P., Jung, J., McDaniel, P., and Sheth, A. N. Taintdroid: an information-flow tracking system for realtime privacy monitoring on smartphones. In OSDI (2010). Google ScholarDigital Library
- Hall, M., Frank, E., Holmes, G., Pfahringer, B., Reutemann, P., and Witten, I. H. The WEKA data mining software: an update. ACM SIGKDD explorations newsletter 11, 1 (2009), 10--18. Google ScholarDigital Library
- Hao, S., Liu, B., Nath, S., Halfond, W. G., and Govindan, R. Puma: Programmable ui-automation for large-scale dynamic analysis of mobile apps. In Proceedings of the 12th Annual International Conference on Mobile Systems, Applications, and Services, MobiSys '14, ACM (New York, NY, USA, 2014), 204--217. Google ScholarDigital Library
- Hill, J., Szewczyk, R., Woo, A., Hollar, S., Culler, D., and Pister, K. System architecture directions for networked sensors. In ACM SIGOPS operating systems review, vol. 34, ACM (2000), 93--104. Google ScholarDigital Library
- Jeff, B. Advances in big. little technology for power and energy savings. ARM White Paper (2012).Google Scholar
- Kang, M. G., McCamant, S., Poosankam, P., and Song, D. Dta++: Dynamic taint analysis with targeted control-flow propagation. In NDSS (2011).Google Scholar
- Kansal, A., Saponas, T. S., Brush, A. J. B., McKinley, K. S., Mytkowicz, T., and Ziola, R. The latency, accuracy, and battery (lab) abstraction: programmer productivity and energy efficiency for continuous mobile context sensing. In OOPSLA, ACM (2013), 661--676. Google ScholarDigital Library
- Lin, F. X., Wang, Z., and Zhong, L. K2: A mobile operating system for heterogeneous coherence domains. In ASPLOS (2014). Google ScholarDigital Library
- Lin, X. F., Wang, Z., LiKamWa, R., and Zhong, L. Reflex: Using low-power processors in smartphones without knowing them. In ASPLOS (2012). Google ScholarDigital Library
- Lisa, E. Intel Unveils New Merrifield Smartphone Chip With Integrated Sensor Hub. http://blog.laptopmag.com/intel-merrifield-smartphone-chip.Google Scholar
- Liu, J., Priyantha, B., Hart, T., Ramos, H. S., Loureiro, A. A. F., and Wang, Q. Energy efficient gps sensing with cloud offloading. In Proceedings of the 10th ACM Conference on Embedded Network Sensor Systems, SenSys '12, ACM (New York, NY, USA, 2012), 85--98. Google ScholarDigital Library
- Morales, M. An Introduction to the Tiva™ C Series Platform of Microcontrollers. Tech. rep., Texas Instruments, April 2013.Google Scholar
- Nath, S. Ace: Exploiting correlation for energy-efficient and continuous context sensing. In Proceedings of the 10th International Conference on Mobile Systems, Applications, and Services, MobiSys '12, ACM (New York, NY, USA, 2012), 29--42. Google ScholarDigital Library
- Priyantha, B., Lymberopoulos, D., and Liu, J. Littlerock: Enabling energy-efficient continuous sensing on mobile phones. In IEEE Pervasive Computing (2011). Google ScholarDigital Library
- Ra, M.-R., Priyantha, B., Kansal, A., and Liu, J. Improving energy efficiency of personal sensing applications with heterogeneous multi-processors. In Proceedings of the 2012 ACM Conference on Ubiquitous Computing, UbiComp '12, ACM (New York, NY, USA, 2012), 1--10. Google ScholarDigital Library
- Ravindranath, L., Nath, S., Padhye, J., and Balakrishnan, H. Automatic and scalable fault detection for mobile applications. In Proceedings of the 12th Annual International Conference on Mobile Systems, Applications, and Services, MobiSys '14, ACM (New York, NY, USA, 2014), 190--203. Google ScholarDigital Library
- Rosen, S., Qian, Z., and Mao, Z. M. Appprofiler: A flexible method of exposing privacy-related behavior in android applications to end users. In Proceedings of the Third ACM Conference on Data and Application Security and Privacy, CODASPY '13, ACM (New York, NY, USA, 2013), 221--232. Google ScholarDigital Library
- Shih, E., Bahl, P., and Sinclair, M. J. Wake on wireless: an event driven energy saving strategy for battery operated devices. In Proceedings of the 8th annual international conference on Mobile computing and networking, MobiCom '02, ACM (New York, NY, USA, 2002), 160--171. Google ScholarDigital Library
- Sorber, J., Banerjee, N., Corner, M. D., and Rollins, S. Turducken: hierarchical power management for mobile devices. In Proceedings of the 3rd international conference on Mobile systems, applications, and services, MobiSys '05, ACM (New York, NY, USA, 2005), 261--274. Google ScholarDigital Library
- Stankovic, J. A., Wood, A. D., and He, T. Realistic applications for wireless sensor networks. In Theoretical Aspects of Distributed Computing in Sensor Networks. Springer, 2011, 835--863.Google Scholar
- Stone, M. Cross-validatory choice and assessment of statistical predictions. Journal of the Royal Statistical Society. Series B (Methodological) (1974), 111--147.Google ScholarCross Ref
- Vallée-Rai, R., Co, P., Gagnon, E., Hendren, L., Lam, P., and Sundaresan, V. Soot: A java bytecode optimization framework. In CASCON First Decade High Impact Papers, IBM Corp. (2010), 214--224. Google ScholarDigital Library
- Vallee-Rai, R., and Hendren, L. J. Jimple: Simplifying java bytecode for analyses and transformations.Google Scholar
- Vogt, P., Nentwich, F., Jovanovic, N., Kirda, E., Kruegel, C., and Vigna, G. Cross-site scripting prevention with dynamic data tainting and static analysis. In In Proceeding of the Network and Distributed System Security Symposium (NDSS07 (2007).Google Scholar
- Zhang, L., Gordon, M. S., Dick, R. P., Mao, Z. M., Dinda, P., and Yang, L. Adel: An automatic detector of energy leaks for smartphone applications. In Proceedings of the Eighth IEEE/ACM/IFIP International Conference on Hardware/Software Codesign and System Synthesis, CODES+ISSS '12, ACM (New York, NY, USA, 2012), 363--372. Google ScholarDigital Library
- Zhuang, Z., Kim, K.-H., and Singh, J. P. Improving energy efficiency of location sensing on smartphones. In Proceedings of the 8th International Conference on Mobile Systems, Applications, and Services, MobiSys '10, ACM (New York, NY, USA, 2010), 315--330. Google ScholarDigital Library
Index Terms
- Enhancing mobile apps to use sensor hubs without programmer effort
Recommendations
Serving Mobile Apps: A Slice at a Time
EuroSys '19: Proceedings of the Fourteenth EuroSys Conference 2019End users wanting to do more and more with mobile apps has led to explosive growth in the number of available apps. This has widened the gap between developers making apps available and end users being able to install all the apps they want on their ...
Automated re-factoring of Android apps to enhance energy-efficiency
MOBILESoft '16: Proceedings of the International Conference on Mobile Software Engineering and SystemsMobile 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 ...
Spam Mobile Apps: Characteristics, Detection, and in the Wild Analysis
The increased popularity of smartphones has attracted a large number of developers to offer various applications for the different smartphone platforms via the respective app markets. One consequence of this popularity is that the app markets are also ...
Comments