Application optimization method and device, equipment and storage medium
By acquiring and applying performance and power optimization data and configuring it after the multimedia application starts, the problem of interference from manual user operation is solved, achieving a seamless optimization effect and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2026-03-27
AI Technical Summary
Existing optimization methods for multimedia applications require manual operation by the user, which cannot achieve seamless operation and is easily affected by interference from other information, thus impacting the optimization effect.
By acquiring target function configuration data, including performance optimization data and power consumption optimization data, configuration is performed after the multimedia application starts, ensuring improved application performance and reduced power consumption without user intervention.
It achieves performance optimization and power consumption reduction for multimedia applications, requires no user operation, improves user experience, and enhances optimization results.
Smart Images

Figure CN121742922A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and includes, but is not limited to, an application optimization method, apparatus, device, and storage medium. Background Technology
[0002] Multimedia scenarios (such as long and short videos, live streaming, and video calls) are frequently used by users over extended periods, and their user experience has a significant impact on the product's Net Promoter Score (NPS). However, most existing methods for optimizing the basic experience of multimedia applications require manual user intervention, making it impossible to achieve seamless user engagement and susceptible to interference from other information, thus affecting the optimization results.
[0003] Therefore, how to effectively improve the optimization effect of multimedia applications is an urgent problem to be solved. Summary of the Invention
[0004] In view of this, the application optimization method, apparatus, device, and storage medium provided in the embodiments of this application can effectively improve the optimization effect of multimedia applications. The application optimization method, apparatus, device, and storage medium provided in the embodiments of this application are implemented as follows:
[0005] The application optimization method provided in this application embodiment is applied to an electronic device. The method includes: acquiring target function configuration data, the target function configuration data including performance optimization data and / or power consumption optimization data for a target multimedia application, the performance optimization data being used to improve the performance of the target multimedia application, and the power consumption optimization data being used to reduce the power consumption of the target multimedia application; and configuring the target multimedia application according to the target function configuration data after the target multimedia application is started.
[0006] The application optimization device provided in this application embodiment is applied to an electronic device. The device includes: an acquisition module, used to acquire target function configuration data, the target function configuration data including performance optimization data and / or power consumption optimization data for a target multimedia application, the performance optimization data being used to improve the performance of the target multimedia application, and the power consumption optimization data being used to reduce the power consumption of the target multimedia application; and a configuration module, used to configure the target multimedia application according to the target function configuration data after the target multimedia application is started.
[0007] The computer device provided in this application embodiment includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements the application optimization method described in this application embodiment.
[0008] The computer-readable storage medium provided in this application embodiment stores a computer program thereon, which, when executed by a processor, implements the application optimization method provided in this application embodiment.
[0009] The computer program product provided in this application embodiment includes a computer program that, when executed by a processor, implements the application optimization method provided in this application embodiment.
[0010] In the application optimization method, apparatus, device, and storage medium provided in this application embodiment, the electronic device first acquires target function configuration data. This target function configuration data includes performance optimization data and / or power consumption optimization data for the target multimedia application. The performance optimization data is used to improve the performance of the target multimedia application, and the power consumption optimization data is used to reduce the power consumption of the target multimedia application. Then, after the target multimedia application starts, the target multimedia application is configured according to the target function configuration data. In this application optimization method, by acquiring performance optimization data and / or power consumption optimization data for the target multimedia application and updating its configuration after startup, the update of the multimedia application's performance and power consumption optimization configuration is imperceptible to the user of the electronic device. Users do not need to perform update or restart operations, maximizing the user experience and effectively improving the optimization effect of the multimedia application, thus solving the technical problems mentioned in the background art. Attached Figure Description
[0011] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.
[0012] Figure 1 A schematic diagram of the system architecture of an electronic device provided in one embodiment of this application;
[0013] Figure 2 A schematic diagram illustrating the implementation flow of an application optimization method provided in one embodiment of this application;
[0014] Figure 3 A schematic diagram illustrating the implementation flow of an application optimization method provided in another embodiment of this application;
[0015] Figure 4 An exemplary flowchart of an application optimization method provided in one embodiment of this application;
[0016] Figure 5 A schematic diagram illustrating the implementation flow of an application optimization method provided in yet another embodiment of this application;
[0017] Figure 6 An exemplary flowchart of an application optimization method provided in another embodiment of this application;
[0018] Figure 7 This is a structural schematic diagram of an application optimization device provided in one embodiment of this application;
[0019] Figure 8 This is a structural schematic diagram of a computer device provided in one embodiment of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0022] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0023] It should be noted that the terms "first, second, third" used in the embodiments of this application are used to distinguish similar or different objects and do not represent a specific order of objects. It can be understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0024] With the advancement of technology and the increasing demands of users, the user experience of applications on terminal devices is becoming increasingly important. For multimedia applications, especially those leading third-party applications with high duration and frequency, there are currently relatively few frameworks for optimizing their user experience.
[0025] Multimedia scenarios (such as long and short videos, live streaming, and video calls) are frequently used by users over extended periods, and their user experience has a significant impact on a product's NPS (Net Promoter Score). However, most existing methods for optimizing the basic experience of multimedia applications require manual user intervention, making it impossible to achieve seamless user engagement and susceptible to interference from other information, thus affecting the optimization results.
[0026] Therefore, how to effectively improve the optimization effect of multimedia applications is an urgent problem to be solved.
[0027] In view of this, embodiments of this application provide an application optimization method applied to an electronic device. The method specifically includes: acquiring target function configuration data, which includes performance optimization data and / or power consumption optimization data for a target multimedia application. The performance optimization data is used to improve the performance of the target multimedia application, and the power consumption optimization data is used to reduce the power consumption of the target multimedia application. Then, after the target multimedia application starts, the target multimedia application is configured according to the target function configuration data. In this application optimization method, by acquiring performance optimization data and / or power consumption optimization data for the target multimedia application and updating its configuration after startup, the update of the multimedia application's performance and power consumption optimization configuration is imperceptible to the user of the electronic device. Users do not need to perform update or restart operations, maximizing the user experience and effectively improving the optimization effect of the multimedia application.
[0028] It should be understood that the electronic devices involved in the embodiments of this application may be mobile phones, tablets, laptops, handheld computers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, smart screens, artificial intelligence (AI) speakers, headphones, terminals in industrial control, terminals in self-driving, terminals in remote medical surgery, terminals in smart grids, terminals in transportation safety, terminals in smart cities, terminals in smart homes, personal digital assistants (PDAs), etc., and the embodiments of this application are not limited to these.
[0029] For example, Figure 1 This is a schematic diagram of the system architecture of an electronic device provided in one embodiment of this application. Figure 1 As shown, the electronic device includes components such as a processor 110, a memory 120, a transceiver 130, a display unit 140, an input unit 150, and a power module 160.
[0030] The processor 110 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 120, and by calling data stored in the memory 120, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor, which mainly handles operating devices, user interfaces, and application programs. Of course, it may also include other processors, which are not listed here.
[0031] The memory 120 can be used to store software programs and modules. The processor 110 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 120. The memory 120 mainly includes a program storage area and a data storage area. The program storage area can store the operating device and application programs required for at least one function (such as sound playback function, image playback function, etc.). The data storage area can store data created according to the use of the electronic device (such as audio data, telephone book, etc.). In addition, the memory 120 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0032] Transceiver 130 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. Transceiver 130 can be one or more devices integrating at least one communication processing module; for example, it can integrate an antenna with a baseband processor, or it can integrate an antenna with a modem processor, etc., without limitation.
[0033] The display unit 140 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device. The display unit 140 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like, and is not limited thereto.
[0034] The input unit 150 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the input unit 150 can collect user operations on or near it and drive corresponding connected devices according to a pre-set program. Furthermore, the input unit 150 may include a touch panel, which can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave touch panels. In addition to the touch panel, the input unit 150 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of the following: function keys (such as volume control buttons, power buttons, etc.), trackballs, joysticks, etc.
[0035] The electronic device also includes a power module 160 that supplies power to the various components. Optionally, the power module 160 can be logically connected to the processor 110 through a power management device, thereby enabling the power management device to manage functions such as charging, discharging, and power consumption.
[0036] Although not shown, the electronic device may also include a camera. Optionally, the camera may be positioned in the front or rear of the electronic device, and this application embodiment does not limit this.
[0037] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0038] To make the objectives and technical solutions of this application clearer and more intuitive, the application optimization methods, apparatus, devices, and storage media provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0039] Please refer to Figure 2 This is a schematic diagram illustrating the implementation flow of an application optimization method provided in one embodiment of this application. This method can be applied to, for example... Figure 1 The electronic devices shown, such as Figure 2As shown, the method may include steps 201 and 202:
[0040] Step 201: Obtain target function configuration data. The target function configuration data includes performance optimization data and / or power consumption optimization data for the target multimedia application. The performance optimization data is used to improve the performance of the target multimedia application, and the power consumption optimization data is used to reduce the power consumption of the target multimedia application.
[0041] In some embodiments, the target multimedia application may include multimedia playback applications such as short video applications and long video applications.
[0042] In some embodiments, the electronic device may obtain the target function configuration data from a server, such as a cloud server or a remote server, or it may obtain it directly from a local database. This application does not limit the scope of the data.
[0043] It should be understood that performance optimization data is primarily used to improve the performance of the target multimedia application. This includes metrics such as user interaction and data processing time, requests or data volume processed per second, resource utilization, latency of different operations, and concurrency performance, such as the ability to handle multiple requests under high concurrency. Power optimization data is primarily used to reduce the power consumption of the target multimedia application. This includes reducing power consumption under different workloads, analyzing the power consumption performance of the target multimedia application in different states (e.g., active, standby, sleep) for targeted optimization, and analyzing the power management strategies used by the target multimedia application (e.g., dynamic voltage and frequency adjustment) to evaluate the optimization effect.
[0044] Step 202: After the target multimedia application is started, configure the target multimedia application according to the target function configuration data.
[0045] In some embodiments, after acquiring the target function configuration data, the electronic device, upon launching the target multimedia application, reads the target function configuration data, such as from a specified configuration file or database. Then, after parsing the read data, it sends the target function configuration data to the corresponding functional module, i.e., initializes the relevant settings of the target multimedia application, such as audio and video formats, playlists, etc., and then adjusts user interface elements, such as buttons, menus, and views, according to functional requirements to meet user experience needs. Furthermore, after configuration, preliminary testing can be performed to ensure all functions operate normally and the user interface responds promptly. Simultaneously, important information during the configuration process is recorded for subsequent debugging and maintenance, ensuring that the multimedia application configuration meets expected functionalities.
[0046] In this embodiment, the electronic device first acquires target function configuration data, which includes performance optimization data and / or power consumption optimization data for the target multimedia application. Then, after the target multimedia application is launched, it is configured according to the target function configuration data. By acquiring and applying performance optimization data, the application is ensured to run optimally on various devices. By applying power consumption optimization data, the energy consumption of the device when running the target multimedia application can be effectively reduced, extending battery life. After the target multimedia application is launched, dynamic adjustments are made based on real-time function configuration data, allowing the application to flexibly adapt to the current environment and needs, further optimizing performance and power consumption. Furthermore, the updates to the multimedia application's performance and power consumption optimization configurations are imperceptible to the user of the electronic device, requiring no user intervention such as updating or restarting, maximizing the user experience and effectively improving the optimization effect of the multimedia application.
[0047] Based on the above embodiments, Figure 3 This is a schematic diagram illustrating the implementation flow of an application optimization method provided in another embodiment of this application. Figure 3 The illustrated embodiment uses the example of an electronic device obtaining target function configuration data from a target server. The target server includes a cloud server or a remote server, such as... Figure 3 As shown, the method may include the following steps 301 to 304:
[0048] Step 301: Send a configuration request message to the target server. The configuration request message is used to obtain the target function configuration data.
[0049] It should be understood that a remote server can be a Remote Update Service (RUS). An RUS is a system used to manage and implement software upgrades for servers and devices, especially in large enterprise and network environments. An RUS typically includes a central server responsible for storing and managing update packages and providing remote access.
[0050] In some embodiments, the target server pre-stores configuration data corresponding to different electronic devices. Different configuration data correspond to different device identifiers. The configuration request information sent by the electronic device to the target server includes the target device identifier of the electronic device. Accordingly, the target function configuration data is the configuration data corresponding to the target device identifier. For example, the device identifier may be the model of the electronic device, or a unique identification number, etc.
[0051] In other embodiments, the cloud server and the remote server have different priorities. For example, the priority of the cloud server can be set to be higher than that of the remote server. This application does not limit this.
[0052] One way to send configuration request information from an electronic device to a target server is as follows: the electronic device sends configuration request information to the server with higher priority among the cloud server and the remote server; and if preset conditions are met, it sends configuration request information to the server with lower priority. The preset conditions include not receiving the target function configuration data sent by the higher priority server within a preset time period, or the initial configuration data sent by the higher priority server failing verification.
[0053] For example, taking the case where the priority of the cloud server is higher than that of the remote server, the electronic device first sends configuration request information to the cloud server. If the target function configuration data sent by the cloud server is not received within a preset time period, or if the initial configuration data sent by the cloud server fails to pass verification, then the remote server sends configuration request information.
[0054] Step 302: Receive target function configuration data sent by the target server. The target function configuration data is data in a preset configuration protocol format, which includes an application list format and a function configuration format.
[0055] In some embodiments, after receiving configuration request information from an electronic device, the target server first verifies the configuration request information to confirm whether the electronic device has permission to request data. If the verification passes and the electronic device has permission to request data, the target server sends target function configuration data to the electronic device, and the electronic device receives the target function configuration data sent by the target server.
[0056] The application list format is mainly used to add a list of applications supported by electronic devices. Related functional modules only apply to applications on this list. The application list format is: "AL":["Application Package Name 1", "Application Package Name 2", "Application Package Name 3", ..., "Application Package Name N"]; a corresponding configuration example is: {"AL":["com.example.demo1","com.example.demo2","com.example.demo3"]}, meaning the electronic device supports applications including com.example.demo1, com.example.demo2, and com.example.demo3.
[0057] The function configuration format includes sub-formats for function switches, performance optimization, and power consumption optimization. Details are as follows:
[0058] (1) Configuration Sub-format of Function Switches: Function switches include the PerformanceSwitch and the PowerSwitch. Data using the configuration sub-format of the function switches is used to indicate the status of the performance optimization function and / or the power optimization function, which includes on or off. The format of the PerformanceSwitch is: "PerformanceSwitch":"true / false"; the format of the PowerSwitch is: "PowerSwitch":"true / false"; where true represents on and false represents off. A corresponding configuration example is: {"PerformanceSwitch":"true","PowerSwitch":"false"}, meaning the performance optimization switch is on and the power optimization switch is off.
[0059] (2) Performance Optimization Configuration Sub-Format: Data using the performance optimization configuration sub-format is used to configure performance optimization events, the performance improvement operations corresponding to the performance optimization events, and the duration of the performance improvement. Here, a performance optimization event is a performance event; the performance improvement operation corresponding to the performance optimization event is a performance improvement event; and the duration of the performance improvement is the duration of the improvement.
[0060] The performance optimization configuration (PerfEvent) is mainly used to configure the performance event identifier (ID) and the corresponding performance enhancement operation. The format is: "PerfEvent":[[Performance Event ID 1, Performance Enhancement Event ID 1, Enhancement Duration 1],[Performance Event ID 2, Performance Enhancement Event ID 2, Enhancement Duration 2], ...,[Performance Event ID N, Performance Enhancement Event ID N, Enhancement Duration N]].
[0061] The performance events and their corresponding IDs are shown in Table 1 below.
[0062] Table 1
[0063] MEDIA_LOAD_START 100 The application starts to enter the page MEDIA_LOAD_END 101 Application loading page complete MEDIA_PLAY_SWITCH_START 102 Media playback switching begins MEDIA_PLAY_SWITCH_END 103 Media playback switch ended MEDIA_PLAY_START 104 Media playback begins MEDIA_PLAY_END 105 Media broadcast ended MEDIA_IMPORT_START 106 Media import begins MEDIA_IMPORT_END 107 Media import complete MEDIA_EXPORT_START 108 Media export begins MEDIA_EXPORT_END 109 Media export complete
[0064] The performance enhancement events and their corresponding IDs are shown in Table 2 below, including operations such as central processing unit (CPU) frequency increase, graphics processing unit (GPU) frequency increase, and double data rate (DDR) frequency increase.
[0065] Table 2
[0066]
[0067]
[0068] The duration of the boost is expressed in numbers, in milliseconds.
[0069] As an example, the corresponding configuration instance is: {"PerfEvent":[[102,4008,500],[106,4006,10000]]}, that is, the performance event ID is 102, corresponding to the media playback switching start event, the performance boost event is 4008, corresponding to the full performance mode, CPU, GPU and DDR frequency boost; the boost duration is 500 milliseconds; the performance event ID is 106, corresponding to the media import start, the performance boost event is 4006, corresponding to the CPU and DDR frequency boost; the boost duration is 10000 milliseconds.
[0070] (3) Power Optimization Configuration Sub-format: Data using the Power Optimization Configuration Sub-format (PowerSwitch) is used to configure the enabling and / or disabling conditions of each power module corresponding to the target multimedia application. Enabling and disabling conditions include at least one of temperature, usage frequency, and battery level. The format is: "PowerSwitch":[Reduce volume, reduce brightness, disable vibration, disable background synchronization, disable super-resolution, disable color enhancement, disable SHARPNESS, disable True Color Vision], where each switch has a value of 0 or 1, with 1 indicating that the relevant function is enabled. Taking "Reduce volume" as an example, when a specific scenario triggers the power module to be enabled, if the corresponding configuration for "Reduce volume" is 1, the phone volume will be automatically reduced to decrease power consumption.
[0071] The specific conditions for enabling the power consumption module include:
[0072] TempEvent is mainly used to configure temperature thresholds, which enable the power module when the temperature threshold is high and disable the power module when the temperature threshold is low. The format is: "TempEvent":[high temperature threshold, low temperature threshold], and the value is represented by a number in degrees Celsius.
[0073] MB is mainly used to configure the power consumption and application usage time under frequency-triggered scenarios. For example, when the user's phone battery is less than the phone battery threshold and the user's current application usage time is greater than the application usage time threshold, the power consumption module function is enabled. The format is: "MB":[phone battery threshold, application usage time threshold], and the values are represented by numbers, in percentage and minutes respectively.
[0074] HF is mainly used to configure the application usage time in high-frequency triggering scenarios. When the user's current application usage time exceeds the application usage time threshold, the power consumption module function is enabled. The format is: "HF": application usage time threshold, and the value is represented by a number in minutes.
[0075] LB is mainly used to configure the power threshold when the user's phone battery is low. When the user's phone battery is lower than the power threshold, the power consumption module is enabled. The format is: "LB": Phone battery threshold, and the value is represented by a number in percentage.
[0076] In summary, an example configuration instance corresponding to the power optimization configuration sub-format is: {"PowerSwitch":[1,1,0,0,1,1,1,1],"TempEvent":[45,40],"MB":[60,60],"HF":90,"LB":30}. This means the power module is enabled at 45 degrees Celsius and disabled when the temperature returns to 40 degrees Celsius. The power module is enabled when the user's phone battery is below 60% and the current application usage time is greater than 60 minutes; it is enabled when the current application usage time is greater than 90 minutes; and it is enabled when the user's phone battery is below 30%. Enabling the power module results in the following operations: reducing volume, reducing brightness, disabling super-resolution, disabling color enhancement, disabling sharpness, and disabling True Color Vision.
[0077] Step 303: Based on the preset configuration protocol format, parse the target application list of the target multimedia applications and the target configuration data corresponding to the target multimedia applications in the target function configuration data, and perform integrity verification.
[0078] In some embodiments, parsing the target application list and the target configuration data corresponding to the target multimedia applications in the target function configuration data can be understood as splitting the data based on a preset configuration protocol format.
[0079] In some embodiments, the preset configuration protocol format further includes a hash verification format. Data using the hash verification format is used to indicate the target hash value corresponding to the target function configuration data. The target function configuration data includes data using the hash verification format, the application list format, and the function configuration format. In other words, the target function configuration data sent by the target server includes the target hash value of the sent data.
[0080] The hash verification format (Hash) is primarily used to verify the integrity and correctness of data after an electronic device receives data from a server. The format is: "Hash": the calculated hash value, represented by a number. The specific value is the hash value calculated based on all configuration fields. A corresponding configuration example is: {"Hash":933601473}, meaning that the target hash value of the target function configuration data sent by the target server includes the target hash value of the data being sent.
[0081] Furthermore, the electronic device obtains the target hash value from the target function configuration data based on the hash verification format, and obtains the target application list and target function configuration data from the target function configuration data based on the application list format and function configuration format. It then performs hash verification, i.e., hash calculation, on the target application list and target function configuration data to obtain the hash value to be verified. Finally, based on the hash value to be verified and the target hash value, it determines whether the target function configuration data passes the verification. If the hash value to be verified and the target hash value are the same, the target function configuration data passes the verification.
[0082] In one possible implementation, the preset configuration protocol format also includes a test configuration format. The data using the test configuration format is used to indicate the test group identifier, the various device groups corresponding to all electronic devices, the target device group to which the electronic device used for testing belongs, and the test configuration data corresponding to the test application in the target device group. The test configuration data is data using the application list format and the function configuration format, and the target function configuration data is data using the test configuration format, the application list format, and the function configuration format.
[0083] For example, the test configuration format is ABTest, mainly used to support A / B testing for different configuration items, enabling different configuration items to take effect on different devices. The format is: "ABTest":[Experiment ID, Number of Device Groups, [Device Group 1, Device Group 2, ..., Device Group N, {Specific Configuration of Experiment Group}], where Experiment ID is the test group identifier, represented by numbers, which can be set arbitrarily, but must be unique; Number of Device Groups is the number of device groups corresponding to all electronic devices, represented by numbers, indicating how many groups all devices are divided into; "Device Group 1, Device Group 2, ..., Device Group N" are the target device groups to which the electronic devices used for testing belong, represented by numbers; Specific Configuration of Experiment Group is the test configuration data corresponding to the test application in the target device group. The Specific Configuration of Experiment Group is based on the application list format and function configuration format, and any configuration can be selected for the experiment.
[0084] A corresponding configuration example is as follows: {"AL":["com.example.demo1","com.example.demo2"],"ABTest":[101,10,[0,2,4,6],{"AL":["com.example.demo2","com.example.demo3"]}]}, meaning the experiment ID is 101, there are 10 device groups in total, and groups 0, 2, 4, and 6 are selected to configure applications com.example.demo2 and com.example.demo3; the remaining groups are configured to configure applications com.example.demo1 and com.example.demo2.
[0085] {"PerfEvent":[[102,4008,500],[106,4006,10000]],"ABTest":[101,10,[1,5,9],{"PerfEvent":[[102,4001,1000],[106,4008,20000]]}]}, meaning the experiment ID is 101, there are 10 device groups in total, and the 1st, 5th, and 9th devices from the 10 groups are selected. The performance optimization configuration is as follows: performance event ID is 102, corresponding to the media playback switching start event, performance boost event is 4001, corresponding to CPU frequency increase, level L1; boost duration is 1000 milliseconds; performance event ID is 106, corresponding to the media import start event, performance boost event is 4008, corresponding to full performance mode, CPU, GPU, and DDR frequency increase; boost duration is 20000 milliseconds. The remaining groups have the following performance optimization configurations: Performance event ID 102 corresponds to the media playback switching start event, performance boost event 4008 corresponds to full performance mode, CPU, GPU and DDR frequency boost; boost duration is 500 milliseconds; Performance event ID 106 corresponds to the media import start event, performance boost event 4006 corresponds to CPU and DDR frequency boost; boost duration is 10000 milliseconds.
[0086] When a test configuration format is configured in the preset configuration protocol format, one way to configure the target multimedia application according to the target function configuration data is as follows: Based on the test configuration format and the target function configuration data, determine the device group information to which the electronic device belongs and the target device group information from each device group. If the target device group information includes the device group information to which the electronic device belongs, configure the test application according to the test configuration data.
[0087] Step 304: After the target multimedia application is started, and both the integrity verification of the target application list and the integrity verification of the target function configuration data are passed, configure the target multimedia application according to the target configuration data.
[0088] In some embodiments, after the target multimedia application is launched, and both the integrity verification of the target application list and the integrity verification of the target function configuration data pass, the electronic device reads the target function configuration data and sends it to the corresponding functional module. This initializes the relevant settings of the target multimedia application, such as audio and video formats, playlists, etc., and then adjusts user interface elements, such as buttons, menus, and views, according to functional requirements to meet user experience needs. Furthermore, after configuration, preliminary testing can be performed to ensure all functions operate normally and the user interface responds promptly. Important information during the configuration process is also recorded for subsequent debugging and maintenance, ensuring the multimedia application configuration meets expected functionalities.
[0089] In some embodiments, the target server may also send updated target function configuration data to the electronic device and notify the electronic device to refresh the data when it detects a change in the configuration data of the electronic device, so as to better meet the user's needs.
[0090] In this embodiment, the electronic device first sends a configuration request to the target server to obtain target function configuration data. Then, it receives the target function configuration data sent by the target server. This data is formatted using a preset configuration protocol. Based on this protocol, the device parses the target application list and corresponding target configuration data for the target multimedia applications within the target function configuration data and performs integrity verification. Then, after the target multimedia application starts, and both the integrity verification of the target application list and the target function configuration data pass, the target multimedia application is configured according to the target configuration data. Integrity verification ensures the accuracy of the target function configuration data and application list, reducing application crashes or malfunctions caused by configuration errors. Distributing the target function configuration data required by the electronic device through target server configuration improves the real-time effectiveness of configuration, allowing for real-time release and application of adjustments to performance and power consumption strategies. Updates to the target function configuration data are imperceptible to the user of the electronic device, eliminating the need for updates or restarts, thus maximizing the user experience. At the same time, by using target server configuration in conjunction with configuration protocols, different parameters and effective conditions can be configured for different types and models of electronic devices, and different parameters can also be configured for different groups of the same device, making policy configuration more flexible and targeted.
[0091] In one embodiment, taking the communication between an electronic device and a target server to obtain target function configuration data as an example, please refer to... Figure 4 This is an exemplary flowchart of an application optimization method provided in one embodiment of this application. Figure 4 As shown, the method may include the following steps 401 to 409:
[0092] Step 401: Electronic device initialization, starting the communication and parsing framework.
[0093] Step 402: The electronic device sends a configuration request to the target server.
[0094] The configuration request information includes the target device identifier of the electronic device.
[0095] Step 403: The target server verifies the configuration request information to confirm whether the electronic device has permission to request data.
[0096] Step 404: If the target server confirms that the electronic device has permission to request data, it sends target function configuration data to the electronic device. The target function configuration data includes a list of target applications and target function configuration data.
[0097] Step 405: The electronic device obtains the list of target applications, verifies the completeness of the information, and parses it.
[0098] Step 406: The electronic device launches an application from the target application list.
[0099] Step 407: The electronic device obtains the target function configuration data corresponding to the target application list, verifies whether the information is complete, and parses it.
[0100] Step 408: The electronic device distributes the parsed application information to each functional module and enables performance and power consumption optimization methods for applications in the target application list.
[0101] Step 409: When the target server detects a change in the configuration data of the electronic device, it sends updated target function configuration data to the electronic device.
[0102] It should be noted that the specific implementation of steps 401 to 409 above can refer to the above. Figure 3 The descriptions in the illustrated embodiments will not be repeated here.
[0103] Based on the above embodiments, Figure 5 This is a schematic diagram illustrating the implementation flow of an application optimization method provided in another embodiment of this application. Figure 5 In the illustrated embodiment, the example of obtaining target function configuration data from the local database of the electronic device is used for explanation. Figure 5As shown, the method may include the following steps 501 to 503:
[0104] Step 501: Send configuration request information to the target server.
[0105] It should be understood that the target server includes a cloud server or a remote server. The remote server can be a Remote Update Service (RUS), which is a system used to manage and implement server and device software upgrades.
[0106] In some embodiments, the target server pre-stores configuration data corresponding to different electronic devices. Different configuration data correspond to different device identifiers. The configuration request information sent by the electronic device to the target server includes the target device identifier of the electronic device. Accordingly, the target function configuration data is the configuration data corresponding to the target device identifier.
[0107] Step 502: Under the condition that the preset conditions are met, retrieve the target function configuration data from the local database. The preset conditions include that the target function configuration data sent by the target server is not received within a preset time period, or that the initial configuration data sent by the target server fails the verification.
[0108] In some embodiments, the target server has pre-stored target function configuration data. If the electronic device sends a configuration request to the target server but does not receive the target function configuration data sent by the target server within a preset time period, or if the initial configuration data sent by the target server fails verification, the electronic device's local database also stores a default target function configuration data. The electronic device can obtain the target function configuration data from the local database to configure.
[0109] In other words, when obtaining target function configuration data from the target server, there may be situations such as target server verification failure, target server resource distribution error, incomplete local information, local information verification error, data acquisition failure, or empty data. Therefore, the electronic device also stores a default copy of the target function configuration data locally. When all attempts to obtain the data from the target server fail, or when the obtained data is problematic, the local default data will be distributed to each functional module for configuration to ensure that the electronic device can obtain usable target function configuration data.
[0110] It should be noted that the default target function configuration data stored locally on electronic devices also uses a preset configuration protocol format. This preset configuration protocol format includes an application list format and a function configuration format, and the specific configuration method is the same as described above. Figure 3 The descriptions in the illustrated embodiments will not be repeated here.
[0111] Step 503: After the target multimedia application is started, configure the target multimedia application according to the target function configuration data.
[0112] In some embodiments, after acquiring the target function configuration data, the electronic device, upon launching the target multimedia application, reads the target function configuration data, parses the read data, and sends it to the corresponding functional module. This initializes the relevant settings of the target multimedia application, such as audio and video formats, playlists, etc., and then adjusts user interface elements, such as buttons, menus, and views, according to functional requirements to meet user experience needs. Furthermore, after configuration, preliminary testing can be performed to ensure all functions operate correctly and the user interface responds promptly. Important information during the configuration process is also recorded for subsequent debugging and maintenance, ensuring the multimedia application configuration meets expected functionalities.
[0113] It should be noted that when the target function configuration data in the cloud server, the target function configuration data in the remote server, and the target function configuration data in the local database of the electronic device all exist and are normal, priority can be set for the three. For example, the priority of the cloud server is higher than that of the remote server, the priority of the remote server is higher than that of the local database, and the electronic device obtains the target function configuration data according to the priority.
[0114] In this embodiment, the electronic device first sends a configuration request to the target server. Then, under preset conditions, it retrieves target function configuration data from the local database. These preset conditions include not receiving target function configuration data from the target server within a preset time period, or the initial configuration data sent by the target server failing verification. Subsequently, after the target multimedia application is launched, it configures the target multimedia application according to the target function configuration data. This method of retrieving target function configuration data from the local database when the electronic device does not receive target function configuration data from the target server within a preset time period, or when the initial configuration data sent by the target server fails verification, allows the electronic device to complete performance and power consumption configuration in most cases, improving the stability of the framework operation. Furthermore, using a preset configuration protocol format for configuration data can effectively filter out interference information.
[0115] In one embodiment, taking the retrieval of target function configuration data from the local database of an electronic device as an example, please refer to... Figure 6 This is an exemplary flowchart of an application optimization method provided in another embodiment of this application. Figure 6 As shown, the method may include the following steps 601 to 604:
[0116] Step 601: The electronic device obtains target function configuration data from the local database. The target function configuration data includes a list of target applications and target function configuration data.
[0117] Step 602: The electronic device parses the target application list and target function configuration data.
[0118] Step 603: The electronic device launches an application from the target application list.
[0119] Step 604: The electronic device distributes the parsed application information to each functional module and enables performance and power consumption optimization methods for applications in the target application list.
[0120] In summary, compared to the traditional application push and user-manually updated, user-aware update methods, the application optimization method provided in this application improves the timeliness and convenience of framework policy updates, achieving a seamless update process and enhancing the user experience. The three-tiered policy configuration based on cloud servers, remote servers, and local configurations also improves the stability of the framework. Custom preset configuration protocol formats and verification methods effectively filter out interference information. In case of transmission errors, hash verification formats can be used to filter and verify the integrity of messages from the target server, facilitating framework maintenance and expansion. Furthermore, specific additional protocol formats, such as test configuration formats, allow for the push of different configuration data to different devices, ensuring diverse policy configurations.
[0121] It should be understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0122] Based on the foregoing embodiments, this application provides an application optimization device, which includes various modules and units included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit, a microprocessor, a digital signal processor, or a field-programmable gate array, etc.
[0123] Figure 7This is a structural schematic diagram of an application optimization device provided in one embodiment of this application, such as... Figure 7 As shown, the application optimization device 700 includes an acquisition module 701 and a configuration module 702, wherein:
[0124] The acquisition module 701 is used to acquire target function configuration data, which includes performance optimization data and / or power consumption optimization data for the target multimedia application. The performance optimization data is used to improve the performance of the target multimedia application, and the power consumption optimization data is used to reduce the power consumption of the target multimedia application. The configuration module 702 is used to configure the target multimedia application according to the target function configuration data after the target multimedia application is started.
[0125] In some embodiments, the acquisition module 701 is specifically used to: acquire the target function configuration data from a target server, the target server including a cloud server or a remote server.
[0126] In some embodiments, the acquisition module 701 is specifically used to: send configuration request information to the target server, the configuration request information being used to acquire the target function configuration data; and receive the target function configuration data sent by the target server.
[0127] In some embodiments, the cloud server and the remote server have different priorities, and the apparatus further includes a sending module. The sending module is specifically configured to: send the configuration request information to the server with higher priority among the cloud server and the remote server; and, under preset conditions, send the configuration request information to the server with lower priority; wherein the preset conditions include not receiving the target function configuration data sent by the higher priority server within a preset time period, or the initial configuration data sent by the higher priority server failing verification.
[0128] In some embodiments, the target server pre-stores configuration data corresponding to different electronic devices, and different configuration data correspond to different device identifiers. The configuration request information includes the target device identifier of the electronic device, and the target function configuration data is the configuration data corresponding to the target device identifier.
[0129] In some embodiments, the acquisition module 701 is specifically used to: receive the target function configuration data sent by the target server when it detects a change in the configuration data of the electronic device.
[0130] In some embodiments, the acquisition module 701 is specifically used to: acquire the target function configuration data from the local database of the electronic device.
[0131] In some embodiments, the target server pre-stores the target function configuration data, and the target server includes a cloud server and / or a remote server. The sending module is further configured to send configuration request information to the target server. The obtaining module 701 is specifically configured to: obtain the target function configuration data from the local database when preset conditions are met; wherein, the preset conditions include not receiving the target function configuration data sent by the target server within a preset time period, or the initial configuration data sent by the target server fails verification.
[0132] In some embodiments, the target function configuration data is data using a preset configuration protocol format, which includes an application list format and a function configuration format. Specifically: the function configuration format includes a function switch configuration sub-format, a performance optimization configuration sub-format, and a power consumption optimization configuration sub-format; the function switch includes a performance optimization function switch and a power consumption optimization function switch; data using the function switch configuration sub-format is used to indicate the state of the performance optimization function and / or the state of the power consumption optimization function, the state including on or off; data using the performance optimization configuration sub-format is used to configure performance optimization events, performance improvement operations corresponding to the performance optimization events, and the duration of performance improvement; data using the power consumption optimization configuration sub-format is used to configure the on / off conditions of each power consumption module corresponding to the target multimedia application, the on / off conditions including at least one of temperature, usage frequency, and battery level.
[0133] In some embodiments, the configuration module 702 is specifically used to: parse the target application list of the target multimedia application and the target configuration data corresponding to the target multimedia application in the target function configuration data based on the preset configuration protocol format, and perform integrity verification; if the integrity verification of the target application list and the integrity verification of the target function configuration data are both passed, configure the target multimedia application according to the target configuration data.
[0134] In some embodiments, the preset configuration protocol format further includes a hash verification format, whereby data using the hash verification format is used to indicate the target hash value corresponding to the target function configuration data. The target function configuration data includes data using the hash verification format, the application list format, and the function configuration format. The device further includes a verification module and a determination module. The acquisition module 701 is further configured to acquire the target hash value from the target function configuration data based on the hash verification format; the acquisition module 701 is further configured to acquire the target application list and the target function configuration data from the target function configuration data based on the application list format and the function configuration format; the verification module is configured to perform hash verification on the target application list and the target function configuration data to obtain a hash value to be verified; the determination module is configured to determine whether the target function configuration data passes verification based on the hash value to be verified and the target hash value, wherein if the hash value to be verified is the same as the target hash value, the target function configuration data passes verification.
[0135] In some embodiments, the preset configuration protocol format further includes a test configuration format. Data using the test configuration format is used to indicate the test group identifier, each device group corresponding to all electronic devices, the target device group to which the electronic device used for testing belongs, and the test configuration data corresponding to the test application in the target device group. The test configuration data is data using the application list format and the function configuration format. The target function configuration data is data using the test configuration format, the application list format, and the function configuration format. The configuration module is specifically used to: determine the device group information to which the electronic device belongs and the target device group information from each device group according to the test configuration format and the target function configuration data; and configure the test application according to the test configuration data when the target device group information includes the device group information to which the electronic device belongs.
[0136] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0137] It should be noted that, in the embodiments of this application... Figure 7The module division shown in the application optimization device is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, exist as separate physical units, or be integrated into one unit with two or more units. The integrated units can be implemented in hardware, as software functional units, or a combination of both.
[0138] It should be noted that, in the embodiments of this application, if the above-described methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0139] This application provides a computer device, the internal structure of which can be shown in the following embodiment: Figure 8 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements the methods described above.
[0140] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the application optimization method provided in the above embodiments.
[0141] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to execute the steps in the application optimization method provided in the above-described method embodiments.
[0142] Those skilled in the art will understand that Figure 8The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0143] In one embodiment, the application optimization apparatus provided in this application can be implemented as a computer program, which can be implemented in the form of, for example... Figure 8 The device operates on the computer device shown. The memory of the computer device can store the various program modules that make up the above-described apparatus. The computer program, composed of the various program modules, causes the processor to execute the steps of the methods in the various embodiments of this application described in this specification.
[0144] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0145] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0146] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0147] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0148] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.
[0149] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0150] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.
[0151] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0152] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0153] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0154] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0155] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0156] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An application optimization method, characterized in that, Applied to electronic devices, the method includes: Obtain target function configuration data, which includes performance optimization data and / or power consumption optimization data for the target multimedia application. The performance optimization data is used to improve the performance of the target multimedia application, and the power consumption optimization data is used to reduce the power consumption of the target multimedia application. After the target multimedia application is launched, the target multimedia application is configured according to the target function configuration data.
2. The method according to claim 1, characterized in that, The acquisition of target function configuration data includes: The target function configuration data is obtained from the target server, which may include a cloud server or a remote server.
3. The method according to claim 2, characterized in that, The step of obtaining the target function configuration data from the target server includes: Send configuration request information to the target server, the configuration request information being used to obtain the target function configuration data; Receive the target function configuration data sent by the target server.
4. The method according to claim 3, characterized in that, The cloud server and the remote server have different priorities, and sending configuration request information to the target server includes: Send the configuration request information to the server with the higher priority among the cloud server and the remote server; Under the condition that the preset conditions are met, the configuration request information is sent to the server with the lower priority. The preset conditions include not receiving the target function configuration data from a high-priority server within a preset time period, or the initial configuration data sent by the high-priority server failing verification.
5. The method according to any one of claims 2-4, characterized in that, The target server pre-stores configuration data corresponding to different electronic devices. Different configuration data correspond to different device identifiers. The configuration request information includes the target device identifier of the electronic device, and the target function configuration data is the configuration data corresponding to the target device identifier.
6. The method according to claim 2, characterized in that, The step of obtaining the target function configuration data from the target server includes: Receive the target function configuration data sent by the target server when it detects a change in the configuration data of the electronic device.
7. The method according to claim 1, characterized in that, The acquisition of target function configuration data includes: The target function configuration data is obtained from the local database of the electronic device.
8. The method according to claim 7, characterized in that, The target server pre-stores the target function configuration data, and the target server includes a cloud server and / or a remote server. Before retrieving the target function configuration data from the local database of the electronic device, the method further includes: Send configuration request information to the target server; The step of obtaining the target function configuration data from the local database of the electronic device includes: Under the condition that the preset conditions are met, the target function configuration data is obtained from the local database; The preset conditions include not receiving the target function configuration data sent by the target server within a preset time period, or the initial configuration data sent by the target server failing verification.
9. The method according to claim 1, characterized in that, The target function configuration data is data using a preset configuration protocol format, which includes an application list format and a function configuration format, wherein: The function configuration format includes a function switch configuration sub-format, a performance optimization configuration sub-format, and a power consumption optimization configuration sub-format; The function switch includes a performance optimization function switch and a power consumption optimization function switch. Data in the configuration sub-format of the function switch is used to indicate the status of the performance optimization function and / or the status of the power consumption optimization function, the status including on or off. The data using the aforementioned performance optimization configuration sub-format is used to configure performance optimization events, the performance improvement operations corresponding to the performance optimization events, and the duration of the performance improvement. The data using the power optimization configuration sub-format is used to configure the on-state and / or off-state conditions of each power consumption module corresponding to the target multimedia application. The on-state and off-state conditions include at least one of temperature, usage frequency, and battery level.
10. The method according to claim 9, characterized in that, The step of configuring the target multimedia application according to the target function configuration data includes: Based on the preset configuration protocol format, the target application list of the target multimedia application and the target configuration data corresponding to the target multimedia application in the target function configuration data are parsed and their integrity is verified. If both the integrity verification of the target application list and the integrity verification of the target function configuration data pass, the target multimedia application is configured according to the target configuration data.
11. The method according to claim 10, characterized in that, The preset configuration protocol format also includes a hash verification format. Data using the hash verification format is used to indicate the target hash value corresponding to the target function configuration data. The target function configuration data includes data using the hash verification format, the application list format, and the function configuration format. The step of parsing and performing integrity verification on the target application list and the target function configuration data corresponding to the target multimedia application in the target function configuration data based on the preset configuration protocol format includes: Based on the hash verification format, the target hash value is obtained from the target function configuration data; Based on the application list format and function configuration format, the target application list and the target function configuration data are obtained from the target function configuration data; Perform hash verification on the target application list and the target function configuration data to obtain the hash value to be verified; Based on the hash value to be verified and the target hash value, it is determined whether the target function configuration data passes verification. If the hash value to be verified is the same as the target hash value, the target function configuration data passes verification.
12. The method according to claim 9, characterized in that, The preset configuration protocol format also includes a test configuration format. Data using this test configuration format is used to indicate the test group identifier, all device groups corresponding to all electronic devices, the target device group to which the electronic device used for testing belongs, and the test configuration data corresponding to the test application in the target device group. The test configuration data is data using the application list format and the function configuration format. The target function configuration data is data using the test configuration format, the application list format, and the function configuration format. Configuring the target multimedia application according to the target function configuration data includes: Based on the test configuration format and the target function configuration data, determine the device group information to which the electronic device belongs, and the target device group information, from each device group; If the target device group information includes the device group information to which the electronic device belongs, the test application is configured according to the test configuration data.
13. An application optimization device, characterized in that, Applied to electronic devices, the device includes: An acquisition module is used to acquire target function configuration data, which includes performance optimization data and / or power consumption optimization data for a target multimedia application. The performance optimization data is used to improve the performance of the target multimedia application, and the power consumption optimization data is used to reduce the power consumption of the target multimedia application. The configuration module is used to configure the target multimedia application according to the target function configuration data after the target multimedia application is started.
14. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1 to 12.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 12.
16. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 12.