WO2020093888A1 - Power saving method and apparatus, and storage medium - Google Patents

Power saving method and apparatus, and storage medium Download PDF

Info

Publication number
WO2020093888A1
WO2020093888A1 PCT/CN2019/113465 CN2019113465W WO2020093888A1 WO 2020093888 A1 WO2020093888 A1 WO 2020093888A1 CN 2019113465 W CN2019113465 W CN 2019113465W WO 2020093888 A1 WO2020093888 A1 WO 2020093888A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
power saving
terminal
state
screen
Prior art date
Application number
PCT/CN2019/113465
Other languages
French (fr)
Chinese (zh)
Inventor
杨四海
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020093888A1 publication Critical patent/WO2020093888A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Definitions

  • This application relates to the terminal field, and in particular, to a power saving method, device, and storage medium.
  • Embodiments of the present application provide a power saving method, device, and storage medium, so as to save power consumption and reduce the impact on users in using applications.
  • a power saving method which includes: acquiring the first application that requires power saving processing through detection when the terminal is in a bright screen state; and when the terminal is in a blank state, Perform power saving processing on the first application.
  • a power saving device including: an acquisition module and a processing module, wherein the acquisition module is configured to acquire the first power saving process that needs to be processed by detection when the terminal is in a bright screen state An application; the processing module is configured to perform power saving processing on the first application acquired by the acquiring module when the terminal is in a screen-off state.
  • a terminal which includes a memory and a processor, and a computer program is stored on the memory, and when the computer program is executed, the following operations are implemented: when the terminal is in a bright screen state, it is obtained by detection A first application that requires power-saving processing; when the terminal is in a screen-off state, perform power-saving processing on the first application.
  • a non-transitory computer-readable storage medium is provided, and a computer program is stored on the storage medium, and when the computer program is executed, the following operations are implemented: when the terminal is in a bright screen state, pass Detecting and acquiring the first application that requires power-saving processing; when the terminal is in a screen-off state, performing power-saving processing on the first application.
  • FIG. 1 is a flowchart of a power saving method provided by an embodiment of the present application
  • FIG. 3 is a structural block diagram of a power saving device provided by an embodiment of the present application.
  • FIG. 4 is a structural block diagram of a terminal provided by an embodiment of the present application.
  • the power saving method provided in the embodiments of the present application may be executed by a terminal, which may be various mobile terminals such as mobile phones and tablet computers, or may be, for example, an intelligence that runs an operating system (for example, an Android operating system) terminal.
  • a terminal which may be various mobile terminals such as mobile phones and tablet computers, or may be, for example, an intelligence that runs an operating system (for example, an Android operating system) terminal.
  • an operating system for example, an Android operating system
  • different operations can be performed on the bright screen state and the dark screen state of the terminal.
  • the first application that requires power saving processing can be obtained by detecting in the bright screen state, and the power saving processing flow can be initiated in the screen off state.
  • FIG. 1 is a flowchart of a power saving method provided by an embodiment of the present application.
  • the power saving method provided by an embodiment of the present application may be applied to a terminal, and may include: Step 110: When the terminal is in a bright screen state, obtain a first application that requires power saving processing by detection.
  • the terminal in the embodiment of the present application may have two states: a bright screen state and a dark screen state.
  • the bright screen state can be the state of the terminal screen for content display, such as the state for the user to view after the terminal screen is started;
  • the off screen state can be the state of the terminal screen not displaying content, for example, when the terminal screen is closed, the user Check the status of any content on the terminal.
  • the first application that requires power saving processing may be an abnormal power consumption application, and an application in which one or more specified operations occur may be determined as an abnormal power consumption application.
  • step 110 may include: when the terminal is in a bright screen state, detecting an application in which a first designated operation occurs in the terminal, and taking the application in which the first designated operation occurs as the first application.
  • the first designated operation may be various abnormal power-consuming operations, which include but are not limited to at least one of the following: continuously occupying CPU time exceeds a first threshold, holding time exceeds a second threshold, and memory usage exceeds a third Threshold value, continuous positioning exceeds the fourth threshold value, and continuously applies for the sensor to exceed the fifth threshold value, etc. In this way, the application that requires power-saving processing can be easily obtained through the specific detection method described above.
  • the continuous high CPU usage can be determined according to the CPU occupancy. For example, if it is detected that the CPU occupancy reaches more than 10% for 2 consecutive minutes, or the CPU occupies more than half of the time within 10 minutes, it can be determined as the CPU continuous high occupation.
  • the lock holding time detection is mainly to judge the time that the application holds the core lock or the frame lock. If the lock is held continuously for more than 10 minutes, or if the lock is held for more than 10 minutes in 20 minutes, it may be considered that the lock holding time is too long.
  • the high memory usage is mainly to determine whether the memory of the process in the background process has increased.
  • the determination process of continuous abnormal location it can be first determined whether the application is a navigation application. If it is not a navigation application, but the continuous application of positioning time exceeds 2 minutes, it can be determined as continuous abnormal positioning; abnormal use of sensors is mainly to continuously apply for various types of sensors not to be released, for example, continuous applications such as proximity sensors or Hall for more than 5 minutes If it is not released, it can be determined that the sensor is used abnormally.
  • the first application may be recorded in the list of applications to be processed for power saving. Subsequently, when the terminal is in the screen-off state, the application list to be processed for power saving can be searched (eg, traversed) to obtain the first application.
  • recording the first application through the application list to be saved in power saving may facilitate subsequent quick acquisition of the first application.
  • the power-saving operation is a freezing operation, it is also convenient for quickly defrosting the application later.
  • acquiring applications may include acquiring various information related to the application, including but not limited to, application name, application identifier, and application running status , The type of power consumption of the application and whether it is a system application, etc.
  • the application list to be saved for power saving may be stored on the terminal, for example, stored in a memory or a hard disk of the terminal.
  • the application recorded in the application list to be saved in power saving may also cover one or more types of information of the recorded application.
  • the setting of the preset rule corresponding to the application may also be related to one or more types of information of the application.
  • Step 120 when the terminal is in a screen-off state, perform power saving processing on the first application.
  • the power saving process may be any one of: freezing the first application; ending the first application; and making the package or component for the first application unavailable.
  • the freeze technology is mainly a technology based on a terminal (for example, an intelligent terminal) that restricts applications to occupy system resources. It mainly includes prohibiting the occupation of CPU resources, sensor resources, global positioning system (GPS), memory and other resources, which can effectively save power consumption and extend battery life.
  • freezing the first application may mean that the first application is no longer allowed to continue to apply for and / or occupy any new resources (for example, CPU resources, memory resources, etc.), but keep or partially maintain the current application and / or occupation Resources.
  • Ending the first application may mean that all resources occupied by the first application are released.
  • step 120 may specifically include: when the terminal is in a screen-off state, determining whether the first application satisfies a first preset condition, and when the first application satisfies the first When a preset condition is met, power saving processing is performed on the first application.
  • the first preset condition may be set according to needs.
  • the first preset condition may be content related to applications that do not need to perform power saving processing, such as a power saving white list. Applications in the power saving white list are not required by default. Perform power saving processing.
  • the first application is music playback software
  • the first application that is music playback software does not need to perform power saving processing
  • the first application that is music playback software does not need to perform power saving processing.
  • the first application is map navigation software
  • the music playback software set in the first preset condition does not require power saving processing
  • the first application of map navigation software needs power saving processing.
  • the first preset condition may also be related to the running state and the running time. For example, the first preset condition may be set to be such as being running and the running time exceeds a specified value, for example, 1 minute, and so on.
  • the first preset condition may be set based on the type of application, and may change as the first application changes. For example, if the application belongs to a download application, the first preset condition may include content related to data traffic and / or download rate. In this way, if the application is a download application, you can continue to determine whether the application currently has data traffic. If there is data traffic at this time and meets the preset value requirements, such as 10kb / s, power saving processing may not be performed this time, otherwise Power-saving processing (for example, freezing). For example, if the application belongs to a navigation application, the first preset condition may cover content related to the location. In this way, when the application is a navigation application, the positioning position can be obtained in real time.
  • the power saving method provided by the embodiment of the present application by acquiring the first application that requires power saving processing in the bright screen state, may not perform power saving processing on the first application, and thus will not affect the user's application to the application in the bright screen state Use, and perform power saving processing on the first application in the screen-off state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright screen state, the user will not operate the application in the screen-off state, so It can achieve the effect of saving power consumption and reducing the impact on users in using applications.
  • the power saving method provided by the embodiment of the present application may further include: when the first application does not satisfy the first pre When the condition is set, the power saving process of the first application may be suspended, and the operation of the first application in the screen-off state may be detected; based on the operation of the first application, determine whether the first application The first supplementary condition is satisfied; when the first application meets the first supplementary condition, power saving processing is performed on the first application.
  • the first supplementary condition can be set as needed.
  • the first supplementary condition may be the same as the first preset condition, or may be a condition where the requirement is reduced compared to the first preset condition (the requirement can be appropriately reduced in the off-screen state).
  • the terminal satisfies no displacement within 10 minutes (the first preset condition)
  • power-saving processing is performed on the navigation application. If the terminal does not satisfy no displacement within 10 minutes (the first preset condition), and no displacement within 5 minutes, in the embodiment of the present application, if the terminal has no displacement within 5 minutes as the first supplementary condition, it may be When the screen is off, power-saving processing is performed for navigation applications.
  • the power saving method provided in the embodiment of the present application may further include: acquiring when the terminal is in a screen-off state The second application determines whether the second application meets the second preset condition, and performs power saving processing on the second application when the second application meets the second preset condition.
  • performing power saving processing on the second application includes one of: freezing the second application; ending the second application; and making the package or component for the second application unavailable.
  • by performing secondary power saving processing on the applications that exist after the terminal is turned off the power saving processing can be ensured to be more thorough, and the power consumption of the terminal can be further saved.
  • the second application may be obtained in the following manner: when the terminal is in the screen-off state, the application that detects the occurrence of the second specified operation in the terminal will appear Application as the second application.
  • the second designated operation includes at least one of the following: continuously occupying CPU time exceeding the sixth threshold, holding time exceeding the seventh threshold, memory consumption exceeding the eighth threshold, continuously locating exceeding the ninth threshold, and continuously applying for sensors to exceed The tenth threshold.
  • the sixth threshold may be the same as the first threshold, or may be set to be different from the first threshold; the seventh threshold may be the same as the second threshold, or may be set to be the second threshold Different; the eighth threshold can be the same as the third threshold or can be set to be different from the third threshold; the ninth threshold can be the same as the fourth threshold or can be set to be different from the fourth threshold; the tenth threshold can be the same as the fifth threshold Similarly, it may be set to be different from the fifth threshold.
  • the first threshold to the tenth threshold can be set according to requirements.
  • the application that is, the second application
  • the application that needs to perform the second power saving process can be easily obtained by using a specific detection method.
  • the second preset condition may be the same as or different from the first preset condition. Meanwhile, similar to the first preset condition, the second preset condition can also be set as needed.
  • the second application may be associated with the first application, or may be unrelated to the first application.
  • the second application may have one or more sources, for example, from a specified application (for example, an application set by a user), for example, from an application that starts automatically in the screen-off state, and for example, from an abnormality that occurs in the screen-off state Application and so on. It should be noted that, in the embodiments of the present application, the second application may also include one or more applications.
  • the first application when the terminal is in a screen-off state and performs power saving processing, the following operations may be performed for each target application among the multiple target applications: determining the target Whether the application satisfies the preset condition corresponding to it (the first preset condition); when the target application satisfies the preset condition corresponding to it, power saving processing is performed on the target application.
  • the second application includes at least one of the following: an application from a specified application, an application that starts automatically in the screen-off state, and an application in which an abnormality occurs in the screen-off state.
  • the embodiment of the present application may perform power saving processing on one or more target applications in the first application.
  • the multiple target applications may be recorded in the list of applications to be processed for power saving. Subsequently, in the screen-off state, power saving processing may be performed for each target application in the application list for power saving processing when it meets the corresponding preset condition.
  • the power saving method provided by the embodiment of the present application may be applied to a terminal, and may include: Step 210, when the terminal is in a bright screen state, detecting that an application of a first specified operation occurs in the terminal, the The application of the first designated operation serves as the first application (abnormal power consumption application) that requires power saving processing.
  • the first designated operation includes but is not limited to at least one of the following: continuously occupying CPU time exceeds a first threshold, holding time exceeds a second threshold, memory occupancy exceeds a third threshold, continuous positioning exceeds a fourth threshold, and continues Apply for sensors that exceed the fifth threshold and so on.
  • each threshold can be set according to actual needs.
  • the first application may cover various applications. For example, if a navigation application is an application where the first specified operation occurs, this navigation application may be used as the first application. If a video playback application is an application where the first specified operation occurs, the video playback application may be used as the first application.
  • Step 220 Record the first application into a list of applications to be processed for power saving.
  • the application list to be saved for power saving can be kept in various memories of the terminal.
  • Step 244 When the first application does not satisfy the first preset condition, suspend power-saving processing of the first application, and detect the operation of the first application in the screen-off state.
  • the first application when the first application does not satisfy the first supplementary condition, the first application may not be subjected to power saving processing.
  • the power saving process includes one of the following: freezing the first application; ending the first application; and making the package or component for the first application unavailable.
  • Step 250 When the terminal is in a screen-off state, detect an application in which a second designated operation occurs in the terminal, and use the application in which the second designated operation appears as the second application.
  • the second designated operation includes but is not limited to at least one of the following: continuously occupying CPU time exceeding the sixth threshold, holding time exceeding the seventh threshold, memory occupation exceeding the eighth threshold, continuing positioning exceeding the ninth threshold, and continuing The application sensor exceeds the tenth threshold.
  • each threshold can be set according to actual needs.
  • the sixth threshold to the tenth threshold may be associated with the first threshold to the fifth threshold.
  • the second application may include at least one of the following: a specified application, an application that starts automatically in the screen-off state, and an application in which an abnormality occurs in the screen-off state.
  • the second application may be an abnormal power-consuming application, and may cover various applications.
  • the specified application can be set for the user as an application that requires power-saving processing. In this way, the user can proactively perform power-saving processing for certain applications through settings, which enhances interactivity and better meets user needs.
  • the self-starting application in the screen-off state may be, for example, some rogue applications, and the application is started in the screen-off state without the user's knowledge.
  • the second application may not be recorded in the application list to be saved.
  • Step 260 Determine whether the second application meets the corresponding preset condition, and perform power saving processing on the second application when the second application meets the corresponding preset condition.
  • the second application when the second application satisfies the corresponding preset condition, the second application may directly perform power saving processing without being recorded in the application list to be saved.
  • the power saving process can also be directly performed on the second application without determining whether the second application meets the corresponding preset condition, so that the power saving operation can be performed more conveniently and quickly.
  • step 240 and step 250 may be performed in parallel, step 250 may be performed before step 240, and step 250 may also be performed during the execution of step 240.
  • an unfreeze trigger instruction for the first application may be received (for example, click Start An application), defrosting the first application recorded in the application list to be saved.
  • the first application recorded in the application list to be saved for power saving can be quickly restored.
  • the terminal will actively release the freezing control of the application, so that the application does not need to be initialized again, which increases the time for the application to load and display.
  • Application startup performance is an improvement.
  • power saving processing may not be performed on the first application, so that it does not affect the user's use of the application in the bright screen state, and the screen is turned off.
  • the first application performs power saving processing in the state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright screen state, the user does not operate the application in the screen off state, and thus can save power consumption At the same time reduce the impact on users in using applications.
  • acquiring the first application that requires power-saving processing through detection in the bright screen state can ensure that the acquired application is an application that requires power-saving processing, and avoids the power-saving processing of an application due to inappropriate.
  • the problems that affect users 'use of this application further reduce the impact on users' use of the application.
  • the power saving processing can be ensured to be more thorough, and the power consumption of the terminal can be further saved.
  • FIG. 3 is a structural block diagram of a power saving device provided by an embodiment of the present application.
  • the power saving device 300 provided by an embodiment of the present application includes: an acquisition module 310 and a processing module 320, wherein the acquisition module 310 is configured to acquire a need by detecting when the terminal is in a bright screen state A first application that performs power saving processing; the processing module 320 is configured to perform power saving processing on the first application acquired by the acquiring module 310 when the terminal is in a screen-off state.
  • power saving processing may not be performed on the first application, so that it does not affect the user's use of the application in the bright screen state, and the screen is turned off.
  • the first application performs power saving processing in the state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright screen state, the user does not operate the application in the screen off state, and thus can save power consumption At the same time reduce the impact on users in using applications.
  • acquiring the first application that requires power-saving processing through detection in the bright screen state can ensure that the acquired application is an application that requires power-saving processing, and avoids the power-saving processing of an application due to inappropriate.
  • the problems that affect users 'use of this application further reduce the impact on users' use of the application.
  • the processing module 320 may be specifically configured to: when the terminal is in a screen-off state, determine whether the first application satisfies the first preset condition. When the first application meets the first preset condition, power saving processing is performed on the first application. Wherein, performing power saving processing on the first application includes one of: freezing the first application; ending the first application; and making the package or component for the first application unavailable.
  • the processing module 320 may be specifically configured to: when the first application does not satisfy the first preset condition, detect that the first application is in the screen-off state Based on the operation of the first application, determining whether the first application meets the first supplementary condition; when the first application meets the first supplementary condition, perform power saving processing on the first application .
  • the acquiring module 310 is further used to acquire the second application when the terminal is in the screen-off state.
  • the processing module 320 is further configured to: determine whether the second application satisfies the second preset condition, and perform a process on the second application when the second application satisfies the second preset condition Power saving processing.
  • performing power saving processing on the second application includes: performing one of the following operations on the second application: freezing the second application; ending the second application; and making a packet or The component is not available.
  • the first application includes multiple target applications.
  • the processing module 320 may be specifically used to: In the case of the screen-off state, for each target application in the plurality of target applications, perform the following operations: determine whether the target application satisfies a preset condition corresponding to the target application; When setting conditions, perform power saving processing on the target application.
  • the second application may include at least one of the following: a designated application, an application that starts automatically in the screen-off state, and an application in which an abnormality occurs in the screen-off state.
  • the acquiring module 310 may be specifically configured to: when the terminal is in a screen-off state, detect an application in which a second specified operation occurs in the terminal, and the second specified operation will appear As the second application.
  • the second designated operation includes at least one of the following: continuously occupying CPU time exceeding the sixth threshold, holding time exceeding the seventh threshold, memory consumption exceeding the eighth threshold, continuously locating exceeding the ninth threshold, and continuously applying for sensors to exceed The tenth threshold.
  • the power saving device further includes a management module for recording the first application into a list of power saving processing applications, and when the terminal is in a screen-off state, Traverse the list of applications to be saved for power saving to obtain the first application, and notify the processing module 320 of the first application.
  • a terminal 400 provided by an embodiment of the present application may include: a memory 410 and a processor 420, and a computer program may be stored on the memory 410, which may be implemented when the computer program is executed by the processor 420 Any of the steps described in this article to save power.
  • the computer program when executed by the processor 420, the following operations may be performed: when the terminal is in a bright screen state, obtain the first application that requires power-saving processing by detection; In the case of the screen off state, power saving processing is performed on the first application.
  • power saving processing may not be performed on the first application, so that it does not affect the user's use of the application in the bright screen state, and
  • the power saving process is performed on the first application in the screen off state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright screen state, the user does not operate the application in the screen off state, so it can achieve While saving power consumption, it reduces the impact on users in using applications.
  • the non-transitory computer-readable storage medium provided by the embodiment of the present application can obtain the first application that needs to be processed for power saving in the bright screen state, so that the first application can be saved without power saving, and thus does not affect the user on the bright screen
  • These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device
  • These computer program instructions may also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device
  • the instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
  • Computer-readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
  • the information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

Provided are a power saving method and apparatus, and a storage medium, which relate to the field of terminals, so as to reduce the influence on use of an application by a user while saving on power consumption. The method comprises: where a terminal is in a screen turned-on state, acquiring, by means of detection, a first application that needs to be subjected to power-saving processing (110); and where the terminal is in a screen turned-off state, conducting power-saving processing on the first application (120).

Description

一种省电方法、装置和存储介质Power saving method, device and storage medium
交叉引用cross reference
本申请引用于2018年11月09日递交的名称为“一种省电方法、装置和存储介质”的第201811329115.X号中国专利申请,其通过引用被全部并入本申请。This application refers to the Chinese patent application No. 201811329115.X filed on November 09, 2018 and titled "A Power Saving Method, Device, and Storage Medium", which is fully incorporated by reference into this application.
技术领域Technical field
本申请涉及终端领域,尤其涉及一种省电方法、装置和存储介质。This application relates to the terminal field, and in particular, to a power saving method, device, and storage medium.
背景技术Background technique
当前,随着应用的使用范围越来越广和功能日益强大,安装在终端内的应用也越来越多。当终端内安装有众多的应用时,常常会出现电池电力消耗速度变快的现象。At present, as applications are more widely used and more powerful, more and more applications are installed in the terminal. When many applications are installed in the terminal, the phenomenon that the battery power consumption speed becomes faster often occurs.
相关技术在满足设定的策略时会进行省电处理。但是,这种省电处理方法往往需要用户了解这些策略,如果用户不了解这些策略,则可能出现因对某一应用进行省电处理而影响用户对这一应用的使用。Related technologies will perform power saving processing when they meet the set strategy. However, this power-saving processing method often requires the user to understand these strategies. If the user does not understand these strategies, it may appear that the power-saving processing of an application affects the user's use of the application.
发明内容Summary of the invention
本申请实施例提供一种省电方法、装置和存储介质,以在节省电力消耗的同时减少对用户在使用应用上的影响。Embodiments of the present application provide a power saving method, device, and storage medium, so as to save power consumption and reduce the impact on users in using applications.
第一方面,提供一种省电方法,包括:在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理。In a first aspect, a power saving method is provided, which includes: acquiring the first application that requires power saving processing through detection when the terminal is in a bright screen state; and when the terminal is in a blank state, Perform power saving processing on the first application.
第二方面,提供一种省电装置,包括:获取模块和处理模块,其中,所述获取模块,用于在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;所述处理模块用于在所述终端处于灭屏状态的情况下, 对所述获取模块获取的所述第一应用进行省电处理。According to a second aspect, there is provided a power saving device, including: an acquisition module and a processing module, wherein the acquisition module is configured to acquire the first power saving process that needs to be processed by detection when the terminal is in a bright screen state An application; the processing module is configured to perform power saving processing on the first application acquired by the acquiring module when the terminal is in a screen-off state.
第三方面,提供一种终端,包括存储器和处理器,所述存储器上存储计算机程序,当所述计算机程序被执行时实现如下操作:在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理。In a third aspect, a terminal is provided, which includes a memory and a processor, and a computer program is stored on the memory, and when the computer program is executed, the following operations are implemented: when the terminal is in a bright screen state, it is obtained by detection A first application that requires power-saving processing; when the terminal is in a screen-off state, perform power-saving processing on the first application.
第四方面,提供一种非临时性计算机可读存储介质,所述存储介质上存储计算机程序,当所述计算机程序被执行时实现如下操作:在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理。According to a fourth aspect, a non-transitory computer-readable storage medium is provided, and a computer program is stored on the storage medium, and when the computer program is executed, the following operations are implemented: when the terminal is in a bright screen state, pass Detecting and acquiring the first application that requires power-saving processing; when the terminal is in a screen-off state, performing power-saving processing on the first application.
附图说明BRIEF DESCRIPTION
图1是本申请实施例提供的一种省电方法的流程图;FIG. 1 is a flowchart of a power saving method provided by an embodiment of the present application;
图2是本申请实施例提供的另一种省电方法的流程图;2 is a flowchart of another power saving method provided by an embodiment of the present application;
图3是本申请实施例提供的省电装置的结构框图;3 is a structural block diagram of a power saving device provided by an embodiment of the present application;
图4是本申请实施例提供的终端的结构框图。4 is a structural block diagram of a terminal provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application more clear, the technical solutions of the present application will be described clearly and completely in conjunction with specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请实施例提供的省电方法可由终端来执行,所述终端可以为诸如手机、平板电脑之类的各种移动终端,也可以为例如运行某一操作系统(例如,安卓操作系统)的智能终端。The power saving method provided in the embodiments of the present application may be executed by a terminal, which may be various mobile terminals such as mobile phones and tablet computers, or may be, for example, an intelligence that runs an operating system (for example, an Android operating system) terminal.
在本申请实施例中,针对终端的亮屏状态和灭屏状态可以进行不同的操 作。例如,可以在亮屏状态下通过检测获取需要进行省电处理的第一应用,可以在灭屏状态下发起省电处理流程。In the embodiment of the present application, different operations can be performed on the bright screen state and the dark screen state of the terminal. For example, the first application that requires power saving processing can be obtained by detecting in the bright screen state, and the power saving processing flow can be initiated in the screen off state.
以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by the embodiments of the present application will be described in detail below in conjunction with the drawings.
图1是本申请实施例提供的一种省电方法的流程图。参照图1,本申请实施例提供的省电方法可应用于终端,且可包括:步骤110,在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用。FIG. 1 is a flowchart of a power saving method provided by an embodiment of the present application. Referring to FIG. 1, the power saving method provided by an embodiment of the present application may be applied to a terminal, and may include: Step 110: When the terminal is in a bright screen state, obtain a first application that requires power saving processing by detection.
本申请实施例中的终端可以具有两种状态:亮屏状态和灭屏状态。其中,亮屏状态可为终端屏幕进行内容显示的状态,例如终端屏幕启动后供用户查看的状态;灭屏状态可为终端屏幕不进行内容显示的状态,例如终端屏幕关闭的情形下,用户无法查看到终端上的任何内容的状态。The terminal in the embodiment of the present application may have two states: a bright screen state and a dark screen state. Among them, the bright screen state can be the state of the terminal screen for content display, such as the state for the user to view after the terminal screen is started; the off screen state can be the state of the terminal screen not displaying content, for example, when the terminal screen is closed, the user Check the status of any content on the terminal.
在本申请实施例中,需要进行省电处理的第一应用可以为异常耗电应用,可以将出现一或多种指定操作的应用确定为异常耗电应用。具体地,步骤110可以包括:在所述终端处于亮屏状态的情况下,检测所述终端中出现第一指定操作的应用,将出现所述第一指定操作的应用作为所述第一应用。其中,所述第一指定操作可以为各种异常耗电操作,其包括但不限于以下至少一项:持续占用CPU的时间超过第一阈值、持锁时间超过第二阈值、内存占用超过第三阈值、持续定位超过第四阈值以及持续申请传感器超过第五阈值等等。如此,通过上述具体的检测方式可以便捷地获取需要进行省电处理的应用。In the embodiment of the present application, the first application that requires power saving processing may be an abnormal power consumption application, and an application in which one or more specified operations occur may be determined as an abnormal power consumption application. Specifically, step 110 may include: when the terminal is in a bright screen state, detecting an application in which a first designated operation occurs in the terminal, and taking the application in which the first designated operation occurs as the first application. Wherein, the first designated operation may be various abnormal power-consuming operations, which include but are not limited to at least one of the following: continuously occupying CPU time exceeds a first threshold, holding time exceeds a second threshold, and memory usage exceeds a third Threshold value, continuous positioning exceeds the fourth threshold value, and continuously applies for the sensor to exceed the fifth threshold value, etc. In this way, the application that requires power-saving processing can be easily obtained through the specific detection method described above.
在本申请实施例中个,各种异常耗电操作可以涵盖如下几个方面:CPU持续高占、持锁时间长、内存占用高、异常持续定位、异常使用传感器等。如果出现上面任何一种行为,即可检测为异常耗电操作/行为。In the embodiment of the present application, various abnormal power consumption operations may cover the following aspects: CPU continuous high occupation, long lock holding time, high memory occupation, abnormal continuous positioning, abnormal use sensor, and the like. If any of the above behavior occurs, it can be detected as an abnormal power-consuming operation / behavior.
下面举例说明。CPU持续高占可以根据CPU的占用情况来确定,例如,如果检测到连续2分钟占用CPU达到百分之10以上,或者10分钟内占用CPU的时间超过一半,则可确定为CPU持续高占。持锁时间检测主要是判断应用的持内核锁或框架锁的时间,如果持锁连续超过10分钟,或在20分钟内累计持锁超过10分钟则可认为是持锁时间过长。内存占用高主要是判断在后台进 程的进程的内存是否有增加,也可以基于绝对内存占用量(例如,将绝对内存占用超过30%的应用确定为内存占用高)、相对占用内存的情况(例如,将内存占用前几名的应用确定为内存占用高)来进行判定。在持续异常定位的判定过程中可以首先判断应用是否是导航类的应用。如果不是导航类应用,但连续申请定位的时间超过2分钟,则可确定为持续异常定位;异常使用传感器主要是持续申请各类传感器不释放,例如持续申请诸如接近传感器或霍尔等超过5分钟不释放,则可确定为传感器使用异常。The following is an example. The continuous high CPU usage can be determined according to the CPU occupancy. For example, if it is detected that the CPU occupancy reaches more than 10% for 2 consecutive minutes, or the CPU occupies more than half of the time within 10 minutes, it can be determined as the CPU continuous high occupation. The lock holding time detection is mainly to judge the time that the application holds the core lock or the frame lock. If the lock is held continuously for more than 10 minutes, or if the lock is held for more than 10 minutes in 20 minutes, it may be considered that the lock holding time is too long. The high memory usage is mainly to determine whether the memory of the process in the background process has increased. It can also be based on the absolute memory usage (for example, the application with an absolute memory usage of more than 30% is determined to be high memory usage) and the relative memory usage (for example , To determine the top few applications with high memory footprint). In the determination process of continuous abnormal location, it can be first determined whether the application is a navigation application. If it is not a navigation application, but the continuous application of positioning time exceeds 2 minutes, it can be determined as continuous abnormal positioning; abnormal use of sensors is mainly to continuously apply for various types of sensors not to be released, for example, continuous applications such as proximity sensors or Hall for more than 5 minutes If it is not released, it can be determined that the sensor is used abnormally.
需了解的是,上述所提及的分钟数、判断方法并不意为限制,而是可以根据效果、条件、特殊例外等等情况进行调整。同时,只要终端处于亮屏状态下,终端后台可持续检测异常耗电操作。It should be understood that the minutes and judgment methods mentioned above are not meant to be limiting, but can be adjusted according to effects, conditions, special exceptions, etc. At the same time, as long as the terminal is in the bright state, the background of the terminal can continuously detect abnormal power consumption operations.
在本申请实施例中,在步骤110中一旦通过检测获取到需要进行省电处理的第一应用,就可将所述第一应用记录到待省电处理应用列表中。后续,在所述终端处于灭屏状态的情况下,即可查找(例如遍历)所述待省电处理应用列表,以获取所述第一应用。本申请实施例通过待省电处理应用列表记录第一应用可以便于后续快速获取到第一应用。同时,在省电操作为冻结操作的情况下,也便于后续快速地对应用进行解冻处理。In the embodiment of the present application, once the first application that requires power saving processing is acquired through detection in step 110, the first application may be recorded in the list of applications to be processed for power saving. Subsequently, when the terminal is in the screen-off state, the application list to be processed for power saving can be searched (eg, traversed) to obtain the first application. In this embodiment of the present application, recording the first application through the application list to be saved in power saving may facilitate subsequent quick acquisition of the first application. At the same time, when the power-saving operation is a freezing operation, it is also convenient for quickly defrosting the application later.
需指出的是,在本申请实施例中,获取应用(包括第一应用和第二应用)可涵盖获取与应用有关的各种信息,包括但不限于,应用名称、应用标识、应用的运行状态、应用耗电类型以及是否系统应用等。待省电处理应用列表可以存储于终端上,例如存储于终端的内存或硬盘上。待省电处理应用列表中记录的应用也可以涵盖记录应用的一种或多种信息。同时,应用(包括第一应用和后文的第二应用)对应的预设规则的设置也可以与应用的一种或多种信息相关。It should be noted that, in the embodiments of the present application, acquiring applications (including the first application and the second application) may include acquiring various information related to the application, including but not limited to, application name, application identifier, and application running status , The type of power consumption of the application and whether it is a system application, etc. The application list to be saved for power saving may be stored on the terminal, for example, stored in a memory or a hard disk of the terminal. The application recorded in the application list to be saved in power saving may also cover one or more types of information of the recorded application. At the same time, the setting of the preset rule corresponding to the application (including the first application and the second application hereinafter) may also be related to one or more types of information of the application.
步骤120,在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理。 Step 120, when the terminal is in a screen-off state, perform power saving processing on the first application.
其中,在本申请实施例中,省电处理可以为以下任一项:冻结所述第一 应用;结束所述第一应用;以及使针对所述第一应用的包或组件不可用。Wherein, in the embodiment of the present application, the power saving process may be any one of: freezing the first application; ending the first application; and making the package or component for the first application unavailable.
在本申请实施例中,冻结技术主要是基于终端(例如,智能终端)的一种限制应用占用系统资源的技术。它主要包括禁止占用CPU资源、传感器资源以及全球定位系统(GPS)、内存等资源,能有效的节省功耗,延长电池续航时间。其中,冻结所述第一应用可表示不再让第一应用继续申请和/或占用任何新的资源(例如,CPU资源、内存资源等),而保持或部分保持当前所申请和/或占用的资源。结束所述第一应用可以表示,释放第一应用所占用的所有资源。In the embodiment of the present application, the freeze technology is mainly a technology based on a terminal (for example, an intelligent terminal) that restricts applications to occupy system resources. It mainly includes prohibiting the occupation of CPU resources, sensor resources, global positioning system (GPS), memory and other resources, which can effectively save power consumption and extend battery life. Wherein, freezing the first application may mean that the first application is no longer allowed to continue to apply for and / or occupy any new resources (for example, CPU resources, memory resources, etc.), but keep or partially maintain the current application and / or occupation Resources. Ending the first application may mean that all resources occupied by the first application are released.
在本申请实施例中,步骤120可具体包括:在所述终端处于灭屏状态的情况下时,确定所述第一应用是否满足第一预设条件,在所述第一应用满足所述第一预设条件时,对所述第一应用进行省电处理。其中,第一预设条件可以根据需要来设置,例如第一预设条件可以为与不需要进行省电处理的应用相关的内容,例如省电白名单,省电白名单内的应用默认不需要进行省电处理。举例而言,若第一应用为音乐播放软件,假定第一预设条件中设定音乐播放类软件不需要进行省电处理,则为音乐播放软件的第一应用不需要进行省电处理。反之,若第一应用为地图导航软件,若第一预设条件中设定音乐播放类软件不需要进行省电处理,则为地图导航软件的第一应用需要进行省电处理。第一预设条件还可以与运行状态和运行时间有关,例如第一预设条件可以设置为诸如正在运行且运行时间超过一个指定值,例如1分钟等。In the embodiment of the present application, step 120 may specifically include: when the terminal is in a screen-off state, determining whether the first application satisfies a first preset condition, and when the first application satisfies the first When a preset condition is met, power saving processing is performed on the first application. The first preset condition may be set according to needs. For example, the first preset condition may be content related to applications that do not need to perform power saving processing, such as a power saving white list. Applications in the power saving white list are not required by default. Perform power saving processing. For example, if the first application is music playback software, assuming that the music playback software set in the first preset condition does not need to perform power saving processing, the first application that is music playback software does not need to perform power saving processing. Conversely, if the first application is map navigation software, if the music playback software set in the first preset condition does not require power saving processing, then the first application of map navigation software needs power saving processing. The first preset condition may also be related to the running state and the running time. For example, the first preset condition may be set to be such as being running and the running time exceeds a specified value, for example, 1 minute, and so on.
在本申请实施例中,第一预设条件可以基于应用类型而设置,并且可以随着第一应用的变化而变化。举例而言,如果应用属于下载类应用,则第一预设条件可涵盖与数据流量和/或下载速率有关的内容。这样,如果应用属于下载类应用,则可继续判断此应用当前有没有数据流量,如果此时有数据流量且满足预设值要求,如10kb/s,则此次可不进行省电处理,否则进行省电处理(例如冻结)。举例而言,如果应用属于导航类应用,则第一预设条件可涵盖与位置有关的内容。这样,在应用属于导航类应用时,可实时获取定位位置,如果 确定出终端当前或在一段时间内位置无位移,则此次可不进行省电处理,否则进行省电处理(例如冻结)。又举例而言,如果应用持锁且属于音乐类应用,则第一预设条件可涵盖例如与数据码流有关的内容。这样,可判断音乐播放应用是否有音频数据码流,由于正常播放音乐时会产生音频数据码流,如果此应用在一段时间内没有音频数据码流,则此次可不进行省电处理,否则进行省电处理(例如冻结)。In the embodiment of the present application, the first preset condition may be set based on the type of application, and may change as the first application changes. For example, if the application belongs to a download application, the first preset condition may include content related to data traffic and / or download rate. In this way, if the application is a download application, you can continue to determine whether the application currently has data traffic. If there is data traffic at this time and meets the preset value requirements, such as 10kb / s, power saving processing may not be performed this time, otherwise Power-saving processing (for example, freezing). For example, if the application belongs to a navigation application, the first preset condition may cover content related to the location. In this way, when the application is a navigation application, the positioning position can be obtained in real time. If it is determined that the terminal has no displacement at present or within a period of time, power saving processing may not be performed this time, otherwise power saving processing (such as freezing) is performed. For another example, if the application is locked and belongs to a music application, the first preset condition may cover content related to the data stream, for example. In this way, it can be determined whether the music playback application has an audio data stream. Since the audio data stream will be generated when the music is played normally, if this application does not have an audio data stream in a period of time, power saving processing may not be performed this time, otherwise Power-saving processing (for example, freezing).
当然,在本申请实施例中,在获取到第一应用之后,也可以在需要时不进一步判断第一应用是否满足第一预设条件,而是直接对第一应用进行省电处理,如此可以快速执行省电操作,从而节省终端的电力消耗。Of course, in the embodiment of the present application, after obtaining the first application, it is not necessary to further determine whether the first application meets the first preset condition when necessary, but to directly perform power saving processing on the first application, so that Quickly perform power saving operations, thereby saving power consumption of the terminal.
,在本申请实施例中,如果对第一应用进行的省电处理为冻结处理,则在步骤120对第一应用进行冻结处理之后,还可以对第一应用进行解冻。具体地,可在接收到针对所述第一应用的解冻触发指令时(例如,第一应用受到诸如点击操作而触发启动),对所述待省电处理应用列表中记录的所述第一应用进行解冻处理。如此,可以快速恢复启动在之前的亮屏状态下运行而在灭屏状态下冻结的第一应用,使得用户在灭屏前的操作能够得到较快的恢复,进而提高用户的使用体验。In the embodiment of the present application, if the power saving processing performed on the first application is freezing processing, after the freezing processing is performed on the first application in step 120, the first application may also be unfrozen. Specifically, the first application recorded in the to-be-power-saving processing application list may be received when an unfreezing trigger instruction for the first application is received (for example, the first application is triggered and started by being clicked, for example). Perform thawing treatment. In this way, the first application running in the previous bright screen state and frozen in the screen off state can be quickly recovered and started, so that the user's operation before the screen off can be quickly recovered, thereby improving the user's experience.
本申请实施例提供的省电方法,通过在亮屏状态下获取需要进行省电处理的第一应用,可不对第一应用进行省电处理,因而不会影响用户在亮屏状态下对应用的使用,而在灭屏状态下对第一应用进行省电处理,因而可以实现省电目的,由于用户操作应用都是在亮屏状态下进行的,用户在灭屏状态下不会操作应用,因而可以达到在节省电力消耗的同时减少对用户在使用应用上的影响。而且,在亮屏状态下通过检测而获取需要进行省电处理的第一应用,可以保证获取到的应用为需要进行省电处理的应用,避免因不恰当地对某一应用进行省电处理,而影响用户使用这一应用的问题,进一步降低了对用户在使用应用上的影响。The power saving method provided by the embodiment of the present application, by acquiring the first application that requires power saving processing in the bright screen state, may not perform power saving processing on the first application, and thus will not affect the user's application to the application in the bright screen state Use, and perform power saving processing on the first application in the screen-off state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright screen state, the user will not operate the application in the screen-off state, so It can achieve the effect of saving power consumption and reducing the impact on users in using applications. Moreover, acquiring the first application that requires power-saving processing through detection in the bright screen state can ensure that the acquired application is an application that requires power-saving processing, and avoids the power-saving processing of an application due to inappropriate, The problems that affect users 'use of this application further reduce the impact on users' use of the application.
在本申请的一个实施例中,在步骤120对所述第一应用进行省电处理之 后,本申请实施例提供的省电方法还可包括:在所述第一应用不满足所述第一预设条件时,可暂停对所述第一应用进行省电处理,并检测所述第一应用在所述灭屏状态的的操作;基于所述第一应用的操作,确定所述第一应用是否满足第一补充条件;在所述第一应用满足所述第一补充条件时,对所述第一应用进行省电处理。其中,第一补充条件可以按需要来设置。第一补充条件可以与第一预设条件相同,也可以是与第一预设条件相比要求降低了的条件(灭屏状态下可适当降低要求)。以应用属于导航类应用且第一预设条件涵盖与位置有关的内容为例,若终端满足10分钟内无位移(第一预设条件),则对导航类应用进行省电处理。如果终端并不满足10分钟内无位移(第一预设条件),而满足5分钟内无位移,则在本申请实施例中,如果终端5分钟内无位移作为第一补充条件,则可在灭屏状态下,对导航类应用进行省电处理。In an embodiment of the present application, after performing power saving processing on the first application in step 120, the power saving method provided by the embodiment of the present application may further include: when the first application does not satisfy the first pre When the condition is set, the power saving process of the first application may be suspended, and the operation of the first application in the screen-off state may be detected; based on the operation of the first application, determine whether the first application The first supplementary condition is satisfied; when the first application meets the first supplementary condition, power saving processing is performed on the first application. Among them, the first supplementary condition can be set as needed. The first supplementary condition may be the same as the first preset condition, or may be a condition where the requirement is reduced compared to the first preset condition (the requirement can be appropriately reduced in the off-screen state). Taking an application that belongs to a navigation application and the first preset condition covering content related to location as an example, if the terminal satisfies no displacement within 10 minutes (the first preset condition), power-saving processing is performed on the navigation application. If the terminal does not satisfy no displacement within 10 minutes (the first preset condition), and no displacement within 5 minutes, in the embodiment of the present application, if the terminal has no displacement within 5 minutes as the first supplementary condition, it may be When the screen is off, power-saving processing is performed for navigation applications.
本申请实施例在终端处于灭屏状态下,第一应用在初始不满足省电处理条件(第一预设条件)时,可以先不对第一应用进行省电处理,而是在灭屏状态下继续检测第一应用的操作,后续在所述第一应用满足所述第一补充条件时,再对所述第一应用进行省电处理。如此,可以防止因第一预设条件的设置而引起的省电处理不彻底,保证对终端电力消耗的进一步优化。In the embodiment of the present application, when the terminal is in the screen-off state, when the first application does not satisfy the power-saving processing condition (the first preset condition) initially, the first application may not perform power-saving processing first, but in the screen-off state Continue to detect the operation of the first application, and then perform power saving processing on the first application when the first application meets the first supplementary condition. In this way, it is possible to prevent incomplete power saving processing caused by the setting of the first preset condition, and to ensure further optimization of terminal power consumption.
在本申请的一个实施例中,在步骤120对所述第一应用进行省电处理之后,本申请实施例提供的省电方法还可包括:在所述终端处于灭屏状态的情况下,获取第二应用,确定所述第二应用是否满足第二预设条件,并在所述第二应用满足所述第二预设条件时,对所述第二应用进行省电处理。其中,对所述第二应用进行省电处理包括以下一项:冻结所述第二应用;结束所述第二应用;以及使针对所述第二应用的包或组件不可用。本申请实施例通过对终端灭屏后存在的应用进行二次省电处理,可以保证省电处理更彻底,进一步节省终端的电力消耗。此外,在本申请实施例中,也可以直接对第二应用进行省电处理,而无需判断第二应用是否满足对应的预设条件(第二预设条件),如此可以更加便捷和快速地进行省电操作。In an embodiment of the present application, after performing power saving processing on the first application in step 120, the power saving method provided in the embodiment of the present application may further include: acquiring when the terminal is in a screen-off state The second application determines whether the second application meets the second preset condition, and performs power saving processing on the second application when the second application meets the second preset condition. Wherein, performing power saving processing on the second application includes one of: freezing the second application; ending the second application; and making the package or component for the second application unavailable. In the embodiments of the present application, by performing secondary power saving processing on the applications that exist after the terminal is turned off, the power saving processing can be ensured to be more thorough, and the power consumption of the terminal can be further saved. In addition, in the embodiment of the present application, it is also possible to directly perform power saving processing on the second application without determining whether the second application satisfies the corresponding preset condition (second preset condition), which can be performed more conveniently and quickly Power saving operation.
在本申请实施例中,可以通过如下方式获取第二应用:在所述终端处于灭屏状态的情况下,检测所述终端中出现第二指定操作的应用,将出现所述第二指定操作的应用作为所述第二应用。其中,所述第二指定操作包括以下至少一项:持续占用CPU的时间超过第六阈值、持锁时间超过第七阈值、内存占用超过第八阈值、持续定位超过第九阈值以及持续申请传感器超过第十阈值。需了解的是,在本申请实施例中,第六阈值可以与第一阈值相同,也可以设置为与第一阈值不同;第七阈值可以与第二阈值相同,也可以设置为与第二阈值不同;第八阈值可以与第三阈值相同,也可以设置为与第三阈值不同;第九阈值可以与第四阈值相同,也可以设置为与第四阈值不同;第十阈值可以与第五阈值相同,也可以设置为与第五阈值不同。第一阈值至第十阈值均可以按照需求来设定。本申请实施例通过通过具体的检测方式可以便捷地获取需要进行二次省电处理的应用(即,第二应用)。In the embodiment of the present application, the second application may be obtained in the following manner: when the terminal is in the screen-off state, the application that detects the occurrence of the second specified operation in the terminal will appear Application as the second application. Wherein, the second designated operation includes at least one of the following: continuously occupying CPU time exceeding the sixth threshold, holding time exceeding the seventh threshold, memory consumption exceeding the eighth threshold, continuously locating exceeding the ninth threshold, and continuously applying for sensors to exceed The tenth threshold. It should be understood that in the embodiment of the present application, the sixth threshold may be the same as the first threshold, or may be set to be different from the first threshold; the seventh threshold may be the same as the second threshold, or may be set to be the second threshold Different; the eighth threshold can be the same as the third threshold or can be set to be different from the third threshold; the ninth threshold can be the same as the fourth threshold or can be set to be different from the fourth threshold; the tenth threshold can be the same as the fifth threshold Similarly, it may be set to be different from the fifth threshold. The first threshold to the tenth threshold can be set according to requirements. In the embodiment of the present application, the application (that is, the second application) that needs to perform the second power saving process can be easily obtained by using a specific detection method.
在本申请实施例中,第二指定操作可以为各种异常耗电操作,异常耗电操作的具体检测方法示例可类似于前文针对第一指定操作所做出的描述。In the embodiment of the present application, the second designated operation may be various abnormal power consumption operations, and the specific detection method example of the abnormal power consumption operation may be similar to the foregoing description made for the first designated operation.
在本申请实施例中,第二预设条件可以与第一预设条件相同或不同。同时,类似于第一预设条件,第二预设条件也可以按需要进行设置。第二应用可以与第一应用相关联,也可以与第一应用无关。第二应用可以有一或多个来源,例如来自指定的应用(例如用户设置的应用),例如来自在所述灭屏状态下自启动的应用,以及例如来自在所述灭屏状态下出现异常的应用等等。需指出的是,在本申请实施例中,第二应用也可以包括一个或多个应用。当第二应用包括多个应用时,这多个应用可以例如一部分来自于指定的应用、来自在所述灭屏状态下自启动的应用,或者来自在所述灭屏状态下出现异常的应用。本申请实施例可以在二次省电处理时可以对来自于各种不同来源的第二应用进行处理,可以保证省电处理更加彻底,进一步节省电力消耗。In the embodiment of the present application, the second preset condition may be the same as or different from the first preset condition. Meanwhile, similar to the first preset condition, the second preset condition can also be set as needed. The second application may be associated with the first application, or may be unrelated to the first application. The second application may have one or more sources, for example, from a specified application (for example, an application set by a user), for example, from an application that starts automatically in the screen-off state, and for example, from an abnormality that occurs in the screen-off state Application and so on. It should be noted that, in the embodiments of the present application, the second application may also include one or more applications. When the second application includes a plurality of applications, the plurality of applications may be, for example, a part from a specified application, an application that is self-started in the screen-off state, or an application in which an abnormality occurs in the screen-off state. In the embodiment of the present application, the second application from various sources can be processed during the second power saving process, which can ensure a more thorough power saving process and further save power consumption.
,在第一应用包括多个目标应用的情况下,在终端处于灭屏状态而进行省电处理时,可以对所述多个目标应用中的每一个目标应用,执行以下操作: 确定所述目标应用是否满足与其对应的预设条件(第一预设条件);在所述目标应用满足与其对应的预设条件时,对所述目标应用进行省电处理。其中,所述第二应用包括以下至少一项:来自于指定的应用、在所述灭屏状态下自启动的应用,以及在所述灭屏状态下出现异常的应用。本申请实施例可以对第一应用中的一或多个目标应用进行省电处理。In the case where the first application includes multiple target applications, when the terminal is in a screen-off state and performs power saving processing, the following operations may be performed for each target application among the multiple target applications: determining the target Whether the application satisfies the preset condition corresponding to it (the first preset condition); when the target application satisfies the preset condition corresponding to it, power saving processing is performed on the target application. Wherein, the second application includes at least one of the following: an application from a specified application, an application that starts automatically in the screen-off state, and an application in which an abnormality occurs in the screen-off state. The embodiment of the present application may perform power saving processing on one or more target applications in the first application.
在本申请实施例中,一旦终端处于灭屏状态下,终端后台可保持持续检测第二指定操作,如果检测出具有第二指定操作的应用,可对检测出的应用立即进行省电处理,或者进一步判断检测出的应用是否满足对应的预设条件,并可在应用满足对应的预设条件时进行省电处理。In the embodiment of the present application, once the terminal is in the screen-off state, the background of the terminal may keep continuously detecting the second designated operation, and if an application with the second designated operation is detected, the detected application may be immediately subjected to power saving processing, or It is further determined whether the detected application satisfies the corresponding preset condition, and can perform power saving processing when the application satisfies the corresponding preset condition.
同时需了解的是,在第一应用包括多个目标应用的情况下,可以将这多个目标应用记录到待省电处理应用列表中。后续在灭屏状态下,可以针对待省电处理应用列表中的每一目标应用,在其满足对应的预设条件时,进行省电处理。At the same time, it should be understood that, in the case where the first application includes multiple target applications, the multiple target applications may be recorded in the list of applications to be processed for power saving. Subsequently, in the screen-off state, power saving processing may be performed for each target application in the application list for power saving processing when it meets the corresponding preset condition.
此外,待省电处理应用列表中的各个目标应用在受到与其对应的解冻触发指令时,可以相应进行解冻处理。举例而言,当用户重新使用受冻结的应用时,只需通过终端正常点击此应用即可,终端会主动释放对该应用的冻结控制,如此该应用无需再次初始化运行,提升了应用加载显示的时间,对应用启动性能是一个提升。In addition, each target application in the application list of the power-saving processing can perform the defrosting process correspondingly when receiving the corresponding defrosting trigger instruction. For example, when the user re-uses the frozen application, just click the application normally through the terminal, the terminal will actively release the freezing control of the application, so that the application does not need to be initialized and run again, which improves the application loading display Time is an improvement to application startup performance.
图2是本申请实施例提供的一种省电方法的流程图。参照图2,本申请实施例提供的省电方法可应用于终端,且可包括:步骤210,在终端处于亮屏状态的情况下,检测终端中出现第一指定操作的应用,将出现所述第一指定操作的应用作为需要进行省电处理的第一应用(异常耗电应用)。2 is a flowchart of a power saving method provided by an embodiment of the present application. Referring to FIG. 2, the power saving method provided by the embodiment of the present application may be applied to a terminal, and may include: Step 210, when the terminal is in a bright screen state, detecting that an application of a first specified operation occurs in the terminal, the The application of the first designated operation serves as the first application (abnormal power consumption application) that requires power saving processing.
其中,所述第一指定操作包括但不限于以下至少一项:持续占用CPU的时间超过第一阈值、持锁时间超过第二阈值、内存占用超过第三阈值、持续定位超过第四阈值以及持续申请传感器超过第五阈值等等。这里,各个阈值可以按照实际需求来设定。Wherein, the first designated operation includes but is not limited to at least one of the following: continuously occupying CPU time exceeds a first threshold, holding time exceeds a second threshold, memory occupancy exceeds a third threshold, continuous positioning exceeds a fourth threshold, and continues Apply for sensors that exceed the fifth threshold and so on. Here, each threshold can be set according to actual needs.
其中,第一应用可以涵盖各种应用。例如,如果一个导航应用为出现第一指定操作的应用,则可将这个导航应用作为第一应用。如果一个视频播放应用为出现第一指定操作的应用,则可将这个视频播放应用作为第一应用。Among them, the first application may cover various applications. For example, if a navigation application is an application where the first specified operation occurs, this navigation application may be used as the first application. If a video playback application is an application where the first specified operation occurs, the video playback application may be used as the first application.
步骤220,将所述第一应用记录到待省电处理应用列表中。Step 220: Record the first application into a list of applications to be processed for power saving.
其中,待省电处理应用列表可保持在终端的各种存储器中。Among them, the application list to be saved for power saving can be kept in various memories of the terminal.
步骤230,在所述终端处于灭屏状态的情况下,查找(例如遍历)所述待省电处理应用列表,以获取所述第一应用。Step 230: When the terminal is in a screen-off state, search (eg, traverse) the list of applications to be saved for power saving to obtain the first application.
步骤240,在所述终端处于灭屏状态的情况下,确定所述第一应用是否满足第一预设条件。Step 240: In a case where the terminal is in a screen-off state, determine whether the first application meets a first preset condition.
步骤242,在所述第一应用满足所述第一预设条件时,对所述第一应用进行省电处理。 Step 242, when the first application meets the first preset condition, perform power saving processing on the first application.
步骤244,在所述第一应用不满足所述第一预设条件时,暂停对所述第一应用进行省电处理,并检测所述第一应用在所述灭屏状态下的操作。Step 244: When the first application does not satisfy the first preset condition, suspend power-saving processing of the first application, and detect the operation of the first application in the screen-off state.
步骤246,基于所述第一应用的操作,确定所述第一应用是否满足第一补充条件。Step 246: Based on the operation of the first application, determine whether the first application meets the first supplementary condition.
其中,第一补充条件可以按需要来设置。第一补充条件可以与第一预设条件相同,也可以是与第一预设条件相比要求降低了的条件。Among them, the first supplementary condition can be set as needed. The first supplementary condition may be the same as the first preset condition, or may be a condition with a reduced requirement compared to the first preset condition.
步骤248,在所述第一应用满足所述第一补充条件时,对所述第一应用进行省电处理。Step 248: When the first application meets the first supplementary condition, perform power saving processing on the first application.
这里,在所述第一应用不满足所述第一补充条件时,可不对所述第一应用进行省电处理。Here, when the first application does not satisfy the first supplementary condition, the first application may not be subjected to power saving processing.
其中,所述省电处理包括以下一项:冻结所述第一应用;结束所述第一应用;以及使针对所述第一应用的包或组件不可用。The power saving process includes one of the following: freezing the first application; ending the first application; and making the package or component for the first application unavailable.
步骤250,在所述终端处于灭屏状态的情况下,检测所述终端中出现第二指定操作的应用,将出现所述第二指定操作的应用作为第二应用。Step 250: When the terminal is in a screen-off state, detect an application in which a second designated operation occurs in the terminal, and use the application in which the second designated operation appears as the second application.
其中,所述第二指定操作包括但不限于以下至少一项:持续占用CPU 的时间超过第六阈值、持锁时间超过第七阈值、内存占用超过第八阈值、持续定位超过第九阈值以及持续申请传感器超过第十阈值。这里,各个阈值可以按照实际需求来设定。且第六阈值至第十阈值可以与第一阈值至第五阈值相关联。Wherein, the second designated operation includes but is not limited to at least one of the following: continuously occupying CPU time exceeding the sixth threshold, holding time exceeding the seventh threshold, memory occupation exceeding the eighth threshold, continuing positioning exceeding the ninth threshold, and continuing The application sensor exceeds the tenth threshold. Here, each threshold can be set according to actual needs. And the sixth threshold to the tenth threshold may be associated with the first threshold to the fifth threshold.
所述第二应用可包括以下至少一项:指定的应用、在所述灭屏状态下自启动的应用,以及在所述灭屏状态下出现异常的应用。The second application may include at least one of the following: a specified application, an application that starts automatically in the screen-off state, and an application in which an abnormality occurs in the screen-off state.
其中,第二应用可以为异常耗电应用,且可以涵盖各种应用。指定的应用可以为用户设置为需要进行省电处理的应用,如此,用户通过设置可以主动对某些应用进行省电处理,增强了交互性,更好地满足用户需求。Among them, the second application may be an abnormal power-consuming application, and may cover various applications. The specified application can be set for the user as an application that requires power-saving processing. In this way, the user can proactively perform power-saving processing for certain applications through settings, which enhances interactivity and better meets user needs.
在所述灭屏状态下自启动的应用可以为例如一些流氓应用,在灭屏状态下在用户不知情的情况下启动的应用。The self-starting application in the screen-off state may be, for example, some rogue applications, and the application is started in the screen-off state without the user's knowledge.
在所述灭屏状态下出现异常的应用可以为一些在灭屏状态下例如频繁唤醒终端的应用。其中,出现异常的应用的判定标准可以不同,可以由终端厂商内置于终端中,也可以由用户主动设置。The applications that appear abnormal in the screen-off state may be some applications that frequently wake up the terminal in the screen-off state, for example. Among them, the criteria for determining an abnormal application may be different, may be built into the terminal by the terminal manufacturer, or may be actively set by the user.
在本申请实施例中,第二应用可不记录到待省电处理应用列表中。In the embodiment of the present application, the second application may not be recorded in the application list to be saved.
步骤260,确定所述第二应用是否满足对应的预设条件,并在所述第二应用满足对应的预设条件时,对所述第二应用进行省电处理。Step 260: Determine whether the second application meets the corresponding preset condition, and perform power saving processing on the second application when the second application meets the corresponding preset condition.
对所述第二应用进行省电处理包括以下一项:冻结所述第二应用;结束所述第二应用;以及使针对所述第二应用的包或组件不可用。Performing power saving processing on the second application includes one of: freezing the second application; ending the second application; and making the package or component for the second application unavailable.
在本申请实施例中,在第二应用满足对应的预设条件时,可以直接对第二应用进行省电处理,而不记录到待省电处理应用列表中。In the embodiment of the present application, when the second application satisfies the corresponding preset condition, the second application may directly perform power saving processing without being recorded in the application list to be saved.
当然,在本申请实施例中,也可以直接对第二应用进行省电处理,而无需判断第二应用是否满足对应的预设条件,如此可以更加便捷和快速地进行省电操作。Of course, in the embodiment of the present application, the power saving process can also be directly performed on the second application without determining whether the second application meets the corresponding preset condition, so that the power saving operation can be performed more conveniently and quickly.
需了解的是,以上多个步骤未必按顺序执行。例如,步骤240和步骤250可以并行执行,步骤250可以在步骤240之前执行,步骤250也可以在步骤240 的执行过程中执行。It should be understood that the above steps are not necessarily performed in order. For example, step 240 and step 250 may be performed in parallel, step 250 may be performed before step 240, and step 250 may also be performed during the execution of step 240.
同时需了解的是,在对第一应用进行的省电处理是冻结处理的情况下,在对亮屏状态下,可以在接收到针对所述第一应用的解冻触发指令(例如,点击启动第一应用)时,对所述待省电处理应用列表中记录的所述第一应用进行解冻处理。如此,可以快速恢复待省电处理应用列表中记录的第一应用。举例而言,当用户重新使用受冻结的应用时,如果通过点击触发此应用启动,终端会主动释放对该应用的冻结控制,如此该应用无需再次初始化运行,提升了应用加载显示的时间,对应用启动性能是一个提升。It should also be understood that, in the case where the power saving process performed on the first application is a freeze process, in the bright screen state, an unfreeze trigger instruction for the first application may be received (for example, click Start An application), defrosting the first application recorded in the application list to be saved. In this way, the first application recorded in the application list to be saved for power saving can be quickly restored. For example, when a user reuses a frozen application, if the application is triggered to start by clicking, the terminal will actively release the freezing control of the application, so that the application does not need to be initialized again, which increases the time for the application to load and display. Application startup performance is an improvement.
本申请实施例通过在亮屏状态下获取需要进行省电处理的第一应用,可不对第一应用进行省电处理,因而不会影响用户在亮屏状态下对应用的使用,而在灭屏状态下对第一应用进行省电处理,因而可以实现省电目的,由于用户操作应用都是在亮屏状态下进行的,用户在灭屏状态下不会操作应用,因而可以达到在节省电力消耗的同时减少对用户在使用应用上的影响。而且,在亮屏状态下通过检测而获取需要进行省电处理的第一应用,可以保证获取到的应用为需要进行省电处理的应用,避免因不恰当地对某一应用进行省电处理,而影响用户使用这一应用的问题,进一步降低了对用户在使用应用上的影响。In this embodiment of the present application, by acquiring the first application that requires power saving processing in the bright screen state, power saving processing may not be performed on the first application, so that it does not affect the user's use of the application in the bright screen state, and the screen is turned off. The first application performs power saving processing in the state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright screen state, the user does not operate the application in the screen off state, and thus can save power consumption At the same time reduce the impact on users in using applications. Moreover, acquiring the first application that requires power-saving processing through detection in the bright screen state can ensure that the acquired application is an application that requires power-saving processing, and avoids the power-saving processing of an application due to inappropriate, The problems that affect users 'use of this application further reduce the impact on users' use of the application.
同时,本申请实施例通过对终端灭屏后存在的应用进行两次省电处理,可以保证省电处理更彻底,进一步节省终端的电力消耗。At the same time, in the embodiments of the present application, by performing power saving processing twice on applications that exist after the terminal is turned off, the power saving processing can be ensured to be more thorough, and the power consumption of the terminal can be further saved.
进程冻结是一种可靠的后台行为管控办法。以冻结为例,本申请实施例通过识别终端中正在运行的、异常的、无用户需求的应用进程,实时合理地对应用进程进行冻结控制处理,可以在不影响正常使用应用的情况下限制其使用终端的系统资源,从而减少电池损耗。Process freezing is a reliable method of background behavior control. Taking freezing as an example, the embodiments of the present application identify the running, abnormal, and user-free application processes in the terminal, and reasonably perform freeze control processing on the application processes in real time, which can limit the application without affecting the normal use of the application. Use the system resources of the terminal to reduce battery consumption.
图3是本申请实施例提供的一种省电装置的结构框图。参照图3,本申请实施例提供的省电装置300包括:获取模块310和处理模块320,其中,所述获取模块310,用于在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;所述处理模块320用于在所述终端处于灭屏状态的 情况下,对所述获取模块310获取的所述第一应用进行省电处理。FIG. 3 is a structural block diagram of a power saving device provided by an embodiment of the present application. Referring to FIG. 3, the power saving device 300 provided by an embodiment of the present application includes: an acquisition module 310 and a processing module 320, wherein the acquisition module 310 is configured to acquire a need by detecting when the terminal is in a bright screen state A first application that performs power saving processing; the processing module 320 is configured to perform power saving processing on the first application acquired by the acquiring module 310 when the terminal is in a screen-off state.
本申请实施例通过在亮屏状态下获取需要进行省电处理的第一应用,可不对第一应用进行省电处理,因而不会影响用户在亮屏状态下对应用的使用,而在灭屏状态下对第一应用进行省电处理,因而可以实现省电目的,由于用户操作应用都是在亮屏状态下进行的,用户在灭屏状态下不会操作应用,因而可以达到在节省电力消耗的同时减少对用户在使用应用上的影响。而且,在亮屏状态下通过检测而获取需要进行省电处理的第一应用,可以保证获取到的应用为需要进行省电处理的应用,避免因不恰当地对某一应用进行省电处理,而影响用户使用这一应用的问题,进一步降低了对用户在使用应用上的影响。In this embodiment of the present application, by acquiring the first application that requires power saving processing in the bright screen state, power saving processing may not be performed on the first application, so that it does not affect the user's use of the application in the bright screen state, and the screen is turned off. The first application performs power saving processing in the state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright screen state, the user does not operate the application in the screen off state, and thus can save power consumption At the same time reduce the impact on users in using applications. Moreover, acquiring the first application that requires power-saving processing through detection in the bright screen state can ensure that the acquired application is an application that requires power-saving processing, and avoids the power-saving processing of an application due to inappropriate, The problems that affect users 'use of this application further reduce the impact on users' use of the application.
,在本申请的一个实施例中,所述处理模块320可具体用于:在所述终端处于灭屏状态的情况下时,确定所述第一应用是否满足第一预设条件,在所述第一应用满足所述第一预设条件时,对所述第一应用进行省电处理。其中,对所述第一应用进行省电处理包括以下一项:冻结所述第一应用;结束所述第一应用;以及使针对所述第一应用的包或组件不可用。In an embodiment of the present application, the processing module 320 may be specifically configured to: when the terminal is in a screen-off state, determine whether the first application satisfies the first preset condition. When the first application meets the first preset condition, power saving processing is performed on the first application. Wherein, performing power saving processing on the first application includes one of: freezing the first application; ending the first application; and making the package or component for the first application unavailable.
,在本申请的一个实施例中,所述处理模块320可具体用于:在所述第一应用不满足所述第一预设条件时,检测所述第一应用在所述灭屏状态下的操作;基于所述第一应用的操作,确定所述第一应用是否满足第一补充条件;在所述第一应用满足所述第一补充条件时,对所述第一应用进行省电处理。In an embodiment of the present application, the processing module 320 may be specifically configured to: when the first application does not satisfy the first preset condition, detect that the first application is in the screen-off state Based on the operation of the first application, determining whether the first application meets the first supplementary condition; when the first application meets the first supplementary condition, perform power saving processing on the first application .
,在本申请的一个实施例中,所述获取模块310还用于:在所述终端处于灭屏状态的情况下,获取第二应用。相应地,所述处理模块320还用于:确定所述第二应用是否满足第二预设条件,并在所述第二应用满足所述第二预设条件时,对所述第二应用进行省电处理。其中,对所述第二应用进行省电处理包括:对所述第二应用进行如下一种操作:冻结所述第二应用;结束所述第二应用;使针对所述第二应用的包或组件不可用。In an embodiment of the present application, the acquiring module 310 is further used to acquire the second application when the terminal is in the screen-off state. Correspondingly, the processing module 320 is further configured to: determine whether the second application satisfies the second preset condition, and perform a process on the second application when the second application satisfies the second preset condition Power saving processing. Wherein, performing power saving processing on the second application includes: performing one of the following operations on the second application: freezing the second application; ending the second application; and making a packet or The component is not available.
,在本申请的一个实施例中,所述第一应用包括多个目标应用,在对所述第一应用进行省电处理时,所述处理模块320可具体用于:在所述终端处于 所述灭屏状态的情况下,对于所述多个目标应用中的每一个目标应用,执行以下操作:确定所述目标应用是否满足与其对应的预设条件;在所述目标应用满足与其对应的预设条件时,对所述目标应用进行省电处理。其中,所述第二应用可包括以下至少一项:指定的应用、在所述灭屏状态下自启动的应用,以及在所述灭屏状态下出现异常的应用。In an embodiment of the present application, the first application includes multiple target applications. When performing power saving processing on the first application, the processing module 320 may be specifically used to: In the case of the screen-off state, for each target application in the plurality of target applications, perform the following operations: determine whether the target application satisfies a preset condition corresponding to the target application; When setting conditions, perform power saving processing on the target application. Wherein, the second application may include at least one of the following: a designated application, an application that starts automatically in the screen-off state, and an application in which an abnormality occurs in the screen-off state.
,在本申请的一个实施例中,所述第一应用和所述第二应用为异常耗电应用,在获取第一应用时,所述获取模块310可具体用于:在所述终端处于亮屏状态的情况下,检测所述终端中出现第一指定操作的应用,将出现所述第一指定操作的应用作为所述第一应用。其中,所述第一指定操作包括以下至少一项:持续占用CPU的时间超过第一阈值、持锁时间超过第二阈值、内存占用超过第三阈值、持续定位超过第四阈值以及持续申请传感器超过第五阈值。In an embodiment of the present application, the first application and the second application are abnormal power-consuming applications. When acquiring the first application, the acquiring module 310 may be specifically used to: In the case of the screen state, it is detected that the application of the first designated operation appears in the terminal, and the application where the first designated operation appears is the first application. Wherein, the first designated operation includes at least one of the following: continuously occupying CPU time exceeding a first threshold, holding time exceeding a second threshold, memory consumption exceeding a third threshold, continuously locating exceeding a fourth threshold, and continuously applying for sensors to exceed The fifth threshold.
在获取第二应用时,所述获取模块310可具体用于:在所述终端处于灭屏状态的情况下,检测所述终端中出现第二指定操作的应用,将出现所述第二指定操作的应用作为所述第二应用。其中,所述第二指定操作包括以下至少一项:持续占用CPU的时间超过第六阈值、持锁时间超过第七阈值、内存占用超过第八阈值、持续定位超过第九阈值以及持续申请传感器超过第十阈值。When acquiring the second application, the acquiring module 310 may be specifically configured to: when the terminal is in a screen-off state, detect an application in which a second specified operation occurs in the terminal, and the second specified operation will appear As the second application. Wherein, the second designated operation includes at least one of the following: continuously occupying CPU time exceeding the sixth threshold, holding time exceeding the seventh threshold, memory consumption exceeding the eighth threshold, continuously locating exceeding the ninth threshold, and continuously applying for sensors to exceed The tenth threshold.
,在本申请的一个实施例中,所述省电装置还包括管理模块,用于将所述第一应用记录到待省电处理应用列表中,在所述终端处于灭屏状态的情况下,遍历所述待省电处理应用列表,以获取所述第一应用,并将所述第一应用告知所述处理模块320。In an embodiment of the present application, the power saving device further includes a management module for recording the first application into a list of power saving processing applications, and when the terminal is in a screen-off state, Traverse the list of applications to be saved for power saving to obtain the first application, and notify the processing module 320 of the first application.
,在本申请的一个实施例中,对所述第一应用进行的省电处理为冻结处理,所述获取模块310还用于:接收针对所述第一应用的解冻触发指令。相应地,所述处理模块320还用于在接收到针对所述第一应用的解冻触发指令时,对所述待省电处理应用列表中记录的所述第一应用进行解冻处理。In an embodiment of the present application, the power saving process performed on the first application is a freezing process, and the acquiring module 310 is further configured to: receive an unfreezing trigger instruction for the first application. Correspondingly, the processing module 320 is further configured to, when receiving an unfreezing trigger instruction for the first application, perform unfreezing processing on the first application recorded in the to-be-power-saving processing application list.
图4是本申请实施例提供的一种终端的示意图。参照图4,本申请实施例提供的一种终端400可包括:存储器410以及处理器420,所述存储器410 上可存储计算机程序,当所述计算机程序被所述处理器420执行时可实现上文所描述的任一种省电中的步骤。例如,当所述计算机程序被所述处理器420执行时可执行以下操作:在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理。4 is a schematic diagram of a terminal provided by an embodiment of the present application. Referring to FIG. 4, a terminal 400 provided by an embodiment of the present application may include: a memory 410 and a processor 420, and a computer program may be stored on the memory 410, which may be implemented when the computer program is executed by the processor 420 Any of the steps described in this article to save power. For example, when the computer program is executed by the processor 420, the following operations may be performed: when the terminal is in a bright screen state, obtain the first application that requires power-saving processing by detection; In the case of the screen off state, power saving processing is performed on the first application.
在本申请实施例中,通过在亮屏状态下获取需要进行省电处理的第一应用,可不对第一应用进行省电处理,因而不会影响用户在亮屏状态下对应用的使用,而在灭屏状态下对第一应用进行省电处理,因而可以实现省电目的,由于用户操作应用都是在亮屏状态下进行的,用户在灭屏状态下不会操作应用,因而可以达到在节省电力消耗的同时减少对用户在使用应用上的影响。而且,在亮屏状态下通过检测而获取需要进行省电处理的第一应用,可以保证获取到的应用为需要进行省电处理的应用,避免因不恰当地对某一应用进行省电处理,而影响用户使用这一应用的问题,进一步降低了对用户在使用应用上的影响。In the embodiment of the present application, by acquiring the first application that requires power saving processing in the bright screen state, power saving processing may not be performed on the first application, so that it does not affect the user's use of the application in the bright screen state, and The power saving process is performed on the first application in the screen off state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright screen state, the user does not operate the application in the screen off state, so it can achieve While saving power consumption, it reduces the impact on users in using applications. Moreover, acquiring the first application that requires power-saving processing through detection in the bright screen state can ensure that the acquired application is an application that requires power-saving processing, and avoids the power-saving processing of an application due to inappropriate, The problems that affect users 'use of this application further reduce the impact on users' use of the application.
此外,本申请实施例还可提供一种非临时性计算机可读存储介质,所述存储介质上存储计算机程序,当所述计算机程序被执行时实现上文所描述的任一种省电方法中的步骤。例如,所述计算机程序被执行时执行以下操作:在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理。In addition, the embodiments of the present application may also provide a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, any of the power saving methods described above is implemented A step of. For example, when the computer program is executed, the following operations are performed: when the terminal is in a bright screen state, the first application that requires power-saving processing is acquired by detection; when the terminal is in a blank state, Perform power saving processing on the first application.
本申请实施例提供的非临时性计算机可读存储介质,通过在亮屏状态下获取需要进行省电处理的第一应用,可不对第一应用进行省电处理,因而不会影响用户在亮屏状态下对应用的使用,而在灭屏状态下对第一应用进行省电处理,因而可以实现省电目的,由于用户操作应用都是在亮屏状态下进行的,用户在灭屏状态下不会操作应用,因而可以达到在节省电力消耗的同时减少对用户在使用应用上的影响。而且,在亮屏状态下通过检测而获取需要进行省电处理的第一应用,可以保证获取到的应用为需要进行省电处理的应用,避免因不 恰当地对某一应用进行省电处理,而影响用户使用这一应用的问题,进一步降低了对用户在使用应用上的影响。The non-transitory computer-readable storage medium provided by the embodiment of the present application can obtain the first application that needs to be processed for power saving in the bright screen state, so that the first application can be saved without power saving, and thus does not affect the user on the bright screen The use of the application in the state, and the power saving process of the first application in the screen off state, so that the purpose of power saving can be achieved. Since the user operates the application in the bright state, the user does not Can operate applications, so you can achieve a reduction in power consumption while reducing the impact on users in using applications. Moreover, acquiring the first application that requires power-saving processing through detection in the bright screen state can ensure that the acquired application is an application that requires power-saving processing, and avoids the power-saving processing of an application due to inappropriate, The problems that affect users 'use of this application further reduce the impact on users' use of the application.
本领域内的技术人员应明白,本申请的实施例可提供为方法、装置、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the application. It should be understood that each flow and / or block in the flowchart and / or block diagram and a combination of the flow and / or block in the flowchart and / or block diagram may be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device An apparatus for realizing the functions specified in one block or multiple blocks of one flow or multiple flows of a flowchart and / or one block or multiple blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device The instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。 内存是计算机可读介质的示例。The memory may include non-permanent memory, random access memory (RAM) and / or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including permanent and non-permanent, removable and non-removable media, can store information by any method or technology. The information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements includes not only those elements, but also includes Other elements not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. Without more restrictions, the element defined by the sentence "include one ..." does not exclude that there are other identical elements in the process, method, commodity, or equipment that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实 施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order shown or sequential order to achieve the desired results. In some implementations, multitasking and parallel processing are also possible or may be advantageous.

Claims (12)

  1. 一种省电方法,应用于终端,其特征在于,包括:A power saving method applied to the terminal, which is characterized by including:
    在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;In the case where the terminal is in a bright screen state, the first application that requires power saving processing is acquired through detection;
    在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理。When the terminal is in a screen-off state, power-saving processing is performed on the first application.
  2. 根据权利要求1所述的方法,其特征在于,所述在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理包括:The method according to claim 1, wherein the power-saving processing of the first application when the terminal is in a screen-off state includes:
    在所述终端处于灭屏状态的情况下,确定所述第一应用是否满足第一预设条件;In the case where the terminal is in the screen-off state, determine whether the first application meets the first preset condition;
    在所述第一应用满足所述第一预设条件时,对所述第一应用进行省电处理;When the first application meets the first preset condition, perform power saving processing on the first application;
    其中,对所述第一应用进行省电处理包括以下一项:Wherein, performing power saving processing on the first application includes one of the following:
    冻结所述第一应用;Freeze the first application;
    结束所述第一应用;End the first application;
    使针对所述第一应用的包或组件不可用。Make the package or component for the first application unavailable.
  3. 根据权利要求2所述的方法,其特征在于,所述在所述终端处于灭屏状态的情况下,对所述第一应用进行省电处理还包括:The method according to claim 2, wherein the power saving processing of the first application when the terminal is in a screen-off state further includes:
    在所述第一应用不满足所述第一预设条件时,检测所述第一应用在所述灭屏状态下的操作;When the first application does not satisfy the first preset condition, detecting the operation of the first application in the screen-off state;
    基于所述第一应用的操作,确定所述第一应用是否满足第一补充条件;Based on the operation of the first application, determining whether the first application meets the first supplementary condition;
    在所述第一应用满足所述第一补充条件时,对所述第一应用进行省电处理。When the first application meets the first supplementary condition, perform power saving processing on the first application.
  4. 根据权利要求1-3任一所述的方法,其特征在于,所述省电方法还包括:The method according to any one of claims 1-3, wherein the power saving method further comprises:
    在所述终端处于灭屏状态的情况下,获取第二应用,确定所述第二应用是否满足第二预设条件;In the case where the terminal is in a screen-off state, obtain a second application, and determine whether the second application meets a second preset condition;
    在所述第二应用满足所述第二预设条件时,对所述第二应用进行省电处理;When the second application meets the second preset condition, perform power saving processing on the second application;
    其中,对所述第二应用进行省电处理包括以下一项:Wherein, performing power saving processing on the second application includes one of the following:
    冻结所述第二应用;Freeze the second application;
    结束所述第二应用;End the second application;
    使针对所述第二应用的包或组件不可用。Make the package or component for the second application unavailable.
  5. 根据权利要求4所述的方法,其特征在于,The method according to claim 4, characterized in that
    所述第二应用为指定的应用、在所述灭屏状态下自启动的应用或者在所述灭屏状态下出现异常的应用。The second application is a designated application, an application that starts automatically in the screen-off state, or an application in which an abnormality occurs in the screen-off state.
  6. 根据权利要求1-3任一所述的方法,其特征在于,The method according to any one of claims 1-3, characterized in that
    所述在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用包括:在所述终端处于亮屏状态的情况下,检测所述终端中出现第一指定操作的应用,将出现所述第一指定操作的应用作为所述第一应用;When the terminal is in a bright screen state, acquiring the first application that requires power-saving processing through detection includes: detecting that a first designated operation occurs in the terminal when the terminal is in a bright screen state , The application that appears the first specified operation as the first application;
    其中,所述第一指定操作包括以下至少一项:持续占用CPU的时间超过第一阈值、持锁时间超过第二阈值、内存占用超过第三阈值、持续定位超过第四阈值以及持续申请传感器超过第五阈值。Wherein, the first designated operation includes at least one of the following: continuously occupying CPU time exceeding a first threshold, holding time exceeding a second threshold, memory consumption exceeding a third threshold, continuously locating exceeding a fourth threshold, and continuously applying for sensors to exceed The fifth threshold.
  7. 根据权利要求4所述的方法,其特征在于,所述获取第二应用包括:在所述终端处于灭屏状态的情况下,检测所述终端中出现第二指定操作的应用,将出现所述第二指定操作的应用作为所述第二应用;The method according to claim 4, wherein the acquiring the second application comprises: detecting that an application of a second specified operation occurs in the terminal when the terminal is in a screen-off state, and the An application of a second designated operation as the second application;
    其中,所述第二指定操作包括以下至少一项:持续占用CPU的时间超过第六阈值、持锁时间超过第七阈值、内存占用超过第八阈值、持续定位超过第九阈值以及持续申请传感器超过第十阈值。Wherein, the second designated operation includes at least one of the following: continuously occupying CPU time exceeding the sixth threshold, holding time exceeding the seventh threshold, memory consumption exceeding the eighth threshold, continuously locating exceeding the ninth threshold, and continuously applying for sensors to exceed The tenth threshold.
  8. 根据权利要求1所述的方法,其特征在于,在所述获取需要进行省电处理的第一应用之后,所述省电方法还包括:The method according to claim 1, wherein after acquiring the first application that requires power saving processing, the power saving method further includes:
    将所述第一应用记录到待省电处理应用列表中;Record the first application to a list of applications to be processed for power saving;
    在所述对所述第一应用进行省电处理之前,所述省电方法还包括:在所述 终端处于灭屏状态的情况下,遍历所述待省电处理应用列表,以获取所述第一应用。Before the power saving process is performed on the first application, the power saving method further includes: traversing the list of applications to be saved for power saving to obtain the first One application.
  9. 根据权利要求8所述的方法,其特征在于,对所述第一应用进行的省电处理为冻结处理,在所述对所述第一应用进行省电处理之后,所述方法还包括:The method according to claim 8, wherein the power saving process performed on the first application is a freeze process, and after the power saving process performed on the first application, the method further includes:
    在接收到针对所述第一应用的解冻触发指令时,对所述待省电处理应用列表中记录的所述第一应用进行解冻处理。When receiving an unfreezing trigger instruction for the first application, unfreezing processing is performed on the first application recorded in the to-be-power-saving processing application list.
  10. 一种省电装置,其特征在于,包括:获取模块和处理模块,其中,所述获取模块,用于在所述终端处于亮屏状态的情况下,通过检测获取需要进行省电处理的第一应用;所述处理模块用于在所述终端处于灭屏状态的情况下,对所述获取模块获取的所述第一应用进行省电处理。A power saving device, characterized by comprising: an obtaining module and a processing module, wherein the obtaining module is used to obtain the first power saving processing by detecting when the terminal is in a bright screen state Application; the processing module is configured to perform power saving processing on the first application acquired by the acquiring module when the terminal is in a screen-off state.
  11. 一种终端,其特征在于,包括存储器和处理器,所述存储器上存储计算机程序,当所述计算机程序被执行时实现根据权利要求1-9任一所述的省电方法中的步骤。A terminal is characterized by comprising a memory and a processor, a computer program is stored on the memory, and when the computer program is executed, the steps in the power saving method according to any one of claims 1-9 are realized.
  12. 一种非临时性计算机可读存储介质,其特征在于,所述存储介质上存储计算机程序,当所述计算机程序被执行时实现根据权利要求1-9任一所述的省电方法中的步骤。A non-transitory computer-readable storage medium, characterized in that a computer program is stored on the storage medium, and when the computer program is executed, the steps in the power saving method according to any one of claims 1-9 are realized .
PCT/CN2019/113465 2018-11-09 2019-10-25 Power saving method and apparatus, and storage medium WO2020093888A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811329115.X 2018-11-09
CN201811329115.XA CN111176420A (en) 2018-11-09 2018-11-09 Power saving method, device and storage medium

Publications (1)

Publication Number Publication Date
WO2020093888A1 true WO2020093888A1 (en) 2020-05-14

Family

ID=70610818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/113465 WO2020093888A1 (en) 2018-11-09 2019-10-25 Power saving method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN111176420A (en)
WO (1) WO2020093888A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9229522B1 (en) * 2013-08-27 2016-01-05 Symantec Corporation Mobile battery performance by identifying apps that disproportionally run background tasks that prevent mobile devices from sleeping
CN105718028A (en) * 2016-01-22 2016-06-29 青岛海信移动通信技术股份有限公司 Power-saving method and device based on power consumption application recognition
CN106125883A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Intelligent terminal and control method thereof
CN106502371A (en) * 2016-11-08 2017-03-15 珠海市魅族科技有限公司 A kind of electricity-saving control method and device
CN107132905A (en) * 2017-03-28 2017-09-05 深圳市金立通信设备有限公司 Terminal communication control method and terminal
CN107302627A (en) * 2017-05-23 2017-10-27 深圳天珑无线科技有限公司 Improve method, mobile terminal and the storage device of mobile terminal endurance
CN107332992A (en) * 2017-06-29 2017-11-07 维沃移动通信有限公司 A kind of video broadcasting method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677386A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Application program management method and device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9229522B1 (en) * 2013-08-27 2016-01-05 Symantec Corporation Mobile battery performance by identifying apps that disproportionally run background tasks that prevent mobile devices from sleeping
CN105718028A (en) * 2016-01-22 2016-06-29 青岛海信移动通信技术股份有限公司 Power-saving method and device based on power consumption application recognition
CN106125883A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Intelligent terminal and control method thereof
CN106502371A (en) * 2016-11-08 2017-03-15 珠海市魅族科技有限公司 A kind of electricity-saving control method and device
CN107132905A (en) * 2017-03-28 2017-09-05 深圳市金立通信设备有限公司 Terminal communication control method and terminal
CN107302627A (en) * 2017-05-23 2017-10-27 深圳天珑无线科技有限公司 Improve method, mobile terminal and the storage device of mobile terminal endurance
CN107332992A (en) * 2017-06-29 2017-11-07 维沃移动通信有限公司 A kind of video broadcasting method and mobile terminal

Also Published As

Publication number Publication date
CN111176420A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
WO2018103401A1 (en) Wireless fidelity wi-fi scanning method and related product
JP6639665B2 (en) Method, apparatus and terminal for terminal-based wakelock control
US8719630B2 (en) Method and apparatus for monitoring interrupts during a power down event at a processor
TWI421676B (en) Method, system and apparatus for low-power storage of processor context information
WO2020052471A1 (en) Method and apparatus for detecting application to be managed, method and apparatus for controlling application, terminal, and storage medium
JP2013534015A (en) Parallel use of embedded non-volatile memory and main volatile memory in mobile devices
US20150033049A1 (en) Method, device and mobile terminal for information backup
CN110971430A (en) Automatic capacity expansion and reduction control method and device, storage medium and processor
US8589933B2 (en) Low power execution of a multithreaded program
US9965626B2 (en) Memory attack detection
KR20160145755A (en) Method, device and mobile terminal for reducing power consumption
WO2019233466A1 (en) Method and device used for application protection
WO2020093888A1 (en) Power saving method and apparatus, and storage medium
EP3962180A1 (en) Network-based control method for power consumption of applications, terminal and storage medium
WO2021037111A1 (en) Application management method and apparatus, terminal, and readable storage medium
JP2009037403A (en) Valid activation method for core memory in multi-core processor
US20180309702A1 (en) Method and device for processing data after restart of node
US11681601B2 (en) Application program management method and apparatus, and storage medium
WO2020052472A1 (en) Method and device for detecting and controlling abnormal application, terminal, and storage medium
WO2020224417A1 (en) Method and apparatus for controlling power consumption of terminal, terminal, and computer-readable storage medium
WO2020094125A1 (en) Application control method, device, terminal, and computer-readable storage medium
CN111159782B (en) Safety task processing method and electronic equipment
US9684355B2 (en) Identifying power state changes
US20170300104A1 (en) Power-saving method and an electronic device for performing power consumption management
CN107735772B (en) Data writing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19881425

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19881425

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17.09.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19881425

Country of ref document: EP

Kind code of ref document: A1