CN107894902B - Equipment control method and device - Google Patents

Equipment control method and device Download PDF

Info

Publication number
CN107894902B
CN107894902B CN201610875979.6A CN201610875979A CN107894902B CN 107894902 B CN107894902 B CN 107894902B CN 201610875979 A CN201610875979 A CN 201610875979A CN 107894902 B CN107894902 B CN 107894902B
Authority
CN
China
Prior art keywords
program
type
lock
wake
determining
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
CN201610875979.6A
Other languages
Chinese (zh)
Other versions
CN107894902A (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 CN201610875979.6A priority Critical patent/CN107894902B/en
Publication of CN107894902A publication Critical patent/CN107894902A/en
Application granted granted Critical
Publication of CN107894902B publication Critical patent/CN107894902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • 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/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Abstract

The disclosure relates to a device control method and device. The method comprises the following steps: determining a program which needs to stop running when a screen is closed and exceeds a preset time threshold; and executing the operation of stopping running the program. According to the technical scheme, the program which needs to be stopped when the screen is closed and exceeds the preset time threshold can be determined, the number and the holding time of the program which applies for the awakening lock when the screen is closed and exceeds the preset time threshold are reduced, the power consumption of the equipment when the screen is closed can be greatly reduced, and the endurance time of the equipment is prolonged.

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 a program which needs to stop running when a screen is closed and exceeds a preset time threshold;
and executing the operation of stopping running the program.
In one embodiment, determining a program that needs to be stopped when a screen is closed for more than a preset time threshold includes:
determining a first type of program needing to stop running by querying a program blacklist, wherein the first type of program is a program with a first authority for applying for a wake-up lock, and the program blacklist is used for recording identification information of the first type of program; and the number of the first and second groups,
and determining a second type of program needing to stop running, wherein the second type of program is a program with a second authority for applying for awakening the lock.
In an embodiment, the method further comprises:
sending a blacklist updating request message to a server, wherein the request message comprises identification information of the second type of program needing to stop running;
receiving a program blacklist determined by the server according to received blacklist updating request messages sent by all equipment;
updating a locally stored program blacklist based on the received program blacklist.
In an embodiment, the method further comprises:
generating wake-up lock application prompt information, wherein the wake-up lock application prompt information comprises identification information of the second type of program needing to stop running;
receiving feedback information input by a user according to the awakening lock application prompt information;
and updating the program blacklist according to the feedback information.
In one embodiment, determining a second type of program that needs to be shut down includes:
acquiring the number of wake-up lock applications of a second 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, sequencing each program from large to small according to the application number based on the application number of the wake-up lock corresponding to each program;
and determining the preset number of the programs with the top ranking as the second type of programs needing to stop running.
In an embodiment, the method further comprises:
determining a second type of program that needs to be shut down, comprising:
acquiring the awakening lock holding time of the second type of program within a preset time threshold from the time when the screen is closed;
determining whether the holding time is greater than a preset time;
if the holding time is greater than the preset time, sequencing each program from large to small according to the holding time based on the holding time of the awakening lock corresponding to each program;
and determining the preset number of the programs with the top ranking as the second type of programs needing to stop running.
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 the wake-up lock is a first type program or a third type program by querying a program white list and a program black list, wherein the program white list is used for recording identification information of the third type program, and the third type program is a program with a third authority applying for the wake-up lock;
and if the program of the non-kernel layer applying for the wake-up lock is not the third type of program and the first type of program, determining that the program applying for the wake-up lock is the second type of program, and executing the operation of the second type of program which is determined to be required to stop running based on the second type of program.
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.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus control device, which may include:
the program determining module is configured to determine a program which needs to stop running when the screen is closed and exceeds a preset time threshold;
a stop operation module configured to perform an operation of stopping the operation of the program determined by the program determination module.
In one embodiment, the program determination module includes:
the query submodule is configured to determine a first type of program which needs to stop running by querying a program blacklist, the first type of program is a program with a first authority for applying for a wake-up lock, and the program blacklist is used for recording identification information of the first type of program; and the number of the first and second groups,
the first determining submodule is configured to determine a second type of program which needs to stop running, and the second type of program is a program with a second right of applying for a wake-up lock.
In an embodiment, the apparatus further comprises:
the sending module is configured to send a blacklist updating request message to a server, wherein the request message comprises identification information of the second type of program which needs to stop running;
the first receiving module is configured to receive a program blacklist determined by the server according to received blacklist update request messages sent by all devices;
a first update module configured to update a locally stored program blacklist based on the program blacklist received by the first receiving module.
In an embodiment, the apparatus further comprises:
the prompting module is configured to generate wakeup lock application prompting information, and the wakeup lock application prompting information comprises identification information of the second type of program needing to be stopped;
the second 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 second updating module configured to update the program blacklist according to the feedback information received by the second receiving module.
In one embodiment, the first determination submodule includes:
the first obtaining submodule is configured to obtain the number of wake-up lock applications of the second type of program within a preset time threshold from the time when the screen is closed;
a second determining submodule configured to determine whether the number of applications acquired by the first acquiring submodule is greater than a preset number;
the first sequencing submodule is configured to sequence each program from large to small according to the application number based on the application number of the wake-up lock corresponding to each program when the application number is greater than a preset number;
a third determining submodule configured to determine the first preset number of programs ranked by the first ranking submodule as a second type of program that needs to be stopped, wherein the first determining submodule executes the operation of determining the second type of program that needs to be stopped based on the second type of program.
In one embodiment, the first determination submodule includes:
the second obtaining sub-module is configured to obtain the awakening lock holding time of the second 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 holding time acquired by the second acquiring submodule is greater than a preset time;
the second sequencing submodule is configured to sequence each program from large to small according to the holding time based on the holding time of the wakeup lock corresponding to each program when the holding time is greater than the preset time;
and the fifth determining submodule is configured to determine the programs with the preset number which are ranked at the top and are sorted by the second sorting submodule as the second type of programs which need to stop running.
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 a program of a non-kernel layer applying for the wake-up lock is a first type program or a third type program by querying a program white list and a program black list, wherein the program white list is used for recording identification information of the third type program, and the third type program is a program with a third authority applying for the wake-up lock;
the first determining module is configured to determine that the program applying for the wake lock is the second type of program when the querying module determines that the program applying for the wake lock is not the third type of program and the first type of program.
In an embodiment, the apparatus further comprises:
the setting module is configured to set a timer with a preset time threshold length when the screen is closed;
a second determination module configured to determine whether the time to close the screen exceeds a preset time threshold by determining whether the timer set by the setting module is expired.
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 a program which needs to stop running when a screen is closed and exceeds a preset time threshold;
and executing the operation of stopping running the program.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the number and the holding time of the programs applying for the wake-up lock when the screen is closed and the preset time threshold value are exceeded can be reduced by determining the programs which need to stop running when the screen is closed and the preset time threshold value is exceeded, so that the power consumption of the equipment when the screen is closed can be greatly reduced, and the endurance time of the equipment is prolonged.
And the first type of program needing to stop running is determined by inquiring the program blacklist, the first type of program is a program with a first authority for applying the wake-up lock, wherein the first authority is an authority which cannot apply the wake-up lock when the screen is closed, and unnecessary programs can be limited from applying the wake-up lock, so that the endurance time is prolonged.
By pushing the second type of program which needs to stop running to the server, the server can determine the program blacklist by combining the second type of program which needs to stop running of all the devices, and the referential of the program blacklist determined by combining the times of applying for the wake-up lock and the time of holding the wake-up lock of a plurality of devices is stronger.
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, the user can determine which programs are included in the program blacklist, and the user experience is improved.
When the application number of the second type of programs exceeds the preset number, sequencing each program in the second type of programs according to the application number of the wake-up locks, and stopping running the program with the first preset number, the application number of the wake-up locks can be reduced, the power consumption of equipment when a screen is closed is reduced, and the endurance time of the equipment is prolonged.
When the wake-up lock holding time of the second type of programs exceeds the preset time, sequencing each program in the second type of programs according to the wake-up lock holding time, and stopping running the programs with the first preset number, so that the wake-up 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 the second type program or not can be determined by inquiring the program white list and the program black list, so that the operation of determining the second type program needing to stop running can be realized, and further, the power consumption of equipment when the screen is closed is reduced by applying for and limiting the wake-up lock on the second type program.
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 flowchart illustrating a first method for determining a second type of program that needs to be shut down in accordance with an illustrative embodiment.
FIG. 2B is a flowchart II illustrating a method for determining a second type of program that needs to be shut down in accordance with an exemplary embodiment.
FIG. 3 is a flow diagram illustrating a determination of whether a program is a second type of program in accordance with an illustrative embodiment.
FIG. 4A is a flowchart illustration one of a method of updating a program blacklist in accordance with an example embodiment.
FIG. 4B is a diagram illustrating a method of updating a program blacklist according to an example embodiment.
FIG. 5 is a flowchart illustration of a second method of updating a program blacklist, according to an example embodiment.
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, a program that needs to be stopped when the screen is closed for more than a preset time threshold is determined.
In one embodiment, the programs that need to be shut down include all of the first type of programs, and some of the second type of programs.
In an embodiment, the first type of program is a program having a first right to apply for the wake-up lock, the first right is a right not allowed to apply for the wake-up lock, the first type of program may be obtained by querying a program blacklist, and the program blacklist is used for recording identification information of the first type of program.
In an embodiment, the second type of program is a program having a second right to apply for the wake lock, where the second right is a right that may be allowed to apply for the wake lock in some cases and may not be allowed to apply for the wake lock in other cases, for example, the second type of program running in the background of the device is less, and therefore is allowed to apply for the wake lock in the case that the number of wake lock applications of the second type of program is less, and the second type of program running in the background of the device is more, and the second type of program is more, and is not allowed to apply for the wake lock in the case that the number of wake lock applications of the program is more.
In one embodiment, the method for determining the second type of program that needs to be stopped can be referred to the embodiments shown in fig. 2A and fig. 2B, and will not be described in detail here.
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 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, an operation of stopping the running program is performed.
In this embodiment, the number and the holding time of the program applying for the wake-up lock when the screen is closed and exceeds the preset time threshold can be reduced by determining the program which needs to stop running when the screen is closed and exceeds the preset time threshold, so that the power consumption of the device when the screen is closed can be greatly reduced, and the endurance time of the device can be prolonged.
In one embodiment, determining a program that needs to be stopped when a screen is closed for more than a preset time threshold includes:
determining a first type of program needing to stop running by querying a program blacklist, wherein the first type of program is a program with a first authority for applying for a wake-up lock, and the program blacklist is used for recording identification information of the first type of program; and the number of the first and second groups,
and determining a second type of program needing to stop running, wherein the second type of program is a program with a second authority of applying for the wake-up lock.
In an embodiment, the method further comprises:
sending a blacklist updating request message to a server, wherein the request message comprises identification information of a second type program needing to stop running;
receiving a program blacklist determined by a server according to received blacklist updating request messages sent by all equipment;
the locally stored program blacklist is updated based on the received program blacklist.
In an embodiment, the method further comprises:
generating wake-up lock application prompt information, wherein the wake-up lock application prompt information comprises identification information of a second type program needing to stop running;
receiving feedback information input by a user according to the awakening lock application prompt information;
and updating the program blacklist according to the feedback information.
In one embodiment, determining a second type of program that needs to be shut down includes:
acquiring the number of wake-up lock applications of a second 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, sequencing each program from large to small according to the application number based on the awakening lock application number corresponding to each program;
and determining the preset number of the programs with the top ranking as the second type of programs needing to stop running.
In an embodiment, the method further comprises:
determining a second type of program that needs to be shut down, comprising:
acquiring the awakening lock holding time of the second type of program within a preset time threshold from the time when the screen is closed;
determining whether the holding time is greater than a preset time;
if the holding time is greater than the preset time, sequencing each program from large to small according to the holding time based on the holding time of the awakening lock corresponding to each program;
and determining the preset number of the programs with the top ranking as the second type of programs needing to stop running.
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 the program of the non-kernel layer applying for the wake-up lock is a first type program or a third type program by querying a program white list and a program black list, wherein the program white list is used for recording identification information of the third type program, and the third type program is a program with a third authority applying for the wake-up lock;
and if the program of the non-kernel layer applying for the wake-up lock is not the third type program and the first type program, determining that the program applying for the wake-up lock is the second type program, and executing the operation of the second type program which is determined to be required to stop running based on the second type program.
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.
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 illustrating a first method for determining a second type of program that needs to be shut down in accordance with an illustrative embodiment, and FIG. 2B is a flowchart illustrating a second method for determining a second type of program that needs to be shut down in accordance with an illustrative embodiment; in this embodiment, by using the above method provided by the embodiment of the present disclosure, an example is respectively given by how to determine the second type of program that needs to be run according to the number of applications of the wake lock and the holding time of the wake lock, as shown in fig. 2A, a process for determining the second type of program that needs to be run according to the number of applications of the wake lock includes the following steps:
in step 201, the number of wake lock applications of the second type of program within a preset time threshold from the time when the screen is closed is obtained.
In an embodiment, the operation of counting the wake-up lock application information may be performed by the power management service module or the battery power counting module.
In an embodiment, the information for applying for the wake lock may include the number of applications, the time for holding the wake lock each time (which may be obtained by the wake lock applying time and the releasing time), for example, the number of applications for applying for the wake lock by the second type of program is 15 times within a preset time threshold.
In one embodiment, whether the program applying for the wake lock is the second type of program can 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 an embodiment, the preset number may be a value of 5, 10, or the like, and may be set by the system according to a relationship between power consumption of the device when the screen is turned off and the number of wake-up lock applications.
In step 203, it is determined not to stop running the programs in the second class of programs, and the process ends.
In step 204, 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 information of each second 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 vacation application applies for the wake-up lock 5 times within the preset time threshold, the everyday orchard application applies for the wake-up lock 1 time within the preset time threshold, the kyoto mart application applies for the wake-up lock 2 times within the preset time threshold, and the total wake-up times of the second type of programs are 14 times.
In an embodiment, the application number with the largest number may be ranked in the front according to the ranking from large to small, which is illustrated by the above example and is ranked as: 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 205, the first predetermined number of programs are determined as the second type of programs that need to be 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 second type of program and the preset number, for example, if the total application number of the second type of program is 14, and the preset number is 6, then the application number exceeds 8, then the program that is ranked earlier may be stopped, and the sum of the application numbers of the programs that are stopped cannot be less than 8.
As shown in fig. 2B, the process of determining the second type of program to be run according to the holding time of the wake lock includes the following steps:
in step 211, the wake-up lock holding time of the second 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 second 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 second 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 second type of program can be determined by the embodiment of fig. 3, which will not be described in detail herein.
In step 212, it is determined whether the holding time is greater than a preset time, and if the wake lock holding time is greater than the preset time, step 214 is performed, and if the wake 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 not to stop running the program in the second type of program, and the process ends.
In step 214, each program is sorted from the holding time to the holding time based on the wake lock holding time corresponding to each program.
In an embodiment, the information of each second type program applying for the wake lock within the preset time threshold from the time when the screen is closed may be recorded by the power management service module, including the number of applications, the time for holding the wake lock (the holding time of each wake lock can be obtained by the wake lock applying time and the releasing time), for example, the WeChat application program holds the wake lock within the preset time threshold for 120 seconds.
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 215, the first predetermined number of programs is determined as the second type of program that needs to be 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 second type of program and the preset time, for example, the holding time of the wake lock of the second type of program is 240 seconds, the preset time is 120 seconds, if the holding time exceeds 120 seconds, the running of the program which is ranked earlier may be stopped, and the holding time of the program which is stopped 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 second type of program is 15, and the total holding time is 120 seconds, then 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, then the wake-up lock score of the microblog is 29 points, and the wake-up lock score of the microblog is 30.85 points, then the microblog is sorted.
In this embodiment, when the application number of the second type of programs exceeds the preset number, each program in the second type of programs is sequenced according to the application number of the wake-up lock, and the program with the first preset number in the sequence stops running; in addition, when the wake-up lock holding time of the second type of programs exceeds the preset time, sequencing each program in the second 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 second type of program in accordance with an illustrative embodiment; in this embodiment, by using the above method provided by the embodiment of the present disclosure, an example of how to determine that the program is the second 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 in the non-kernel layer applying for the wake-up lock is the first type of program or the third type of program by querying a program white list and a program black list, where the program white list is used to record the identification information of the third type of program.
In an embodiment, when the time for closing the screen exceeds the preset time threshold, the power management service module performs an operation of determining whether the program applying for the wake-up lock is a third type of program according to a program white list, where the third type of program is a program having a third right applying for the wake-up lock, the third right is a right that can apply for the wake-up lock in any case, and the third type of program may be a more important program, for example: a cell phone housekeeper, etc.
In an embodiment, when the time for closing the screen exceeds a preset time threshold, the power management service module performs an operation of determining whether a program applying for the wake-up lock is a first type of program according to a program blacklist, where the first type of program is a program having a first right of applying for the wake-up lock, the first right is a right of not applying for the wake-up lock in any situation when the screen is closed, and the first type of program may be a malicious program or a program that may hold the wake-up lock more frequently when the screen is closed.
In one embodiment, the second type of program is a program other than the third type of program and the first type of program at the non-kernel level.
In one embodiment, the program black list may be updated in the manner of fig. 4A and 5, which will not be described in detail herein. In one embodiment, the program white list may also be updated using a scheme similar to that 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-up lock is not the third type of program and the first type of program, determining that the program applying for the wake-up lock is the second type of program, and executing an operation of determining that the second type of program needs to be stopped based on the second type of program.
In this embodiment, whether the program of the non-kernel layer applying for the wake-up lock is the second type program or not may be determined by querying the program white list and the program black list, so that the operation of determining the second type program that needs to stop running may be implemented, and further, the power consumption of the device when the screen is closed may be reduced by restricting the application of the wake-up lock for the second type program.
FIG. 4A is a flowchart illustration of a method of updating a program blacklist in accordance with an exemplary embodiment IV, and FIG. 4B is a schematic illustration of a method of updating a program blacklist 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, wake-up lock application prompting information is generated, where the wake-up lock application prompting information includes identification information of a second type of program that needs to be stopped.
In an embodiment, the second type of program that needs to be stopped and is counted after the screen is closed each time may be added to the stop running program list, and wake-up lock application prompting information is generated when the screen is turned on, where the wake-up lock application prompting information carries identification information of the stop running program list, and may also carry the number of times each application program or service program applies for a wake-up lock and the time of holding the wake-up lock. For example, a notification message is pushed in the notification bar to notify the number of times each application applies for the wake-up lock and the time of holding the wake-up 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-up lock and the time of holding the wake-up lock are displayed, and power consumption information of the corresponding program in the time period of closing the screen can also be provided.
In one embodiment, a message similar to "add to blacklist" may also be displayed in fig. 4B, and in one embodiment, "add to blacklist" is used to indicate that the program is not allowed to apply for a wake lock after closing the screen.
In an embodiment, the identification information of the second type of program that needs to be stopped when the screen is closed every time within a preset time period may also be counted, the identification information is added to the stop running program list, and then the wake-up lock application prompting information is periodically generated, where the wake-up lock application prompting information carries the identification information of the stop running program list.
In step 402, feedback information input by a 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 blacklist, and input the corresponding feedback information according to the operation of the user.
In step 403, the program black list is updated according to the feedback information.
In one embodiment, the WeChat program may be added to the program blacklist according to feedback information input by the user, for example, if feedback information of "adding the WeChat program to the program blacklist" is received, that is, the WeChat program is allowed to apply for the wake-up lock after the screen is closed.
In an embodiment, for the program white list, a prompt message may also be generated periodically to prompt the user for a period of time when each program applies for the information of the wake-up lock, so as to update the program white list according to the feedback information of the user.
In this embodiment, by pushing the number of times each program applies for the wake-up lock and the time of holding the wake-up lock to the user, the user can determine which programs are included in the program blacklist, thereby improving the user experience.
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, a blacklist update request message is sent to the server, where the request message includes identification information of a second type of program that needs to be stopped.
In an embodiment, the second type of program that needs to be stopped and is counted after the screen is closed each time may be added to the stop-running program list, and a blacklist update request message is generated when the screen is turned on, where the blacklist update request message carries identification information of the stop-running program list, and may also carry the number of times that each application program or service program applies for the wake-up lock and the time of holding the wake-up lock.
In an embodiment, the identification information of the second type of program that needs to be stopped when the screen is closed every time within a preset time period may also be counted, the identification information is added to the stop-running program list, and then a blacklist update request message is periodically generated, where the blacklist update request message carries the identification information of the stop-running program list.
In step 502, a program blacklist determined by the server according to received blacklist update request messages sent by all devices is received.
In an embodiment, the server may determine, according to the blacklist update request message received within a preset time period, a second type of program that needs to be stopped when each device closes the screen recently, and further determine a program that is completely unsuitable for applying for the wake-up lock, and add the program to the program blacklist.
In an embodiment, since the programs running in each mobile device are not identical, the program running in the corresponding mobile device may be determined according to the blacklist update request message sent by each mobile device, and then the corresponding program blacklist may be returned to the mobile device, for example: if the blacklist update request message sent by the mobile device a does not include the "fish fight" live program, it can be determined that the "fish fight" live program is probably not installed in the mobile device a, and therefore when the program blacklist determined by the cloud server according to the blacklist update request messages sent by all the mobile devices includes the "fish fight" live program, the program blacklist returned to the mobile device a may not include the "fish fight" live program; 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 blacklist 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 blacklist returned to the mobile device a.
In step 503, the locally stored program blacklist is updated based on the received program blacklist.
In an embodiment, if the received program blacklist includes programs that are not installed in the mobile device, the corresponding programs in the received program blacklist may be deleted, so as to update the locally stored program blacklist.
In this embodiment, by pushing the second type of program that needs to be stopped to the server, the server may determine the program blacklist in combination with the second type of program that needs to be stopped by all devices, and the reference of the program blacklist determined in combination with the number of times of applying for the wake-up lock and the time of holding the wake-up lock of the plurality of devices 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 program determining module 610 configured to determine a program that needs to be stopped when the screen is closed for more than a preset time threshold;
a stop-run module 620 configured to perform the operation of the program determined by the stop-run program determining module.
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 program determining module 610 includes:
the query submodule 611 is configured to determine a first type of program that needs to stop running by querying a program blacklist, where the first type of program is a program having a first right to apply for a wake-up lock, and the program blacklist is used to record identification information of the first type of program; and the number of the first and second groups,
the first determining submodule 612 is configured to determine a second type of program that needs to be stopped, where the second type of program is a program having a second right to apply for a wake lock.
In an embodiment, the apparatus further comprises:
a sending module 630, configured to send a blacklist update request message to the server, where the request message includes identification information of a second type of program that needs to stop running;
a first receiving module 640, configured to receive a program blacklist determined by the server according to received blacklist update request messages sent by all devices;
a first update module 650 configured to update the locally stored program blacklist based on the program blacklist received by the first receiving module 640.
In an embodiment, the apparatus further comprises:
the prompting module 660 is configured to generate waken lock application prompting information, where the waken lock application prompting information includes identification information of a second type of program that needs to be stopped;
a second receiving module 670 configured to receive feedback information input by a user according to the wakening lock application prompting information generated by the prompting module 660;
the second updating module 680 is configured to update the program blacklist according to the feedback information received by the second receiving module 670.
In one embodiment, the first determining sub-module 612 includes:
the first obtaining sub-module 6121 is configured to obtain the number of wake-up lock applications of the second type of program within a preset time threshold from the time when the screen is closed;
a second determining submodule 6122 configured to determine whether the number of applications acquired by the first acquiring submodule 6121 is greater than a preset number;
the first sequencing submodule 6123 is configured to, when the second determining submodule 6122 determines that the application number is greater than the preset number, sequence each program from large to small according to the application number based on the application number of the wake-up lock corresponding to each program;
the third determining submodule 6124 is configured to determine the first-ranked preset number of programs sequenced by the first sequencing submodule 6123 as the second type of program that needs to be stopped, and the first determining submodule executes an operation of determining the second type of program that needs to be stopped based on the second type of program.
In one embodiment, the first determining sub-module 612 includes:
a second obtaining sub-module 6125 configured to obtain the wake-up lock holding time of the second type program within a preset time threshold from the time when the screen is closed;
a fourth determining submodule 6126 configured to determine whether the holding time acquired by the second acquiring submodule 6125 is greater than a preset time;
the second sorting submodule 6127 is configured to, when the holding time of the fourth determining submodule 6126 is greater than the preset time, sort each program from large to small according to the holding time based on the holding time of the wakeup lock corresponding to each program;
a fifth determining sub-module 6128, configured to determine the preset number of programs ranked the top after being ranked by the second ranking sub-module 6127 as the second type of program that needs to stop running.
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 690 configured to determine identifier information of a program of a non-kernel layer applying for a wake-up lock within a preset time threshold;
the query module 700 is configured to determine whether the program of the non-kernel layer applying for the wake-up lock is a first type program or a third type program by querying a program white list and a program black list, where the program white list is used to record identification information of the third type program, and the third type program is a program having a third right of applying for the wake-up lock;
the first determining module 710 is configured to determine that the program applying for the wake lock is the second type of program when the querying module 700 determines that the program applying for the wake lock is not the third type of program and the first type of program.
In an embodiment, the apparatus further comprises:
a setting module 720, configured to set a timer with a preset time threshold length when the screen is closed;
a second determining module 730 configured to determine whether the time to close the screen exceeds a preset time threshold by determining whether the timer set by the setting module 720 is expired.
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 includes a screen that provides 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, an 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 a program which needs to stop running when a screen is closed and exceeds a preset time threshold, wherein the program comprises the following steps:
determining a first type of program needing to stop running by querying a program blacklist, wherein the first type of program is a program with a first authority for applying for a wake-up lock, the first authority is an authority which is not allowed to apply for the wake-up lock, and the program blacklist is used for recording identification information of the first type of program; and the number of the first and second groups,
determining a second type of program needing to stop running, wherein the second type of program is a program with a second authority for applying for awakening the lock, and the second authority is an authority allowed to apply for awakening the lock under the condition that a preset condition is met;
and executing the operation of stopping running the first type program and the second type program.
2. The method of claim 1, further comprising:
sending a blacklist updating request message to a server, wherein the request message comprises identification information of the second type of program needing to stop running;
receiving a program blacklist determined by the server according to received blacklist updating request messages sent by all equipment;
updating a locally stored program blacklist based on the received program blacklist.
3. The method of claim 1, further comprising:
generating wake-up lock application prompt information, wherein the wake-up lock application prompt information comprises identification information of the second type of program needing to stop running;
receiving feedback information input by a user according to the awakening lock application prompt information;
and updating the program blacklist according to the feedback information.
4. The method of claim 1, wherein determining the second type of program that needs to be shut down comprises:
acquiring the number of wake-up lock applications of a second 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, sequencing each program from large to small according to the application number based on the application number of the wake-up lock corresponding to each program;
and determining the preset number of the programs with the top ranking as the second type of programs needing to stop running.
5. The method of claim 1, wherein determining the second type of program that needs to be shut down comprises:
acquiring the awakening lock holding time of the second type of program within a preset time threshold from the time when the screen is closed;
determining whether the holding time is greater than a preset time;
if the holding time is greater than the preset time, sequencing each program from large to small according to the holding time based on the holding time of the awakening lock corresponding to each program;
and determining the preset number of the programs with the top ranking as the second type of programs needing to stop running.
6. 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 the wake-up lock is a first type program or a third type program by querying a program white list and a program black list, wherein the program white list is used for recording identification information of the third type program, and the third type program is a program with a third authority applying for the wake-up lock;
and if the program of the non-kernel layer applying for the wake-up lock is not the third type of program and the first type of program, determining that the program applying for the wake-up lock is the second type of program, and executing the operation of the second type of program which is determined to be required to stop running based on the second type of program.
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.
8. An apparatus control device, characterized in that the device comprises:
the program determining module is configured to determine a program which needs to stop running when the screen is closed and exceeds a preset time threshold; the program determining module includes:
the query submodule is configured to determine a first type of program which needs to stop running by querying a program blacklist, the first type of program is a program with a first authority for applying a wake-up lock, the first authority is an authority which is not allowed to apply the wake-up lock, and the program blacklist is used for recording identification information of the first type of program; and the number of the first and second groups,
the first determining submodule is configured to determine a second type of program needing to stop running, the second type of program is a program with a second authority for applying for awakening the lock, and the second authority is an authority allowed to apply for awakening the lock under the condition that a preset condition is met;
a stop module configured to perform an operation of stopping the first type of program determined by the query sub-module and the second type of program determined by the first determination sub-module.
9. The apparatus of claim 8, further comprising:
the sending module is configured to send a blacklist updating request message to a server, wherein the request message comprises identification information of the second type of program which needs to stop running;
the first receiving module is configured to receive a program blacklist determined by the server according to received blacklist update request messages sent by all devices;
a first update module configured to update a locally stored program blacklist based on the program blacklist received by the first receiving module.
10. The apparatus of claim 8, further comprising:
the prompting module is configured to generate wakeup lock application prompting information, and the wakeup lock application prompting information comprises identification information of the second type of program needing to be stopped;
the second 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 second updating module configured to update the program blacklist according to the feedback information received by the second receiving module.
11. The apparatus of claim 8, wherein the first determination submodule comprises:
the first obtaining submodule is configured to obtain the number of wake-up lock applications of the second type of program within a preset time threshold from the time when the screen is closed;
a second determining submodule configured to determine whether the number of applications acquired by the first acquiring submodule is greater than a preset number;
the first sequencing submodule is configured to sequence each program from large to small according to the application number based on the application number of the wake-up lock corresponding to each program when the application number is larger than a preset number;
and the third determining submodule is configured to determine the first-ranked preset number of programs sequenced by the first sequencing submodule as a second type of program needing to be stopped, and the first determining submodule executes the operation of determining the second type of program needing to be stopped based on the second type of program.
12. The apparatus of claim 8, wherein the first determination submodule comprises:
the second obtaining sub-module is configured to obtain the awakening lock holding time of the second 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 holding time acquired by the second acquiring submodule is greater than a preset time;
the second sequencing submodule is configured to sequence each program from large to small according to the holding time based on the holding time of the wakeup lock corresponding to each program when the holding time is greater than the preset time;
and the fifth determining submodule is configured to determine the programs with the preset number which are ranked at the top and are sorted by the second sorting submodule as the second type of programs which need to stop running.
13. 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 a program of a non-kernel layer applying for the wake-up lock is a first type program or a third type program by querying a program white list and a program black list, wherein the program white list is used for recording identification information of the third type program, and the third type program is a program with a third authority applying for the wake-up lock;
the first determining module is configured to determine that the program applying for the wake lock is the second type of program when the querying module determines that the program applying for the wake lock is not the third type of program and the first type of program.
14. The apparatus of claim 8, further comprising:
the setting module is configured to set a timer with a preset time threshold length when the screen is closed;
a second determination module configured to determine whether the time to close the screen exceeds a preset time threshold by determining whether the timer set by the setting module is expired.
15. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a program which needs to stop running when a screen is closed and exceeds a preset time threshold, wherein the program comprises the following steps:
determining a first type of program needing to stop running by querying a program blacklist, wherein the first type of program is a program with a first authority for applying for a wake-up lock, the first authority is an authority which is not allowed to apply for the wake-up lock, and the program blacklist is used for recording identification information of the first type of program; and the number of the first and second groups,
determining a second type of program needing to stop running, wherein the second type of program is a program with a second authority for applying for awakening the lock, and the second authority is an authority allowed to apply for awakening the lock under the condition that a preset condition is met;
and executing the operation of stopping running the first type program and the second type program.
CN201610875979.6A 2016-09-30 2016-09-30 Equipment control method and device Active CN107894902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610875979.6A CN107894902B (en) 2016-09-30 2016-09-30 Equipment control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610875979.6A CN107894902B (en) 2016-09-30 2016-09-30 Equipment control method and device

Publications (2)

Publication Number Publication Date
CN107894902A CN107894902A (en) 2018-04-10
CN107894902B true CN107894902B (en) 2021-01-01

Family

ID=61802433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610875979.6A Active CN107894902B (en) 2016-09-30 2016-09-30 Equipment control method and device

Country Status (1)

Country Link
CN (1) CN107894902B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099757A (en) * 2020-09-21 2020-12-18 珠海格力电器股份有限公司 Application keep-alive method and device

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016033252A2 (en) * 2014-08-26 2016-03-03 Cellepathy Ltd. Transportation-related mobile device context inferences
CN103313427A (en) * 2013-05-08 2013-09-18 广东欧珀移动通信有限公司 Method and device for starting data network of mobile terminal and mobile terminal
US9830199B2 (en) * 2013-05-22 2017-11-28 International Business Machines Corporation Low overhead contention-based switching between ticket lock and queued lock
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN104298335B (en) * 2013-07-19 2017-11-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN109803359B (en) * 2013-11-15 2022-05-31 华为终端有限公司 Method for awakening terminal system and terminal
US9665155B2 (en) * 2013-12-28 2017-05-30 Intel Corporation Techniques for increasing energy efficiency of sensor controllers that receive data from one or more sensors
CN104156053B (en) * 2014-07-29 2015-12-30 努比亚技术有限公司 A kind of control method of abnormal power consumption, device and mobile terminal
CN105183137B (en) * 2015-09-09 2018-06-01 厦门美图移动科技有限公司 A kind of mobile terminal and its wake-up lock control method and control system
CN105260291A (en) * 2015-09-29 2016-01-20 小米科技有限责任公司 System log capture method and apparatus
CN105306743A (en) * 2015-09-30 2016-02-03 小米科技有限责任公司 Screen control method and device
CN105867578A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Monitoring method and apparatus of power-consuming application, and user terminal
CN105867581A (en) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power optimization method and device and mobile terminal
CN105807894B (en) * 2016-03-22 2019-06-25 北京小米移动软件有限公司 Using the treating method and apparatus for holding lock

Also Published As

Publication number Publication date
CN107894902A (en) 2018-04-10

Similar Documents

Publication Publication Date Title
WO2017113660A1 (en) Application program management method and device
US20180121040A1 (en) Method and device for managing notification messages
CN106766022B (en) Sensor control method and device
CN105898032B (en) method and device for adjusting prompt tone
CN106919629B (en) Method and device for realizing information screening in group chat
CN107666540B (en) Terminal control method, device and storage medium
CN107885307B (en) Equipment control method and device
CN111722824A (en) Voice control method, device and computer storage medium
WO2016029648A1 (en) File backup method and device
CN108334651B (en) Method, device and storage medium for collecting user side data to realize preset requirements
CN108804244B (en) Data transmission method, device and storage medium
CN107562349B (en) Method and device for executing processing
RU2642843C2 (en) Method and device for processing recording contacts
CN106453528A (en) Method and device for pushing message
CN106412884B (en) WIFI connection management method and device
CN109246184B (en) Time information acquisition method and device and readable storage medium
CN107707759B (en) Terminal control method, device and system, and storage medium
CN105786561B (en) Method and device for calling process
CN111125388B (en) Method, device and equipment for detecting multimedia resources and storage medium
CN107894902B (en) Equipment control method and device
US20170169467A1 (en) Information push method and device
CN107885308A (en) Electricity saving method and device
WO2017113659A1 (en) Method and device for managing applications
CN107894909B (en) Method, device and storage medium for limiting Activity starting
WO2021103742A1 (en) Resource management method and apparatus, and electronic device

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