CN113439252B - Terminal control method and device, storage medium and electronic equipment - Google Patents

Terminal control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113439252B
CN113439252B CN201980092359.7A CN201980092359A CN113439252B CN 113439252 B CN113439252 B CN 113439252B CN 201980092359 A CN201980092359 A CN 201980092359A CN 113439252 B CN113439252 B CN 113439252B
Authority
CN
China
Prior art keywords
preset
application
electronic device
group
electronic equipment
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
CN201980092359.7A
Other languages
Chinese (zh)
Other versions
CN113439252A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN113439252A publication Critical patent/CN113439252A/en
Application granted granted Critical
Publication of CN113439252B publication Critical patent/CN113439252B/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

Landscapes

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

Abstract

The embodiment of the application provides a terminal control method, which is applied to electronic equipment, wherein an operating system of the electronic equipment comprises application standby groups, and the terminal control method comprises the following steps: counting the electricity consumption speed of the electronic equipment; detecting whether the electricity consumption speed is greater than a preset speed threshold; and if the power consumption speed is detected to be larger than the preset speed threshold, adjusting the application standby group.

Description

Terminal control method and device, storage medium and electronic equipment
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a terminal control method, a device, a storage medium and electronic equipment.
Background
Currently, many mobile electronic devices use Android (Android) operating systems. The android system comprises an application standby grouping function. The application standby grouping function is a power management function. The application standby packet includes the following five packets: active, working, usual (frequenct), rare (Rare), occasional (App is not frequently used). The system will divide each application into one of the above packets according to its usage, and each packet has different restrictions on the scheduling of device resources.
Disclosure of Invention
The embodiment of the application provides a terminal control method, a device, a storage medium and electronic equipment, which can improve the flexibility of the electronic equipment in adjusting application standby groups.
In a first aspect, this embodiment provides a terminal control method, applied to an electronic device, where an operating system of the electronic device includes an application standby packet, the method includes:
counting the electricity consumption speed of the electronic equipment;
detecting whether the electricity consumption speed is greater than a preset speed threshold;
and if the electricity consumption speed is detected to be larger than a preset speed threshold, adjusting the application standby group.
In a second aspect, the present embodiment provides a terminal control apparatus applied to an electronic device, an operating system of the electronic device including an application standby packet, the apparatus including:
the statistics module is used for counting the electricity consumption speed of the electronic equipment;
the detection module is used for detecting whether the electricity consumption speed is greater than a preset speed threshold value;
and the adjusting module is used for adjusting the application standby group if the electric quantity consumption speed is detected to be larger than a preset speed threshold value.
In a third aspect, the present embodiment provides a storage medium having stored thereon a computer program, wherein the computer program, when executed on a computer, causes the computer to execute the flow in the terminal control method provided in the present embodiment.
In a fourth aspect, the present embodiment provides an electronic device, including a memory, a processor, an operating system of the electronic device containing an application standby packet, the processor being configured to execute, by invoking a computer program stored in the memory:
counting the electricity consumption speed of the electronic equipment;
detecting whether the electricity consumption speed is greater than a preset speed threshold;
and if the electricity consumption speed is detected to be larger than a preset speed threshold, adjusting the application standby group.
Drawings
The technical solution of the present application and the advantageous effects thereof will be made apparent from the following detailed description of the specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a terminal control method provided in an embodiment of the present application.
Fig. 2 is another flow chart of a terminal control method provided in an embodiment of the present application.
Fig. 3 to fig. 4 are schematic views of a scenario of a terminal control method provided in an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal control device provided in an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numerals refer to like elements throughout, the principles of the present application are illustrated as embodied in a suitable computing environment. The following description is based on the illustrated embodiments of the present application and should not be taken as limiting other embodiments not described in detail herein.
It is understood that the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or tablet computer.
Referring to fig. 1, fig. 1 is a flowchart of a terminal control method according to an embodiment of the present application. The terminal control method may be applied to an electronic device, and an operating system of the electronic device may include an application standby grouping function. The flow of the terminal control method may include:
in 101, the power consumption rate is counted.
Currently, many mobile electronic devices use android operating systems. The android operating system provides multiple power management functions for the electronic device. The application standby packet belongs to one of the power management functions. The application standby packet includes the following five packets: active (applications are being used), working (applications are used very frequently), common (applications are often used but not daily), rare (applications are rarely used), occasional (applications are occasionally used). The system will divide each application into one of the above packets according to its usage, and each packet has different restrictions on the scheduling of device resources. Wherein active packets, work packets, normal packets, few packets, and occasional packets are successively reduced in terms of scheduling capability for device resources. For example, an application in an active packet is configured to have a stronger scheduling capability for device resources than a working packet. The scheduling capability of the application divided into working packets for the device resources is configured to be stronger than for the usual packets.
For example, depending on the usage of the application, the electronic device divides applications A and B into work packets, application C into regular packets, application D into few packets, and application E into occasional packets. After a period of use, the electronic device may adjust the application standby packets according to the latest usage of the application A, B, C, D, E. For example, application B is rarely used during this time, and the electronic device may then adjust application B from the original work packet to a commonly used packet, or a few packets, or an occasional packet, etc. The grouping to which the application B will be tuned is not specifically limited here. Taking the example of application B being adjusted from a working group to a common group, after adjustment, the scheduling capability of application B on device resources such as CPU and network becomes weaker, i.e. the electronic device may make more restrictions on application B invoking device resources. As another example, application D is rarely used during this time, and the electronic device may adjust application D from the original few packets to occasional packets, etc.
However, in the related art, the device of the android system divides a certain application into a certain group of the above five groups according to the usage behavior of the application, that is, the device has poor flexibility of adjusting the application standby group.
In 101 of this embodiment of the present application, for example, the electronic device may first count the power consumption speed.
In 102, it is detected whether the power consumption rate is greater than a preset rate threshold.
For example, after the electricity consumption speed is obtained through statistics, the electronic device may detect whether the electricity consumption speed is greater than a preset speed threshold.
If the detected power consumption speed of the electronic device is not greater than the preset speed threshold, the power consumption speed of the electronic device can be considered to be normal. In this case, the electronic device may perform other operations.
If the detected power consumption speed of the electronic device is greater than the preset speed threshold, the power consumption speed of the electronic device can be considered to be higher. In this case, it is possible to enter 103.
In 103, if the detected power consumption speed is greater than the preset speed threshold, the standby packet is adjusted.
For example, when the electronic device detects that the power consumption speed is greater than the preset speed threshold, the electronic device may be triggered to adjust the application standby packet at this time.
For example, the current power consumption rate of the electronic device reaches a rate of 1% of the total battery capacity consumed per minute, and the preset speed threshold is a rate of 1% of the total battery capacity consumed per two minutes. In this case, the current power consumption rate of the electronic device can be considered to be high, and the electronic device can readjust its application standby packet. For example, the electronic device may repartition some applications that were originally partitioned into Working groups (Working sets) into a common group (Frequent).
It can be appreciated that when the power consumption speed of the electronic device is greater than the preset speed threshold, the application standby group can be adjusted, so that the flexibility of the electronic device in adjusting the application standby group is improved.
Referring to fig. 2, fig. 2 is another flow chart of the terminal control method provided in the embodiment of the present application. The terminal control method may be applied to an electronic device, and an operating system of the electronic device may include an application standby grouping function. The flow of the terminal control method may include:
in 201, the electronic device obtains a residual electrical quantity value.
For example, the electronic device may first obtain its remaining power value. For example, the electronic device obtains its current remaining power value as 50% of the total battery capacity.
In some embodiments, the electronic device may obtain the remaining electrical energy value once every a preset period of time. For example, the electronic device may acquire the remaining electrical energy value once every 20 minutes.
After the remaining power value is obtained, the electronic device may detect whether the remaining power value is lower than a preset power threshold.
If the residual power value is detected not to be lower than the preset power threshold value, the residual power of the electronic device can be considered to be still sufficient. In this case, the electronic device may perform other operations.
If the remaining power value is detected to be lower than the preset power threshold, the remaining power of the electronic device may be considered to be already low. In this case, it may enter 202.
In 202, if the remaining power value is lower than the preset power threshold, the electronic device calculates a power consumption rate.
For example, the preset power threshold is 60% of the total battery capacity, and the current remaining power value of the electronic device is 50% of the total battery capacity, and the remaining power value is lower than the preset power threshold. In this case, the remaining power of the electronic device may be considered to be low, and the electronic device may count the power consumption rate at this time.
In 203, the electronic device detects whether the power consumption rate is greater than a preset rate threshold.
For example, after the electricity consumption speed is obtained through statistics, the electronic device may detect whether the electricity consumption speed is greater than a preset speed threshold.
If the detected power consumption speed is not greater than the preset speed threshold, the power consumption speed of the electronic device can be considered to be normal. In this case, the electronic device may perform other operations.
If it is detected that the power consumption rate is greater than the preset rate threshold, then step 204 is entered.
In 204, if the detected power consumption speed is greater than the preset speed threshold, the electronic device determines a target number according to the power consumption speed, where the faster the power consumption speed is, the larger the value of the target number is.
For example, if the electronic device detects that the current power consumption speed is greater than the preset speed threshold, the power consumption of the electronic device can be considered to be faster. Since the current remaining power is already low, in the case where the power consumption speed is high, the electronic device may determine a number, i.e., a target number, according to the power consumption speed. Wherein, the faster the electricity consumption speed, the larger the numerical value of the target number.
For example, the electronic device counts that its current power consumption speed reaches 1% of the total capacity of the consumed battery per minute, and the preset speed threshold is 1% of the total capacity of the consumed battery per two minutes, i.e. the current power consumption speed exceeds the preset speed threshold. In this case, the electronic device may first determine a target number according to the current power consumption speed.
In 205, the electronic device adjusts one or more applications of the preset first packet to a preset second packet according to the target number, wherein the preset first packet and the preset second packet both belong to application standby packets, and the scheduling capability of the application of the preset first packet to the electronic device resource is configured to be stronger than the preset second packet.
For example, after determining the target number, the electronic device may adjust the applications that were originally divided into the preset first packets to the preset second packets according to the target number. Wherein the preset first packet and the preset second packet both belong to application standby packets, and the scheduling capability of the application of the preset first packet to the electronic device resource is configured to be stronger than the scheduling capability of the application of the preset second packet to the electronic device resource.
It should be noted that, the preset first packet may be one or more packets. For example, the preset first packet may be only a work packet. Alternatively, the preset first packet may include a work packet and a normal packet. Alternatively, the preset first packet may include a work packet, a normal packet, and a few packets. Alternatively, the preset first packet may include a usual packet and a few packets, and so on. The number of packets included in the preset first packet is not specifically limited, and the preset first packet is not specifically limited.
For example, the preset first packet may be a Working packet (Working Set) in the application standby packet, and the preset second packet may be a normal packet (frequenct) or a Rare packet (Rare). For example, the electronic device determines the target number to be 8. Then the electronic device can re-partition some 8 applications originally partitioned into working packets into common packets.
For example, the application A, B, C, D, E, F, G, H was originally divided into working packets in application standby packets. In the above case, the electronic device may adjust the application A, B, C, D, E, F, G, H from the work group to the normal group. It can be appreciated that since the scheduling capability of the working packet in the application standby packet to the device resources is stronger than the common packet, by adjusting the application from the working packet to the common packet, the scheduling of the device resources by more applications can be limited, thereby saving power consumption in the case of insufficient power of the electronic device.
As another example, the preset first packet includes a work packet and a normal packet, and the preset second packet is a few packets. The work packet includes an application O, P, Q, and the common packet includes an application R, S, T. Then, when adjusting the application standby packet, the electronic device can adjust both the application O in the work packet and the application R, S in the usual packet into few packets. It can be appreciated that since the scheduling capability of the work packet and the normal packet in the application standby packet on the device resources is stronger than the few packets, by adjusting the application to the few packets by some of the work packet and the normal packet, the scheduling of the device resources by more applications can be limited, thereby saving power consumption in the case of insufficient power of the electronic device.
In one embodiment, each packet in the application standby packet function of the electronic device has a different level according to its size of scheduling capability for the electronic device resources. For example, active packets (Active) have the highest level of scheduling capability for electronic device resources, since Active packets have the highest scheduling capability for electronic device resources. Since the scheduling capability of Working Set (Working Set) for electronic device resources is inferior to active packets, working packets are at a second level in terms of scheduling capability for electronic device resources. Similarly, the common packet (Frequent) is rated third in terms of scheduling capabilities for the electronic device resource, the few packets (Rare) are rated fourth in terms of scheduling capabilities for the electronic device resource, and the occasional packet (App is not frequently used) is rated fifth in terms of scheduling capabilities for the electronic device resource.
Then, before adjusting the application of the preset first packet to the preset second packet, the embodiment of the present application may further include the following flow: the electronic device detects whether the electricity consumption speed is smaller than a target speed threshold, wherein the target speed threshold is larger than a preset speed threshold.
And adjusting the one or more applications of the preset first packet to the flow of the preset second packet may include: if the power consumption speed is less than the target speed threshold, the electronic device adjusts the application of one or more preset first groups to a preset second group, wherein the preset second group and the preset first group differ by one grade from each other in scheduling capability of the electronic device resource.
For example, after detecting that the power consumption speed of the electronic device is greater than the preset speed threshold, the electronic device may further detect whether the power consumption speed of the electronic device is greater than the target speed threshold. Wherein the target speed threshold is greater than the preset speed threshold. For example, the preset speed threshold is an amount of electricity that consumes 1% of the total battery capacity every two minutes, and the target speed threshold is an amount of electricity that consumes 1.5% of the total battery capacity every minute.
If the current power consumption speed of the electronic device is detected to be greater than the preset speed threshold and less than the target speed threshold, for example, the current power consumption speed of the electronic device reaches 1% of the total capacity of the consumed battery per minute, the current power consumption speed of the electronic device can be considered to be relatively high. In this case, the electronic device may adjust the application of one or more preset first packets into a preset second packet, wherein the preset second packet differs from the preset first packet by only one level of scheduling capability for the electronic device resources. For example, the first packet is preset as a Working packet (Working Set), and the second packet is preset as a normal packet (frequenct).
In one implementation, after the electronic device detects whether the power consumption speed is less than the target speed threshold, the embodiment of the application may further include the following flow:
if the electricity consumption speed is greater than or equal to the target speed threshold, the electronic device adjusts one or more applications of the preset first group into a preset second group, wherein the preset second group and the preset first group differ by at least two grades in scheduling capability of the electronic device resources.
For example, after detecting that the power consumption speed of the electronic device is greater than the preset speed threshold, the electronic device may further detect whether the power consumption speed of the electronic device is greater than the target speed threshold. Wherein the target speed threshold is greater than the preset speed threshold. For example, the preset speed threshold is an amount of electricity that consumes 1% of the total battery capacity every two minutes, and the target speed threshold is an amount of electricity that consumes 1.5% of the total battery capacity every minute.
If the current power consumption speed of the electronic device is detected to be greater than the target speed threshold, for example, the current power consumption speed of the electronic device reaches 1.6% of the total capacity of the consumed battery per minute, the current power consumption speed of the electronic device can be considered to be very fast. In this case, the electronic device may adjust the application of the preset first packet into a preset second packet, wherein the preset second packet differs from the preset first packet by at least two levels of scheduling capability for the electronic device resources. For example, the first packet is preset as a Working packet (Working Set), and the second packet is preset as a Rare packet (Rare). Alternatively, the first packet is preset as a Working packet (Working Set), and the second packet is preset as an occasional packet (App is not frequently used).
In another embodiment, when the application standby packet needs to be adjusted, the electronic device may also adjust a part of the applications from the preset first packet to the preset second packet and another part of the applications from the preset first packet to the preset third packet. Wherein the device resource scheduling capability of the preset first packet is configured to be stronger than the preset second packet, and the device resource scheduling capability of the preset second packet is configured to be stronger than the preset third packet, and so on.
In another embodiment, the electronic device may first obtain the current geographic location information and the value of the environmental parameter, and detect whether the electronic device is located outdoors according to the geographic location and the value of the environmental parameter. If the electronic equipment is detected to be located outdoors, the electronic equipment can count the electricity consumption speed of the electronic equipment again, and when the electricity consumption speed is larger than a preset speed threshold value, the electronic equipment is triggered to adjust the application standby group.
Referring to fig. 3 to 4, fig. 3 to 4 are schematic views of a terminal control method according to an embodiment of the present application.
For example, the electronic device may acquire the remaining power value at a preset time interval, and detect whether the remaining power value is lower than a preset power threshold. For example, as shown in fig. 3, the electronic device obtains a current remaining power value that is 50% of the total battery capacity, and the preset power threshold is 60% of the total battery capacity, that is, the remaining power value is lower than the preset power threshold, where the remaining power of the electronic device may be considered to be lower.
In this case, the electronic device may count its power consumption rate. For example, the electronic device may obtain the present first time and the first remaining electrical energy value. For example, the time at this time is 10:00 The remaining electric power value (i.e., the first time) is 50% of the total capacity of the battery (i.e., the first remaining electric power value), as shown in fig. 3.
After five minutes, the electronic device may obtain a second remaining electrical energy value. For example, as shown in fig. 4, 10:05 The remaining power value of the electronic device (i.e., the second time) is 42% of the total capacity of the battery (i.e., the second remaining power value).
Then, the electronic device may calculate a power consumption speed of the electronic device according to the first remaining power value and the second remaining power value, and the first time and the second time. For example, the time interval between the first time and the second time is 5 minutes, and the difference between the first residual electric quantity value and the second residual electric quantity value is 8% of the total capacity of the battery. Then the electronic device may calculate its power consumption rate to be 1.6% of the total battery capacity consumed per minute.
After the electricity consumption speed is obtained through statistics, the electronic equipment can detect whether the electricity consumption speed is larger than a preset speed threshold. For example, the preset speed threshold is 1% of the total battery capacity consumed every two minutes. Then, the current power consumption speed of the electronic device exceeds the preset speed threshold, and the power consumption speed of the electronic device can be considered to be higher. In the case that the power consumption of the electronic device is low and the power consumption speed is high, in this embodiment, the electronic device may readjust the application standby packet. For example, the electronic device may be repartitioned into a usual packet (Frequent) with a portion of the application originally partitioned into a Working packet (Working Set).
It will be appreciated that, since the scheduling capability of the application in the usual packet (Frequent) on the electronic device resource is weaker than the Working packet (Working Set), after a part of the application originally divided into the Working packet (Working Set) is re-divided into the usual packet (Frequent), there will be more applications in the electronic device that are more limited in terms of resource scheduling, thereby saving the power consumption of the electronic device.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal control device according to an embodiment of the present application. The terminal control apparatus 300 may include: the statistics module 301, the detection module 302, the adjustment module 303.
And the statistics module 301 is configured to count a power consumption speed of the electronic device.
The detecting module 302 is configured to detect whether the electricity consumption speed is greater than a preset speed threshold.
And the adjusting module 303 is configured to adjust the application standby packet if the power consumption speed is detected to be greater than a preset speed threshold.
In one embodiment, when performing the adjustment of the application standby packet, the adjustment module 303 may be configured to:
and adjusting the application of one or more preset first groups into a preset second group, wherein the preset first group and the preset second group both belong to application standby groups, and the scheduling capability of the application of the preset first group on the electronic equipment resources is configured to be stronger than that of the preset second group.
In one embodiment, when performing the adjustment of the application of the one or more preset first packets into the preset second packets, the adjustment module 303 may be configured to:
determining a target number;
and adjusting the application of the preset first group to the preset second group according to the target number.
In one embodiment, in performing the determining the target number, the adjusting module 303 may be configured to:
and determining a target quantity according to the electric quantity consumption speed, wherein the faster the electric quantity consumption speed is, the larger the numerical value of the target quantity is.
In one embodiment, the statistics module 301 may also be configured to:
and obtaining the residual electric quantity value of the electronic equipment.
Then, in executing the statistics of the power consumption speed of the electronic device, the statistics module 301 may be further configured to: and if the residual electric quantity value is lower than a preset electric quantity threshold value, counting the electric quantity consumption speed of the electronic equipment.
In one embodiment, each of the application standby packets has a different level according to the size of scheduling capability for the electronic device resources.
The detection module 302 may be further configured to, prior to performing the adjusting the application of the one or more preset first packets into the preset second packets: and detecting whether the electricity consumption speed is smaller than a target speed threshold, wherein the target speed threshold is larger than the preset speed threshold.
Then, in performing the adjusting the application of the one or more preset first packets into the preset second packets, the adjusting module 303 may be configured to: and if the electricity consumption speed is smaller than the target speed threshold, adjusting the application of one or more preset first groups into a preset second group, wherein the preset second group and the preset first group differ by one grade in scheduling capability of the electronic equipment resources.
In one embodiment, after detecting whether the power consumption rate is less than a target rate threshold, the adjustment module 303 may be further configured to:
and if the electricity consumption speed is greater than or equal to the target speed threshold, adjusting the application of one or more preset first groups into a preset second group, wherein the preset second group and the preset first group differ in scheduling capability of the electronic equipment resources by at least two grades.
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed on a computer, causes the computer to execute a flow in a terminal control method as provided in the present embodiment.
The embodiment of the application also provides electronic equipment, which comprises a memory and a processor, wherein the processor is used for executing the flow in the terminal control method provided by the embodiment by calling the computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The electronic device 400 may include a charging module 401, a memory 402, a processor 403, and the like. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 6 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Charging module 401 may be used to charge an electronic device, and the amount of power obtained from the charging may be used to support operation of the electronic device. Charging module 401 may include a battery or the like.
Memory 402 may be used to store applications and data. The memory 402 stores application programs including executable code. Applications may constitute various functional modules. Processor 403 executes various functional applications and data processing by running application programs stored in memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing application programs stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, the operating system of the electronic device includes an application standby packet, and the processor 403 in the electronic device loads executable codes corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 executes the application programs stored in the memory 402, so as to execute:
counting the electricity consumption speed of the electronic equipment;
detecting whether the electricity consumption speed is greater than a preset speed threshold;
and if the electricity consumption speed is detected to be larger than a preset speed threshold, adjusting the application standby group.
Referring to fig. 7, an electronic device 500 may include a charging module 501, a memory 502, a processor 503, a display 504, and the like.
The charging module 501 may be configured to charge an electronic device, and the amount of power obtained by the charging may be used to support operation of the electronic device. The charging module 501 may include a battery or the like.
Memory 502 may be used to store applications and data. The memory 502 stores application programs including executable code. Applications may constitute various functional modules. The processor 503 executes various functional applications and data processing by running application programs stored in the memory 502.
The processor 503 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing application programs stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the electronic device.
The display 504 may be used to display information such as images, text, and the like.
In this embodiment, the operating system of the electronic device includes an application standby packet, and the processor 503 in the electronic device loads executable codes corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 503 executes the application programs stored in the memory 502, so as to execute:
counting the electricity consumption speed of the electronic equipment;
detecting whether the electricity consumption speed is greater than a preset speed threshold;
and if the electricity consumption speed is detected to be larger than a preset speed threshold, adjusting the application standby group.
In one embodiment, the processor 503, when executing the adjusting the application standby packet, may perform: and adjusting the application of one or more preset first groups into a preset second group, wherein the preset first group and the preset second group both belong to application standby groups, and the scheduling capability of the application of the preset first group on the electronic equipment resources is configured to be stronger than that of the preset second group.
In one embodiment, the processor 503 may perform, when performing the adjusting the application of the one or more preset first packets into the preset second packets: determining a target number; and adjusting the application of the preset first group to the preset second group according to the target number.
In one embodiment, the processor 503, when executing the determining the target number, may perform: and determining a target quantity according to the electric quantity consumption speed, wherein the faster the electric quantity consumption speed is, the larger the numerical value of the target quantity is.
In one embodiment, the processor 503 may further perform, prior to counting the power consumption rate of the electronic device: and obtaining the residual electric quantity value of the electronic equipment.
Then, the processor 503, when executing the statistics of the power consumption speed of the electronic device, may execute: and if the residual electric quantity value is lower than a preset electric quantity threshold value, counting the electric quantity consumption speed of the electronic equipment.
In one embodiment, each of the application standby packets has a different level according to the size of scheduling capability for the electronic device resources.
Then, before said adjusting the application of the one or more preset first packets into the preset second packets, the processor 503 may further perform: and detecting whether the electricity consumption speed is smaller than a target speed threshold, wherein the target speed threshold is larger than the preset speed threshold.
The processor 503 may perform, when performing the adjusting the application of the one or more preset first packets into the preset second packets: and if the electricity consumption speed is smaller than the target speed threshold, adjusting the application of one or more preset first groups into a preset second group, wherein the preset second group and the preset first group differ by one grade in scheduling capability of the electronic equipment resources.
In one embodiment, after detecting whether the power consumption rate is less than a target rate threshold, the processor 503 may further perform: and if the electricity consumption speed is greater than or equal to the target speed threshold, adjusting the application of one or more preset first groups into a preset second group, wherein the preset second group and the preset first group differ in scheduling capability of the electronic equipment resources by at least two grades.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of a certain embodiment that are not described in detail may be referred to the above detailed description of the terminal control method, which is not repeated herein.
The terminal control device provided in the embodiment of the present application belongs to the same concept as the terminal control method in the above embodiment, and any method provided in the terminal control method embodiment may be run on the terminal control device, and a specific implementation process of the method is detailed in the terminal control method embodiment, which is not described herein again.
It should be noted that, for the terminal control method according to the embodiment of the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the terminal control method according to the embodiment of the present application may be implemented by controlling related hardware by using a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory, and executed by at least one processor, and the execution may include the flow of the embodiment of the terminal control method as described herein. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), etc.
For the terminal control device in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist separately and physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored on a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The foregoing describes in detail a terminal control method, apparatus, storage medium and electronic device provided in the embodiments of the present application, and specific examples are applied to describe the principles and embodiments of the present application, where the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (8)

1. A terminal control method applied to an electronic device, an operating system of the electronic device including a plurality of application standby packets, the method comprising:
dividing each application into a plurality of application standby groups according to the use frequency of each application in the electronic equipment, wherein the scheduling capability of different application standby groups on the electronic equipment resources is different;
acquiring a residual electric quantity value of the electronic equipment;
if the residual electric quantity value is lower than a preset electric quantity threshold value, counting the electric quantity consumption speed of the electronic equipment;
detecting whether the electricity consumption speed is greater than a preset speed threshold;
if the electricity consumption speed is detected to be larger than a preset speed threshold, determining a target quantity according to the electricity consumption speed, wherein the faster the electricity consumption speed is, the larger the numerical value of the target quantity is;
and according to the target quantity, adjusting the application standby group to which the application belongs so as to change the scheduling capability of the application on the electronic equipment resource.
2. The terminal control method according to claim 1, wherein the adjusting the application standby packet to which the application belongs includes:
and adjusting the application of one or more preset first groups into a preset second group, wherein the preset first group and the preset second group both belong to application standby groups, and the scheduling capability of the application of the preset first group on the electronic equipment resources is configured to be stronger than that of the preset second group.
3. The terminal control method according to claim 2, wherein the adjusting the application of the one or more preset first packets into the preset second packets includes:
and adjusting one or more applications of the preset first groups to preset second groups according to the target quantity.
4. The terminal control method according to claim 2, wherein each of the application standby packets has a different level according to a scheduling capability size for an electronic device resource;
before said adjusting the application of the one or more preset first packets into the preset second packets, further comprising: detecting whether the electricity consumption speed is smaller than a target speed threshold, wherein the target speed threshold is larger than the preset speed threshold;
the adjusting the application of the one or more preset first groups to the preset second groups comprises the following steps: and if the electricity consumption speed is smaller than the target speed threshold, adjusting the application of one or more preset first groups into a preset second group, wherein the preset second group and the preset first group differ by one grade in scheduling capability of the electronic equipment resources.
5. The terminal control method according to claim 4, characterized by further comprising, after detecting whether the power consumption speed is less than a target speed threshold:
and if the electricity consumption speed is greater than or equal to the target speed threshold, adjusting the application of one or more preset first groups into a preset second group, wherein the preset second group and the preset first group differ in scheduling capability of the electronic equipment resources by at least two grades.
6. A terminal control apparatus applied to an electronic device whose operating system includes a plurality of application standby packets, the apparatus comprising:
the statistics module is used for dividing each application into a plurality of application standby groups according to the use frequency of each application in the electronic equipment, wherein the scheduling capability of different application standby groups on the electronic equipment resources is different, the residual electric quantity value of the electronic equipment is obtained, and if the residual electric quantity value is lower than a preset electric quantity threshold value, the electric quantity consumption speed of the electronic equipment is counted;
the detection module is used for detecting whether the electricity consumption speed is greater than a preset speed threshold value;
and the adjustment module is used for determining a target quantity according to the electric quantity consumption speed if the electric quantity consumption speed is detected to be larger than a preset speed threshold, wherein the faster the electric quantity consumption speed is, the larger the numerical value of the target quantity is, and adjusting the application standby group to which the application belongs according to the target quantity so as to change the scheduling capability of the application on the electronic equipment resource.
7. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed on a computer, causes the computer to execute the terminal control method according to any one of claims 1 to 5.
8. An electronic device comprising a memory, a processor, an operating system of the electronic device containing application standby packets, characterized in that the processor is adapted to execute the terminal control method according to any of claims 1 to 5 by invoking a computer program stored in the memory.
CN201980092359.7A 2019-04-12 2019-04-12 Terminal control method and device, storage medium and electronic equipment Active CN113439252B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/082572 WO2020206703A1 (en) 2019-04-12 2019-04-12 Terminal control method and apparatus, storage medium, and electronic device

Publications (2)

Publication Number Publication Date
CN113439252A CN113439252A (en) 2021-09-24
CN113439252B true CN113439252B (en) 2023-05-16

Family

ID=72752197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980092359.7A Active CN113439252B (en) 2019-04-12 2019-04-12 Terminal control method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN113439252B (en)
WO (1) WO2020206703A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954085A (en) * 2021-01-28 2021-06-11 携程旅游网络技术(上海)有限公司 Automatic grouping method, system, device and medium for terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096459A (en) * 2009-12-14 2011-06-15 腾讯科技(深圳)有限公司 Energy-saving method and device
CN104635908A (en) * 2013-11-13 2015-05-20 腾讯科技(深圳)有限公司 Method and device for lowering power consumption of mobile terminal
CN105830016A (en) * 2014-11-25 2016-08-03 华为技术有限公司 User equipment power management method and power management device
CN106569579A (en) * 2016-10-21 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Power-saving control method and device of terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729052A (en) * 2013-12-31 2014-04-16 贝壳网际(北京)安全技术有限公司 Processing method and system for power consumption of application program and mobile terminal
CN104199696A (en) * 2014-08-28 2014-12-10 刘勇 Electric consumption control method and system and intelligent terminal
CN105975043A (en) * 2016-04-26 2016-09-28 珠海市魅族科技有限公司 Terminal control method and control apparatus as well as terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096459A (en) * 2009-12-14 2011-06-15 腾讯科技(深圳)有限公司 Energy-saving method and device
CN104635908A (en) * 2013-11-13 2015-05-20 腾讯科技(深圳)有限公司 Method and device for lowering power consumption of mobile terminal
CN105830016A (en) * 2014-11-25 2016-08-03 华为技术有限公司 User equipment power management method and power management device
CN106569579A (en) * 2016-10-21 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Power-saving control method and device of terminal

Also Published As

Publication number Publication date
WO2020206703A1 (en) 2020-10-15
CN113439252A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN107770088B (en) Flow control method and device
CN102722233B (en) Control device and control method
CN104424031B (en) Method and device for controlling working frequency of processor
CN109144700B (en) Method and device for determining timeout duration, server and data processing method
CN108710540B (en) Resource scheduling method, device and equipment in distributed cluster
CN106992326B (en) Charging control method and device and electronic equipment
CN107844187A (en) Power consumption management method, device and electronic equipment
CN110262878B (en) Timed task processing method, device, equipment and computer readable storage medium
CN106528318B (en) Thread dead loop detection method and device
CN109739627B (en) Task scheduling method, electronic device and medium
WO2017151510A1 (en) A method and device for scheduling resources
CN111045810A (en) Task scheduling processing method and device
CN113660173A (en) Flow control method and device, computer equipment and storage medium
CN103037109A (en) Multicore equipment energy consumption management method and device
CN110933178A (en) Method for adjusting node configuration in cluster system and server
CN113439252B (en) Terminal control method and device, storage medium and electronic equipment
CN111538572A (en) Task processing method, device, scheduling server and medium
CN111338575A (en) Storage service quality control method, device, equipment and storage medium
CN105740077B (en) Task allocation method suitable for cloud computing
CN112596985B (en) IT asset detection method, device, equipment and medium
CN104679583A (en) Method and device for dynamically adjusting clock interruption
CN107222612B (en) Background application program closing method and device of mobile terminal
CN110912949B (en) Method and device for submitting sites
CN110795239A (en) Application memory leakage detection method and device
CN110659136A (en) Method, device, terminal and storage medium for limiting frame rate

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