Method and device for determining installation guide information, electronic equipment and storage medium

By identifying and mapping the location information of necessary file blocks in the installation package, and using the installation guide information to quickly locate and download the necessary file blocks, the problem of increased installation time is solved, installation efficiency is improved, and the integrity of the installation package is guaranteed.

CN114296746BActive Publication Date: 2025-11-25BEIJING OPPO TELECOMM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111452906.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-01
Publication Date
2025-11-25
Estimated Expiration
2041-12-01

AI Technical Summary

Technical Problem

As the complexity of applications in electronic devices increases, the size of installation packages grows, leading to longer installation times and reduced installation efficiency.

Method used

Determine the location information of necessary file blocks in the installation package and map them to the installation guidance information. Quickly locate and download the necessary file blocks for installation using the first type of identifier.

Benefits of technology

It shortens installation and download time, improves installation efficiency, ensures the integrity of the installation package, and avoids installation failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114296746B_ABST
    Figure CN114296746B_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the software technical field, and disclose a kind of installation guide information determination method and device, electronic equipment, storage medium, the method includes: determining the position information corresponding to at least one necessary file block in installation package respectively, position information is used to indicate the position of necessary file block in installation package, and necessary file block is the minimum file block that supports the normal installation and start of the application program corresponding to installation package;And, according to the position information corresponding to each necessary file block respectively, each necessary file block is mapped into installation guide information, installation guide information includes the first type identification for mapping necessary file block, each necessary file block corresponds N first type identification, and the arrangement position of N first type identification in installation guide information has corresponding relationship with the position information of corresponding necessary file block, and N is positive integer. Implement the present application embodiment, and the installation efficiency of installation package can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software technology, specifically to a method and apparatus for determining installation guidance information, an electronic device, and a storage medium. Background Technology

[0002] With the rapid development of electronic device technology, the functions of applications in electronic devices are becoming increasingly complex, resulting in a growing amount of data in application installation packages.

[0003] In practice, it has been found that as the amount of data in the installation package gradually increases, the time required to install and run the installation package on electronic devices is also gradually increasing, resulting in a decrease in the installation efficiency of the installation package. Summary of the Invention

[0004] This application discloses a method and apparatus for determining installation guidance information, an electronic device, and a storage medium, which can improve the installation efficiency of the installation package.

[0005] The first aspect of this application discloses a method for determining installation guidance information, including:

[0006] Determine the location information corresponding to at least one necessary file block in the installation package. The location information is used to indicate the position of the necessary file block in the installation package. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0007] Each necessary file block is mapped to the installation guidance information according to its corresponding location information. The installation guidance information includes a first type of identifier for mapping the necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guidance information corresponds to the location information of the corresponding necessary file block. N is a positive integer.

[0008] The second aspect of this application discloses a method for installing an installation package, comprising:

[0009] Obtain the installation guidance information corresponding to the installation package. The installation guidance information includes a first type of identifier for mapping necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guidance information corresponds to the position of the corresponding necessary file block in the installation package. N is a positive integer. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0010] Based on the arrangement of each of the first type of identifiers in the installation guidance information, the corresponding first position is determined in the installation package;

[0011] First installation data is obtained from the first location, and the first installation data is installed. The first installation data is a necessary file block or a part of a necessary file block.

[0012] A third aspect of this application discloses a device for determining installation guidance information, comprising:

[0013] The first determining unit is used to determine the location information corresponding to at least one necessary file block in the installation package. The location information is used to indicate the position of the necessary file block in the installation package. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0014] The mapping unit is used to map each necessary file block to the installation guidance information according to the location information corresponding to each necessary file block. The installation guidance information includes a first type of identifier for mapping the necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guidance information has a corresponding relationship with the location information of the corresponding necessary file block. N is a positive integer.

[0015] The fourth aspect of this application discloses an installation device for an installation package, comprising:

[0016] The acquisition unit is used to acquire installation guidance information corresponding to the installation package. The installation guidance information includes a first type of identifier for mapping necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guidance information corresponds to the position of the corresponding necessary file block in the installation package. N is a positive integer. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0017] The second determining unit is used to determine the corresponding first position in the installation package according to the arrangement position of each of the first type of identifiers in the installation guidance information;

[0018] An installation unit is configured to obtain first installation data from the first location and install the first installation data, wherein the first installation data is a necessary file block or a portion thereof.

[0019] The fifth aspect of this application discloses an electronic device, comprising:

[0020] Memory containing executable program code;

[0021] A processor coupled to the memory;

[0022] The processor calls the executable program code stored in the memory to execute the method for determining installation guidance information disclosed in the first aspect of the embodiments of this application, or the method for installing the installation package disclosed in the second aspect.

[0023] The sixth aspect of this application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the method for determining installation guidance information disclosed in the first aspect of this application, or the method for installing an installation package disclosed in the second aspect.

[0024] Compared with related technologies, the embodiments of this application have the following beneficial effects:

[0025] In this embodiment, the location of at least one necessary file block within the installation package can be determined. Then, based on the location of each necessary file block, it can be mapped to the installation guidance information. Since the installation guidance information indicates the necessary file blocks supporting the normal installation and startup of the application corresponding to the installation package, and the location of each file block within the installation package, the necessary file blocks can be quickly identified from the installation package based on the installation guidance information. Only the necessary file blocks are downloaded and installed, thereby shortening the installation and download time and improving the installation efficiency. Furthermore, the method for determining the installation guidance information is a static analysis process on an uninstalled installation package. The entire analysis process does not destroy the data of the installation package, thus ensuring the integrity of the installation package and preventing situations where the installation package cannot be installed and run normally. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram illustrating an application scenario of a method for determining installation guidance information disclosed in an embodiment of this application;

[0028] Figure 2 This is a flowchart illustrating a method for determining installation guidance information disclosed in an embodiment of this application;

[0029] Figure 3 This is a schematic diagram of an installation guidance information disclosed in an embodiment of this application;

[0030] Figure 4 This is a flowchart illustrating another method for determining installation guidance information disclosed in an embodiment of this application;

[0031] Figure 5 This is a flowchart illustrating an installation method for an installation package disclosed in an embodiment of this application;

[0032] Figure 6 This is a schematic diagram of the structure of an installation guidance information determination device disclosed in an embodiment of this application;

[0033] Figure 7 This is a schematic diagram of the structure of an installation device for an installation package disclosed in an embodiment of this application;

[0034] Figure 8 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0035] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0036] It should be noted that the terms "first," "second," "third," and "fourth," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order. The terms "comprising" and "having," and any variations thereof, in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.

[0037] This application discloses a method and apparatus for determining installation guidance information, an electronic device, and a storage medium, which can improve the installation efficiency of the installation package.

[0038] The technical solution of this application will be described in detail below with reference to specific embodiments.

[0039] To more clearly illustrate the method, apparatus, electronic device, and storage medium for determining installation guidance information disclosed in the embodiments of this application, an application scenario suitable for this method of determining installation guidance information is first introduced. Optionally, this method for determining installation guidance information can be applied to various installation package analysis devices, which are used to perform static analysis on installation packages to determine the installation guidance information. Optionally, the installation package analysis device may include: a server storing installation packages (including cloud servers, server clusters), an installation package providing platform (e.g., app stores, app download websites, etc.), or equipment of installation package developers, without limitation.

[0040] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of a method for determining installation guidance information disclosed in this application. Optionally, the device 100 of the installation package developer can upload the installation package to the server 110, and then the installation package analysis device 120 can analyze the installation package stored on the server to determine the location of at least one necessary file block (i.e., the minimum file block that supports the normal installation and startup of the application corresponding to the installation package) in the installation package, and map each necessary file block to the installation guidance information according to the location of each necessary file block in the installation package.

[0041] When the installation package provider platform 130 receives a download and installation request for the installation package, it can obtain the necessary file blocks indicated by the installation guidance information from the server 110 storing the installation package according to the installation guidance information, and distribute the necessary file blocks to the electronic device 140 (i.e., the electronic device held by the user, including but not limited to mobile phones, tablets, etc.). After receiving the necessary file blocks, the electronic device 140 can install the necessary file blocks to start and run the application corresponding to the installation package.

[0042] It should be noted that the aforementioned server 110, installation package analysis device 120, installation package providing platform 130, and electronic device 140 can be devices that support incremental file systems. An incremental file system is a system that can divide a complete file into multiple file blocks and supports segmented writing or reading of file blocks. Therefore, the aforementioned devices can extract necessary file blocks from the installation package and perform separate writing and reading of these necessary file blocks. Furthermore, Figure 1 This is merely an example to illustrate the method for determining installation guidance information disclosed in the embodiments of this application, and should not be construed as limiting the embodiments of this application.

[0043] As can be seen, by implementing the method for determining installation guidance information disclosed in this application, the location of at least one necessary file block in the installation package can be determined. Then, each necessary file block can be mapped to the installation guidance information based on its location within the installation package. Since the installation guidance information indicates the necessary file blocks that support the normal installation and startup of the application corresponding to the installation package, as well as the location of each file block within the installation package, the necessary file blocks can be quickly determined from the installation package based on the installation guidance information. Only the necessary file blocks are downloaded and installed, thereby shortening the installation and download time and improving the installation efficiency. Furthermore, this method for determining installation guidance information is a static analysis process of an uninstalled installation package. The entire analysis process does not destroy the data of the installation package, thus ensuring the integrity of the installation package and preventing situations where the installation package cannot be installed and run normally.

[0044] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for determining installation guidance information disclosed in an embodiment of this application. Optionally, this method can be applied to the aforementioned installation package analysis device or other execution entities, and is not limited thereto. The method may include the following steps:

[0045] 202. Determine the location information corresponding to at least one necessary file block in the installation package. The location information is used to indicate the position of the necessary file block in the installation package. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0046] In this embodiment, the installation package is a compressed file package including various installation files, including but not limited to APK (Android application package), Debian application package, and other application installation packages. In other embodiments, the installation package may also include operating system installation packages, system tool installation packages, language installation packages, etc. This embodiment uses an application installation package as an example for illustration and should not be construed as limiting the scope of this embodiment.

[0047] Optionally, the installation package may include, but is not limited to, necessary file blocks such as signature information, registry entries, and icons, as well as non-essential file blocks such as assets files and raw files. As mentioned above, necessary file blocks are the minimum file blocks required to support the normal installation and startup of the application corresponding to the installation package; correspondingly, non-essential file blocks are not the minimum file blocks required to support the normal installation and startup of the application corresponding to the installation package; in addition, the installation package may also include other file blocks that do not need to be installed, which is not limited here.

[0048] In this embodiment, the electronic device can first download and install necessary file blocks to ensure the application can start and run normally. Then, during the application's operation, other non-essential file blocks are downloaded in the background to shorten the download and installation time of the installation package. From the user's perspective, this method does not affect the user's normal use of the application. However, compared to related technologies that require downloading and installing the entire installation package before starting the application, this embodiment only requires the electronic device to download and install necessary file blocks before starting the application. This reduces the amount of data downloaded and installed, shortens the download and installation time, avoids long waiting times for users during the download and installation process, and improves the user experience.

[0049] Optionally, before downloading and installing the installation package, the installation package analysis device can identify at least one necessary file block from the installation package. Furthermore, to facilitate the subsequent installation package providing platform or electronic device to quickly obtain the necessary file block from the installation package, the installation package analysis device can further determine the location of the necessary file block in the installation package and subsequently record the location of each necessary file block in the installation guidance information, thereby enabling the subsequent installation package providing platform or electronic device to quickly obtain the necessary file block from the installation package based on the installation guidance information.

[0050] Optionally, the installation package analysis device can receive necessary file block determination information and determine at least one necessary file block in the installation package based on the necessary file block determination information. The necessary file block determination information is used to determine the necessary file blocks in the installation package, and this information can be determined by developers based on extensive development experience.

[0051] In another embodiment, the necessary file block determination information may also be obtained by the installation package analysis device or other analysis devices through analysis of the installation and operation process of the installation package, and is not limited here.

[0052] 204. Based on the location information corresponding to each necessary file block, map each necessary file block to the installation guidance information. The installation guidance information includes a first-class identifier used to map the necessary file blocks. Each necessary file block corresponds to N first-class identifiers. The arrangement of the N first-class identifiers in the installation guidance information corresponds to the location information of the corresponding necessary file block. N is a positive integer.

[0053] In this embodiment of the application, the installation package analysis device can determine the corresponding arrangement position in the installation guidance information based on the position of each necessary file block in the installation package, and add the corresponding first-type identifier at the arrangement position, so as to achieve the effect that the position of the necessary file block in the installation package corresponds to the arrangement position of the corresponding first-type identifier in the installation guidance information.

[0054] Combination Figure 3 For example, Figure 3 This is a schematic diagram of an installation guidance information disclosed in an embodiment of this application. The installation guidance information 300 may include multiple first-type identifiers 310 (identifier blocks with gray background in the figure) used to map necessary file blocks. The data volume corresponding to each first-type identifier 310 may be the data volume corresponding to the smallest partition block that the incremental file system can divide, or a first multiple of the data volume corresponding to the smallest partition block, which is not limited here. The data volume corresponding to the smallest partition block can be set by the developers according to different development needs, which is not limited here.

[0055] Please refer to further information. Figure 3 The directory information 320 contains a resource index (resource.arsc) 330 located at the beginning of the installation package. Therefore, the three first-class identifiers 310 corresponding to the resource index 330 can be placed at the beginning of the installation guidance information 300. Conversely, the directory file block (End of Central Directory) 340 located at the end of the installation package can have its three first-class identifiers 310 corresponding to the directory file block 340 placed at the end of the installation guidance information 300. This facilitates determining the location of the file block corresponding to the first-class identifier 310 within the installation package based on its position within the installation guidance information 300. It should be noted that the terms "header" and "tailer" are used only for reference. Figure 3 The description is intended to illustrate, but should not be construed as limiting the scope of the embodiments described in this application.

[0056] In another embodiment, the installation package analysis device can also determine the amount of data corresponding to at least one necessary file block in the installation package, and then map each necessary file block to the installation guidance information according to the location information and data amount of each necessary file block.

[0057] Optionally, the installation package analysis device can obtain the corresponding arrangement position in the installation guidance information based on the position of each necessary file block in the installation package, and determine the corresponding number of N first-class identifiers based on the data volume of each necessary file block, and then add the N first-class identifiers to the determined arrangement position.

[0058] Optionally, the installation package analysis device can obtain the first data volume of the smallest segment block corresponding to the incremental file system, which is used to segment the data in the installation package to obtain multiple file blocks. The smallest segment block is the smallest file block that the incremental file system can segment. Then, the installation package analysis device can divide the data volume corresponding to the necessary file block by the first data volume corresponding to the smallest segment block to obtain the calculation result, and determine the number N of the first type of identifiers corresponding to the necessary file block based on the calculation result.

[0059] Optionally, if the calculation result includes only the first quotient, then the first quotient is used as the number N of the first type of identifiers corresponding to the necessary file block; if the calculation result includes the first quotient and the first remainder, then the first quotient plus one is used as the number N of the first type of identifiers corresponding to the aforementioned necessary file block.

[0060] Combination Figure 3 For example, assuming the data size corresponding to AndroidManifest 350 divided by the first data size corresponding to the smallest partition block results in 4, then AndroidManifest 350 can correspond to 4 first-class identifiers 310 ( Figure 3 The use of the length of the diagram corresponding to the identifier and file block to represent the data volume of the identifier or file block is for illustrative purposes only and should not be construed as limiting the embodiments of this application. In another embodiment, if the data volume corresponding to the necessary file block, divided by the first data volume corresponding to the smallest segment block, includes a first quotient and a first remainder, then the first quotient plus one can be used as the number N of the first type identifiers corresponding to the aforementioned necessary file block. For example, after some data of resource index 330 is mapped to two first type identifiers (the two first type identifiers "0" and "1" in the diagram), the remaining data is less than the data volume corresponding to the smallest segment block (the first type identifier corresponding to "2" in the diagram). However, since the smallest segment block cannot be further divided, the remaining data is still mapped to a first type identifier.

[0061] Furthermore, if the data size of a necessary file block is less than the data size corresponding to the minimum partition block, but since the minimum partition block can no longer be partitioned, a mapping relationship is still established between the necessary file block and a first-class identifier 310 even if the data size corresponding to the necessary file block is less than the data size corresponding to the minimum partition block.

[0062] By implementing the methods disclosed in the above embodiments, the location of at least one necessary file block in the installation package can be determined. Then, each necessary file block can be mapped to the installation guidance information based on its location within the installation package. Since the installation guidance information indicates the necessary file blocks that support the normal installation and startup of the application corresponding to the installation package, as well as the location of each file block within the installation package, the necessary file blocks can be quickly identified from the installation package based on the installation guidance information. Only the necessary file blocks are downloaded and installed, thereby shortening the installation and download time and improving the installation efficiency. Furthermore, the method for determining the installation guidance information is a static analysis process of an uninstalled installation package. The entire analysis process does not destroy the data of the installation package, thus ensuring the integrity of the installation package and preventing situations where the installation package cannot be installed and run normally.

[0063] Please see Figure 4 , Figure 4 This is a flowchart illustrating another method for determining installation guidance information disclosed in an embodiment of this application. Optionally, this method can be applied to the aforementioned installation package analysis device or other execution entities, and is not limited thereto. The method may include the following steps:

[0064] 402. Determine the location information corresponding to at least one necessary file block in the installation package. The location information is used to indicate the position of the necessary file block in the installation package. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0065] In one embodiment, the necessary file block may include a directory file block, which may include CentralDirectory, End of CentralDirectory, etc., and includes directory information of the installation package; optionally, the installation package analysis device may parse the installation package to obtain parsed information (such as... Figure 3 The parsing information 360 shows that the location information of the directory file block in the installation package is recorded. The installation package analysis device can determine the location information of the directory file block in the installation package based on the parsing information. Furthermore, the installation package analysis device can also determine the amount of data corresponding to the directory file block based on the parsing information.

[0066] By implementing the above method, the location information and data volume of directory file blocks can be determined by parsing the information obtained from the installation package. In addition, it is convenient to determine the directory information corresponding to the installation package based on the directory file blocks, and then determine the location information and data volume of other necessary file blocks based on the directory information.

[0067] In another embodiment, the necessary file block may further include first installation necessary information, which is installation necessary information in the directory information where both location information and data volume information are recorded, including but not limited to: application manifest (AndroidManifest), resource index (resource.arsc), signing information (Signing Blocks), registry, and installation code (including dex format code and so format code).

[0068] Optionally, the installation package analysis device can parse directory file blocks to obtain the directory information corresponding to the installation package (e.g., ...). Figure 3 The installation package analysis device can determine the location information of the first necessary installation information in the installation package based on the directory information (320). Furthermore, the installation package analysis device can also determine the amount of data corresponding to the first necessary installation information based on the directory information.

[0069] In another embodiment, the necessary file block may further include second installation necessary information, which is installation necessary information whose location information and data volume information are not recorded in the directory information. The second installation necessary information may include, but is not limited to, the application icon.

[0070] Since the location and data volume of the second necessary installation information are not recorded in the directory information, it is necessary to determine the path of the folder containing the second necessary installation information in the installation package in order to find the second necessary installation information and thus determine its location and data volume.

[0071] Alternatively, the installation package analysis device can parse the application list and determine the second necessary installation information included in the installation package based on the parsing results. Then, it can determine the path information corresponding to the second necessary installation information (i.e., the path of the folder where the second necessary installation information is located in the installation package) based on the resource index, and determine the location information of the second necessary installation information in the installation package based on the path information corresponding to the second necessary installation information.

[0072] Optionally, the installation package analysis device can also determine the amount of data corresponding to the second installation necessary information based on the path information corresponding to the second installation necessary information.

[0073] By implementing the methods disclosed in the above embodiments, the location information and data volume of the first installation necessary information can be determined by parsing the directory information obtained from the directory file block. For the second installation necessary information whose location information and data volume are not recorded in the directory information, the location information and data volume of the second installation necessary information can be determined by parsing the application list and resource index, thereby improving the flexibility of the method for determining the installation guidance information.

[0074] In some alternative embodiments, the installation package analysis device can determine the storage range (i.e., range) corresponding to at least one necessary file block in the installation package. The storage range represents the location range of the corresponding necessary file block in the installation package, that is, the "start to end" information of the necessary file block. Then, the installation package analysis device can determine the location information and data volume of the necessary file block according to the storage range corresponding to the necessary file block.

[0075] 404. Based on the location information corresponding to each necessary file block, map each necessary file block to the installation guidance information. The installation guidance information includes a first-class identifier used to map the necessary file blocks. Each necessary file block corresponds to N first-class identifiers. The arrangement of the N first-class identifiers in the installation guidance information corresponds to the location information of the corresponding necessary file block. N is a positive integer.

[0076] Please refer to it again. Figure 3 Optionally, the installation guidance information 300 also includes a second type of identifier 370 (identifier blocks with a white background in the figure) for mapping unnecessary file blocks. Each unnecessary file block can correspond to M second type identifiers 370. For example, a RAW file 380 can correspond to 3 second type identifiers 370. Figure 3 (The three second-class identifiers "3, 4, 5" in the text). In addition, the arrangement of the M second-class identifiers 370 in the installation guidance information 300 can correspond to the position of the corresponding non-essential file blocks in the installation package. The number M of second-class identifiers corresponding to the non-essential file blocks can be determined based on the data volume of the non-essential file blocks, and M is a positive integer.

[0077] Optionally, the installation package analysis device can determine the location and data volume of at least one non-essential file block in the installation package, and then map each non-essential file block to the installation guidance information according to its location and quantity in the installation package.

[0078] It should be noted that the mapping method for non-essential file blocks can be similar to the mapping method for essential file blocks described above, and will not be repeated here.

[0079] By implementing the above method, subsequent devices can quickly determine the location of non-essential file blocks in the installation package based on the installation guide information, and install the non-essential files, thereby improving the installation efficiency of non-essential files.

[0080] 406. Based on the arrangement of each Class I identifier in the installation guidance information, determine the first position in the installation package that corresponds to the arrangement position.

[0081] As mentioned above, the arrangement of the N first-class identifiers corresponding to the necessary file blocks in the installation guidance information corresponds to the position information of the corresponding necessary file blocks. It can be understood that if a necessary file block corresponds to one first-class identifier, then the first position of that first-class identifier in the installation guidance information within the installation package is the position of the necessary file block within the installation package. It should be further noted that necessary file blocks occupy a certain amount of storage space within the installation package, so the position of a necessary file block within the installation package is a storage range. Therefore, if a necessary file block corresponds to N first-class identifiers, then each of the N first-class identifiers corresponds to one-Nth of the storage range occupied by the necessary file block within the installation package. That is, the position of the necessary file block corresponding to the N first-class identifiers within the installation package can be divided into N first positions, and the arrangement of each first-class identifier in the installation guidance information can correspond to a single first position.

[0082] Combination Figure 3 For example, if application list 350 corresponds to 4 first-class identifiers 310 (i.e., 4 first-class identifiers marked "6, 7, 8, 9"), then the position of application list 350 in the installation package can be divided into 4 first positions. Among them, the first-class identifier marked "6" can correspond to the first first position, the first-class identifier marked "7" can correspond to the first second position, and so on.

[0083] Optionally, the installation package provider can determine the first position in the installation package corresponding to the arrangement of each first-class identifier in the installation guidance information.

[0084] 408. Obtain the first installation data from the first location and install the first installation data, wherein the first installation data is a necessary file block or a part of a necessary file block.

[0085] As mentioned above, a Class I identifier can correspond to a necessary file block, or a portion of a necessary file block (e.g., one-third, one-quarter, etc.). If a necessary file block or a portion of a necessary file block is collectively referred to as the first installation data, then a Class I identifier can correspond to one piece of first installation data.

[0086] Alternatively, the installation package provider can determine the first position corresponding to the arrangement position in the installation package based on the arrangement position of each first type of identifier in the installation guidance information, and then obtain the first installation data from the first position and install the first installation data.

[0087] By implementing the methods disclosed in the above embodiments, necessary file blocks can be quickly identified from the installation package based on the installation guidance information, and only necessary file blocks can be downloaded and installed, thereby shortening the installation and download time of the installation package and improving the installation efficiency of the installation package; furthermore, the location information and data volume of directory file blocks can be determined by parsing the parsing information obtained from the installation package, which also facilitates the subsequent determination of the directory information corresponding to the installation package based on the directory file blocks, and further determines the location information and data volume of other necessary file blocks based on the directory information; furthermore, the location information and data volume of the first installation necessary information can be determined by parsing the directory information obtained from the directory file blocks, while for the second installation necessary information whose location information and data volume information are not recorded in the directory information, the location information and data volume of the second installation necessary information can be determined by parsing the application list and resource index, improving the flexibility of the method for determining the installation guidance information; and furthermore, it enables the subsequent device to quickly determine the location of non-essential file blocks in the installation package based on the installation guidance information and install the non-essential files, thereby improving the installation efficiency of non-essential files.

[0088] Please see Figure 5 , Figure 5 This is a flowchart illustrating an installation method for an installation package disclosed in an embodiment of this application. This method can be applied to the aforementioned installation package providing platform or other execution entities, and is not limited thereto. The method may include the following steps:

[0089] 502. Obtain the installation guide information corresponding to the installation package. The installation guide information includes the first type of identifier used to map the necessary file blocks. Each necessary file block corresponds to N first type identifiers, where N is a positive integer. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0090] In this embodiment of the application, when the installation package providing platform receives an installation package download request from an electronic device that needs to install an application, it can determine the target installation package based on the installation package download request, obtain the installation guidance information corresponding to the target installation package from the installation package analysis device, and then download the installation package from the cloud server based on the installation guidance information.

[0091] 504. Based on the arrangement of each Class I identifier in the installation guidance information, determine the corresponding first position in the installation package.

[0092] As mentioned above, essential file blocks occupy a certain amount of storage space in the installation package, so their location within the package constitutes a storage range. Therefore, if an essential file block corresponds to N first-class identifiers, then each of the N first-class identifiers corresponds to one-Nth of the storage range occupied by the essential file block in the installation package. In other words, the location of the essential file block corresponding to the N first-class identifiers in the installation package can be divided into N first positions, and the arrangement of each first-class identifier in the installation guidance information can correspond to a single first position. Optionally, the installation package platform can determine the first position corresponding to the arrangement of each first-class identifier in the installation guidance information within the installation package.

[0093] In one embodiment, the installation guidance information may further include a second type of identifier for mapping non-essential file blocks, which are not the smallest file blocks required to support the normal installation and startup of the application corresponding to the installation package. Further, the installation package providing platform may sequentially read one identifier from the installation guidance information as a target identifier according to the order of the identifiers in the installation guidance information; if the target identifier belongs to the first type of identifier, then a first position corresponding to the arrangement position of the target identifier in the installation guidance information is determined in the installation package; if the target identifier belongs to the second type of identifier, then the next identifier is read as the target identifier.

[0094] Combination Figure 3 For example, the installation package platform sequentially reads four identifiers marked "0, 1, 2, 3" as target identifiers. Understandably, when the target identifier is marked "0", since it is a first-type identifier, the installation package platform can obtain the first installation data based on the order of the target identifiers. Similarly, identifiers marked "1" and "2" are treated similarly. However, when the target identifier is marked "3", since it is a second-type identifier, the data corresponding to "3" does not need to be installed first. Therefore, the installation package platform can read the identifier marked "4" as the target identifier, and so on until the last identifier.

[0095] By implementing the above method, the installation package provider platform can quickly and accurately determine the necessary file blocks in the installation package based on the installation guide information, thereby improving the installation efficiency of the installation package.

[0096] 506. Obtain the first installation data from the first location and install the first installation data, wherein the first installation data is a necessary file block or a part of a necessary file block.

[0097] In this embodiment, the installation package can be stored on a cloud server, facilitating download by the platform or device without occupying local storage space. Furthermore, after determining the first location, the platform can download the first installation data from the first location in the installation package stored on the cloud server and install the first installation data.

[0098] By implementing the above method, the installation package can be stored on a cloud server, making it convenient for platforms or devices to download without occupying local storage space on the platform or device.

[0099] In one embodiment, each second type identifier corresponds to a second installation data, which is a non-essential file block or a portion thereof. The arrangement position of each second type identifier in the installation guidance information corresponds to the second position of the corresponding second installation data in the installation package.

[0100] Furthermore, after the necessary file blocks are installed, the application corresponding to the installation package can be installed and launched normally. The installation package provider can then determine the second position in the installation package corresponding to the arrangement position of each second type of identifier in the installation guidance information through the background; and obtain the second installation data from the second position and install the second installation data.

[0101] By implementing the above method, the installation package provider platform can continue to install unnecessary file blocks in the background after the application starts running normally. This allows all necessary file blocks to be installed without affecting the user's use of the application, thus ensuring that the application can run other functions.

[0102] In another embodiment, if during the operation of the application corresponding to the installation package, it is detected that the target second installation data supporting the execution of the target process of the application is not installed, the installation package providing platform can obtain the target second installation data from the second position in the installation package corresponding to the arrangement position of the second type identifier corresponding to the target second installation data in the installation guidance information, and install the target second installation data.

[0103] It is understandable that the second installation data (i.e., non-essential file blocks or portions of non-essential file blocks) are installed sequentially according to the order of their corresponding second-class identifiers in the installation guidance information. Therefore, it is possible that when the application runs to a certain target process and requires a certain target second installation data, but that target second installation data has not yet been installed, the installation package platform can prioritize downloading and installing the target second installation data to ensure that the application can run the target process normally, thus improving the flexibility of the installation package installation method.

[0104] By implementing the methods disclosed in the above embodiments, necessary file blocks can be quickly identified from the installation package based on the installation guidance information, and only necessary file blocks can be downloaded and installed, thereby shortening the installation and download time of the installation package and improving the installation efficiency of the installation package; furthermore, the installation package can be stored on a cloud server, which facilitates downloading by the platform or device without occupying local storage space on the platform or device; furthermore, after the application starts running normally, the installation package providing platform can continue to install non-essential file blocks in the background, thereby installing all necessary file blocks without affecting the user's use of the application, ensuring that the application can run other functions; and furthermore, the installation package providing platform can prioritize downloading and installing the target second installation data that is needed, to ensure that the application can run the current process normally, improving the flexibility of the installation package installation method.

[0105] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an installation guidance information determination device disclosed in an embodiment of this application. This device can be applied to the aforementioned installation package analysis equipment or other execution entities. The device may include: a first determination unit 601 and a mapping unit 602, wherein:

[0106] The first determining unit 601 is used to determine the location information corresponding to at least one necessary file block in the installation package. The location information is used to indicate the position of the necessary file block in the installation package. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0107] The mapping unit 602 is used to map each necessary file block to the installation guidance information according to the location information corresponding to each necessary file block. The installation guidance information includes a first type of identifier used to map the necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guidance information has a corresponding relationship with the location information of the corresponding necessary file block. N is a positive integer.

[0108] By implementing the above-described apparatus, the location of at least one necessary file block within the installation package can be determined. Then, based on the location of each necessary file block within the installation package, each necessary file block can be mapped to the installation guidance information. Since the installation guidance information indicates the necessary file blocks supporting the normal installation and startup of the application corresponding to the installation package, as well as the location of each file block within the installation package, the necessary file blocks can be quickly identified from the installation package based on the installation guidance information. Only the necessary file blocks are downloaded and installed, thereby shortening the installation and download time and improving the installation efficiency. Furthermore, the method for determining the installation guidance information is a static analysis process on an uninstalled installation package. The entire analysis process does not destroy the installation package data, thus ensuring the integrity of the installation package and preventing situations where the installation package cannot be installed and run normally.

[0109] As an optional implementation method, Figure 6 The apparatus shown also includes a third determining unit (not shown), wherein:

[0110] The third determining unit is used to determine the amount of data corresponding to at least one necessary file block in the installation package before mapping the necessary file block to the installation guidance information based on the location information corresponding to the necessary file block.

[0111] Furthermore, the mapping unit 602 is also used to map each necessary file block to the installation guidance information according to the location information and data volume corresponding to each necessary file block. The number N of the first type of identifiers corresponding to each necessary file block is determined according to the data volume of the corresponding necessary file block.

[0112] By implementing the above device, the number of first-class identifiers corresponding to each necessary file block can correspond to the data volume of the necessary file block, thereby facilitating the determination of the data volume of the necessary file block based on the installation guidance information.

[0113] As an optional implementation, the installation guidance information also includes a second type of identifier for mapping non-essential file blocks. The non-essential file block is not the smallest file block that supports the normal installation and startup of the application corresponding to the installation package. Each non-essential file block corresponds to M second type identifiers. The arrangement of the M second type identifiers in the installation guidance information corresponds to the position of the corresponding non-essential file block in the installation package. M is determined based on the data volume of the corresponding non-essential file block, and M is a positive integer.

[0114] By implementing the above-mentioned device, subsequent equipment can quickly determine the location of non-essential file blocks in the installation package based on the installation guidance information, and install the non-essential files, thereby improving the installation efficiency of non-essential files.

[0115] As an optional implementation, the necessary file block includes a directory file block. The first determining unit 601 is also used to parse the installation package to obtain parsing information; and to determine the location information of the directory file block in the installation package based on the parsing information.

[0116] By implementing the above device, the location information and data volume of the directory file blocks can be determined by parsing the information obtained from the installation package. In addition, it is convenient to determine the directory information corresponding to the installation package based on the directory file blocks, and then determine the location information and data volume of other necessary file blocks based on the directory information.

[0117] As an optional implementation, the necessary file block also includes first installation necessary information; the first determining unit 601 is further configured to parse the directory file block to obtain the directory information corresponding to the installation package; and to determine the location information of the first installation necessary information in the installation package based on the directory information.

[0118] As an optional implementation, the first installation necessary information includes an application list and a resource index, and the necessary file block also includes second installation necessary information, which is installation necessary information whose location information is not recorded in the directory information; the first determining unit 601 is further configured to parse the application list to obtain the second installation necessary information, and determine the path information corresponding to the second installation necessary information according to the resource index; and determine the location information of the second installation necessary information in the installation package according to the path information.

[0119] By implementing the above device, the location information and data volume of the first installation necessary information can be determined by parsing the directory information obtained from the directory file block. For the second installation necessary information whose location information and data volume are not recorded in the directory information, the location information and data volume of the second installation necessary information can be determined by parsing the application list and resource index, thereby improving the flexibility of the method for determining the installation guidance information.

[0120] As an optional implementation, the second necessary installation information includes the icon of the application corresponding to the installation package.

[0121] As an alternative implementation, the first installation necessary file block may also include one or more of signature information, registry entries, and installation code.

[0122] Please see Figure 7 , Figure 7 This is a schematic diagram of an installation device for an installation package disclosed in an embodiment of this application. This device can be applied to the aforementioned installation package providing platform or other execution entities, and is not limited thereto. The device may include: an acquisition unit 701, a second determination unit 702, and an installation unit 703, wherein:

[0123] The acquisition unit 701 is used to acquire the installation guidance information corresponding to the installation package. The installation guidance information includes a first type of identifier used to map necessary file blocks. Each necessary file block corresponds to N first type identifiers, where N is a positive integer. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package.

[0124] The second determining unit 702 is used to determine the corresponding first position in the installation package according to the arrangement position of each first type identifier in the installation guidance information;

[0125] The first installation unit 703 is used to obtain first installation data from a first location and install the first installation data, wherein the first installation data is a necessary file block or a part of a necessary file block.

[0126] By implementing the above device, the necessary file blocks can be quickly identified from the installation package according to the installation guide information, and only the necessary file blocks can be downloaded and installed, thereby shortening the installation and download time of the installation package and improving the installation efficiency of the installation package.

[0127] As an optional implementation, the installation guidance information also includes a second type of identifier for mapping non-essential file blocks, where the non-essential file blocks are not the smallest file blocks that support the normal installation and startup of the application corresponding to the installation package; and the second determining unit 702 is further configured to read an identifier sequentially from the installation guidance information as a target identifier according to the arrangement order of the identifiers in the installation guidance information; and if the target identifier belongs to the first type of identifier, then determine the first position in the installation package corresponding to the arrangement position according to the arrangement position of the target identifier in the installation guidance information; and if the target identifier belongs to the second type of identifier, then read the next identifier as the target identifier.

[0128] By implementing the above-mentioned device, the installation package provider platform can quickly and accurately determine the necessary file blocks in the installation package based on the installation guidance information, thereby improving the installation efficiency of the installation package.

[0129] As an optional implementation, each second-type identifier corresponds to a second set of installation data, which is a non-essential file block or a portion thereof. The arrangement position of each second-type identifier in the installation guidance information corresponds to the second position of the corresponding second set of installation data in the installation package; and, Figure 7 The apparatus shown also includes a fourth determining unit and a second mounting unit (not shown), wherein:

[0130] The fourth determining unit is used to determine the second position in the installation package corresponding to the arrangement position of each second type identifier in the installation guidance information when the necessary file blocks have been installed.

[0131] The second installation unit is used to obtain second installation data from the second location and install the second installation data.

[0132] By implementing the above device, the installation package provider platform can continue to install unnecessary file blocks in the background after the application starts running normally. This allows all necessary file blocks to be installed without affecting the user's use of the application, thus ensuring that the application can run other functions.

[0133] As an optional implementation method, Figure 7 The apparatus shown also includes a fifth determining unit (not shown) and a third mounting unit, wherein:

[0134] The fifth determining unit is used to, after the necessary file blocks are installed, if it is detected that the target second installation data supporting the execution target process of the application is not installed during the running of the application corresponding to the installation package, obtain the target second installation data in the second position corresponding to the arrangement position of the second type identifier corresponding to the target second installation data in the installation guidance information.

[0135] The third installation unit is used to install the target second installation data.

[0136] By implementing the above-described apparatus, the installation package providing platform can prioritize downloading and installing the required target second installation data to ensure that the application can run the current process normally, thereby improving the flexibility of the installation package installation method.

[0137] As an optional implementation, the installation package is stored on a cloud server; the first installation unit 703 is also used to download first installation data from a first location in the installation package stored on the cloud server, and install the first installation data.

[0138] By implementing the above device, the installation package can be stored on a cloud server, making it convenient for platforms or devices to download without occupying local storage space on the platform or device.

[0139] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. For example... Figure 8 As shown, the electronic device may include:

[0140] Memory 801 storing executable program code;

[0141] Processor 802 coupled to memory 801;

[0142] The processor 802 calls the executable program code stored in the memory 801 to execute the method for determining installation guidance information or the method for installing the installation package disclosed in the above embodiments.

[0143] This application discloses a computer-readable storage medium storing a computer program that causes a computer to execute the installation guidance information determination method or the installation package installation method disclosed in the above embodiments.

[0144] This application also discloses an application publishing platform, which is used to publish computer program products. When the computer program products are run on a computer, the computer performs some or all of the steps of the methods described in the above method embodiments.

[0145] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0146] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0147] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0148] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0149] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.

[0150] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0151] The foregoing has provided a detailed description of a method, apparatus, electronic device, and storage medium for determining installation guidance information disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for determining installation guidance information, characterized in that, The method includes: Determine the location information corresponding to at least one necessary file block in the installation package. The location information is used to indicate the position of the necessary file block in the installation package. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package. Based on the location information corresponding to each necessary file block, each necessary file block is mapped to the installation guidance information. The installation guidance information includes a first type of identifier for mapping the necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guidance information corresponds to the location information of the corresponding necessary file block. N is a positive integer. The necessary file blocks include directory file blocks and first installation necessary information; determining the location information corresponding to at least one necessary file block in the installation package includes: The installation package is parsed to obtain parsing information; The location information of the directory file block in the installation package is determined based on the parsed information. The directory file block is parsed to obtain the directory information corresponding to the installation package; The location information of the first installation necessary information in the installation package is determined based on the directory information; The first installation necessary information includes an application list and a resource index. The necessary file block also includes second installation necessary information, which is installation necessary information whose location information is not recorded in the directory information. And, after determining the location information of the first installation necessary information in the installation package based on the directory information, the method further includes: The application list is parsed to obtain the second installation necessary information, and the path information corresponding to the second installation necessary information is determined according to the resource index; The location information of the second necessary installation information in the installation package is determined based on the path information.

2. The method according to claim 1, characterized in that, Before mapping the necessary file block to the installation guidance information based on the location information corresponding to the necessary file block, the method further includes: Determine the data volume corresponding to at least one necessary file block in the installation package; And, the step of mapping each necessary file block to the installation guidance information according to the location information corresponding to each necessary file block includes: Each necessary file block is mapped to the installation guidance information based on its location information and data volume. The number N of the first type of identifiers corresponding to each necessary file block is determined based on the data volume of the corresponding necessary file block.

3. The method according to claim 1, characterized in that, The installation guidance information also includes a second type of identifier for mapping unnecessary file blocks. The unnecessary file blocks are not the smallest file blocks that support the normal installation and startup of the application corresponding to the installation package. Each unnecessary file block corresponds to M second type identifiers. The arrangement of the M second type identifiers in the installation guidance information corresponds to the position of the corresponding unnecessary file block in the installation package. M is determined based on the data volume of the corresponding unnecessary file block, and M is a positive integer.

4. The method according to claim 1, characterized in that, The second necessary installation information includes the icon of the application corresponding to the installation package.

5. The method according to any one of claims 1 to 4, characterized in that, The first set of necessary installation information also includes one or more of the following: signature information, registry entries, and installation code.

6. The method according to claim 1, characterized in that, After mapping each necessary file block to the installation guidance information according to its corresponding location information, the method further includes: Based on the arrangement of each first-class identifier in the installation guidance information, the corresponding first position is determined in the installation package; First installation data is obtained from the first location and the first installation data is installed, wherein the first installation data is the necessary file block or a part of the necessary file block.

7. A method for installing an installation package, characterized in that, The method includes: The installation guide information corresponding to the installation package is obtained. This installation guide information includes a first type of identifier used to map necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guide information corresponds to the position of the corresponding necessary file block in the installation package. N is a positive integer. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package. The necessary file block includes a directory file block and first installation necessary information. The position information of the directory file block in the installation package is determined based on parsing information obtained from parsing the installation package. The position information of the first installation necessary information is determined based on the directory information corresponding to the installation package obtained from parsing the directory file block. The first installation necessary information includes an application list and a resource index. The necessary file block also includes second installation necessary information. The second installation necessary information is installation necessary information whose position information is not recorded in the directory information. The second installation necessary information is obtained by parsing the application list. The path information corresponding to the second installation necessary information is determined based on the resource index. The position information of the second installation necessary information in the installation package is determined based on the path information. Based on the arrangement of each of the first type of identifiers in the installation guidance information, the corresponding first position is determined in the installation package; First installation data is obtained from the first location, and the first installation data is installed. The first installation data is a necessary file block or a part of a necessary file block.

8. The method according to claim 7, characterized in that, The installation guidance information also includes a second type of identifier for mapping unnecessary file blocks, where the unnecessary file blocks are not the minimum file blocks that support the normal installation and startup of the application corresponding to the installation package; determining the corresponding first position in the installation package based on the arrangement of each of the first type of identifiers in the installation guidance information includes: According to the order of the identifiers in the installation guidance information, one identifier is read from the installation guidance information in sequence as the target identifier; If the target identifier belongs to the first type of identifier, then the corresponding first position is determined in the installation package according to the arrangement position of the target identifier in the installation guidance information; If the target identifier belongs to the second type of identifier, then the next identifier is read as the target identifier.

9. The method according to claim 8, characterized in that, Each of the second type identifiers corresponds to a second set of installation data, which is a non-essential file block or a portion thereof. The arrangement position of each second type identifier in the installation guidance information corresponds to the second position of the corresponding second set of installation data in the installation package. The method further includes: If the necessary file blocks are installed, the corresponding second position is determined in the installation package according to the arrangement position of each of the second type identifiers in the installation guidance information; Obtain the second installation data from the second location and install the second installation data.

10. The method according to claim 9, characterized in that, After the necessary file blocks have been installed, the method further includes: If, during the running of the application corresponding to the installation package, it is detected that the target second installation data supporting the execution target process of the application is not installed, then according to the arrangement position of the second type identifier corresponding to the target second installation data in the installation guidance information, the corresponding third position is determined in the installation package, and the target second installation data is obtained from the third position; The target second installation data is installed.

11. The method according to any one of claims 7 to 10, characterized in that, The installation package is stored on a cloud server; the step of obtaining the first installation data from the first location and installing the first installation data includes: Send a data download request including the first location to the cloud server, the download request being used to enable the cloud server to obtain the first installation data from the first location in the installation package; Receive the first installation data sent by the cloud server and install the first installation data.

12. A device for determining installation guidance information, characterized in that, The device includes: The first determining unit is used to determine the location information corresponding to at least one necessary file block in the installation package. The location information is used to indicate the position of the necessary file block in the installation package. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package. The mapping unit is used to map each necessary file block to the installation guidance information according to the location information corresponding to each necessary file block. The installation guidance information includes a first type of identifier for mapping the necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guidance information has a corresponding relationship with the location information of the corresponding necessary file block. N is a positive integer. The necessary file block includes a directory file block and first installation necessary information; the first determining unit is further configured to parse the installation package to obtain parsing information; determine the location information of the directory file block in the installation package according to the parsing information; parse the directory file block to obtain directory information corresponding to the installation package; and determine the location information of the first installation necessary information in the installation package according to the directory information. The first installation necessary information includes an application list and a resource index. The necessary file block also includes second installation necessary information, which is installation necessary information whose location information is not recorded in the directory information. The first determining unit is further configured to parse the application list to obtain the second installation necessary information, and determine the path information corresponding to the second installation necessary information according to the resource index; and determine the location information of the second installation necessary information in the installation package according to the path information.

13. An installation device for an installation package, characterized in that, The device includes: An acquisition unit is used to acquire installation guidance information corresponding to the installation package. The installation guidance information includes a first type of identifier for mapping necessary file blocks. Each necessary file block corresponds to N first type identifiers. The arrangement of the N first type identifiers in the installation guidance information corresponds to the position of the corresponding necessary file block in the installation package. N is a positive integer. The necessary file block is the smallest file block that supports the normal installation and startup of the application corresponding to the installation package. The necessary file block includes a directory file block and first installation necessary information. The position information of the directory file block in the installation package is determined based on the parsing information obtained by parsing the installation package. The position information of the first installation necessary information is determined based on the directory information corresponding to the installation package obtained by parsing the directory file block. The first installation necessary information includes an application list and a resource index. The necessary file block also includes second installation necessary information. The second installation necessary information is installation necessary information whose position information is not recorded in the directory information. The second installation necessary information is obtained by parsing the application list. The path information corresponding to the second installation necessary information is determined based on the resource index. The position information of the second installation necessary information in the installation package is determined based on the path information. The second determining unit is used to determine the corresponding first position in the installation package according to the arrangement position of each of the first type of identifiers in the installation guidance information; An installation unit is configured to obtain first installation data from the first location and install the first installation data, wherein the first installation data is a necessary file block or a portion thereof.

14. An electronic device, characterized in that, The method includes a memory storing executable program code and a processor coupled to the memory; wherein the processor invokes the executable program code stored in the memory to perform the method as described in any one of claims 1 to 6 or 7 to 11.

15. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 6 or 7 to 10.

Citation Information

Patent Citations

  • Method, device and system used for application program subpackage

    CN104991793A

  • Software updating method and device and storage medium

    CN110032383A