CN103955375A - Generation method for application installation file and starting method and device for application - Google Patents

Generation method for application installation file and starting method and device for application Download PDF

Info

Publication number
CN103955375A
CN103955375A CN201410217160.1A CN201410217160A CN103955375A CN 103955375 A CN103955375 A CN 103955375A CN 201410217160 A CN201410217160 A CN 201410217160A CN 103955375 A CN103955375 A CN 103955375A
Authority
CN
China
Prior art keywords
file
dynamic library
library file
application
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410217160.1A
Other languages
Chinese (zh)
Inventor
王颢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING ANTUTU TECHNOLOGY Co Ltd
Original Assignee
BEIJING ANTUTU TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING ANTUTU TECHNOLOGY Co Ltd filed Critical BEIJING ANTUTU TECHNOLOGY Co Ltd
Priority to CN201410217160.1A priority Critical patent/CN103955375A/en
Publication of CN103955375A publication Critical patent/CN103955375A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a generation method for an application installation file and a starting method and device for an application and relates to the technical field of application software. The method comprises the following steps of acquiring a predetermined dynamic library file required to be placed in the application installation file; compressing the predetermined dynamic library file by using a preset compression algorithm to generate a dynamic file compression file; generating the application installation file according to the dynamic library compression file. According to the embodiment of the invention, under the condition that functions of the application are not reduced, the size of the application installation file is reduced; in addition, the application with the same installation file size contains more functions.

Description

A kind of generation method of installation file, starting method and device of application applied
Technical field
The present invention relates to application software technology field, particularly a kind of generation method of installation file, starting method and device of application applied.
Background technology
Fast development along with the network communications technology, the application that application provider provides (also claiming application software) is more and more, user can download these whenever and wherever possible and should be used for using, thereby the installation file of downloading these application is installed these application by the installation file of downloading.But be subject to the impact of bandwidth and flow, when down load application, most users wishes that the size of installation file is little but the function that comprises of application is complete, so that speed flow fast, that use is few during down load application, and experience effect is good while using application.
In prior art, in order to reduce the size of application installation file, application provider is in when application design, conventionally can reach the object that reduces to apply installation file size by reducing or reduce the modes such as function that application product comprises.But can cause like this product function incomplete, affect user's experience effect.
Summary of the invention
The embodiment of the present invention provides a kind of generation method of installation file, starting method and device of application applied, and to reduce to apply the size of installation file, makes to be applied under the installation file of same size and comprises greater functionality.
For achieving the above object, the embodiment of the invention discloses a kind of generation method of applying installation file, described method comprises:
Obtain the predetermined dynamic library file that need to be placed in application installation file;
Use default compression algorithm to compress described predetermined dynamic library file, generate dynamic base compressed file;
According to described dynamic base compressed file, generate application installation file.
Optionally, the default compression algorithm of described use is compressed described predetermined dynamic library file, generates dynamic base compressed file, comprising:
Copy described predetermined dynamic library file in default file catalogue;
Use default compression algorithm to compress the described dynamic library file copying in described default file catalogue, generate dynamic base compressed file.
Optionally, described in obtain and need to be placed on the predetermined dynamic library file of application in installation file, comprising:
The dynamic base code of applying described in Development Engineering catalogue is compiled, and generation need to be placed on the dynamic library file in described application installation file;
From the needs of described generation, be placed in the dynamic library file application installation file and select all or part of dynamic library file as described predetermined dynamic library file.
Optionally, described according to described dynamic base compressed file, generate application installation file, comprising:
Described dynamic base compressed file is copied in Development Engineering catalogue for depositing the file of resource file;
By installation file strapping tool, generate application installation file.
Optionally, the default compression algorithm of described use is compressed predetermined dynamic library file, generates dynamic base compressed file, comprising:
Use default compression algorithm to compress predetermined dynamic library file, generate one or more dynamic base compressed files;
Described according to described dynamic base compressed file, generate application installation file, comprising:
According to generated one or more dynamic base compressed files, generate application installation file.
Optionally, described default compression algorithm, comprising: one or more in LZMA compression algorithm, Huffman compression algorithm, LZSS compression algorithm and LZW compression algorithm.
For achieving the above object, the embodiment of the invention discloses a kind of generating apparatus of applying installation file, described device comprises:
Dynamic library file acquiring unit, for obtaining the predetermined dynamic library file that need to be placed on application installation file;
Dynamic library file compression unit, for using default compression algorithm to compress described predetermined dynamic library file, generates dynamic base compressed file;
Application installation file generation unit, for according to described dynamic base compressed file, generates application installation file.
Optionally, described dynamic library file compression unit, comprising: dynamic library file replicon unit and dynamic library file compression subelement;
Described dynamic library file replicon unit, for copying described predetermined dynamic library file to default file catalogue;
Described dynamic library file compression subelement, for using default compression algorithm to compress the described dynamic library file that copies to described default file catalogue, generates dynamic base compressed file.
Optionally, described dynamic library file acquiring unit, comprising: the first dynamic library file obtains subelement and the second dynamic library file obtains subelement;
Described the first dynamic library file obtains subelement, and for the dynamic base code of applying described in Development Engineering catalogue is compiled, generation need to be placed on the dynamic library file in described application installation file;
Described the second dynamic library file obtains subelement, for the needs from described generation, is placed on the dynamic library file of applying installation file and selects all or part of dynamic library file as described predetermined dynamic library file.
Optionally, described application installation file generation unit, comprising: compressed file replicon unit and application installation file generate subelement;
Described compressed file replicon unit, for copying to Development Engineering catalogue for depositing the file of resource file by described dynamic base compressed file;
Application installation file generates subelement, for generate application installation file by installation file strapping tool.
Optionally, described dynamic library file compression unit, for using default compression algorithm to compress predetermined dynamic library file, generates one or more dynamic base compressed files;
Described application installation file generation unit, for according to generated one or more dynamic base compressed files, generates application installation file.
Optionally, described default compression algorithm, comprising: one or more in LZMA compression algorithm, Huffman compression algorithm, LZSS compression algorithm and LZW compression algorithm.
For achieving the above object, the embodiment of the invention discloses a kind of starting method of application, the application installation file that the generation method of any one application installation file that described application provides by the embodiment of the present invention generates is installed;
Described method comprises:
Receive the application start instruction that user sends;
After receiving described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file, so that call described predetermined dynamic library file after described application start.
Optionally, after receiving described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain before described predetermined dynamic library file, described method also comprises:
Determine under the installation directory of described application and whether had described predetermined dynamic library file;
Described according to described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file and comprise:
If determine under the installation directory of described application and do not have described predetermined dynamic library file, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file.
Optionally, the described use default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtains described predetermined dynamic library file, comprising:
Use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, and the described predetermined dynamic library file that described decompression is obtained stores under the default directory of installation directory into.
Optionally, described dynamic base compressed file comprises one or more compressed file;
The described use default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, comprising:
Use the default decompression algorithm decompression described one or more dynamic base compressed files corresponding with described default compression algorithm.
For achieving the above object, the embodiment of the invention discloses a kind of starter gear of application, the application installation file of the generation of any one application installation file that described application provides by the embodiment of the present invention is installed;
Described device comprises:
Enabled instruction receiving element, the application start instruction sending for receiving user;
Dynamic library file decompression unit, for after receiving described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file, so that call described predetermined dynamic library file after described application start.
Optionally, the starter gear of described application also comprises: dynamic library file determining unit;
Described dynamic library file determining unit, for receiving after described application start instruction at described enabled instruction receiving element, determine under the installation directory of described application and whether had described predetermined dynamic library file, if do not exist, trigger described dynamic library file decompression unit, decompression dynamic library file.
Optionally, described dynamic library file decompression unit, specifically for using the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, and the described predetermined dynamic library file that described decompression is obtained stores under the default directory of installation directory.
Optionally, described dynamic base compressed file comprises one or more compressed files;
Described dynamic library file decompression unit, for after receiving described application start instruction, use the default decompression algorithm decompression described one or more dynamic base compressed files corresponding with described default compression algorithm, obtain described predetermined dynamic library file, so that call described predetermined dynamic library file after described application start.
As seen from the above technical solution, the embodiment of the present invention provides a kind of generation method of installation file, starting method and device of application applied, when generating application installation file, use default compression algorithm to compress predetermined dynamic library file, generate dynamic base compressed file, and according to this dynamic base compressed file, generate application installation file.After the application installation file generating is according to the method described above installed, when user starts application, the dynamic base that decompresses compressed file obtains predetermined dynamic library file, so that can call this predetermined dynamic library file after application start.Visible, in the embodiment of the present invention, when generating application installation file, predetermined dynamic library file is compressed, in the situation that do not reduce the function of application, reduced the size of application installation file, while making user's down load application installation file, the flow that speed is faster, use still less, and can make to be applied under the installation file of same size simultaneously, comprises greater functionality.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
A kind of schematic flow sheet of applying the generation method of installation file that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the generation method of the another kind application installation file that Fig. 2 provides for the embodiment of the present invention;
A kind of structural representation of applying the generating apparatus of installation file that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the starting method of a kind of application that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the starter gear of a kind of application that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
A kind of schematic flow sheet of applying the generation method of installation file that Fig. 1 provides for the embodiment of the present invention, the method comprises the following steps:
Step 101: obtain the predetermined dynamic library file that need to be placed in application installation file.
Step 102: use default compression algorithm to compress predetermined dynamic library file, generate dynamic base compressed file.
Understandable, generally, in some applications, the program module that realizes the partial function of this application is configured to dynamic library file (DLL (Dynamic Link Library) file), is placed in application installation file.
In the embodiment of the present invention, the predetermined dynamic library file that needs are placed in application installation file compresses, thereby can reduce the size of application installation file.Wherein, predetermined dynamic library file can be whole dynamic library files that need to be placed in application installation file, can be also partial dynamic library file.
Concrete, in the embodiment of the present invention, can compile by the dynamic base code to applying in Development Engineering catalogue, generation need to be placed on the dynamic library file in application installation file, and be placed in the dynamic library file application installation file and select all or part of dynamic library file as predetermined dynamic library file from generated needs, for example, only select dynamic library file that some sizes are large as predetermined dynamic library file etc.
To be applied to the system evaluation of mobile device, be applied as example, the dynamic base code compilation of each test event in this application can be become to dynamic library file, such as for testing the cpu performance test library file of cpu performance, for the RAM performance test library file of testing ram performance, for testing the 2D drawing performance test library file of 2D drawing performance, for testing the 3D drawing performance test library file of 3D drawing performance, for testing Dalvik virtual machine performance test library file of Dalvik virtual machine performance etc.
Wherein, 2D drawing performance test library file and 3D drawing performance test library file comprise great amount of images processing module, take up room larger, therefore, can select 2D drawing performance test library file and 3D drawing performance test library file as predetermined dynamic library file.
Certainly, the application just be take and is above-mentionedly described as example, and in practical application, the dynamic library file of system evaluation application is not limited to this, and above-mentioned example is to the effect of the application's indefinite simultaneously.
Concrete, while using default compression algorithm to compress predetermined dynamic library file, predetermined dynamic library file can be compressed in a compressed file, also predetermined dynamic library file can be compressed in a plurality of compressed files.
In the present embodiment, default compression algorithm can be LZMA compression algorithm, Huffman compression algorithm, LZSS compression algorithm and LZW compression algorithm etc.Wherein, the compressibility of LZMA compression algorithm can reach 20%, for example: the dynamic library file that is 25M to a size compresses, after compression, file size can reach 5M, visible, the dynamic library file of application is compressed, can well reduce to apply the size of installation file.Certainly, the application just be take and is above-mentionedly described as example, and in practical application, default compression algorithm is not limited to this.
Step 103: according to dynamic base compressed file, generate application installation file.
It should be noted that, from step 102, in the present embodiment, the predetermined dynamic library file of needs compression can be compressed in one or more the first compressed files, in this step, one or more compressed files that can obtain according to compression, generate application installation file.
In a specific embodiment of the present invention, while generating application installation file, can first dynamic base compressed file be copied in Development Engineering catalogue for depositing the file of resource file, then generate application installation file by installation file strapping tool.
As seen from the above, the present embodiment is when generating application installation file, by predetermined dynamic library file is compressed, in the situation that do not reduce the function of application, reduced the size of application installation file, and to make installation file be the application of same size, comprise greater functionality.
The schematic flow sheet of the generation method of the another kind application installation file that Fig. 2 provides for the embodiment of the present invention, the method comprises the following steps:
Step 201: obtain the predetermined dynamic library file that need to be placed in application installation file.
In the present embodiment, step 201 can be identical with middle step 101 embodiment illustrated in fig. 1, no longer repeats here.
Step 202: copy predetermined dynamic library file in default file catalogue.
Wherein, default file catalogue is for for compressing the catalogue of predetermined dynamic library file, and this document catalogue can be in development sequence catalogue, also can be not in development sequence catalogue.
It should be noted that, after the predetermined dynamic library file in Development Engineering catalogue is copied in default file catalogue, the predetermined dynamic library file in Development Engineering catalogue can be deleted.
Step 203: use default compression algorithm to compress the dynamic library file copying in default file catalogue, generate dynamic base compressed file.
In the present embodiment, default default compression algorithm can be LZMA compression algorithm, Huffman compression algorithm, LZSS compression algorithm and LZW compression algorithm etc., and certainly, the application just be take and above-mentionedly described as example, presets compression algorithm and be not limited to this in practical application.
It should be noted that, in the present embodiment, the function that step 202~step 203 realizes is identical with the function that middle step 102 embodiment illustrated in fig. 1 realizes.
Step 204: according to dynamic base compressed file, generate application installation file.
Concrete, in this step, described dynamic base compressed file can be copied in Development Engineering catalogue for depositing the file of resource file; By installation file strapping tool, generate application installation file.
In practical application, because default file catalogue is for compressing the catalogue of predetermined dynamic library file, after depositing in the file of resource file in dynamic base compressed file is copied to Development Engineering catalogue, can delete the dynamic base compressed file in default file catalogue, to save storage space, can not delete yet.
As seen from the above, the present embodiment is when generating application installation file, by predetermined dynamic library file is compressed, in the situation that do not reduce the function of application, reduced the size of application installation file, and to make installation file be the application of same size, comprise greater functionality.
Below in conjunction with instantiation, the application is elaborated again.
Suppose to compress being applied to the system evaluation application of Android operating system, concrete steps are as follows:
Step 1, dynamic base code to system evaluation application compiles, and obtains cpu performance test library file for testing cpu performance, for the RAM performance test library file of testing ram performance, for testing the 2D drawing performance test library file of 2D drawing performance, for testing the 3D drawing performance test library file of 3D drawing performance, for testing the Dalvik virtual machine performance test library file of Dalvik virtual machine performance; In these dynamic library files, select 2D drawing performance test library file and the 3D drawing performance test library file that takes up room larger, as predetermined dynamic library file.
Step 2, by the 2D drawing performance test library file under libs catalogue in system evaluation application and development engineering catalogue and 3D drawing performance test library file copy in default file directory A.Wherein, default file directory A is for compressing the catalogue of predetermined dynamic library file.Now can delete 2D drawing performance test library file and 3D drawing performance test library file under libs catalogue.
Step 3, supposes that default compression algorithm is LZMA compression algorithm, by LZMA compression algorithm, the 2D drawing performance test library file in default file directory A and 3D drawing performance test library file is compressed, and generates dynamic base compressed file B.
Step 4, copies to dynamic base compressed file B in the assets file directory in Development Engineering catalogue.Assets file directory is the catalogue of the preservation resource file of Android application development system appointment.Now can delete the dynamic base compressed file B in default file directory A.
Step 5, the operation based on above steps, application installation file APK (Android Package, the Android installation kit) file that uses the test and appraisal of installation file strapping tool generation system to apply.
As seen from the above, the present embodiment is when generating application installation file, by predetermined dynamic library file is compressed, in the situation that do not reduce the function of application, reduced the size of application installation file, and can to make installation file be the application of same size, comprise greater functionality.
A kind of structural representation of applying the starter gear of installation file that Fig. 3 provides for the embodiment of the present invention, this device comprises: dynamic library file acquiring unit 301, dynamic library file compression unit 302 and application installation file generation unit 303.
Wherein, dynamic library file acquiring unit 301, for obtaining the predetermined dynamic library file that need to be placed on application installation file;
Dynamic library file compression unit 302, for using default compression algorithm to compress described predetermined dynamic library file, generates dynamic base compressed file;
Application installation file generation unit 303, for according to described dynamic base compressed file, generates application installation file.
In a specific embodiment of the present invention, dynamic library file compression unit 302 can comprise: dynamic library file replicon unit and dynamic library file compression subelement (not shown).
Wherein, dynamic library file replicon unit, for copying described predetermined dynamic library file to default file catalogue; Dynamic library file compression subelement, for using default compression algorithm to compress the described dynamic library file that copies to described default file catalogue, generates dynamic base compressed file.
In a specific embodiment of the present invention, dynamic library file acquiring unit 301 can comprise: the first dynamic library file obtains subelement and the second dynamic library file obtains subelement (not shown).
Wherein, the first dynamic library file obtains subelement, and for the dynamic base code of applying described in Development Engineering catalogue is compiled, generation need to be placed on the dynamic library file in described application installation file; The second dynamic library file obtains subelement, for the needs from described generation, is placed on the dynamic library file of applying installation file and selects all or part of dynamic library file as described predetermined dynamic library file.
In a specific embodiment of the present invention, application installation file generation unit 303 can comprise: compressed file replicon unit and application installation file generate subelement (not shown).
Wherein, compressed file replicon unit, for copying to Development Engineering catalogue for depositing the file of resource file by described dynamic base compressed file; Application installation file generates subelement, for generate application installation file by installation file strapping tool.
Concrete, dynamic library file compression unit 302, for using default compression algorithm to compress predetermined dynamic library file, generates one or more dynamic base compressed files;
Application installation file generation unit 303, for according to generated one or more dynamic base compressed files, generates application installation file.
Concrete, described default compression algorithm, comprising: one or more in LZMA compression algorithm, Huffman compression algorithm, LZSS compression algorithm and LZW compression algorithm.
As seen from the above, the present embodiment is when generating application installation file, by predetermined dynamic library file is compressed, in the situation that do not reduce the function of application, reduced the size of application installation file, and to make installation file be the application of same size, comprise greater functionality.
Accordingly, the schematic flow sheet of the starting method of a kind of application that Fig. 4 provides for the embodiment of the present invention, application in the present embodiment can be installed by the application installation file based on Fig. 1 or the method generation providing embodiment illustrated in fig. 2, in application installation file, predetermined dynamic library file is compressed, therefore,, when this application start operation, decompress(ion) also calls predetermined dynamic library file.Concrete, the method comprises the following steps:
Step 401: receive the application start instruction that user sends.
Step 402: use the decompression algorithm decompression dynamic base compressed file corresponding with default compression algorithm, obtain predetermined dynamic library file, so that call predetermined dynamic library file after application start.
In this step, can first use the default decompression algorithm decompression dynamic base compressed file corresponding with default compression algorithm; The dynamic library file of the application current version again decompression being obtained stores under the default directory of installation directory, so that call predetermined dynamic library file after application start.
From previous embodiment, dynamic base compressed file can be a compressed file, can be also a plurality of compressed files, therefore, can use the default decompression algorithm corresponding with default compression algorithm one or more dynamic base compressed files that decompress, the dynamic library file of the current version that is applied.
In one embodiment of the invention, after receiving application start instruction, can first determine under the installation directory of applying whether have predetermined dynamic library file, if do not exist, can use default decompression algorithm decompression dynamic base compressed file, obtain predetermined dynamic library file.Like this, can realize at the application dynamic base compressed file that decompresses while starting first, follow-uply no longer need to repeat decompression operation, reduce the start-up time of application, promote user and experience.
It should be noted that, in practical application, using default decompression algorithm decompression dynamic base compressed file, be applied after the dynamic library file of current version, can also detect the dynamic library file that whether has legacy version in installation directory, if there is the dynamic library file of legacy version, delete the dynamic library file of legacy version to save storage space.
After decompression, can initialization dynamic library file, for example Resources allocation, arranges initial value, parameter and derivative function address etc., for application call dynamic library file is prepared.
As seen from the above, in the present embodiment, in application installation file, predetermined dynamic library file is compressed, and when application start, the dynamic library file of compression is decompressed, guarantee the normal use of application, make to be applied in the situation that does not reduce function, reduced the size of application installation file, and to make installation file be the application of same size, comprise greater functionality.
The structural representation of the starter gear of a kind of application that Fig. 5 provides for the embodiment of the present invention, the application installation file that application in the present embodiment can generate by the generation method of the installation file that provides based on the embodiment of the present invention is installed, and this device comprises: enabled instruction receiving element 501 and dynamic library file decompression unit 502.
Wherein, enabled instruction receiving element 501, the application start instruction sending for receiving user;
Dynamic library file decompression unit 502, for after receiving described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file, so that call described predetermined dynamic library file after described application start.
In a specific embodiment of the present invention, this device can also comprise: dynamic library file determining unit (not shown).
Wherein, dynamic library file determining unit, for receiving after described application start instruction at described enabled instruction receiving element, determine under the installation directory of described application and whether had described predetermined dynamic library file, if do not exist, trigger described dynamic library file decompression unit, decompression dynamic library file.
Concrete, dynamic library file decompression unit 502, specifically for using the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, and the described predetermined dynamic library file that described decompression is obtained stores under the default directory of installation directory.
Concrete, dynamic base compressed file can comprise one or more compressed files; Dynamic library file decompression unit 502, for after receiving described application start instruction, use the default decompression algorithm decompression described one or more dynamic base compressed files corresponding with described default compression algorithm, obtain described predetermined dynamic library file, so that call described predetermined dynamic library file after described application start.
As seen from the above, in the present embodiment, in application installation file, predetermined dynamic library file is compressed, and when application start, the dynamic library file of compression is decompressed, guarantee the normal use of application, make to be applied in the situation that does not reduce function, reduced the size of application installation file, and to make installation file be the application of same size, comprise greater functionality.
For device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (20)

1. a generation method of applying installation file, is characterized in that, described method comprises:
Obtain the predetermined dynamic library file that need to be placed in application installation file;
Use default compression algorithm to compress described predetermined dynamic library file, generate dynamic base compressed file;
According to described dynamic base compressed file, generate application installation file.
2. method according to claim 1, is characterized in that, the default compression algorithm of described use is compressed described predetermined dynamic library file, generates dynamic base compressed file, comprising:
Copy described predetermined dynamic library file in default file catalogue;
Use default compression algorithm to compress the described dynamic library file copying in described default file catalogue, generate dynamic base compressed file.
3. method according to claim 1, is characterized in that, described in obtain the predetermined dynamic library file that need to be placed in application installation file, comprising:
The dynamic base code of applying described in Development Engineering catalogue is compiled, and generation need to be placed on the dynamic library file in described application installation file;
From the needs of described generation, be placed in the dynamic library file application installation file and select all or part of dynamic library file as described predetermined dynamic library file.
4. method according to claim 1, is characterized in that, described according to described dynamic base compressed file, generates application installation file, comprising:
Described dynamic base compressed file is copied in Development Engineering catalogue for depositing the file of resource file;
By installation file strapping tool, generate application installation file.
5. method according to claim 1, is characterized in that,
The default compression algorithm of described use is compressed predetermined dynamic library file, generates dynamic base compressed file, comprising:
Use default compression algorithm to compress predetermined dynamic library file, generate one or more dynamic base compressed files;
Described according to described dynamic base compressed file, generate application installation file, comprising:
According to generated one or more dynamic base compressed files, generate application installation file.
6. according to method described in any one in claim 1-5, it is characterized in that,
Described default compression algorithm, comprising: one or more in LZMA compression algorithm, Huffman compression algorithm, LZSS compression algorithm and LZW compression algorithm.
7. a generating apparatus of applying installation file, is characterized in that, described device comprises:
Dynamic library file acquiring unit, for obtaining the predetermined dynamic library file that need to be placed on application installation file;
Dynamic library file compression unit, for using default compression algorithm to compress described predetermined dynamic library file, generates dynamic base compressed file;
Application installation file generation unit, for according to described dynamic base compressed file, generates application installation file.
8. install according to claim 7, it is characterized in that, described dynamic library file compression unit, comprising: dynamic library file replicon unit and dynamic library file compression subelement;
Described dynamic library file replicon unit, for copying described predetermined dynamic library file to default file catalogue;
Described dynamic library file compression subelement, for using default compression algorithm to compress the described dynamic library file that copies to described default file catalogue, generates dynamic base compressed file.
9. install according to claim 7, it is characterized in that, described dynamic library file acquiring unit, comprising: the first dynamic library file obtains subelement and the second dynamic library file obtains subelement;
Described the first dynamic library file obtains subelement, and for the dynamic base code of applying described in Development Engineering catalogue is compiled, generation need to be placed on the dynamic library file in described application installation file;
Described the second dynamic library file obtains subelement, for the needs from described generation, is placed on the dynamic library file of applying installation file and selects all or part of dynamic library file as described predetermined dynamic library file.
10. install according to claim 7, it is characterized in that, described application installation file generation unit, comprising: compressed file replicon unit and application installation file generate subelement;
Described compressed file replicon unit, for copying to Development Engineering catalogue for depositing the file of resource file by described dynamic base compressed file;
Application installation file generates subelement, for generate application installation file by installation file strapping tool.
11. install according to claim 7, it is characterized in that,
Described dynamic library file compression unit, for using default compression algorithm to compress predetermined dynamic library file, generates one or more dynamic base compressed files;
Described application installation file generation unit, for according to generated one or more dynamic base compressed files, generates application installation file.
12. install described in any one in claim 7-11, it is characterized in that,
Described default compression algorithm, comprising: one or more in LZMA compression algorithm, Huffman compression algorithm, LZSS compression algorithm and LZW compression algorithm.
The starting method of 13. 1 kinds of application, is characterized in that,
Described application is installed by claim 1 to the application installation file that the method described in claim 6 any one generates;
Described method comprises:
Receive the application start instruction that user sends;
After receiving described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file, so that call described predetermined dynamic library file after described application start.
14. according to method described in claim 13, it is characterized in that, after receiving described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain before described predetermined dynamic library file, described method also comprises:
Determine under the installation directory of described application and whether had described predetermined dynamic library file;
Described according to described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file and comprise:
If determine under the installation directory of described application and do not have described predetermined dynamic library file, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file.
15. according to method described in claim 13, it is characterized in that, the described use default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtains described predetermined dynamic library file, comprising:
Use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, and the described predetermined dynamic library file that described decompression is obtained stores under the default directory of installation directory into.
16. according to method described in claim 13, it is characterized in that,
Described dynamic base compressed file comprises one or more compressed file;
The described use default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, comprising:
Use the default decompression algorithm decompression described one or more dynamic base compressed files corresponding with described default compression algorithm.
The starter gear of 17. 1 kinds of application, is characterized in that,
Described application is installed by claim 1 to the application installation file that the method described in claim 6 any one generates;
Described device comprises:
Enabled instruction receiving element, the application start instruction sending for receiving user;
Dynamic library file decompression unit, for after receiving described application start instruction, use the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, obtain described predetermined dynamic library file, so that call described predetermined dynamic library file after described application start.
18. according to device described in claim 17, it is characterized in that, described device also comprises: dynamic library file determining unit;
Described dynamic library file determining unit, for receiving after described application start instruction at described enabled instruction receiving element, determine under the installation directory of described application and whether had described predetermined dynamic library file, if do not exist, trigger described dynamic library file decompression unit, decompression dynamic library file.
19. according to device described in claim 17, it is characterized in that,
Described dynamic library file decompression unit, specifically for using the default decompression algorithm corresponding with the described default compression algorithm described dynamic base compressed file that decompresses, and the described predetermined dynamic library file that described decompression is obtained stores under the default directory of installation directory.
20. according to device described in claim 17, it is characterized in that,
Described dynamic base compressed file comprises one or more compressed files;
Described dynamic library file decompression unit, for after receiving described application start instruction, use the default decompression algorithm decompression described one or more dynamic base compressed files corresponding with described default compression algorithm, obtain described predetermined dynamic library file, so that call described predetermined dynamic library file after described application start.
CN201410217160.1A 2014-05-21 2014-05-21 Generation method for application installation file and starting method and device for application Pending CN103955375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410217160.1A CN103955375A (en) 2014-05-21 2014-05-21 Generation method for application installation file and starting method and device for application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410217160.1A CN103955375A (en) 2014-05-21 2014-05-21 Generation method for application installation file and starting method and device for application

Publications (1)

Publication Number Publication Date
CN103955375A true CN103955375A (en) 2014-07-30

Family

ID=51332651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410217160.1A Pending CN103955375A (en) 2014-05-21 2014-05-21 Generation method for application installation file and starting method and device for application

Country Status (1)

Country Link
CN (1) CN103955375A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138333A (en) * 2015-08-27 2015-12-09 北京暴风科技股份有限公司 APK file compression method and system based on Android system
CN105573734A (en) * 2014-10-17 2016-05-11 阿里巴巴集团控股有限公司 Method and device for providing SDK file
CN106325896A (en) * 2015-06-18 2017-01-11 腾讯科技(深圳)有限公司 Method and device for processing shared function library file of installation package
CN106406923A (en) * 2015-07-30 2017-02-15 腾讯科技(深圳)有限公司 Processing method and device of dynamic library file
CN106776266A (en) * 2015-11-25 2017-05-31 腾讯科技(深圳)有限公司 The collocation method and terminal device of testing tool
CN107368536A (en) * 2017-06-22 2017-11-21 深圳市金立通信设备有限公司 The optimization method and terminal of a kind of installation kit
CN109491664A (en) * 2018-11-08 2019-03-19 腾讯科技(深圳)有限公司 Generation method, device, equipment and the storage medium of iOS application program
CN109857454A (en) * 2018-12-15 2019-06-07 中国平安人寿保险股份有限公司 Installation kit generates and caching method, device, electronic equipment and storage medium
CN112579072A (en) * 2020-12-21 2021-03-30 深圳市欢太科技有限公司 Browser packaging method and device, storage medium and terminal
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN112799691A (en) * 2021-02-02 2021-05-14 百果园技术(新加坡)有限公司 Processing method, device, equipment and medium for application installation package
CN112988686A (en) * 2021-04-07 2021-06-18 北京字节跳动网络技术有限公司 Plug-in processing method, device, equipment and storage medium
CN113296781A (en) * 2021-02-01 2021-08-24 阿里巴巴集团控股有限公司 Application program installation package file compiling and constructing method and device and electronic equipment
CN114691242A (en) * 2022-04-20 2022-07-01 深圳市元征软件开发有限公司 Software function implementation method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763269A (en) * 2010-01-27 2010-06-30 中兴通讯股份有限公司 Method for making software installation package
CN102231117A (en) * 2011-07-08 2011-11-02 盛乐信息技术(上海)有限公司 Software installment method and system for embedded platform
CN102289374A (en) * 2011-08-31 2011-12-21 中兴通讯股份有限公司 Method and device for constructing cross-platform software running environment
CN103577225A (en) * 2013-10-22 2014-02-12 北京奇虎科技有限公司 Software installation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763269A (en) * 2010-01-27 2010-06-30 中兴通讯股份有限公司 Method for making software installation package
CN102231117A (en) * 2011-07-08 2011-11-02 盛乐信息技术(上海)有限公司 Software installment method and system for embedded platform
CN102289374A (en) * 2011-08-31 2011-12-21 中兴通讯股份有限公司 Method and device for constructing cross-platform software running environment
CN103577225A (en) * 2013-10-22 2014-02-12 北京奇虎科技有限公司 Software installation method and device

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573734A (en) * 2014-10-17 2016-05-11 阿里巴巴集团控股有限公司 Method and device for providing SDK file
CN105573734B (en) * 2014-10-17 2019-12-17 阿里巴巴集团控股有限公司 method and equipment for providing SDK file
CN106325896B (en) * 2015-06-18 2021-05-11 腾讯科技(深圳)有限公司 Shared function library file processing method and device for installation package
CN106325896A (en) * 2015-06-18 2017-01-11 腾讯科技(深圳)有限公司 Method and device for processing shared function library file of installation package
CN106406923A (en) * 2015-07-30 2017-02-15 腾讯科技(深圳)有限公司 Processing method and device of dynamic library file
CN106406923B (en) * 2015-07-30 2020-09-04 腾讯科技(深圳)有限公司 Method and device for processing dynamic library file
CN105138333B (en) * 2015-08-27 2018-11-06 暴风集团股份有限公司 The method and system of APK file compression based on android system
CN105138333A (en) * 2015-08-27 2015-12-09 北京暴风科技股份有限公司 APK file compression method and system based on Android system
CN106776266A (en) * 2015-11-25 2017-05-31 腾讯科技(深圳)有限公司 The collocation method and terminal device of testing tool
CN107368536A (en) * 2017-06-22 2017-11-21 深圳市金立通信设备有限公司 The optimization method and terminal of a kind of installation kit
CN109491664A (en) * 2018-11-08 2019-03-19 腾讯科技(深圳)有限公司 Generation method, device, equipment and the storage medium of iOS application program
CN109491664B (en) * 2018-11-08 2021-03-26 腾讯科技(深圳)有限公司 iOS application program generation method, device, equipment and storage medium
CN109857454A (en) * 2018-12-15 2019-06-07 中国平安人寿保险股份有限公司 Installation kit generates and caching method, device, electronic equipment and storage medium
CN112579072A (en) * 2020-12-21 2021-03-30 深圳市欢太科技有限公司 Browser packaging method and device, storage medium and terminal
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN113296781A (en) * 2021-02-01 2021-08-24 阿里巴巴集团控股有限公司 Application program installation package file compiling and constructing method and device and electronic equipment
CN112799691A (en) * 2021-02-02 2021-05-14 百果园技术(新加坡)有限公司 Processing method, device, equipment and medium for application installation package
CN112988686A (en) * 2021-04-07 2021-06-18 北京字节跳动网络技术有限公司 Plug-in processing method, device, equipment and storage medium
CN114691242A (en) * 2022-04-20 2022-07-01 深圳市元征软件开发有限公司 Software function implementation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103955375A (en) Generation method for application installation file and starting method and device for application
US8898662B2 (en) Method and device for generating software installation packet
CN105528225A (en) Application loading method and loading apparatus
CN110162964B (en) Method, device and system for checking file tampering
CN105138376A (en) Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN108279941B (en) Application program compression method and device
CN109857454B (en) Method, device, electronic equipment and storage medium for generating and caching installation package
CN112165331A (en) Data compression method and device, data decompression method and device, storage medium and electronic equipment
CN111681291A (en) Image processing method, device, equipment and computer readable storage medium
CN110297643B (en) Method, device, equipment and storage medium for injecting application program into dynamic library
CN111008034B (en) Patch generation method and device
CN105893093A (en) Application program upgrading method and device
CN104965723A (en) Application program operation method and apparatus
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
CN111796853A (en) Firmware upgrading method, system, equipment and computer storage medium
CN106325896B (en) Shared function library file processing method and device for installation package
CN110888843A (en) Cross-host sparse file copying method, device, equipment and storage medium
CN107239309A (en) Patch generation method and device, update method, electronic equipment, storage medium
CN112149035A (en) Website static resource processing method and device
US7721000B2 (en) Method of compressing and decompressing executable file in mobile communication terminal
CN106033335A (en) An installation package generating method and device
CN110795162A (en) Method and device for generating container mirror image file
CN113741954A (en) System software generation method and device, electronic equipment and storage medium
KR102141749B1 (en) APP program execution method and device
CN109766123B (en) Application program packaging method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140730

RJ01 Rejection of invention patent application after publication