摘要: 即时通信应用以消息的即时性为主要特征,而其内部的心跳机制因具有恒久的定时操作,极大地消耗移动系统的资源,这在安卓系统上尤为明显。为此,以安卓系统应用作为研究对象,对国内主流即时聊天软件进行抓包测试,分析其内部实现过程,检测它们对手机资源的消耗情况,利用Xposed框架对心跳接口进行调整与修改,给出针对即时通信应用的节能应用(iHeart)。实验结果表明,在保证各个应用消息收发正常情况下,iHeart应用能截获心跳操作,并可折中调整多个定时设定,减少流量和电量消耗。
关键词:
安卓系统,
移动应用,
即时通信,
心跳机制,
性能优化
Abstract: Instant messaging applications are characterized by the immediacy of the messages,and their internal heartbeat mechanism drastically consumes the resources of the mobile system due to their permanent timing operations,which is especially evident on Android systems.Therefore,this paper takes Android application system as the research object,the domestic mainstream instant chat software to capture test,understand and analyze its internal implementation process,detection of mobile phone consumption of resources,then uses the Xposed framework to adjust and modify the heartbeat interface,developes the application of energy-saving instant communication application (iHeart).Experimental results show that the iHeart application can intercept the heartbeat operation while ensuring the normal sending and receiving of various application messages,and can adjust multiple timing settings compromise to reduce the traffic and power consumption.
Key words:
Android system,
mobile application,
instant messaging,
heartbeat mechanism,
performance optimization
中图分类号:
吉毅,贾俊铖,张书奎,王进,周经亚. 安卓端即时通信应用的心跳机制研究及性能优化[J]. 计算机工程.
JI Yi,JIA Juncheng,ZHANG Shukui,WANG Jin,ZHOU Jingya. Study and Performance Optimization of Instant Messaging Application Heartbeat Mechanism on Android[J]. Computer Engineering.