[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107885307B - Equipment control method and device - Google Patents

Equipment control method and device Download PDF

Info

Publication number
CN107885307B
CN107885307B CN201610875467.XA CN201610875467A CN107885307B CN 107885307 B CN107885307 B CN 107885307B CN 201610875467 A CN201610875467 A CN 201610875467A CN 107885307 B CN107885307 B CN 107885307B
Authority
CN
China
Prior art keywords
lock
program
wake
preset
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610875467.XA
Other languages
Chinese (zh)
Other versions
CN107885307A (en
Inventor
刘山荣
冯超
夏翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610875467.XA priority Critical patent/CN107885307B/en
Publication of CN107885307A publication Critical patent/CN107885307A/en
Application granted granted Critical
Publication of CN107885307B publication Critical patent/CN107885307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to a device control method and device. The method comprises the following steps: determining whether application statistical information of a first type of program applying for the wake-up lock in a preset time threshold from the time when the screen is closed meets a preset condition; and if the application statistical information meets the preset condition, executing the operation of stopping running the programs with the preset number in the first type of programs. The technical scheme of the disclosure can reduce the number and time of programs holding the wake-up lock, greatly reduce the power consumption of the equipment and prolong the endurance time of the equipment.

Description

Equipment control method and device
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a device control method and apparatus.
Background
With the rapid development of the internet technology, users often install various Applications (APPs) in mobile devices, such as smart phones and tablet computers, to realize various Application functions, and the following problem is that even if the users close the device screen and do not perform any operation on the device, the power of the mobile device can also apply for a wake-up lock because of the APP needing to push messages, so that the system cannot sleep, the power consumption is fast, and the duration of the device is greatly shortened.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide an apparatus control method and apparatus for prolonging a duration of a mobile apparatus.
According to a first aspect of embodiments of the present disclosure, there is provided an apparatus control method including:
determining whether application statistical information of a first type of program applying for the wake-up lock in a preset time threshold from the time when the screen is closed meets a preset condition;
and if the application statistical information meets the preset condition, executing the operation of stopping running the programs with the preset number in the first type of programs.
In an embodiment, determining whether application statistical information of a first type of program applying for a wake-up lock within a preset time threshold from when a screen is closed meets a preset condition includes:
acquiring the number of wake-up lock applications of a first type of program within a preset time threshold from the time when a screen is closed;
determining whether the application number is greater than a preset number;
if the application number is larger than a preset number, determining that the application statistical information of the first type of program meets a preset condition;
and if the application number is not greater than the preset number, determining that the application statistical information of the first type of program does not meet the preset condition.
In an embodiment, the executing the operation of stopping running the preset number of programs in the first type of programs includes:
determining the number of wake-up lock applications corresponding to each program in the first type of programs;
based on the number of wake-up lock applications corresponding to each program, sequencing each program from large to small according to the number of applications;
and stopping running the programs with the preset number at the top of the ranking.
In an embodiment, determining whether application statistical information of a first type of program applying for a wake-up lock within a preset time threshold from when a screen is closed meets a preset condition includes:
acquiring the awakening lock holding time of the first type of program within a preset time threshold from the time when the screen is closed;
determining whether the wake-up lock holding time is greater than a preset time;
if the holding time of the awakening lock is longer than the preset time, determining that the application statistical information of the first type of program meets the preset condition;
and if the holding time of the awakening lock is not more than the preset time, determining that the application statistical information of the first type of program does not meet the preset condition.
In an embodiment, the executing the operation of stopping running the preset number of programs in the first type of programs includes:
determining the time of holding of a wake-up lock corresponding to each program in the first type of programs;
based on the awakening lock holding time corresponding to each program, sequencing each program from large to small according to the awakening lock holding time;
and stopping running the programs with the preset number at the top of the ranking.
In an embodiment, the method further comprises:
determining identification information of a program of a non-kernel layer applying for awakening the lock within the preset time threshold;
determining whether a program of a non-kernel layer applying for awakening the lock is a second type program or not by inquiring a program white list, wherein the program white list is used for recording second type preset identification information;
and if the program applying for the wake-up lock is not the second type of program, determining that the program applying for the non-kernel layer of the wake-up lock is the first type of program.
In an embodiment, the method further comprises:
counting the times of each program applying for the wake-up lock and the time of holding the wake-up lock in a first preset time period;
generating wake-up lock application prompt information, wherein the wake-up lock application prompt information comprises the times of each program applying for wake-up lock and the time of holding the wake-up lock;
receiving feedback information input by a user according to the awakening lock application prompt information;
and updating the program white list according to the feedback information.
In an embodiment, the method further comprises:
counting the times of applying for the wake-up lock by each program and the time of holding the wake-up lock in a second preset time period;
sending a wake-up lock application indication message to a server, wherein the wake-up lock application indication message carries the times of each program for applying for wake-up lock and the time for holding the wake-up lock;
receiving a program white list determined by the server according to wakeup lock application indication messages sent by all the devices received in the second preset time period;
updating a locally stored program white list based on the received program white list.
In an embodiment, the method further comprises:
when the screen is closed, setting a timer with a preset time threshold length;
and determining whether the time for closing the screen exceeds a preset time threshold value by determining whether the timer is overtime, and executing the operation of determining whether the application statistical information of the first type of program applying the wake-up lock in the preset time threshold value from the time of closing the screen meets the preset condition based on the preset time threshold value.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus control device, which may include:
the first determining module is configured to determine whether application statistical information of a first type of program applying for the wake-up lock in a preset time threshold from the time when the screen is closed meets a preset condition;
and the operation stopping module is configured to execute the operation of stopping the operation of the preset number of programs in the first type of programs when the first determining module determines that the application statistical information meets the preset condition.
In one embodiment, the first determining module includes:
the first obtaining submodule is configured to obtain the number of wake-up lock applications of a first type of program within a preset time threshold from the time when the screen is closed;
a first determining submodule configured to determine whether the application number determined by the first obtaining submodule is greater than a preset number;
the second determining submodule is configured to determine that the application statistical information of the first type of program meets a preset condition when the first determining submodule determines that the application number is larger than a preset number;
and the third determining submodule is configured to determine that the application statistical information of the first type of program does not meet a preset condition when the first determining submodule determines that the application number is not greater than a preset number.
In one embodiment, the shutdown module includes:
the second obtaining submodule is configured to determine the number of wake-up lock applications corresponding to each program in the first type of programs;
the first sequencing submodule is configured to sequence each program from large to small according to the application number based on the wakeup lock application number corresponding to each program determined by the second obtaining submodule;
and the first stopping submodule is configured to stop running the programs with the preset number at the top of the ranking.
In one embodiment, the first determining module includes:
the third obtaining sub-module is configured to obtain the awakening lock holding time of the first type of program within a preset time threshold value from the time when the screen is closed;
a fourth determining submodule configured to determine whether the wake-up lock holding time acquired by the third acquiring submodule is greater than a preset time;
a fifth determining submodule configured to determine that the application statistical information of the first type of program meets a preset condition when the fourth determining submodule determines that the holding time of the wake-up lock is greater than a preset time;
a sixth determining submodule configured to determine that the application statistical information of the first type of program does not satisfy a preset condition when the fourth determining submodule determines that the wake-up lock holding time is not greater than a preset time.
In one embodiment, the shutdown module includes:
the fourth obtaining submodule is configured to determine the holding time of the wake-up lock corresponding to each program in the first type of programs;
the second sequencing submodule is configured to sequence each program from large to small according to the wake-up lock holding time obtained by the fourth obtaining submodule and corresponding to each program;
and the second stopping submodule is configured to stop running the programs with the preset number at the top of the ranking.
In an embodiment, the apparatus further comprises:
the program identification determining module is configured to determine identification information of a program of a non-kernel layer applying for the wake-up lock within the preset time threshold;
the query module is configured to determine whether the program applying for the wake-up lock, which is determined by the program identifier determination module, is a second type program by querying a program white list, wherein the program white list is used for recording second type preset identifier information;
the second determining module is configured to determine that the program applying for the wake-up lock is the first type of program when the query module determines that the program applying for the wake-up lock is not the second type of program.
In an embodiment, the apparatus further comprises:
the first statistic module is configured to count the times of applying for the wake-up lock and the time of holding the wake-up lock by each program in a first preset time period;
the prompting module is configured to generate wake-up lock application prompting information, and the wake-up lock application prompting information comprises the times of applying for wake-up lock and the time of holding wake-up lock of each program counted by the first counting module;
the first receiving module is configured to receive feedback information input by a user according to the awakening lock application prompt information generated by the prompt module;
a first updating module configured to update the program white list according to the feedback information received by the first receiving module.
In an embodiment, the apparatus further comprises:
the second counting module is configured to count the times of applying for the wake-up lock and the time of holding the wake-up lock by each program in a second preset time period;
the sending module is configured to send a wakeup lock application indication message to a server, wherein the wakeup lock application indication message carries the times of applying for a wakeup lock and the time of holding the wakeup lock of each program counted by the second counting module;
a second receiving module, configured to receive a program white list determined by the server according to wakeup lock application indication messages sent by all devices received within the second preset time period;
a second update module configured to update a locally stored program whitelist based on the program whitelist received by the second receiving module.
In an embodiment, the apparatus further comprises:
the timing module is configured to set a timer with a preset time threshold length when the screen is closed;
a third determining module configured to determine whether the time for closing the screen exceeds a preset time threshold by determining whether the timer set by the timing module is overtime, and perform an operation of determining whether application statistical information of a first type of program applying for a wake-up lock satisfies a preset condition within the preset time threshold from when the screen is closed, based on the preset time threshold.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining whether application statistical information of a first type of program applying for the wake-up lock in a preset time threshold from the time when the screen is closed meets a preset condition;
and if the application statistical information meets the preset condition, executing the operation of stopping running the programs with the preset number in the first type of programs.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of counting application statistical information of a first type of program applying for the wake-up lock in a preset time threshold from the time of closing a screen, such as application quantity and holding time of the wake-up lock, and stopping running the program with more application quantity of the wake-up lock when the application statistical information of the first type of program applying for the wake-up lock meets a preset condition, for example, the application quantity of the first type of program applying for the wake-up lock exceeds the preset quantity, so that the application quantity and holding time of the first type of program applying for the wake-up lock during the period of closing the screen can be reduced, the power consumption of equipment during the closing of the screen is greatly reduced, and the duration of.
And when the application number of the first type of programs exceeds the preset number, sequencing each program in the first type of programs according to the application number of the wake-up locks, and stopping running the program with the first preset number, so that the application number of the wake-up locks can be reduced, the power consumption of the equipment when the screen is closed is reduced, and the endurance time of the equipment is prolonged.
When the awakening lock holding time of the first type of programs exceeds the preset time, sequencing each program in the first type of programs according to the awakening lock holding time, and stopping running the programs with the first preset number, so that the awakening lock holding time can be shortened, the power consumption of equipment when a screen is closed is reduced, and the endurance time of the equipment is prolonged.
Whether the program of the non-kernel layer applying for the wake-up lock is a second type program can be determined by querying the program white list, if the program is not the second type program, the program is the first type program, wherein the second type program is a program which is allowed to apply for the wake-up lock during the screen closing of the device, and therefore the power consumption of the device during the screen closing can be reduced by performing the application limit of the wake-up lock on the first type program.
By pushing the times of each program applying for the wake-up lock and the time of holding the wake-up lock to the user in the first preset time period, the user can determine which programs are included in the program white list, and the user experience is improved.
By pushing the times of applying for the wake-up lock and the time of holding the wake-up lock by each program in the second preset time period to the server, the server can combine the times of applying for the wake-up lock and the time of holding the wake-up lock by the programs in all the devices received in the second preset time period, and determine a program white list based on the data, and the reference of the program white list determined by combining the times of applying for the wake-up lock and the time of holding the wake-up lock by the devices is stronger.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating an apparatus control method according to an exemplary embodiment.
Fig. 2A is a first flowchart illustrating a device control method according to an example embodiment.
Fig. 2B is a flowchart ii illustrating an apparatus control method according to an exemplary embodiment ii.
FIG. 3 is a flow diagram illustrating a determination of whether a program is a first type of program in accordance with an illustrative embodiment.
FIG. 4A is a flowchart illustration one of a method of updating a program white list in accordance with one illustrative embodiment.
FIG. 4B is a diagram illustrating a method of updating a program white list according to an example embodiment.
FIG. 5 is a flowchart illustrating a method for updating a program white list in accordance with an illustrative embodiment two.
Fig. 6 is a block diagram illustrating an appliance control device according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating another device control apparatus according to an example embodiment.
Fig. 8 is a block diagram illustrating yet another appliance control device according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating a suitable device control apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1 is a flow chart illustrating a method of device control according to an exemplary embodiment; the device control method may be applied to a mobile device, such as a smart phone and a tablet computer, as shown in fig. 1, the device control method includes the following steps 101-102:
in step 101, it is determined whether the application statistical information of the first type of program applying for the wake-up lock within a preset time threshold from the time when the screen is closed meets a preset condition.
In one embodiment, the first type of program is a program of the non-kernel layer other than the second type of program, such as WeChat and microblog; in another embodiment, the second type of program is a program that the device allows to apply for a wake lock when the screen is closed, and may be added to a program white list, for example: a cell phone housekeeper, etc.
In one embodiment, the application statistics may be the number of wake lock applications, holding time, and the like.
In one embodiment, the time for closing the screen may be determined to exceed a preset time threshold if the timer expires by setting a timer for a preset time threshold length when the screen is closed.
In one embodiment, the preset time threshold may be a time interval of 30 seconds, 1 minute, etc., and the preset time threshold may be set by the system.
In an embodiment, when the screen is closed, the operation of counting the request information of the wake-up lock may be performed by the power management service module.
In one embodiment, the screen can be closed by pressing a physical key for closing by the user; in still another embodiment, the screen may also be automatically turned off when no user operation is received for a long time.
In step 102, if the application statistical information meets the preset condition, the operation of stopping running the preset number of programs in the first type of programs is executed.
In an embodiment, the operation of stopping running the preset number of programs in the first type of programs can be performed as shown in the embodiment of fig. 2A and 2B, which will not be described in detail herein.
In this embodiment, the application statistics information of the first type of program applying for the wake-up lock, such as the application number and the holding time of the wake-up lock, is counted within the preset time threshold from the time of closing the screen, and when the application statistics information of the first type of program applying for the wake-up lock meets the preset condition, for example, when the application number of the first type of program applying for the wake-up lock exceeds the preset number, the program stopping running and having a larger application number of the wake-up lock, so that the application number and the holding time of the first type of program applying for the wake-up lock during the period of closing the screen can be reduced, the power consumption of the device during the closing of the screen is greatly.
In an embodiment, determining whether application statistical information of a first type of program applying for a wake-up lock within a preset time threshold from when a screen is closed meets a preset condition includes:
acquiring the number of wake-up lock applications of a first type of program within a preset time threshold from the time when a screen is closed;
determining whether the application number is greater than a preset number;
if the application number is larger than the preset number, determining that the application statistical information of the first type of program meets the preset condition;
and if the application number is not greater than the preset number, determining that the application statistical information of the first type of program does not meet the preset condition.
In an embodiment, the executing the operation of stopping running the preset number of programs in the first type of programs includes:
determining the number of wake-up lock applications corresponding to each program in the first type of programs;
based on the number of wake-up lock applications corresponding to each program, sequencing each program from large to small according to the number of applications;
and stopping running the programs with the preset number at the top of the ranking.
In an embodiment, determining whether application statistical information of a first type of program applying for a wake-up lock within a preset time threshold from when a screen is closed meets a preset condition includes:
acquiring the awakening lock holding time of the first type of program within a preset time threshold from the time when the screen is closed;
determining whether the holding time of the wake-up lock is greater than a preset time;
if the holding time of the awakening lock is longer than the preset time, determining that the application statistical information of the first type of program meets the preset condition;
and if the duration of the awakening lock is not more than the preset time, determining that the application statistical information of the first type of program does not meet the preset condition.
In an embodiment, the executing the operation of stopping running the preset number of programs in the first type of programs includes:
determining the holding time of a wake-up lock corresponding to each program in the first type of programs;
based on the awakening lock holding time corresponding to each program, sequencing each program from large to small according to the awakening lock holding time;
and stopping running the programs with the preset number at the top of the ranking.
In an embodiment, the method further comprises:
determining identification information of a program of a non-kernel layer applying for awakening a lock within a preset time threshold;
determining whether a program of a non-kernel layer applying for awakening the lock is a second type program or not by inquiring a program white list, wherein the program white list is used for recording second type preset identification information;
and if the program applying for the wake-up lock is not the second type of program, determining that the program applying for the non-kernel layer of the wake-up lock is the first type of program.
In an embodiment, the method further comprises:
counting the times of each program applying for the wake-up lock and the time of holding the wake-up lock in a first preset time period;
generating wake-up lock application prompt information, wherein the wake-up lock application prompt information comprises the times of each program applying for wake-up lock and the time of holding the wake-up lock;
receiving feedback information input by a user according to the awakening lock application prompt information;
and updating the program white list according to the feedback information.
In an embodiment, the method further comprises:
counting the times of applying for the wake-up lock by each program and the time of holding the wake-up lock in a second preset time period;
sending a wake-up lock application indication message to a server, wherein the wake-up lock application indication message carries the times of each program for applying for wake-up lock and the time for holding the wake-up lock;
receiving a program white list determined by the server according to wakeup lock application indication messages sent by all the devices received in a second preset time period;
the locally stored program whitelist is updated based on the received program whitelist.
In an embodiment, the method further comprises:
when the screen is closed, setting a timer with a preset time threshold length;
and determining whether the time for closing the screen exceeds a preset time threshold by determining whether the timer is overtime, and executing operation for determining whether the application statistical information of the first type of program for applying the wake-up lock meets the preset condition within the preset time threshold from the time when the screen is closed based on the preset time threshold.
In particular, please refer to the following embodiments, how to apply for the wake-up lock in a limited manner through a preset program to prolong the endurance time of the mobile device.
Therefore, the method provided by the embodiment of the disclosure can reduce the number and time of programs holding the wake-up lock, greatly reduce the power consumption of the device, and prolong the endurance time of the device.
FIG. 2A is a flowchart illustration of a first method of controlling a device according to an exemplary embodiment, and FIG. 2B is a flowchart illustration of a second method of controlling a device according to an exemplary embodiment; in this embodiment, by using the above method provided by the embodiment of the present disclosure, a routine example is further illustrated in how to control the wake lock when the device closes the screen through the number of wake lock applications and the holding time of the wake lock, as shown in fig. 2A, a flow for implementing the wake lock application control according to the number of wake lock applications includes the following steps:
in step 201, the number of wake lock applications of the first type of program within a preset time threshold from the time when the screen is closed is obtained.
In an embodiment, the information of each first type program applying for the wake lock within a preset time threshold from the time when the screen is closed may be recorded by the power management service module, where the information includes the number of applications, and the time (which may be obtained by the wake lock application time and the release time) for holding the wake lock each time, for example, the number of applications for the wake lock within the preset time threshold is 15 times.
In one embodiment, whether the program applying for the wake lock is the first type of program may be determined by the embodiment of fig. 3, which will not be described in detail herein.
In step 202, it is determined whether the number of applications is greater than a preset number, and if the number of applications is greater than the preset number, step 204 is performed, and if the number of applications is not greater than the preset number, step 203 is performed.
In one embodiment, the predetermined number may be a number of 5, 10, etc.
In step 203, it is determined that the application statistical information of the first type of program does not satisfy the preset condition, and the process ends.
In step 204, it is determined that the application statistics of the first type of program meets the preset conditions, and step 205 is executed.
In step 205, the number of wake lock applications corresponding to each program in the first class of programs is determined.
In an embodiment, the information of each first type of program applying for the wake-up lock within the preset time threshold from the time when the screen is closed may be recorded by the power management service module, where the information includes the number of applications and the time (which may be obtained by the wake-up lock application time and the release time) for holding the wake-up lock each time, for example, the wechat application applies for the wake-up lock 3 times within the preset time threshold, the microblog application applies for the wake-up lock 3 times within the preset time threshold, the Tencent application applies for the wake-up lock 5 times within the preset time threshold, the every day orchard application applies for the wake-up lock 1 time within the preset time threshold, the Jingdong mart application applies for the wake-up lock 2 times within the preset time threshold, and the total wake-up times of the first type of program is 14.
In step 206, based on the number of wake lock applications corresponding to each program, each program is sorted from large to small according to the number of applications.
In an embodiment, the highest number of applications may be ranked in the front by ranking from large to small, which is illustrated by the example in step 205 as follows: tengcong, Wenxin, microblog, Jingdong mart and heaven orchard. If the number of applications is the same, the applications can be sorted by combining the holding time, for example, if the wechat and the microbump both apply for three times, the time for holding the wake-up lock by the wechat and the microblog can be determined, and the application with long holding time is arranged in front.
In step 207, the operation of the top predetermined number of programs is stopped.
In an embodiment, the preset number may be a fixed value, and is set by the system, for example, 3; in another embodiment, the preset number may be determined by a difference between the total application number of the first type program and the preset number, for example, if the total application number of the first type program is 14, and the preset number is 6, and if the application number exceeds 8, the program that is ranked earlier may be stopped, and the sum of the application numbers of the programs that are stopped cannot be smaller than 8.
As shown in fig. 2B, a process for implementing the wake-up lock application control according to the time held by the wake-up lock includes the following steps:
in step 211, the wake-up lock holding time of the first type program within a preset time threshold from the time when the screen is closed is acquired.
In an embodiment, the information of each first type program applying for the wake lock within a preset time threshold from the time when the screen is closed may be recorded by the power management service module, where the information includes the number of applications, the time (which may be obtained by the wake lock application time and the release time) for holding the wake lock each time, and for example, the holding time of the first type program applying for the wake lock within the preset time threshold is 600 seconds.
In one embodiment, whether the program applying for the wake lock is the first type of program may be determined by the embodiment of fig. 3, which will not be described in detail herein.
In step 212, it is determined whether the wake-up lock holding time is greater than a preset time, and if the wake-up lock holding time is greater than the preset time, step 214 is performed, and if the wake-up lock holding time is not greater than the preset time, step 213 is performed.
In one embodiment, the predetermined time may be a value of 5 minutes, 10 minutes, etc.
In step 213, it is determined that the application statistical information of the first type of program does not satisfy the preset condition, and the process ends.
In step 214, it is determined that the application statistics of the first type of program satisfy the predetermined condition, and step 215 is performed.
In step 215, the wake lock holding time corresponding to each program in the first type of program is determined.
In an embodiment, the information of each first type of program applying for the wake lock within a preset time threshold from the time when the screen is closed may be recorded by the power management service module, where the information includes the number of applications, the time for holding the wake lock (the holding time of each wake lock may be obtained by the wake lock application time and the release time), and for example, the WeChat application holds the wake lock within the preset time threshold for 120 seconds.
In step 216, based on the wake-up lock holding time corresponding to each program, each program is sorted from large to small according to the wake-up lock holding time.
In one embodiment, the application numbers are sorted in descending order, the application number with the longest holding time may be sorted in the front, if the holding times are the same, the application numbers with the longest holding time may be sorted in the front, and the application numbers with the longest holding time may be sorted in the front.
In step 217, the operation of the top predetermined number of programs is stopped.
In an embodiment, the preset number may be a fixed value, and is set by the system, for example, 3; in another embodiment, the preset number may be determined by a difference between the holding time of the wake lock of the first type program and the preset time, for example, the holding time of the wake lock of the first type program is 240 seconds, the preset time is 120 seconds, if the holding time exceeds 120 seconds, the top-ranked program may be stopped, and the holding time of the stopped program cannot be less than 120 seconds.
In an embodiment, the application number and holding time of each component may be considered together for sorting, for example, a score is calculated according to the application number of the program, a score is calculated according to the holding time of the program, two scores are added as the wake lock score of the program, and the high score is sorted in the front; in one embodiment, the weighting factors for the application quantity score and the holding time score may be set by the system itself. For example: the number of WeChat applications is 5 times, and the total holding time is 30 seconds; the number of microblog applications is 3, the total holding time is 50 seconds, the total application number of the first type program is 15, the total holding time is 120 seconds, the microblog application number score 5/15 × 100 is 33 points, the microblog holding time score 30/120 × 100 is 25 points, the microblog application number score 3/15 × 100 is 20 points, the microblog holding time score 50/120 × 100 is 41.7 points, if the weighting coefficients of the application number score and the holding time score are both 0.5, the wake-up lock score of the microblog is 29 points, and the wake-up lock score of the microblog is 30.85 points, the microblog is sorted in the front.
In the embodiment, when the application number of the first type of programs exceeds the preset number, sequencing each program in the first type of programs according to the application number of the wake-up lock, and stopping running the program with the first preset number; in addition, when the wake-up lock holding time of the first type of programs exceeds the preset time, sequencing each program in the first type of programs according to the wake-up lock holding time, and stopping running the programs with the first preset number, the wake-up lock holding time can be shortened, the power consumption of the equipment when the screen is closed is reduced, and the endurance time of the equipment is prolonged.
FIG. 3 is a flow diagram illustrating a determination of whether a program is a first type of program in accordance with an illustrative embodiment; in this embodiment, by using the method provided by the embodiment of the present disclosure, an example of how to determine that the program is the first type of program is described, as shown in fig. 3, the method includes the following steps:
in step 301, identification information of a program of a non-kernel layer that applies for awakening the lock within a preset time threshold is determined.
In an embodiment, the identification information of the program may be a program name, such as WeChat, microblog, or the like; in yet another embodiment, the identification information of the program may also be other information capable of identifying the program.
In step 302, it is determined whether the program of the non-kernel layer applying for the wake-up lock is a second type program by querying a program white list, where the program white list is used to record second type preset identification information.
In an embodiment, the program white list may be set by the power management service module, and when the time for turning off the screen exceeds a preset time threshold, the power management service module performs an operation of determining whether the program applying for the wake-up lock is a preset program according to the program white list.
In one embodiment, the program white list may be updated in the manner of fig. 4A and 5, which will not be described in detail herein.
In step 303, if the program of the non-kernel layer applying for the wake lock is not the second type of program, it is determined that the program applying for the wake lock is the first type of program.
FIG. 4A is a flowchart illustration of a method of updating a program white list in accordance with an exemplary embodiment IV, and FIG. 4B is a schematic illustration of a method of updating a program white list in accordance with an exemplary embodiment IV; in this embodiment, an example of how to update a program white list is described by using the above method provided by the embodiment of the present disclosure, as shown in fig. 4A, the method includes the following steps:
in step 401, the number of times each program applies for the wake-up lock and the time of holding the wake-up lock in the first preset time period are counted.
In one embodiment, the number of times each program applies for the wake lock and the time of holding the wake lock after the mobile device turns off the screen beyond a preset time threshold may be counted during a first preset time period (e.g., within one week) from the time when the user installs a new application each time.
In a further embodiment, the number of times each program applies for the wake lock and the time of holding the wake lock in each first preset time period may be counted during the period when the user uses the mobile device.
In step 402, wake lock application prompt messages are generated, where the wake lock application prompt messages include the number of times each program applies for a wake lock and the time of holding the wake lock.
In an embodiment, when the user opens the screen, a wake lock application prompting message may be pushed to the user, for example, a notification message is pushed in a notification bar to notify the number of times each application applies for the wake lock and the time of holding the wake lock in one day, for example, a notification bar message shown in fig. 4B is displayed, in which the number of times each application or service program applies for the wake lock and the time of holding the wake lock are displayed, and power consumption information of the corresponding program in the time period of closing the screen may also be provided.
In one embodiment, information like "add to white list" or "add to black list" may also be displayed in FIG. 4B, which in one embodiment is used to indicate that the program is not allowed to apply for a wake lock after the screen is closed.
In step 403, feedback information input by the user according to the wakenlock application prompt information is received.
In an embodiment, the user may input the feedback information according to the wakening lock application prompt information, for example, click on a wakening lock information entry of the wechat program, select a program that sets the wechat program to reject the application for the wakening lock or add the program to a program white list, and input the corresponding feedback information according to the operation of the user.
In step 404, the program white list is updated according to the feedback information.
In one embodiment, the WeChat program may be added to the program white list according to feedback information input by the user, for example, if feedback information of "adding the WeChat program to the program white list" is received, that is, the WeChat program is allowed to apply for the wake-up lock after the screen is closed.
In this embodiment, the times of applying for the wake-up lock by each program and the time of holding the wake-up lock in the first preset time period are pushed to the user, so that the user can determine which programs are included in the program white list, and the user experience is improved.
FIG. 5 is a flow diagram two illustrating a method of updating a program white list in accordance with an exemplary embodiment; in this embodiment, an example of how to update a program white list is described by using the above method provided in the embodiment of the present disclosure, as shown in fig. 5, the method includes the following steps:
in step 501, the number of times each program applies for the wake-up lock and the time of holding the wake-up lock in a second preset time period are counted.
In one embodiment, the number of times each program applies for the wake lock and the time of holding the wake lock after the mobile device turns off the screen beyond a preset time threshold may be counted, starting at a time point when the user installs a new application each time, and within a second preset time period (e.g., within one week) from the time point when the user installs a new application each time.
In a further embodiment, the number of times each program applies for the wake lock and the time of holding the wake lock in each second preset time period may be counted during the period when the user uses the mobile device.
In step 502, a wakeup lock application indication message is sent to the server, where the wakeup lock application indication message carries the number of times each program applies for a wakeup lock and the time of holding the wakeup lock.
In step 503, a program white list determined by the server according to the wakening lock application indication messages sent by all the devices received within the second preset time period is received.
In an embodiment, the server may determine, according to the wake lock application indication message received within the second preset time period, the number of times that each program recently applies for the wake lock and the time of holding the wake lock, and further determine a program suitable for applying the wake lock, for example, a program for which neither the number of times of applying for the wake lock nor the time of holding the wake lock is too much.
In an embodiment, since the programs running in each mobile device are not identical, the programs running in the corresponding mobile device may be determined according to the wake lock application indication message sent by each mobile device, and then the corresponding program white list is returned to the mobile device, for example: if the wake-up lock application indication message sent by the mobile device a does not include information of a "fish fight" live broadcast program requesting for wake-up lock, it can be determined that the "fish fight" live broadcast program is probably not installed in the mobile device a, and therefore when a program white list determined by the cloud server according to all wake-up lock application indication messages sent by the mobile device includes the "fish fight" live broadcast program, the "fish fight" live broadcast program may not be included in a program white list returned to the mobile device a; in yet another embodiment, even if it is determined that the "fish fight" live program is not likely to be installed in the mobile device a, if the "fish fight" live program is included in the program white list determined by the cloud server according to the wakeup lock application indication messages sent by all the mobile devices, the "fish fight" live program may be included in the program white list returned to the mobile device a.
In step 504, the locally stored program whitelist is updated based on the received program whitelist.
In an embodiment, if the received program white list includes a program that is not installed in the mobile device, the corresponding program in the received program white list may be deleted, so as to update the locally stored program white list.
In this embodiment, by pushing the number of times that each program applies for the wake-up lock and the time of holding the wake-up lock in the second preset time period to the server, the server may combine the number of times that the programs in all devices receive in the second preset time period apply for the wake-up lock and the time of holding the wake-up lock, and determine the program white list based on these data, and the reference of the program white list determined by combining the number of times that the programs of the devices apply for the wake-up lock and the time of holding the wake-up lock is stronger.
Fig. 6 is a block diagram illustrating an appliance control apparatus according to an exemplary embodiment, as shown in fig. 6, the appliance control apparatus including:
a first determining module 610 configured to determine whether application statistical information of a first type of program applying for a wake-up lock within a preset time threshold from when a screen is closed satisfies a preset condition;
and a stop-running module 620 configured to perform an operation of stopping running a preset number of programs in the first type of programs when the first determining module 610 determines that the application statistical information satisfies a preset condition.
Fig. 7 is a block diagram of another device control apparatus according to an exemplary embodiment, and as shown in fig. 7, based on the embodiment shown in fig. 6, in an embodiment, the first determining module 610 includes:
a first obtaining sub-module 611 configured to obtain the number of wake-up lock applications of the first type of program within a preset time threshold from the time when the screen is closed;
a first determining sub-module 612 configured to determine whether the number of applications determined by the first obtaining sub-module 611 is greater than a preset number;
a second determining submodule 613, configured to determine that the application statistical information of the first type of program meets a preset condition when the first determining submodule 612 determines that the application number is greater than the preset number;
and a third determining sub-module 614 configured to determine that the application statistical information of the first type of program does not satisfy the preset condition when the first determining sub-module 612 determines that the application number is not greater than the preset number.
In one embodiment, the shutdown module 620 includes:
the second obtaining submodule 621 is configured to determine the number of wake-up lock applications corresponding to each program in the first type of programs;
the first sequencing submodule 622 is configured to sequence each program from large to small according to the application number based on the wakeup lock application number corresponding to each program determined by the second obtaining submodule 621;
a first stopping sub-module 623 configured to stop running the preset number of top ranked programs.
In one embodiment, the first determining module 610 includes:
a third obtaining sub-module 615 configured to obtain the wake-up lock holding time of the first type program within a preset time threshold from the time when the screen is closed;
a fourth determining sub-module 616 configured to determine whether the wake-up lock holding time acquired by the third acquiring sub-module 615 is greater than a preset time;
a fifth determining sub-module 617 configured to determine that the application statistical information of the first type of program satisfies the preset condition when the fourth determining sub-module 616 determines that the wakeup lock holding time is greater than the preset time;
a sixth determining sub-module 618 configured to determine that the application statistics of the first type of program do not satisfy the preset condition when the fourth determining sub-module 616 determines that the wake-up lock holding time is not greater than the preset time.
In one embodiment, the shutdown module 620 includes:
a fourth obtaining submodule 624 configured to determine a holding time of the wake lock corresponding to each program in the first class of programs;
a second sorting submodule 625, configured to sort each program according to the wake-up lock holding time from large to small based on the wake-up lock holding time corresponding to each program acquired by the fourth acquiring submodule 624;
a second stopping sub-module 626 configured to stop running the preset number of top ranked programs.
Fig. 8 is a block diagram of another device control apparatus according to an exemplary embodiment, and as shown in fig. 8, on the basis of the above embodiments shown in fig. 6 and/or 7, in an embodiment, the apparatus further includes:
a program identifier determining module 630, configured to determine identifier information of a program of a non-kernel layer applying for a wake lock within a preset time threshold;
the query module 640 is configured to determine whether the program applying for the wake-up lock, which is determined by the program identifier determination module 630, is a second type program by querying a program white list, where the program white list is used to record second type preset identifier information;
the second determining module 650 is configured to determine that the program applying for the wake lock is the first type program when the querying module 640 determines that the program applying for the wake lock is not the second type program.
In an embodiment, the apparatus further comprises:
the first statistical module 660 is configured to count the number of times each program applies for the wake-up lock and the time of holding the wake-up lock in a first preset time period;
the prompt module 670 is configured to generate wakeup lock application prompt information, where the wakeup lock application prompt information includes the number of times that each program applies for the wakeup lock and the time of holding the wakeup lock counted by the first statistic module 660;
a first receiving module 680 configured to receive feedback information input by a user according to the wakening lock application prompting information generated by the prompting module 670;
a first updating module 690 configured to update the program white list according to the feedback information received by the first receiving module 690.
In an embodiment, the apparatus further comprises:
the second counting module 700 is configured to count the number of times of applying for the wake-up lock and the time of holding the wake-up lock by each program in a second preset time period;
a sending module 710 configured to send an awake lock application indication message to the server, where the awake lock application indication message carries the times of applying for the awake lock and the time of holding the awake lock of each program counted by the second counting module 700;
a second receiving module 720, configured to receive a program white list determined by the server according to the wakening lock application indication messages sent by all devices received within a second preset time period;
a second updating module 730 configured to update the locally stored program whitelist based on the program whitelist received by the second receiving module 720.
In an embodiment, the apparatus further comprises:
a timing module 740 configured to set a timer of a preset time threshold length when the screen is closed;
a third determining module 750 configured to determine whether the time for closing the screen exceeds a preset time threshold by determining whether the timer set by the timing module is overtime, and perform an operation of determining whether the application statistical information of the first type program applying for the wake-up lock satisfies a preset condition within the preset time threshold from when the screen is closed, based on the preset time threshold.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a suitable device control apparatus according to an exemplary embodiment. For example, the apparatus 900 may be a smartphone, a tablet computer, or the like.
Referring to fig. 9, apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 906 provides power to the various components of device 900. The power components 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may detect an open/closed state of the device 900, the relative positioning of the components, such as a display and keypad of the apparatus 900, the sensor assembly 914 may also detect a change in the position of the apparatus 900 or a component of the apparatus 900, the presence or absence of user contact with the apparatus 900, orientation or acceleration/deceleration of the apparatus 900, and a change in the temperature of the apparatus 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. An apparatus control method, characterized in that the method comprises:
determining whether application statistical information of a first type of program applying for the wake-up lock in a preset time threshold from the time when the screen is closed meets a preset condition; the application statistical information is the sum of the statistical information of all the programs in the first type of programs;
if the application statistical information meets a preset condition, executing operation of stopping running the programs with the preset number in the first type of programs;
the executing operation of stopping the operation of the preset number of programs in the first type of programs includes:
determining the number of wake-up lock applications or the time of wake-up lock holding corresponding to each program in the first type of programs;
sequencing each program from big to small based on the number of wake-up lock applications or wake-up lock holding time corresponding to each program;
and stopping running the programs with the preset number at the top of the ranking.
2. The method of claim 1, wherein the determining whether the application statistic information of the first type of program applying for the wake-up lock within a preset time threshold from the time when the screen is closed meets a preset condition comprises:
acquiring the total number of wake-up lock applications of all programs in a first type of program within a preset time threshold from the time when a screen is closed;
determining whether the application number is greater than a preset number;
if the application number is larger than a preset number, determining that the application statistical information of the first type of program meets a preset condition;
and if the application number is not greater than the preset number, determining that the application statistical information of the first type of program does not meet the preset condition.
3. The method of claim 1, wherein the determining whether the application statistic information of the first type of program applying for the wake-up lock within a preset time threshold from the time when the screen is closed meets a preset condition comprises:
acquiring the total awakening lock holding time of all programs in the first type of programs within a preset time threshold from the time when the screen is closed;
determining whether the wake-up lock holding time is greater than a preset time;
if the holding time of the awakening lock is longer than the preset time, determining that the application statistical information of the first type of program meets the preset condition;
and if the holding time of the awakening lock is not more than the preset time, determining that the application statistical information of the first type of program does not meet the preset condition.
4. The method of claim 1, further comprising:
determining identification information of a program of a non-kernel layer applying for awakening the lock within the preset time threshold;
determining whether a program of a non-kernel layer applying for awakening the lock is a second type program or not by inquiring a program white list, wherein the program white list is used for recording second type preset identification information;
and if the program of the non-kernel layer applying for the wake-up lock is not the second type of program, determining that the program applying for the wake-up lock is the first type of program.
5. The method of claim 4, further comprising:
counting the times of each program applying for the wake-up lock and the time of holding the wake-up lock in a first preset time period;
generating wake-up lock application prompt information, wherein the wake-up lock application prompt information comprises the times of each program applying for wake-up lock and the time of holding the wake-up lock;
receiving feedback information input by a user according to the awakening lock application prompt information;
and updating the program white list according to the feedback information.
6. The method of claim 4, further comprising:
counting the times of applying for the wake-up lock by each program and the time of holding the wake-up lock in a second preset time period;
sending a wake-up lock application indication message to a server, wherein the wake-up lock application indication message carries the times of each program for applying for wake-up lock and the time for holding the wake-up lock;
receiving a program white list determined by the server according to wakeup lock application indication messages sent by all the devices received in the second preset time period;
updating a locally stored program white list based on the received program white list.
7. The method of claim 1, further comprising:
when the screen is closed, setting a timer with a preset time threshold length;
and determining whether the time for closing the screen exceeds a preset time threshold value by determining whether the timer is overtime, and executing the operation of determining whether the application statistical information of the first type of program applying the wake-up lock in the preset time threshold value from the time of closing the screen meets the preset condition based on the preset time threshold value.
8. An apparatus control device, characterized in that the device comprises:
the first determining module is configured to determine whether application statistical information of a first type of program applying for the wake-up lock in a preset time threshold from the time when the screen is closed meets a preset condition; the application statistical information is the sum of the statistical information of all the programs in the first type of programs;
the operation stopping module is configured to execute operation of stopping operation of a preset number of programs in the first type of programs when the first determining module determines that the application statistical information meets a preset condition;
the operation stopping module is specifically used for: determining the number of wake-up lock applications or the time of wake-up lock holding corresponding to each program in the first type of programs; sequencing each program from big to small based on the number of wake-up lock applications or wake-up lock holding time corresponding to each program; and stopping running the programs with the preset number at the top of the ranking.
9. The apparatus of claim 8, wherein the first determining module comprises:
the first obtaining submodule is configured to obtain the total number of wake-up lock applications of all programs in the first type of programs within a preset time threshold from the time when the screen is closed;
a first determining submodule configured to determine whether the application number determined by the first obtaining submodule is greater than a preset number;
the second determining submodule is configured to determine that the application statistical information of the first type of program meets a preset condition when the first determining submodule determines that the application number is larger than a preset number;
and the third determining submodule is configured to determine that the application statistical information of the first type of program does not meet a preset condition when the first determining submodule determines that the application number is not greater than a preset number.
10. The apparatus of claim 8, wherein the first determining module comprises:
the third obtaining sub-module is configured to obtain the awakening lock holding time of the first type of program within a preset time threshold value from the time when the screen is closed;
a fourth determining submodule configured to determine whether the wake-up lock holding time acquired by the third acquiring submodule is greater than a preset time;
a fifth determining submodule configured to determine that the application statistical information of the first type of program meets a preset condition when the fourth determining submodule determines that the holding time of the wake-up lock is greater than a preset time;
a sixth determining submodule configured to determine that the application statistical information of the first type of program does not satisfy a preset condition when the fourth determining submodule determines that the wake-up lock holding time is not greater than a preset time.
11. The apparatus of claim 8, further comprising:
the program identification determining module is configured to determine identification information of a program of a non-kernel layer applying for the wake-up lock within the preset time threshold;
the query module is configured to determine whether the program applying for the wake-up lock, which is determined by the program identifier determination module, is a second type program by querying a program white list, wherein the program white list is used for recording second type preset identifier information;
the second determining module is configured to determine that the program applying for the wake-up lock is the first type of program when the query module determines that the program applying for the wake-up lock is not the second type of program.
12. The apparatus of claim 11, further comprising:
the first statistic module is configured to count the times of applying for the wake-up lock and the time of holding the wake-up lock by each program in a first preset time period;
the prompting module is configured to generate wake-up lock application prompting information, and the wake-up lock application prompting information comprises the times of applying for wake-up lock and the time of holding wake-up lock of each program counted by the first counting module;
the first receiving module is configured to receive feedback information input by a user according to the awakening lock application prompt information generated by the prompt module;
a first updating module configured to update the program white list according to the feedback information received by the first receiving module.
13. The apparatus of claim 12, further comprising:
the second counting module is configured to count the times of applying for the wake-up lock and the time of holding the wake-up lock by each program in a second preset time period;
the sending module is configured to send a wakeup lock application indication message to a server, wherein the wakeup lock application indication message carries the times of applying for a wakeup lock and the time of holding the wakeup lock of each program counted by the second counting module;
a second receiving module, configured to receive a program white list determined by the server according to wakeup lock application indication messages sent by all devices received within the second preset time period;
a second update module configured to update a locally stored program whitelist based on the program whitelist received by the second receiving module.
14. The apparatus of claim 8, further comprising:
the timing module is configured to set a timer with a preset time threshold length when the screen is closed;
and the third determining module is configured to determine whether the time for closing the screen exceeds a preset time threshold by determining whether the timer set by the timing module is overtime, and execute the operation of determining whether the application statistical information of the first type of program applying the wake-up lock meets a preset condition within the preset time threshold from the time when the screen is closed based on the preset time threshold.
15. An apparatus control device, characterized in that the device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of claims 1 to 7.
CN201610875467.XA 2016-09-30 2016-09-30 Equipment control method and device Active CN107885307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610875467.XA CN107885307B (en) 2016-09-30 2016-09-30 Equipment control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610875467.XA CN107885307B (en) 2016-09-30 2016-09-30 Equipment control method and device

Publications (2)

Publication Number Publication Date
CN107885307A CN107885307A (en) 2018-04-06
CN107885307B true CN107885307B (en) 2020-09-18

Family

ID=61770151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610875467.XA Active CN107885307B (en) 2016-09-30 2016-09-30 Equipment control method and device

Country Status (1)

Country Link
CN (1) CN107885307B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189196A (en) * 2018-08-01 2019-01-11 北京珠穆朗玛移动通信有限公司 Management method, terminal device and the device of terminal device
CN109413726B (en) * 2018-12-24 2021-05-07 维沃移动通信有限公司 Power consumption control method and mobile terminal
CN110167121A (en) * 2019-06-28 2019-08-23 中国科学技术大学苏州研究院 A kind of mobile terminal power consumption optimization method and device based on user behavior analysis
CN111045507B (en) * 2019-11-27 2022-04-19 RealMe重庆移动通信有限公司 List management and control method, device, mobile terminal and storage medium
CN118259738A (en) * 2022-12-28 2024-06-28 蔚来移动科技有限公司 Method, system and apparatus for controlling Job execution

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182330A (en) * 2014-08-27 2014-12-03 北京金山安全软件有限公司 Application recommendation method and device and terminal
CN104346563A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105100504A (en) * 2014-05-22 2015-11-25 北京奇虎科技有限公司 Equipment application electric-power consumption management method and equipment application electric-power consumption management device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9069554B2 (en) * 2012-09-24 2015-06-30 Qualcomm Innovation Center, Inc. Systems and methods to coordinate resource usage in tightly sandboxed environments
CN104038635A (en) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 Mobile terminal and prompting method of abnormal standby thereof
CN104156053B (en) * 2014-07-29 2015-12-30 努比亚技术有限公司 A kind of control method of abnormal power consumption, device and mobile terminal
CN105260291A (en) * 2015-09-29 2016-01-20 小米科技有限责任公司 System log capture method and apparatus
CN105867581A (en) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power optimization method and device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346563A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105100504A (en) * 2014-05-22 2015-11-25 北京奇虎科技有限公司 Equipment application electric-power consumption management method and equipment application electric-power consumption management device
CN104182330A (en) * 2014-08-27 2014-12-03 北京金山安全软件有限公司 Application recommendation method and device and terminal

Also Published As

Publication number Publication date
CN107885307A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
WO2017113660A1 (en) Application program management method and device
CN107885307B (en) Equipment control method and device
WO2016029642A1 (en) Background application program control method, device and terminal device
CN105979088B (en) Message pushing method and device
US10409684B2 (en) Method, device and storage medium for cleaning memory
CN107608561B (en) Touch screen control method and device
CN105898032B (en) method and device for adjusting prompt tone
CN106766022B (en) Sensor control method and device
CN108334651B (en) Method, device and storage medium for collecting user side data to realize preset requirements
WO2017028425A1 (en) Energy-saving mode activation method and device
CN105306743A (en) Screen control method and device
CN108804244B (en) Data transmission method, device and storage medium
CN107666540B (en) Terminal control method, device and storage medium
CN103995834A (en) Sensitive information detection method and related device
CN109246184B (en) Time information acquisition method and device and readable storage medium
RU2642843C2 (en) Method and device for processing recording contacts
CN105611029A (en) Method and device for controlling reminding function of terminal equipment
CN106506817A (en) Flow monitoring method, device and terminal unit
CN106021077A (en) Warning method and device of terminal
CN105511739A (en) Message prompting method and device
CN105786561B (en) Method and device for calling process
CN107885308A (en) Electricity saving method and device
CN107894902B (en) Equipment control method and device
WO2017113659A1 (en) Method and device for managing applications
CN107894909B (en) Method, device and storage medium for limiting Activity starting

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant