Movatterモバイル変換


[0]ホーム

URL:


CN106095645A - A method and device for searching an application program - Google Patents

A method and device for searching an application program
Download PDF

Info

Publication number
CN106095645A
CN106095645ACN201610459897.3ACN201610459897ACN106095645ACN 106095645 ACN106095645 ACN 106095645ACN 201610459897 ACN201610459897 ACN 201610459897ACN 106095645 ACN106095645 ACN 106095645A
Authority
CN
China
Prior art keywords
historical
terminal
application
information
wake
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610459897.3A
Other languages
Chinese (zh)
Inventor
甄文先
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610459897.3ApriorityCriticalpatent/CN106095645A/en
Publication of CN106095645ApublicationCriticalpatent/CN106095645A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种应用程序查找方法和装置;包括以下步骤:判断终端当前的系统功耗是否出现异常,若是,则获取终端系统的历史唤醒时间信息,根据该历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,历史运行信息集合包括应用程序的历史运行时间信息,从候选应用程序集合中确定满足预设应用异常条件的目标应用程序;本方法可以在终端功耗出现异常时确定候选应用程序,并在这些候选应用程序中确定唤醒终端导致功耗异常的目标应用程序,本方案能够确定终端中是什么应用程序导致手机被频繁唤醒,进而可以有针对性的对系统和应用程序进行优化,减少终端电量的浪费。

The embodiment of the present invention discloses an application search method and device; the method comprises the following steps: determining whether the current system power consumption of a terminal is abnormal; if so, obtaining the historical wake-up time information of the terminal system; determining the corresponding candidate application according to the historical wake-up time information and the historical operation information set to obtain the candidate application set, wherein the historical operation information set includes the historical operation time information of the application; and determining the target application that meets the preset application abnormality condition from the candidate application set; the method can determine the candidate application when the power consumption of the terminal is abnormal, and determine the target application that wakes up the terminal and causes the power consumption abnormality from these candidate applications. The solution can determine which application in the terminal causes the mobile phone to be frequently woken up, and then can optimize the system and application in a targeted manner to reduce the waste of terminal power.

Description

Translated fromChinese
一种应用程序查找方法和装置A method and device for searching an application program

技术领域technical field

本发明涉及终端技术领域,具体涉及一种应用程序查找方法和装置。The present invention relates to the technical field of terminals, in particular to a method and device for searching an application program.

背景技术Background technique

随着电子通讯领域的发展,移动终端例如智能手机的功能越来越强大,用户不仅通过智能手机打电话、发短信,用户还可以根据需求在移动终端中安装各种功能的应用程序,以满足自己在不同方面的需求(例如游戏、阅读、音乐、视频播放、购物等等)。With the development of the field of electronic communication, the functions of mobile terminals such as smart phones are becoming more and more powerful. Users can not only make calls and send text messages through smart phones, but also install various functional applications in mobile terminals according to their needs to meet Your own needs in different aspects (such as games, reading, music, video playback, shopping, etc.).

目前,在使用智能手机的过程当中,用户可以随意安装应用程序,有些应用程序设计不合理导致手机频繁被唤醒,比如在关闭应用程序后该应用程序所持有的唤醒锁没有立即被释放掉,继续持有系统的唤醒锁一段时间,以保证其正常运行,但是如果长时间不能释放掉此唤醒锁,会导致手机不能正常深度睡眠,看上去手机已经不再工作,实际上手机在待机的时候,后台的CPU等设备一直处于工作状态,增加了不必要的待机电池电量的消耗。然而,在现有技术当中,终端设备无法去诊断是什么应用程序导致手机被频繁唤醒,也无法有针对性的对系统和应用程序进行优化,从而造成了终端电量的浪费。At present, in the process of using a smartphone, users can install applications at will. Some applications are unreasonably designed and cause the phone to be woken up frequently. For example, after closing the application, the wake lock held by the application is not released immediately. Continue to hold the wake lock of the system for a period of time to ensure its normal operation, but if the wake lock cannot be released for a long time, the phone will not be able to sleep normally. It seems that the phone is no longer working, but in fact the phone is in standby , the CPU and other devices in the background are always working, which increases unnecessary consumption of standby battery power. However, in the prior art, the terminal device cannot diagnose what application programs cause the mobile phone to be frequently woken up, and cannot optimize the system and application programs in a targeted manner, resulting in a waste of terminal power.

由上可知,在现有技术中存在由于终端设备无法确定频繁唤醒系统的应用程序而造成终端电量浪费的技术问题。It can be seen from the above that, in the prior art, there is a technical problem that terminal power is wasted due to the inability of the terminal device to determine the application program that frequently wakes up the system.

发明内容Contents of the invention

本发明实施例提供一种应用程序查找方法和装置,可以解决现有技术中存在由于终端设备无法确定频繁唤醒系统的应用程序而造成终端电量浪费的技术问题。Embodiments of the present invention provide a method and device for searching an application program, which can solve the technical problem in the prior art that terminal power is wasted due to the inability of the terminal device to determine the application program that frequently wakes up the system.

本发明实施例提供一种应用程序查找方法,包括以下步骤:An embodiment of the present invention provides an application search method, including the following steps:

判断终端当前的系统功耗是否出现异常;Determine whether the current system power consumption of the terminal is abnormal;

若是,则获取所述终端系统的历史唤醒时间信息;If so, then acquire the historical wake-up time information of the terminal system;

根据所述历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,所述历史运行信息集合包括应用程序的历史运行时间信息;Determine the corresponding candidate application program according to the historical wake-up time information and the historical running information set to obtain the candidate application program set, the historical running information set includes the historical running time information of the application program;

从所述候选应用程序集合中确定满足预设应用异常条件的目标应用程序。A target application meeting a preset application exception condition is determined from the candidate application set.

进一步的,所述获取所述终端系统的历史唤醒时间信息的步骤具体包括:Further, the step of acquiring the historical wake-up time information of the terminal system specifically includes:

获取所述终端系统的历史状态信息,其中,所述历史状态信息包括睡眠状态和唤醒状态;Acquiring historical state information of the terminal system, wherein the historical state information includes a sleep state and a wake-up state;

当所述终端系统由睡眠状态切换为唤醒状态时,获取所述终端对应的时间信息并确定为所述历史唤醒时间信息。When the terminal system switches from the sleep state to the wake-up state, the time information corresponding to the terminal is acquired and determined as the historical wake-up time information.

进一步的,所述根据所述历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序的步骤具体包括:Further, the step of determining the corresponding candidate application program according to the historical wake-up time information and the historical running information set specifically includes:

根据所述历史唤醒时间信息在所述历史运行信息集合当中查找所述终端系统中正在运行的应用程序;Searching for an application that is running in the terminal system in the set of historical running information according to the historical wake-up time information;

确定所述应用程序为候选应用程序。The application is determined to be a candidate application.

进一步的,所述判断终端当前的系统功耗是否出现异常的步骤具体包括:Further, the step of judging whether the current system power consumption of the terminal is abnormal specifically includes:

获取在预设时间段内所述终端的功耗值;Acquiring the power consumption value of the terminal within a preset time period;

判断所述功耗值是否大于预设阈值;judging whether the power consumption value is greater than a preset threshold;

若是,则确定所述终端当前的系统功耗出现异常。If yes, it is determined that the current system power consumption of the terminal is abnormal.

进一步的,在所述判断终端当前的系统功耗是否出现异常之前,所述方法还包括:Further, before the judging whether the current system power consumption of the terminal is abnormal, the method further includes:

通过所述终端的内核驱动层中的信息收集机制收集终端系统被唤醒的唤醒信息,以得到历史唤醒信息集合;Collecting the wake-up information of the terminal system being woken up through the information collection mechanism in the kernel driver layer of the terminal to obtain a set of historical wake-up information;

所述获取所述终端系统的历史唤醒时间信息的步骤具体包括:The step of acquiring the historical wake-up time information of the terminal system specifically includes:

从所述历史唤醒信息集合中获取历史唤醒时间信息。Obtain historical wake-up time information from the historical wake-up information set.

进一步的,在所述判断终端当前的系统功耗是否出现异常之前,所述方法还包括:Further, before the judging whether the current system power consumption of the terminal is abnormal, the method further includes:

通过所述终端的系统上层应用层中的历史运行信息收集机制收集应用程序的运行信息,以得到所述历史运行信息集合。The running information of the application program is collected through the historical running information collection mechanism in the upper application layer of the system of the terminal, so as to obtain the set of historical running information.

本发明实施例还提供了一种应用程序查找装置,包括:判断模块、时间获取模块、候选应用确定模块以及目标应用确定模块;The embodiment of the present invention also provides an application search device, including: a judgment module, a time acquisition module, a candidate application determination module, and a target application determination module;

所述判断模块,用于判断终端当前的系统功耗是否出现异常;The judging module is used to judge whether the current system power consumption of the terminal is abnormal;

所述时间获取模块,用于当所述判断模块判断为是时,获取所述终端系统的历史唤醒时间信息;The time acquiring module is configured to acquire historical wake-up time information of the terminal system when the judging module judges yes;

所述候选应用确定模块,用于根据所述历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,所述历史运行信息集合包括应用程序的历史运行时间信息;The candidate application determining module is configured to determine a corresponding candidate application program according to the historical wake-up time information and the historical running information set to obtain a candidate application program set, and the historical running information set includes historical running time information of the application program;

所述目标应用确定模块,用于从所述候选应用程序集合中确定满足预设应用异常条件的目标应用程序。The target application determining module is configured to determine a target application meeting a preset application exception condition from the set of candidate applications.

进一步的,所述时间获取模块具体包括:状态获取子模块和时间获取子模块;Further, the time acquisition module specifically includes: a state acquisition submodule and a time acquisition submodule;

所述状态获取子模块,用于获取所述终端系统的历史状态信息,其中,所述历史状态信息包括睡眠状态和唤醒状态;The state acquiring submodule is configured to acquire historical state information of the terminal system, wherein the historical state information includes a sleep state and a wake-up state;

所述时间获取子模块,用于当所述终端系统由睡眠状态切换为唤醒状态时,获取所述终端对应的时间信息并确定为所述历史唤醒时间信息。The time obtaining sub-module is configured to obtain time information corresponding to the terminal and determine it as the historical wake-up time information when the terminal system switches from the sleep state to the wake-up state.

进一步的,所述候选应用确定模块,具体用于根据所述历史唤醒时间信息在所述历史运行信息集合当中查找所述终端系统中正在运行的应用程序,确定所述应用程序为候选应用程序。Further, the candidate application determining module is specifically configured to search for an application program running in the terminal system in the historical operation information set according to the historical wake-up time information, and determine the application program as a candidate application program.

进一步的,所述判断模块具体包括:功耗获取子模块、判断子模块以及确定子模块;Further, the judging module specifically includes: a power consumption acquiring submodule, a judging submodule, and a determining submodule;

所述功耗获取子模块,用于获取在预设时间段内所述终端的功耗值;The power consumption acquisition submodule is used to acquire the power consumption value of the terminal within a preset time period;

所述判断子模块,用于判断所述功耗值是否大于预设阈值;The judging submodule is used to judge whether the power consumption value is greater than a preset threshold;

所述确定子模块,用于当所述判断子模块判断为是时,确定所述终端当前的系统功耗出现异常。The determination submodule is configured to determine that the current system power consumption of the terminal is abnormal when the determination submodule determines yes.

本发明实施例首先判断终端当前的系统功耗是否出现异常,若是,则获取终端系统的历史唤醒时间信息,根据历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,历史运行信息集合包括应用程序的历史运行时间信息,从候选应用程序集合中确定满足预设应用异常条件的目标应用程序;本方法可以在终端功耗出现异常时确定候选应用程序,并在这些候选应用程序中确定唤醒终端导致功耗异常的目标应用程序,本方案能够确定终端中是什么应用程序导致手机被频繁唤醒,进而可以有针对性的对系统和应用程序进行优化,减少终端电量的浪费。In the embodiment of the present invention, firstly, it is determined whether the current system power consumption of the terminal is abnormal, and if so, the historical wake-up time information of the terminal system is obtained, and the corresponding candidate application program is determined according to the historical wake-up time information and the historical operation information set, so as to obtain the candidate application program Collection, the collection of historical running information includes the historical running time information of the application program, and the target application program that satisfies the preset application exception condition is determined from the candidate application program set; this method can determine the candidate application program when the terminal power consumption is abnormal, and Among these candidate applications, determine the target application that wakes up the terminal and causes abnormal power consumption. This solution can determine what application in the terminal causes the mobile phone to be frequently woken up, and then optimize the system and applications in a targeted manner to reduce the power consumption of the terminal. waste.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为本发明实施例一提供的一种应用程序查找方法的流程示意图;FIG. 1 is a schematic flowchart of an application search method provided in Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种手机应用程序查找方法的流程示意图;FIG. 2 is a schematic flow diagram of a mobile phone application search method provided in Embodiment 2 of the present invention;

图3为本发明实施例三提供的一种应用程序查找装置的结构示意图;FIG. 3 is a schematic structural diagram of an application search device provided in Embodiment 3 of the present invention;

图4为本发明实施例三提供的第二种应用程序查找装置的结构示意图。FIG. 4 is a schematic structural diagram of a second application search device provided by Embodiment 3 of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例提供一种应用程序查找方法和装置。以下将分别进行详细说明。Embodiments of the present invention provide a method and device for searching an application program. The details will be described respectively below.

实施例一、Embodiment one,

本实施例将从应用程序查找装置的角度对本发明进行描述,该应用程序查找装置可以集成在终端中,终端可以为移动互联网设备(如智能手机、平板电脑)、智能穿戴设备(如智能手表)等各类电子设备。This embodiment will describe the present invention from the perspective of an application program search device. The application program search device can be integrated in a terminal, and the terminal can be a mobile Internet device (such as a smart phone, a tablet computer), a smart wearable device (such as a smart watch) and other electronic equipment.

请参阅图1,图1为本发明实施例一提供的应用程序查找方法的流程示意图,本实施例的传感器的关闭方法包括:Please refer to FIG. 1. FIG. 1 is a schematic flow chart of the application program search method provided in Embodiment 1 of the present invention. The sensor shutdown method in this embodiment includes:

步骤S101,获取终端当前的系统功耗信息。Step S101, acquiring current system power consumption information of the terminal.

在本发明实施例当中,该功耗即为功率的损耗,指终端中输入功率和输出功率的差额,电路中通常指元、器件上耗散的热能。有时也指整机或设备所需的电源功率。功耗同样是所有的电器设备都有的一个指标,指的是在单位时间中所消耗的能源的数量,单位为W。In the embodiment of the present invention, the power consumption is power loss, which refers to the difference between input power and output power in a terminal, and generally refers to heat energy dissipated on components and devices in a circuit. Sometimes it also refers to the power required by the whole machine or equipment. Power consumption is also an indicator of all electrical equipment, which refers to the amount of energy consumed per unit time, and the unit is W.

具体的,本发明中获取终端当前的系统功耗信息的方法可以有多种,比如,可以在一段预设时间段内获取终端消耗的功率值,即为该终端在这段时间内的功耗值,其中,上述预设时间段可以根据用户需求自行设定,比如设置为1min、2min或是3min等等,优选的,为了提升本方案的准确定,可以将该预设时间段设置为一较短的时间段、比如1min。Specifically, in the present invention, there are many ways to obtain the current system power consumption information of the terminal. For example, the power consumption value of the terminal can be obtained within a preset period of time, which is the power consumption of the terminal during this period. Value, wherein, the above preset time period can be set according to user needs, for example, set to 1min, 2min or 3min, etc., preferably, in order to improve the accuracy of this program, the preset time period can be set to a A shorter period of time, such as 1 minute.

在其他实施例当中,上述获取当前的系统功耗信息还可以每过预设时间获取终端的电量信息,然后通过与历史电量信息对比计算出在该时间段内终端消耗的电量信息,比如,设置计时器每隔1min获取一次当前的电量信息,将该电量信息与1min前获取到的历史电量信息对比计算以得到终端在1min内消耗的电量信息。In other embodiments, the above-mentioned acquisition of current system power consumption information can also obtain the power information of the terminal every preset time, and then calculate the power consumption information of the terminal in this time period by comparing with the historical power information, for example, set The timer obtains the current power information every 1 minute, and compares the power information with the historical power information obtained 1 minute ago to obtain the power consumption information of the terminal within 1 minute.

步骤S102,判断上述系统功耗是否出现异常,若是,则执行步骤S103,若否,则返回步骤S101。Step S102, determine whether the power consumption of the above system is abnormal, if yes, execute step S103, if not, return to step S101.

具体的,上述判断系统功耗是否出现异常的方法可以有多种,比如判断上述预设时间段内终端消耗的功率值是否大于预设阈值,或是判断预设时间段内终端消耗的电量是否大于预设阈值,若是,则执行下一步,若否,则返回上一步继续获取终端当前的系统功耗信息,也即上述判断系统功耗是否出现异常的步骤可以具体包括:Specifically, there are various methods for judging whether the power consumption of the system is abnormal, such as judging whether the power consumed by the terminal within the preset time period is greater than a preset threshold, or judging whether the power consumed by the terminal within the preset time period is greater than the preset threshold, if yes, execute the next step, if not, return to the previous step to continue to obtain the current system power consumption information of the terminal, that is, the above-mentioned steps for judging whether the system power consumption is abnormal may specifically include:

获取在预设时间段内上述终端的功耗值;Obtaining the power consumption value of the above-mentioned terminal within a preset time period;

判断该功耗值是否大于预设阈值;judging whether the power consumption value is greater than a preset threshold;

若是,则确定终端当前的系统功耗出现异常。If yes, it is determined that the current system power consumption of the terminal is abnormal.

若判断上述功耗值不大于预设值,则可以继续获取终端当前的系统功耗信息,其中,上述预设值为终端的功耗异常的临界值,可以由用户根据实际情况自行设定,也可以由终端根据历史使用情况计算生成,在此不做进一步限定。If it is judged that the above power consumption value is not greater than the preset value, the current system power consumption information of the terminal can be obtained continuously, wherein the above preset value is a critical value of abnormal power consumption of the terminal, which can be set by the user according to the actual situation. It may also be calculated and generated by the terminal according to historical usage conditions, which will not be further limited here.

步骤S103,获取终端系统的历史唤醒时间信息。Step S103, acquiring historical wake-up time information of the terminal system.

在本发明实施例中,在上述判断系统功耗出现异常之后,获取终端系统的历史唤醒时间信息的步骤之前,本方法还可以包括:生成提取申请,该提取申请用于提取终端中的历史唤醒信息集合。In the embodiment of the present invention, before the step of obtaining the historical wake-up time information of the terminal system after the above-mentioned determination that the power consumption of the system is abnormal, the method may further include: generating an extraction application, which is used to extract the historical wake-up time information of the terminal system collection of information.

具体的,在获取到历史唤醒信息集合之后,从历史唤醒信息集合中获取终端系统的历史唤醒时间信息,也即,查找终端系统被唤醒时对应的唤醒时间信息,其中,该唤醒时间信息可以为一个或多个,其中,上述从历史唤醒信息集合中获取终端系统的历史唤醒时间信息的方法可以有多种,比如对历史唤醒信息集合进行解析可以判断终端当前为睡眠状态还是唤醒状态,在终端被唤醒时也即当前状态由睡眠状态进入唤醒状态时,获取对应的时间信息,即上述从历史唤醒信息集合中获取终端系统的历史唤醒时间信息的步骤可以具体包括:Specifically, after obtaining the historical wake-up information set, the historical wake-up time information of the terminal system is obtained from the historical wake-up information set, that is, to find the corresponding wake-up time information when the terminal system is woken up, wherein the wake-up time information can be One or more, wherein, there may be multiple methods for obtaining the historical wake-up time information of the terminal system from the historical wake-up information collection. When being awakened, that is, when the current state enters the awakening state from the sleep state, the corresponding time information is obtained, that is, the above-mentioned step of obtaining the historical wake-up time information of the terminal system from the historical wake-up information set may specifically include:

获取终端系统的历史状态信息,其中,历史状态信息包括睡眠状态和唤醒状态;Obtain historical state information of the terminal system, where the historical state information includes a sleep state and a wake-up state;

当终端系统由睡眠状态切换为唤醒状态时,获取终端对应的时间信息并确定为历史唤醒时间信息。When the terminal system switches from the sleep state to the wake-up state, the time information corresponding to the terminal is obtained and determined as historical wake-up time information.

步骤S104,根据历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序。Step S104, determine the corresponding candidate application program according to the historical wake-up time information and the historical running information set.

具体的,上述历史运行信息集合包括应用程序的历史运行时间信息,在该历史运行信息集合当中查找与上述历史唤醒时间信息相匹配的历史运行时间信息,并确定与该历史运行时间信息相对应的应用程序,即候选应用程序,以得到候选应用程序集合。Specifically, the above-mentioned set of historical running information includes the historical running time information of the application program, and the historical running time information matching the above-mentioned historical wake-up time information is searched in the historical running information set, and the corresponding historical running time information is determined. applications, that is, candidate applications, to obtain a set of candidate applications.

进一步的,上述根据历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序的步骤可以具体包括:Further, the above-mentioned step of determining the corresponding candidate application program according to the historical wake-up time information and the historical running information set may specifically include:

根据历史唤醒时间信息在历史运行信息集合当中查找终端系统中正在运行的应用程序;Find the applications running in the terminal system in the historical running information collection according to the historical wake-up time information;

确定该应用程序为候选应用程序。Identify the application as a candidate application.

比如上述历史唤醒时间信息为t,则可以在历史运行信息集合当中查找时间为t时终端正在运行的应用程序,这些应用程序即为候选应用程序,以得到候选应用程序集合。For example, if the above-mentioned historical wake-up time information is t, the application programs that the terminal is running at time t can be searched in the historical operation information set, and these application programs are candidate application programs, so as to obtain the candidate application program set.

步骤S105,从候选应用程序集合中确定满足预设应用异常条件的目标应用程序。Step S105, determining a target application meeting a preset application exception condition from the set of candidate applications.

具体的,在得到候选应用程序集合之后,可以分别判断候选应用程序集合中的应用程序是否满足预设条件,若是,则确定该应用程序为目标应用程序,若否,则确定该应用程序不为目标应用程序,其中,上述目标应用程序可以为多个。Specifically, after obtaining the set of candidate application programs, it is possible to judge whether the applications in the set of candidate application programs meet the preset conditions. A target application program, wherein there may be multiple target application programs.

在本发明实施例当中,上述预设条件可以为能够唤醒终端系统的一些条件,比如应用程序持有唤醒锁以唤醒终端系统,或者应用程序设置了闹钟函数,该闹钟函数可以在进程中设置定时器,当定时器指定的时间到时,向进程发送信号从而唤醒系统。In the embodiment of the present invention, the above-mentioned preset conditions can be some conditions that can wake up the terminal system, for example, the application program holds a wake lock to wake up the terminal system, or the application program sets an alarm clock function, and the alarm clock function can set a timer in the process When the time specified by the timer expires, it sends a signal to the process to wake up the system.

优选的,在本发明实施例中,在步骤判断终端当前的系统功耗是否出现异常之前,该方法还可以包括:Preferably, in the embodiment of the present invention, before the step of judging whether the current system power consumption of the terminal is abnormal, the method may further include:

通过终端的内核驱动层中的信息收集机制收集终端系统被唤醒的唤醒信息,以得到历史唤醒信息集合;Collect the wake-up information that the terminal system is woken up through the information collection mechanism in the terminal kernel driver layer to obtain a collection of historical wake-up information;

获取终端系统的历史唤醒时间信息的步骤具体包括:The steps of obtaining the historical wake-up time information of the terminal system specifically include:

从历史唤醒信息集合中获取历史唤醒时间信息。Obtain historical wake-up time information from the historical wake-up information collection.

进一步的,在判断终端当前的系统功耗是否出现异常之前,上述方法还可以包括:Further, before judging whether the current system power consumption of the terminal is abnormal, the above method may also include:

通过终端的系统上层应用层中的历史运行信息收集机制收集应用程序的运行信息,以得到历史运行信息集合。The running information of the application program is collected through the historical running information collection mechanism in the upper application layer of the terminal system to obtain a collection of historical running information.

比如在终端的内核驱动层添加kernel log(内核驱动日志),kernel log用于保存内核驱动底层(即Linux内核层)的日志数据,一旦系统通电,kernel log便开始记录;在终端的上层应用层添加android log(上层应用日志),android log用于保存安卓系统上层应用层(即应用程序层即应用程序框架层)的日志数据。For example, add a kernel log (kernel driver log) to the kernel driver layer of the terminal. The kernel log is used to save the log data of the bottom layer of the kernel driver (that is, the Linux kernel layer). Once the system is powered on, the kernel log will start recording; in the upper application layer of the terminal Add android log (upper layer application log), android log is used to save the log data of the upper layer application layer (that is, the application layer, that is, the application framework layer) of the Android system.

由上可知,本发明实施例首先判断终端当前的系统功耗是否出现异常,若是,则获取终端系统的历史唤醒时间信息,根据历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,历史运行信息集合包括应用程序的历史运行时间信息,从候选应用程序集合中确定满足预设应用异常条件的目标应用程序;本方法可以在终端功耗出现异常时确定候选应用程序,并在这些候选应用程序中确定唤醒终端导致功耗异常的目标应用程序,本方案能够确定终端中是什么应用程序导致手机被频繁唤醒,进而可以有针对性的对系统和应用程序进行优化,节省终端电量、提高用户体验。As can be seen from the above, the embodiment of the present invention first determines whether the current system power consumption of the terminal is abnormal; Obtain a set of candidate applications, the set of historical running information includes the historical running time information of the application, and determine the target application that meets the preset application exception conditions from the set of candidate applications; this method can determine the candidate application when the power consumption of the terminal is abnormal program, and determine the target application program that wakes up the terminal and causes abnormal power consumption among these candidate applications. This solution can determine what application program in the terminal causes the mobile phone to be frequently woken up, and then can optimize the system and application programs in a targeted manner , saving terminal power and improving user experience.

实施例二、Embodiment two,

本实施例将在实施例一的基础上,以智能手机为例,对本发明作进一步描述,在本实施例当中,历史唤醒信息集合为kernel log内核驱动日志,历史运行信息集合为androidlog上层应用日志,请参阅图2,图2为本发明实施例提供的一种应用程序查找方法的流程示意图,包括:This embodiment will further describe the present invention on the basis of Embodiment 1, taking smart phones as an example. In this embodiment, the collection of historical wake-up information is the kernel log driver log, and the collection of historical running information is the upper layer application log of androidlog Please refer to FIG. 2. FIG. 2 is a schematic flowchart of an application search method provided by an embodiment of the present invention, including:

步骤S201,在智能手机的kernel和android中添加log。Step S201, adding logs in the kernel and android of the smart phone.

具体的,在智能手机的内核驱动层添加kernel log内核驱动日志,在手机的上层应用层添加android log上层应用日志,并开始收集log。Specifically, add the kernel log kernel driver log in the kernel driver layer of the smart phone, add the android log upper layer application log in the upper layer application layer of the mobile phone, and start collecting logs.

步骤S202,获取智能手机当前的系统功耗信息。Step S202, acquiring current system power consumption information of the smart phone.

比如,在一段预设时间段内获取终端消耗的功率值,即为该终端在这段时间内的功耗值或者手机电池的电量消耗值,其中,上述预设时间段可以根据用户需求自行设定,比如设置为1min、2min或是3min等等。For example, obtaining the power consumption value of the terminal within a preset period of time is the power consumption value of the terminal or the power consumption value of the battery of the mobile phone during this period, wherein the preset time period can be set according to user needs. For example, set it to 1min, 2min or 3min, etc.

步骤S203,智能手机判断上述系统功耗是否大于预设值,若是,则执行步骤S204,若否,则返回步骤S202。In step S203, the smart phone judges whether the power consumption of the above system is greater than a preset value, if yes, execute step S204, if not, return to step S202.

本发明实施例中,上述预设值为终端的功耗异常的临界值,可以由用户根据实际情况自行设定,也可以由终端根据历史使用情况计算生成,比如上述系统功耗信息为1min之内消耗手机电池电量的10mAh,预设值可以为20mAh,此时手机判断系统功耗不大于预设值,则返回步骤S202继续获取手机当前的功耗信息;若上述系统功耗信息为1min之内消耗手机电池电量的30mAh,则判断大于预设值,也即确定手机的系统功耗出现异常,将进一步执行步骤S204。In the embodiment of the present invention, the above-mentioned preset value is the critical value of the abnormal power consumption of the terminal, which can be set by the user according to the actual situation, or can be calculated and generated by the terminal according to the historical usage conditions. For example, the above-mentioned system power consumption information is within 1 minute. The internal consumption of 10mAh of the battery power of the mobile phone, the preset value can be 20mAh, at this time the mobile phone judges that the system power consumption is not greater than the preset value, then return to step S202 to continue to obtain the current power consumption information of the mobile phone; if the above system power consumption information is within 1min If it is determined that the battery power consumption of the mobile phone is 30mAh, it is greater than the preset value, that is, it is determined that the system power consumption of the mobile phone is abnormal, and step S204 will be further executed.

步骤S204,智能手机对kernel的log进行解析,以得到手机系统被唤醒的时间点。In step S204, the smart phone analyzes the log of the kernel to obtain the time point when the mobile phone system is woken up.

具体的,手机对kernel的log进行解析后,可以查找到手机系统的睡眠和唤醒的两个状态关键字:PM:enter和PM:exit,分别代表手机系统的睡眠状态和唤醒状态,当手机系统在睡眠状态下被唤醒时,PM就会由enter切换至exit,因此确定当PM状态由enter切换至exit时的时间点,该时间点也即手机系统被唤醒的时间点,其中,该时间点可以为一个也可以为多个。Specifically, after the mobile phone analyzes the kernel log, it can find two state keywords of the mobile phone system sleep and wake-up: PM: enter and PM: exit, which represent the sleep state and wake-up state of the mobile phone system respectively. When the mobile phone system When awakened in the sleep state, the PM will switch from enter to exit, so determine the time point when the PM state is switched from enter to exit, which is also the time point when the mobile phone system is woken up, where the time point Can be one or more.

步骤S205,智能手机对android的log进行解析,确定在上述时间点手机中运行的应用程序。In step S205, the smart phone analyzes the android log to determine the application running on the phone at the above time point.

具体的,首先将kernel的log的时间与android的log的时间关联起来,根据kernel的log的上述时间点确定android的log中同一时间点,查找在该时间点手机系统中正在运行的应用程序。Specifically, at first the time of the log of the kernel is associated with the time of the android log, and the same time point in the log of the android is determined according to the above-mentioned time point of the log of the kernel, and the application program running in the mobile phone system at this time point is searched.

步骤S206,从上述应用程序当中确定满足预设条件的应用程序。Step S206, determining an application program satisfying a preset condition from among the above application programs.

在本发明实施例当中,上述预设条件可以为能够唤醒手机系统的一些条件,比如应用程序持有唤醒锁以唤醒手机系统,或者应用程序设置了闹钟函数alarm,该闹钟函数alarm可以在进程中设置定时器,当定时器指定的时间到时,向进程发送信号从而唤醒手机系统,确定满足上述条件的应用程序为目标应用程序。In the embodiment of the present invention, the above-mentioned preset conditions can be some conditions that can wake up the mobile phone system, for example, the application program holds a wake lock to wake up the mobile phone system, or the application program sets the alarm clock function alarm, and the alarm clock function alarm can be activated during the process. Set the timer, when the time specified by the timer expires, send a signal to the process to wake up the mobile phone system, and determine the application that meets the above conditions as the target application.

由上可知,本发明实施例首先在智能手机的kernel和android中添加log,获取智能手机当前的系统功耗信息,判断上述系统功耗是否大于预设值,若是,则对kernel的log进行解析,以得到手机系统被唤醒的时间点,然后对android的log进行解析,确定在上述时间点手机中运行的应用程序,从上述应用程序当中确定满足预设条件的应用程序:本方法可以在手机功耗出现异常时确定候选应用程序,并在这些候选应用程序中确定唤醒手机导致功耗异常的目标应用程序,本方案能够确定手机中是什么应用程序导致手机被频繁唤醒,进而可以有针对性的对系统和应用程序进行优化,节省终端电量、提高用户体验。As can be seen from the above, the embodiment of the present invention first adds logs to the kernel and android of the smart phone, obtains the current system power consumption information of the smart phone, and judges whether the above-mentioned system power consumption is greater than a preset value, and if so, parses the log of the kernel , to get the time point when the mobile phone system is woken up, and then analyze the android log to determine the application programs running in the mobile phone at the above time point, and determine the application programs that meet the preset conditions from the above application programs: this method can be used on the mobile phone Identify candidate applications when power consumption is abnormal, and determine the target application that wakes up the mobile phone and cause abnormal power consumption among these candidate applications. This solution can determine what application in the mobile phone causes the mobile phone to be frequently awakened, and then can be targeted Optimize the system and application programs, save terminal power and improve user experience.

实施例三、Embodiment three,

为了更好地实施以上方法,本发明实施例将在上述方法基础上提供一种应用程序查找装置,该应用程序查找装置可以集成在终端中,终端可以为移动互联网设备(如智能手机、平板电脑)、智能穿戴设备(如智能手表)等各类电子设备。In order to better implement the above method, the embodiment of the present invention will provide an application program search device based on the above method, the application program search device can be integrated in a terminal, and the terminal can be a mobile Internet device (such as a smart phone, a tablet computer ), smart wearable devices (such as smart watches) and other electronic devices.

请参阅图3,图3为本发明实施例三提供的一种应用程序查找装置的结构示意图,包括:判断模块301、时间获取模块302、候选应用确定模块303以及目标应用确定模块304;Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of an application search device provided in Embodiment 3 of the present invention, including: a judgment module 301 , a time acquisition module 302 , a candidate application determination module 303 and a target application determination module 304 ;

该判断模块301,用于判断终端当前的系统功耗是否出现异常;The judging module 301 is used to judge whether the current system power consumption of the terminal is abnormal;

该时间获取模块302,用于当判断模块301判断为是时,获取终端系统的历史唤醒时间信息;The time acquiring module 302 is configured to acquire historical wake-up time information of the terminal system when the judging module 301 judges yes;

该候选应用确定模块303,用于根据历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,历史运行信息集合包括应用程序的历史运行时间信息;The candidate application determining module 303 is configured to determine a corresponding candidate application program according to the historical wake-up time information and the historical running information set to obtain the candidate application program set, and the historical running information set includes historical running time information of the application program;

该目标应用确定模块304,用于从候选应用程序集合中确定满足预设应用异常条件的目标应用程序。The target application determining module 304 is configured to determine a target application satisfying preset application exception conditions from the set of candidate applications.

优选的,如图4所示,在本发明实施例提供的应用程序查找装置中,时间获取模块302具体包括:状态获取子模块3021和时间获取子模块3022;Preferably, as shown in FIG. 4, in the application search device provided in the embodiment of the present invention, the time acquisition module 302 specifically includes: a state acquisition submodule 3021 and a time acquisition submodule 3022;

该状态获取子模块3021,用于获取终端系统的历史状态信息,其中,历史状态信息包括睡眠状态和唤醒状态;The state acquisition sub-module 3021 is used to acquire historical state information of the terminal system, wherein the historical state information includes a sleep state and a wake-up state;

该时间获取子模块3022,用于当终端系统由睡眠状态切换为唤醒状态时,获取终端对应的时间信息并确定为历史唤醒时间信息。The time acquisition sub-module 3022 is configured to acquire time information corresponding to the terminal and determine it as historical wake-up time information when the terminal system switches from the sleep state to the wake-up state.

判断模块301具体包括:功耗获取子模块3011、判断子模块3012以及确定子模块3013;The judging module 301 specifically includes: a power consumption acquiring submodule 3011, a judging submodule 3012, and a determining submodule 3013;

该功耗获取子模块3011,用于获取在预设时间段内终端的功耗值;The power consumption acquisition sub-module 3011 is used to acquire the power consumption value of the terminal within a preset time period;

该判断子模块3012,用于判断功耗值是否大于预设阈值;The judging sub-module 3012 is used to judge whether the power consumption value is greater than a preset threshold;

该确定子模块3013,用于当判断子模块3012判断为是时,确定终端当前的系统功耗出现异常。The determination sub-module 3013 is configured to determine that the current system power consumption of the terminal is abnormal when the determination sub-module 3012 determines yes.

在本发明实施例当中,上述候选应用确定模块303,具体用于根据历史唤醒时间信息在历史运行信息集合当中查找终端系统中正在运行的应用程序,确定该应用程序为候选应用程序。In the embodiment of the present invention, the above-mentioned candidate application determination module 303 is specifically configured to search for an application program running in the terminal system in the historical operation information set according to the historical wake-up time information, and determine the application program as a candidate application program.

进一步的,本发明实施例中的装置还可以包括:第一收集模块和第二收集模块;Further, the device in the embodiment of the present invention may further include: a first collection module and a second collection module;

该第一收集模块,用于在判断模块301判断终端当前的系统功耗是否出现异常之前,通过终端的内核驱动层中的信息收集机制收集终端系统被唤醒的唤醒信息,以得到历史唤醒信息集合;The first collection module is used to collect the wake-up information of the terminal system through the information collection mechanism in the kernel driver layer of the terminal before the judging module 301 judges whether the current system power consumption of the terminal is abnormal, so as to obtain a set of historical wake-up information ;

该第二收集模块,用于在判断模块301判断终端当前的系统功耗是否出现异常之前,通过终端的系统上层应用层中的历史运行信息收集机制收集应用程序的运行信息,以得到历史运行信息集合。The second collection module is used to collect the running information of the application program through the historical running information collection mechanism in the upper application layer of the system of the terminal before the judging module 301 judges whether the current system power consumption of the terminal is abnormal, so as to obtain the historical running information gather.

时间模块302具体用于:从历史唤醒信息集合中获取历史唤醒时间信息。The time module 302 is specifically configured to: acquire historical wake-up time information from a set of historical wake-up information.

由上可知,本发明实施例首先由判断模块301判断终端当前的系统功耗是否出现异常,若是,则由时间获取模块302获取终端系统的历史唤醒时间信息,候选应用确定模块303根据历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,历史运行信息集合包括应用程序的历史运行时间信息,目标应用确定模块304从候选应用程序集合中确定满足预设应用异常条件的目标应用程序;本方法可以在终端功耗出现异常时确定候选应用程序,并在这些候选应用程序中确定唤醒终端导致功耗异常的目标应用程序,本方案能够确定终端中是什么应用程序导致手机被频繁唤醒,进而可以有针对性的对系统和应用程序进行优化,节省终端电量、提高用户体验。As can be seen from the above, in the embodiment of the present invention, the judging module 301 first judges whether the current system power consumption of the terminal is abnormal, and if so, the time obtaining module 302 obtains the historical wake-up time information of the terminal system, and the candidate application determining module 303 uses the historical wake-up time The information and the historical running information set determine the corresponding candidate application program to obtain the candidate application program set, the historical running information set includes the historical running time information of the application program, and the target application determining module 304 determines from the candidate application program set that meets the preset application exception The target application program of the condition; this method can determine the candidate application program when the terminal power consumption is abnormal, and determine the target application program that wakes up the terminal and causes the abnormal power consumption among these candidate application programs. This solution can determine what application program is in the terminal As a result, the mobile phone is frequently woken up, and then the system and application programs can be optimized in a targeted manner, saving terminal power and improving user experience.

具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities. For the specific implementation of each of the above modules, please refer to the previous method embodiments, which will not be repeated here.

需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read OnlyMemory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as It is stored in the memory of the terminal and executed by at least one processor in the terminal, and the execution process may include the flow of the embodiment of the information publishing method. Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

以上对本发明实施例提供的一种应用程序查找方法和装置进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method and device for searching an application program provided by the embodiments of the present invention have been described in detail above. Its functional modules can be integrated into one processing chip, or each module can exist separately physically, or it can be two or more than two modules. integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; meanwhile, for those skilled in the art, according to the present invention Thoughts, specific implementation methods and scope of application all have changes. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

Translated fromChinese
1.一种应用程序查找方法,其特征在于,包括以下步骤:1. A method for searching an application program, comprising the following steps:判断终端当前的系统功耗是否出现异常;Determine whether the current system power consumption of the terminal is abnormal;若是,则获取所述终端系统的历史唤醒时间信息;If so, then acquire the historical wake-up time information of the terminal system;根据所述历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,所述历史运行信息集合包括应用程序的历史运行时间信息;Determine the corresponding candidate application program according to the historical wake-up time information and the historical running information set to obtain the candidate application program set, the historical running information set includes the historical running time information of the application program;从所述候选应用程序集合中确定满足预设应用异常条件的目标应用程序。A target application meeting a preset application exception condition is determined from the candidate application set.2.如权利要求1所述的应用程序查找方法,其特征在于,所述获取所述终端系统的历史唤醒时间信息的步骤具体包括:2. The application program search method according to claim 1, wherein the step of acquiring the historical wake-up time information of the terminal system specifically comprises:获取所述终端系统的历史状态信息,其中,所述历史状态信息包括睡眠状态和唤醒状态;Acquiring historical state information of the terminal system, wherein the historical state information includes a sleep state and a wake-up state;当所述终端系统由睡眠状态切换为唤醒状态时,获取所述终端对应的时间信息并确定为所述历史唤醒时间信息。When the terminal system switches from the sleep state to the wake-up state, the time information corresponding to the terminal is acquired and determined as the historical wake-up time information.3.如权利要求1所述的应用程序查找方法,其特征在于,所述根据所述历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序的步骤具体包括:3. The application search method according to claim 1, wherein the step of determining a corresponding candidate application according to the historical wake-up time information and historical running information set specifically comprises:根据所述历史唤醒时间信息在所述历史运行信息集合当中查找所述终端系统中正在运行的应用程序;Searching for an application that is running in the terminal system in the set of historical running information according to the historical wake-up time information;确定所述应用程序为候选应用程序。The application is determined to be a candidate application.4.如权利要求1所述的应用程序查找方法,其特征在于,所述判断终端当前的系统功耗是否出现异常的步骤具体包括:4. The application program search method according to claim 1, wherein the step of judging whether the current system power consumption of the terminal is abnormal specifically comprises:获取在预设时间段内所述终端的功耗值;Acquiring the power consumption value of the terminal within a preset time period;判断所述功耗值是否大于预设阈值;judging whether the power consumption value is greater than a preset threshold;若是,则确定所述终端当前的系统功耗出现异常。If yes, it is determined that the current system power consumption of the terminal is abnormal.5.如权利要求1所述的应用程序查找方法,其特征在于,在所述判断终端当前的系统功耗是否出现异常之前,所述方法还包括:5. The application program search method according to claim 1, characterized in that, before the determination of whether the current system power consumption of the terminal is abnormal, the method further comprises:通过所述终端的内核驱动层中的信息收集机制收集终端系统被唤醒的唤醒信息,以得到历史唤醒信息集合;Collecting the wake-up information of the terminal system being woken up through the information collection mechanism in the kernel driver layer of the terminal to obtain a set of historical wake-up information;所述获取所述终端系统的历史唤醒时间信息的步骤具体包括:The step of acquiring the historical wake-up time information of the terminal system specifically includes:从所述历史唤醒信息集合中获取历史唤醒时间信息。Obtain historical wake-up time information from the historical wake-up information set.6.如权利要求1所述的应用程序查找方法,其特征在于,在所述判断终端当前的系统功耗是否出现异常之前,所述方法还包括:6. The application program search method according to claim 1, characterized in that, before the determination of whether the current system power consumption of the terminal is abnormal, the method further comprises:通过所述终端的系统上层应用层中的历史运行信息收集机制收集应用程序的运行信息,以得到所述历史运行信息集合。The running information of the application program is collected through the historical running information collection mechanism in the upper application layer of the system of the terminal, so as to obtain the set of historical running information.7.一种应用程序查找装置,其特征在于,包括:判断模块、时间获取模块、候选应用确定模块以及目标应用确定模块;7. An application searching device, comprising: a judgment module, a time acquisition module, a candidate application determination module, and a target application determination module;所述判断模块,用于判断终端当前的系统功耗是否出现异常;The judging module is used to judge whether the current system power consumption of the terminal is abnormal;所述时间获取模块,用于当所述判断模块判断为是时,获取所述终端系统的历史唤醒时间信息;The time acquiring module is configured to acquire historical wake-up time information of the terminal system when the judging module judges yes;所述候选应用确定模块,用于根据所述历史唤醒时间信息和历史运行信息集合确定相应的候选应用程序,以得到候选应用程序集合,所述历史运行信息集合包括应用程序的历史运行时间信息;The candidate application determining module is configured to determine a corresponding candidate application program according to the historical wake-up time information and the historical running information set to obtain a candidate application program set, and the historical running information set includes historical running time information of the application program;所述目标应用确定模块,用于从所述候选应用程序集合中确定满足预设应用异常条件的目标应用程序。The target application determining module is configured to determine a target application meeting a preset application exception condition from the set of candidate applications.8.如权利要求7所述的应用程序查找装置,其特征在于,所述时间获取模块具体包括:状态获取子模块和时间获取子模块;8. The application search device according to claim 7, wherein the time acquisition module specifically comprises: a state acquisition submodule and a time acquisition submodule;所述状态获取子模块,用于获取所述终端系统的历史状态信息,其中,所述历史状态信息包括睡眠状态和唤醒状态;The state acquiring submodule is configured to acquire historical state information of the terminal system, wherein the historical state information includes a sleep state and a wake-up state;所述时间获取子模块,用于当所述终端系统由睡眠状态切换为唤醒状态时,获取所述终端对应的时间信息并确定为所述历史唤醒时间信息。The time obtaining sub-module is configured to obtain time information corresponding to the terminal and determine it as the historical wake-up time information when the terminal system switches from the sleep state to the wake-up state.9.如权利要求7所述的应用程序查找装置,其特征在于,9. The application search device according to claim 7, wherein:所述候选应用确定模块,具体用于根据所述历史唤醒时间信息在所述历史运行信息集合当中查找所述终端系统中正在运行的应用程序,确定所述应用程序为候选应用程序。The candidate application determining module is specifically configured to search for an application program running in the terminal system in the historical running information set according to the historical wake-up time information, and determine the application program as a candidate application program.10.如权利要求7所述的应用程序查找装置,其特征在于,所述判断模块具体包括:功耗获取子模块、判断子模块以及确定子模块;10. The application searching device according to claim 7, wherein the judging module specifically comprises: a power consumption acquiring submodule, a judging submodule, and a determining submodule;所述功耗获取子模块,用于获取在预设时间段内所述终端的功耗值;The power consumption acquisition submodule is used to acquire the power consumption value of the terminal within a preset time period;所述判断子模块,用于判断所述功耗值是否大于预设阈值;The judging submodule is used to judge whether the power consumption value is greater than a preset threshold;所述确定子模块,用于当所述判断子模块判断为是时,确定所述终端当前的系统功耗出现异常。The determination submodule is configured to determine that the current system power consumption of the terminal is abnormal when the determination submodule determines yes.
CN201610459897.3A2016-06-212016-06-21 A method and device for searching an application programPendingCN106095645A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610459897.3ACN106095645A (en)2016-06-212016-06-21 A method and device for searching an application program

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610459897.3ACN106095645A (en)2016-06-212016-06-21 A method and device for searching an application program

Publications (1)

Publication NumberPublication Date
CN106095645Atrue CN106095645A (en)2016-11-09

Family

ID=57252284

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610459897.3APendingCN106095645A (en)2016-06-212016-06-21 A method and device for searching an application program

Country Status (1)

CountryLink
CN (1)CN106095645A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108563319A (en)*2018-04-022018-09-21Oppo广东移动通信有限公司Information processing method, device, mobile terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103324519A (en)*2013-06-172013-09-25华为技术有限公司Method and device for clearing malicious power consumption applications, and user terminal
US20140109047A1 (en)*2011-11-282014-04-17Huizhou Tcl Mobile Communication Co., Ltd.Mobile Phone Based Software Processing Method and Mobile Phone
CN104023147A (en)*2014-06-272014-09-03广东欧珀移动通信有限公司Method and system for facilitating stable dormancy of mobile terminal
CN105677386A (en)*2015-12-292016-06-15北京金山安全软件有限公司Application program management method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20140109047A1 (en)*2011-11-282014-04-17Huizhou Tcl Mobile Communication Co., Ltd.Mobile Phone Based Software Processing Method and Mobile Phone
CN103324519A (en)*2013-06-172013-09-25华为技术有限公司Method and device for clearing malicious power consumption applications, and user terminal
CN104023147A (en)*2014-06-272014-09-03广东欧珀移动通信有限公司Method and system for facilitating stable dormancy of mobile terminal
CN105677386A (en)*2015-12-292016-06-15北京金山安全软件有限公司Application program management method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108563319A (en)*2018-04-022018-09-21Oppo广东移动通信有限公司Information processing method, device, mobile terminal and computer readable storage medium

Similar Documents

PublicationPublication DateTitle
US10394655B2 (en)Method for detecting abnormal application and mobile terminal
EP3502880A1 (en)Method for preloading application, storage medium, and terminal device
EP3502881B1 (en)Method for preloading application, storage medium, and terminal device
EP3502878B1 (en)Method for preloading application and terminal device
KR101641174B1 (en)Method for enabling shutdown alarm clock and mobile terminal, and program, and recording medium for enabling shutdown alarm clock
CN105740690A (en)Unlocking method and mobile terminal
CN104572186A (en)Method for executing operation instruction
CN105739847A (en)Intelligent electronic device and system and method for awakening screen of intelligent electronic device
CN104808767A (en)Terminal control method
CN106020426B (en)Method and device for releasing wake-up lock
CN104572187A (en)Terminal
CN109933419B (en)Control method and device
CN106445715B (en)Method and device for reporting pedometer message
CN105893221A (en)Terminal operation time length alarming method and device
CN106095645A (en) A method and device for searching an application program
CN104461596A (en)Shut-down method and device for mobile terminal
CN104052861A (en)Terminal and wake-up method thereof
CN106125889A (en) A wake-up source processing method and device
CN108711427A (en)The acquisition method and device of voice messaging
CN107547742B (en)Wake-up lock release method and device for mobile terminal
US7599809B2 (en)Processor capable of alerting its life expectancy and method thereof
CN106648916A (en)Pedometer message reporting method and apparatus
US20160147630A1 (en)Method and system of detecting abnormal power consumption
CN106055365A (en)Method and device for closing application program
CN114548028B (en)Method for performing low-power design, electronic device and storage medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20161109

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp