Electronic equipment process control method and device and electronic equipment

CN119376906APending Publication Date: 2025-01-28HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310922240.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

With the development of mobile Internet technology, the size of application packages has increased, resulting in an increase in the overhead of application download and installation. Especially during batch installation or update, the device temperature is too high, resulting in lag and affecting the user experience.

Method used

When the current temperature or load of the electronic device reaches a certain degree, the startup process of pressing background or non -system applications is suppressed to ensure that the system load is balanced and avoid the phenomenon of excessive equipment temperature and stuck.

Benefits of technology

By suppressing the installation process of non -front -stage applications and the startup process of non -system applications, it can prevent the equipment from excessive equipment temperature and the front desk application stuck, improve the user experience, and improve the booting of electronic equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376906A_ABST
    Figure CN119376906A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an electronic equipment process control method and device and electronic equipment.The method comprises the steps that a first event generated by first electronic equipment is detected, and the first event is a background installation event of a first application or a starting event of a second application when the first electronic equipment is started; acquiring the current temperature or the current load of the first electronic equipment; according to the current temperature or the current load of the first electronic equipment, judging whether a first process needs to be suppressed or not, wherein the first process is the process of the first event; and when it is determined that the first process needs to be pressed, the first process is pressed. According to the method, the device or the electronic equipment, when the current temperature or the load of the electronic equipment reaches a certain degree, some background application installation processes or startup processes of non-system applications are suppressed, so that the load distribution of the system is relatively balanced, and the phenomenon that the applications are stuck can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of electronic device process control, and more specifically, to a method, apparatus, and electronic device for electronic device process control. Background Art

[0002] With the development of mobile Internet technology, the size of application packages is getting larger and larger, which also leads to higher and higher costs for downloading and installing applications. Especially during the batch installation and update of applications, excessive costs will cause the temperature of the device to be too high, which will cause the device to freeze, seriously affecting the normal use of users. Summary of the invention

[0003] The present application provides a method, device and electronic device for controlling the process of an electronic device. Through this method, device or electronic device, when the current temperature or load of the electronic device reaches a certain level, some background application processes or startup processes of non-system applications are suppressed, so that the load distribution of the system is relatively balanced, and the application freeze phenomenon can be avoided.

[0004] In a first aspect, a method for controlling a process of an electronic device is provided, the method comprising: detecting a first event occurring in a first electronic device, the first event being a background installation event of a first application, or the first event being a startup event of a second application, the startup event being a startup event of the second application when the first electronic device is turned on; obtaining a current temperature or a current load of the first electronic device; determining whether it is necessary to suppress a first process based on the current temperature or the current load of the first electronic device, the first process being the process of the first event; and suppressing the first process when it is determined that the first process needs to be suppressed.

[0005] In some embodiments, the second application is a third-party application.

[0006] In an embodiment of the present application, when the current temperature or current load of the electronic device reaches a certain level, the application installation process in a non-foreground scenario can be suppressed, so that the foreground and background loads of the system are relatively balanced, and the phenomenon of excessive temperature of the electronic device or foreground application jamming caused by the sudden excessive load during the non-foreground application installation process can be avoided. During the startup process of the electronic device, when the current temperature or current load of the electronic device reaches a certain level, the startup process of the non-system application can be suppressed, which can improve the smoothness of the startup of the electronic device, and thus improve the user experience of the electronic device.

[0007] In combination with the first aspect, in a possible implementation, whether the first process needs to be suppressed is determined based on the current temperature or current load of the first electronic device, including: when the current temperature of the first electronic device is higher than a first threshold, or the current load of the first electronic device is higher than a second threshold, determining that the first process needs to be suppressed.

[0008] In some embodiments, the first threshold is 40° C., and the second threshold is 35%.

[0009] In an embodiment of the present application, when the current temperature or current load of the electronic device reaches a certain level, the application installation process in a non-foreground scenario or the startup process of a non-system application can be suppressed, so that the foreground and background loads of the system are relatively balanced, and the running smoothness of the foreground application is improved, thereby improving the user experience of the electronic device.

[0010] In combination with the first aspect, in a possible implementation, the method also includes: when the current temperature of the first electronic device is lower than a third threshold and the current load of the first electronic device is lower than a fourth threshold, releasing the suppression of the first process, wherein the third threshold is less than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold.

[0011] In some embodiments, when the installation scene of the first application is switched from a non-foreground scene to a foreground scene, the suppression of the installation process of the first application is released.

[0012] In some embodiments, the third threshold is 37° C., and the fourth threshold is 30%.

[0013] In the embodiment of the present application, when the current temperature and current load pressure of the electronic device are not large, the suppression of the application installation process or the startup process can be released, and the running smoothness of the foreground application can be improved, thereby improving the user experience of the electronic device. In addition, the threshold for releasing the suppression can be lower than the threshold for applying the suppression, which can avoid the frequent switching between the release and suppressed states of the application download process in the non-foreground scenario, thereby further improving the user experience of the electronic device.

[0014] In combination with the first aspect, in a possible implementation, suppressing the first process includes: binding the first process to a small core of a central processing unit (CPU) of the first electronic device to run.

[0015] In an embodiment of the present application, by binding the installation process of the first application or the startup process of the second application to the small core of the CPU, the power consumption of the electronic device can be reduced. In addition, since the foreground application and the system application generally run on the large core of the CPU, it is also possible to avoid the impact of the operation of the foreground task and the system application due to the operation of the installation process of the first application or the startup process of the second application.

[0016] In combination with the first aspect, in a possible implementation method, suppressing the first process also includes: detecting whether the running time of the first process in the i-th cycle of the first electronic device is greater than the first time length; if the running time in the i-th cycle is greater than the first time length, stopping the running of the first process in the i-th cycle, where i is a positive integer, i=1,2,3,…

[0017] In some embodiments, the duration of the i-th cycle is the same as the duration of an operation cycle of the CPU of the first electronic device.

[0018] In the embodiment of the present application, by limiting the maximum duration of the installation process of the first application allowed to run within the CPU's operating cycle, it is possible to avoid the suppressed installation process of the first application occupying the CPU core for a long time and affecting other background installation processes.

[0019] In combination with the first aspect, in a possible implementation method, suppressing the first process also includes: when the first process enters the i+1th cycle of the first electronic device, starting the operation of the first process in the i+1th cycle; detecting whether the running time of the first process in the i+1th cycle of the first electronic device is greater than the first time length; if the running time in the i+1th cycle is greater than the first time length, stopping the operation of the first process in the i+1th cycle.

[0020] In one example, if it is detected that the running time in the first cycle is greater than the first time length, the running of the first process in the first cycle is stopped; after the first cycle ends, it is continued to be detected whether the running time of the first process in the second cycle of the first electronic device is greater than the first time length; if the running time in the second cycle is greater than the first time length, the running of the first process in the second cycle is stopped, and so on.

[0021] In some embodiments, each cycle of the first electronic device is 100000ns, and the first time length is 50000ns; in some other embodiments, each cycle of the first electronic device is 20000ns, and the first time length is 10000ns; in some other embodiments, each cycle of the first electronic device is 10000ns, and the first time length is 5000ns.

[0022] It should be understood that a CPU can have multiple operating cycles. An embodiment of the present application limits the running time of the installation process of the first application in each of the multiple operating cycles of the CPU. When the running time in the first cycle of the CPU stops because the running time reaches the first time length, when the second cycle starts, the installation process of the first application can run again in the second cycle, and stop running in the second cycle after accumulating to the first time length again.

[0023] In an embodiment of the present application, by limiting the maximum duration of time that the installation process of the first application is allowed to run in each of multiple cycles of the CPU, it is possible to avoid the impact on other background installation processes due to the suppressed installation process of the first application occupying the CPU core for a long time.

[0024] In combination with the first aspect, in a possible implementation, after stopping the running of the first process in the i-th cycle, the method also includes: obtaining the suppression time of the first electronic device on the first process; when the suppression time reaches a second time, waking up the first process.

[0025] The suppression duration may be understood as the duration during which the first process is in a stopped state during the CPU operation.

[0026] The second duration may be a duration determined based on user input, or a duration automatically determined by the system, and this application does not impose any limitation on this.

[0027] In some embodiments, the value of the second duration is related to the priority of the first process. The lower the priority of the first process, the longer the second duration. The priority of the first process refers to the priority of the first process among all currently running processes.

[0028] In some embodiments, the second duration is greater than or equal to the duration of the i-th cycle.

[0029] In the embodiment of the present application, a reasonable wake-up delay is set for the installation process of the first application in a suppressed state, which can avoid the stagnation of the installation process of the first application due to the fact that the installation process of the first application in a suppressed state cannot be scheduled for a long time.

[0030] In a second aspect, an electronic device is provided, which includes: a detection module, which is used to detect a first event occurring in the electronic device, where the first event is a background installation event of a first application, or the first event is a startup event of a second application, where the startup event is a startup event of the second application when the electronic device is turned on; an acquisition module, which is used to acquire a current temperature or a current load of the electronic device; a judgment module, which is used to judge whether it is necessary to suppress a first process according to the current temperature or the current load of the electronic device, where the first process is the process of the first event; and a suppression module, which is used to suppress the first process when it is determined that the first process needs to be suppressed.

[0031] In some embodiments, the second application is a third-party application.

[0032] In an embodiment of the present application, when the current temperature or current load of the electronic device reaches a certain level, the application installation process in a non-foreground scenario can be suppressed, so that the foreground and background loads of the system are relatively balanced, and the phenomenon of excessive temperature of the electronic device or foreground application jamming caused by the sudden excessive load during the non-foreground application installation process can be avoided. During the startup process of the electronic device, when the current temperature or current load of the electronic device reaches a certain level, the startup process of the non-system application can be suppressed, which can improve the smoothness of the startup of the electronic device, and thus improve the user experience of the electronic device.

[0033] In combination with the second aspect, in a possible implementation, the judgment module is specifically used to: when the current temperature of the electronic device is higher than a first threshold, or the current load of the electronic device is higher than a second threshold, determine that the first process needs to be suppressed.

[0034] In some embodiments, the first threshold is 40° C., and the second threshold is 35%.

[0035] In an embodiment of the present application, when the current temperature or current load of the electronic device reaches a certain level, the application installation process in a non-foreground scenario or the startup process of a non-system application can be suppressed, so that the foreground and background loads of the system are relatively balanced, and the running smoothness of the foreground application is improved, thereby improving the user experience of the electronic device.

[0036] In combination with the second aspect, in a possible implementation, the device also includes: a decompression module, which is used to release the suppression of the first process when the current temperature of the electronic device is lower than a third threshold and the current load of the first electronic device is lower than a fourth threshold, wherein the third threshold is less than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold.

[0037] In some embodiments, when the installation scene of the first application is switched from a non-foreground scene to a foreground scene, the suppression of the installation process of the first application is released.

[0038] In some embodiments, the third threshold is 37° C., and the fourth threshold is 30%.

[0039] In the embodiment of the present application, when the current temperature and current load pressure of the electronic device are not large, the suppression of the application installation process or the startup process can be released, and the running smoothness of the foreground application can be improved, thereby improving the user experience of the electronic device. In addition, the threshold for releasing the suppression can be lower than the threshold for applying the suppression, which can avoid the frequent switching between the release and suppressed states of the application download process in the non-foreground scenario, thereby further improving the user experience of the electronic device.

[0040] In conjunction with the second aspect, in a possible implementation, the compression module is specifically used to: bind the first process to a small core of a central processing unit (CPU) of the electronic device to run.

[0041] In an embodiment of the present application, by binding the installation process of the first application or the startup process of the second application to the small core of the CPU, the power consumption of the electronic device can be reduced. In addition, since the foreground application and the system application generally run on the large core of the CPU, it is also possible to avoid the impact of the operation of the foreground task and the system application due to the operation of the installation process of the first application or the startup process of the second application.

[0042] In combination with the second aspect, in a possible implementation method, the detection module is also used to: detect whether the running time of the first process in the i-th cycle of the electronic device is greater than the first time length; the suppression module is also specifically used to: when the running time of the first process in the i-th cycle of the electronic device is greater than the first time length, stop the running of the first process in the i-th cycle, where i is a positive integer, i=1,2,3,…

[0043] In some embodiments, the duration of the i-th cycle is the same as the duration of an operating cycle of a CPU of the electronic device.

[0044] In the embodiment of the present application, by limiting the maximum duration of the installation process of the first application allowed to run within the CPU's operating cycle, it is possible to avoid the suppressed installation process of the first application occupying the CPU core for a long time and affecting other background installation processes.

[0045] In combination with the first aspect, in a possible implementation, the electronic device also includes: a starting module, used to start the operation of the first process in the i+1th cycle when the first process enters the i+1th cycle of the electronic device; the detection module is also used to detect whether the running time of the first process in the i+1th cycle of the electronic device is greater than the first time length; the suppression module is also specifically used to stop the operation of the first process in the i+1th cycle if the running time in the i+1th cycle is greater than the first time length.

[0046] In one example, if the detection module detects that the running time in the first cycle is greater than the first time length, the suppression module stops the running of the first process in the first cycle; when the first cycle ends, the detection module continues to detect whether the running time of the first process in the second cycle of the electronic device is greater than the first time length; if the running time in the second cycle is greater than the first time length, the suppression module stops the running of the first process in the second cycle, and so on.

[0047] In some embodiments, each cycle of the electronic device is 100000ns, and the first time length is 50000ns; in some other embodiments, each cycle of the electronic device is 20000ns, and the first time length is 10000ns; in some other embodiments, each cycle of the electronic device is 10000ns, and the first time length is 5000ns.

[0048] It should be understood that a CPU can have multiple operating cycles. An embodiment of the present application limits the running time of the installation process of the first application in each of the multiple operating cycles of the CPU. When the running time in the first cycle of the CPU stops because the running time reaches the first time length, when the second cycle starts, the installation process of the first application can run again in the second cycle, and stop running in the second cycle after accumulating to the first time length again.

[0049] In an embodiment of the present application, by limiting the maximum duration of time that the installation process of the first application is allowed to run in each of multiple cycles of the CPU, it is possible to avoid the impact on other background installation processes due to the suppressed installation process of the first application occupying the CPU core for a long time.

[0050] In combination with the second aspect, in a possible implementation method, the acquisition module is also used to: after stopping the running of the first process in the i-th cycle, obtain the suppression time of the first process by the electronic device; the suppression module is also specifically used to: when the suppression time reaches a second time, wake up the first process.

[0051] The suppression duration may be understood as the duration during which the first process is in a stopped state during the CPU operation.

[0052] The second duration may be a duration determined based on user input, or a duration automatically determined by the system, and this application does not impose any limitation on this.

[0053] In some embodiments, the value of the second duration is related to the priority of the first process. The lower the priority of the first process, the longer the second duration. The priority of the first process refers to the priority of the first process among all currently running processes.

[0054] In some embodiments, the second duration is greater than or equal to the duration of the i-th cycle.

[0055] In the embodiment of the present application, a reasonable wake-up delay is set for the installation process of the first application in a suppressed state, which can avoid the stagnation of the installation process of the first application due to the fact that the installation process of the first application in a suppressed state cannot be scheduled for a long time.

[0056] In a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0057] In a fourth aspect, a computer-readable storage medium is provided, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method in the above-mentioned first aspect or any possible implementation manner of the first aspect is implemented.

[0058] In a fifth aspect, a chip is provided, in which instructions are stored. When the instructions are executed on a device, the chip executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0059] In a sixth aspect, a computer program product is provided, comprising: a computer program code, which, when executed, implements the method in the first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0061] Figure 2 It is a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0062] Figure 3 is a schematic flow chart of a method for controlling a process of an electronic device provided in an embodiment of the present application;

[0063] Figure 4is a schematic flow chart of another method for controlling a process of an electronic device provided in an embodiment of the present application;

[0064] Figure 5 is a schematic flow chart of another method for controlling a process of an electronic device provided in an embodiment of the present application;

[0065] Figure 6 is a schematic flow chart of a method for suppressing the installation process of a first application provided in an embodiment of the present application;

[0066] Figure 7 is a schematic flow chart of another method for suppressing the installation process of a first application provided in an embodiment of the present application;

[0067] Figure 8 is a schematic flow chart of another method for controlling a process of an electronic device provided in an embodiment of the present application;

[0068] Fig. 9 It is a load change curve diagram corresponding to before and after suppressing the installation process of the first application using the electronic device process control method provided by the embodiment of the present application;

[0069] Fig.10 It is a temperature change curve diagram corresponding to before and after the installation process of the first application is suppressed using the electronic device process control method provided by the embodiment of the present application;

[0070] Fig.11 It is a functional module diagram of a device for process control of an electronic device provided in an embodiment of the present application;

[0071] Fig.12 It is a system framework diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] The technical solution in the present application will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0073] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" or "multiple" refers to two or more than two.

[0074] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0075] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0076] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "one embodiment", "some embodiments", "another embodiment", "some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0077] The method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0078] For example, Figure 11 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0079] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0080] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0081] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0082] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0083] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0084] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0085] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0086] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0087] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0088] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0089] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0090] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0091] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0092] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0093] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0094] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0095] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0096] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0097] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0098] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0099] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0100] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0101] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0102] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0103] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0104] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0105] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0106] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0107] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0108] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0109] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, at least one App required for a function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0110] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0111] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0112] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0113] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0114] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0115] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0116] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0117] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0118] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0119] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0120] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0121] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0122] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0123] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0124] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0125] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0126] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0127] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

[0128] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0129] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0130] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0131] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an embedded SIM (eSIM) card, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0132] It should be understood that the phone card in the embodiments of the present application includes but is not limited to a SIM card, an eSIM card, a universal subscriber identity module (USIM), a universal integrated circuit card (UICC), and the like.

[0133] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0134] Figure 2 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.

[0135] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0136] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0137] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0138] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0139] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0140] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0141] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0142] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0143] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0144] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0145] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0146] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0147] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0148] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0149] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0150] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0151] A 2D graphics engine is a drawing engine for 2D drawings.

[0152] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0153] It should be understood that the technical solutions in the embodiments of the present application can be used in Android, IOS, Hongmeng and other systems.

[0154] The technical solution of the embodiments of the present application can be applied to application download or installation scenarios of electronic devices, for example, can be applied to batch download or batch installation scenarios of applications.

[0155] The technical solution of the embodiment of the present application can also be applied to the startup scenario of an electronic device, for example, it can be applied to the background associated startup scenario of a non-system application within a certain period of time after the electronic device system is started.

[0156] The electronic device in the embodiments of the present application may be a laptop computer, or a portable electronic device such as a mobile phone, a tablet computer, a camera, a camcorder, a video recorder, or other electronic devices with download or installation functions, electronic devices in a 5G network, or electronic devices in a future evolving public land mobile communication network (public land mobile network, PLMN), etc., and the present application does not limit this.

[0157] With the development of mobile Internet technology, the size of application packages (for example, Android application packages (APK)) is getting larger and larger, which also leads to increasing overhead in downloading and installing applications. Especially during batch installation and updating of applications, excessive overhead will cause the temperature of the device to be too high, which will cause the device to freeze, seriously affecting the normal use of users.

[0158] In response to the above technical problems, the method currently adopted is: during the download or installation process of the application, when the electronic device overheats, the electronic device is frequency-limited, or the download or installation of the current application is stopped to alleviate the overheating of the electronic device.

[0159] However, although limiting the frequency of the entire electronic device can alleviate the overheating of the electronic device, it can easily cause the electronic device to freeze and affect the user's use of the foreground application on the electronic device; and, stopping the download or installation of the application when the electronic device overheats is a way to solve the problem by ending the process, which not only fails to fundamentally solve the problem, but also seriously affects the user's installation and use needs for the application.

[0160] In view of this, an embodiment of the present application provides a method for controlling the process of an electronic device and an electronic device. Through this method and the electronic device, when the current temperature or load of the electronic device is too high, the background application can be suppressed, and when the current temperature and load of the electronic device are low, the suppression of the background application can be released, so that the system load is relatively balanced, and the over-high temperature and jamming caused by the over-high load of the electronic device can be avoided.

[0161] For example, taking the application installation scenario as an example, Figure 3 FIG. 3 is a schematic flow chart of a method 300 for controlling a process of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the method 300 includes:

[0162] S301: Detecting a first application installation event of an electronic device.

[0163] In some embodiments, the first application installation event may be, for example, an event of downloading and installing the first application through an application store of the first electronic device; it may also be an event of automatically downloading and installing a new version of the first application when the system of the first electronic device detects a new version of the first application; it may also be an event of confirming the download and installation of the first application as needed when using certain functions of the first electronic device; it may also be an event of installing the first application through an installation package; it may also be an event of installing other applications, which is not limited in the present application.

[0164] In some embodiments, when a package manager service (PMS) of a first electronic device receives a dexOat process notification, it determines that a first application installation event of the electronic device is detected.

[0165] Among them, the dexOat process is the process of compiling and optimizing the dex files issued by the system, that is, converting the bytecode of the dex file into machine code that the system can execute in advance. Its purpose is to improve the system startup speed and fluency during use. The dexOat process occupies a very important position in the system operation process. The dexOat process is involved in events such as application installation, screen sliding, and system startup.

[0166] Among them, the first application installation process described in the embodiment of the present application can be understood as one or more application installation processes.

[0167] S302: When the installation scenario of the first application is a non-foreground scenario, determine whether the installation process of the first application needs to be suppressed according to the current temperature or current load of the first electronic device.

[0168] Among them, the installation scenario of the first application is a non-foreground scenario, which means that the first application is not an application that is currently needed or waiting to be used. Specifically, it can be determined whether the current process is a foreground process or a background process according to the process of the application program. The foreground process is a process displayed on the current interface and interacting with the user, and the background process refers to an activity that is not visible to the user. For example: a user downloads a first application through an application store of a first electronic device, and the user is using other applications on the first electronic device during the download of the first application. In this case, the first application is currently a background application, and its installation scenario is a non-foreground scenario; for another example: when the background of the first electronic device detects that a new version of the first application that is not currently in use exists, the first electronic device downloads and installs the new version of the first application in the background (that is, when the first application is idle, the version is automatically updated in the background), then the new version of the first application is currently a background application, and its installation scenario is a non-foreground scenario; for another example: when a user uses a certain function of a browser, he needs to download and install the first application to continue using the current function, then the first application is currently a foreground application, and its installation scenario is a foreground scenario. Among them, the determination of whether the application is currently a foreground application or a background application (that is, the determination of whether the installation scenario of the application is a non-foreground scenario) is a conventional technology in the field and will not be repeated here.

[0169] The first application described in the embodiment of the present application is currently a background application, and can also be described as the installation process of the first application occurring in a non-foreground scenario, wherein the non-foreground scenario can be understood as a scenario where the first application is not currently needed or is about to be used.

[0170] In some embodiments, when the installation scenario of the first application is a non-foreground scenario, if the current temperature of the first electronic device is higher than a first threshold, or the current load of the first electronic device is higher than a second threshold, it is determined that the installation process of the first application needs to be suppressed.

[0171] The current temperature of the first electronic device refers to the current chip temperature of the first electronic device; and the current load of the first electronic device refers to the current central processing unit (CPU) load of the first electronic device.

[0172] S303: When it is determined that the installation process of the first application needs to be suppressed, suppress the installation process of the first application.

[0173] The installation process of the first application can be suppressed by reducing the installation speed of the first application, or by reducing the installation priority of the first application, or by reducing the installation speed and installation priority of the first application. The specific suppression method for suppressing the first application will be described in detail in the subsequent embodiments.

[0174] In an embodiment of the present application, when the current temperature or current load of the electronic device reaches a certain level, the application installation process in the non-foreground scenario can be suppressed, so that the foreground and backend loads of the system are relatively balanced, and the electronic device temperature is too high or the foreground application is stuck due to the sudden high load of the non-foreground application installation process, thereby improving the user experience of the electronic device.

[0175] For example, taking the application installation scenario as an example, Figure 4 FIG. 4 is a schematic flow chart of another electronic device process control method 400 provided in an embodiment of the present application. Figure 4 As shown, the method 400 includes:

[0176] S401: A first application installation event of an electronic device is detected.

[0177] The explanation of this step is as follows Figure 3 The explanation of step S301 in the illustrated embodiments is the same and will not be repeated here for the sake of brevity.

[0178] S402: Determine that the installation scenario of the first application is a non-foreground scenario.

[0179] For an explanation of non-foreground scenarios, see Figure 3 For the sake of brevity, the relevant description of step S302 in the illustrated embodiment is not repeated here.

[0180] S403: Determine whether the condition is met: the current temperature of the electronic device is higher than the first threshold or the current load of the electronic device is higher than the second threshold. If so, execute step S404; if not, execute step S405.

[0181] The current temperature of the first electronic device refers to the current chip temperature of the first electronic device; and the current load of the first electronic device refers to the current CPU load of the first electronic device.

[0182] The first threshold is a temperature threshold, and the value of the first threshold can be any value between 35° C. and 50° C., for example, 40° C.

[0183] The second threshold is a load threshold, and the value of the second threshold can be any value between 30% and 50%, for example, 35%.

[0184] In some embodiments, step S403 may be performed periodically during the installation process of the first application.

[0185] S404: Suppress the installation process of the first application.

[0186] The installation process of the first application can be suppressed by reducing the installation speed of the first application, or by reducing the installation priority of the first application, or by reducing the installation speed and installation priority of the first application. The specific suppression method of suppressing the first application will be described in detail in the subsequent embodiments.

[0187] It should be understood that after executing step S404, if the installation process of the first application is still in an unfinished state (i.e., the first application is not installed completely), then the process returns to step S403. In other words, for the installation process of the first application in a non-foreground scenario, the operation of determining whether the installation process needs to be suppressed is not performed only once, but is performed multiple times in the entire installation process of the first application (it can be performed periodically or in real-time monitoring).

[0188] S405: Do not suppress the installation process of the first application, or release the suppression of the installation process of the first application.

[0189] In some embodiments, when the installation scenario of the first application is the foreground scenario, the installation process of the first application will not be suppressed from beginning to end.

[0190] In some further embodiments, when the installation process of the first application is currently in an unsuppressed state, if the current temperature of the electronic device is lower than or equal to a first threshold and the current load of the electronic device is lower than or equal to a second threshold, the installation process of the first application is not currently suppressed.

[0191] In some further embodiments, when the installation process of the first application is currently in a suppressed state, if the current temperature of the electronic device is lower than or equal to a first threshold and the current load of the electronic device is lower than or equal to a second threshold, the suppression of the installation process of the first application is released.

[0192] It should be understood that after executing step S404, if the installation process of the first application is still in an incomplete state (that is, the first application is not installed completely), then return to step S403; similarly, after executing step S405, if the installation process of the first application is still in an incomplete state (that is, the first application is not installed completely), then return to step S403. That is to say: for the installation process of the first application in a non-foreground scenario, the operation of determining whether it is necessary to suppress the installation process is not performed only once, but is performed multiple times in the entire installation process of the first application (it can be performed periodically or under real-time monitoring). It is suppressed when the suppression conditions are met, and released when the suppression conditions are not met. In an example, if the temperature of the electronic device is higher than a first threshold value in a first period of the installation process, the installation process of the first application is suppressed in the first period; when the installation process enters a second period, the temperature of the electronic device is lower than the first threshold value, and the load of the electronic device is lower than the second threshold value, the suppression of the installation process of the first application is released in the second period; when the installation process enters a third period, the load of the electronic device is higher than the second threshold value, the installation process of the first application is suppressed in the third period, and the decision is repeated until the installation process of the first application is completed.

[0193] In some embodiments, when the installation scene of the first application is switched from a non-foreground scene to a foreground scene, the suppression of the installation process of the first application is released.

[0194] In the embodiments of the present application, when the current temperature or current load of the electronic device reaches a certain level, the application installation process in the non-foreground scenario can be suppressed, and when the current temperature and current load pressure of the electronic device are not large, the suppression of the application installation process can be released, so that the foreground and backend loads of the system are relatively balanced, and while allowing the application in the non-foreground scenario to be downloaded smoothly, it can avoid the electronic device temperature being too high or the foreground application being stuck due to the sudden excessive load during the non-foreground application installation process, thereby improving the user experience of the electronic device.

[0195] For example, taking the application installation scenario as an example, Figure 5 FIG. 5 is a schematic flow chart of another electronic device process control method 500 provided in an embodiment of the present application. Figure 5 As shown, the method 500 includes:

[0196] S501: When an installation event of a first application of an electronic device in a non-foreground scenario is detected, determine whether a suppression condition is met: the current temperature of the electronic device is higher than a first threshold, or the current load of the electronic device is higher than a second threshold. If so, execute step S502.

[0197] For an explanation of this step, see Figure 4 For the sake of brevity, the relevant descriptions of steps S401 to S403 in the illustrated embodiment are not repeated here.

[0198] S502: Suppress the installation process of the first application.

[0199] The explanation of this step is as follows Figure 4 The explanation of step S404 in the illustrated embodiments is the same and will not be repeated here for the sake of brevity.

[0200] In one example, if the temperature of the electronic device is higher than a first threshold value in the first time period of the installation process, the installation process of the first application is suppressed in the first time period; when the installation process enters the second time period, the temperature of the electronic device is lower than a third threshold value, and the load of the electronic device is less than a fourth threshold value, the suppression of the installation process of the first application is lifted in the second time period; when the installation process enters the third time period, the load of the electronic device is higher than the second threshold value, the installation process of the first application is suppressed in the third time period, and the decision is repeated in this way until the installation process of the first application is completed.

[0201] S503: Determine whether the condition for releasing the suppression is met: the current temperature of the electronic device is lower than the third threshold, and the current load of the electronic device is lower than the fourth threshold. If the condition is met, execute step S504.

[0202] The third threshold is a temperature threshold, which is less than the first threshold. The third threshold can be any value between 30° C. and 50° C., for example, 37° C.

[0203] The fourth threshold is a load threshold, which is less than the second threshold. The value of the fourth threshold can be any value between 25% and 50%, for example, 30%.

[0204] It should be understood that step S503 is performed only when the installation process of the first application has not been completed. If the installation process of the first application has been completed (ie, the first application has been installed), the current process is terminated.

[0205] S504: Release the suppression of the installation process of the first application, and return to step S501.

[0206] For an explanation of this step, see Figure 4 For the sake of brevity, the relevant description of step S405 in the illustrated embodiment is not repeated here.

[0207] In one example, if the temperature of the electronic device is higher than a first threshold value in the first time period of the installation process, the installation process of the first application is suppressed in the first time period; when the installation process enters the second time period, the temperature of the electronic device is lower than a third threshold value, and the load of the electronic device is less than a fourth threshold value, the suppression of the installation process of the first application is lifted in the second time period; when the installation process enters the third time period, the load of the electronic device is higher than the second threshold value, the installation process of the first application is suppressed in the third time period, and the decision is repeated in this way until the installation process of the first application is completed.

[0208] It should be understood that the process returns to step S501 only when the installation process of the first application has not been completed. If the installation process of the current first application has been completed (ie, the first application has been installed), the current process is terminated.

[0209] In an embodiment of the present application, when the current temperature or current load of the electronic device reaches a certain level, the application installation process in a non-foreground scenario can be suppressed, and when the current temperature and current load pressure of the electronic device are not large, the suppression of the application installation process can be released, so that the foreground and backend loads of the system are relatively balanced, and while allowing the application in the non-foreground scenario to be successfully downloaded, it can avoid the phenomenon of excessive temperature of the electronic device or freezing of the foreground application due to the sudden excessive load of the non-foreground application installation process. In addition, in this embodiment, the threshold for releasing suppression is less than the threshold for applying suppression, which can avoid the application download process in the non-foreground scenario from frequently switching between the released and suppressed states, thereby further improving the user experience of the electronic device.

[0210] In order to more clearly understand the suppression process of the first application installation process, illustratively, Figure 6 FIG. 6 is a schematic flow chart of a method 600 for suppressing the installation process of a first application provided by an embodiment of the present application. Figure 6 As shown, the method 600 includes:

[0211] S601: When it is determined to suppress the installation process of the first application, the installation process of the first application is bound to run on the CPU small core.

[0212] In some embodiments, when the installation process of the first application is not suppressed, the installation process of the first application runs on the large core of the CPU. When it is determined that the installation process of the first application needs to be suppressed, the system sends a scheduling instruction to the CPU, and the scheduling instruction is used to instruct the installation process of the first application to be adjusted and bound to the small core of the CPU to continue running, wherein the running progress before and after the adjustment is not affected.

[0213] The CPU of the electronic device includes a large core, a medium core and a small core, wherein the frequency of the small core is lower and the corresponding operating load is also lower. In this step, by binding the installation process of the first application to the small core, the power consumption of the electronic device can be reduced. Moreover, since the foreground application generally runs on the large core of the CPU, it can also avoid the impact of the operation of the foreground task due to the operation of the installation process of the first application.

[0214] S602: Determine whether the running time of the installation process of the first application in the first cycle of the CPU is greater than the first time length. If so, execute step S603; if not, execute step S604, wherein the time length of the first cycle is the same as the time length of an running cycle of the CPU of the first electronic device.

[0215] It should be understood that the CPU of the first electronic device includes one or more operating cycles.

[0216] Optionally, the duration of the first cycle is the same as the duration of an operation cycle of a CPU core of the first electronic device.

[0217] Among them, the first period can be, for example, 20,000 nanoseconds; the first duration can be, for example, one third of the first period, or one half of the first period, or two thirds of the first period, or any duration less than the first period determined by user input or the system.

[0218] In this step, the running time of the installation process of the first application in the first period is greater than the first time period, which means that the cumulative running time of the installation process of the first application in the first period is greater than the first time period.

[0219] S603: Stop the installation process of the first application in the first cycle.

[0220] S604: Continue the installation process of the first application in the first cycle and return to step S602.

[0221] That is, S602 may be continuously executed (eg, periodically executed) until the running time of the installation process of the first application in the first period is greater than the first time length.

[0222] S605: When the installation process of the first application enters the Nth cycle, start running the installation process of the first application in the Nth cycle.

[0223] Wherein, N is a positive integer, N=2, 3, 4, ..., and the duration of the Nth cycle is the same as the duration of an operation cycle of the CPU of the first electronic device.

[0224] S606: Determine whether the running time of the installation process of the first application in the Nth cycle is greater than the first time length, if so, execute step S607; if not, execute step S608.

[0225] S607: Stop the installation process of the first application in the Nth cycle.

[0226] S608: Continue the installation process of the first application in the Nth cycle and return to step S606.

[0227] That is to say, in the embodiment of the present application, the running time of the installation process of the first application in each of the multiple cycles of the CPU is limited. When the running time in the first cycle of the CPU stops because the running time reaches the first time, when the second cycle starts, the installation process of the first application can be run again in the second cycle, and stop running in the second cycle after accumulating to the first time again, and so on, until the installation process of the first application ends. In some embodiments, when step S601 is executed before steps S602-S603, the above-mentioned first cycle refers to an operating cycle of the small core of the CPU of the first electronic device, and the installation process of the first application runs on the small core of the CPU; when step S601 is not executed before steps S602-S603, the above-mentioned first cycle can refer to an operating cycle of the large core of the CPU of the first electronic device or an operating cycle of the medium core of the CPU of the first electronic device, and the installation process of the first application runs on the large core of the CPU or runs on the medium core of the CPU.

[0228] In this step, by limiting the maximum duration of the first application's installation process allowed to run in each of multiple cycles, it is possible to avoid the suppressed first application's installation process occupying the CPU core for a long time and affecting other background installation processes.

[0229] It should be noted that the specific implementation process and implementation order of step S601 and step S602-step S604 are not necessarily related, and the two can be implemented independently or in combination. For example, only step S601 can be executed, that is, by binding the installation process of the first application to run on the CPU small core of the first electronic device to suppress the installation process of the first application; steps S602-S604 can also be executed, that is, by controlling the maximum running time of the installation process of the first application on the CPU core of the first electronic device to suppress the installation process of the first application; steps S601-S604 can also be executed, that is, by binding the installation process of the first application to run on the CPU small core of the first electronic device, and controlling the maximum running time of the installation process of the first application on the CPU small core of the first electronic device to suppress the installation process of the first application.

[0230] For example, Figure 7 FIG. 7 is a schematic flow chart of another method 700 for suppressing the installation process of a first application provided by an embodiment of the present application. Figure 7 As shown, the method 700 includes:

[0231] S701 to S703 and Figure 6 S601 to S603 in the illustrated embodiment are the same and will not be described again for brevity.

[0232] S704: Determine whether the suppression time of the installation process of the first application reaches the second time, if so, execute step S705; if not, execute step S706.

[0233] The suppression duration may be understood as the duration during which the installation process of the first application is in a stopped state during the operation of the CPU.

[0234] The second duration may be a duration determined based on user input or a duration automatically determined by the system, and this application does not impose any limitation on this.

[0235] In some embodiments, the value of the second duration is related to the priority of the installation process of the first application. The lower the priority of the installation process of the first application, the longer the second duration. The priority of the installation process of the first application refers to the priority of the installation process of the first application among all current installation event processes.

[0236] In some embodiments, the value of the second duration is greater than or equal to the first period, or the value of the second duration is less than the difference between the duration of the first period and the first duration.

[0237] S705: Wake up the installation process of the first application and release the suppression of the installation process of the first application.

[0238] In this step, a reasonable wake-up delay is set for the installation process of the first application in a suppressed state, so as to avoid stagnation of the installation process of the first application due to the installation process of the first application being in a suppressed state for a long time and not being scheduled.

[0239] In an example, each cycle of the first electronic device is 100000ns, the first time length is 50000ns, and the second time length is 120000ns. When the cumulative running time of the installation process of the first application in the first cycle reaches 50000ns, the running of the installation process of the first application in the first cycle is stopped, and the timing of the suppression time length is started at this time. If it is detected that the suppression time length exceeds 120000ns and the installation process of the first application is not started in the second cycle, the installation process of the first application is woken up.

[0240] S706: Keep the installation process of the first application stopped, and return to step S704 to continue judging.

[0241] That is, S706 may be continuously executed (eg, periodically executed) until the suppression time of the installation process of the first application is greater than the second time.

[0242] It should be noted that the specific implementation process and implementation order of step S701, step S702-step S703, and step S704-step S706 are not necessarily related, and the three can be implemented independently or in combination. For example, only step S701 can be executed, that is, the installation process of the first application is suppressed by binding the installation process of the first application to run on the small core of the CPU of the first electronic device; steps S702-S703 can also be executed, that is, the installation process of the first application is suppressed by controlling the maximum running time of the installation process of the first application on the CPU core of the first electronic device; steps S701-S703 can also be executed, that is, the installation process of the first application is bound to run on the small core of the CPU of the first electronic device, and the maximum running time of the installation process of the first application on the small core of the CPU of the first electronic device is controlled to suppress the first application. Suppression of the installation process; Steps S702-S706 can also be executed to suppress the installation process of the first application by controlling the maximum running time of the installation process of the first application on the CPU core of the first electronic device, and wake up the installation process of the first application when the suppression time reaches a second time; Steps S701-S706 can also be executed, namely: by binding the installation process of the first application to run on the small core of the CPU of the first electronic device, and controlling the maximum running time of the installation process of the first application on the small core of the CPU of the first electronic device, suppressing the installation process of the first application, and waking up the installation process of the first application when the suppression time reaches the second time.

[0243] For example, Figure 8 A schematic flowchart of another method 800 for controlling a process of an electronic device provided in an embodiment of the present application is shown.

[0244] like Figure 8 As shown, the method 800 includes:

[0245] S801: When it is detected that the system has an installation process of a first application, it is determined whether the installation process of the first application is in a suppressed state. If so, step S802 is executed; if not, step S803 is executed.

[0246] After the installation process of the first application is detected, S801 is periodically executed until the installation process of the first application is completed.

[0247] In some embodiments, when the package manager service (PMS) of the first electronic device receives a dexOat process notification, it determines that an installation process of the first application is detected in the system.

[0248] In some embodiments, when the installation process of the first application is bound to the CPU small core for execution, it is determined that the installation process of the first application is in a suppressed state.

[0249] In some embodiments, when the installation process speed of the first application is significantly lower than the normal installation speed, it is determined that the installation process of the first application is in a suppressed state.

[0250] S802: Determine whether it is necessary to release the suppression of the installation process of the first application. If necessary, execute step S804.

[0251] Among them, the method for determining whether it is necessary to release the suppression of the installation process of the first application is as follows: Figure 4 and Figure 5 The embodiments shown have been described in detail, and for the sake of brevity, they will not be repeated here.

[0252] S803: Determine whether the installation process of the first application needs to be suppressed. If necessary, execute step S805.

[0253] The method for determining whether to suppress the installation process of the first application is as follows: Figures 3 to 5 The embodiments shown have been described in detail, and for the sake of brevity, they will not be repeated here.

[0254] S804: Release the suppression of the installation process of the first application.

[0255] S805: Suppress the installation process of the first application.

[0256] Among them, the method for suppressing the installation process of the first application is Figure 6 and Figure 7 The illustrated embodiment has been described in detail, and for the sake of brevity, it will not be repeated here.

[0257] Optionally, in this embodiment, the installation process of the first application can be replaced by the startup process of the first application, wherein the first application is a non-system application.

[0258] In order to more clearly reflect the beneficial effects of the embodiments provided by the present application, the following is an exemplary embodiment. Fig. 9 and Fig.10 , the performance curve diagram corresponding to the method for electronic device process control provided in an embodiment of the present application is introduced.

[0259] For example, Fig. 9 The load change curve corresponding to the first application installation process before and after the electronic device process control method provided by the embodiment of the present application is used to suppress the first application installation process is shown. Fig. 9 As shown, before the installation process of the first application is suppressed, the load of the electronic device experiences sudden increases and decreases, and the load of the electronic device is generally at a high level; after the installation process of the first application is suppressed, the load level of the electronic device is relatively stable throughout the test time, and the load of the electronic device is at a low level throughout the test time.

[0260] It can be seen from this that by using the electronic device process control method provided in the embodiment of the present application to suppress the installation process of the first application, the overall load of the electronic device can be made more stable, and the suppression of sudden processes can be achieved, thereby avoiding the occurrence of application freezes and maintaining the smooth operation of the foreground application.

[0261] For example, Fig.10 The temperature change curve corresponding to the first application installation process before and after the electronic device process control method provided by the embodiment of the present application is used to suppress the first application installation process is shown. Fig.10 As shown, before the installation process of the first application is suppressed, the chip temperature of the electronic device is generally at a high level; after the installation process of the first application is suppressed, the chip temperature of the electronic device is lower than the lowest temperature before suppression, and the chip temperature of the electronic device is maintained in a reasonable range during the entire test time.

[0262] It can be seen from this that by using the electronic device process control method provided in the embodiment of the present application to suppress the installation process of the first application, the chip temperature of the electronic device can be kept within a more reasonable range, overheating of the electronic device can be avoided, and system power consumption can be reduced.

[0263] For example, Fig.11 FIG. 1 is a schematic diagram showing the functional modules of an electronic device process control device 1100 provided in an embodiment of the present application. Fig.11 As shown, the device 1100 includes:

[0264] The detection module 1110 is used to detect a first application installation event of the electronic device.

[0265] In some embodiments, the first application installation event may be, for example, an event of downloading and installing the first application through an application store of the first electronic device; it may also be an event of automatically downloading and installing a new version of the first application when the system of the first electronic device detects a new version of the first application; it may also be an event of confirming the download and installation of the first application as needed when using certain functions of the first electronic device; it may also be an event of installing the first application through an installation package; it may also be an event of installing other applications, which is not limited in the present application.

[0266] In some embodiments, when the package manager service (PMS) of the first electronic device receives a dexOat process notification, the detection module 1110 determines that a first application installation event of the electronic device is detected.

[0267] Among them, the first application installation process described in the embodiment of the present application can be understood as one or more application installation processes.

[0268] The judgment module 1120 is used to judge whether it is necessary to suppress the installation process of the first application according to the current temperature or current load of the first electronic device when the installation scenario of the first application is a non-foreground scenario.

[0269] Among them, the installation scenario of the first application is a non-foreground scenario, which means that the first application is not an application that is currently needed or waiting to be used. Specifically, it can be determined whether the current process is a foreground process or a background process according to the process of the application program. The foreground process is the process displayed on the current interface and interacts with the user, and the background process refers to an activity that is not visible to the user. For example: a user downloads a first application through the application store of the first electronic device, and the user is using other applications on the first electronic device during the download of the first application. In this case, the first application is currently a background application, and its installation scenario is a non-foreground scenario; for another example: when the background of the first electronic device detects that there is a new version of the first application that is not currently in use, it downloads and installs the new version of the first application (that is, when the first application is idle, the version is automatically updated in the background), then the new version of the first application is currently a background application, and its installation scenario is a non-foreground scenario; for another example: when the user uses a certain function of the browser, he needs to download and install the first application to continue using the current function, then the first application is currently a foreground application, and its installation scenario is a foreground scenario. Among them, the determination of whether the application is currently a foreground application or a background application (that is, the determination of whether the installation scenario of the application is a non-foreground scenario) is a conventional technology in the field and will not be repeated here.

[0270] The first application described in the embodiment of the present application is currently a background application, and can also be described as the installation process of the first application occurring in a non-foreground scenario, wherein the non-foreground scenario can be understood as a scenario where the first application is not currently needed or is about to be used.

[0271] In some embodiments, when the installation scenario of the first application is a non-foreground scenario, if the current temperature of the first electronic device is higher than a first threshold, or the current load of the first electronic device is higher than a second threshold, the judgment module 1120 determines that the installation process of the first application needs to be suppressed.

[0272] The first threshold is a temperature threshold, and the value of the first threshold can be any value between 35° C. and 50° C., for example, 40° C.

[0273] The second threshold is a load threshold, and the value of the second threshold can be any value between 30% and 50%, for example, 35%.

[0274] The current temperature of the first electronic device refers to the current chip temperature of the first electronic device; and the current load of the first electronic device refers to the current central processing unit (CPU) load of the first electronic device.

[0275] The suppression module 1130 is configured to suppress the installation process of the first application when it is determined that the installation process of the first application needs to be suppressed.

[0276] The suppression of the installation process of the first application may be to reduce the installation speed of the first application; or to reduce the installation priority of the first application; or to reduce the installation speed and installation priority of the first application. Figure 6 and Figure 7 For the sake of brevity, the relevant descriptions in the illustrated embodiments are not repeated here.

[0277] In some embodiments, the device 1100 further includes a decompression module, which is used to decompress the installation process of the first application when it is necessary to decompress the installation process of the first application.

[0278] In some embodiments, when the installation process of the first application is currently in a suppressed state, if the current temperature of the electronic device is lower than or equal to a first threshold and the current load of the electronic device is lower than or equal to a second threshold, the suppression of the installation process of the first application is released.

[0279] In some further embodiments, when the installation process of the first application is currently in a suppressed state, if the current temperature of the electronic device is lower than or equal to a third threshold and the current load of the electronic device is lower than or equal to a fourth threshold, the suppression of the installation process of the first application is released.

[0280] The third threshold is a temperature threshold, which is less than the first threshold. The third threshold can be any value between 30° C. and 50° C., for example, 37° C.

[0281] The fourth threshold is a load threshold, which is smaller than the second threshold. The value of the fourth threshold may be any value between 25% and 50%, for example, 30%.

[0282] In an embodiment of the present application, when the current temperature or current load of the electronic device reaches a certain level, the application installation process in the non-foreground scenario can be suppressed, so that the foreground and backend loads of the system are relatively balanced, and the electronic device temperature is too high or the foreground application is stuck due to the sudden high load of the non-foreground application installation process, thereby improving the user experience of the electronic device.

[0283] It should be understood that the embodiments provided in this application are illustrated using the application installation scenario as an example, but this does not limit the scenarios to which the present application scheme is applicable. The embodiments provided in this application can also be used in the startup scenarios of electronic devices, for example, they can be applied to the background associated startup scenarios of non-system applications within a certain period of time after the electronic device system is started up.

[0284] In one example, the startup items of the electronic device include a first application, a second application, a third application, and a fourth application, wherein the first application and the second application are non-system applications. Then, when the electronic device is started up, if a suppression condition is met (for an explanation of the suppression condition, see Figures 3 to 7 ), the startup of the first application and the second application is suppressed (which may be by suppressing their startup speed, etc.) to improve the system fluency of the electronic device.

[0285] For example, Fig.12 FIG. 1 shows a system framework diagram of an electronic device provided by an embodiment of the present application. Fig.12 As shown, the system framework includes an application layer, a framework layer, a system library and a kernel layer, wherein multiple applications are located in the application layer, for example: a first application, a second application, a third application, etc.; a detection module 1210 and a judgment module 1220 are located in the framework layer; a compression module 1230 and a decompression module 1240 are located in the kernel layer.

[0286] The explanation of the detection module 1210, the judgment module 1220, the compression module 1230 and the decompression module 1240 is described in Fig.11 The embodiments are described in detail, and for the sake of brevity, they will not be repeated here.

[0287] One or more of the modules or units described herein can be implemented by software, hardware or a combination of the two. When any of the above modules or units are implemented in software, the software exists in the form of computer program instructions and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor may include but is not limited to at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller (MCU), or an artificial intelligence processor and other types of computing devices that run software, each computing device may include one or more cores for executing software instructions to perform operations or processing. The processor may be built into an SoC (system on chip) or an application specific integrated circuit (ASIC), or it may be an independent semiconductor chip. In addition to the core used to execute software instructions for operations or processing in the processor, necessary hardware accelerators may be further included, such as a field programmable gate array (FPGA), a PLD (programmable logic device), or a logic circuit that implements a dedicated logic operation.

[0288] When the modules or units described in this document are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which can run the necessary software or be independent of the software to execute the above method flow.

[0289] When the modules or units described herein are implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium with a configuration capability similar to a cache that a computer can access, or a server, a data center, or other data storage device that includes one or more available media integrated with a configuration capability similar to a cache.

[0290] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0291] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0292] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0293] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0294] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0295] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0296] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A process control method for an electronic device, characterized in that: The method comprises: A first event occurring in a first electronic device is detected, where the first event is a background installation event of a first application, or the first event is a startup event of a second application, where the startup event is a startup event of the second application when the first electronic device is turned on; Acquiring a current temperature or a current load of the first electronic device; determining whether it is necessary to suppress a first process according to a current temperature or a current load of the first electronic device, where the first process is a process of the first event; When it is determined that the first process needs to be suppressed, the first process is suppressed.

2. The method according to claim 1, characterized in that The determining whether the first process needs to be suppressed according to the current temperature or current load of the first electronic device includes: When the current temperature of the first electronic device is higher than a first threshold, or the current load of the first electronic device is higher than a second threshold, it is determined that the first process needs to be suppressed.

3. The method according to claim 2, characterized in that The method further comprises: When the current temperature of the first electronic device is lower than a third threshold and the current load of the first electronic device is lower than a fourth threshold, the suppression of the first process is released, wherein the third threshold is less than or equal to the first threshold and the fourth threshold is less than or equal to the second threshold.

4. The method according to any one of claims 1 to 3, characterized in that The suppressing the first process includes: The first process is bound to a small core of a central processing unit (CPU) of the first electronic device for execution.

5. The method according to any one of claims 1 to 4, characterized in that The suppressing the first process further includes: Detecting whether the running time of the first process in the i-th cycle of the first electronic device is greater than a first time length; If the running time in the i-th period is greater than the first time length, the running of the first process in the i-th period is stopped, where i is a positive integer, i=1, 2, 3, ...

6. The method according to claim 5, characterized in that The suppressing the first process further includes: When the first process enters the (i+1)th cycle of the first electronic device, starting the first process to run in the (i+1)th cycle; Detecting whether the running time of the first process in the (i+1)th cycle of the first electronic device is greater than a first time length; If the running time in the (i+1)th cycle is greater than the first time length, the running of the first process in the (i+1)th cycle is stopped.

7. The method according to claim 5 or 6, characterized in that: The duration of the i-th cycle is the same as the duration of an operation cycle of the CPU of the first electronic device.

8. The method according to any one of claims 5 to 7, characterized in that After stopping the execution of the first process in the i-th cycle, the method further includes: Obtaining a duration for which the first electronic device suppresses the first process; When the suppression time reaches a second time, the first process is awakened.

9. The method according to claim 8, characterized in that The second duration is greater than or equal to the duration of the i-th cycle.

10. The method according to any one of claims 1 to 9, characterized in that The second application is a third-party application.

11. An electronic device, characterized in that: The electronic device comprises: a detection module, configured to detect a first event occurring in the electronic device, wherein the first event is a background installation event of a first application, or the first event is a startup event of a second application, wherein the startup event is a startup event of the second application when the electronic device is turned on; An acquisition module, used to acquire the current temperature or current load of the electronic device; a judging module, configured to judge whether it is necessary to suppress a first process according to a current temperature or a current load of the electronic device, the first process being a process of the first event; The suppression module is used to suppress the first process when it is determined that the first process needs to be suppressed.

12. The electronic device according to claim 11, characterized in that: The judgment module is specifically used for: When the current temperature of the electronic device is higher than a first threshold, or the current load of the electronic device is higher than a second threshold, it is determined that the first process needs to be suppressed.

13. The electronic device according to claim 12, characterized in that: The electronic device further comprises: A decompression module is used to release the suppression of the first process when the current temperature of the electronic device is lower than a third threshold and the current load of the electronic device is lower than a fourth threshold, wherein the third threshold is less than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold.

14. The electronic device according to any one of claims 11 to 13, characterized in that: The pressing module is specifically used for: The first process is bound to a small core of a central processing unit (CPU) of the electronic device for execution.

15. The electronic device according to any one of claims 11 to 14, characterized in that: The detection module is also used for: Detecting whether the running time of the first process in the i-th cycle of the electronic device is greater than a first time length; The compression module is also specifically used for: When the running time of the first process in the i-th cycle of the electronic device is greater than the first time length, the running of the first process in the i-th cycle is stopped, where i is a positive integer, i=1, 2, 3, ...

16. The electronic device according to claim 15, characterized in that: The electronic device further comprises: a starting module, configured to start the operation of the first process in the (i+1)th cycle when the first process enters the (i+1)th cycle of the electronic device; The detection module is also used for: Detecting whether the running time of the first process in the (i+1)th cycle of the electronic device is greater than a first time length; The compression module is also specifically used for: If the running time in the (i+1)th cycle is greater than the first time length, the running of the first process in the (i+1)th cycle is stopped.

17. The electronic device according to claim 15 or 16, characterized in that: The duration of the i-th cycle is the same as the duration of an operation cycle of the CPU of the electronic device.

18. The electronic device according to any one of claims 15 to 17, characterized in that: The acquisition module is also used for: After the suppression module stops the operation of the first process in the i-th operation cycle, obtaining the suppression time of the first process by the electronic device; The compression module is also specifically used for: When the suppression time reaches a second time, the first process is awakened.

19. The electronic device according to claim 18, characterized in that: The second duration is greater than or equal to the duration of the i-th cycle.

20. The electronic device according to any one of claims 11 to 19, characterized in that: The second application is a third-party application.

21. An electronic device, characterized in that: include: one or more processors; one or more memories; and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the electronic device to perform the method as described in any one of claims 1 to 10.

22. A computer-readable storage medium, characterized in that: The storage medium stores a program or an instruction, and when the program or the instruction is executed, the method according to any one of claims 1 to 10 is implemented.

23. A chip, characterized in that: include: one or more processors; One or more memories, the one or more processors are coupled to the one or more memories, and are configured to read and execute instructions in the one or more memories to perform the method according to any one of claims 1 to 10.