论文部分内容阅读
即时通讯应用以消息的即时性为主要特征,而其内部的心跳机制因具有恒久的定时操作,而极大地消耗移动系统的资源,这在安卓系统上尤为明显。本文主要以安卓系统应用作为主要研究对象,对国内主流即时聊天软件进行抓包测试,深入了解和分析其内部实现过程,然后检测它们对手机资源的消耗情况,最终利用Xposed框架对心跳接口进行调整与修改,并开发出针对即时通讯应用的节能应用—iHeart。实验结果表明,在保证各个应用消息收发正常情况下,iHeart应用能截获心跳操作,并可折中调整多个定时设定,对流量和电量消耗都能起到了一定的节约效果。
The instant messaging application is characterized by the immediacy of the message, and its internal heartbeat mechanism drastically consumes the resources of the mobile system due to its permanent timing operation, which is especially evident on Android systems. In this paper, the main application of Android system as the main research object, the domestic mainstream instant messaging software capture test package, in-depth understanding and analysis of its internal implementation process, and then detect their consumption of mobile phone resources, and ultimately use the Xposed framework to adjust the heartbeat interface And modify and develop iHeart, an energy-efficient application for instant messaging applications. The experimental results show that the iHeart application can intercept the heartbeat operation and can adjust a number of timing settings compromise, ensuring that all application messages are sent and received normally, which can save a lot of traffic and power consumption.