作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 开发研究与工程应用 • 上一篇    下一篇

安卓端即时通信应用的心跳机制研究及性能优化

吉毅,贾俊铖,张书奎,王进,周经亚   

  1. (苏州大学 计算机科学与技术学院,江苏 苏州 215006)
  • 收稿日期:2016-10-31 出版日期:2018-01-15 发布日期:2018-01-15
  • 作者简介:吉毅(1993—),男,硕士研究生,主研方向为高性能计算、社交网络、移动通信;贾俊铖,副教授、博士;张书奎,教授、博士;王进,副教授、博士;周经亚,讲师、博士。
  • 基金资助:
    中国博士后科学基金(2017M611905);江苏省高等学校自然科学研究面上项目(17KJB520034);苏州市产业技术创新专项(民生科技)(SS201701)。

Study and Performance Optimization of Instant Messaging Application Heartbeat Mechanism on Android

JI Yi,JIA Juncheng,ZHANG Shukui,WANG Jin,ZHOU Jingya   

  1. (School of Computer Science and Technology,Soochow University,Suzhou,Jiangsu 215006,China)
  • Received:2016-10-31 Online:2018-01-15 Published:2018-01-15

摘要: 即时通信应用以消息的即时性为主要特征,而其内部的心跳机制因具有恒久的定时操作,极大地消耗移动系统的资源,这在安卓系统上尤为明显。为此,以安卓系统应用作为研究对象,对国内主流即时聊天软件进行抓包测试,分析其内部实现过程,检测它们对手机资源的消耗情况,利用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

中图分类号: