CN103402027B - Mobile terminal and method for putting same into sleeping state - Google Patents
Mobile terminal and method for putting same into sleeping state Download PDFInfo
- Publication number
- CN103402027B CN103402027B CN201310323281.XA CN201310323281A CN103402027B CN 103402027 B CN103402027 B CN 103402027B CN 201310323281 A CN201310323281 A CN 201310323281A CN 103402027 B CN103402027 B CN 103402027B
- Authority
- CN
- China
- Prior art keywords
- wake
- lock
- module
- wake lock
- mobile terminal
- 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.)
- Active
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明涉及移动通信领域,更具体地说,涉及一种移动终端和使移动终端进入睡眠状态的方法。The present invention relates to the field of mobile communication, more specifically, to a mobile terminal and a method for making the mobile terminal enter a sleep state.
背景技术Background technique
智能手机通常耗电较快,使智能手机在不需要使用时尽快进入睡眠状态是主要的省电方法之一。但是现在的智能手机经常会安装许多第三方软件,这些第三方软件为了维持自身数据的刷新,或出于其它的不友好目的,经常频繁设置各种定时器,定时唤醒手机,并刷新数据,以及做各种各样的后台处理;同时各个应用程序为了处理各自的需求,会强制要求系统处理完它们的请求后才允许系统进入睡眠状态。由于不同的应用程序质量良莠不齐,特别是一些恶意第三方软件经常导致安卓系统无法睡眠,导致手机CPU一直处于运行状态,无法进入睡眠,从而导致电池电量消耗得很快。Smartphones typically drain power quickly, and putting a smartphone to sleep as quickly as possible when not in use is one of the main ways to save power. However, many third-party software are often installed on smartphones nowadays. These third-party software often frequently set various timers to wake up the phone regularly and refresh the data in order to maintain the refresh of its own data or for other unfriendly purposes. Do all kinds of background processing; at the same time, in order to handle their own needs, each application will force the system to process their requests before allowing the system to enter the sleep state. Due to the uneven quality of different applications, especially some malicious third-party software often causes the Android system to fail to sleep, causing the mobile phone CPU to be in a running state all the time and unable to enter sleep, resulting in the rapid consumption of battery power.
发明内容Contents of the invention
本发明要解决的技术问题在于,针对现有技术的不足,设计出一种移动终端和使移动终端进入睡眠状态的方法,阻止第三方软件恶意运行系统的唤醒锁,从而使系统及时进入睡眠状态,达到良好的省电效果。The technical problem to be solved by the present invention is to design a mobile terminal and a method for making the mobile terminal enter the sleep state in view of the deficiencies in the prior art, so as to prevent third-party software from maliciously running the wake lock of the system, so that the system can enter the sleep state in time , to achieve a good power saving effect.
本发明解决其技术问题所采用的技术方案是:构造一种移动终端,包括电源管理系统,还包括与所述电源管理系统相连的唤醒锁释放系统。The technical solution adopted by the present invention to solve the technical problem is to construct a mobile terminal, including a power management system, and a wake-up lock release system connected to the power management system.
优选地,本发明的唤醒锁释放系统包括:Preferably, the wake lock release system of the present invention includes:
时间设置模块,用于设置所述移动终端的各应用程序申请的唤醒锁的法定工作时间长度与用于检测是否有唤醒锁处于工作状态的时间周期;The time setting module is used to set the legal working time length of the wake lock applied by each application program of the mobile terminal and the time period for detecting whether the wake lock is in the working state;
时间记录模块,用于记录应用程序申请的唤醒锁开始工作的时间点;The time recording module is used to record the time point when the wake lock applied by the application program starts to work;
名单设置模块,用于设置应用程序白名单;The list setting module is used to set the application program white list;
操作界面模块,用于为用户提供自主设置操作选项;The operation interface module is used to provide users with independent setting operation options;
检测模块,用于根据所述时间周期定期地检测是否有唤醒锁处于工作状态;A detection module, configured to periodically detect whether a wake lock is in a working state according to the time period;
判断模块,用于根据应用程序是否处于白名单上、应用程序运行唤醒锁的时间长度是否超过其法定工作时间长度和咨询确认机制判断是否应该释放唤醒锁;The judging module is used to judge whether the wake lock should be released according to whether the application program is on the white list, whether the time length of the application program running the wake lock exceeds its statutory working time length, and the consultation confirmation mechanism;
唤醒锁释放模块,用于在所述判断模块判断应该释放唤醒锁时释放唤醒锁。A wake lock release module, configured to release the wake lock when the judging module judges that the wake lock should be released.
优选地,所述时间周期长度为5分钟至10分钟。Preferably, the length of the time period is 5 minutes to 10 minutes.
优选地,所述名单设置模块包括白名单列表,所述白名单列表记录了不进行强制释放唤醒锁的应用程序的名单。Preferably, the list setting module includes a white list, and the white list records a list of applications that do not perform forced release of the wake lock.
优选地,所述判断模块包括白名单模糊匹配引擎,用于判断所述检测模块检测到的处于工作状态的唤醒锁对应的应用程序是否在所述应用程序白名单上,所述白名单模糊匹配引擎将所述检测模块检测到的处于工作状态的唤醒锁对应的应用程序与所述白名单列表中记录的应用程序名单进行模糊匹配,若匹配成功,则将所述应用程序加入所述白名单列表,并认为所述唤醒锁对应的应用程序在所述应用程序白名单上,若匹配失败,则认为所述唤醒锁对应的应用程序不在所述应用程序白名单上。Preferably, the judging module includes a whitelist fuzzy matching engine, configured to judge whether the application corresponding to the wakelock detected by the detection module in the working state is on the application whitelist, and the whitelist fuzzy matching The engine fuzzily matches the application program corresponding to the wake lock in the working state detected by the detection module with the application program list recorded in the whitelist list, and if the match is successful, the application program is added to the whitelist list, and consider that the application corresponding to the wakelock is on the application whitelist, and if the matching fails, consider that the application corresponding to the wakelock is not on the application whitelist.
优选地,所述判断模块还包括咨询确认子模块,用于咨询确认运行唤醒锁的应用程序是否需要继续运行该唤醒锁;Preferably, the judging module further includes a consultation and confirmation submodule, which is used to consult and confirm whether the application running the wakelock needs to continue running the wakelock;
优选地,所述时间设置模块还用于设置所述咨询确认子模块的程序应答指定时间。Preferably, the time setting module is also used to set the specified time for the program response of the consultation confirmation sub-module.
优选地,所述程序应答指定时间为自咨询确认模块启动后1秒钟至1分钟之间的时间段。Preferably, the designated time for the program response is a period of time between 1 second and 1 minute after the start of the consultation confirmation module.
优选地,所述操作界面模块包括唤醒锁法定时长设置子模块,用于提供所述移动终端的各应用程序申请的唤醒锁的法定工作时间长度的设定选项;唤醒锁检测周期设置子模块,用于提供用于检测是否有唤醒锁处于工作状态的时间周期的设定选项;白名单设置子模块,用于提供应用程序白名单的设定选项;应答时间设置子模块,用于提供所述咨询确认子模块的程序应答指定时间的设定选项。Preferably, the operation interface module includes a wake lock legal duration setting submodule, which is used to provide setting options for the legal working time length of the wake lock applied by each application program of the mobile terminal; the wake lock detection cycle setting submodule, It is used to provide setting options for detecting whether a wake lock is in the working state of the time period; the whitelist setting submodule is used to provide setting options for the application whitelist; the response time setting submodule is used to provide the described Consult and confirm the setting option of the program response designation time of the sub-module.
优选地,本发明的使移动终端进入睡眠状态的方法包括以下步骤:Preferably, the method for making the mobile terminal enter the sleep state of the present invention includes the following steps:
在所述移动终端中,设置移动终端各应用程序申请的唤醒锁的法定工作时间长度、系统检测唤醒锁的时间周期、咨询确认模块程序应答指定时间;In the mobile terminal, set the legal working time length of the wake-up lock applied by each application program of the mobile terminal, the time period for the system to detect the wake-up lock, and the specified time for consulting and confirming module program response;
设置应用程序白名单;Set application whitelist;
记录应用程序申请的唤醒锁开始工作的时间点;Record the time when the wake lock applied by the application starts working;
根据所述系统检测唤醒锁的时间周期定期地检测是否有唤醒锁处于工作状态;Periodically detect whether a wake lock is in a working state according to the time period during which the system detects the wake lock;
在检测到有唤醒锁处于工作状态时,判断所述处于工作状态的唤醒锁对应的应用程序是否在所述应用程序白名单上;When it is detected that a wake lock is in the working state, it is determined whether the application corresponding to the wake lock in the working state is on the application whitelist;
若所述唤醒锁对应的应用程序不在所述应用程序白名单上,则判断所述唤醒锁的工作时间是否超过该唤醒锁的法定工作时间长度;If the application program corresponding to the wake lock is not on the application white list, then determine whether the working time of the wake lock exceeds the legal working time length of the wake lock;
若所述唤醒锁的工作时间超过了该唤醒锁的的法定工作时间长度,则启动咨询确认机制,询问该应用程序是否还需要运行该唤醒锁,若询问结果为该应用程序不需要继续运行该唤醒锁,或该应用程序在指定时间内未作出明确答复,则启动唤醒锁释放模块,释放该唤醒锁。If the working time of the wake-up lock exceeds the legal working time of the wake-up lock, a consultation confirmation mechanism is started to ask whether the application program still needs to run the wake-up lock, and if the result of the inquiry is that the application program does not need to continue running the wake-up lock wake lock, or the application program does not make a clear reply within the specified time, then start the wake lock release module to release the wake lock.
本发明的移动终端和使移动终端进入睡眠状态的方法,可对运行唤醒锁的应用程序进行判断,对一些第三方软件设置唤醒锁运行法定时长,当检测到这些程序申请的唤醒锁运行的时间超出法定时长时,自动释放唤醒锁,实现阻止第三方软件恶意运行系统的唤醒锁,从而使系统及时进入睡眠状态,达到良好的省电效果。The mobile terminal of the present invention and the method for making the mobile terminal enter the sleep state can judge the application program running the wake lock, and set the legal duration of the wake lock operation for some third-party software. When the wake lock operation time applied by these programs is detected When the legal time is exceeded, the wake-up lock is automatically released to prevent third-party software from maliciously running the system, so that the system can enter the sleep state in time to achieve a good power-saving effect.
附图说明Description of drawings
图1是本发明较佳实施例的移动终端的总体结构图。FIG. 1 is an overall structural diagram of a mobile terminal in a preferred embodiment of the present invention.
图2是本发明较佳实施例的唤醒锁释放系统的功能模块图。Fig. 2 is a functional block diagram of a wake lock release system in a preferred embodiment of the present invention.
图3是本发明较佳实施例的使移动终端进入睡眠状态的方法的流程图。Fig. 3 is a flowchart of a method for putting a mobile terminal into a sleep state according to a preferred embodiment of the present invention.
具体实施方式detailed description
下面结合附图及实施例对本发明作进一步说明:Below in conjunction with accompanying drawing and embodiment the present invention will be further described:
如图1所示,为本发明较佳实施例的移动终端的总体结构图。As shown in FIG. 1 , it is an overall structural diagram of a mobile terminal in a preferred embodiment of the present invention.
本发明较佳实施例的移动终端包括:安卓电源管理系统1,唤醒锁释放系统2,安卓电源管理系统1与唤醒锁释放系统2相连。The mobile terminal in a preferred embodiment of the present invention includes: an Android power management system 1, a wake lock release system 2, and the Android power management system 1 is connected to the wake lock release system 2.
如图2所示,为本发明较佳实施例的唤醒锁释放系统的功能模块图。As shown in FIG. 2 , it is a functional block diagram of a wakelock release system in a preferred embodiment of the present invention.
本发明较佳实施例的唤醒锁释放系统2的功能模块图包括:The functional block diagram of the wake lock release system 2 of the preferred embodiment of the present invention includes:
时间设置模块21,用于设置移动终端的各应用程序申请的唤醒锁的法定工作时间长度与用于检测是否有唤醒锁处于工作状态的时间周期;还用于设置设置移动终端的咨询确认模块程序应答指定时间。作为优选实施方式,系统可根据实际需要对移动终端各应用程序申请的唤醒锁设置合适的唤醒锁法定工作时间长度,比如可对某个.MP3格式的文件设置略大于其播放时间的法定唤醒锁工作时间长度。作为另一优选实施方式,移动终端检测是否有唤醒锁处于工作状态的时间周期可由系统默认设置,时间周期长度具体可设置为5分钟至10分钟之间的任意时长。作为又一优选实施方式,咨询确认模块程序应答指定时间可由系统默认设置,具体可设置为介于咨询确认机制启动后1秒钟至1分钟之间的时间段。The time setting module 21 is used to set the legal working time length of the wake lock applied by each application program of the mobile terminal and is used to detect whether there is a time period for the wake lock to be in the working state; it is also used to set the consulting confirmation module program of the mobile terminal Respond to the specified time. As a preferred embodiment, the system can set a suitable wake lock legal working time length for the wake lock applied by each application program of the mobile terminal according to actual needs, for example, a certain .MP3 format file can be set with a legal wake lock slightly longer than its playback time Length of working hours. As another preferred embodiment, the time period for the mobile terminal to detect whether there is a wake lock in the working state can be set by default by the system, and the length of the time period can be set to any length between 5 minutes and 10 minutes. As yet another preferred implementation, the designated time for the consultation confirmation module program response can be set by default by the system, specifically, it can be set as a time period between 1 second and 1 minute after the consultation confirmation mechanism is started.
时间记录模块22,用于记录应用程序申请的唤醒锁开始工作的时间点。The time recording module 22 is configured to record the time point when the wake lock applied for by the application starts working.
名单设置模块23,用于设置应用程序白名单;作为优选实施方式,名单设置模块23可包括一个白名单列表(图未示),该白名单列表记录了不需要进行强制释放唤醒锁的应用程序的名单;该白名单列表可由系统默认设置,其包括如系统级别应用程序等不适合进行强制释放唤醒锁的应用程序。The list setting module 23 is used to set the application program white list; as a preferred embodiment, the list setting module 23 may include a white list list (not shown), which records the application programs that do not need to perform forced release of the wake lock The list; the white list can be set by default by the system, and it includes applications such as system-level applications that are not suitable for forcibly releasing the wake lock.
操作界面模块24,用于为用户提供自主设置操作选项;作为优选实施方式,可包括应用程序唤醒锁法定工作时间长度设置子模块、唤醒锁检测时间周期设置子模块、白名单设置子模块、咨询确认模块程序应答指定时间设置子模块。各子模块均提供用户选项,供用户根据需要自主设置。The operation interface module 24 is used to provide users with independent setting operation options; as a preferred embodiment, it can include application program wake lock legal working time length setting sub-module, wake lock detection time period setting sub-module, white list setting sub-module, consultation The confirmation module program responds to the specified time setting sub-module. Each sub-module provides user options for users to set independently according to their needs.
检测模块25,用于根据所述检测是否有唤醒锁处于工作状态的时间周期定期地检测是否有唤醒锁处于工作状态。The detection module 25 is configured to periodically detect whether there is a wake lock in the working state according to the time period for detecting whether the wake lock is in the working state.
判断模块26,用于根据应用程序是否处于白名单上、应用程序运行唤醒锁的时间长度是否超过其法定工作时间长度和咨询确认机制判断是否应该释放唤醒锁。The judging module 26 is used to judge whether the wake lock should be released according to whether the application program is on the white list, whether the time length of the application program running the wake lock exceeds its legal working time, and the consultation confirmation mechanism.
作为优选实施方式,判断模块26包括一个白名单模糊匹配引擎(图未示),用于判断检测模块25检测到的处于工作状态的唤醒锁对应的应用程序是否位于所述应用程序白名单上,所述白名单模糊匹配引擎将所述设置记录模块记录的处于工作状态的唤醒锁对应的应用程序与所述白名单列表中记录的应用程序名单进行模糊匹配,若匹配成功,则将所述应用程序加入所述白名单列表,并认为所述唤醒锁对应的应用程序在所述应用程序白名单上,若匹配失败,则认为所述唤醒锁对应的应用程序不在所述应用程序白名单上。若所述匹配结果显示所述唤醒锁对应的应用程序不在所述应用程序白名单上,则判断所述唤醒锁的工作时间长度是否超过该唤醒锁的所述法定工作时间长度,若所述唤醒锁的工作时间长度超过了该唤醒锁的法定工作时间长度,则启动咨询确认机制,询问该应用程序是否还需要运行该唤醒锁,若询问结果为该应用程序不需要继续运行该唤醒锁,或该应用程序在指定时间内未作出明确答复,则启动唤醒锁释放模块。As a preferred embodiment, the judging module 26 includes a whitelist fuzzy matching engine (not shown in the figure), which is used to judge whether the application corresponding to the wakelock in the working state detected by the detection module 25 is on the application whitelist, The whitelist fuzzy matching engine performs fuzzy matching on the application program corresponding to the wake lock in the working state recorded by the setting recording module and the application program list recorded in the whitelist list, and if the matching is successful, the application program The program adds the whitelist and considers that the application corresponding to the wakelock is on the application whitelist, and if the matching fails, considers that the application corresponding to the wakelock is not on the application whitelist. If the matching result shows that the application corresponding to the wake lock is not on the application whitelist, it is judged whether the working time of the wake lock exceeds the legal working time of the wake lock, if the wake lock If the working time of the lock exceeds the legal working time of the wake lock, start the consultation and confirmation mechanism to ask whether the application still needs to run the wake lock. If the result of the inquiry is that the application does not need to continue running the wake lock, or If the application program does not make a clear reply within the specified time, the wake lock release module is started.
作为另一优选实施方式,判断模块26还包括咨询确认子模块(图未示),该咨询确认子模块用于咨询确认运行唤醒锁的应用程序是否需要继续运行该唤醒锁;作为优选实施方式,咨询确认模块24可包括一问询器(图未示),系统通过该问询器向运行唤醒锁的应用程序问询是否需要继续运行该唤醒锁。As another preferred implementation, the judging module 26 also includes a consultation and confirmation submodule (not shown in the figure), which is used to consult and confirm whether the application program running the wakelock needs to continue running the wakelock; as a preferred implementation, The consultation confirmation module 24 may include an interrogator (not shown in the figure), through which the system inquires the application running the wakelock whether to continue running the wakelock.
唤醒锁释放模块27,用于在所述判断模块判断应该释放唤醒锁时释放唤醒锁。The wake lock release module 27 is configured to release the wake lock when the judging module judges that the wake lock should be released.
如图3所示,为本发明较佳实施例的使移动终端进入睡眠状态的方法的流程图。As shown in FIG. 3 , it is a flowchart of a method for putting a mobile terminal into a sleep state according to a preferred embodiment of the present invention.
步骤31,使用如图2所示的时间设置模块21设置移动终端各应用程序申请的唤醒锁的法定工作时间长度、系统检测唤醒锁的时间周期、咨询确认模块程序应答指定时间。Step 31, use the time setting module 21 shown in Figure 2 to set the legal working time length of the wake lock applied by each application program of the mobile terminal, the time period for the system to detect the wake lock, and the specified time for the consultation and confirmation module program response.
步骤32,使用如图2所示的名单设置模块23设置应用程序白名单。Step 32, use the list setting module 23 shown in FIG. 2 to set the application program white list.
步骤33,使用如图2所示的时间记录模块22记录应用程序申请的唤醒锁开始工作的时间点。Step 33, using the time recording module 22 shown in FIG. 2 to record the time point when the wake lock applied for by the application starts working.
步骤34,使用如图2所示的检测模块25根据所述时间周期每隔一段时间检测系统中是否有唤醒锁处于工作状态;若未检测到唤醒锁处于工作状态,则结束本次判断,若检测到有唤醒锁处于工作状态,则进入步骤35。Step 34, use the detection module 25 as shown in Figure 2 to detect whether there is a wake-up lock in the working state in the detection system at intervals according to the time period; if it is not detected that the wake-up lock is in the working state, then end this judgment, if If it is detected that a wake lock is in working state, then enter step 35.
步骤35,使用如图2所示的判断模块26判断所述处于工作状态的唤醒锁对应的应用程序是否在所述应用程序白名单上;若所述应用程序在所述应用程序白名单上,则结束本次判断,若所述应用程序不在所述应用程序白名单上,则进入步骤36。Step 35, using the judging module 26 shown in Figure 2 to judge whether the application corresponding to the wake lock in the working state is on the application whitelist; if the application is on the application whitelist, Then end this judgment, if the application program is not on the application program white list, then enter step 36 .
步骤36,使用如图2所示的判断模块26判断所述唤醒锁的工作时间长度是否超过该唤醒锁的所述法定工作时间长度;若未超过,则结束本次判断,若超过了,则进入步骤37。Step 36, use judging module 26 as shown in Figure 2 to judge whether the working time length of described wake-up lock exceeds the described legal working time length of this wake-up lock; If not exceeding, then end this judgment, if exceed, then Go to step 37.
步骤37,使用如图2所示的判断模块26判断所述唤醒锁对应的应用程序是否还需要运行该唤醒锁;若需要,则结束本次判断,若不需要,或在指定时间内该应用程序未作答复,则进入步骤38。Step 37, use the judging module 26 shown in Figure 2 to judge whether the application program corresponding to the wake-up lock needs to run the wake-up lock; if necessary, end this judgment, if not, or within a specified time the application If the program does not reply, then enter step 38.
步骤38,使用如图2所示的唤醒锁释放模块27释放唤醒锁。Step 38, use the wake lock release module 27 shown in FIG. 2 to release the wake lock.
步骤31与步骤32中的各项设置均可由用户通过如图2所示的操作界面模块24根据需要进行自主设置。Various settings in step 31 and step 32 can be independently set by the user through the operation interface module 24 shown in FIG. 2 as required.
步骤35中,如图2所示的判断模块26采用通过所述白名单模糊匹配引擎将所述应用程序与所述白名单列表进行模糊匹配的方式判断所述处于工作状态的唤醒锁对应的应用程序是否在所述应用程序白名单上。In step 35, the judging module 26 shown in FIG. 2 judges the application corresponding to the wake lock in the working state by fuzzy matching the application program with the whitelist list through the whitelist fuzzy matching engine. Whether the program is on the application whitelist.
步骤37中,如图2所示的判断模块26通过咨询确认子模块判断所述唤醒锁对应的应用程序是否还需要运行该唤醒锁,作为优选实施方式,咨询确认子模块可支持系统通过包括回调、查询等跨进程访问的方式进行咨询确认。In step 37, the judging module 26 as shown in Figure 2 judges whether the application program corresponding to the wake-up lock needs to run the wake-up lock through the consultation and confirmation sub-module. As a preferred embodiment, the consultation and confirmation sub-module can support the system , query and other cross-process access methods for consultation and confirmation.
本发明较佳实施例的移动终端和使移动终端进入睡眠状态的方法可以阻止第三方应用软件的由于各种原因导致的唤醒锁无法被主动释放的问题,比如程序异常等,从而避免第三方应用长时间使用唤醒锁导致的终端CPU无法及时进入睡眠状态而引起的耗电问题。具体地,若某些第三方应用程序在关闭后一段时间内仍然未恶意占用唤醒锁而不释放,则通过本发明的判断模块的判断,可作出强制释放唤醒锁的决定,从而启动唤醒锁释放模块释放唤醒锁,使本发明的移动终端及时进入睡眠状态,从而达到省电的目的。The mobile terminal and the method for putting the mobile terminal into a sleep state in the preferred embodiments of the present invention can prevent the third-party application software from the problem that the wake-up lock cannot be actively released due to various reasons, such as program exceptions, etc., thereby avoiding third-party application software. The power consumption problem caused by the long-term use of the wake lock causes the terminal CPU to fail to enter the sleep state in time. Specifically, if some third-party applications still do not maliciously occupy the wake lock within a certain period of time after closing and do not release it, then through the judgment of the judgment module of the present invention, a decision to forcibly release the wake lock can be made, thereby starting the release of the wake lock The module releases the wake-up lock, so that the mobile terminal of the present invention enters the sleep state in time, thereby achieving the purpose of power saving.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310323281.XA CN103402027B (en) | 2013-07-29 | 2013-07-29 | Mobile terminal and method for putting same into sleeping state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310323281.XA CN103402027B (en) | 2013-07-29 | 2013-07-29 | Mobile terminal and method for putting same into sleeping state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103402027A CN103402027A (en) | 2013-11-20 |
CN103402027B true CN103402027B (en) | 2015-03-04 |
Family
ID=49565548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310323281.XA Active CN103402027B (en) | 2013-07-29 | 2013-07-29 | Mobile terminal and method for putting same into sleeping state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103402027B (en) |
Families Citing this family (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9351254B2 (en) | 2014-01-22 | 2016-05-24 | Seven Networks, Llc | Method for power saving in mobile devices by optimizing wakelocks |
US9841802B2 (en) * | 2014-02-20 | 2017-12-12 | Qualcomm Incorporated | Wake lock management through application monitoring |
CN103971050A (en) * | 2014-05-21 | 2014-08-06 | 深圳市中兴移动通信有限公司 | Mobile terminal awakening control method and device and mobile terminal |
CN104020837B (en) * | 2014-06-19 | 2017-02-01 | 珠海全志科技股份有限公司 | audio playing power management method and power management device |
CN104156053B (en) * | 2014-07-29 | 2015-12-30 | 努比亚技术有限公司 | A kind of control method of abnormal power consumption, device and mobile terminal |
CN104486510A (en) * | 2014-12-16 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal |
CN104808767A (en) * | 2015-03-31 | 2015-07-29 | 深圳市金立通信设备有限公司 | Terminal control method |
CN104808766A (en) * | 2015-03-31 | 2015-07-29 | 深圳市金立通信设备有限公司 | Terminal |
CN105183137B (en) * | 2015-09-09 | 2018-06-01 | 厦门美图移动科技有限公司 | A kind of mobile terminal and its wake-up lock control method and control system |
CN105306743A (en) * | 2015-09-30 | 2016-02-03 | 小米科技有限责任公司 | Screen control method and device |
KR102098581B1 (en) | 2015-10-29 | 2020-04-08 | 후아웨이 테크놀러지 컴퍼니 리미티드 | Terminal-based control method, device, and terminal for WAKELOCK |
CN105824392A (en) * | 2015-11-26 | 2016-08-03 | 维沃移动通信有限公司 | Application program management method and terminal |
CN105530377B (en) * | 2015-12-14 | 2019-03-15 | Oppo广东移动通信有限公司 | A wake-up lock processing method, device and system |
CN105867581A (en) * | 2015-12-16 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Power optimization method and device and mobile terminal |
CN105630132A (en) * | 2015-12-23 | 2016-06-01 | 深圳市万普拉斯科技有限公司 | Power consumption control method and system as well as terminal |
CN105807894B (en) * | 2016-03-22 | 2019-06-25 | 北京小米移动软件有限公司 | Using the treating method and apparatus for holding lock |
CN106055077A (en) * | 2016-05-31 | 2016-10-26 | 广东欧珀移动通信有限公司 | A processing method and device based on wake lock |
CN106372543A (en) * | 2016-08-31 | 2017-02-01 | 上海摩软通讯技术有限公司 | Resource control method and device based on mobile terminal |
CN107885308A (en) * | 2016-09-30 | 2018-04-06 | 北京小米移动软件有限公司 | Electricity saving method and device |
CN106502687A (en) * | 2016-10-24 | 2017-03-15 | 深圳市金立通信设备有限公司 | A kind of method and terminal for entering resting state |
CN106569879B (en) * | 2016-10-28 | 2020-02-11 | 青岛海信移动通信技术股份有限公司 | Method for awakening peripheral and mobile terminal |
CN106775685B (en) * | 2016-12-01 | 2020-11-24 | 北京安云世纪科技有限公司 | Wake lock release method and device, and mobile terminal |
CN107291212A (en) * | 2017-06-16 | 2017-10-24 | 深圳天珑无线科技有限公司 | Power lock processing method and processing device |
CN108848417A (en) * | 2018-07-20 | 2018-11-20 | 晶晨半导体(上海)股份有限公司 | Wake up the control method and control system of lock |
CN110837290A (en) * | 2019-09-30 | 2020-02-25 | 华为终端有限公司 | Management method of kernel lock and terminal equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070250726A1 (en) * | 2006-04-24 | 2007-10-25 | Rossetti David A | Method of controlling wakeup frequency in a wireless communication system |
CN103002163B (en) * | 2012-11-15 | 2015-09-16 | 深圳市金立通信设备有限公司 | A kind of mobile terminal background program control method and mobile terminal |
CN103064669B (en) * | 2012-12-18 | 2017-03-08 | 希姆通信息技术(上海)有限公司 | The timing wake-up method and system of smart machine |
CN103118188B (en) * | 2013-01-25 | 2014-08-20 | 华为终端有限公司 | Application heartbeat cycle adjusting method and device, and terminal |
CN103218033B (en) * | 2013-03-28 | 2015-11-25 | 小米科技有限责任公司 | A kind of method and device waking hardware device up |
-
2013
- 2013-07-29 CN CN201310323281.XA patent/CN103402027B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103402027A (en) | 2013-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103402027B (en) | Mobile terminal and method for putting same into sleeping state | |
US9970966B2 (en) | Method, device and computer storage medium for detecting power consumption of an application | |
CN106102141B (en) | A kind of processing method and processing device based on packet | |
CN103200314B (en) | A kind of intelligent dormancy method of mobile terminal and device | |
KR101941761B1 (en) | Method, device and mobile terminal for reducing power consumption | |
CN106055077A (en) | A processing method and device based on wake lock | |
WO2015192471A1 (en) | Mobile terminal power-saving method and mobile terminal | |
CN106055074A (en) | Application program processing method and device | |
CN105704758A (en) | A method and device for closing social application programs based on traffic monitoring | |
WO2017101362A1 (en) | Method and system for managing and controlling power consumption of intelligent terminal | |
CN104184907B (en) | The detection method and terminal of the wake-up data of terminal application software in the standby state | |
CN105824391A (en) | Timer awakening control method and electronic equipment | |
CN104932963A (en) | Method and device for terminal management | |
CN104023147B (en) | A kind of method and system that make mobile terminal stablize dormancy | |
CN106020426B (en) | Method and device for releasing wake-up lock | |
TWI548982B (en) | Management method and related computer system and computer program product thereof | |
CN106125889B (en) | Awakening source processing method and device | |
WO2019110005A1 (en) | Smart power saving method for terminal, terminal, and device having memory function | |
CN106603526B (en) | WiFi/hotspot starting method and device | |
CN105183135A (en) | Method for saving power consumption of smart phone and smart phone | |
CN105676999B (en) | A kind of method and system of processing terminal application | |
WO2017185656A1 (en) | Power-saving processing method and apparatus | |
WO2016110056A1 (en) | Terminal and terminal power-saving method | |
CN111208363A (en) | Test method and electronic device | |
CN116494897A (en) | Vehicle control method, device, equipment, storage medium and vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CP01 | Change in the name or title of a patent holder |