Dynamic update method, system, device and medium for cold start application blacklist

By querying and comparing the application's startup data in the cold start blacklist, dynamically updating the cold start application blacklist, solving the problem of cumbersome and lag in the existing technology, real-time optimization and synchronous update of cold start applications are achieved.

CN115146234BActive Publication Date: 2025-08-15SPREADTRUM SEMICON (NANJING) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210771181.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2025-08-15
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

The process of updating cold-start application blacklist in the prior art is cumbersome and has a long cycle, and it has lag in testing of newly launched applications, making testing of some applications easy to miss.

Method used

By querying the application to be detected in the cold start blacklist, obtaining its startup data in the cold start environment as the benchmark data, using the cold start acceleration mechanism to start the application and compare the acceleration startup data. If it is not better than the benchmark data, add the cold start blacklist to update and synchronize the data to the server.

Benefits of technology

Real-time dynamic updates of cold-start applications are realized, applications that are not suitable for cold-start acceleration are continuously discovered, and the update cycle of cold-start application blacklist is optimized, which is suitable for multi-terminal environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115146234B_ABST
    Figure CN115146234B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and medium for dynamically updating a cold start application blacklist. The method for dynamically updating a cold start application blacklist comprises: querying whether an application to be detected is included in the cold start blacklist; if not, obtaining the startup data of the application to be detected in a cold start environment as benchmark data; starting the application to be detected through a cold start acceleration mechanism, and obtaining accelerated startup data; comparing whether the accelerated startup data of the application to be detected is better than the benchmark data; if not, adding the application to be detected to the cold start blacklist for updating. The present invention can continuously discover applications that are not suitable for cold start acceleration on the terminal, and dynamically update the cold start application blacklist of the terminal and the server in real time, and send the updated cold start application blacklist to other terminals with similar hardware environments through the server, thereby realizing dynamic updates of all terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cold start technology, and in particular to a method, system, device and medium for dynamically updating a cold start application blacklist. Background Art

[0002] In the existing technical solutions, the cold start application blacklist needs to be tested manually by the terminal manufacturer or a third party. If an application is found that is not suitable for the cold start acceleration mechanism, the application will be pre-set to the cold start application blacklist. The update process is relatively passive, and the terminal system needs to be upgraded to complete the update of the cold start application blacklist in the terminal, which further delays the cold start application blacklist update cycle of the terminal.

[0003] On the other hand, the applications tested manually by terminal manufacturers or third parties are concentrated on mainstream or high-popularity applications. The method of updating the cold start application blacklist through system upgrades performed manually by terminal manufacturers or third parties has limitations, and the testing of newly launched applications is delayed, which can easily lead to omission of some applications. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to overcome the defects of the prior art in that the cold start application blacklist method is cumbersome and has a long cycle, and to provide a dynamic update method, system, device and medium for the cold start application blacklist.

[0005] The present invention solves the above technical problems through the following technical solutions:

[0006] A first aspect provides a method for dynamically updating a cold start application blacklist, the method comprising:

[0007] Check whether the application to be detected is included in the cold start blacklist;

[0008] If not, obtaining startup data of the application to be detected in a cold start environment as the benchmark data;

[0009] Starting the application to be detected through a cold start acceleration mechanism and obtaining accelerated startup data;

[0010] comparing whether the accelerated startup data of the application to be detected is better than the benchmark data;

[0011] If not, the application to be detected is added to the cold start blacklist for updating.

[0012] Preferably, obtaining startup data of the application to be tested in a cold start environment as the benchmark data includes:

[0013] querying whether the cold start data list includes the startup data of the application to be detected;

[0014] If yes, obtaining the startup data of the application to be detected from the cold start data list as the benchmark data;

[0015] If not, the application to be detected is started, and the startup data of the application to be detected is recorded as the benchmark data.

[0016] Preferably, the dynamic update method further includes:

[0017] updating the cold start data list according to the acquired startup data and / or accelerated startup data;

[0018] And / or, the acquired startup data and / or accelerated startup data are sent to a server for storage to update a cold start data list stored in the server; wherein the server is connected to multiple terminals.

[0019] Preferably, the dynamic update method further includes:

[0020] Obtaining operating environment information of the dynamic update method;

[0021] The operating environment information is added to the cold start application blacklist and uploaded to the server side for synchronously updating the cold start application blacklist stored on the server side.

[0022] Preferably, the terminal obtains the startup data and accelerated startup data of the application to be detected when the installation of the application to be detected is completed or when the terminal is idle.

[0023] A second aspect provides a dynamic update system for a cold start application blacklist, the dynamic update system comprising:

[0024] Storage module, used to pre-store the cold start blacklist;

[0025] A query module, configured to query whether there is an application to be detected in the cold start application blacklist;

[0026] A cold start detection module is used to obtain startup data of the application to be detected in a cold start environment as benchmark data; and to start the application to be detected through a cold start acceleration mechanism to obtain accelerated startup data;

[0027] The comparison module is configured to compare whether the accelerated startup data is better than the benchmark data, and add the application to be detected whose benchmark data is better than the accelerated startup data to the cold startup blacklist.

[0028] Preferably, the storage module also pre-stores a cold start data list;

[0029] The query module is further configured to query whether the application to be detected exists in the cold start data list;

[0030] The comparison module can retrieve the cold start data corresponding to the application to be detected in the cold start data list as the benchmark data.

[0031] Preferably, the storage module is further used to store the startup data and / or the accelerated startup data;

[0032] The dynamic update system further includes a communication module for sending the startup data and accelerated startup data to a server to update a cold start data list on the server; wherein the server is connected to a plurality of terminals.

[0033] Preferably, the query module is further used to obtain the operating environment information of the dynamic update system;

[0034] The communication module is further configured to associate the operating environment information of the dynamic update system with the cold start blacklist and upload it to the server side to update the cold start blacklist on the server side.

[0035] Preferably, the cold start detection module obtains the startup data of the application to be detected and the accelerated startup data of the application to be detected when the application to be detected is installed or in idle time.

[0036] A third aspect provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for dynamically updating the cold start application blacklist when executing the computer program.

[0037] A fourth aspect provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for dynamically updating the cold start application blacklist as described above is implemented.

[0038] The positive progress effect of the present invention is that it can detect the cold start data and acceleration data of applications not included in the cold start blacklist in a cold start environment, continuously discover applications that are not suitable for cold start acceleration on the terminal, and dynamically update the terminal's cold start application blacklist in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a flow chart of a method for dynamically updating a cold start application blacklist according to embodiment 1 of the present invention;

[0040] Figure 2 This is a module diagram of a dynamic update system for a cold start application blacklist according to embodiment 2 of the present invention;

[0041] Figure 3This is a schematic diagram of the hardware structure of an electronic device according to embodiment 3 of the present invention. DETAILED DESCRIPTION

[0042] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0043] Example 1

[0044] This embodiment provides a method for dynamically updating a cold start application blacklist. Figure 1 As shown, the dynamic update method includes:

[0045] S101, querying whether the cold start blacklist includes the application to be detected;

[0046] S102: If not, obtaining startup data of the application to be detected in a cold start environment as benchmark data;

[0047] S103, starting the application to be detected through a cold start acceleration mechanism, and obtaining accelerated startup data;

[0048] S104, comparing whether the accelerated startup data of the application to be detected is better than the benchmark data;

[0049] S105: If not, add the application to be detected to the cold start blacklist for updating.

[0050] As an achievable approach, obtaining startup data of the application to be tested in a cold start environment as benchmark data includes:

[0051] querying whether the cold start data list includes the startup data of the application to be detected;

[0052] If yes, obtaining the startup data of the application to be detected from the cold start data list as the benchmark data;

[0053] If not, the application to be detected is started, and the startup data of the application to be detected is recorded as the benchmark data.

[0054] Specifically, the execution subject of the dynamic update method described in this embodiment includes a terminal, and the terminal includes but is not limited to a mobile phone, a tablet computer, a laptop computer, etc. Taking a terminal using the Android system as an example, iorap is a cold start acceleration mechanism in the Android system. Applications in the terminal are generally installed to the terminal through pre-installation by the terminal manufacturer or downloaded by the user. The terminal manufacturer can perform cold start detection on mainstream or popular applications in the application market in the corresponding hardware environment, detect the startup data and accelerated startup data of the application, and add applications that are not suitable for iorap acceleration to a cold start application blacklist preset in the terminal, and record the name and version number of the corresponding application in the cold start application blacklist at the same time; on the other hand, applications suitable for acceleration are added to the cold start data list preset in the terminal, and the name and version number of the corresponding application, as well as the startup data and accelerated startup data in the corresponding hardware environment, are recorded in the cold start data list.

[0055] When a terminal finds a new application installation or application update, it will treat the application as an application to be detected and query the application to be detected in the cold start application blacklist. If the corresponding result is not found, the application to be detected needs to be detected in a cold start environment. The application to be detected is queried in the cold start data list. If the corresponding result is found, the cold start data of the application is used as the benchmark data X; if the corresponding result is not found, the corresponding application to be detected is cold started. Multiple cold starts can be performed according to the hardware environment and actual needs. The average value of the multiple cold start data is calculated, and the average value and version number of the cold start of the application to be detected are recorded as the benchmark data X of the application version; then iorap is turned on to perform cold start acceleration on the application to be detected, and the data Y of the accelerated startup of the application to be detected is recorded, or when the user cold starts the application for the first time, the data of the application to be detected accelerated by iorap is recorded; the X and Y data of the same application are compared. If the X data is better than the Y data, the application is not suitable for using the cold start acceleration mechanism, and the application should be updated to the terminal's cold start application blacklist. The X data and Y data include the startup time.

[0056] In one embodiment, both the benchmark data and the accelerated startup data include: startup duration of the application in a terminal cold start environment, the application name, and version information of the application.

[0057] As an implementable manner, the dynamic update method further includes:

[0058] The cold start data list is updated according to the acquired startup data and / or accelerated startup data.

[0059] Specifically, the acquired startup data and / or accelerated startup data is stored in the terminal to update the cold startup data list, enabling the terminal to identify and acquire all applications previously installed on the terminal, thereby avoiding repeated detection caused by repeated downloads of the same application after uninstallation. As an achievable method, the startup data and / or accelerated startup data can be stored in a non-deletable storage area of the terminal.

[0060] As an implementable manner, the dynamic update method further includes:

[0061] The acquired startup data and / or accelerated startup data are sent to a server for storage, so as to synchronously update a cold start data list stored in the server; wherein the server is connected to a plurality of terminals.

[0062] Each terminal updates the cold start data list on the server side to enable the server to update the cold start data list of the terminal connected to it. The update of the cold start data list of any terminal connected to the server can dynamically update all other terminals connected to the server.

[0063] In one embodiment, the server is a terminal manufacturer, and the update of the cold start data list on the server enables the updated cold start data list to be pre-stored in terminals subsequently produced by the terminal manufacturer.

[0064] As an implementable manner, the dynamic update method further includes:

[0065] Obtaining operating environment information of the dynamic update method;

[0066] The terminal hardware information and the cold start application blacklist are associated and uploaded to the server to update the blacklist data on the server.

[0067] Specifically, as an implementable method, the operating environment of the dynamic update method is the hardware information of the terminal. When the terminal updates the cold start application blacklist and / or cold start data list, the application startup number and accelerated startup data detected in the cold start environment are stored in the terminal, and the application startup number and accelerated startup data and the hardware information of the corresponding terminal are uploaded to the server side, which is used to update the cold start application blacklist and cold start data list of the corresponding hardware environment in the server side, so that the server side sends the updated cold start application blacklist and cold start data list to the corresponding other terminals, thereby updating the cold start application blacklist and cold start data list pre-stored in other terminals.

[0068] As a feasible method, when the server receives the updated cold start application blacklist and cold start data list of the terminal, it performs cold start detection on the application for different hardware environments, obtains the startup data and accelerated startup data of the corresponding application cold start in different hardware environments, and updates the cold start application blacklist and cold start data list in the corresponding hardware environment, thereby realizing the update of the cold start application blacklist and cold start data list pre-stored in the terminal in all hardware environments.

[0069] As an implementable manner, the obtaining of the startup data of the application to be detected and the accelerated startup data of the application to be detected includes:

[0070] When the terminal completes the installation of the application to be detected or when the terminal is idle, the startup data and the accelerated startup data of the application to be detected are acquired.

[0071] Specifically, after installing the application, the terminal can query or test the cold start blacklist as soon as possible, so that the application can be started in the most appropriate way when the user uses it; or according to actual needs, it can choose to query or test the cold start blacklist of new applications when the terminal is idle, where the idle time can be when the terminal screen is off, when the terminal is charging, or during the user's daily rest time, so as to complete the update of the cold start application blacklist without the user noticing.

[0072] The dynamic update method of the cold start application blacklist provided in this embodiment can continuously discover applications that are not suitable for cold start acceleration on the terminal, and dynamically update the cold start application blacklist of the terminal and the server in real time. The updated cold start application blacklist is sent to other terminals with similar hardware environments through the server, thereby realizing dynamic update of the cold start application blacklist of all terminals.

[0073] Example 2

[0074] This embodiment provides a dynamic update system 200 for a cold start application blacklist. Figure 2 As shown, the dynamic update system includes:

[0075] Storage module 201, used for pre-storing the cold start blacklist;

[0076] A query module 202 is configured to query whether there is an application to be detected in the cold start blacklist;

[0077] A cold start detection module 203 is configured to obtain startup data of the application to be detected in a cold start environment and accelerated startup data of the application to be detected;

[0078] The comparison module 204 is configured to compare whether the accelerated startup data is better than the benchmark data, and add the application to be detected whose benchmark data is better than the accelerated startup data to the cold startup blacklist.

[0079] As an implementable manner, the storage module also pre-stores a cold start data list;

[0080] The query module is further configured to query whether the application to be detected exists in the cold start data list;

[0081] The comparison module can retrieve the cold start data corresponding to the application to be detected in the cold start data list as the startup data.

[0082] As an implementable method, the storage module is also used to store startup data and accelerated startup data, and the dynamic update system also includes a communication module 205, which is used to send the startup data and accelerated startup data to the server side and update the cold start data list of the server side; wherein, the server is connected to multiple terminals.

[0083] As an achievable method, the query module is further used to obtain the operating environment information of the dynamic update system; wherein, as an embodiment, the operating environment of the dynamic update system is the hardware information of the terminal

[0084] The communication module is further configured to add the operating environment information of the dynamic update system to the cold start blacklist and upload the information to the server side for updating the cold start blacklist on the server side.

[0085] As an implementable manner, the cold start detection module obtains the startup data of the application to be detected and the accelerated startup data of the application to be detected when the terminal completes installing the application to be detected or when the terminal is idle.

[0086] The dynamic update system of the cold start application blacklist provided in this embodiment can continuously discover applications that are not suitable for cold start acceleration on the terminal, and dynamically update the cold start application blacklist of the terminal and the server in real time. The updated cold start application blacklist is sent to other terminals with similar hardware environments through the server, thereby realizing dynamic update of the cold start application blacklist of all terminals.

[0087] Example 3

[0088] like Figure 3 FIG2 is a schematic diagram of the structure of an electronic device provided in Example 3 of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for dynamically updating the cold start application blacklist of Example 1 is implemented. Figure 3The electronic device 30 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention.

[0089] The electronic device 30 may be a general-purpose computing device, such as a server device. Components of the electronic device 30 may include, but are not limited to, the at least one processor 31, the at least one memory 32, and a bus 33 connecting various system components (including the memory 32 and the processor 31).

[0090] The bus 33 includes a data bus, an address bus, and a control bus.

[0091] The memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .

[0092] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0093] The processor 31 executes various functional applications and data processing by running computer programs stored in the memory 32, such as the dynamic update method of the cold start application blacklist of embodiment 1 of the present invention.

[0094] The electronic device 30 can also communicate with one or more external devices 34 (e.g., a keyboard, pointing device, etc.). This communication can occur via an input / output (I / O) interface 35. Furthermore, the model-generating device 30 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. As shown, the network adapter 36 communicates with other modules of the model-generating device 30 via a bus 33. It should be understood that, although not shown, other hardware and / or software modules can be used in conjunction with the model-generating device 30, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems.

[0095] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above may be embodied in a single unit / module. Conversely, the features and functions of a single unit / module described above may be further divided and embodied by multiple units / modules.

[0096] Example 4

[0097] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for dynamically updating the cold start application blacklist described in Example 1.

[0098] The readable storage medium may include, but is not limited to, a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0099] In a possible implementation, the present invention may also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the method for dynamically updating the cold start application blacklist described in Example 1. The program code for executing the present invention may be written in any combination of one or more programming languages, and the program code may be executed entirely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or entirely on the remote device.

[0100] Although specific embodiments of the present invention have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, and such changes and modifications are intended to fall within the scope of the present invention.

Claims

1. A method for dynamically updating a cold start application blacklist, characterized in that: The dynamic update method includes: Check whether the application to be detected is included in the cold start blacklist; If not, obtaining startup data of the application to be detected in a cold start environment as the benchmark data; Starting the application to be detected through a cold start acceleration mechanism and obtaining accelerated startup data; comparing whether the accelerated startup data of the application to be detected is better than the benchmark data; If not, the application to be detected is added to the cold start blacklist for updating.

2. The method for dynamically updating the cold start application blacklist according to claim 1, characterized in that: The step of obtaining startup data of the application to be detected in a cold start environment as the benchmark data includes: Querying the cold start data list to determine whether the startup data of the application to be detected is included; If yes, obtaining the startup data of the application to be detected from the cold start data list as the benchmark data; If not, the application to be detected is started, and the startup data of the application to be detected is recorded as the benchmark data.

3. The method for dynamically updating the cold start application blacklist according to claim 2, characterized in that: The dynamic update method further includes: updating the cold start data list according to the acquired startup data and / or accelerated startup data; And / or, the acquired startup data and / or accelerated startup data are sent to a server for storage to update a cold start data list stored in the server; wherein the server is connected to multiple terminals.

4. The method for dynamically updating the cold start application blacklist according to claim 1, characterized in that: The dynamic update method further includes: Obtaining operating environment information of the dynamic update method; The operating environment information and the cold start application blacklist are associated and uploaded to the server side to synchronously update the cold start application blacklist stored in the server side.

5. The method for dynamically updating the cold start application blacklist according to claim 1, characterized in that: When the installation of the application to be detected is completed or when the application is idle, the startup data and the accelerated startup data of the application to be detected are obtained.

6. A dynamic update system for cold start application blacklist, characterized in that: The dynamic update system includes: Storage module, used to pre-store the cold start blacklist; A query module, configured to query whether there is an application to be detected in the cold start application blacklist; A cold start detection module is used to obtain startup data of the application to be detected in a cold start environment as benchmark data; and to start the application to be detected through a cold start acceleration mechanism to obtain accelerated startup data; The comparison module is configured to compare whether the accelerated startup data is better than the benchmark data, and add the application to be detected whose benchmark data is better than the accelerated startup data to the cold startup blacklist.

7. The dynamic update system for cold start application blacklist according to claim 6, characterized in that: The storage module also pre-stores a cold start data list; The query module is further configured to query whether the application to be detected exists in the cold start data list; The comparison module can retrieve the cold start data corresponding to the application to be detected in the cold start data list as the benchmark data.

8. The dynamic update system for cold start application blacklist according to claim 6, characterized in that: The storage module is further configured to store the startup data and / or the accelerated startup data; The dynamic update system further includes a communication module for sending the startup data and accelerated startup data to a server to update a cold start data list on the server; wherein the server is connected to a plurality of terminals.

9. The dynamic update system for cold start application blacklist according to claim 8, characterized in that: The query module is also used to obtain the operating environment information of the dynamic update system; The communication module is further configured to associate the operating environment of the dynamic update system with the cold start blacklist and upload it to the server to update the cold start blacklist on the server.

10. The dynamic update system for cold start application blacklist according to claim 6, characterized in that: The cold start detection module obtains the startup data of the application to be detected and the accelerated startup data of the application to be detected when the application to be detected is installed or in idle time.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for dynamically updating the cold start application blacklist according to any one of claims 1 to 5 is implemented.

12. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for dynamically updating the cold start application blacklist according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • A system cold start test method, apparatus and terminal and a storage medium

    CN109324935A

  • Method and device for accelerating cold start of application and terminal

    CN111061516A