WO2017206886A1 - 一种唤醒锁释放方法、装置、存储介质及电子设备 - Google Patents

一种唤醒锁释放方法、装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2017206886A1
WO2017206886A1 PCT/CN2017/086483 CN2017086483W WO2017206886A1 WO 2017206886 A1 WO2017206886 A1 WO 2017206886A1 CN 2017086483 W CN2017086483 W CN 2017086483W WO 2017206886 A1 WO2017206886 A1 WO 2017206886A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
wake
lock
lock release
preset condition
Prior art date
Application number
PCT/CN2017/086483
Other languages
English (en)
French (fr)
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 WO2017206886A1 publication Critical patent/WO2017206886A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a wake-up lock release method, apparatus, storage medium, and electronic device.
  • the embodiment of the invention provides a wake-up lock release method, device, storage medium and electronic device, which can save power consumption of the terminal.
  • an embodiment of the present invention provides a wake-up lock release method, including:
  • the wake lock held by the application is released.
  • an embodiment of the present invention provides a wake-up lock release apparatus, including:
  • a first wake-up lock release instruction acquisition module configured to acquire a first wake-up lock release instruction
  • An application acquiring module configured to acquire, according to the first wakelock release instruction, an application that holds a wakelock, where the wakelock is used to wake up the terminal;
  • a preset condition determining module configured to determine whether the application meets a preset condition
  • a first wake-up lock release module configured to release the wake-up lock held by the application when a preset condition is met.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform any wake-up lock release provided by an embodiment of the present invention. The steps of the method.
  • an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
  • the wake lock held by the application is released.
  • the embodiment of the invention provides a wake-up lock release method, device, storage medium and electronic device, which can save power consumption of the terminal.
  • FIG. 1 is a schematic flowchart diagram of a wake-up lock release method according to an embodiment of the present invention.
  • FIG. 2 is another schematic flowchart of a wake-up lock release method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a wake-up lock release apparatus according to an embodiment of the present invention.
  • FIG. 4 is another schematic structural diagram of a wake-up lock release device according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method and an apparatus for releasing a wake-up lock according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • third-party applications In order to meet people's needs, a large number of third-party applications will be installed in the terminal. Although these third-party applications greatly satisfy people's needs, they also bring troubles. These third-party applications often cause the backlight of the smartphone screen or the backlight of the keyboard lock to not be automatically extinguished due to the abnormal holding of the wake-up lock, which leads to a large consumption of the power of the smart phone.
  • the embodiment of the invention provides a wake-up lock release method, including:
  • the wake lock held by the application is released.
  • the step of determining whether the application meets a preset condition specifically includes:
  • the method before the step of releasing the wakelock held by the application, the method further includes:
  • the step of releasing the wake lock held by the application is performed.
  • the method before the step of determining whether an application in the application set is the same as the application, the method further includes:
  • the step of acquiring the first wakelock release command includes:
  • the wake-up lock release condition is satisfied, if no user operation is detected within the preset duration and the wake-up lock is not released, the first wake-up lock release command is acquired.
  • the step of satisfying the wake lock release condition includes:
  • the method further includes:
  • the user is prompted not to release the wake lock held by the application.
  • the method further includes:
  • the wake lock release device of the present invention can be implemented using a variety of electronic devices including, but not limited to, personal computers, server computers, handheld or laptop devices, mobile devices (such as mobile phones, personal digital assistants, media players). And so on), multiprocessor systems, consumer electronics, small computers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like.
  • the electronic device is preferably a smart mobile terminal in order to effectively reduce the power consumption of the smart mobile terminal.
  • FIG. 1 is a schematic flowchart diagram of a wake-up lock release method according to an embodiment of the present invention.
  • the wake-up lock release method of the embodiment of the present invention is used to release the wake-up lock that is abnormally held in the terminal, wherein the terminal may be a smart mobile terminal such as a smart phone or a tablet computer.
  • the terminal may be a smart mobile terminal such as a smart phone or a tablet computer.
  • a smart phone is taken as a representative of the smart mobile terminal for illustration.
  • the step of releasing the wake-up lock of the above-mentioned wake-lock release method specifically includes:
  • Step S101 acquiring a first wakelock release instruction.
  • Step S102 acquiring an application holding a wake lock according to the first wake lock release instruction, wherein the wake lock is used to wake up the terminal.
  • step S103 it is determined whether the application meets the preset condition.
  • Step S104 if it is determined in step S103 that the application satisfies the preset condition, the wakelock held by the application is released.
  • step S105 if it is determined in step S103 that the application does not satisfy the preset condition, the user is prompted not to release the wake lock held by the application.
  • step S101 the terminal acquires a first wakelock release instruction.
  • the wake-up lock is a function applied on the terminal. As long as the function is run on the terminal, the system cannot sleep and can be obtained by the application or the kernel. Depending on the type of wake-up lock, you can control the on and off of the screen backlight, and turn the keyboard backlight on and off to save energy.
  • the first wake lock release instruction is generated, and then the terminal will acquire the first wake lock release instruction. Then, the process proceeds to step S102.
  • step S102 the terminal acquires an application holding the wake lock according to the first wake lock release instruction, wherein the wake lock is used to wake up the terminal, so that the terminal keeps the screen backlight or the keyboard backlight in a bright state.
  • the wake-up lock of the SCREEN_DIM_WAKE_LOCK type keeps the processor running, allowing the screen display to be kept but may be gray, allowing the keyboard light to be turned off, and the wake lock retention processing of the SCREEN_BRIGHT_WAKE_LOCK type is allowed to be processed.
  • the device is running, allowing the screen to remain highlighted, allowing the keyboard light to be turned off and the wake-up lock of the FULL_WAKE_LOCK type to keep the processor running, keeping the screen highlighted, and the keyboard light to remain bright.
  • These three types can control the opening and closing of the screen backlight and the opening and closing of the keyboard backlight. Therefore, in the embodiment of the present invention, an application holding the three types of wake locks can be obtained. Then, the process proceeds to step S103.
  • step S103 the terminal determines whether the application meets the preset condition. If the preset condition is met, the process proceeds to step S103. If the preset condition is not met, the process proceeds to step S104.
  • the terminal can determine whether the application meets the preset condition running in the background. If it runs in the background, it determines that the application meets the preset condition; if it does not exist The same application as the app determines that the app does not meet the preset criteria.
  • step S104 if the terminal determines that the application meets the preset condition in step S103, it indicates that the wakelock held by the application can be released to reduce unnecessary power consumption, and the terminal releases the wakelock held by the application. Specifically, if the application satisfies the preset condition of running in the background, the wake lock can be released by causing the application to exit the background operation.
  • step S105 if the terminal determines in step S103 that the application does not satisfy the preset condition, the terminal prompts the user that the wake lock held by the application cannot be released, and the terminal power consumption is caused because the wake lock cannot be released, so as to provide reference information for the user. Decide whether to release the wake lock.
  • the wake-up lock release method of the embodiment of the present invention performs the process of releasing the wake-up lock for the application that holds the wake-up lock abnormally.
  • the wake-up lock release method of the embodiment of the present invention reduces the power consumption by releasing the wake-up lock held by the application running in the background, thereby achieving the purpose of energy saving.
  • a wake-up lock release method provided by an embodiment of the present invention includes:
  • Step S201 After the wake-up lock release condition is satisfied, if the user operation is not detected within the preset duration and the wake-up lock is not released, the first wake-up lock release instruction is acquired.
  • Step S202 acquiring an application holding a wake lock according to the first wake lock release instruction, wherein the wake lock is used to wake up the terminal.
  • step S203 it is determined whether the application meets the preset condition.
  • Step S204 if it is determined in step S203 that the application satisfies the preset condition, the wakelock held by the application is released.
  • Step S205 if it is determined in step S203 that the application does not satisfy the preset condition, the user is prompted not to release the wake lock held by the application.
  • Step S206 if the second wake lock release instruction of the user is obtained, the wake lock held by the application is released.
  • step S201 after the wake-up lock release condition is satisfied, if the terminal does not detect the user operation and the wake-up lock is not released within the preset time period, the first wake-up lock release instruction is acquired.
  • the wake-up lock is a function applied on the terminal. As long as the function is run on the terminal, the system cannot sleep and can be obtained by the application or the kernel. Depending on the type of wake-up lock, you can control the on and off of the screen backlight, and turn the keyboard backlight on and off to save energy.
  • the wake-up lock release condition is satisfied.
  • the normal application will release the wake-up lock, causing the phone to enter the screen backlight or the keyboard backlight is off.
  • often some abnormal applications will always hold a wake-up lock, so that the phone keeps the screen backlight or the keyboard backlight in a state of being lit, resulting in a large consumption of the mobile phone.
  • the step of satisfying the wake lock release condition may include determining to satisfy the wake lock release condition when detecting that the application abnormality holds the wake lock such that the screen backlight or the keyboard backlight of the terminal is always on.
  • the abnormal application After the wake-up lock release condition is satisfied, if the user still does not detect the user operation and the wake-up lock is not released within the preset time period, the abnormal application always holds the wake-up lock, and in this case, the first wake-up lock release command is generated.
  • the terminal acquires the first wakelock release command, and then proceeds to step S202.
  • step S202 the terminal acquires an application holding the wake lock according to the first wake lock release instruction, wherein the wake lock is used to wake up the terminal, so that the terminal keeps the screen backlight or the keyboard backlight in a lit state.
  • the three types of SCREEN_DIM_WAKE_LOCK, SCREEN_BRIGHT_WAKE_LOCK, and FULL_WAKE_LOCK can control the opening and closing of the screen backlight, and the keyboard backlight is turned on and off, so in the embodiment of the present invention. You can get an application that holds these three types of wakelocks. Then, the process proceeds to step S203.
  • step S203 the terminal determines whether the application meets the preset condition. If the preset condition is met, the process proceeds to step S204; if the preset condition is not met, the process proceeds to step S205.
  • the terminal can determine whether the application satisfies the preset condition running in the background, and if it runs in the background, it determines that the application meets the preset condition; If there is an application that is the same as the application, it is determined that the application does not satisfy the preset condition.
  • preset conditions can also be added. For example, if an application running in the background determines whether the terminal is authorized to release the wake lock held by the application, such as being authorized to release the wake lock, it is determined that the application meets the preset condition; if the wake lock is not allowed to be released, the application is determined. The preset conditions are not met. In this way, the wake lock can be released according to the needs of the user, which satisfies the user's needs and is more humanized.
  • the terminal determines whether the application meets the preset condition by determining whether the application has the same application in the application set. If the application is the same as the application, the application determines that the application meets the preset condition; if the application does not exist, The application determines that the application does not meet the criteria. For example, a set of applications that allow a terminal to release a wake-up lock, the application set includes a music playing application, a video playing application, a shopping application, and the like. When the terminal acquires the application holding the wake lock as the shopping application, since the shopping application included in the application set contains the same application, it is determined that the application satisfies the preset condition.
  • the application set needs to be established before the determining step.
  • the specific steps are as follows: first, the application installed on the terminal is obtained; and then the target application is selected from the application according to the attribute information of the application to establish an application set.
  • step S204 if the terminal determines that the application meets the preset condition in step S203, it indicates that the wakelock held by the application can be released to reduce unnecessary power consumption, so the terminal releases the wakelock held by the application. Specifically, if the application satisfies the background running condition and runs the preset condition for releasing the wake-up lock, the wake-up lock can be released by causing the application to exit the background operation.
  • the method before the step of releasing the wake lock held by the application, the method further includes:
  • the step of releasing the wake lock held by the application is performed.
  • step S205 if the terminal determines in step S203 that the application does not satisfy the preset condition, the terminal prompts the user to release the wake lock held by the application, and the terminal power consumption is caused because the wake lock cannot be released, so as to provide reference information for the user. Decide whether to release the wake lock. Then, the process proceeds to step S206.
  • the terminal may further prompt the user whether to release the wake lock held by the application. If the user selects the button of “release the wake lock”, the second wake lock release instruction is generated, and the terminal acquires the second wake lock of the user. When the instruction is released, the wakelock held by the application is released.
  • the wake-up lock release method of the embodiment of the present invention performs the process of releasing the wake-up lock for the application that holds the wake-up lock abnormally.
  • the wake-up lock release method of the embodiment of the present invention further reduces power consumption, achieves energy saving, and satisfies user requirements by releasing the wake-up lock held by the application running in the background and allowing the wake-up lock to be released.
  • the embodiment of the invention further provides a wake-up lock release device, comprising:
  • a first wake-up lock release instruction acquisition module configured to acquire a first wake-up lock release instruction
  • An application acquiring module configured to acquire, according to the first wakelock release instruction, an application that holds a wakelock, where the wakelock is used to wake up the terminal;
  • a preset condition determining module configured to determine whether the application meets a preset condition
  • a first wake-up lock release module configured to release the wake-up lock held by the application when a preset condition is met.
  • the preset condition determining module specifically includes:
  • the same application determining unit configured to determine whether an application in the application set is the same as the application
  • the wake-up lock release device further includes:
  • An application obtaining module configured to acquire an application installed on the terminal
  • the application set establishing module is configured to select a target application from the application according to the attribute information of the application to establish an application set.
  • the first wake-up lock release instruction acquisition module specifically includes:
  • the first wake-up lock release instruction acquisition unit is configured to acquire the first wake-up lock release instruction when the user operation is not detected within the preset time period and the wake-up lock is not released after the wake-up lock release condition is satisfied.
  • the present invention also provides a processing device based on a bright screen lock, which can be integrated in a terminal, which can be a mobile internet device (such as a smart phone or a tablet), and an intelligent device. Wear all kinds of intelligent electronic devices such as smart watches.
  • FIG. 3 is a schematic structural diagram of a wake-up lock release apparatus according to an embodiment of the present invention.
  • the wake-up lock release device of the embodiment of the present invention is configured to release a wake-up lock that is abnormally held in the terminal, wherein the terminal may be a smart mobile terminal such as a smart phone or a tablet computer.
  • the terminal may be a smart mobile terminal such as a smart phone or a tablet computer.
  • a smart phone is taken as a representative of the smart mobile terminal for illustration.
  • the wake lock release device 30 includes a first wake lock release instruction acquisition module 301, an application acquisition module 302, a preset condition determination module 303, a first wake lock release module 304, and a wake lock release release prompt module 305.
  • the first wakelock release instruction acquisition module 301 is configured to acquire a first wakelock release command.
  • the application obtaining module 302 is configured to acquire, according to the first wake lock release instruction, an application that holds the wake lock, wherein the wake lock is used to wake up the terminal;
  • the preset condition determining module 303 is configured to determine whether the application meets the preset condition;
  • the release module 304 is configured to release the wake lock held by the application when the preset condition is met;
  • the wake lock release release prompt module 305 is configured to prompt the user not to release the wake lock held by the application when the preset condition is not met.
  • the first wake-up lock release instruction acquisition module 301 is first called to acquire the first wake-up lock release command.
  • the wake-up lock is a function applied on the terminal. As long as the function is run on the terminal, the system cannot sleep and can be obtained by the application or the kernel. Depending on the type of wake-up lock, you can control the on and off of the screen backlight, and turn the keyboard backlight on and off to save energy.
  • a first wake-up lock release instruction is generated, and then the first wake-up lock release instruction acquisition module 301 will acquire the first wake-up Lock release command.
  • the application acquisition module 302 is then invoked.
  • the application obtaining module 302 acquires an application holding the wake lock according to the first wake lock release instruction, wherein the wake lock is used to wake up the terminal, so that the terminal keeps the screen backlight or the keyboard backlight in a state of being lit.
  • the three types of SCREEN_DIM_WAKE_LOCK, SCREEN_BRIGHT_WAKE_LOCK, and FULL_WAKE_LOCK can control the opening and closing of the screen backlight, and the keyboard backlight is turned on and off, so in the embodiment of the present invention.
  • the application acquisition module 302 can obtain an application that holds the three types of wake locks.
  • the preset condition determination module 303 is then invoked.
  • the preset condition determining module 303 determines whether the application meets the preset condition. If the preset condition is met, the first wake lock release module 304 is invoked; if the preset condition is not met, the wake lock cannot be released and the prompt module 305 is released.
  • the preset condition determination module 303 can determine whether the application satisfies the preset condition running in the background, and if it runs in the background, it determines that the application is satisfied. The preset condition; if there is no application identical to the application, it is determined that the application does not satisfy the preset condition.
  • the preset condition determining module 303 determines that the application meets the preset condition, it indicates that the wake lock held by the application can be released to reduce unnecessary power consumption, and therefore the first wake lock release module 304 releases the wake lock held by the application. Specifically, if the application satisfies the preset condition of running in the background, the wake lock can be released by causing the application to exit the background operation.
  • the prompting module 305 prompts the user that the wake lock held by the application cannot be released, and the power consumption of the terminal is caused because the wake lock cannot be released, so as to provide reference information for the user to decide whether to release the wake lock.
  • the wake-up lock release device of the embodiment of the present invention reduces power consumption by releasing the wake-up lock held by the application running in the background, thereby achieving the purpose of energy saving.
  • FIG. 4 is another schematic structural diagram of a wake-up lock release device according to an embodiment of the present invention.
  • the wake-up lock release device of the embodiment of the present invention is configured to release a wake-up lock that is abnormally held in the terminal, wherein the terminal is selected as a smart mobile terminal such as a smart phone or a tablet computer.
  • a smart phone is taken as a representative of the smart mobile terminal for illustration.
  • the wake-up lock release device 40 includes: a first wake-up lock release instruction acquisition module 401, an application acquisition module 402, a preset condition determination module 403, an application acquisition module 404, an application set creation module 405, a first wake-up lock release module 406, and wake-up The lock cannot release the prompt module 407 and the second wake lock release module 408.
  • the first wake lock release instruction acquisition module 401 further includes a first wake lock release instruction acquisition unit; the preset condition determination module 403 includes the same application determination unit, the determination satisfaction unit, and the determination non-satisfaction unit.
  • the embodiment of the present invention is extended and refined on the basis of FIG. 3, wherein the application obtaining module 404 is configured to acquire an application installed on the terminal, and the application set establishing module 405 is configured to select a target application from the application according to the attribute information of the application.
  • the wakeup lock release command module 407 is configured to prompt the user not to release the wakelock held by the application when the preset condition is not met; the second wakelock release module 408 is configured to obtain the second user When the wake-up lock release instruction is issued, the wake-up lock held by the application is released; the first wake-up lock release instruction acquisition unit is configured to satisfy the wake-up lock release condition, and when the user operation is not detected within the preset duration and the wake-up lock is not released, the acquisition is performed.
  • the same application determining unit is configured to determine whether there is an application in the application set that is the same as the application; determining that the satisfying unit is used to determine that the application meets the preset condition when yes, and determining that the unsatisfied unit is used for , to determine that the application does not meet the conditions.
  • the wake-up lock release device 40 When the wake-up lock release device 40 is used, firstly, after the wake-up lock release condition is satisfied, if the terminal does not detect the user operation and the wake-up lock is not released within the preset time period, the first wake-up lock release instruction acquisition module 401 is called.
  • the first wake lock release instruction acquisition unit acquires the first wake lock release instruction.
  • the wake-up lock is a function applied on the terminal. As long as the function is run on the terminal, the system cannot sleep and can be obtained by the application or the kernel. Depending on the type of wake-up lock, you can control the on and off of the screen backlight, and turn the keyboard backlight on and off to save energy.
  • the wake-up lock release condition is satisfied.
  • the normal application will release the wake-up lock, causing the phone to enter the screen backlight or the keyboard backlight is off.
  • often some abnormal applications will always hold a wake-up lock, so that the phone keeps the screen backlight or the keyboard backlight in a state of being lit, resulting in a large consumption of the mobile phone.
  • the first wake lock release instruction acquisition unit in the mobile phone acquires the first wake lock release instruction, and then invokes the application acquisition module 402.
  • the application obtaining module 402 acquires an application holding the wake lock according to the first wake lock release instruction, wherein the wake lock is used to wake up the terminal, so that the terminal keeps the screen backlight or the keyboard backlight in a state of being lit.
  • the three types of SCREEN_DIM_WAKE_LOCK, SCREEN_BRIGHT_WAKE_LOCK, and FULL_WAKE_LOCK can control the opening and closing of the screen backlight, and the keyboard backlight is turned on and off, so in the embodiment of the present invention.
  • the application holding the three types of wakelocks can be obtained by the application acquisition module 402.
  • the preset condition determination module 403 is then called.
  • the preset condition determining module 403 determines whether the application meets the preset condition. If the preset condition is met, the first wake lock release module 406 is invoked; if the preset condition is not met, the second wake lock release module 408 is invoked.
  • the preset condition judging module 403 can determine whether the application satisfies the preset condition running in the background, and if running in the background, it is determined that the application satisfies the pre-condition. Set the condition; if there is no application that is the same as the application, it is determined that the application does not satisfy the preset condition.
  • the preset condition determining module 403 determines whether the terminal is authorized to release the wake lock held by the application, and if it is authorized to release the wake lock, it is determined that the application meets the preset condition; Wake up the lock, then determine that the application does not meet the preset conditions. In this way, the wake lock can be released according to the needs of the user, which satisfies the user's needs and is more humanized.
  • the same application determining unit in the preset condition determining module 403 determines whether there is an application in the application set that is the same as the application to determine whether the application meets the preset condition, and if there is an application that is the same as the application, the call is performed.
  • the determination in the preset condition determination module 403 determines that the application meets the preset condition; if there is no application that is the same as the application, the determination in the preset condition determination module 403 is not satisfied that the unit determines that the application does not satisfy the condition.
  • a set of applications that allow a terminal to release a wake-up lock the application set includes a music playing application, a video playing application, a shopping application, and the like.
  • the same application determining unit determines that the same application is included in the application set, so it is determined that the satisfying unit determines that the application satisfies the preset condition.
  • the application set needs to be established before the determining step.
  • the specific steps are as follows: first, the application obtaining module 404 is called to obtain an application installed on the terminal; and the calling application set establishing module 405 selects a target from the application according to the attribute information of the application. Application to build an application collection.
  • the preset condition determining module 403 determines that the application meets the preset condition, it indicates that the wake lock held by the application can be released to reduce unnecessary power consumption, and therefore the first wake lock release module 406 releases the wake lock held by the application. Specifically, if the application satisfies the preset condition of running in the background, the wake lock can be released by causing the application to exit the background operation.
  • the preset condition determination module 403 determines that the application does not satisfy the preset condition, the wake lock cannot be released.
  • the prompting module 407 prompts the user that the wake lock held by the application cannot be released, and the power consumption of the terminal is caused because the wake lock cannot be released, so as to provide reference information for the user to decide whether to release the wake lock.
  • the second wake lock release module 408 is then invoked.
  • the user may be further prompted whether to release the wake lock held by the application. For example, if the user selects the button of “release the wake lock”, the second wake lock release instruction is generated, and the second wake lock release module 408 acquires the second user. When the wake-up lock release command is issued, the wake-up lock held by the application is released.
  • the wake-up lock release method of the embodiment of the present invention completes the process of releasing the wake-up lock for the application that holds the wake-up lock abnormally.
  • the wake-up lock release device of the embodiment of the present invention further reduces power consumption, achieves energy saving, and satisfies user requirements by releasing the wake-up lock held by the application running in the background and allowing the wake-up lock to be released.
  • FIG. 5 is a schematic flowchart of a method and an apparatus for releasing a wake-up lock according to an embodiment of the present invention.
  • step S501 after the wake lock release condition is satisfied, the smartphone screen backlight and the keyboard backlight remain in a bright state. At this point, the smartphone detects if there is a user operation or a wake-up lock is released within the next five minutes.
  • step S502 the user does not detect the user operation within five minutes and the wake-up lock is not released. At this time, a first wake-up lock release command is generated, and the smart phone acquires the first wake-up lock release command.
  • step S503 the smartphone obtains an application for holding a wake-up lock, a music playing application, a video playing application, a translation application, etc. according to the first wake-lock release instruction, wherein the application running in the background is a translation application, and then the translation is further determined. Whether the application is released to release the wake lock.
  • step S504 the smartphone obtains the translation application to allow the wake-up lock to be released, so that the wake-up lock held by the translation application is released, thereby turning off the smartphone screen backlight and the keyboard backlight.
  • the wake-up lock release method and apparatus of the embodiment of the present invention reduces power consumption by releasing a wake-up lock held by an application running in the background and allowing the wake-up lock to be released, and satisfies user requirements.
  • the embodiment of the invention further provides an electronic device, which may be a device such as a smart phone or a tablet computer.
  • the electronic device 600 includes a processor 601, a memory 602, a display screen 603, and a control circuit 604.
  • the processor 601 is electrically connected to the memory 602, the display screen 603, and the control circuit 604, respectively.
  • the processor 601 is a control center of the electronic device 600, which connects various parts of the entire electronic device using various interfaces and lines, executes the electronic by running or loading an application stored in the memory 602, and calling data stored in the memory 602.
  • the various functions and processing data of the device enable overall monitoring of the electronic device.
  • the processor 601 in the electronic device 600 loads the instructions corresponding to the process of one or more applications into the memory 602 according to the following steps, and is stored in the memory 602 by the processor 601.
  • the application thus implementing various functions:
  • the wake lock held by the application is released.
  • the processor 601 when determining whether the application meets the preset condition, performs the following steps: determining whether an application that is the same as the application exists in the application set; if yes, determining that the application meets the preset condition; If not, it is determined that the application does not satisfy the condition.
  • the processor 601 before the releasing the wakelock held by the application, the processor 601 further performs the following steps: determining whether the application has an authorization identifier; and when determining that the application has an authorization identifier, The step of releasing the wake lock held by the application is performed.
  • the processor 601 before the determining whether an application is the same as the application in the application set, the processor 601 further performs the steps of: acquiring an application installed on the electronic device; according to the attribute information of the application The target application is selected in the application to establish an application collection.
  • the processor 601 when acquiring the first wakelock release instruction, the processor 601 further performs the following steps: after the wakelock release condition is met, if no user operation is detected within the preset duration and the wakelock is not released, then Get the first wake lock release instruction.
  • the processor 601 when the wake-up lock release condition is satisfied, the processor 601 further performs the following steps: when detecting that the application abnormality holds the wake-up lock so that the screen backlight or the keyboard backlight of the electronic device is always on, determining that the wake-up is satisfied Lock release condition.
  • the processor 601 after the step of determining whether the application satisfies a preset condition, performs the following steps: if the preset condition is not met, prompting the user not to release the Wake up the lock.
  • Memory 602 can be used to store applications and data.
  • the application stored in the memory 602 contains instructions executable in the processor.
  • Applications can form various functional modules.
  • the processor 601 executes various functional applications and data processing by running an application stored in the memory 602.
  • the display screen 603 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
  • the control circuit 604 is electrically connected to the display screen 603 for controlling the display screen 603 to display information.
  • the electronic device 600 further includes: a radio frequency circuit 605, an input unit 606, an audio circuit 607, a sensor 608, and a power source 609.
  • the processor 601 is electrically connected to the radio frequency circuit 605, the input unit 606, the audio circuit 607, and the sensor 608, respectively.
  • the radio frequency circuit 605 is used for transmitting and receiving radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
  • the input unit 606 can be configured to receive input numbers, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
  • the input unit 606 can include a fingerprint identification module.
  • the audio circuit 607 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • Sensor 608 is used to collect external environmental information.
  • Sensor 608 can include one or more of ambient brightness sensors, acceleration sensors, gyroscopes, and the like.
  • the electronic device 600 may further include a camera, a Bluetooth module, a power supply, and the like, and details are not described herein.
  • the electronic device provided by the embodiment of the present invention reduces power consumption and satisfies user requirements by releasing a wake-up lock held by an application running in the background and allowing the wake-up lock to be released.
  • the embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform the steps of implementing any of the wake lock release methods provided by the embodiments of the present invention.
  • Each functional unit in the embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access) Memory), disk or CD.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

一种唤醒锁释放方法、装置、存储介质及电子设备,该方法包括:获取第一唤醒锁释放指令(S101);根据第一唤醒锁释放指令,获取持有唤醒锁的应用,其中唤醒锁用以唤醒终端(S102);判断应用是否满足预设条件(S103);如满足预设条件,则释放应用持有的唤醒锁(S104)。

Description

一种唤醒锁释放方法、装置、存储介质及电子设备 技术领域
本发明涉及计算机技术领域,尤其涉及一种唤醒锁释放方法、装置、存储介质及电子设备。
背景技术
随着互联网的发展和移动通信网络的发展,同时也伴随着终端的处理能力和存储能力的迅猛发展,海量的应用程序得到了迅速传播和使用。以智能手机为例,智能手机出货前会安装一些基本应用,以满足人们的基本需求,如提供音频播放器供用户听音乐、提供视频播放器供人们观看视频等。同时用户还会安装一些第三方应用以满足其特定需求,如用户想网上购物,则安装购物应用,想玩某款游戏,则自己安装相应的游戏应用。
技术问题
本发明实施例提供一种唤醒锁释放方法、装置、存储介质及电子设备,可以节省终端的功耗。
技术解决方案
第一方面,本发明实施例提供了一种唤醒锁释放方法,包括:
获取第一唤醒锁释放指令;
根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒终端;
判断所述应用是否满足预设条件;
如满足预设条件,则释放所述应用持有的所述唤醒锁。
第二方面,本发明实施例提供了一种唤醒锁释放装置,包括:
第一唤醒锁释放指令获取模块,用于获取第一唤醒锁释放指令;
应用获取模块,用于根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒终端;
预设条件判断模块,用于判断所述应用是否满足预设条件;
第一唤醒锁释放模块,用于在满足预设条件时,释放所述应用持有的所述唤醒锁。
第三方面,本发明实施例提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行实现本发明实施例提供的任一种唤醒锁释放方法的步骤。
第四方面,本发明实施例提供了一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
获取第一唤醒锁释放指令;
根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒电子设备;
判断所述应用是否满足预设条件;
如满足预设条件,则释放所述应用持有的所述唤醒锁。
有益效果
本发明实施例提供一种唤醒锁释放方法、装置、存储介质及电子设备,可以节省终端的功耗。
附图说明
图1为本发明实施例提供的唤醒锁释放方法的流程示意图。
图2为本发明实施例提供的唤醒锁释放方法的另一流程示意图。
图3为本发明实施例提供的唤醒锁释放装置的结构示意图。
图4为本发明实施例提供的唤醒锁释放装置的另一结构示意图。
图5为本发明实施例提供的唤醒锁释放方法及装置的具体流程示意图。
图6为本发明实施例提供的电子设备的结构示意图。
图7为本发明实施例提供的电子设备的另一结构示意图。
本发明的最佳实施方式
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行之作业的步骤及符号来说明,除非另有述明。因此,其将可了解到这些步骤及操作,其中有数次提到为由计算机执行,包括了由代表了以一结构化型式中的数据之电子信号的计算机处理单元所操纵。此操纵转换该数据或将其维持在该计算机之内存系统中的位置处,其可重新配置或另外以本领域技术人员所熟知的方式来改变该计算机之运作。该数据所维持的数据结构为该内存之实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域技术人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
为了满足人们的需求,终端中会安装大量的第三方应用,这些第三方应用虽然大大满足了人们的需求,但也带来了困扰。这些第三方应用经常会因为异常持有唤醒锁致使智能手机屏幕背光或键盘锁背光不能自动熄灭,进而导致智能手机电量的大量消耗。
本发明实施例提供了一种唤醒锁释放方法,包括:
获取第一唤醒锁释放指令;
根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒终端;
判断所述应用是否满足预设条件;
如满足预设条件,则释放所述应用持有的所述唤醒锁。
在一实施例中,所述判断所述应用是否满足预设条件的步骤,具体包括:
确定应用集合中是否存在与所述应用相同的应用;
若是,则确定所述应用满足预设条件;
若否,则确定所述应用不满足条件。
在一实施例中,所述释放所述应用持有的所述唤醒锁的步骤之前,所述方法还包括:
判断所述应用是否存在授权标识;
当判断出所述应用存在授权标识时,执行释放所述应用持有的所述唤醒锁的步骤。
在一实施例中,所述在确定应用集合中是否存在与所述应用相同的应用的步骤之前,所述方法还包括:
获取终端上安装的应用;
根据所述应用的属性信息从所述应用中选取目标应用,以建立应用集合。
在一实施例中,所述获取第一唤醒锁释放指令的步骤,具体包括:
当满足唤醒锁释放条件后,如在预设时长内未检测到用户操作且唤醒锁未被释放,则获取第一唤醒锁释放指令。
在一实施例中,所述满足唤醒锁释放条件的步骤,具体包括:
当检测到应用异常持有唤醒锁使终端的屏幕背光或键盘背光一直处于开启状态时,则判定为满足唤醒锁释放条件。
在一实施例中,所述在判断所述应用是否满足预设条件的步骤之后,所述方法还包括:
如不满足预设条件,则提示用户不能释放所述应用持有的所述唤醒锁。
在一实施例中,所述在如不满足预设条件,则提示用户不能释放所述应用持有的所述唤醒锁的步骤之后,所述方法还包括:
如获取到用户的第二唤醒锁释放指令,则释放所述应用持有的所述唤醒锁。
本发明的唤醒锁释放装置可使用各种电子设备进行实施,该电子设备包括但不限于个人计算机、服务器计算机、手持式或膝上型设备、移动设备(比如移动电话、个人数字助理、媒体播放器等等)、多处理器系统、消费型电子设备、小型计算机、大型计算机、包括上述任意系统或设备的分布式计算环境,等等。但该电子设备优选为智能移动终端,以便有效的降低智能移动终端的功耗。
请参照图1,图1为本发明实施例提供的唤醒锁释放方法的流程示意图。本发明实施例的唤醒锁释放方法用于释放终端中被异常持有的唤醒锁,其中终端可以为智能手机、平板电脑等智能移动终端。同时,本发明实施例中将以智能手机作为智能移动终端的代表进行举例说明。上述唤醒锁释放方法的释放唤醒锁的步骤具体包括:
步骤S101,获取第一唤醒锁释放指令。
步骤S102,根据第一唤醒锁释放指令,获取持有唤醒锁的应用,其中唤醒锁用于唤醒终端。
步骤S103,判断应用是否满足预设条件。
步骤S104,如步骤S103中判断应用满足预设条件,则释放应用持有的唤醒锁。
步骤S105,如步骤S103中判断应用不满足预设条件,则提示用户不能释放应用持有的唤醒锁。
下面详细说明本发明实施例的唤醒锁释放方法的各步骤的具体流程。
在步骤S101中,终端获取第一唤醒锁释放指令。其中,唤醒锁作为终端上应用的函数,只要有终端上运行该函数,系统就无法进行休眠,可以被应用程序或内核获得。根据唤醒锁类型的不同,可以控制屏幕背光的开启和关闭,键盘背光的开启与关闭,以达到节能的目的。当检测到因应用异常持有唤醒锁使终端保持屏幕背光或键盘背光处于亮着的状态时,将生成第一唤醒锁释放指令,然后终端将获取该第一唤醒锁释放指令。随后转入步骤S102。
在步骤S102中,终端根据第一唤醒锁释放指令,获取持有唤醒锁的应用,其中唤醒锁用以唤醒终端,使终端保持屏幕背光或键盘背光处于亮着的状态。
一实施中,由于在安卓系统中,根据唤醒锁类型的不同,SCREEN_DIM_WAKE_LOCK类型的唤醒锁保持处理器运转,允许保持屏幕显示但有可能是灰的,允许关闭键盘灯、SCREEN_BRIGHT_WAKE_LOCK类型的唤醒锁保持处理器运转,允许保持屏幕高亮显示,允许关闭键盘灯和FULL_WAKE_LOCK类型的唤醒锁保持处理器运转,保持屏幕高亮显示,键盘灯也保持亮度。这三种类型可以控制屏幕背光的开启和关闭,键盘背光的开启与关闭,因此在本发明实施例中可以获取持有此三种唤醒锁类型的应用。随后转入步骤S103。
在步骤S103中,终端判断应用是否满足预设条件,如满足预设条件,则转入步骤S103;如不满足预设条件,则转入步骤S104。
由于在安卓系统中,有些应用在后台运行时仍然会一直运行唤醒锁,因此终端可以判断应用是否满足在后台运行的预设条件,若在后台运行,则确定应用满足预设条件;若不存在与应用相同的应用,则确定应用不满足预设条件。
在步骤S104中,如步骤S103中终端判断应用满足预设条件,说明可以释放该应用持有的唤醒锁,以减少不必要的电量消耗,故而终端释放该应用持有的唤醒锁。具体的,如应用满足后台运行的预设条件,则可以通过使应用退出后台运行来释放唤醒锁。
在步骤S105中,如步骤S103中终端判断应用不满足预设条件,则终端提示用户不能释放应用持有的唤醒锁,且因为不能释放唤醒锁会导致终端电量的消耗,以提供参考信息供用户决定是否释放唤醒锁。
这样即完成了本发明实施例的唤醒锁释放方法对异常持有唤醒锁的应用进行唤醒锁释放的过程。
本发明实施例的唤醒锁释放方法通过释放在后台运行的应用持有的唤醒锁,从而降低了功耗,达到了节能的目的。
本实施例将在上述实施例描述的方法基础上,对本发明的释放方法做进一步介绍。参考图2,本发明实施例提供的唤醒锁释放方法包括:
步骤S201,当满足唤醒锁释放条件后,如在预设时长内未检测到用户操作且唤醒锁未被释放,则获取第一唤醒锁释放指令。
步骤S202,根据第一唤醒锁释放指令,获取持有唤醒锁的应用,其中唤醒锁用于唤醒终端。
步骤S203,判断应用是否满足预设条件。
步骤S204,如步骤S203中判断应用满足预设条件,则释放应用持有的唤醒锁。
步骤S205,如步骤S203中判断应用不满足预设条件,则提示用户不能释放应用持有的唤醒锁。
步骤S206,如获取到用户的第二唤醒锁释放指令,则释放应用持有的唤醒锁。
下面详细说明本发明实施例的唤醒锁释放方法的各步骤的具体流程。
在步骤S201中,当满足唤醒锁释放条件后,如在预设时长内终端未检测到用户操作且唤醒锁未被释放,则获取第一唤醒锁释放指令。其中,唤醒锁作为终端上应用的函数,只要有终端上运行该函数,系统就无法进行休眠,可以被应用程序或内核获得。根据唤醒锁类型的不同,可以控制屏幕背光的开启和关闭,键盘背光的开启与关闭,以达到节能的目的。
举例来说,当一段时间内没有对手机进行操作,也没有视频播放应用等应用在前台运行时即满足唤醒锁释放条件。此时正常应用将释放唤醒锁,使手机进入屏幕背光或键盘背光熄灭的状态。然而往往一些异常应用将一直持有唤醒锁,使手机保持屏幕背光或键盘背光处于亮着的状态,从而导致手机电量的大量消耗。
在一实施方式中,满足唤醒锁释放条件的步骤,可以包括当检测到应用异常持有唤醒锁使终端的屏幕背光或键盘背光一直处于开启状态时,则判定为满足唤醒锁释放条件。
满足唤醒锁释放条件后,如果在预设时长内手机仍未检测到用户操作且唤醒锁未被释放,说明有异常应用一直持有唤醒锁,此种情况下将生成第一唤醒锁释放指令,终端获取该第一唤醒锁释放指令,随后转入步骤S202。
在步骤S202中,终端根据第一唤醒锁释放指令,获取持有唤醒锁的应用,其中唤醒锁用于唤醒终端,使终端保持屏幕背光或键盘背光处于亮着的状态。
在一实施方式中,由于在安卓系统中,根据唤醒锁类型的不同,SCREEN_DIM_WAKE_LOCK、SCREEN_BRIGHT_WAKE_LOCK和FULL_WAKE_LOCK这三种类型可以控制屏幕背光的开启和关闭,键盘背光的开启与关闭,因此在本发明实施例中可以获取持有此三种唤醒锁类型的应用。随后转入步骤S203。
在步骤S203中,终端判断应用是否满足预设条件,如满足预设条件,则转入步骤S204;如不满足预设条件,则转入步骤S205。
由于在安卓系统中,有些退到后台运行的应用会一直持有唤醒锁,因此终端可以判断应用是否满足在后台运行的预设条件,若在后台运行,则确定应用满足预设条件;若不存在与应用相同的应用,则确定应用不满足预设条件。
在此基础上,还可以增加其他预设条件。如对某个在后台运行的应用,判断终端是否被授权来释放该应用持有的唤醒锁,如被授权释放唤醒锁,则确定应用满足预设条件;如不允许释放唤醒锁,则确定应用不满足预设条件。这样可以根据用户的需要来释放唤醒锁,满足了用户需求,更人性化。
在一实施方式中,终端通过确定应用集合中是否存在与应用相同的应用来判断应用是否满足预设条件,若存在与应用相同的应用,则确定应用满足预设条件;若不存在与应用相同的应用,则确定应用不满足条件。如建立一个允许终端释放唤醒锁的应用集合,该应用集合包含音乐播放应用、视频播放应用,购物应用等应用。当终端获取到持有唤醒锁的应用为购物应用时,由于应用集合中包含购物应用即包含相同的应用,因此确定应用满足预设条件。
需要说明的是,在本判断步骤之前需要建立该应用集合,具体步骤如下:首先获取终端上安装的应用;再根据应用的属性信息从应用中选取目标应用,以建立应用集合。
在步骤S204中,如步骤S203中终端判断应用满足预设条件,说明可以释放该应用持有的唤醒锁,以减少不必要的电量消耗,故而终端释放该应用持有的唤醒锁。具体的,如应用满足后台运行且运行被释放唤醒锁的预设条件,则可以通过使应用退出后台运行来释放唤醒锁。
在一实施方式中,在该释放所述应用持有的所述唤醒锁的步骤之前,还可以包括:
判断该应用是否存在授权标识。
当判断出该应用存在授权标识时,执行释放该应用持有的所述唤醒锁的步骤。
在步骤S205中,如步骤S203中终端判断应用不满足预设条件,则终端提示用户不能释放应用持有的唤醒锁,且因为不能释放唤醒锁会导致终端电量的消耗,以提供参考信息供用户决定是否释放唤醒锁。随后转入步骤S206。
在步骤S206中,终端可以进一步提示用户是否释放该应用持有的唤醒锁,如用户选择“释放唤醒锁”的按钮,则会生成第二唤醒锁释放指令,终端获取到用户的第二唤醒锁释放指令后,将释放应用持有的唤醒锁。
这样即完成了本发明实施例的唤醒锁释放方法对异常持有唤醒锁的应用进行唤醒锁释放的过程。
本发明实施例的唤醒锁释放方法进一步通过释放在后台运行且允许被释放唤醒锁的应用持有的唤醒锁,不仅降低了功耗,达到了节能的目的,而且还满足了用户需求。
本发明实施例还提供了一种唤醒锁释放装置,包括:
第一唤醒锁释放指令获取模块,用于获取第一唤醒锁释放指令;
应用获取模块,用于根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒终端;
预设条件判断模块,用于判断所述应用是否满足预设条件;
第一唤醒锁释放模块,用于在满足预设条件时,释放所述应用持有的所述唤醒锁。
在一实施例中,所述预设条件判断模块,具体包括:
相同应用确定单元,用于确定应用集合中是否存在与所述应用相同的应用;
确定满足单元,用于在是时,确定所述应用满足预设条件;
确定不满足单元,用于在否时,确定所述应用不满足条件。
在一实施例中,所述唤醒锁释放装置,还包括:
应用获取模块,用于获取终端上安装的应用;
应用集合建立模块,用于根据所述应用的属性信息从所述应用中选取目标应用,以建立应用集合。
在一实施例中,所述第一唤醒锁释放指令获取模块,具体包括:
第一唤醒锁释放指令获取单元,用于满足唤醒锁释放条件后,在预设时长内未检测到用户操作且唤醒锁未被释放时,获取第一唤醒锁释放指令。
为了更好地实施上述方法实施例,本发明还提供了一种基于亮屏锁的处理装置,该装置可以集成在终端中,该终端可以为移动互联网设备(如智能手机、平板电脑)、智能穿戴设备(如智能手表)等各类智能电子设备。
请参照图3,图3为本发明实施例提供的唤醒锁释放装置的结构示意图。本发明实施例的唤醒锁释放装置用于释放终端中被异常持有的唤醒锁,其中终端可以为智能手机、平板电脑等智能移动终端。同时,本发明实施例中将以智能手机作为智能移动终端的代表进行举例说明。本唤醒锁释放装置30包括:第一唤醒锁释放指令获取模块301、应用获取模块302、预设条件判断模块303、第一唤醒锁释放模块304和唤醒锁不能释放提示模块305。
其中,第一唤醒锁释放指令获取模块301用于获取第一唤醒锁释放指令。应用获取模块302用于根据第一唤醒锁释放指令,获取持有唤醒锁的应用,其中唤醒锁用以唤醒终端;预设条件判断模块303用于判断应用是否满足预设条件;第一唤醒锁释放模块304用于在满足预设条件时,释放应用持有的唤醒锁;唤醒锁不能释放提示模块305用于在不满足预设条件时,提示用户不能释放应用持有的唤醒锁。
本唤醒锁释放装置30使用时,首先调用第一唤醒锁释放指令获取模块301获取第一唤醒锁释放指令。其中,唤醒锁作为终端上应用的函数,只要有终端上运行该函数,系统就无法进行休眠,可以被应用程序或内核获得。根据唤醒锁类型的不同,可以控制屏幕背光的开启和关闭,键盘背光的开启与关闭,以达到节能的目的。当检测到因应用异常持有唤醒锁使终端保持屏幕背光或键盘背光处于亮着的状态时,将生成第一唤醒锁释放指令,然后第一唤醒锁释放指令获取模块301将获取该第一唤醒锁释放指令。随后调用应用获取模块302。
接着,应用获取模块302根据第一唤醒锁释放指令,获取持有唤醒锁的应用,其中唤醒锁用于唤醒终端,使终端保持屏幕背光或键盘背光处于亮着的状态。
在一实施方式,由于在安卓系统中,根据唤醒锁类型的不同,SCREEN_DIM_WAKE_LOCK、SCREEN_BRIGHT_WAKE_LOCK和FULL_WAKE_LOCK这三种类型可以控制屏幕背光的开启和关闭,键盘背光的开启与关闭,因此在本发明实施例中应用获取模块302可以获取持有此三种唤醒锁类型的应用。随后调用预设条件判断模块303。
紧接着,预设条件判断模块303判断应用是否满足预设条件,如满足预设条件,则调用第一唤醒锁释放模块304;如不满足预设条件,则调用唤醒锁不能释放提示模块305。
由于在安卓系统中,有些退到后台运行的应用会一直持有唤醒锁,因此可以通过预设条件判断模块303判断应用是否满足在后台运行的预设条件,若在后台运行,则确定应用满足预设条件;若不存在与应用相同的应用,则确定应用不满足预设条件。
如预设条件判断模块303判断应用满足预设条件,说明可以释放该应用持有的唤醒锁,以减少不必要的电量消耗,故而第一唤醒锁释放模块304释放该应用持有的唤醒锁。具体的,如应用满足后台运行的预设条件,则可以通过使应用退出后台运行来释放唤醒锁。
如预设条件判断模块303判断应用不满足预设条件,则唤醒锁不能释放。提示模块305提示用户不能释放应用持有的唤醒锁,且因为不能释放唤醒锁会导致终端电量的消耗,以提供参考信息供用户决定是否释放唤醒锁。
这样即完成了本发明实施例的唤醒锁释放装置对异常持有唤醒锁的应用进行唤醒锁释放的过程。
本发明实施例的唤醒锁释放装置通过释放在后台运行的应用持有的唤醒锁,从而降低了功耗,达到了节能的目的。
请参照图4,图4为本发明实施例提供的唤醒锁释放装置的另一结构示意图。本优发明实施例的唤醒锁释放装置用于释放终端中被异常持有的唤醒锁,其中终端有选为智能手机、平板电脑等智能移动终端。同时,本发明实施例中将以智能手机作为智能移动终端的代表进行举例说明。本唤醒锁释放装置40包括:第一唤醒锁释放指令获取模块401、应用获取模块402、预设条件判断模块403、应用获取模块404、应用集合建立模块405、第一唤醒锁释放模块406、唤醒锁不能释放提示模块407和第二唤醒锁释放模块408。其中,第一唤醒锁释放指令获取模块401还包括第一唤醒锁释放指令获取单元;预设条件判断模块403包括相同应用确定单元、确定满足单元和确定不满足单元。
本发明实施例在图3的基础上进行了扩展和细化,其中,应用获取模块404用于获取终端上安装的应用;应用集合建立模块405用于根据应用的属性信息从应用中选取目标应用,以建立应用集合;唤醒锁不能释放提示模块407用于在不满足预设条件时,提示用户不能释放应用持有的唤醒锁;第二唤醒锁释放模块408用于在获取到用户的第二唤醒锁释放指令时,释放应用持有的唤醒锁;第一唤醒锁释放指令获取单元用于满足唤醒锁释放条件后,在预设时长内未检测到用户操作且唤醒锁未被释放时,获取第一唤醒锁释放指令;相同应用确定单元用于确定应用集合中是否存在与应用相同的应用;确定满足单元用于在是时,确定应用满足预设条件;确定不满足单元用于在否时,确定应用不满足条件。
本唤醒锁释放装置40使用时,首先当满足唤醒锁释放条件后,如在预设时长内终端未检测到用户操作且唤醒锁未被释放,则调用第一唤醒锁释放指令获取模块401中的第一唤醒锁释放指令获取单元获取第一唤醒锁释放指令。其中,唤醒锁作为终端上应用的函数,只要有终端上运行该函数,系统就无法进行休眠,可以被应用程序或内核获得。根据唤醒锁类型的不同,可以控制屏幕背光的开启和关闭,键盘背光的开启与关闭,以达到节能的目的。
举例来说,当一段时间内没有对手机进行操作,也没有视频播放应用等应用在前台运行时即满足唤醒锁释放条件。此时正常应用将释放唤醒锁,使手机进入屏幕背光或键盘背光熄灭的状态。然而往往一些异常应用将一直持有唤醒锁,使手机保持屏幕背光或键盘背光处于亮着的状态,从而导致手机电量的大量消耗。
满足唤醒锁释放条件后,如果在预设时长内手机仍未检测到用户操作且唤醒锁未被释放,说明有异常应用一直持有唤醒锁,此种情况下将生成第一唤醒锁释放指令,手机中的第一唤醒锁释放指令获取单元获取该第一唤醒锁释放指令,随后调用应用获取模块402。
接着,应用获取模块402根据第一唤醒锁释放指令,获取持有唤醒锁的应用,其中唤醒锁用于唤醒终端,使终端保持屏幕背光或键盘背光处于亮着的状态。
在一实施方式中,由于在安卓系统中,根据唤醒锁类型的不同,SCREEN_DIM_WAKE_LOCK、SCREEN_BRIGHT_WAKE_LOCK和FULL_WAKE_LOCK这三种类型可以控制屏幕背光的开启和关闭,键盘背光的开启与关闭,因此在本发明实施例中可以通过应用获取模块402获取持有此三种唤醒锁类型的应用。随后调用预设条件判断模块403。
紧接着,预设条件判断模块403判断应用是否满足预设条件,如满足预设条件,则调用第一唤醒锁释放模块406;如不满足预设条件,则调用第二唤醒锁释放模块408。
由于在安卓系统中,有些退到后台运行的应用会一直持有唤醒锁,因此预设条件判断模块403可以判断应用是否满足在后台运行的预设条件,若在后台运行,则确定应用满足预设条件;若不存在与应用相同的应用,则确定应用不满足预设条件。
在此基础上,还可以增加其他预设条件。如对某个在后台运行的应用,预设条件判断模块403判断终端是否被授权来释放该应用持有的唤醒锁,如被授权释放唤醒锁,则确定应用满足预设条件;如不允许释放唤醒锁,则确定应用不满足预设条件。这样可以根据用户的需要来释放唤醒锁,满足了用户需求,更人性化。
在一实施方式中,通过调用预设条件判断模块403中的相同应用确定单元确定应用集合中是否存在与应用相同的应用来判断应用是否满足预设条件,若存在与应用相同的应用,则调用预设条件判断模块403中的确定满足单元确定应用满足预设条件;若不存在与应用相同的应用,则调用预设条件判断模块403中的确定不满足单元确定应用不满足条件。如建立一个允许终端释放唤醒锁的应用集合,该应用集合包含音乐播放应用、视频播放应用,购物应用等应用。当获取到持有唤醒锁的应用为购物应用时,由于应用集合中包含购物应用即相同应用确定单元确定应用集合中包含相同的应用,因此确定满足单元确定应用满足预设条件。
需要说明的是,在本判断步骤之前需要建立该应用集合,具体步骤如下:首先调用应用获取模块404获取终端上安装的应用;再调用应用集合建立模块405根据应用的属性信息从应用中选取目标应用,以建立应用集合。
如预设条件判断模块403判断应用满足预设条件,说明可以释放该应用持有的唤醒锁,以减少不必要的电量消耗,故而第一唤醒锁释放模块406释放该应用持有的唤醒锁。具体的,如应用满足后台运行的预设条件,则可以通过使应用退出后台运行来释放唤醒锁。
如预设条件判断模块403判断应用不满足预设条件,则唤醒锁不能释放。提示模块407提示用户不能释放应用持有的唤醒锁,且因为不能释放唤醒锁会导致终端电量的消耗,以提供参考信息供用户决定是否释放唤醒锁。随后调用第二唤醒锁释放模块408。
最后,可以进一步提示用户是否释放该应用持有的唤醒锁,如用户选择“释放唤醒锁”的按钮,则会生成第二唤醒锁释放指令,第二唤醒锁释放模块408获取到用户的第二唤醒锁释放指令后,将释放应用持有的唤醒锁。
这样即完成了本发明实施例的唤醒锁释放装置方法对异常持有唤醒锁的应用进行唤醒锁释放的过程。
本发明实施例的唤醒锁释放装置进一步通过释放在后台运行且允许被释放唤醒锁的应用持有的唤醒锁,不仅降低了功耗,达到了节能的目的,而且还满足了用户需求。
请参照图5,图5为本发明实施例提供的唤醒锁释放方法及装置的具体流程示意图。
在步骤S501中,当满足唤醒锁释放条件后,智能手机屏幕背光和键盘背光仍保持亮着的状态。此时智能手机检测未来五分钟内是否有用户操作或唤醒锁是否被释放。
在步骤S502中,智能手机五分钟内未检测到用户操作且唤醒锁未被释放,此时将生成第一唤醒锁释放指令,智能手机获取到该第一唤醒锁释放指令。
在步骤S503中,智能手机根据该第一唤醒锁释放指令,得到持有唤醒锁有音乐播放应用、视频播放应用、翻译应用等应用,其中在后台运行的应用为翻译应用,于是进一步判断该翻译应用是否被运行释放唤醒锁。
在步骤S504中,智能手机得到该翻译应用允许被释放唤醒锁,故将该翻译应用持有的唤醒锁释放,从而关闭了智能手机屏幕背光和键盘背光。
本发明实施例的唤醒锁释放方法及装置通过释放在后台运行且允许被释放唤醒锁的应用持有的唤醒锁,降低了功耗,满足了用户需求。
本发明实施例还提供一种电子设备,该电子设备可以是智能手机、平板电脑等设备。如图6所示,电子设备600包括处理器601、存储器602、显示屏603以及控制电路604。其中,处理器601分别与存储器602、显示屏603、控制电路604电性连接。
处理器601是电子设备600的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器602内的应用程序,以及调用存储在存储器602内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。
在本实施例中,电子设备600中的处理器601会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器602中,并由处理器601来运行存储在存储器602中的应用程序,从而实现各种功能:
获取第一唤醒锁释放指令;
根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒电子设备;
判断所述应用是否满足预设条件;
如满足预设条件,则释放所述应用持有的所述唤醒锁。
在一些实施例中,判断所述应用是否满足预设条件时,处理器601执行以下步骤:确定应用集合中是否存在与所述应用相同的应用;若是,则确定所述应用满足预设条件;若否,则确定所述应用不满足条件。
在一些实施例中,在所述释放所述应用持有的所述唤醒锁之前,处理器601还执行以下步骤:判断所述应用是否存在授权标识;当判断出所述应用存在授权标识时,执行释放所述应用持有的所述唤醒锁的步骤。
在一些实施例中,在所述在确定应用集合中是否存在与所述应用相同的应用之前,处理器601还执行以下步骤:获取电子设备上安装的应用;根据所述应用的属性信息从所述应用中选取目标应用,以建立应用集合。
在一些实施例中,获取第一唤醒锁释放指令时,处理器601还执行以下步骤:当满足唤醒锁释放条件后,如在预设时长内未检测到用户操作且唤醒锁未被释放,则获取第一唤醒锁释放指令。
在一些实施例中,满足唤醒锁释放条件时,处理器601还执行以下步骤:当检测到应用异常持有唤醒锁使电子设备的屏幕背光或键盘背光一直处于开启状态时,则判定为满足唤醒锁释放条件。
在一些实施例中,在所述在判断所述应用是否满足预设条件的步骤之后,处理器601执行以下步骤:如不满足预设条件,则提示用户不能释放所述应用持有的所述唤醒锁。
存储器602可用于存储应用程序和数据。存储器602存储的应用程序中包含有可在处理器中执行的指令。应用程序可以组成各种功能模块。处理器601通过运行存储在存储器602的应用程序,从而执行各种功能应用以及数据处理。
显示屏603可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。
控制电路604与显示屏603电性连接,用于控制显示屏603显示信息。
在一些实施例中,如图7所示,电子设备600还包括:射频电路605、输入单元606、音频电路607、传感器608以及电源609。其中,处理器601分别与射频电路605、输入单元606、音频电路607、以及传感器608电性连接。
射频电路605用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。
输入单元606可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元606可以包括指纹识别模组。
音频电路607可通过扬声器、传声器提供用户与电子设备之间的音频接口。
传感器608用于采集外部环境信息。传感器608可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。
尽管图7中未示出,电子设备600还可以包括摄像头、蓝牙模块、电源等,在此不再赘述。
本发明实施例提供的电子设备,通过释放在后台运行且允许被释放唤醒锁的应用持有的唤醒锁,降低了功耗,满足了用户需求。
本发明实施例提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行实现本发明实施例提供的任一种唤醒锁释放方法的步骤。
本发明实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。上述提到的存储介质可以是只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。上述的各装置或系统,可以执行相应方法实施例中的方法。
综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。

Claims (20)

  1. 一种唤醒锁释放方法,其中,包括:
    获取第一唤醒锁释放指令;
    根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒终端;
    判断所述应用是否满足预设条件;
    如满足预设条件,则释放所述应用持有的所述唤醒锁。
  2. 根据权利要求1所述的唤醒锁释放方法,其中,所述判断所述应用是否满足预设条件的步骤,具体包括:
    确定应用集合中是否存在与所述应用相同的应用;
    若是,则确定所述应用满足预设条件;
    若否,则确定所述应用不满足条件。
  3. 根据权利要求1所述的唤醒锁释放方法,其中,所述释放所述应用持有的所述唤醒锁的步骤之前,还包括:
    判断所述应用是否存在授权标识;
    当判断出所述应用存在授权标识时,执行释放所述应用持有的所述唤醒锁的步骤。
  4. 根据权利要求2所述的唤醒锁释放方法,其中,所述在确定应用集合中是否存在与所述应用相同的应用的步骤之前,还包括:
    获取终端上安装的应用;
    根据所述应用的属性信息从所述应用中选取目标应用,以建立应用集合。
  5. 根据权利要求1所述的唤醒锁释放方法,其中,所述获取第一唤醒锁释放指令的步骤,具体包括:
    当满足唤醒锁释放条件后,如在预设时长内未检测到用户操作且唤醒锁未被释放,则获取第一唤醒锁释放指令。
  6. 根据权利要求5所述的唤醒锁释放方法,其中,所述满足唤醒锁释放条件的步骤,具体包括:
    当检测到应用异常持有唤醒锁使终端的屏幕背光或键盘背光一直处于开启状态时,则判定为满足唤醒锁释放条件。
  7. 根据权利要求1所述的唤醒锁释放方法,其中,所述在判断所述应用是否满足预设条件的步骤之后,还包括:
    如不满足预设条件,则提示用户不能释放所述应用持有的所述唤醒锁。
  8. 根据权利要求7所述的唤醒锁释放方法,其中,所述在如不满足预设条件,则提示用户不能释放所述应用持有的所述唤醒锁的步骤之后,还包括:
    如获取到用户的第二唤醒锁释放指令,则释放所述应用持有的所述唤醒锁。
  9. 一种唤醒锁释放装置,其中,包括:
    第一唤醒锁释放指令获取模块,用于获取第一唤醒锁释放指令;
    应用获取模块,用于根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒终端;
    预设条件判断模块,用于判断所述应用是否满足预设条件;
    第一唤醒锁释放模块,用于在满足预设条件时,释放所述应用持有的所述唤醒锁。
  10. 根据权利要求9所述的唤醒锁释放装置,其中,所述预设条件判断模块,具体包括:
    相同应用确定单元,用于确定应用集合中是否存在与所述应用相同的应用;
    确定满足单元,用于在是时,确定所述应用满足预设条件;
    确定不满足单元,用于在否时,确定所述应用不满足条件。
  11. 根据权利要求10所述的唤醒锁释放装置,其中,所述唤醒锁释放装置,还包括:
    应用获取模块,用于获取终端上安装的应用;
    应用集合建立模块,用于根据所述应用的属性信息从所述应用中选取目标应用,以建立应用集合。
  12. 根据权利要求9所述的唤醒锁释放装置,其中,所述第一唤醒锁释放指令获取模块,具体包括:
    第一唤醒锁释放指令获取单元,用于满足唤醒锁释放条件后,在预设时长内未检测到用户操作且唤醒锁未被释放时,获取第一唤醒锁释放指令。
  13. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1至8任一项所述的唤醒锁释放方法的步骤。
  14. 一种电子设备,其中,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
    获取第一唤醒锁释放指令;
    根据所述第一唤醒锁释放指令,获取持有唤醒锁的应用,其中所述唤醒锁用以唤醒电子设备;
    判断所述应用是否满足预设条件;
    如满足预设条件,则释放所述应用持有的所述唤醒锁。
  15. 如权利要求14所述的电子设备,其中,判断所述应用是否满足预设条件时,所述处理器用于执行以下步骤:
    确定应用集合中是否存在与所述应用相同的应用;
    若是,则确定所述应用满足预设条件;
    若否,则确定所述应用不满足条件。
  16. 如权利要求14所述的电子设备,其中,在所述释放所述应用持有的所述唤醒锁之前,所述处理器还用于执行以下步骤:
    判断所述应用是否存在授权标识;
    当判断出所述应用存在授权标识时,执行释放所述应用持有的所述唤醒锁的步骤。
  17. 如权利要求15所述的电子设备,其中,在所述在确定应用集合中是否存在与所述应用相同的应用之前,所述处理器还用于执行以下步骤:
    获取电子设备上安装的应用;
    根据所述应用的属性信息从所述应用中选取目标应用,以建立应用集合。
  18. 如权利要求14所述的电子设备,其中,获取第一唤醒锁释放指令时,所述处理器用于执行以下步骤:
    当满足唤醒锁释放条件后,如在预设时长内未检测到用户操作且唤醒锁未被释放,则获取第一唤醒锁释放指令。
  19. 如权利要求18所述的电子设备,其中,满足唤醒锁释放条件时,所述处理器用于执行以下步骤:
    当检测到应用异常持有唤醒锁使电子设备的屏幕背光或键盘背光一直处于开启状态时,则判定为满足唤醒锁释放条件。
  20. 如权利要求14所述的电子设备,其中,在所述在判断所述应用是否满足预设条件的步骤之后,所述处理器还用于执行以下步骤:
    如不满足预设条件,则提示用户不能释放所述应用持有的所述唤醒锁。
PCT/CN2017/086483 2016-05-31 2017-05-29 一种唤醒锁释放方法、装置、存储介质及电子设备 WO2017206886A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610383730.3A CN106095419A (zh) 2016-05-31 2016-05-31 唤醒锁释放方法及装置
CN201610383730.3 2016-05-31

Publications (1)

Publication Number Publication Date
WO2017206886A1 true WO2017206886A1 (zh) 2017-12-07

Family

ID=57447417

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086483 WO2017206886A1 (zh) 2016-05-31 2017-05-29 一种唤醒锁释放方法、装置、存储介质及电子设备

Country Status (2)

Country Link
CN (1) CN106095419A (zh)
WO (1) WO2017206886A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095419A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 唤醒锁释放方法及装置
CN106502372A (zh) * 2016-11-28 2017-03-15 珠海市魅族科技有限公司 一种应用控制的方法及移动终端
CN107291212A (zh) * 2017-06-16 2017-10-24 深圳天珑无线科技有限公司 电源锁处理方法及装置
CN107608724A (zh) * 2017-09-26 2018-01-19 深圳市金立通信设备有限公司 一种管理应用程序的方法、终端及计算机可读存储介质
CN110018885B (zh) * 2017-12-29 2021-06-01 Oppo广东移动通信有限公司 应用程序冻结方法、装置、存储介质和终端
CN109981299B (zh) * 2019-03-05 2021-06-01 青岛海信传媒网络技术有限公司 唤醒方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156053A (zh) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 一种异常耗电的控制方法、装置和移动终端
US20150208352A1 (en) * 2014-01-22 2015-07-23 Seven Networks, Inc. Method for power saving in mobile devices by optimizing wakelocks
CN105183137A (zh) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 一种移动终端及其唤醒锁控制方法和控制系统
CN105530377A (zh) * 2015-12-14 2016-04-27 广东欧珀移动通信有限公司 一种唤醒锁的处理方法、装置及系统
CN106095419A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 唤醒锁释放方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150208352A1 (en) * 2014-01-22 2015-07-23 Seven Networks, Inc. Method for power saving in mobile devices by optimizing wakelocks
CN104156053A (zh) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 一种异常耗电的控制方法、装置和移动终端
CN105183137A (zh) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 一种移动终端及其唤醒锁控制方法和控制系统
CN105530377A (zh) * 2015-12-14 2016-04-27 广东欧珀移动通信有限公司 一种唤醒锁的处理方法、装置及系统
CN106095419A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 唤醒锁释放方法及装置

Also Published As

Publication number Publication date
CN106095419A (zh) 2016-11-09

Similar Documents

Publication Publication Date Title
WO2017206886A1 (zh) 一种唤醒锁释放方法、装置、存储介质及电子设备
WO2017206878A1 (zh) 一种基于唤醒锁的处理方法、装置、存储介质及电子设备
WO2017206875A1 (zh) 一种基于数据包的处理方法、装置、存储介质及电子设备
WO2017206879A1 (zh) 一种移动终端应用程序的处理方法、装置、存储介质及电子设备
WO2017206890A1 (zh) 一种基于唤醒锁的处理方法、装置、存储介质及电子设备
WO2019160371A1 (en) A method and an electronic device for controlling an external electronic device on the basis of an electromanetic signal
WO2018161585A1 (zh) 电子设备帧率的控制方法、装置、存储介质及电子设备
WO2017206870A1 (zh) 一种传感器关闭方法、装置、存储介质及电子设备
WO2018076819A1 (zh) 数据的上传方法、装置、存储介质、电子设备及系统
WO2020101350A1 (en) Method for processing data using neural network and electronic device for supporting the same
WO2017206885A1 (zh) 应用程序的关闭方法、装置、存储介质及电子设备
WO2018062894A1 (ko) 전력을 제어하는 전자 장치
WO2017206880A1 (zh) 终端数据处理方法、装置、存储介质及电子设备
WO2017206892A1 (zh) 一种移动终端的传感器处理方法、装置、存储介质及电子设备
WO2018076869A1 (zh) 一种数据备份方法、装置、存储介质和电子设备
WO2018076840A1 (zh) 数据分享方法、装置、存储介质及服务器
WO2017206867A1 (zh) 一种传感器的关闭方法、装置、存储介质及电子设备
WO2018161580A1 (zh) 广播的控制方法、装置、存储介质及电子设备
WO2017206865A1 (zh) 一种应用程序的关闭方法、装置、存储介质及电子设备
WO2020085784A1 (en) Electronic device and system which provides service based on voice recognition
WO2017206873A1 (zh) 一种应用程序的关闭方法、装置、存储介质及电子设备
WO2017206871A1 (zh) 一种应用程序的关闭方法、装置、存储介质及电子设备
WO2017206874A1 (zh) 一种应用程序的关闭方法、装置、存储介质及电子设备
WO2020032636A1 (en) Electronic device for providing notification message and method thereof
WO2017206877A1 (zh) 一种唤醒锁的释放方法、装置、存储介质及电子设备

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: 17805831

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: 17805831

Country of ref document: EP

Kind code of ref document: A1