Installation package processing method, installation package sending method, device and electronic device
By obtaining and combining the running order of the specified content in the installation package, optimizing the download order, the problem of users waiting for the installation to complete the use function is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202111433379.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2041-11-29
AI Technical Summary
During the application installation process, when the function that the user expects to use is not installed, it is necessary to wait for the content that supports the function in the installation package to be installed before it can be used, resulting in an increase in the user's waiting time and affecting the user experience.
By obtaining multiple running orders of specified content in the installation package, dividing the installation package content into multiple parts, and combining the target order according to the exposure and running order of each part, optimizing the download order of the specified content to achieve high exposure and high The content of probability is downloaded first.
It reduces the time for users to wait for use of functions, improves user experience, and optimizes the download sequence to enable key content to be used by users earlier.
Smart Images

Figure CN114138288B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to an installation package processing method, an installation package sending method, a device, and an electronic device. Background Art
[0002] In the process of installing the installation package of the application, in order to reduce the time it takes for the electronic device to start running the installed application, the content in the installation package can be divided into necessary content and other content. This allows the electronic device to trigger the electronic device to start the application after the necessary content in the installation package is installed, and the other content can be installed during the running of the application. However, if the function that the user expects to use has not been installed, the user needs to wait until the content supporting the function in the installation package is installed before using the function. Summary of the invention
[0003] In view of the above problems, the present application proposes an installation package processing method, an installation package sending method, a device and an electronic device to improve the above problems.
[0004] In a first aspect, the present application provides an installation package processing method, the method comprising: obtaining a plurality of content running orders corresponding to the installation package, the plurality of content running orders including the order in which a plurality of devices respectively run the specified content in the installation package; dividing the specified content in the installation package based on the plurality of content running orders to obtain a plurality of division results, wherein each division result respectively represents that the specified content in the installation package is divided into a plurality of parts, and the order represented by the identifier of each part corresponds to the running order of the specified content included in the corresponding part; based on the specified content in the plurality of parts corresponding to each identifier in the plurality of division results, obtaining a target content corresponding to each identifier and a content running order of the target content; based on the order represented by each identifier, combining the content running order of the target content corresponding to each identifier to obtain a target order of the specified content in the installation package, wherein the target content corresponding to the identifier having a frontward represented order is ranked frontward in the target order, and the target order is used to download the specified content in the installation package based on the target order when downloading the installation package.
[0005] In a second aspect, the present application provides a method for sending an installation package, the method comprising: in response to an installation package download request, starting to send the requested installation package to a target device, the target device being the device that sends the installation package download request; wherein, in the process of sending the specified content in the installation package, the specified content is sent based on a target order corresponding to the installation package, the target order being obtained based on the above method.
[0006] In a third aspect, the present application provides an installation package processing device, the device comprising: a data acquisition unit, used to acquire a plurality of content running orders corresponding to the installation package, the plurality of content running orders including the order in which a plurality of devices respectively run the specified content in the installation package; a content division unit, used to divide the specified content in the installation package based on the plurality of content running orders, respectively, to obtain a plurality of division results, wherein each division result respectively represents that the specified content in the installation package is divided into a plurality of parts, and the order represented by the identifier of each part corresponds to the running order of the specified content included in the corresponding part; a first content sequence determination unit, used to obtain a target content corresponding to each identifier and a content running order of the target content based on the specified content in the plurality of parts corresponding to each identifier in the plurality of division results; a second content sequence determination unit, based on the order represented by each identifier, combines the content running order of the target content corresponding to each identifier to obtain a target order of the specified content in the installation package, wherein the target content corresponding to the identifier having a frontward represented order is ranked frontward in the target order, and the target order is used to download the specified content in the installation package based on the target order when downloading the installation package.
[0007] In a fourth aspect, the present application provides an installation package sending device, characterized in that the device comprises: an installation package sending unit, configured to, in response to an installation package download request, start sending the requested installation package to a target device, wherein the target device is a device that sends the installation package download request;
[0008] In the process of sending the specified content in the installation package, the specified content is sent based on the target sequence corresponding to the installation package, and the target sequence is obtained based on the above method.
[0009] In a fifth aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.
[0010] In a sixth aspect, the present application provides a computer-readable storage medium storing a processor-executable program code, wherein the computer-readable storage medium includes the stored program code, wherein the above method is executed when the program code is run.
[0011] The present application provides an installation package processing method, an installation package sending method, a device, and an electronic device, which can first obtain the order in which multiple devices respectively run the specified content in the installation package to obtain multiple content running orders, and then divide the specified content in the installation package based on the multiple content running orders to obtain multiple division results. In addition, when each division result represents that the specified content in the installation package is divided into multiple parts, and the order represented by the identifier of each part corresponds to the running order of the specified content included in the corresponding part, further based on the specified content in the multiple parts corresponding to each identifier in the multiple division results, the target content corresponding to each identifier and the content running order of the target content are obtained, and then based on the order represented by each identifier, the content running order of the target content corresponding to each identifier is combined to obtain the target order of the specified content in the installation package.
[0012] Therefore, when the higher the exposure of the specified content is, the earlier it will be used by the user after the installation package starts to be installed. The specified content with a higher exposure rate in the multiple divided parts corresponding to the identifiers with earlier orders can be placed higher in the determined target order, which is beneficial for the specified content that has a higher probability of being run earlier to be downloaded earlier after the installation package starts to be downloaded, which is beneficial for reducing the probability that the user needs to wait for a certain time to use the desired function because the specified content that supports the desired function has not been downloaded, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0014] Figure 1 A schematic diagram of a scenario of an installation package processing method proposed in the present application is shown;
[0015] Figure 2 A flowchart of an installation package processing method proposed in an embodiment of the present application is shown;
[0016] Figure 3 A schematic diagram of the structure of the installation package in this application is shown;
[0017] Figure 4 A schematic diagram showing the order in which multiple contents in this application are run;
[0018] Figure 5A flowchart of an installation package processing method provided by another embodiment of the present application is shown;
[0019] Figure 6 A flowchart of an installation package processing method provided by another embodiment of the present application is shown;
[0020] Figure 7 A flow chart for verifying the order to be verified in the present application is shown;
[0021] Figure 8 A flowchart of a method for sending an installation package proposed in an embodiment of the present application is shown;
[0022] Fig. 9 A flowchart of an installation package processing method provided by another embodiment of the present application is shown;
[0023] Fig.10 A structural block diagram of an installation package processing device proposed in an embodiment of the present application is shown;
[0024] Fig.11 A structural block diagram of an installation package sending device proposed in an embodiment of the present application is shown;
[0025] Fig.12 A structural block diagram of an electronic device for executing the installation package processing method or the installation package processing method of an embodiment of the present application is shown;
[0026] Fig.13 It is a storage unit for storing or carrying the installation package processing method or the program code for implementing the installation package processing method of the embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] After the application is developed, in order to facilitate the distribution of the application to the electronic device, the developed application can be packaged into an installation package. Then the electronic device can install the corresponding application by downloading the installation package and then installing the downloaded installation package.
[0029] In the process of installing the installation package of the application, in order to reduce the time it takes for the electronic device to start running the installed application, the content in the installation package can be divided into necessary content and other content. This allows the electronic device to trigger the electronic device to start the application after the necessary content in the installation package is installed, and the other content can be installed during the running of the application. However, the inventor found in the research that if the function that the user expects to use has not been installed, the user needs to wait until the content supporting the function in the installation package is installed before the user can use the function.
[0030] Therefore, the inventors proposed an installation package processing method, an installation package sending method, a device, and an electronic device in the present application, which can first obtain the order in which multiple devices run the specified content in the installation package to obtain multiple content running orders, and then divide the specified content in the installation package based on the multiple content running orders to obtain multiple division results. In addition, in the case where each division result represents that the specified content in the installation package is divided into multiple parts, and the order represented by the identifier of each part corresponds to the running order of the specified content included in the corresponding part, further based on the specified content in the multiple parts corresponding to each identifier in the multiple division results, the target content corresponding to each identifier and the content running order of the target content are obtained, and then based on the order represented by each identifier, the content running order of the target content corresponding to each identifier is combined to obtain the target order of the specified content in the installation package.
[0031] Therefore, when the higher the exposure of the specified content is, the earlier it will be used by the user after the installation package starts to be installed. The specified content with a higher exposure rate in the multiple divided parts corresponding to the identifiers with earlier orders can be placed higher in the determined target order, which is beneficial for the specified content that has a higher probability of being run earlier to be downloaded earlier after the installation package starts to be downloaded, which is beneficial for reducing the probability that the user needs to wait for a certain time to use the desired function because the specified content that supports the desired function has not been downloaded, thereby improving the user experience.
[0032] The application environment involved in this application will be introduced below.
[0033] like Figure 1The application scenario shown includes an electronic device 100, an electronic device 110, an electronic device 120 and a server 200. The electronic device 100, the electronic device 110 and the electronic device 120 communicate with the server 200 through a network respectively. The electronic device 100, the electronic device 110 and the electronic device 120 can each install the installation package based on the full installation method, and then after the installation is completed, start to obtain the order in which the specified content in the installation package is run, so as to obtain the content usage order corresponding to the installation package, and report the obtained content usage order to the server 200, so that the server 200 can execute the installation package processing method provided in the embodiment of the present application.
[0034] It should be noted that full installation can be understood as running and starting the corresponding application after all contents in the installation package are downloaded. In the embodiment of the present application, the application corresponding to the installation package can be understood as a program that can be used by the user and is generated in the electronic device after the installation package is installed in the electronic device.
[0035] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0036] See also Figure 2 , the present application provides an installation package processing method, the method comprising:
[0037] S110: Acquire a plurality of content execution sequences corresponding to the installation package, wherein the plurality of content execution sequences include an order in which a plurality of devices respectively execute specified content in the installation package.
[0038] As a method, the designated content in the embodiment of the present application includes the content in the installation package other than the necessary content, and the necessary content can be understood as the content that allows the installation package to trigger the startup of the application corresponding to the installation package after installation during the installation process. Correspondingly, it can be understood that in the process of the electronic device downloading the installation package from the server, the server can first send the necessary content in the installation package to the electronic device, so that the electronic device can run the application corresponding to the installation package after obtaining the necessary content. Among them, after completing the download of the necessary content, the server can continue to send the designated content to the electronic device, so that the electronic device can run the application corresponding to the installation package while downloading the content that has not been downloaded in the installation package.
[0039] As one method, during the process of the server sending the installation package to the electronic device, part of the specified content can be downloaded to the electronic device at one time along with the necessary content in the installation package, and then the remaining content in the specified content that has not been downloaded can be downloaded to the electronic device in multiple times. Figure 3As shown, the installation package itself can be divided into multiple file blocks. For example, Figure 3 The installation package shown in can be divided into file blocks 1 to 11. Among them, each file block in file blocks 1 to 3 is necessary content, and each file block in file blocks 4 to 11 is designated content. In addition, file blocks 4 to 11 can be divided into running content (file blocks 4 to 7) and remaining content (file blocks 8 to 11). Among them, the running content and the necessary content can be downloaded at one time when the installation package is downloaded, and the subsequent remaining content can be divided into multiple downloads.
[0040] In the embodiment of the present application, there may be multiple specified contents in the installation package. Figure 3 The file blocks 4 to 11 in the file are all specified contents. Figure 3 The installation package shown includes 8 specified contents. When the device runs the application corresponding to the installation package, the running order of the 8 specified contents can be: Figure 3 As shown in the figure, file block 4 is at the front and file block 11 is at the end. However, it should be noted that the specified contents in the installation package may correspond to different functions in the application. Therefore, the order in which the electronic device runs the specified contents may also be different because the user uses the functions involved in the application in a different order during the use of the application. For example, Figure 3 For the installation package shown in , the order of running the specified content may be file block 5, file block 4, file block 8, file block 6, file block 7, file block 9, file block 10 and file block 11.
[0041] Then in the embodiment of the present application, the obtained execution order of the multiple contents includes that the order in which the specified contents in the same installation package are executed by multiple devices respectively may be different.
[0042] As a method, before obtaining the multiple content running orders corresponding to the installation package, the method also includes: obtaining the multiple initial content running orders corresponding to the installation package and the application running time corresponding to each initial content running order, and filtering the multiple initial content running orders based on the application running time to obtain the multiple content running orders. It should be noted that different devices may run the same application for different lengths of time. For devices with shorter running time, the number of specified contents involved in the corresponding uploaded content usage order is relatively limited. Therefore, the content usage order uploaded by the device with a shorter application running time may not have much reference significance. In this case, the content running order directly uploaded by the device can be used as the initial content running order, and then some content running orders can be filtered out from the multiple initial content running orders based on the application running time as multiple content running orders for determining the target order in the future.
[0043] Optionally, screening the multiple initial content running orders based on the application running time may include comparing the application running time corresponding to each of the multiple initial content running orders with a running time threshold, removing the content running orders whose corresponding application running time is less than the running time threshold, and then using the retained content running orders as multiple content running orders for determining the target order. The running time threshold may be the ratio of the size of the installation package to the specified average download speed. For example, if the size of the installation package is 1GB and the specified average download speed is 4MBps, the calculated running time threshold is 256 seconds. The specified average download speed may be the average download speed of a certain region. For example, the region may be a province or a country.
[0044] S120: Divide the specified contents in the installation package based on the execution order of the multiple contents respectively to obtain multiple division results, wherein each division result represents that the specified contents in the installation package are divided into multiple parts, and the order represented by the identifier of each part corresponds to the execution order of the specified contents included in the corresponding part.
[0045] Among them, dividing the specified contents included in the installation package based on the content running order can be understood as sorting the multiple specified contents included in the installation package according to the content running order, and then dividing the sorted specified contents into multiple parts. In addition, there will be a corresponding identifier for each divided part, and correspondingly, the order represented by the identifier of each part corresponds to the running order of the specified contents included in the corresponding part. It can be said that if a certain part obtained by division is in the front position among the multiple specified contents after sorting, the order represented by the identifier corresponding to the part will be in the front position. Figure 4As shown, if the electronic device obtains 3 content running sequences (content running sequence 1, content running sequence 2 and content running sequence 3). Taking content running sequence 1 as an example, the specified content (taking the specified content as a file block as an example) included in the installation package can be sorted based on the content running sequence 1, and the sorting result obtained can be that file block 13 is at the front, followed by file block 14, file block 5, file block 6, file block 7, file block 8, file block 10, file block 12, file block 3, file block 4 and file block 9. If each part includes 4 file blocks, the specified content can be divided into 3 parts, namely, the part marked as 1, the part marked as 2, and the part marked as 3. Among them, identification 1, identification 2 and identification 3 themselves can represent the order, and identification 1 is the identification with the highest order, so the specified content in the part corresponding to identification 1 is also ranked the highest among the multiple specified contents after sorting.
[0046] S130: Based on the designated contents of the multiple parts corresponding to each identifier in the multiple division results, obtain the target content corresponding to each identifier and the content running order of the target content.
[0047] After the designated content is divided, the target content corresponding to each identifier and the content running order of the target content can be obtained for each of the multiple parts corresponding to the identifier.
[0048] As a method, the target content corresponding to the identifier may include the specified content that has appeared in the multiple parts corresponding to the identifier. Then, the target running order of the target content is determined based on the exposure of the specified content that has appeared. Correspondingly, the specified content with higher exposure is ranked higher in the content running order of the target content. In this method, the specified content that has already appeared in the target content corresponding to the identifier with higher ranking will no longer appear in the target content corresponding to the identifier with lower ranking. For example, Figure 4 As shown, in this manner, if it is determined that the target content corresponding to identifier 1 includes file blocks 7 and 8, then file blocks 7 and 8 will no longer appear in the target content corresponding to subsequent identifiers 2 and 3.
[0049] As another approach, the number of target content corresponding to each identifier is fixed. For example, after sorting the multiple parts of the specified content corresponding to the identifier based on the exposure of the specified content, the specified content with the same number as the target content corresponding to the identifier can be filtered out based on the sorting, and then the remaining specified content is added to the specified content corresponding to the identifier represented by the later sorting.
[0050] S140: Based on the order represented by each identifier, the content running order of the target content corresponding to each identifier is combined to obtain the target order of the specified content in the installation package, wherein the target content corresponding to the identifier with an earlier represented order is ranked higher in the target order, and the target order is used to download the specified content in the installation package based on the target order when downloading the installation package.
[0051] It can be understood that, in the case where the identifiers themselves represent the order, the content running order of the target content corresponding to each identifier is combined, which can also be understood as sorting the target content corresponding to each identifier based on the order represented by the identifiers, so that the target content corresponding to the identifier with the earlier represented order is ranked higher in the target order. Figure 4 In the example, there are identifiers 1, 2, and 3. Among them, the order represented by identifier 1 is at the front, and the target content corresponding to identifier 1 will be at the front in the target order.
[0052] The present application provides an installation package processing method, which can first obtain the order in which multiple devices run the specified content in the installation package to obtain multiple content running orders, and then divide the specified content in the installation package based on the multiple content running orders to obtain multiple division results. In addition, when each division result represents that the specified content in the installation package is divided into multiple parts, and the order represented by the identifier of each part corresponds to the running order of the specified content included in the corresponding part, further based on the specified content in the multiple parts corresponding to each identifier in the multiple division results, the target content corresponding to each identifier and the content running order of the target content are obtained, and then based on the order represented by each identifier, the content running order of the target content corresponding to each identifier is combined to obtain the target order of the specified content in the installation package.
[0053] Therefore, when the higher the exposure of the specified content is, the earlier it will be used by the user after the installation package starts to be installed. The specified content with a higher exposure rate in the multiple divided parts corresponding to the identifiers with earlier orders can be placed higher in the determined target order, which is beneficial for the specified content that has a higher probability of being run earlier to be downloaded earlier after the installation package starts to be downloaded, which is beneficial for reducing the probability that the user needs to wait for a certain time to use the desired function because the specified content that supports the desired function has not been downloaded, thereby improving the user experience.
[0054] See also Figure 5 The present application provides an installation package processing method, which is applied to an electronic device, and the method includes:
[0055] S210: Acquire a plurality of content execution sequences corresponding to the installation package, wherein the plurality of content execution sequences include an order in which a plurality of devices respectively execute specified content in the installation package.
[0056] S220: Divide the specified contents in the installation package based on the execution order of the multiple contents respectively to obtain multiple division results, wherein each division result represents that the specified contents in the installation package are divided into multiple parts, and the order represented by the identifier of each part corresponds to the execution order of the specified contents included in the corresponding part.
[0057] S230: Obtain the content to be processed in the current target content acquisition process, wherein the content to be processed in the current target content acquisition process at least includes the content other than the target content corresponding to the identifier of the previous target content acquisition in the specified content of the multiple parts corresponding to the identifier of the current target content acquisition in the multiple division results.
[0058] It should be noted that in this embodiment, the target content corresponding to each identifier can be obtained in sequence based on the order represented by the identifier. If the identifier for obtaining the target content at this time is the identifier represented by the first order, then the content to be processed in the target content acquisition process at this time can include the specified content in the multiple parts corresponding to the identifier for obtaining the target content at this time, after deduplication. For example, please refer to Figure 4 , if the identifier for target content acquisition this time is identifier 1, the specified content in the division result obtained based on content running sequence 1 corresponding to identifier 1 includes file block 13, file block 14, file block 5, and file block 6. The specified content in the division result obtained based on content running sequence 2 corresponding to identifier 1 includes file block 5, file block 6, file block 7, and file block 8. The specified content in the division result obtained based on content running sequence 3 corresponding to identifier 1 includes file block 5, file block 6, file block 8, and file block 9. Then the content to be processed in the target content acquisition process this time includes file block 5, file block 6, file block 7, file block 8, file block 9, file block 13, and file block 14.
[0059] S240: Acquire target content corresponding to the identifier currently performing target content acquisition and a content running order of the target content from the current content to be processed based on the corresponding exposure.
[0060] As a method, the target content corresponding to the identifier currently performing target content acquisition and the content running order of the target content are obtained from the current content to be processed based on the corresponding exposure, including: sorting the exposure of the current content to be processed; taking the designated content with the first designated digit in the current content to be processed as the target content, and taking the arrangement order of the corresponding exposure as the content running order of the target content. For example, taking the exposure as the number of occurrences and the configuration number of target content corresponding to each identifier as 4 as an example, as shown in the following table:
[0061] File Blocks 5 6 8 7 9 13 14 Occurrence 3 3 2 1 1 1 1
[0062] As shown in the above table, file blocks 5, 6 and 8 have more trips in the multiple parts corresponding to identifier 1, and the values of the sorting positions corresponding to the trips of file blocks 5, 6 and 8 are less than the number of target contents, so file blocks 5, 6 and 8 will be determined as being in the target content corresponding to identifier 1. Among them, file blocks 7, 9, 13 and 14 have the same trips.
[0063] As a method, this embodiment also includes: if the number of designated contents ranked at the top of the designated number of digits in the current content to be processed is greater than the configuration number of the target content corresponding to the identifier, obtain reference content, the reference content corresponds to the designated content ranked at the top of the designated number of digits, and the reference number of digits is less than the designated number of digits; select a designated number of contents from the designated contents ranked at the top of the designated number of digits excluding the reference content based on the corresponding file number, the designated number of digits being the designated number of digits minus the reference number of digits; and use the designated number of contents and the reference content as the target content. Among them, the number of designated contents corresponding to the top of the designated number of digits is less than the number of designated contents ranked at the top of the designated number of digits, and the sum of the number of designated contents corresponding to the top of the designated number of digits and the number of designated contents ranked in the next digit is greater than the number of designated contents ranked at the top of the designated number of digits. Among them, the top of the designated number of digits and the configuration number corresponding to the target content are the same, then the order of the number of trips of all file blocks in the above table meets the top of the designated number of digits. Then based on the above-mentioned method of obtaining the top of the designated number of digits, it can be determined that the top of the designated number of digits is 3. The corresponding reference contents are file block 5, file block 6 and file block 8, then 1 (4-3=1) designated content will be selected from file block 7, file block 9, file block 13 and file block 14.
[0064] In the process of selecting a specified number of specified contents based on the corresponding file number, some of the specified contents can be removed based on the principle of locality to obtain the remaining specified contents, and then the specified number of contents (specified contents) can be obtained from the remaining specified contents based on the size of the file number. The principle of locality can be understood as the information (file block) to be used recently is likely to be adjacent to the information currently being used in the storage space. If the file block number represents the degree of proximity of the file block in the storage process, then the specified contents with a large interval between the corresponding file number and the file number of each reference content can be removed based on the principle of locality to obtain the remaining specified contents. The large interval can be understood as being greater than the specified number threshold. For example, if the specified number threshold is 1, then file block 13 and file block 14 can be removed from file block 7, file block 9, file block 13, and file block 14. For the remaining file block 7 and file block 9, file block 7 with a relatively smaller file number can be used as the target content based on the size of the file number. Therefore, the target content obtained by identification 1 is file block 5, file block 6, file block 8, and file block 7. Furthermore, based on the number of occurrences of file block 5, file block 6, file block 8 and file block 7, the first file block in the obtained content running order is file block 5, followed by file block 6, file block 8 and file block 7.
[0065] Optionally, the configuration quantity is obtained based on the average reaction speed of the user and the specified average download speed. Optionally, the configuration quantity can be calculated based on the following formula, which is:
[0066]
[0067] Among them, the average reaction speed of the user can be 0.25s.
[0068] It should be noted that when the designated content in the installation package is divided based on the content execution order, the quantity of the designated content in each divided part can also be calculated based on the aforementioned formula for calculating the configuration quantity.
[0069] S250: Enter the next target content acquisition process until the target content corresponding to each identifier and the content running order of the target content are obtained, wherein, if the content to be processed at this time also includes content other than the target content, the content other than the target content is added to the content to be processed next time.
[0070] As in the above example, in the process of acquiring the target content corresponding to the identifier 1, the file blocks 9, 13 and 14 are contents other than the target content, and will be added to the content to be processed corresponding to the identifier 2. As shown in the following table, the table shows the statistics when the identifier for the current target content acquisition is the identifier 2.
[0071] File Blocks 9 13 14 7 8 10 12 3 4 Historical occurrences 1 1 1 - - 0 0 0 0 Current times 0 2 2 1 1 1 2 2 1 total 1 3 3 - - 1 2 2 1
[0072] Among them, the historical number of occurrences refers to the number of times it appeared in the previous target content acquisition process. The current number is the number of times it appears in multiple parts corresponding to the identifier for the current target content acquisition. In this case, the total number of times will be used as the corresponding exposure to determine the target content corresponding to identifier 2. Based on the above method, the target content corresponding to identifier 2 includes file block 13, file block 14, file block 12 and file block 3 in sequence. Among them, file block 7 and file block 8 in the above table have been determined as the target content corresponding to the identifier, and will not be sorted again. Correspondingly, file block 10, file block 4 and file block 9 will be added to the content to be processed corresponding to identifier 3.
[0073] As shown in the following table, the table shows the statistical situation when the identifier currently performing target content acquisition is identifier 3.
[0074] File Blocks 3 4 9 7 10 Historical occurrences - 1 1 - 1 Current times 1 2 2 1 1 total - 3 3 - 2
[0075] S260: Based on the order represented by each identifier, the content running order of the target content corresponding to each identifier is combined to obtain the target order of the specified content in the installation package, wherein the target content corresponding to the identifier with an earlier represented order is ranked higher in the target order, and the target order is used to download the specified content in the installation package based on the target order when downloading the installation package.
[0076] In this embodiment, the target order obtained by combining the content running order corresponding to the aforementioned identifier 1, identifier 2 and identifier 3 is: file block 5, file block 6, file block 8, file block 7, file block 13, file block 14, file block 12, file block 3, file block 4, file block 9 and file block 10.
[0077] The present application provides an installation package processing method, so that when the higher the exposure of the specified content is, the more likely it is that the user will use it relatively early after the installation package starts to be installed. The specified content with a higher exposure rate in the multiple divided parts corresponding to the identifiers with earlier orders can be placed higher in the determined target order, which is beneficial for the specified content that has a higher probability of being run earlier to be downloaded earlier after the installation package starts to be downloaded, which is beneficial for reducing the probability that the user needs to wait for a certain period of time before using the desired function because the specified content that supports the function that the user expects to use has not been downloaded, thereby improving the user experience.
[0078] See also Figure 6 The present application provides an installation package processing method, which is applied to an electronic device, and the method includes:
[0079] S310: Obtain multiple content execution sequences corresponding to the installation package, wherein the multiple content execution sequences include multiple first content execution sequences and multiple second content execution sequences, and the multiple first content execution sequences and the multiple second content execution sequences respectively include the sequence in which multiple devices execute the specified content in the installation package.
[0080] S320: Divide the specified contents in the installation package based on the execution order of the multiple first contents respectively to obtain multiple division results, wherein each division result represents that the specified contents in the installation package are divided into multiple parts, and the order represented by the identifier of each part corresponds to the execution order of the specified contents included in the corresponding part.
[0081] S330: Based on the designated contents of each identifier in the multiple parts corresponding to the multiple division results, obtain the target content corresponding to each identifier and the content running order of the target content.
[0082] S340: Based on the sequence represented by each identifier, the content running sequence of the target content corresponding to each identifier is combined to obtain the sequence to be verified of the designated content in the installation package.
[0083] S350: Verifying the sequence to be verified based on the second content running sequence.
[0084] S360: If the verification is passed, the order to be verified is used as the target order, wherein the target content corresponding to the identifier with a frontier order is ranked frontier in the target order, and the target order is used to download the specified content in the installation package based on the target order when downloading the installation package.
[0085] If the verification fails, the sequence to be verified will be discarded.
[0086] Among them, as a way, Figure 7 As shown, the specified content includes a first running content and a second running content; the download order corresponding to the first running content is before the download order of the second running content, and the verifying the sequence to be verified based on the running order of the second content includes:
[0087] S351: Divide the designated content in the installation package into a first running content and a second running content based on the order to be verified.
[0088] S352: Obtain multiple first reference operating contents and multiple second reference operating contents, wherein the multiple first reference operating contents are multiple first operating contents obtained by dividing the specified contents in the installation package based on the operating order of multiple second contents, and the multiple second reference operating contents are multiple second operating contents obtained by dividing the specified contents in the installation package based on the operating order of multiple second contents.
[0089] S353: Obtain intersections of the first running content and the plurality of first reference running contents respectively to obtain a plurality of first intersections, and use the quantity of the designated contents included in the plurality of first intersections as the first quantity.
[0090] S354: Obtain the second quantities corresponding to the second operating contents and the multiple second reference operating contents respectively to obtain multiple second quantities, wherein the second quantity is the quantity of specified contents in the second operating contents whose corresponding operating order is before the order of the corresponding second reference operating contents.
[0091] S355: Obtain a sum of the first number and the plurality of second numbers, and obtain a ratio of the sum to the number of designated contents corresponding to the execution order of the plurality of second contents.
[0092] S356: If the ratio is greater than a specified threshold, it is determined that the verification is passed.
[0093] Optionally, dividing the specified content in the installation package into a first running content and a second running content based on the order to be verified includes: dividing the specified content in the installation package into a first running content and a second running content based on the order to be verified and the running time corresponding to the specified content included in the installation; wherein the time difference between the running time corresponding to the specified content in the first running content and the running time of the first running specified content in the installation package is less than a specified duration threshold, and the time difference between the running time corresponding to the specified content in the second running content and the running time of the first running specified content in the installation package is not less than a specified duration threshold.
[0094] The present application provides an installation package processing method, so that when the exposure of the specified content is higher, it means that it will be used by the user relatively early after the installation package starts to be installed, the specified content with higher exposure in the multiple divided parts corresponding to the identifier with the higher order can be placed higher in the determined target order, thereby facilitating the specified content with a higher probability of being run earlier to be downloaded earlier after the installation package starts to be downloaded, thereby facilitating reducing the probability that the user needs to wait for a certain time before using the desired function because the specified content supporting the function expected by the user has not been downloaded, thereby improving the user experience. In addition, in this embodiment, the obtained content running order includes a first memory running order and a second content running order, so that the first content running order can be used to perform the sequence generation step, and the generated order is used as the order to be verified, and then the second content running order is used to verify the generated order to be verified, and the order to be verified is used as the target order in the case of passing the verification, thereby improving the accuracy of generating the target order, and improving the effectiveness of downloading the specified content based on the target order to reduce the waiting time of the user in the process of downloading and playing the installation package.
[0095] See also Figure 8 , the present application provides a method for sending an installation package, the method comprising:
[0096] S410: In response to the installation package download request, start sending the requested installation package to a target device, where the target device is the device that sends the installation package download request.
[0097] In the process of sending the specified content in the installation package, the specified content is sent based on the target sequence corresponding to the installation package, and the target sequence is obtained based on the above method.
[0098] As one approach, the designated content includes content in the installation package other than necessary content, wherein the necessary content is content that allows triggering the startup of an application corresponding to the installation package after the installation of the installation package during the installation process.
[0099] It should be noted that for the installation package that has been corresponding to the target sequence, the running order of the specified content included therein can still be counted during the subsequent download and installation process. Optionally, the number of times each specified content is triggered for use by the user but has not yet been downloaded to the electronic device can be counted, and then the ratio of this number to the number of times the installation package is downloaded is used as the probability that the specified content has not been downloaded in time. Exemplarily, taking the file block with file number 3 in the specified content as an example, if the installation package is bound to the target sequence, the installation package is downloaded a total of 10 times, among which the number of times file block 3 is triggered for use by the user but has not yet been downloaded to the electronic device is 8 times, then the probability that the file block is not downloaded in time is 80%.
[0100] In the subsequent process of calculating the target order of the installation package again, after the target order is calculated, it can be determined whether the position of each designated content in the determined target order needs to be adjusted based on the probability of each designated content not being downloaded in time. The designated content whose corresponding probability of not being downloaded in time is greater than the probability threshold is determined as the designated content to be adjusted. Exemplarily, the probability threshold can be 75%.
[0101] Then, based on the average running time of the designated content to be adjusted, the sorting position of the designated content to be adjusted is adjusted to the corresponding position in the target order, thereby obtaining a new target order. The average running time of the designated content at the corresponding position corresponds to the average running time of the inserted designated content to be adjusted. The correspondence may include being the same or the time difference being within a specified time difference threshold range.
[0102] Among them, for each specified content in the installation package, the time when it starts running can be calculated accordingly, and the timing starting point of the time when the installation package starts to be downloaded. Then the time when the specified content starts running represents the length of time from the start of downloading the installation package to the start of running the specified content. In the multiple content running sequences obtained later, for the same specified content involved in the multiple content running sequences, the average value can be calculated based on their respective corresponding start-running times, thereby obtaining the average running time corresponding to the specified content.
[0103] An installation package processing method provided by the present application is beneficial to reducing the probability that a user needs to wait for a certain period of time before using the desired function because the specified content supporting the function desired by the user has not been downloaded, thereby improving the user experience.
[0104] Below through Fig. 9 The installation package processing method and the installation package sending method involved in this application are described. Fig. 9As shown, the client installed in the electronic device can first collect samples. The sample can be understood as the content running order of the specified content in the installation package in the aforementioned embodiment. After the client collects the samples, it can upload the collected samples to the cloud.
[0105] After receiving the sample uploaded by the client, the cloud can first verify the sample. If the sample passes the verification, the sample processing can be performed, and if the sample fails, it is directly discarded. Among them, sample processing can be understood as dividing the installation package into multiple parts based on the content running order, so as to obtain the division result. Correspondingly, multiple division results will be stored in the sample library. Among them, it can be judged whether the number of samples in the sample library is greater than the threshold N, and if it is greater, the prediction of the target order can be started. Among them, the number of samples can be understood as the number of division results. In the prediction of the target order, the order to be verified can be obtained first as in the aforementioned embodiment, and then the result review of the order to be verified can be performed. Among them, the result review can be understood as the use of the second content order in the aforementioned embodiment to verify the order to be verified. During the review process, if the coverage rate is greater than M%, it is determined to pass the review (or pass the verification), and then the generated target order is stored in the prediction result library, otherwise, the order to be verified will be discarded. Among them, the coverage rate can be understood as the ratio calculated by S355 in the aforementioned embodiment.
[0106] After the target order is calculated, the target order can be associated with the installation package in the cloud, so that when another electronic device downloads the installation package through the local download and play installer, the cloud can transmit the specified content in the installation package based on the target order, so that the electronic device can quickly start the application corresponding to the installation package, and the specified content for supporting the functions that the user is likely to use first can be downloaded to the local electronic device earlier, thereby reducing the time spent by the user waiting for the content of the installation package to be downloaded while using the application.
[0107] See also Fig.10 The present application provides an installation package processing device 500, the device 500 comprising:
[0108] The data acquisition unit 510 is used to acquire a plurality of content execution sequences corresponding to the installation package, wherein the plurality of content execution sequences include an order in which a plurality of devices respectively execute the specified content in the installation package.
[0109] As a method, the data acquisition unit 510 is specifically used to obtain multiple initial content running orders corresponding to the installation package and the application running time corresponding to each initial content running order; based on the application running time, the multiple initial content running orders are filtered to obtain the multiple content running orders.
[0110] Optionally, the designated content includes content in the installation package other than necessary content, and the necessary content is content that allows triggering the startup of an application corresponding to the installation package after the installation of the installation package during the installation process.
[0111] The content division unit 520 is used to divide the specified content in the installation package based on the execution order of the multiple contents, and obtain multiple division results, wherein each division result represents that the specified content in the installation package is divided into multiple parts, and the order represented by the identifier of each part corresponds to the execution order of the specified content included in the corresponding part.
[0112] The first content sequence determining unit 530 is configured to obtain target content corresponding to each identifier and a content running sequence of the target content based on the designated content in the multiple parts corresponding to each identifier in the multiple division results.
[0113] The second content sequence determination unit 540 combines the content running sequence of the target content corresponding to each identifier based on the sequence represented by each identifier to obtain a target sequence of the specified content in the installation package, wherein the target content corresponding to the identifier with an earlier represented sequence is ranked higher in the target sequence, and the target sequence is used to download the specified content in the installation package based on the target sequence when downloading the installation package.
[0114] As a method, the first content sequence determination unit 530 is specifically used to obtain the content to be processed in the current target content acquisition process, wherein the content to be processed in the current target content acquisition process at least includes the content other than the target content corresponding to the identifier of the previous target content acquisition in the specified content of the multiple parts corresponding to the identifier of the current target content acquisition in the multiple division results; based on the corresponding exposure, the target content corresponding to the identifier of the current target content acquisition and the content running order of the target content are obtained from the current content to be processed; the next target content acquisition process is entered until the target content corresponding to each identifier and the content running order of the target content are obtained, wherein, if the current content to be processed also includes content other than the target content, the content other than the target content is added to the next content to be processed.
[0115] Optionally, the first content sequence determination unit 530 is specifically used to sort the exposure of the current content to be processed; use the specified content with a corresponding top specified number of digits in the current content to be processed as the target content, and use the corresponding exposure arrangement order as the content running order of the target content.
[0116] As a method, each designated content is a file block, and each designated content corresponds to a file number, and the file number represents the segmentation order of the corresponding designated content. In this method, the first content order determination unit 530 is specifically used to obtain reference content if the number of designated contents ranked first by a designated number of digits in the current content to be processed is greater than the configured number of target contents corresponding to the identifier, and the reference content corresponds to the designated content ranked first by a designated number of digits, and the reference number of digits is less than the designated number of digits; select a designated number of contents from the designated contents ranked first by a designated number of digits excluding the reference content based on the corresponding file number, and the designated number is the designated number of digits minus the reference number of digits; and use the designated number of contents and the reference content as target contents.
[0117] As a method, the first content sequence determination unit 530 is specifically configured to obtain the configuration quantity based on the average reaction speed of the user and the specified average download speed.
[0118] As a method, the multiple content running sequences include multiple first content running sequences and multiple second content running sequences. The content division unit 520 is specifically used to divide the specified content in the installation package based on the multiple first content running sequences, respectively, to obtain multiple division results. Correspondingly, the first content sequence determination unit 530 is specifically used to combine the content running sequence of the target content corresponding to each identifier based on the sequence represented by each identifier to obtain the sequence to be verified of the specified content in the installation package; verify the sequence to be verified based on the second content running sequence; if the verification is passed, use the sequence to be verified as the target sequence. The first content sequence determination unit 530 is also specifically used to combine the content running sequence of the target content corresponding to each identifier based on the sequence represented by each identifier to obtain the sequence to be verified of the specified content in the installation package; verify the sequence to be verified based on the second content running sequence; if the verification is passed, use the sequence to be verified as the target sequence.
[0119] Optionally, the first content sequence determination unit 530 is further specifically used to divide the specified content in the installation package into first operation content and second operation content based on the order to be verified; obtain multiple first reference operation contents and multiple second reference operation contents, the multiple first reference operation contents are multiple first operation contents obtained by dividing the specified content in the installation package based on multiple second content operation sequences, and the multiple second reference operation contents are multiple second operation contents obtained by dividing the specified content in the installation package based on multiple second content operation sequences; respectively obtain the intersections of the first operation content and the multiple first reference operation contents to obtain multiple first intersections, and use the number of specified contents included in the multiple first intersections as the first number; obtain the second numbers corresponding to the second operation content and the multiple second reference operation contents respectively to obtain multiple second numbers, the second number being the number of specified contents in the second operation content whose corresponding operation sequence is sorted before the sorting of the corresponding second reference operation content; obtain the sum of the first number and the multiple second numbers, and obtain the ratio of the sum to the number of specified contents corresponding to the multiple second content operation sequences; if the ratio is greater than a specified threshold, it is determined that the verification is passed.
[0120] The first content sequence determination unit 530 is also specifically used to divide the specified content in the installation package into a first running content and a second running content based on the sequence to be verified and the running time corresponding to the specified content included in the installation; wherein the time difference between the running time corresponding to the specified content in the first running content and the running time of the first running specified content in the installation package is less than a specified duration threshold, and the time difference between the running time corresponding to the specified content in the second running content and the running time of the first running specified content in the installation package is not less than the specified duration threshold.
[0121] See also Fig.11 The present application provides an installation package sending device 600, the device 600 comprising:
[0122] The installation package sending unit 610 is used to respond to the installation package download request and start sending the requested installation package to the target device, where the target device is the device that sends the installation package download request; wherein, in the process of sending the specified content in the installation package, the specified content is sent based on the target order corresponding to the installation package, and the target order is obtained based on the aforementioned installation package processing method.
[0123] It should be noted that the device embodiments in the present application correspond to the aforementioned method embodiments, and the specific implementation principles of each unit in the device embodiments are similar to the principles in the aforementioned method embodiments. The specific contents in the device embodiments can be found in the method embodiments, and will not be repeated in the device embodiments.
[0124] The following will be combined Fig.12 An electronic device provided by the present application is described.
[0125] See also Fig.12 Based on the above-mentioned installation package processing method and installation package sending method, the embodiment of the present application also provides another electronic device 200 that can execute the above-mentioned installation package processing method and installation package sending method. The electronic device 200 includes one or more (only one is shown in the figure) processors 102, a memory 104 and a network module 106 that are coupled to each other. Among them, the memory 104 stores a program that can execute the content of the above-mentioned embodiment, and the processor 102 can execute the program stored in the memory 104.
[0126] Among them, the processor 102 may include one or more cores for processing data. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes various functions and processes data of the electronic device 200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Optionally, the processor 102 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 102 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented separately through a communication chip.
[0127] The memory 104 may include a random access memory (RAM) or a read-only memory (ROM). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 100 during use.
[0128] The network module 106 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with an audio playback device. The network module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 106 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 106 may exchange information with a base station.
[0129] Please refer to Fig.13 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 1100 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0130] The computer readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 1110 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1110 can be compressed, for example, in an appropriate form.
[0131] In summary, the installation package processing method, installation package sending method, device and electronic device provided by the present application can first obtain the order in which multiple devices respectively run the specified content in the installation package to obtain multiple content running orders, and then divide the specified content in the installation package based on the multiple content running orders to obtain multiple division results. In addition, in the case where each division result represents that the specified content in the installation package is divided into multiple parts, and the order represented by the identifier of each part corresponds to the running order of the specified content included in the corresponding part, further based on the specified content in the multiple parts corresponding to each identifier in the multiple division results, the target content corresponding to each identifier and the content running order of the target content are obtained, and then based on the order represented by each identifier, the content running order of the target content corresponding to each identifier is combined to obtain the target order of the specified content in the installation package.
[0132] Therefore, when the higher the exposure of the specified content is, the earlier it will be used by the user after the installation package starts to be installed. The specified content with a higher exposure rate in the multiple divided parts corresponding to the identifiers with earlier orders can be placed higher in the determined target order, which is beneficial for the specified content that has a higher probability of being run earlier to be downloaded earlier after the installation package starts to be downloaded, which is beneficial for reducing the probability that the user needs to wait for a certain time to use the desired function because the specified content that supports the desired function has not been downloaded, thereby improving the user experience.
[0133] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0134] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0135] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0136] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0137] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical feature diagrams therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing an installation package, characterized in that: The method comprises: Obtaining a plurality of content execution sequences corresponding to the installation package, wherein the plurality of content execution sequences include a sequence in which the plurality of devices respectively execute the specified content in the installation package, wherein the specified content includes content other than necessary content in the installation package, wherein the necessary content is content that allows the application corresponding to the installation package to be triggered to start after the installation is performed during the installation process of the installation package; Dividing the designated contents in the installation package based on the execution order of the multiple contents respectively to obtain multiple division results, wherein each division result represents that the designated contents in the installation package are divided into multiple parts, and the order represented by the identifier of each part corresponds to the execution order of the designated contents included in the corresponding part; Obtaining target content corresponding to each identifier and a content running order of the target content based on the specified content in the multiple parts corresponding to each identifier in the multiple division results and the exposure; Based on the order represented by each identifier, the content running order of the target content corresponding to each identifier is combined to obtain the target order of the specified content in the installation package, wherein the target content corresponding to the identifier with an earlier represented order is ranked higher in the target order, and the target order is used to download the specified content in the installation package based on the target order when downloading the installation package.
2. The method according to claim 1, characterized in that The step of obtaining the target content corresponding to each identifier and the content running order of the target content based on the specified content in the multiple parts corresponding to each identifier in the multiple division results and the exposure degree includes: Acquire the content to be processed in the current target content acquisition process, wherein the content to be processed in the current target content acquisition process at least includes the content other than the target content corresponding to the identifier of the previous target content acquisition in the specified content of the multiple parts corresponding to the identifier of the current target content acquisition in the multiple division results; Acquire, from the current to-be-processed content based on the corresponding exposure, the target content corresponding to the identifier currently performing target content acquisition and the content running order of the target content; Enter the next target content acquisition process until the target content corresponding to each identifier and the content running order of the target content are obtained, wherein, if the content to be processed at this time also includes content other than the target content, the content other than the target content is added to the content to be processed next time.
3. The method according to claim 2, characterized in that The step of acquiring the target content corresponding to the identifier currently performing target content acquisition and the content running order of the target content from the current content to be processed based on the corresponding exposure degree includes: Sorting the exposure of the current content to be processed; The designated content with the designated top position in the current content to be processed is used as the target content, and the arrangement order of the corresponding exposure degree is used as the content running order of the target content.
4. The method according to claim 3, characterized in that Each designated content is a file block, and each designated content corresponds to a file number, the file number represents the segmentation order of the corresponding designated content, and the designated content ranked first by a designated number of digits in the current content to be processed is used as the target content, including: If the number of designated contents ranked first by a designated number of digits in the current contents to be processed is greater than the configured number of target contents corresponding to the identifier, obtaining reference contents, the reference contents corresponding to the designated contents ranked first by a designated number of digits, the reference number of digits being less than the designated number of digits; Selecting a specified number of contents from the specified contents ranked first by a specified number of digits excluding the reference contents based on the corresponding file numbers, wherein the specified number of digits is the specified number of digits minus the reference number of digits; The designated number of contents and the reference contents are used as target contents.
5. The method according to claim 4, characterized in that The method further comprises: The configuration quantity is obtained based on an average reaction speed of the user and a specified average download speed.
6. The method according to claim 1, characterized in that The multiple content execution sequences include multiple first content execution sequences and multiple second content execution sequences; the designated content in the installation package is divided based on the multiple content execution sequences to obtain multiple division results, including: Dividing the designated contents in the installation package based on the execution order of the multiple first contents respectively to obtain multiple division results; The step of combining the content running order of the target content corresponding to each identifier based on the order represented by each identifier to obtain the target order of the specified content in the installation package includes: Based on the order represented by each identifier, the content running order of the target content corresponding to each identifier is combined to obtain the order to be verified of the specified content in the installation package; Verifying the to-be-verified sequence based on the second content running sequence; If the verification is passed, the sequence to be verified is used as the target sequence.
7. The method according to claim 6, characterized in that The designated content includes a first running content and a second running content; the download order corresponding to the first running content is before the download order of the second running content, and the verifying the sequence to be verified based on the running order of the second content includes: Dividing the specified content in the installation package into a first running content and a second running content based on the order to be verified; Acquire a plurality of first reference operation contents and a plurality of second reference operation contents, wherein the plurality of first reference operation contents are obtained by dividing the specified contents in the installation package based on the execution order of the plurality of second contents, and the plurality of second reference operation contents are obtained by dividing the specified contents in the installation package based on the execution order of the plurality of second contents; Respectively obtaining intersections of the first running content and the plurality of first reference running contents to obtain a plurality of first intersections, and taking the number of designated contents included in the plurality of first intersections as a first number; Obtaining second quantities corresponding to the second running contents and the plurality of second reference running contents respectively, to obtain a plurality of second quantities, wherein the second quantity is the quantity of specified contents in the second running contents, the corresponding running order being before the order of the corresponding second reference running contents; Obtaining a sum of the first number and the plurality of second numbers, and obtaining a ratio of the sum to a number of designated contents corresponding to the execution order of the plurality of second contents; If the ratio is greater than a specified threshold, it is determined that the verification is passed.
8. The method according to claim 7, characterized in that The dividing the specified content in the installation package into a first running content and a second running content based on the to-be-verified order includes: Dividing the specified content in the installation package into a first running content and a second running content based on the sequence to be verified and the running time corresponding to the specified content included in the installation; Among them, the time difference between the running time corresponding to the specified content in the first running content and the running time of the first running specified content in the installation package is less than the specified duration threshold, and the time difference between the running time corresponding to the specified content in the second running content and the running time of the first running specified content in the installation package is not less than the specified duration threshold.
9. The method according to any one of claims 1 to 8, characterized in that: The designated content includes the content in the installation package except the necessary content, and the necessary content is the content that allows the installation package to trigger the startup of the application corresponding to the installation package after installation during the installation process of the installation package.
10. The method according to any one of claims 1 to 8, characterized in that: Before obtaining the execution order of multiple contents corresponding to the installation package, the following step is also included: Obtaining multiple initial content running sequences corresponding to the installation package and the application running time corresponding to each initial content running sequence; The multiple initial content running sequences are screened based on the application running time to obtain the multiple content running sequences.
11. A method for sending an installation package, characterized in that: The method comprises: In response to the installation package download request, start sending the requested installation package to a target device, where the target device is the device that sent the installation package download request; Wherein, in the process of sending the specified content in the installation package, the specified content is sent based on a target sequence corresponding to the installation package, and the target sequence is obtained based on the method described in any one of claims 1-9.
12. According to the method of claim 11, the specified content includes the content in the installation package other than the necessary content, and the necessary content is the content that allows the installation package to trigger the startup of the application corresponding to the installation package after installation during the installation process of the installation package.
13. An installation package processing device, characterized in that: The device comprises: a data acquisition unit, configured to acquire a plurality of content execution sequences corresponding to the installation package, wherein the plurality of content execution sequences include a sequence in which the plurality of devices respectively execute the specified content in the installation package, wherein the specified content includes content other than necessary content in the installation package, wherein the necessary content is content that allows the application corresponding to the installation package to be triggered to start after the installation is performed during the installation process of the installation package; a content division unit, configured to divide the specified contents in the installation package based on the execution order of the multiple contents, respectively, to obtain multiple division results, wherein each division result represents that the specified contents in the installation package are divided into multiple parts, and the order represented by the identifier of each part corresponds to the execution order of the specified contents included in the corresponding part; A first content sequence determination unit, configured to obtain target content corresponding to each identifier and a content running sequence of the target content based on the designated content in the multiple parts corresponding to each identifier in the multiple division results and the exposure degree; The second content sequence determination unit combines the content running sequence of the target content corresponding to each identifier based on the sequence represented by each identifier to obtain a target sequence of the specified content in the installation package, wherein the target content corresponding to the identifier with an earlier represented sequence is ranked higher in the target sequence, and the target sequence is used to download the specified content in the installation package based on the target sequence when downloading the installation package.
14. An installation package sending device, characterized in that: The device comprises: An installation package sending unit, configured to, in response to an installation package download request, start sending the requested installation package to a target device, where the target device is a device that sends the installation package download request; Wherein, in the process of sending the specified content in the installation package, the specified content is sent based on a target sequence corresponding to the installation package, and the target sequence is obtained based on the method described in any one of claims 1-9.
15. An electronic device, characterized in that: including one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method of any one of claims 1-10, or execute the method of any one of claims 11-12.
16. A computer-readable storage medium storing a program code executable by a processor, characterized in that: The computer-readable storage medium includes stored program codes, wherein when the program codes are run, the method according to any one of claims 1 to 10 is executed, or the method according to any one of claims 11 to 12 is executed.
Citation Information
Patent Citations
Application program loading method and device
CN110209401A
Pre-installed application program starting method and device, electronic equipment and storage medium
CN112732365A
Resource processing method and device, storage medium and electronic equipment
CN113254105A