The embodiment of the invention discloses a method and a device for processing, the method includes: a first request message is sent to the FingerPrintd Service FingerPrint first process of the first application program interface of API; the first FingerPrintd process when receiving a request message, the establishment of a request message marking information tag information includes a starting request identification and the first request message of the first API operation execution time; FingerPrint Service as determined according to the marking information operation execution time is greater than the first request message for the requested operation execution time reference, first remove the FingerPrintd process. The embodiment of the invention also discloses a corresponding process processing device. The embodiment of the invention is beneficial to improving the stability of the fingerprint function of the system of the mobile terminal.
【技术实现步骤摘要】
一种进程处理方法及装置
本专利技术涉及装置
,具体涉及一种进程处理方法及装置。
技术介绍
随着智能手机的大量普及应用,智能手机能够支持的应用越来越多,功能越来越强大,智能手机向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。目前手机、平板电脑等电子产品的指纹系统分为多层,其中指纹通信Fingerprintd进程所属的系统运行库native层是其中的一个关键层。但因为平台差异、安全系统稳定性等问题,Fingerprintd进程可以出现持续卡住的情况,此种情况用户手机的所有功能是无法使用的。
技术实现思路
本专利技术实施例提供了一种进程处理方法及装置,可以提高移动终端的系统的指纹功能的稳定性。第一方面,本专利技术实施例提供一种进程处理方法,应用于包括指纹服务FingerPrintService和第一指纹通信FingerPrintd进程的移动终端,所述方法包括:所述FingerPrintService向所述第一FingerPrintd进程发送第一应用程序接口API的第一请求消息;所述第一FingerPrintd进程当接收到所述请求消息时,建立所述第一请求消息的标记信息,所述标记信息包括所述第一API的标识和所述第一请求消息所请求的操作的起始执行时间;所述FingerPrintService当根据所述标记信息确定所述操作的执行时长大于所述操作的参考执行时长时,清除所述第一FingerPrintd进程。第二方面,本专利技术实施例提供了一种进程处理装置,该装置具有实现上述方法设计中移动终端的行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的 ...
【技术保护点】
一种进程处理方法,其特征在于,应用于包括指纹服务FingerPrint Service和第一指纹通信FingerPrintd进程的移动终端,所述方法包括:所述FingerPrint Service向所述第一FingerPrintd进程发送第一应用程序接口API的第一请求消息;所述第一FingerPrintd进程当接收到所述请求消息时,建立所述第一请求消息的标记信息,所述标记信息包括所述第一API的标识和所述第一请求消息所请求的操作的起始执行时间;所述FingerPrint Service当根据所述标记信息确定所述操作的执行时长大于所述操作的参考执行时长时,清除所述第一FingerPrintd进程。
【技术特征摘要】
1.一种进程处理方法,其特征在于,应用于包括指纹服务FingerPrintService和第一指纹通信FingerPrintd进程的移动终端,所述方法包括:所述FingerPrintService向所述第一FingerPrintd进程发送第一应用程序接口API的第一请求消息;所述第一FingerPrintd进程当接收到所述请求消息时,建立所述第一请求消息的标记信息,所述标记信息包括所述第一API的标识和所述第一请求消息所请求的操作的起始执行时间;所述FingerPrintService当根据所述标记信息确定所述操作的执行时长大于所述操作的参考执行时长时,清除所述第一FingerPrintd进程。2.根据权利要求1所述的方法,其特征在于,所述移动终端还包括初始化Inti进程,所述FingerPrintService清除所述FingerPrintd进程之后,所述方法还包括:所述Inti进程在检测到所述移动终端的系统不存在所述第一FingerPrintd进程时,建立第二FingerPrintd进程,以恢复所述系统中的指纹关联功能。3.根据权利要求2所述的方法,其特征在于,所述Inti进程建立第二FingerPrintd进程,以恢复所述系统中的指纹关联功能之后,所述方法还包括:所述FingerPrintService建立与所述第二FingerPrintd进程之间的通信连接。4.根据权利要求3所述的方法,其特征在于,所述FingerPrintService建立与所述第二FingerPrintd进程之间的通信连接之后,所述方法还包括:所述FingerPrintService在检测到第二API接口的第二请求消息时,向所述第二FingerPrintd进程发送所述第二请求消息。5.根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:所述第一FingerPrintd进程执行所述操作,并在所述操作执行完成时,删除所述请求消息对应的标记信息,并向所述FingerPrintService发送响应消息。6.一种进程处理装置,其特征在于,包括:指纹服务FingerPrintService和第...
【专利技术属性】
技术研发人员:蒋奎,王健,
申请(专利权)人:广东欧珀移动通信有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。