Application startup method and electronic device
By detecting application behavior and adjusting hardware configuration items of electronic devices, the problem of slow application startup speed is solved, achieving faster application startup speed and a better user experience.
Patent Information
- Application Number
- CN202211317906.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-26
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-10-26
AI Technical Summary
In electronic devices, the startup and execution time of each service module during the application startup process is long, resulting in slow application startup speed and affecting the user experience.
Identify startup scenarios by detecting application behavioral data, and adjust the configuration items of electronic devices, such as the power limit (PL) and energy efficiency ratio (EPP) of the CPU, based on the identified startup scenarios to provide higher performance parameters and more system resources to increase application startup speed.
By adjusting hardware parameters, such as binding higher-performance processors and adjusting PL/EPP values, application startup speed is significantly improved and user experience is optimized.
Smart Images

Figure CN117971448B
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to an application startup method and an electronic device. Background Art
[0002] When an electronic device starts an application, each service module in the application will start and perform operations such as data initialization, reading and writing databases, and loading data resources. The startup and execution time of these service modules are part of the application startup time.
[0003] Therefore, during the application startup process, how to speed up the application startup speed is an urgent problem to be solved. Summary of the invention
[0004] The present application provides an application startup method and an electronic device, in which the electronic device detects the behavior of the application to identify the startup scenario, and when the startup scenario is identified, the electronic device updates the configuration items of the electronic device to provide higher performance parameters and more system resources for the startup scenario, thereby improving the application startup rate.
[0005] In a first aspect, the present application provides an application startup method, which is applied to an electronic device, and the method includes: the electronic device displays a first interface, the power limit PL of the electronic device is a first value, the energy efficiency ratio EPP of the electronic device is a second value, and the electronic device uses a first processor to display the first interface; in response to a first operation on the first interface, the electronic device starts to start a first application; the electronic device displays a second interface, and the second interface includes a window of the main interface of the first application. Among them, after starting to launch the first application, the electronic device makes at least one of the following three adjustments: after starting to launch the first application, the electronic device adjusts the PL to a third value, and after displaying the second interface, the electronic device adjusts the PL to a fourth value, the third value is greater than the first value, and the third value is greater than the fourth value; after starting to launch the first application, the electronic device adjusts the EPP to a fifth value, and after displaying the second interface, the electronic device adjusts the EPP to a sixth value, the fifth value is less than the second value, and the fifth value is less than the sixth value; after starting to launch the first application, the electronic device uses the second processor to launch the first application, and after displaying the second interface, uses the first processor to run the first application, and the performance of the second processor is higher than that of the first processor.
[0006] After implementing the method provided in the first aspect, the electronic device adjusts the configuration items of the electronic device from the hardware parameter level during the process of starting the application, for example, by increasing the PL value or lowering the EPP value of a higher-performance processor bound to the electronic device, wherein a higher-performance processor, a higher PL value or a lower EPP value can make the electronic device have higher operating performance, provide more system resources for application startup, and thus increase the speed of application startup.
[0007] In combination with the method provided in the first aspect, after the electronic device starts to launch the first application and before the electronic device displays the second interface, the method also includes: the electronic device displays a third interface, and the third interface includes a prompt window of the first application.
[0008] In this way, during the process of the electronic device starting an application, the electronic device can also display a prompt window of the application to prompt the user that the first application is being started.
[0009] In combination with the method provided in the first aspect, if the electronic device adjusts the PL, when the electronic device is powered on, the PL adjusted when the electronic device starts the first application process is greater than the PL adjusted when the electronic device starts the first application process when the electronic device is not powered on; if the electronic device adjusts the PL, when the electronic device is powered on, the EPP adjusted when the electronic device starts the first application process is less than the EPP adjusted when the electronic device starts the first application process when the electronic device is not powered on.
[0010] In this way, when the electronic device is powered on, the adjusted PL value during the process of starting the first application is greater than the adjusted PL value during the process of starting the first application when the electronic device is not powered on; when the electronic device is powered on, the adjusted EPP value during the process of starting the first application is less than the adjusted EPP value during the process of starting the first application when the electronic device is not powered on. This further ensures that, when the power supply is sufficient, the first application is started with higher performance, and further improves the speed of starting the first application by the electronic device.
[0011] In combination with the method provided in the first aspect, after the electronic device starts to launch the first application, and before the electronic device adjusts the PL to a third value and / or adjusts the EPP to a fifth value and / or uses the second processor to launch the first application, the method also includes: the electronic device detects a first behavior of the first application, and determines that the first application is in the startup process based on the first behavior, and the first behavior includes any one of the following: creating a process, creating a prompt window.
[0012] In this way, in response to the different behavioral characteristics of different applications during the startup process, the electronic device can accurately detect that an application is starting by detecting the behaviors of multiple applications, such as creating processes and creating prompt windows, thereby identifying the startup scenario and timely adjusting the status value of the configuration item of the electronic device to provide application startup speed.
[0013] In combination with the method provided in the first aspect, after the electronic device displays the second interface, and before the electronic device adjusts the PL to the fourth value and / or adjusts the EPP to the sixth value and / or uses the first processor to start the first application, the method also includes: the electronic device detects a second behavior of the first application, and determines that the first application has completed startup based on the second behavior, and the second behavior includes any one of the following: ending the process, creating a window of the first application main interface, destroying the window of the first application main interface, and hiding the window of the first application main interface.
[0014] In this way, with respect to the multiple behavioral characteristics that an application has after completion of startup, the electronic device can accurately detect that the application has completed startup by detecting any one of the multiple behaviors, thereby identifying the end of the startup scenario, and timely adjusting the status value of the configuration item of the electronic device to reduce the power consumption of the electronic device in non-startup scenarios and improve the battery life of the electronic device.
[0015] In combination with the method provided in the first aspect, after the electronic device starts to launch the first application, and before the electronic device adjusts the PL to a third value and / or adjusts the EPP to a fifth value and / or uses the second processor to launch the first application, the method also includes: the electronic device determines that the first application belongs to a startup scene recognition object, and the startup scene recognition object includes one or more applications preset by the electronic device.
[0016] In this way, when the electronic device indiscriminately detects the behavior of all applications, considering that the startup process of some small applications takes a very short time, the electronic device does not need to include such applications in the identification objects of the startup scenarios, and does not need to provide better performance parameters or system resources for the startup process of such small applications, thus avoiding wasting power consumption and resources of the electronic device.
[0017] In combination with the method provided in the first aspect, after the electronic device starts to start the first application, and before the electronic device adjusts the PL to the third value and / or adjusts the EPP to the fifth value and / or uses the second processor to start the first application, the method also includes: the startup scene container of the electronic device is in a first state, and the first state indicates that the number of applications in the startup scene container is 0; the electronic device adds the first application to the startup scene container; the electronic device detects that the state of the startup scene container switches from the first state to the second state, and the second state indicates that the number of applications in the startup scene container is N, and N≥1.
[0018] In this way, when the number of applications in the startup process switches from 0 to non-0, the electronic device can be triggered to determine the adjustment value corresponding to the configuration item. Specifically, when the electronic device detects that the first application is being started, if there was no application in the startup scene container before, it means that the electronic device has determined that only the first application is being started, so the electronic device needs to adjust the value corresponding to the configuration item to provide higher performance for application startup; if there was an application in the startup scene container before, it means that the electronic device has previously determined that other applications are being started, so the electronic device has adjusted the value corresponding to the configuration item to provide higher performance for application startup. At this time, the electronic device does not need to recalculate the adjustment value corresponding to the configuration item, and can continue to use the adjustment value corresponding to the configuration item determined last time.
[0019] In combination with the method provided in the first aspect, after the electronic device displays the second interface and before the electronic device adjusts the PL to a fourth value and / or adjusts the EPP to a sixth value and / or uses the first processor to start the first application, the method also includes: the startup scene container of the electronic device is in a second state, and the second state indicates that the number of applications in the startup scene container is N, N≥1; the electronic device deletes the first application from the startup scene container; the electronic device detects that the state of the startup scene container switches from the second state to the first state, and the first state indicates that the number of applications in the startup scene container is 0.
[0020] In this way, when the number of applications in the startup process switches from non-zero to zero, the electronic device can be triggered to determine the adjustment value corresponding to the configuration item. Specifically, after the electronic device detects that the first application has completed startup and deletes the first application from the startup container, if there are no other applications in the startup scene container, it means that no application is in the startup process at this time, so the electronic device needs to adjust the value corresponding to the configuration item to reduce the power consumption and resource waste of the electronic device. If there are other applications in the startup scene container, it means that there are other applications in the startup process at this time, so the electronic device does not need to adjust the value corresponding to the configuration item to avoid reducing the startup speed of other applications.
[0021] In combination with the method provided in the first aspect, the electronic device stores a configuration strategy, which includes: the correspondence between the state of the startup scene container and the PL, the correspondence between the state of the startup scene container and the EPP, and the correspondence between the state of the startup scene container and the processor; the configuration strategy is used by the electronic device to determine the adjusted PL value and / or EPP, and / or determine the processor to be used when detecting that the state of the startup scene container is switched.
[0022] In this way, the electronic device can determine the adjustment value of the corresponding configuration item according to the state of the startup scene container when the state of the startup scene container of the electronic device switches according to the preset configuration strategy, so as to improve the performance of the electronic device in the startup scene and accelerate the startup of the application.
[0023] In combination with the method provided in the first aspect, when the electronic device is in power saving mode, the PL adjusted during the process of the electronic device starting the first application is greater than the PL adjusted during the process of the electronic device starting the first application when the electronic device is not in power saving mode; or, when the electronic device is in power saving mode, the EPP adjusted during the process of the electronic device starting the first application is less than the EPP adjusted during the process of the electronic device starting the first application when the electronic device is not in power saving mode.
[0024] In this way, during the application startup process, the electronic device will also consider the electronic device working mode to determine the value corresponding to the adjusted configuration item, which can not only improve the application startup speed, but also ensure that the electronic device works in power saving mode to reduce the power consumption of the electronic device.
[0025] In combination with the method provided in the first aspect, when the load of the electronic device is the seventh value, the PL adjusted when the electronic device starts the first application process is greater than the PL adjusted when the load of the electronic device is the eighth value; the seventh value is less than the eighth value or, when the load of the electronic device is the seventh value, the EPP adjusted when the electronic device starts the first application process is less than the EPP adjusted when the load of the electronic device is the eighth value.
[0026] In this way, during the application startup process, the electronic device will also consider the load factor of the electronic device to determine the value corresponding to the adjusted configuration item, which can not only improve the application startup speed, but also ensure that the electronic device adjusts the configuration item to a more suitable state value under different loads, thereby achieving the purpose of accurately adjusting the configuration item.
[0027] In combination with the method provided in the first aspect, before the electronic device adjusts the PL to the third value / adjusts the EPP to the fifth value / uses the second processor to start the first application, the method also includes: the electronic device runs a second application.
[0028] In this way, the electronic device can realize the purpose of identifying the startup scene and adjusting the state value corresponding to the electronic device configuration item by running the second application such as PC Manager.
[0029] In a second aspect, the present application provides an electronic device, comprising a screen, a memory, and one or more processors; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute a method as described in any one of the first aspects.
[0030] In a third aspect, the present application provides a chip, which is applied to an electronic device, and the chip includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes any method described in the first aspect.
[0031] In a fourth aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute a method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of the hardware architecture of an electronic device provided in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of a system architecture of an electronic device provided in an embodiment of the present application;
[0034] Figure 3 A schematic diagram of a method for starting an application provided in an embodiment of the present application;
[0035] Figure 4A A schematic diagram of a desktop of an electronic device provided in an embodiment of the present application;
[0036] Figure 4B A schematic diagram of an operation interface for triggering application startup provided in an embodiment of the present application;
[0037] Figure 4C-4E A schematic diagram of the relevant interfaces before and after the first office software is started provided in an embodiment of the present application;
[0038] Figure 4F This is a schematic diagram of the relevant interfaces before and after the second office software is started provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. 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 the text is only a description of the association relationship of the 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.
[0040] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting 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, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0041] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0042] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0043] With the rapid development of terminal technology and the improvement of user needs, users usually install multiple applications on electronic devices to meet their various needs. When a user opens an application, if the application is not currently running in the background, the electronic device will use a cold start method to open the application. Since the various service modules in the application need to perform data initialization, read and write databases, and load data resources during the process of starting the application on the electronic device, the electronic device needs a certain amount of startup time before the interface of the application is successfully opened is displayed on the screen. This phenomenon of slow application startup speed will affect the user experience.
[0044] In order to solve the above problems, the present application provides an application startup method and an electronic device, in which the electronic device detects the behavior data of the application to identify the startup scenario, and when the startup scenario is identified, it updates the configuration items of the electronic device to provide higher performance parameters and more system resources for the startup scenario, thereby improving the application startup rate.
[0045] In an embodiment of the present application, the behavior data of an application refers to data used to characterize the startup status of the application (starting, startup completed), and the behavior data includes but is not limited to: data on application creation processes, end processes, and data on application creation windows, destruction windows, hiding windows, etc.
[0046] In the embodiment of the present application, the configuration items of the electronic device include any one or more of the following: the power limit (PL) of the central processing unit (CPU), the enhanced performance profile (EPP), the running big and small cores, etc. When the above configuration items are different values or states, the performance of the electronic device is different, and the resources provided for application startup are different, which in turn has different effects on the application startup speed.
[0047] Next, we will mainly introduce the specific definitions and functions of the above configuration items.
[0048] (1) PL includes multiple levels. As the level increases, the larger the PL value, the smaller the restriction on CPU power. Exemplarily, PL can include four levels, namely PL1, PL2, PL3, and PL4, where PL1 refers to the thermal design power (TDP), which is also the default CPU power consumption limit. In the case where PL includes four levels, PL1 is usually defined as the default power consumption of the CPU because when the power consumption of the CPU is within the PL1 range, its operation is unrestricted. Starting from PL2 means that the CPU power consumption exceeds the TDP range. At this time, the CPU is generally running at full load. According to Intel's specifications, the CPU can maintain a maximum continuous running time of 100 seconds at this power consumption, and then the CPU will be limited to the operating frequency until its power consumption returns to within the PL1 range. PL3 and PL4 mean higher power consumption states, which can only maintain a running time of about 10ms, so they are disabled by default, and not all platforms can be manually unblocked. Therefore, in the embodiment of the present application, adjusting the PL value mainly improves the performance of the electronic device by adjusting the value of PL1.
[0049] (2) Energy performance preference (EPP) is used to reflect the CPU scheduling tendency. The smaller the EPP value, the higher the processor performance. The larger the EPP value, the lower the processor power consumption. For example, taking the EPP value range of 0 to 255 as an example, when EPP is 0, the CPU performance is the best. When the EPP value gradually increases from 0, the EPP performance will gradually decrease but will save power consumption. When EPP is 255, the CPU power consumption reaches the lowest.
[0050] (3) Big and small cores refer to when an electronic device is configured with a multi-core processor, the multi-core processor integrates at least two core processors, that is, a large core and a small core, and the performance and power consumption of the large core are higher than those of the small core. When the running processor is bound to the large core, the running speed of the electronic device is faster than when it is bound to the small core. In the embodiment of the present application, the large core can also be called the second processor, and the small core can also be called the first processor.
[0051] It can be seen that after implementing the application startup method provided by this application, the following technical effects can be achieved:
[0052] The electronic device can accurately identify the startup scene where the application is being started based on the behavior data of the application detected in real time, and determine the configuration items corresponding to the startup scene based on the configuration policy corresponding to the startup scene, and adjust the configuration items of the electronic device from the hardware parameter level of the electronic device, for example, by adjusting the CPU bound to the electronic device to a large core / small core, the PL value of the CPU, or any one or more of the EPP, so that the electronic device uses a large-core processor in the startup scene, sets the PL value of the large-core processor to a higher value, or sets the EPP value of the large-core processor to a lower value. Among them, a large-core processor, a higher PL value, or a lower EPP value can provide more system resources for application startup and increase the application startup speed.
[0053] Next, the form and software and hardware architecture of the electronic device involved in this application are introduced.
[0054] In the embodiment of the present application, the electronic device may be equipped with Or terminal devices of other operating systems, such as notebook computers, tablet computers, desktop computers, laptop computers, handheld computers, ultra-mobile personal computers (ultra-mobile personal computers, UMPC), netbooks, mobile phones, personal digital assistants (personal digital assistants, PDA), augmented reality (augmented reality, AR) devices, virtual reality (virtual reality, VR) devices, artificial intelligence (artificial intelligence, AI) devices, wearable devices, vehicle-mounted devices, smart home devices and / or smart city devices, etc., the embodiments of the present application are not limited to this.
[0055] Figure 1 A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0056] like Figure 1As shown, 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, 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, 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 touch sensor 180B, or may also include an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a gyroscope sensor, an ambient light sensor, a bone conduction sensor, etc., which are not shown.
[0057] It is to be understood that the structure illustrated in the embodiment of the present invention 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 separate 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.
[0058] 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 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.
[0059] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0060] 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.
[0061] In an embodiment of the present application, the processor 110 can receive operation information of the user input acting on the application through the sensor module 180, and control the application to execute the startup process according to the operation information, such as controlling the application to create a process, or also including creating and destroying windows, etc. During the application startup process, the processor 110 can also detect the behavior data of the application (such as creating a process, ending a process, or also including data of creating windows, destroying windows, hiding windows, etc.), and determine whether the electronic device is in the startup scene according to the detected data. If so, the corresponding module of the electronic device 100 is controlled to adjust the configuration items, so that the electronic device provides better performance parameters and more system resources for the startup scene, thereby improving the speed of application startup.
[0062] Among them, the specific implementation method of detecting the startup scenario and adjusting the configuration items can be referred to the detailed description of the method embodiment below, which will not be repeated here.
[0063] 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, an external memory interface 120, and / or a universal serial bus (USB) interface, etc.
[0064] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0065] The electronic device 100 may further include an internal memory 121 , which may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0066] The random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc. The random access memory may be directly read and written by the processor 110, and may be used to store executable programs (such as machine instructions) of an operating system or other running programs, and may also be used to store user and application data, etc.
[0067] Non-volatile memory can include disk storage devices and flash memory. Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle, single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the potential level of the storage cell, and universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0068] In the embodiment of the present application, the external non-volatile memory connected to the external memory interface 120 and the non-volatile memory in the internal memory 121 can also be generally referred to as the external memory of the electronic device. These non-volatile memories can be used to store executable programs, user and application data, etc. Before the electronic device runs an application, that is, when the electronic device starts the application after receiving an operation for opening the application, the application needs to perform data initialization, read and write databases, and load data resources, that is, the application needs to load the executable programs stored in the non-volatile memory, the user and application data into the random access memory in advance for the processor 110 to read and write directly.
[0069] 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 a mouse, a keyboard, or an AR device.
[0070] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention 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.
[0071] 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.
[0072] 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 display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to detect 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.
[0073] The wireless communication function of the electronic device 100 can be implemented through an antenna, a wireless communication module 160, a modem processor, a baseband processor, and the like.
[0074] The antenna is used to transmit and receive electromagnetic wave signals. Each antenna in the 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 the antenna. 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.
[0075] 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 an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0076] In some embodiments, the antenna of the electronic device 100 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, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0077] 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.
[0078] 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.
[0079] In an embodiment of the present application, display screen 194 may be used to display a window during the application startup process to prompt that the application is being started / loaded, as well as an interface provided by the application after the application is successfully started, etc. For details, please refer to the relevant description of the UI embodiment below, which will not be repeated here.
[0080] 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.
[0081] The touch sensor 180B is also called a "touch control device". The touch sensor 180B can be arranged on the display screen 194, and the touch sensor 180B and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180B 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 180B can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0082] In other embodiments of the present application, the above-mentioned sensors, such as the pressure sensor 180A and the touch sensor 180B, can be set in the display screen 194 of the electronic device 100, or can also be set in the touch panel area at the keyboard of the electronic device 100 to receive the operation input by the user. Specifically, the pressure sensor 180A can detect the operation of the user clicking the touch panel with a finger or a stylus, and then the pressure sensor 180A can generate corresponding pressure information according to the operation input by the user, and send the pressure information to the processor 110. The processor 110 can obtain the coordinate information of the user acting on the display screen according to the pressure information, and finally perform the corresponding operation according to the coordinate information.
[0083] 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. Taking the system as an example, the software structure of the electronic device 100 is exemplified.
[0084] Figure 2 Schematic diagram of the system architecture of the electronic device 100 according to an embodiment of the present application.
[0085] The layered architecture divides the hardware and software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The system is divided into three layers, from top to bottom: application layer, operating system layer and hardware layer.
[0086] The application layer may include a series of application packages.
[0087] like Figure 2 As shown, the application package may include a computer manager, an execution scheduling module, office software (such as a first office software, a second office software, etc.), games, graphics drawing software, a calendar, WLAN, Bluetooth and other applications.
[0088] Computer manager refers to an application for software management installed in an electronic device. Usually, computer manager has functions such as system acceleration, one-click cleaning, real-time protection, virus detection, etc. However, in the embodiment of the present application, compared with the traditional computer manager, the upgraded computer manager can also integrate a scene recognition module and a configuration policy module, etc., that is, the above two modules can run in the computer manager in the form of a plug-in.
[0089] Among them, the configuration policy module can send a request for querying the scene to the scene recognition module, and receive the scene query results reported by the scene recognition module. The scene query results include but are not limited to: the electronic device is in a startup scene, the specific type of the startup scene, etc. Afterwards, the configuration policy module can determine the corresponding configuration policy according to the specific type of the startup scene, and send the configuration policy to the execution scheduling module.
[0090] Among them, after receiving the request for querying the scene sent by the configuration policy module, the scene recognition module can determine whether there is an application started in the current electronic device based on the behavior data of the application detected in the electronic device (such as the application creation process, and the data of the application creation window, destruction window, hiding window, etc.), and then identify the startup scene, and report the result of the identified startup scene to the configuration policy module.
[0091] In other words, the upgraded PC Manager has added the function of boot scene recognition and the function of determining the corresponding performance configuration strategy according to the boot scene. It is understandable that the specific implementation of the above two functions can be realized in the form of an independent application, service component, etc. in addition to adding the corresponding scene recognition module and configuration strategy module in PC Manager.
[0092] The execution scheduling module refers to a service installed in an electronic device. The scene interaction submodule in the service can be used to receive configuration items sent by the configuration strategy module and return the receiving results to the configuration strategy module. In addition, the received configuration items are sent to the scheduling executor submodule, and then the scheduling executor submodule schedules the corresponding hardware to modify the configuration according to the corresponding configuration items and run according to the modified configuration, thereby improving better performance and more system resources for the current startup scenario.
[0093] The operating system layer may include device drivers, and file systems / storage managers, executive bodies, and hardware abstraction layers, etc., which are not shown. Among them, there are three basic types of device drivers: plug-and-play drivers (i.e., WDM drivers), kernel extension drivers (non-plug-and-play drivers), and file system drivers. Device drivers, for example, may include but are not limited to: HNOS2EC drivers, OS2SOC drivers, display drivers, audio drivers, or sensor drivers, etc. These drivers can drive the underlying hardware modules to perform corresponding tasks. For example, the HNOS2EC driver can be used to detect the behavior of the application, including the behavior of the application creating a process, ending a process, creating a window, destroying a window, and hiding a window, etc., and report the detected behavior data to the scene recognition module in the application layer; for another example, the OS2SOC driver can be used to receive configuration items including PL and / or EPP sent by the execution scheduling module in the application layer, and control the AMD PMF in the hardware layer to modify the values of configuration parameters such as PL and EPP according to the configuration items; for another example, the display driver can control the display screen 194 of the electronic device to light up and display the corresponding user interface.
[0094] In the embodiments of the present application, the names of the above-mentioned drivers are only examples, and their functions have been recorded in the specification. The present application does not limit the names of the above-mentioned drivers.
[0095] The hardware layer includes but is not limited to: display screen, processor, memory, I / O port. Wherein, when the processor is a multi-core processor, the multi-core processor integrates at least two core processors. The two core processors can be provided by different platforms or by the same platform. When the two processors are provided by different platforms, the platforms include but are not limited to Advanced Micro Devices (AMD) platform and Intel platform. Wherein, for the processor corresponding to the AMD platform, the processor also includes an AMD PMF module, and for the processor corresponding to the Intel platform, the processor also includes Intel DTT.
[0096] Among them, multiple processors can be used to receive information indicating the bound big core / small core directly sent by the execution scheduling module of the application layer to determine which processor starts working.
[0097] Among them, AMD PMF can be used to receive configuration items such as PL, EPP, etc. initiated by the driver layer OS2SOC driver, and modify the values of PL and EPP according to the configuration items, wherein the form of the configuration items received by AMD PMF can be directly the specific values of PL and EPP, for example.
[0098] Among them, Intel DTT can be directly used to receive the configuration items corresponding to the startup scenarios sent by the execution scheduling module of the application layer, and then Intel DTT modifies the PL and EPP values of the processor according to the configuration items. Among them, the configuration items received by Intel DTT can be in the form of IDs for indicating PL and EPP parameter values, and Intel DTT pre-stores specific PL and EPP parameter values corresponding to different IDs.
[0099] In the embodiments of the present application, the names of the above-mentioned hardware are only examples, and their functions have been recorded in the specification. The present application does not limit the names of the above-mentioned drivers.
[0100] Based on the software and hardware architecture of the electronic device involved in this application described above, Figure 3 The method flow shown is used to introduce in detail the application startup method provided by this application.
[0101] like Figure 3 As shown, the application startup method provided by the present application includes the following steps:
[0102] S310, the electronic device detects the behavior of the first application.
[0103] The electronic device may continuously detect the behavior of the first application, for example, detecting the behavior of the first application at a certain period. Detecting the behavior of the first application may include: obtaining behavior data of the first application. In addition, in addition to detecting the behavior of the first application, the electronic device may also detect the behavior of more other applications.
[0104] In a specific implementation, the scene recognition module in the computer manager installed in the electronic device can obtain the behavior data of the first application detected by the HNOS2EC driver in the driver layer through a system probe software development kit (SDK) (such as a process detection probe, a window detection probe, etc.).
[0105] In the embodiment of the present application, the behavior of the application includes but is not limited to creating a process, ending a process, creating a window, destroying a window, hiding a window, etc. The electronic device can detect different application behaviors at different time points. For example, after the electronic device receives an operation to start the first application, the electronic device starts to start the first application (for example, the electronic device displays Figure 4B After that, the behavior of the first application creating a process will be detected; for example, during the startup of the electronic device, if the electronic device displays a window prompting that it is starting and loading (for example, the electronic device displays Figure 4C-4D When the electronic device detects the creation of the prompt window, the electronic device will detect the creation of the prompt window; for example, after the electronic device is started, when the electronic device displays the interface of the first application (for example, the electronic device displays Figure 4E For example, when the electronic device switches the first application from the foreground to the background, the electronic device will also detect the behavior of hiding the window of the application main interface; for example, when the electronic device stops running and stops starting the first application, the electronic device will also detect the behavior of ending the process. It can be seen that the electronic device detects the behavior of the application continuously, that is, the electronic device continuously detects the behavior of the application during the subsequent S320-S363 process.
[0106] Among them, a process refers to an instance of a running program. The difference between a process and a program is that a program is a series of static instructions, while a process is a container that contains a series of resources used by threads running on this program instance. When the executable program on the external memory is loaded into the memory for execution, the program becomes a "process". It can be seen that before a static application is run, the application must be started first, that is, a process must be created, and the created process will perform the corresponding task.
[0107] Among them, windows include multiple types, such as but not limited to: prompt windows, application main interface windows. The prompt window refers to the prompt window displayed during the startup process of the application to prompt that the application is starting and loading; the application main interface window refers to the window containing the content of the application main interface displayed after the application is started. In an embodiment of the present application, some applications only include small applications such as calendar, Bluetooth, and second office software that do not display prompt windows during the startup process; while other applications will display prompt windows during the startup process, such as large applications such as first office software, graphics drawing software, and games. However, the above two types of applications usually display the application main interface window after the startup is completed.
[0108] In the embodiment of the present application, the condition for triggering the electronic device to continuously detect the behavior of the application may be that the electronic device detects a user operation, or that the electronic device continuously detects the behavior of the application by default after being turned on. The user operation that triggers the electronic device to continuously detect the behavior of the application may be, for example, an operation to turn on the startup scene recognition function provided by the computer manager.
[0109] S320, the electronic device starts to launch the first application.
[0110] Specifically, after the electronic device detects the first operation that triggers the start of the first application, it starts to start the first application, or the electronic device can automatically start the first application. Optionally, before the electronic device starts the first application, the configuration item of the electronic device is a first state value.
[0111] The above configuration items may include any one or more of the following: whether the core where the working CPU of the electronic device is located is a small core / large core, the PL value of the CPU of the electronic device being operated, and the EPP value of the CPU of the electronic device being operated. The configuration item in the first state value may be, for example: PL is the first value, and / or EPP is the third value, and / or the flag of the working processor is 0, wherein the flag of the working processor is 0, indicating that the processor in the electronic device being operated is the first processor (also called a small core).
[0112] Among them, the method for determining the first state value may include the following:
[0113] The PL value or EPP value in the first state value can be a default fixed value of the electronic device, and the processor works in the small core / large core by default. The default PL fixed value can specifically be the average power of the processor obtained by the developer through multiple tests of the electronic device in most common operating scenarios, and a limit power greater than the average power is defined, so as to ensure that the electronic device has sufficient performance to support the operation of the electronic device in most operating scenarios. Exemplarily, the default PL fixed value (also known as the first value) is 20. Similarly, the default EPP fixed value can specifically be the average energy efficiency ratio of the processor obtained by the developer through multiple tests of the electronic device in most common operating scenarios, and a value less than the average energy efficiency ratio is defined, so as to ensure that the electronic device has sufficient performance to support the operation of the electronic device in most operating scenarios. Exemplarily, the default EPP fixed value (also known as the second value) is 150.
[0114] Alternatively, the PL value or EPP value of the first state value can be determined by the electronic device according to the current CPU load. Different loads correspond to different PL values and EPP values. When the load is larger, the corresponding PL value (also called the first value) is larger, and the EPP value (also called the second value) is smaller. For example, when the CPU occupancy rate is used to characterize the load size, when the CPU occupancy rate is 0-20%, the first value of PL is 9, and the second value of EPP is 255; when the CPU occupancy rate is 20%-50%, the first value of PL is 20, and the second value of EPP is 150; when the CPU occupancy rate is 50%-80%, the first value of PL is 25, and the second value of EPP is 50; when the CPU occupancy rate is 80%-100%, the first value of PL is 35, and the second value of EPP is 1. The embodiment of the present application does not limit the above-mentioned occupancy division method and the corresponding specific values of PL and EPP.
[0115] Alternatively, the PL value or EPP value of the first state value may be a configuration item determined by the electronic device according to the current operating scenario. Different operating scenarios correspond to different PL values and EPP values. When the operating scenario is a large-scale scene such as office or game, the corresponding PL value (also known as the first value) is larger, the EPP value (also known as the second value) is smaller, and the processor is bound to a small core; when the operating scenario is a large-scale scene such as non-office or non-game, the corresponding PL value (also known as the first value) is smaller, the EPP value (also known as the second value) is larger, and the processor is bound to a large core.
[0116] For details about the operation received by the electronic device to trigger the start of the first application, please refer to Figure 4A-4B , Figure 4A-4B A schematic diagram of an operation interface for triggering an electronic device to start a first application is exemplarily shown.
[0117] refer to Figure 4A , Figure 4A A desktop schematic diagram of an electronic device is exemplarily shown.
[0118] like Figure 4A As shown, the desktop of the electronic device includes a cursor 411, a taskbar 412, and one or more application icons, including but not limited to a first office software icon 413 and a second office software icon 414. In this embodiment, the first office software and the second office software can be collectively referred to as a first application.
[0119] Among them, cursor 411 is an optional item. When the electronic device is a desktop computer or a notebook, the electronic device can display cursor 411. The display form of the cursor can be an icon, an image, etc. When the cursor is on different pages displayed on the display screen of the electronic device, or at different positions on the same page, the icon and image corresponding to the cursor can be different. For example, when the cursor is on the desktop, the icon corresponding to the cursor can be an arrow or a hand icon, and when the cursor is in the search bar 412B, the icon corresponding to the cursor can be a vertical line. When the cursor is in the state of dragging a file, the corresponding image of the cursor may be a thumbnail of the file. In an embodiment of the present application, the position of the cursor in the display screen can be moved according to the movement of an input body used in conjunction with the electronic device, such as a finger, a mouse, a handle, a glove, or other device.
[0120] The taskbar 412 is a small long column located at the bottom of the desktop of the electronic device 100, mainly including: a start menu 412A, a search bar 412B, a task view control 412C, an application area 412D and a tray area 412E. The start menu 412A can provide users with most installed applications, as well as services such as startup, shutdown and restart; the search bar 412B provides users with quick search services; the task view control 412C can provide users with browsing services for recently executed tasks; the application area 412D can display the icons of applications that are executing tasks in the electronic device 100 (if this area is empty, it means that there is no application that is currently executing tasks in the electronic device); and the tray area 412E uses various small icons to vividly display important information about the computer's hardware and software, such as time information, network status, etc.
[0121] Among them, the application icon is an icon of a system application or a third-party application installed by the electronic device. The electronic device can provide the user with a quick service to start the corresponding application by detecting the operation acting on the application icon.
[0122] It is understandable that the above Figure 4A This is only an exemplary description of the desktop of the electronic device. The desktop of the electronic device may also display Figure 4A The embodiments of the present application are not limited to the more or less content shown.
[0123] refer to Figure 4B , Figure 4B A schematic diagram of an operation interface for triggering the start of a first application is exemplarily shown.
[0124] like Figure 4B As shown, when the electronic device detects that the cursor 411 acts on the first office software icon 413, the first office software installed in the electronic device is triggered to start. The operation of the cursor 411 acting on the first office software icon 413 is specifically a double-click operation or other operations by the user moving an input body (such as a mouse) to control the cursor to move to the first office software icon 413, and the embodiment of the present application does not limit this.
[0125] Above Figure 4B Only the operation of starting the first office software is used as an example for introduction, and the operation of triggering the start of the first office software is only an example. In other examples of the present application, the operation for triggering the start of the application can also be a voice command, or an operation by entering the name of the application in the search bar 412B and clicking the searched application option, and the operation for starting other applications is similar to the operation of starting the first office software, which is not limited in the embodiments of the present application.
[0126] In the embodiments of the present application, Figure 4A-4B The interface shown can also be referred to as the first interface. Figure 4A-4B When the first interface is shown, the configuration item of the electronic device is in the first state value. Specifically, since the load of the electronic device is small at this time and there are no large applications in the running scenario, if the electronic device determines the first state value of the configuration item according to the load, or determines the first state value of the configuration item according to the running scenario, the performance of the first state value is low. For example, in the first state value, the PL value (i.e., the first value) of the processor is 9, and the EPP value (i.e., the second value) is 255, and the processor of the electronic device is bound to a small core.
[0127] S330, the electronic device displays a third interface, where the third interface includes a prompt window of the first application.
[0128] In some embodiments, when the first application is the first office software mentioned above, after the electronic device starts to launch the first application, the electronic device may display a third interface, and the third interface includes a prompt window of the first application. In other embodiments, when the first application is the second office software mentioned above, after the electronic device starts to launch the first application, the electronic device may not display a prompt window including the first application.
[0129] Optionally, after the electronic device starts to launch the first application, regardless of whether the prompt window of the first application is displayed, the electronic device can modify the configuration item to increase the speed at which the electronic device launches the first application. Exemplarily, the electronic device can execute S341-S344.
[0130] S341, the electronic device determines whether the first application is a target application.
[0131] Optionally, after the electronic device detects any behavior of the first application, it will trigger the electronic device to determine whether the first application is the target application. Here, we only take the example of the electronic device triggering the electronic device to determine whether the first application is the target application based on the first behavior of the first application detected, where the first behavior of the first application includes the data of the first application creation process, or also includes the data of the first application creation prompt window. This is because after the electronic device starts the first application, for example, the electronic device displays Figure 4B When the interface of the first application is displayed, the first application creates a process to load the service module included in the first application to perform the corresponding task. Since the electronic device continuously executes S310, that is, continuously detects the behavior of the first application, the first behavior of the first application detected by the electronic device includes the first application creation process. In particular, when the first application is the first office software mentioned above, after the electronic device starts to start the first application, the electronic device will also display the following Figure 4C-4D The prompt window, therefore the first behavior may also include creating a prompt window.
[0132] In a specific example, the scene recognition module in the electronic device is pre-set with a target application corresponding to the startup scene or a rule of the target application. In this way, after each time the electronic device detects the behavior data of the application, it will trigger the electronic device to determine whether the application to which the behavior data is detected each time belongs to the target application according to the preset target application or preset rule. If so, the electronic device will continue to determine whether the current application is being started or has completed the startup, that is, the electronic device will execute the subsequent step S342; otherwise, the electronic device will end the processing of the behavior of the application detected this time. However, the electronic device does not end the processing of the behavior of the application detected next time.
[0133] The target applications pre-installed in the above-mentioned electronic device include one or more applications, which are usually some large applications whose startup process takes a long time, such as office software, games, graphic drawing software and other large applications; among them, the rules for determining the target applications can be, for example, the rule that the size of the application is greater than a certain value, etc. This application does not make specific restrictions on the application types contained in the above-mentioned target applications, the number of applications, and the rules of the target applications.
[0134] In the embodiment of the present application, it is an optional operation for the electronic device to determine whether the first application is the target application. In one practicable manner, the electronic device needs to determine whether the first application is the target application. In another practicable manner, the electronic device may not determine whether the first application is the target application, that is, the electronic device directly executes the following S342 after detecting the first behavior data of the first application. In the case where the electronic device determines whether the first application is the target application, if the electronic device is in the process of executing S310, the system probe SDK of the electronic device detects the behavior data of all applications indiscriminately. However, considering that the startup process of some small applications takes a very short time, in order to avoid wasting power consumption and resources of the electronic device, it is not necessary to provide better performance parameters or system resources for the startup process of such small applications. Therefore, the electronic device does not need to include such applications in the identification object of the scene to be started, that is, the target application. In the case where the electronic device does not determine whether the first application is the target application, the electronic device can identify the startup scenes of all applications, so as to ensure that all applications are started quickly and provide users with a better application startup experience.
[0135] S342, the electronic device determines whether the first application is being started or has been started.
[0136] The electronic device is pre-installed with a matching rule, which is used for the electronic device to determine whether the first application is being started or has been started according to the first behavior of the first application and the corresponding matching rule.
[0137] In a specific implementation, one or more matching rules corresponding to applications are pre-installed in the scene recognition module of the electronic device, which is used for the scene recognition module to determine whether the first application is being started or has been started based on the first behavior data of the first application. When the recognition module of the electronic device determines that the current application is being started, it will notify the configuration policy module of the electronic device, so that the electronic device can execute the subsequent S343.
[0138] In the embodiment of the present application, the matching rules are determined by analyzing the behavioral characteristics of each application startup process. Therefore, the matching rules corresponding to different applications may be the same or different. The following only takes the different behavioral characteristics of two different applications as an example to introduce the specific matching rules of different applications:
[0139] 1. For some applications that take a long time to start, after the electronic device detects the operation that triggers the start of the application, the application immediately creates a process to load the various services included in the application. At the same time, in order to promptly feedback the start result to the user, a window is usually displayed to prompt the user that the application is starting and / or loading (see below for details). Figure 4C-4D The application interface after successful launch will not be displayed until the application is launched successfully (see below for details). Figure 4E description).
[0140] Therefore, for this type of application, the matching rules are as follows:
[0141] When the electronic device detects that the application's behavior is any of the following, it determines that the application is in the startup process: a process created when the application was not running before, creating a prompt window. When the electronic device detects that the application's behavior is any of the following, it determines that the application is in the startup process: creating a window of the application's main interface, destroying a window of the application's main interface, and ending a process.
[0142] 2. For other applications that take a short time to start, after the electronic device detects the operation that triggers the application to start, the application will also immediately create a process to load the various services contained in the application. However, such applications can usually load successfully very quickly, so the window used to prompt the user that the application is starting and loading will not be displayed. Instead, the application interface after successful startup will be directly displayed (for details, see the following section on Figure 4F description).
[0143] Therefore, for these applications, the matching rules are as follows:
[0144] The electronic device determines that the application is in the startup process only when it detects the behavior of a process created when the application was not running before. The electronic device determines that the application is in the startup process when it detects any of the following behaviors of the application: creating a window of the application main interface, destroying a window of the application main interface, and ending a process.
[0145] From the above analysis, it can be seen that since the first behavior of the first application detected by the electronic device includes data of the first application creation process, or also includes data of the first application creation prompt window, the electronic device can determine that the first application is in the process of starting up according to the above matching rules.
[0146] It can be understood that the matching rules involved in this application are determined only by the different behavioral characteristics of the two applications during the startup process. If other types of applications have behavioral characteristics different from the above two applications during the startup process, the electronic device will be pre-installed with matching rules corresponding to this type of application. This application does not limit the number and specific content of the matching rules pre-installed in the electronic device.
[0147] Next, the behavior characteristics of the first application displayed by the electronic device after the first office software is started and before the first office software is completed are introduced in conjunction with the UI embodiment.
[0148] refer to Figure 4C-4D , Figure 4C-4D The following is an exemplary diagram showing the relevant interfaces before and after the first office software is started.
[0149] like Figure 4C As shown, the electronic device usually displays a starting window 415 during the startup of the first office software. The window 415 is used to prompt the user that the first office software is in the startup process, but does not have other content about the main functions and services provided by the first office software.
[0150] like Figure 4D As shown, after displaying the starting window 415, the electronic device will also display a loading window 416, which is used to prompt the user that the first office software is in the loading process, but does not have other content about the main functions and services provided by the first office software.
[0151] Figure 4C-4DOnly the behavior characteristics during the startup of the first office software are used as an example for illustration. In other examples of this application, the behavior characteristics of the application during the startup process may only include a prompt window showing that it is being started, or only include a prompt window showing that it is being loaded, or no prompt window is displayed during the startup process. This application does not limit this. For example, when the electronic device starts the second office software, the prompt window of the second office software is not displayed, so the UI is not used as an example here.
[0152] It is understandable that when an electronic device displays Figure 4C-4D When the interface shown is displayed, the electronic device detects the behavior data of the first application creating a window, which is a prompt window used to prompt the user that the electronic device is starting up.
[0153] S343: When it is determined that the first application is being started, the electronic device determines a second state value corresponding to the configuration item.
[0154] In one achievable manner, when the electronic device determines that the first application is being started, the electronic device can directly determine the second state value corresponding to the configuration item. In another achievable manner, when the electronic device determines that the first application is being started, the electronic device will also add the first application to the startup scene container, and then determine whether the state of the startup scene container is switched from the first state to the second state. If so, the electronic device will determine the second state value corresponding to the configuration item. Among them, the first state refers to the number of applications in the startup scene container being 0, that is, before determining that the first application is being started, no other applications are being started in the electronic device, and the second state refers to the number of applications in the startup scene container being N, N ≥ 1.
[0155] The configuration item being in the second state value may be, for example: PL is the third value, and / or EPP is the fourth value, and / or the flag of the working processor is 1, wherein the flag of the working processor is 1, indicating that the working processor in the electronic device is the second processor (also called the big core).
[0156] Among them, specific implementation methods for the electronic device to determine the second state value corresponding to the configuration item include the following:
[0157] 1. A state value of a preset configuration item is stored in the electronic device, and the state value of the preset configuration item is directly determined as the second state value.
[0158] Specifically, the electronic device stores a preset configuration strategy, which includes: the correspondence between the state of the startup scene container and the PL, the correspondence between the state of the startup scene container and the EPP, and the correspondence between the state of the startup scene container and the processor; the configuration strategy is used by the electronic device to determine the adjusted PL value and / or EPP, and / or determine the processor to be used when detecting the state switch of the startup scene container. Specifically, the PL value of the working CPU in the preset configuration strategy is greater than the first threshold, for example, when the first threshold is 20, the PL is fixed to 30; the preset EPP value of the working CPU is less than the second threshold, for example, when the second threshold is 150, the EPP is fixed to 100. Among them, the first threshold and the second threshold can specifically be the average power and average energy efficiency ratio of the processor obtained by the developer through multiple tests of the electronic device in most common operating scenarios, with a limit power greater than the average power and a value less than the average energy efficiency ratio defined respectively.
[0159] In a specific implementation, the preset configuration item is stored in a configuration policy module of the electronic device, and is used for the configuration policy module to determine the second state value according to the preset configuration item after receiving information sent by the scene recognition module indicating that the first application is being started, or after the configuration policy module determines that the state of the startup scene container is switched from the first state to the second state.
[0160] It can be seen that when the first method is used to determine the second state value, the electronic device can ensure that the performance of the second state value is better than the first state value described above in most commonly used application scenarios, that is, the third value of PL is greater than the first value of PL, and the fourth value of EPP is less than the second value of EPP, so that higher performance parameters can be used to continue to start the first application. The above commonly used application scenarios refer to non-extreme application scenarios such as high load, running large applications, etc.
[0161] 2. Based on the status value of the preset configuration item, the electronic device considers any one or more of factors such as whether the electronic device is connected to the power supply, the load of the electronic device, the operation scenario, the working mode, the type and number of applications being started, etc., and superimposes the corresponding adjustment value on the basis of the status value of the preset configuration item, and determines the value after the superimposition of the adjustment value as the second status value.
[0162] Taking the factor of whether the power is turned on as an example, the PL adjustment value of the electronic device when the power is turned on is greater than the PL adjustment value when the power is not turned on, and / or the EPP adjustment value of the electronic device when the power is turned on is less than the EPP adjustment value when the power is not turned on. In this way, we can ensure that the final PL value (also known as the third value) obtained by superimposing the PL adjustment value on the basis of the preset fixed PL value when the power is turned on is greater than the final PL value (also known as the third value) obtained by superimposing the PL adjustment value on the basis of the preset fixed PL value when the power is not turned on. And ensure that the final EPP value (also known as the fourth value) obtained by superimposing the EPP adjustment value on the basis of the preset fixed EPP value when the power is turned on is less than the final EPP value (also known as the fourth value) obtained by superimposing the EPP adjustment value on the basis of the preset fixed EPP value when the power is not turned on.
[0163] Taking the factor of load size as an example, different loads correspond to different adjustment values. The smaller the load, the smaller the PL adjustment value, and / or the larger the EPP adjustment value. When the load of the electronic device is the seventh value, the PL adjusted during the first application process of the electronic device is greater than the PL adjusted during the first application process of the electronic device when the load of the electronic device is the eighth value; the seventh value is less than the eighth value. Alternatively, when the load of the electronic device is the seventh value, the EPP adjusted during the first application process of the electronic device is less than the EPP adjusted during the first application process of the electronic device when the load of the electronic device is the eighth value. For example, when the CPU occupancy rate is used to characterize the load size, when the CPU occupancy rate is 0-20%, the PL adjustment value is -5, and the EPP adjustment value is 20, then the adjusted PL value (also called the third value) is 30-5=25, and the adjusted EPP value (also called the fourth value) is 100+20=120; when the CPU occupancy rate is 20%-50%, the PL adjustment value is 0, and the EPP adjustment value is 0, then the adjusted third value is 30, and the adjusted fourth value is 100; when the CPU occupancy rate is 50%-80%, the PL adjustment value is 2, and the EPP adjustment value is -50, then the adjusted third value is 30+2=32, and the adjusted fourth value is 100-50=50; when the CPU occupancy rate is 80%-100%, the PL adjustment value is 5, and the EPP adjustment value is -99, then the adjusted third value is 30+5=35, and the adjusted fourth value is 100-99=1. The embodiment of the present application does not impose any specific limitation on the above-mentioned occupancy division and the corresponding PL adjustment value and EPP adjustment value.
[0164] Taking the operating scenario of the electronic device as an example, different operating scenarios correspond to different adjustment values. The operating scenario is determined based on the application that the electronic device is already running. For example, when the electronic device is running office software, the electronic device determines that the operating scenario is an office scenario. For another example, when the electronic device is running a game application, the electronic device determines that the operating scenario is a game scenario. For another example, when the electronic device is running a social application, the electronic device determines that the operating scenario is a social scenario. Among them, the PL adjustment value in the office scene and the game scene is greater than the adjustment value in the leisure scene, and / or the EPP adjustment value in the office scene and the game scene is greater than the EPP adjustment value in the leisure scene.
[0165] Taking the working mode of the electronic device as an example, different working modes correspond to different adjustment values. The PL adjustment value in the power saving mode is smaller than the PL adjustment value in the non-power saving mode, and / or the EPP adjustment value in the power saving mode is larger than the EPP adjustment value in the non-power saving mode.
[0166] Taking the factor of the type of application being launched as an example, when the size of the first application being launched is larger, the PL adjustment value is smaller, and / or the EPP adjustment value is larger. For example, when the application being launched is a large application such as office software or games, its PL adjustment value is greater than the PL adjustment value of a non-large application such as a social application being launched, and / or, when the application being launched is a large application such as office software or games, its EPP adjustment value is less than the EPP adjustment value of a non-large application such as a social application being launched.
[0167] Taking the number of applications being started as an example, the more applications the electronic device runs, the larger the PL adjustment value and / or the smaller the EPP adjustment value. For example, when the number of applications being started is greater than 0 and less than or equal to 2, the PL adjustment value is 0 and the EPP adjustment value is 0; when the number of applications being started is greater than 2, the PL adjustment value is 5 and the EPP adjustment value is -100. The embodiment of the present application does not impose specific restrictions on the division of the above-mentioned number of applications and the corresponding PL adjustment value and EPP adjustment value.
[0168] It can be seen that when the second method is used to determine the second state value, the electronic device can ensure that the performance of the second state value is better than the first state value item mentioned above in any application scenario (including high load and low load), that is, the third value of PL is greater than the first value of PL, and the fourth value of EPP is less than the second value of EPP, so that higher performance parameters can be used to continue to start the first application.
[0169] S344: The electronic device changes the configuration item to a second state value, and continues to start the first application using the configuration item with the second state value.
[0170] Specifically, after the configuration policy module of the electronic device determines that the configuration item corresponding to the startup scenario is the second state value, the second state value is sent to the execution scheduling module, and the execution scheduling module schedules the corresponding hardware to modify the corresponding configuration item according to the second state value, and runs according to the modified configuration, thereby improving better performance and more system resources for the current startup scenario.
[0171] Optionally, when the configuration item of the electronic device is the first state value before the electronic device starts the first application, then in the early stage when the electronic device starts to start the first application, that is, before the electronic device determines that the configuration item is the second state value, the electronic device starts the first application when the configuration item is the first state value. After the electronic device determines the second state value, the electronic device continues to start the first application with the second state value. Since the value of PL in the second state value (third value) is greater than the value of PL in the first state value (first value), and / or the value of EPP in the second state value (fourth value) is less than the value of EPP in the first state value (second value), therefore, when the electronic device applies the second state value to start the first application, the actual working power of the bound running processor is greater than the working power when the electronic device adopts the first state value, and the actual working power of the bound running processor, so that the speed at which the processor starts the first application can be increased.
[0172] The specific implementation of the execution scheduling module of the electronic device scheduling the corresponding hardware to modify the configuration according to the corresponding configuration items is as follows:
[0173] The execution scheduling module of the electronic device directly binds the running processor as a large core;
[0174] And / or, for electronic devices using the Advanced Micro Devices (AMD) platform, the execution scheduling module in the application layer of the electronic device sends the PL value and / or EPP value in the second state value to the running CPU in the hardware layer through the driver layer OS2SOC driver, such as the AMD PMF module in the CPU, which can be used to receive the configuration items of the launched PL, EPP, etc., and modify the values of PL and EPP according to the configuration items, wherein the form of the configuration items received by the AMD PMF can be, for example, directly the specific values of PL and EPP. For electronic devices using the Intel platform, the execution scheduling module of the application layer can directly send the PL value and / or EPP value in the determined second state value to the Intel DTT module in the running CPU of the hardware layer, so that Intel DTT can modify the values of PL and EPP according to the configuration items, wherein the form of the configuration items received by the Intel DTT can be an ID for indicating the PL and EPP parameter values, and the Intel DTT pre-stores the specific PL and EPP parameter values corresponding to different IDs.
[0175] S350, the electronic device displays a second interface, where the second interface includes a window of the first application main interface.
[0176] After the electronic device completes launching the first application, the electronic device displays the second interface, which includes a window of the first application main interface. Specifically, after the first application of the electronic device successfully loads the service module of the first application from the external memory into the internal memory, the electronic device will create a window including the application main interface, and the window of the application main interface can display the services and functions included in the first application that has been successfully loaded.
[0177] Next, the second interface displayed by the electronic device after the electronic device completes the startup of the first application is introduced in conjunction with the UI embodiment.
[0178] like Figure 4E As shown, after the first office software has been successfully loaded, that is, after the first office software has been successfully started, the electronic device displays the interface of the first office software when it is running in the foreground, and the page content (that is, window 417) in the interface except for the task bar 412 is all the page content provided by Excel. Window 417 contains the main functions and services provided by the first office software, such as browsing, opening the most recently used documents, creating a blank workbook, etc.
[0179] visible, Figure 4EThe differences between the window 417 shown and the starting window 415 and the loading window 416 described above include but are not limited to: window type, window display content, window function, etc. Therefore, the electronic device can identify whether the application has completed startup by the type of window created.
[0180] Understandably, Figure 4E Only taking the first application as the first office software as an example, when the first application is the second office software, from the time when the electronic device receives the operation of starting the second application to the time when the second application is started, the electronic device will only directly display the interface of the second application, and will not display a window prompting that the second application is starting. For details, please refer to Figure 4F , Figure 4F The following is a schematic diagram showing the interface of the second office software before and after it is started.
[0181] like Figure 4F As shown, when the electronic device detects that the cursor 411 acts on the second office software icon 414, the second office software installed in the electronic device is triggered to start. Afterwards, during the process of starting the second office software, no prompt information is displayed on the display screen of the electronic device. Only after the second office software is successfully started will the page content (i.e., window 418) provided by the second office software when it is running in the foreground be displayed. Window 418 contains the main functions and services provided by the second office software, such as content such as searching for documents, creating new documents, and opening documents.
[0182] It is understandable that when an electronic device displays Figure 4E-4F When the interface shown is displayed, the electronic device detects the behavior data of the first application creating a window, which is a window for displaying application functions and is used to provide the user with the functions of the first application.
[0183] Optionally, after the first application is started up, the electronic device will also execute steps S361-S363.
[0184] S361, the electronic device determines whether the first application is a target application.
[0185] Optionally, similar to S341 described above, after the electronic device detects any behavior of the first application, it will trigger the electronic device to determine whether the first application is the target application. The difference from S341 described above is that the condition for triggering the electronic device to determine whether the first application is the target application here is the second behavior of the first application detected by the electronic device, wherein the second behavior of the first application includes any of the following: creating a window of the application main interface, destroying a window of the application main interface, hiding a window of the application main interface, and ending a process.
[0186] The specific implementation method of the electronic device determining whether the first application is the target application based on the second behavior of the first application can be referred to the description of S341 above, which will not be repeated here. If the first application is the target application, the electronic device will continue to determine whether the first application is being started or has completed the startup, that is, the electronic device will execute the subsequent step S362; otherwise, the electronic device will end the processing of the second behavior of the first application detected this time.
[0187] S362, the electronic device determines whether the first application is being started or has been started.
[0188] Specifically, the electronic device can trigger, based on the second behavior data of the first application, a determination as to whether the first application is being started or has been started. The determination method here is similar to S342 described above and will not be described in detail here.
[0189] S363: When the electronic device determines that the first application has completed startup, the electronic device changes the configuration item to a third state value.
[0190] In one achievable manner, when the electronic device determines that the first application has completed startup, the electronic device can directly change the configuration item to the third state value. In another achievable manner, when the electronic device determines that the first application has completed startup, the electronic device will also delete the first application from the startup scene container, and then determine whether the state of the startup scene container is switched from the second state to the first state. If so, the electronic device will change the configuration item to the third state value.
[0191] The configuration item in the third state value may be, for example: PL is the fifth value, and / or EPP is the sixth value, and / or the flag of the working processor is 0. The method for determining the third state value is the same as the method for determining the first state value described above. For details about the method for determining the third state value, please refer to the previous text, which will not be repeated here.
[0192] In an embodiment of the present application, the third state value and the first state value described above may be the same or different. If the electronic device determines the configuration items in the non-startup scenario based on the current CPU load or operating scenario (for example, a game scenario, an office scenario, etc.), since the first state value described above is the configuration item applied when the number of large applications running by the electronic device is less than a first threshold, such as 1 (or the load is less than a second threshold), and the third configuration is the configuration item applied when the number of large applications running by the electronic device is greater than or equal to the first threshold (or the load is greater than or equal to the second threshold), the performance of the third state value determined by the electronic device is higher than that of the first configuration information.
[0193] In summary, after implementing the application startup method provided by the present application, the electronic device can accurately detect whether an application is being started based on the behavior data of the application detected in real time, thereby identifying the startup scene, and determining the state value of the configuration item corresponding to the startup scene based on the configuration policy corresponding to the startup scene, and adjusting the configuration items of the electronic device from the hardware parameter level of the electronic device, for example, by increasing the PL value and lowering the EPP value on the processor with higher performance bound to the electronic device, wherein a processor with higher performance, a higher PL value or a lower EPP value can make the operation performance of the electronic device higher, so that the electronic device starts the application in the operating state of the best performance, providing more system resources for the application startup, thereby increasing the speed of application startup. Improve the application startup rate.
[0194] Next, combined with the above Figure 4A-4F , and steps S310-S363, two specific scenarios are listed to illustrate how the application startup method provided by the present application improves the application startup speed.
[0195] Scenario 1, taking the case where the first application is started when the electronic device is powered on as an example.
[0196] Display on electronic devices Figure 4A In the process of the first interface shown, the PL of the electronic device is a first value, denoted as PL1=9, the EPP of the electronic device is a second value, denoted as EPP1=255, and the flag of the processor in working state is 0 (the electronic device uses a small-core processor to work).
[0197] After the electronic device starts to launch the first application, it displays Figure 4C-4D In the process of the third interface shown, the PL of the electronic device is the third value, denoted as PL2=35, the EPP of the electronic device is the fourth value, denoted as EPP2=1, and the flag of the processor in working state is 1 (the electronic device uses the large-core processor to start the first application).
[0198] After the electronic device completes launching the first application, it displays Figure 4E In the process of the second interface shown, the PL of the electronic device is the fifth value, recorded as PL3=25, the EPP of the electronic device is the fourth value, recorded as EPP3=150, and the flag of the processor in working state is 1 (the electronic device uses the large-core processor to start the first application).
[0199] Scenario 2, taking the case where the electronic device is powered on and the first application is started as an example.
[0200] Display on electronic devices Figure 4AIn the process of the first interface shown, the PL of the electronic device is a first value, denoted as PL1=9, the EPP of the electronic device is a second value, denoted as EPP1=255, and the flag of the processor in working state is 0 (the electronic device uses a small-core processor to work).
[0201] After the electronic device starts to launch the first application, it displays Figure 4C-4D In the process of the third interface shown, the PL of the electronic device is the third value, denoted as PL2=30, the EPP of the electronic device is the fourth value, denoted as EPP2=10, and the flag of the processor in working state is 1 (the electronic device uses the large-core processor to start the first application).
[0202] After the electronic device completes launching the first application, it displays Figure 4E In the process of the second interface shown, the PL of the electronic device is the fifth value, recorded as PL3=25, the EPP of the electronic device is the fourth value, recorded as EPP3=150, and the flag of the processor in working state is 1 (the electronic device uses the large-core processor to start the first application).
[0203] It can be seen that after the electronic device starts the first application, the electronic device will adjust the performance of the configuration item to a higher level, such as increasing the PL value, lowering the EPP value, and binding the processor as a large-core processor to work, thereby increasing the speed at which the electronic device starts the first application. In addition, when the electronic device is powered on, the PL2 adjusted during the process of the electronic device starting the first application is greater than the PL2 adjusted during the process of the electronic device starting the first application when the electronic device is not powered on; when the electronic device is powered on, the EPP2 adjusted during the process of the electronic device starting the first application is less than the EPP2 adjusted during the process of the electronic device starting the first application when the electronic device is not powered on. This further ensures that, when sufficient power is supplied, the first application is started with higher performance, further increasing the speed at which the electronic device starts the first application.
[0204] It should be understood that each step in the above method embodiment provided by the present application can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0205] The present application also provides an electronic device, which may include: a memory and a processor, wherein the memory may be used to store a computer program; and the processor may be used to call the computer program in the memory so that the electronic device executes the method in any one of the above embodiments.
[0206] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method executed by the electronic device in any of the above embodiments.
[0207] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0208] The chip system may be composed of the chip, or may include the chip and other discrete devices.
[0209] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0210] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
[0211] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0212] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which enables a computer to execute the method executed by the electronic device in any of the above embodiments when the computer program is executed.
[0213] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by the electronic device in any of the above embodiments.
[0214] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0215] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it 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 this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.
[0216] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0217] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for starting an application, characterized in that: The method is applied to an electronic device, and the method comprises: The electronic device displays a first interface, the power limit PL of the electronic device is a first value, the energy efficiency ratio EPP of the electronic device is a second value, and the electronic device uses a first processor to display the first interface; In response to a first operation on the first interface, the electronic device starts launching a first application; The electronic device displays a second interface, where the second interface includes a window of the first application main interface; After starting the first application, the electronic device performs at least one of the following three adjustments: After starting the first application, the electronic device adjusts the PL to a third value, and after displaying the second interface, the electronic device adjusts the PL to a fourth value, the third value being greater than the first value, and the third value being greater than the fourth value; After starting to launch the first application, the electronic device adjusts the EPP to a fifth value, and after displaying the second interface, the electronic device adjusts the EPP to a sixth value, the fifth value is less than the second value, and the fifth value is less than the sixth value; After starting to launch the first application, the electronic device uses the second processor to launch the first application, and after displaying the second interface, uses the first processor to run the first application, and the performance of the second processor is higher than that of the first processor.
2. The method according to claim 1, characterized in that After the electronic device starts to launch the first application and before the electronic device displays the second interface, the method further includes: The electronic device displays a third interface, and the third interface includes a prompt window of the first application.
3. The method according to claim 1 or 2, characterized in that: If the electronic device adjusts the PL, the PL adjusted when the electronic device starts the first application when the electronic device is powered on is greater than the PL adjusted when the electronic device starts the first application when the electronic device is not powered on; If the electronic device adjusts the EPP, the EPP adjusted when the electronic device starts the first application when the electronic device is powered on is smaller than the EPP adjusted when the electronic device starts the first application when the electronic device is not powered on.
4. The method according to any one of claims 1 to 3, characterized in that After the electronic device starts to start the first application and before the electronic device adjusts the PL to the third value and / or adjusts the EPP to the fifth value and / or starts the first application using the second processor, the method further includes: The electronic device detects a first behavior of the first application, and determines that the first application is in a startup process according to the first behavior, where the first behavior includes any one of the following: creating a process, creating a prompt window.
5. The method according to any one of claims 1 to 4, characterized in that After the electronic device displays the second interface and before the electronic device adjusts the PL to a fourth value and / or adjusts the EPP to a sixth value and / or starts the first application using the first processor, the method further includes: The electronic device detects a second behavior of the first application, and determines that the first application has completed startup based on the second behavior, where the second behavior includes any one of the following: ending the process, creating a window of the first application main interface, destroying the window of the first application main interface, and hiding the window of the first application main interface.
6. The method according to any one of claims 1 to 5, characterized in that After the electronic device starts to start the first application and before the electronic device adjusts the PL to the third value and / or adjusts the EPP to the fifth value and / or starts the first application using the second processor, the method further includes: The electronic device determines that the first application belongs to a startup scene recognition object, and the startup scene recognition object includes one or more applications preset by the electronic device.
7. The method according to any one of claims 1 to 6, characterized in that After the electronic device starts to start the first application and before the electronic device adjusts the PL to the third value and / or adjusts the EPP to the fifth value and / or starts the first application using the second processor, the method further includes: The startup scene container of the electronic device is in a first state, and the first state indicates that the number of applications in the startup scene container is 0; The electronic device adds the first application to the startup scene container; The electronic device detects that the state of the startup scene container is switched from the first state to the second state, and the second state indicates that the number of applications in the startup scene container is N, where N≥1.
8. The method according to any one of claims 1 to 7, characterized in that After the electronic device displays the second interface and before the electronic device adjusts the PL to a fourth value and / or adjusts the EPP to a sixth value and / or starts the first application using the first processor, the method further includes: The startup scene container of the electronic device is in a second state, and the second state indicates that the number of applications in the startup scene container is N, and N≥1; The electronic device deletes the first application from the startup scenario container; The electronic device detects that the state of the startup scene container is switched from the second state to the first state, and the first state indicates that the number of applications in the startup scene container is 0.
9. The method according to claim 7 or 8, characterized in that: The electronic device stores a configuration strategy, wherein the configuration strategy includes: a correspondence between the state of the startup scene container and the PL, a correspondence between the state of the startup scene container and the EPP, and a correspondence between the state of the startup scene container and the processor; The configuration strategy is used by the electronic device to determine the adjusted PL value and / or EPP, and / or determine the processor to be used when detecting the state switch of the startup scene container.
10. The method according to any one of claims 1 to 9, characterized in that When the electronic device is in the power saving mode, the PL adjusted during the process of the electronic device starting the first application is greater than the PL adjusted during the process of the electronic device starting the first application when the electronic device is not in the power saving mode; Alternatively, when the electronic device is in the power saving mode, the EPP adjusted during the process of the electronic device starting the first application is less than the EPP adjusted during the process of the electronic device starting the first application when the electronic device is not in the power saving mode.
11. The method according to any one of claims 1 to 10, characterized in that When the load of the electronic device is the seventh value, the PL adjusted during the process of starting the first application by the electronic device is greater than, when the load of the electronic device is the eighth value, the PL adjusted during the process of starting the first application by the electronic device; the seventh value is less than the eighth value Alternatively, when the load of the electronic device is the seventh value, the EPP adjusted when the electronic device starts the first application is less than the EPP adjusted when the electronic device starts the first application when the load of the electronic device is the eighth value.
12. The method according to any one of claims 1 to 11, characterized in that Before the electronic device adjusts the PL to the third value / adjusts the EPP to the fifth value / starts the first application using the second processor, the method further includes: The electronic device runs a second application.
13. An electronic device, characterized in that: The electronic device includes a screen, a memory, and one or more processors; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method described in any one of claims 1-12.
14. A chip, applied to electronic equipment, characterized in that: The chip includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the method as described in any one of claims 1-12.
15. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 12.
