Unlock instant, AI-driven research and patent intelligence for your innovation.

Compressed file dynamic packaging method and system

A technology for compressing files and compression algorithms, applied in the direction of program loading/starting, program control devices, etc., can solve the problems of low flexibility, large time complexity, resource consumption, etc., and achieve the effect of high flexibility and saving network resources

Active Publication Date: 2018-01-12
SHANGHAI CTRIP COMMERCE CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The technical problem to be solved by the present invention is to propose a dynamic packaging method and system for compressed files in order to overcome the defects of serious resource loss, high time complexity and low flexibility in the application file upgrading and updating method in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Compressed file dynamic packaging method and system
  • Compressed file dynamic packaging method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Such as figure 1 As shown, the compressed file dynamic packing method of the present embodiment comprises the following steps:

[0039] S 1 . Analyze the binary stream of the directory source data field of the original file, and determine the compression algorithm of the original file according to the analysis result;

[0040] S 2 . Obtain the position of the field to be modified in the original file, where the field to be modified includes the field to be deleted and the content to be added;

[0041] S 3 , Find the corresponding position of the field to be deleted according to the relative offset of the partial file header and the original file storage location recorded by the directory source, and delete the field to be deleted;

[0042] S 4 , Use the compression algorithm of the original file to compress the content to be added to obtain the content to be added;

[0043] S 5 . Find the insertion position of the content to be added according to the relative off...

Embodiment 2

[0047] refer to figure 2 As shown, the compressed file dynamic packaging system of this embodiment includes a parsing module 1 , a modification field location module 2 , a field deletion module 3 , an addition module 4 and an update module 5 .

[0048] Wherein, the parsing module 1 is used for parsing the binary stream of the directory source data field of the original file, and determining the compression algorithm of the original file according to the parsing result.

[0049] The modified field positioning module 2 is used to determine the position of the field to be modified in the original file, wherein the field to be modified includes the field to be deleted and the content to be added.

[0050] The field deletion module 3 is used to find the corresponding position of the field to be deleted according to the relative offset of the partial file header and the storage location of the original file recorded by the directory source and delete the field to be deleted.

[00...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and system for dynamically packaging compressed files. The method comprises the following steps: analyzing binary streams of data fields of a directory source of an original file, and determining a compression algorithm; obtaining the position of a field required to be modified in the original file; finding the position corresponding to a field required to be deleted according to the relative offset of a local file header and an original file storage position recorded by the directory source, and deleting the field required to be deleted; compressing the content required to be added by the compression algorithm of the original file, finding the insertion position of the content to be added according to the relative offset of the local file header and the directory source, and adding the content to be added; updating the data fields of the directory source to form an updated file. According to the method and the system, application program files can be quickly and efficiently updated; compared with a conventional method, a large amount of network resources are saved, dynamic update can be realized, and the flexibility is relatively high.

Description

technical field [0001] The invention relates to a dynamic packaging method and system for compressed files. Background technique [0002] When prior art is dealing with application program (for example for apk file, ipa file) upgrading update problem, its basic steps are as follows: [0003] a) Decompress the original apk file or ipa file to generate the corresponding decompressed file; [0004] b) Modify the content of the decompressed file, such as developing new function codes, etc.; [0005] c) packaging to generate a new apk file or ipa file; [0006] d) Re-download the new apk file or ipa file. [0007] There is a serious time-consuming problem in the steps of the above method. After decompression, the recompression and packaging workload is heavy and the time complexity is high. The update of each version of the application program needs to be downloaded again and will take a lot of time. And the above steps also have serious resource loss problems, without loss o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
Inventor 程一帆沈天乐熊文婷
Owner SHANGHAI CTRIP COMMERCE CO LTD