WO2017206878A1 - Procédé et appareil de traitement basé sur un verrou d'activation, support d'informations et dispositif électronique - Google Patents

Procédé et appareil de traitement basé sur un verrou d'activation, support d'informations et dispositif électronique Download PDF

Info

Publication number
WO2017206878A1
WO2017206878A1 PCT/CN2017/086475 CN2017086475W WO2017206878A1 WO 2017206878 A1 WO2017206878 A1 WO 2017206878A1 CN 2017086475 W CN2017086475 W CN 2017086475W WO 2017206878 A1 WO2017206878 A1 WO 2017206878A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
lock
wake
terminal
preset
Prior art date
Application number
PCT/CN2017/086475
Other languages
English (en)
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 WO2017206878A1 publication Critical patent/WO2017206878A1/fr

Links

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/325Power saving in peripheral device
    • 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
    • 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

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device.
  • the embodiment of the invention provides a method, a device, a storage medium and an electronic device for processing a wake-up lock, which are used for reducing standby power consumption of the terminal.
  • an embodiment of the present invention provides a method for processing a wake-up lock, including:
  • the application is prevented from waking up the terminal by the target wake-up lock according to the duration.
  • the embodiment of the present invention further provides a processing device based on a wake-up lock, including:
  • a receiving module configured to receive an information acquisition instruction when the terminal is in a standby state
  • a first obtaining module configured to acquire, according to the information obtaining instruction, a duration for the application to hold the target wake-up lock, where the target wake-up lock is used to wake up the terminal;
  • a processing module configured to prevent the application from waking up the terminal by the target wakeup lock according to the duration.
  • an embodiment of the present invention further provides a storage medium having a computer program stored thereon, the computer program being invoked by a processor to execute a wakelock-based processing method according to any of the embodiments of the present invention.
  • an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor calls the computer stored in the memory A program for performing a wakelock-based processing method according to any of the embodiments of the present invention.
  • the embodiment of the invention provides a method, a device, a storage medium and an electronic device for processing a wake-up lock, which are used for reducing standby power consumption of the terminal.
  • FIG. 1 is a schematic flowchart of a method for processing a wake-up lock according to an embodiment of the present invention.
  • FIG. 2 is another schematic flowchart of a method for processing a wake-up lock according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a wakelock-based processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is another schematic structural diagram of a wakelock-based processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is still another schematic structural diagram of a wakelock-based processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is still another schematic structural diagram of a wakelock-based processing apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • Embodiments of the present invention provide a processing method, apparatus, storage medium, and electronic device based on a wake lock. The details will be described separately below.
  • a wake-up lock-based processing device which may be integrated into an electronic device, which may be a terminal such as a smart phone or a tablet computer.
  • An embodiment of the present invention provides a processing method based on a wakeup lock, including:
  • the application is prevented from waking up the terminal by the target wake-up lock according to the duration.
  • the step of preventing the application from waking up the terminal by the target wakeup lock according to the duration includes:
  • the application is prevented from waking up the terminal by the target wakeup lock.
  • the method further includes:
  • a target wake lock is selected from the set of wake locks according to the type of the wake lock in the wake lock set.
  • the method further includes:
  • the step of preventing the application from waking up the terminal by the target wake-up lock is performed.
  • determining whether a preset application in the preset application set is the same as the application includes:
  • the method further includes:
  • the reminder process is performed according to the case where the application holds the target wake lock time longer than the preset duration and is not the preset application.
  • the method further includes:
  • the step of preventing the application from awakening the terminal by using the target wakeup lock includes:
  • the application is prevented from waking up the terminal by the target wakeup lock according to the application identification set.
  • receiving an information acquisition instruction includes:
  • the information acquisition instruction is received every preset time period.
  • the obtaining, by the information obtaining instruction, the duration of the application holding the target wakelock includes:
  • each application running in the background is detected by the traversal method for the duration of holding the target wake-up lock, so as to obtain the duration of the application holding the target wake-up lock.
  • FIG. 1 is a schematic flowchart diagram of a method for processing a wake-up lock according to an embodiment of the present invention. The method includes:
  • the application is suspended in the background to make the terminal enter the standby state.
  • the system needs to hold the wake-up lock of the system to keep the CPU running to ensure the normal execution of its tasks, but if it is long The CPU cannot be stopped, and the terminal cannot sleep normally. It seems that the terminal is no longer working. In fact, when the terminal is in standby, the CPU in the background is always in working state, which increases unnecessary standby power consumption.
  • the terminal is in a standby state, that is, the terminal is in a blackout state, wherein the information obtaining instruction may be sent by the server, for example, the information receiving instruction sent by the terminal receiving server may be set; the information obtaining instruction may also be
  • the device can be triggered by the terminal itself.
  • a timer can be integrated in the terminal.
  • the timer can be integrated into the terminal in the form of an APP.
  • the information acquisition command is triggered every preset time interval.
  • the preset time interval can be set to 1 s.
  • the time interval may be set to a larger value, such as 30 min, 1 h, etc.; that is, the above step "when the terminal is in the standby state, receiving the information acquisition instruction" may specifically be :
  • the information acquisition instruction is received every preset time period.
  • the application may be an application running in the background, and may be an application or multiple applications; the duration may be from the moment when the application starts to hold the target wake lock to the current The time interval of the moment.
  • the duration of each target application running in the background may be detected by traversing to obtain the duration. It is also possible to detect the duration of holding the target wake-up lock for each application running in the background by means of detection one by one to obtain the duration.
  • the background application can trigger the application to apply for the wake-up lock to wake up the terminal by setting the wake-up clock; for example, the terminal can send a wake-up command after the wake-up clock is triggered, according to the The wake-up command can trigger the corresponding application to apply for a wake-up lock, so that the application can hold the wake-up lock, and can wake up the terminal system through the wake-up lock to perform related tasks (such as receiving push messages, etc.).
  • PARTIAL_WAKE_LOCK can be used to keep the CPU. Operation, screen and keyboard lights may be turned off; SCREEN_DIM_WAKE_LOCK can be used to keep the CPU running, allowing the screen to be displayed but may be gray, allowing the keyboard lights to be turned off, etc. SCREEN_BRIGHT_WAKE_LOCK can be used to keep the CPU Run, allowing the screen to remain highlighted, allowing the keyboard to be turned off; FULL_WAKE_LOCK can be used to keep the CPU running, keep the screen highlighted, and keep the keyboard light on.
  • the target wake-up lock that needs to be automatically processed may be determined in advance to improve the processing accuracy.
  • the wake lock held by the application in the terminal may be detected, and the wake lock type may be selected according to the type of the wake lock.
  • the processing of a certain type or multiple types of wake-up locks, that is, after the terminal is in the standby state, before receiving the information acquisition instruction may also include the following processes:
  • the target wake lock is selected from the wake lock set according to the type of wake lock in the wake lock set.
  • the wake-up lock acquisition instruction may be received, and all the wake-up locks in the terminal are acquired according to the acquisition instruction, and added to the wake-up lock set, and then the selection instruction may be received, and the selection instruction may carry the type identifier of the wake-up lock to be selected.
  • the terminal may select a required wake lock from the wake lock set as the target wake lock according to the selection instruction.
  • whether the wake-up terminal is blocked may be determined according to the duration of the target wake-up lock held by the application; wherein the method for preventing the application from waking up the terminal through the target wake-up lock may be various, for example, may be forced Release the target wake-up lock, or you can prevent the application from applying for the target wake-up lock, or you can cancel the application-set wake-up clock and so on.
  • the application holding the target wake-up lock can be forcibly closed, which can be expressed as killing the application completely, except that the application can be ended.
  • the process tree corresponding to the application can be ended, not only can the target wake-up lock be released, but also the wake-up clock set by the application can be cancelled, and the possibility that the terminal system continues to be executed after being awakened by other wake-up sources is eliminated, and the possibility is reduced.
  • the power consumption of the terminal in order to completely prevent the application from waking up the terminal through the target wake-up lock, the application holding the target wake-up lock can be forcibly closed, which can be expressed as killing the application completely, except that the application can be ended.
  • the process tree corresponding to the application can be ended, not only can the target wake-up lock be released, but also the wake-up clock set by the application can be cancelled, and the possibility that the terminal system continues to be executed after being awakened by other wake-up sources is eliminated, and the possibility is reduced.
  • the power consumption of the terminal in order to
  • the target wake-up lock in order to enable the application to complete the work normally, and not excessively depleting the power consumption of the terminal, the target wake-up lock can be prevented from awakening the terminal when the terminal CPU is not released for a long time, that is, the step is “based on The specific duration of the application that prevents the application from waking up the terminal through the target wake-up lock may include:
  • the application is prevented from waking up the terminal through the target wake-up lock.
  • the preset duration may be a standard value used to measure the duration of the application holding the target wake-up lock after multiple experimental tests, or may be set by the user according to the actual situation of the user's needs and the performance of the terminal device. Such as 1s, 10s and so on.
  • the method may further include:
  • the step of preventing the application from waking up the terminal through the target wake-up lock is performed.
  • the user may set a preset application that can perform automatic processing, and determine whether to block the wake-up terminal by determining whether the application holding the target wake-up lock is a preset application. To avoid problems with mishandling.
  • the user may be provided with a selected space, and an application processing mechanism is added to process the detected application that has the target wake-up lock duration abnormality (also instantaneously longer than the preset duration).
  • the processing mechanism can be integrated in the terminal in the form of an APP, which can provide a user-editable interface, which can list all the applications installed in the mobile terminal, and the user can choose whether to authorize the system and hold the target in the application.
  • the wake lock duration is longer than the preset duration, the application is automatically processed, and the authorized application is used as the preset application.
  • the processing mechanism may confirm whether the application authorization information is automatically processed by the user authorization system after receiving the application identification information of the abnormal application provided by the terminal, where the application identification information may be the application
  • the package name information that is, the above step "determine whether the preset application in the preset application set has the same preset application as the application” may be: obtaining the application identifier of the application; determining whether the preset identifier set is There is a preset application that matches the application identifier; if it exists, it is determined that the application is a preset application; if not, it is determined that the application is not a preset application.
  • the application when it is determined that the application is not a preset application, the application will not be prevented from waking up the terminal through the target wake-up lock, but the user may be reminded, for example, to remind the user of the application in a pop-up window.
  • the target wake-up lock is abnormal, the terminal is difficult to enter deep sleep and is still in a working power consumption state.
  • the method may further include:
  • steps of “blocking the application from waking up the terminal through the target wake-up lock” may specifically include:
  • the application identifier of the application holding the target wakelock may be obtained, where the application identifier may be a user number UID, or may be a process ID PID, or may be an application.
  • the package name and the like may be used to indicate the identification information of the application, and then the application identifier may be added to the application identifier set and saved in the terminal storage area.
  • other related information may also be obtained for display to the user, such as The name information of the target wake-up lock, and so on.
  • the application identifier set may include an application identifier of multiple application programs, and the processing instruction may be sent according to the application identifier set, and the terminal may acquire an application that matches the application identifier in the application identifier set according to the processing instruction.
  • the program performs related processing to prevent the application from waking up the terminal through the target wake-up lock.
  • the embodiment of the present invention provides a processing method based on a wake-up lock, which receives an information acquisition instruction when the terminal is in a standby state, and then acquires a duration of the target wake-up lock by the application according to the information acquisition instruction.
  • the target wake-up lock is used to wake up the terminal, and according to the duration, the application is prevented from waking up the terminal through the target wake-up lock; the solution can prevent the wake-up when the terminal holds the target wake-up lock for longer than the preset duration when the terminal is in standby.
  • the terminal reduces the standby power consumption of the terminal and prolongs the duration of the terminal.
  • FIG. 2 is another schematic flowchart of a method for processing a wake-up lock according to an embodiment of the present invention.
  • the processing device based on the wake-up lock is specifically integrated in the mobile terminal, and the operating system installed in the mobile terminal is an Android system as an example for detailed description.
  • the specific process can be as follows:
  • the mobile terminal When the mobile terminal is in a standby state, traverse the wake lock held by the background application to obtain a wake lock set, where the wake lock set includes different types of wake locks.
  • the mobile terminal may call a detection module, and the detection module detects the wake lock held by the application running in the background, and may be an application or multiple applications to obtain a wake lock set.
  • the information of the wake-up lock in the wake-up lock set may be displayed in the form of a list, and the list may record information such as the name of the wake-up lock, the type of the wake-up lock, and the like, and the time of opening.
  • the mobile terminal selects a target wakelock from the wakelock set according to the type of the wakelock in the wakelock set.
  • the mobile terminal may receive a selection instruction, where the selection instruction may carry a type identifier of the wake-up lock that needs to be selected, and the mobile terminal may select a required wake-up lock from the wake-up lock set according to the selection instruction.
  • the target wake-up lock for example, the wake-up lock of the PARTIAL_WAKE_LOCK type can be used as the target wake-up lock.
  • the mobile terminal determines whether the duration of the target wake-up lock held by the application is greater than a preset duration; if yes, step 204 is performed, and if not, the process ends.
  • the information acquisition instruction may be received, and the information acquisition instruction may be triggered by the mobile terminal itself.
  • a timer may be integrated in the mobile terminal, and the timer may be integrated in the mobile terminal in the form of an APP.
  • the time interval triggers the information acquisition instruction, and the mobile terminal may, according to the time interval from the time when the application starts holding the target wake-up lock to the current time, as the duration, and then receive the determination instruction, and determine, according to the determination instruction, whether the duration is greater than The preset duration.
  • the preset duration may be measured by a plurality of experiments by a person skilled in the art to measure the standard value of the duration of the application holding the target wake-up lock, or may be based on actual conditions such as user requirements and performance of the mobile terminal. User-defined settings, such as 1s, 10s, etc.
  • the mobile terminal acquires an application identifier corresponding to the target wake-up lock, and adds an application identifier to the application identifier set, where the application identifier indicates an application that holds the target wake-up lock.
  • the application identifier of the application holding the target wake-up lock may be obtained.
  • the application identifier may be the user identifier corresponding to the target wake-up lock, that is, the UID.
  • the mobile terminal may add the application identifier to the application identifier set, and save the information in the terminal storage area.
  • other related information may be obtained for the user to view, such as the name information of the target wake lock; for example, the target may be awakened.
  • the name of the lock, the corresponding UID, the corresponding duration, and the like are recorded in the list.
  • the mobile terminal prevents the application from waking up the terminal system by using the target wakeup lock according to the application identifier set.
  • the application identifier set may include an application identifier of multiple application programs, and the processing instruction may be sent according to the application identifier set, and the terminal may acquire an application that matches the application identifier in the application identifier set according to the processing instruction.
  • the program performs related processing to prevent the application from waking up the terminal system through the target wake-up lock; for example, the package name information of the application may be obtained according to the UID corresponding to the target wake-up lock to obtain an application holding the target wake-up lock.
  • the target wake-up lock can be forcibly released, or the application can be prevented from applying for the target wake-up lock, or the wake-up clock set by the application can be canceled. and many more.
  • the application holding the target wake-up lock can be forcibly closed, which can be expressed as completely killing the application, except that the application can be ended.
  • the process tree corresponding to the application can be ended, not only can the target wake-up lock be released, but also the wake-up clock set by the application can be canceled, and the possibility that the terminal system continues to be executed after being awakened by other wake-up sources is eliminated. Reduce the power consumption of the terminal.
  • the user may be provided with a selected space, and an application processing mechanism is added to process the detected application that has the target wake-up lock duration abnormality (also instantaneously longer than the preset duration).
  • the processing mechanism can be integrated in the mobile terminal in the form of an APP, which can provide an interface that the user can edit, can list all the applications installed in the mobile terminal, and the user can choose whether to authorize the system and hold in the application.
  • the application is automatically processed when the target wake lock duration is greater than the preset duration.
  • an embodiment of the present invention provides a method for processing a wake-up lock, by traversing a wake-up lock held by a background application when the mobile terminal is in a standby state, to obtain a wake-up lock set, and then, according to the wake-up lock set.
  • the type of the wake-up lock is selected from the wake lock set, and the duration of the target wake-up lock is determined. If it is greater than, the application identifier corresponding to the target wake-up lock is obtained, and the application identifier is added to the application identifier set.
  • the solution can prevent the wake-up terminal from being held according to the duration of the application holding the target wake-up lock when the terminal is in standby, which reduces the terminal compared to the prior art.
  • the standby power consumption extends the standby time of the terminal.
  • the embodiment of the present invention further provides a processing device based on a wake-up lock, which may be integrated into an electronic device, and the electronic device may specifically include a mobile phone, a tablet computer, and a notebook computer. Wait for the terminal.
  • the device includes:
  • a receiving module configured to receive an information acquisition instruction when the terminal is in a standby state
  • a first obtaining module configured to acquire, according to the information obtaining instruction, a duration for the application to hold the target wake-up lock, where the target wake-up lock is used to wake up the terminal;
  • a processing module configured to prevent the application from waking up the terminal by the target wakeup lock according to the duration.
  • the processing module is further configured to determine whether the duration is greater than a preset duration; if the duration is greater than a preset duration, preventing the application from waking up the terminal by the target wakeup lock.
  • the apparatus further includes:
  • a traversing module configured to: after the terminal is in a standby state, traverse the wakelock held by the application in the terminal to obtain a wakelock set, and the wakelock set includes different types of wakelocks;
  • a selection module configured to select a target wake lock from the wake lock set according to a type of the wake lock in the wake lock set.
  • the apparatus further includes:
  • Determining a module after determining that the duration is greater than a preset duration, preventing the application from awakening the terminal by the target wakeup lock, determining whether a preset in the preset application set is the same as the application Set up an application;
  • the processing module is further configured to prevent the application from waking up the terminal by the target wakeup lock when the determining module determines to be YES.
  • the determining module further includes:
  • a determining sub-module configured to determine whether a preset application that matches the application identifier exists in the preset identifier set
  • Determining a sub-module when the preset application that matches the application identifier exists in the preset identifier set, determining that the application is a preset application; and the application identifier is not present in the preset identifier set When matching a preset application, it is determined that the application is not a preset application.
  • the apparatus further includes:
  • the reminding module is configured to perform reminding processing according to the situation that the application holds that the target wake-up lock is longer than the preset duration and is not the preset application.
  • the apparatus further includes:
  • a second acquiring module configured to: after determining that the duration is greater than a preset duration, preventing the application from acquiring an application identifier corresponding to the target wakeup lock by waking up the terminal by using the target wakeup lock, where An application identifier indicating an application that holds the target wake lock;
  • Adding a module configured to add the application identifier to the application identifier set
  • the processing module is further configured to prevent the application from waking up the terminal by using the target wakeup lock according to the application identifier set.
  • the receiving module is configured to receive an information acquisition instruction every preset time period when the terminal is off.
  • the first obtaining module is configured to detect, according to the information obtaining instruction, a duration of holding a target wake-up lock for each application running in the background by means of traversing, to obtain an application holding The duration of the target wake lock.
  • the wakelock-based processing device may include a receiving module 301, a first obtaining module 302, and a processing module 303;
  • the receiving module 301 is configured to receive an information acquisition instruction when the terminal is in a standby state
  • the first obtaining module 302 is configured to acquire, according to the information obtaining instruction, a duration for the application to hold the target wake-up lock, where the target wake-up lock is used to wake up the terminal;
  • the processing module 303 is configured to prevent the application from waking up the terminal by using the target wakeup lock according to the duration.
  • the processing module 303 is specifically configured to determine whether the duration is greater than a preset duration; if the duration is greater than the preset duration, the application is prevented from waking up the terminal by the target wakeup lock.
  • the apparatus may further include: a traversal module 304 and a selection module 305;
  • the traversing module 304 is configured to: after the terminal is in the standby state, traverse the wakelock held by the application in the terminal to obtain a wakelock set, where the wakelock set includes different types of wakelocks;
  • the selection module 305 is configured to select a target wake lock from the wake lock set according to the type of the wake lock in the wake lock set.
  • the receiving module 306 is configured to receive an information acquisition instruction every preset time period when the terminal is off.
  • the first obtaining module 302 is configured to detect, according to the information obtaining instruction, a duration of holding a target wake-up lock for each application running in the background by means of traversing, to obtain an application holding The length of time the target wakes the lock.
  • the apparatus may further include: a determining module 306;
  • the determining module 306 is configured to: after determining that the duration is greater than the preset duration, preventing the application from awakening the terminal by the target wakeup lock, determining whether a preset application in the preset application set is the same as the application ;
  • the processing module 303 is specifically configured to prevent the application from waking up the terminal by the target wakeup lock when the determining module 306 determines to be YES.
  • the determining module 306 further includes: an obtaining submodule 3061, a determining submodule 3062, and a determining submodule 3063.
  • the obtaining submodule 3061 is configured to obtain an application identifier of the application.
  • the determining sub-module 3062 is configured to determine whether a preset application that matches the application identifier exists in the preset identifier set;
  • the determining sub-module 3063 is configured to determine that the application is a preset application when a preset application that matches the application identifier exists in the preset identifier set; and the preset identifier does not exist in the preset identifier set. When you preset the app, make sure the app is not the default app.
  • the device can also include a reminder module 309.
  • the reminding module 309 is configured to perform a reminding process according to a situation in which the application holds that the target wake lock time is greater than a preset duration and is not a preset application.
  • the apparatus may further include: a second obtaining module 307 and an adding module 308;
  • the second obtaining module 307 is configured to: after determining that the duration is greater than the preset duration, preventing the application from acquiring the application identifier corresponding to the target wakeup lock by using the target wakeup lock to wake up the terminal, where the application identifier indicates An application that has the target wake lock;
  • the adding module 308 is configured to add the application identifier to the application identifier set
  • the processing module 303 is specifically configured to prevent the application from waking up the terminal by using the target wakeup lock according to the application identifier set.
  • the embodiment of the present invention provides a processing device based on a wake-up lock.
  • the receiving module 301 receives an information obtaining instruction
  • the first obtaining module 302 acquires an application according to the information acquiring instruction.
  • the duration of the target wake-up lock wherein the target wake-up lock is used to wake up the terminal, and the processing module 303 blocks the application from waking up the terminal through the target wake-up lock according to the duration; the solution can hold the target wake-up lock when the terminal is in standby If the preset duration is longer than the preset duration, the terminal is prevented from waking up, and the standby power consumption of the terminal is reduced as compared with the prior art.
  • An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor calling the computer program stored in the memory, executing the program A wakelock-based processing method according to any of the embodiments of the present invention.
  • the electronic device can be a device such as a smartphone or a tablet.
  • electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer readable storage media, and a computer program stored on the memory and operable on the processor. .
  • the processor 401 is electrically connected to the memory 402.
  • the processor 401 is a control center of the electronic device 400, 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 402, and calling data stored in the memory 402.
  • the various functions and processing data of the device enable overall monitoring of the electronic device.
  • the processor 401 in the electronic device 400 loads the instructions corresponding to the process of one or more applications into the memory 402 according to the following steps, and is stored in the memory by the processor 401.
  • the application in 402 to implement various functions:
  • the processor 401 is further configured to perform the following steps:
  • the application is prevented from waking up the electronic device by the target wake-up lock according to the duration.
  • the processor 401 is further configured to perform the following steps:
  • the application is prevented from waking up the electronic device by the target wake-up lock.
  • the processor 401 after receiving the information acquisition instruction after the electronic device is in the standby state, the processor 401 is further configured to perform the following steps:
  • a target wake lock is selected from the set of wake locks according to the type of the wake lock in the wake lock set.
  • the processor 401 is further configured to perform the following steps:
  • the step of preventing the application from waking up the electronic device through the target wake-up lock is performed.
  • the processor 401 is further configured to perform the following steps:
  • the processor 401 is further configured to perform the following steps:
  • the reminder process is performed according to the case where the application holds the target wake lock time longer than the preset duration and is not the preset application.
  • the processor 401 is further configured to perform the following steps:
  • the step of preventing the application from waking up the electronic device by using the target wake-up lock includes:
  • the application is prevented from waking up the electronic device by the target wakeup lock according to the set of application identifiers.
  • the processor 401 when the electronic device is in a standby state, receiving an information acquisition instruction, the processor 401 is further configured to perform the following steps:
  • the information acquisition instruction is received every preset time period.
  • the processor 401 is configured to acquire, according to the information obtaining instruction, a duration for the application to hold the target wake lock, including:
  • each application running in the background is detected by the traversal method for the duration of holding the target wake-up lock, so as to obtain the duration of the application holding the target wake-up lock.
  • the electronic device 400 further includes: a display screen 403, wireless fidelity (WiFi, Wireless) Fidelity module 404, RF circuit 405, input unit 406, audio circuit 407, sensor 408, and power supply 409.
  • the processor 401 is electrically connected to the display screen 403, the wireless fidelity (WiFi) module 404, the radio frequency circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409, respectively.
  • WiFi wireless fidelity
  • the electronic device structure illustrated in FIG. 8 does not constitute a limitation to the electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the display screen 403 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 graphics, text, icons, video, and any combination thereof.
  • the input function can also be implemented as part of the input unit.
  • the Wireless Fidelity (WiFi) module 404 can be used for short-range wireless transmission, and can help users to send and receive emails, browse websites, and access streaming media. It provides users with wireless broadband Internet access.
  • the radio frequency circuit 405 can be used to transmit and receive 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 406 can be configured to receive input digits, 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 406 can include a fingerprint identification module.
  • the audio circuit 407 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • Sensor 408 is used to collect external environmental information.
  • Sensor 408 can include one or more of ambient brightness sensors, acceleration sensors, gyroscopes, and the like.
  • Power source 409 is used to power various components of electronic device 400.
  • the power supply 409 can be logically coupled to the processor 401 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 400 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the electronic device releases the wake-up lock held by the application process when the electronic device closes the application process, determines an associated application process associated with the application process, and determines whether the associated application process is held.
  • Wake-up lock if yes, release the wake-up lock held by the associated application process; this solution can release the wake-up lock of the application process while releasing the application process, and further release the application process associated with the application process.
  • the wake-up lock reduces the consumption of power in the electronic device, saves the power of the electronic device, and thus improves the battery life of the electronic device.
  • An embodiment of the present invention further provides a storage medium having stored thereon a computer program, the computer program being invoked by a processor to perform a wakelock-based processing method according to any of the embodiments of the present invention.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read only memory (ROM, Read Only Memory), Random Access Memory (RAM), disk or CD.
  • ROM Read only memory
  • RAM Random Access Memory

Landscapes

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

Abstract

L'invention concerne un procédé de traitement basé sur un verrou d'activation et un appareil de traitement, un support d'informations et un dispositif électronique. Le procédé de traitement comprend les étapes suivantes : lorsqu'un terminal est dans un état de veille, la réception d'une instruction d'acquisition d'informations (101) ; conformément à l'instruction d'acquisition d'informations, l'acquisition d'une durée pour laquelle un programme d'application contient un verrou d'activation cible, le verrou d'activation cible étant utilisé pour activer le terminal (102), et selon la durée, empêcher le programme d'application d'activer le terminal par l'intermédiaire du verrou d'activation cible (103).
PCT/CN2017/086475 2016-05-31 2017-05-29 Procédé et appareil de traitement basé sur un verrou d'activation, support d'informations et dispositif électronique WO2017206878A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610379892.X 2016-05-31
CN201610379892.XA CN106055077A (zh) 2016-05-31 2016-05-31 一种基于唤醒锁的处理方法及装置

Publications (1)

Publication Number Publication Date
WO2017206878A1 true WO2017206878A1 (fr) 2017-12-07

Family

ID=57173128

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086475 WO2017206878A1 (fr) 2016-05-31 2017-05-29 Procédé et appareil de traitement basé sur un verrou d'activation, support d'informations et dispositif électronique

Country Status (2)

Country Link
CN (1) CN106055077A (fr)
WO (1) WO2017206878A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766611A (zh) * 2020-06-02 2021-12-07 深圳市万普拉斯科技有限公司 低功耗控制优化方法、装置、移动终端和存储介质
CN114578949A (zh) * 2022-03-23 2022-06-03 歌尔股份有限公司 一种智能穿戴设备的唤醒方法、装置和智能穿戴设备

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055077A (zh) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 一种基于唤醒锁的处理方法及装置
CN106502372A (zh) * 2016-11-28 2017-03-15 珠海市魅族科技有限公司 一种应用控制的方法及移动终端
CN108268116B (zh) * 2017-01-03 2022-06-07 中兴通讯股份有限公司 一种解决移动终端异常耗电的方法、装置及移动终端
CN107193707B (zh) * 2017-05-08 2018-09-14 广东欧珀移动通信有限公司 信息处理方法、装置和移动终端
CN107195037A (zh) * 2017-05-11 2017-09-22 广东汇泰龙科技有限公司 一种云锁快速唤醒方法、云锁及系统
CN107291212A (zh) * 2017-06-16 2017-10-24 深圳天珑无线科技有限公司 电源锁处理方法及装置
CN107395872B (zh) * 2017-06-30 2020-06-16 Oppo广东移动通信有限公司 应用启动方法、装置、存储介质及电子设备
CN107231434A (zh) * 2017-07-10 2017-10-03 北京小米移动软件有限公司 终端设备的控制方法及装置
CN107908271A (zh) * 2017-10-19 2018-04-13 上海闻泰信息技术有限公司 预防应用影响智能终端耗电的方法、装置及智能终端
CN108762473A (zh) * 2018-06-07 2018-11-06 深圳市亿联智能有限公司 一种可有效降低智能锁待机功耗的方法
WO2020093284A1 (fr) * 2018-11-07 2020-05-14 深圳市欢太科技有限公司 Procédé de traitement d'informations d'application, support de stockage lisible par ordinateur et dispositif électronique
CN110167121A (zh) * 2019-06-28 2019-08-23 中国科学技术大学苏州研究院 一种基于用户行为分析的移动终端功耗优化方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402027A (zh) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 一种移动终端和使移动终端进入睡眠状态的方法
CN104038635A (zh) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 一种移动终端及其异常待机的提示方法
CN104156053A (zh) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 一种异常耗电的控制方法、装置和移动终端
CN105530377A (zh) * 2015-12-14 2016-04-27 广东欧珀移动通信有限公司 一种唤醒锁的处理方法、装置及系统
CN106055077A (zh) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 一种基于唤醒锁的处理方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324519A (zh) * 2013-06-17 2013-09-25 华为技术有限公司 一种恶意耗电应用的清理方法、装置及用户终端
CN105373482A (zh) * 2015-12-23 2016-03-02 北京金山安全软件有限公司 一种检测应用程序耗电异常的方法、装置及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402027A (zh) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 一种移动终端和使移动终端进入睡眠状态的方法
CN104038635A (zh) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 一种移动终端及其异常待机的提示方法
CN104156053A (zh) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 一种异常耗电的控制方法、装置和移动终端
CN105530377A (zh) * 2015-12-14 2016-04-27 广东欧珀移动通信有限公司 一种唤醒锁的处理方法、装置及系统
CN106055077A (zh) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 一种基于唤醒锁的处理方法及装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766611A (zh) * 2020-06-02 2021-12-07 深圳市万普拉斯科技有限公司 低功耗控制优化方法、装置、移动终端和存储介质
CN113766611B (zh) * 2020-06-02 2023-08-11 深圳市万普拉斯科技有限公司 低功耗控制优化方法、装置、移动终端和存储介质
CN114578949A (zh) * 2022-03-23 2022-06-03 歌尔股份有限公司 一种智能穿戴设备的唤醒方法、装置和智能穿戴设备

Also Published As

Publication number Publication date
CN106055077A (zh) 2016-10-26

Similar Documents

Publication Publication Date Title
WO2017206878A1 (fr) Procédé et appareil de traitement basé sur un verrou d'activation, support d'informations et dispositif électronique
WO2017206862A1 (fr) Procédé et appareil de traitement basés sur un verrouillage d'écran lumineux, support de stockage, et dispositif électronique
WO2017206875A1 (fr) Procédé et appareil de traitement basés sur un paquet de données, support de stockage et dispositif électronique
WO2017206883A1 (fr) Procédé et appareil de traitement d'applications, support de stockage, et dispositif électronique
WO2018076866A1 (fr) Procédé de traitement de données, dispositif, support de stockage, dispositif électronique, et serveur
WO2017206890A1 (fr) Procédé et appareil de traitement basé sur un verrouillage de réveil, support de stockage, et dispositif électronique
WO2017206886A1 (fr) Procédé et appareil de déverrouillage d'activation, support d'informations et dispositif électronique
WO2018076819A1 (fr) Procédé de téléchargement de données, appareil, support de stockage, dispositif électronique et système
WO2018076867A1 (fr) Procédé, dispositif et système de suppression de sauvegarde de données, support de mémoire et serveur
WO2018076818A1 (fr) Procédé de sauvegarde de données, appareil, dispositif électronique, support de stockage et système
WO2018161585A1 (fr) Procédé et appareil de commande de fréquence de trames d'un dispositif électronique, support de stockage et dispositif électronique
EP2880770A1 (fr) Procédé et appareil destinés à un service de réveil utilisant la sensibilité au contexte dans un terminal portatif
WO2018166199A1 (fr) Procédé de réglage de niveau de précision de positionnement, dispositif, support de stockage et dispositif électronique
WO2018076812A1 (fr) Procédé et dispositif de réponse à une demande de données, support de stockage, serveur et système
WO2017206879A1 (fr) Procédé et appareil de traitement de programme d'application de terminal mobile, support de stockage, et dispositif électronique
WO2017206867A1 (fr) Procédé et appareil d'arrêt de capteurs, support d'informations, et dispositif électronique
WO2018076864A1 (fr) Procédé, appareil, support de stockage et dispositif électronique de synchronisation de données
WO2018076840A1 (fr) Procédé de partage de données, dispositif, support de stockage et serveur
WO2017206885A1 (fr) Procédé et appareil d'arrêt de programme d'application, support de stockage et dispositif électronique
WO2017206870A1 (fr) Procédé et appareil d'arrêt de capteur, support d'informations et dispositif électronique
WO2017206892A1 (fr) Procédé et appareil de traitement de capteur d'un terminal mobile, support d'informations et dispositif électronique
WO2017206880A1 (fr) Procédé et appareil de traitement de données de terminal, support d'informations et dispositif électronique
WO2017071326A1 (fr) Procédé, dispositif, et système de commande de terminal
WO2018076869A1 (fr) Procédé sauvegarde de données, appareil, support de stockage et dispositif électronique
WO2018076842A1 (fr) Procédé de sauvegarde de données, dispositif, système, support de stockage et dispositif électronique

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

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

Country of ref document: EP

Kind code of ref document: A1