技术领域technical field
本发明涉及网络通信技术领域,特别是涉及一种APK文件压缩方法及装置。The invention relates to the technical field of network communication, in particular to an APK file compression method and device.
背景技术Background technique
智能手机安装的各种软件,是通过应用商店、浏览器等途径下载并安装。当用户下载或升级应用时,经常存在需要对同属一个系列的所有应用进行下载或更新的情况,例如,office系列的APK,或者是同一公司推出的多个应用,此时用户需要逐个分别下载同一系列的所有应用,然后进行安装,这样用户就需要消耗较多的手机流量以及等待较长时间,从而降低了下载效率。Various software installed on smartphones are downloaded and installed through app stores, browsers, and other channels. When a user downloads or upgrades an application, it is often necessary to download or update all applications belonging to the same series, for example, the APK of the office series, or multiple applications launched by the same company. At this time, the user needs to download the same application one by one. Then install all the applications in the series, so that the user needs to consume more mobile phone traffic and wait for a long time, thereby reducing the download efficiency.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决或者减缓上述问题的APK文件压缩方法及装置。In view of the above problems, the present invention is proposed to provide an APK file compression method and device that overcomes the above problems or at least partially solves or alleviates the above problems.
根据本发明的一个方面,提供了一种一种APK文件压缩的方法,包括:According to one aspect of the present invention, a kind of APK file compression method is provided, comprising:
获取需要推送给客户端的打包文件,所述打包文件为多个APK文件和/或增量升级包;Obtain a packaged file that needs to be pushed to the client, where the packaged file is multiple APK files and/or incremental upgrade packages;
统一处理获取的所有文件,对其进行合并,得到合并数据;Process all the obtained files in a unified manner, merge them, and obtain the merged data;
对所述合并数据进行压缩处理,生成新的压缩文件存储在云端服务器中;Compressing the merged data, generating a new compressed file and storing it in the cloud server;
当接收到客户端发来的下载请求或升级请求消息时,将所述新的压缩文件提供给所述客户端。When receiving a download request or upgrade request message from the client, the new compressed file is provided to the client.
进一步地,还包括:Further, it also includes:
存储在云端服务器中后,向客户端发送软件安装或升级的推送信息。After being stored in the cloud server, push information for software installation or upgrade is sent to the client.
进一步地,所述将获取的所有文件进行合并包括:Further, the merging of all the obtained files includes:
识别各文件的内容格式;Identify the content format of each file;
将所述内容格式相同的解压数据合并为一个待压缩单元;Combining the decompressed data with the same content format into one unit to be compressed;
其中,所述合并数据包含有至少一个所述待压缩单元。Wherein, the merged data includes at least one unit to be compressed.
进一步地,所述对所述合并数据进行压缩处理,生成新的压缩数据,包括:Further, the compressing the merged data to generate new compressed data includes:
根据所述待压缩单元所包含的文件的内容格式,选取对应的压缩算法;Selecting a corresponding compression algorithm according to the content format of the file contained in the unit to be compressed;
根据选取的所述压缩算法,对所述待压缩单元进行压缩处理,生成所述待压缩单元对应的压缩数据;performing compression processing on the unit to be compressed according to the selected compression algorithm, and generating compressed data corresponding to the unit to be compressed;
其中,所述新的压缩数据包括有所述合并数据中包含的所有APK的打包数据。Wherein, the new compressed data includes packaging data of all APKs included in the merged data.
进一步地,还包括:Further, it also includes:
提取包含所有APK的打包文件中的元数据信息;Extract the metadata information in the packaging file containing all APKs;
将所述元数据信息和所述新的压缩数据重新打包成压缩文件。Repackaging the metadata information and the new compressed data into a compressed file.
进一步地,所述元数据信息包括:包含所有APK的打包文件的目录信息和文件头信息。Further, the metadata information includes: directory information and file header information of packaged files including all APKs.
进一步地,还包括:Further, it also includes:
获取所述新的压缩文件在压缩时的压缩参数;Obtain the compression parameters of the new compressed file during compression;
将所述压缩参数保存到所述元数据信息中,以根据所述元数据信息中的所述压缩参数对所述新的压缩文件进行解压缩。saving the compression parameters in the metadata information, so as to decompress the new compressed file according to the compression parameters in the metadata information.
进一步地,还包括:Further, it also includes:
预先对高版本软件安装包和当前软件安装包进行比较,采用预定算法对二者之间的差异文件进行计算,生成针对所述高版本软件安装包的增量升级包。The high-version software installation package is compared with the current software installation package in advance, and a predetermined algorithm is used to calculate the difference file between the two, and an incremental upgrade package for the high-version software installation package is generated.
根据本发明的另一个方面,提供了一种APK文件压缩的装置,包括:According to another aspect of the present invention, a device for compressing APK files is provided, including:
获取模块,用于获取需要推送给客户端的打包文件,所述打包文件为多个APK文件和/或增量升级包;An acquisition module, configured to acquire a packaged file that needs to be pushed to the client, where the packaged file is a plurality of APK files and/or an incremental upgrade package;
合并模块,用于统一处理获取的所有文件,对其进行合并,得到合并数据;The merge module is used to uniformly process all the obtained files and merge them to obtain merged data;
压缩模块,用于对所述合并数据进行压缩处理,生成新的压缩文件存储在云端服务器中;A compression module, configured to compress the merged data, generate a new compressed file and store it in the cloud server;
文件提供模块,用于当接收到客户端发来的下载请求或升级请求消息时,将所述新的压缩文件提供给所述客户端。The file providing module is configured to provide the new compressed file to the client when receiving a download request or upgrade request message from the client.
进一步地,还包括:Further, it also includes:
消息发送模块,用于存储在云端服务器中后,向客户端发送软件安装或升级的推送信息。The message sending module is used to send push information of software installation or upgrade to the client after being stored in the cloud server.
进一步地,所述合并模块进一步用于,识别各文件的内容格式;将所述内容格式相同的解压数据合并为一个待压缩单元;其中,所述合并数据包含有至少一个所述待压缩单元。Further, the merging module is further used for identifying the content format of each file; merging the decompressed data with the same content format into a unit to be compressed; wherein, the combined data includes at least one unit to be compressed.
进一步地,所述压缩模块进一步用于,根据所述待压缩单元所包含的文件的内容格式,选取对应的压缩算法;根据选取的所述压缩算法,对所述待压缩单元进行压缩处理,生成所述待压缩单元对应的压缩数据;其中,所述新的压缩数据包括有所述合并数据中包含的所有APK的打包数据。Further, the compression module is further configured to select a corresponding compression algorithm according to the content format of the file contained in the unit to be compressed; perform compression processing on the unit to be compressed according to the selected compression algorithm to generate The compressed data corresponding to the unit to be compressed; wherein, the new compressed data includes packaging data of all APKs contained in the merged data.
进一步地,所述压缩模块还用于,提取包含所有APK的打包文件中的元数据信息;Further, the compression module is also used to extract the metadata information in the packaging file containing all APKs;
将所述元数据信息和所述新的压缩数据重新打包成压缩文件。Repackaging the metadata information and the new compressed data into a compressed file.
进一步地,所述元数据信息包括:包含所有APK的打包文件的目录信息和文件头信息。Further, the metadata information includes: directory information and file header information of packaged files including all APKs.
进一步地,所述压缩模块还用于,获取所述新的压缩文件在压缩时的压缩参数;将所述压缩参数保存到所述元数据信息中,以根据所述元数据信息中的所述压缩参数对所述新的压缩文件进行解压缩。Further, the compression module is also used to obtain compression parameters of the new compressed file during compression; save the compression parameters into the metadata information, so as to The compression parameter decompresses the new compressed file.
进一步地,所述获取模块还用于,预先对高版本软件安装包和当前软件安装包进行比较,采用预定算法对二者之间的差异文件进行计算,生成针对所述高版本软件安装包的增量升级包。Further, the acquisition module is also used to compare the high-version software installation package with the current software installation package in advance, calculate the difference file between the two by using a predetermined algorithm, and generate the high-version software installation package. Incremental upgrade package.
本发明的有益效果为:The beneficial effects of the present invention are:
本发明压缩后的APK文件数据量更小,因此,用户下载APK文件及APK增量数据包时候可节省一定的下载流量,缩短下载等待时间,提高了下载效率。The data volume of the compressed APK file of the present invention is smaller, therefore, when the user downloads the APK file and the APK incremental data package, a certain amount of download traffic can be saved, the waiting time for downloading can be shortened, and the downloading efficiency can be improved.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1是本发明方法实施例的流程示意图;Fig. 1 is a schematic flow sheet of a method embodiment of the present invention;
图2是本发明装置实施例的结构示意图。Fig. 2 is a schematic structural diagram of an embodiment of the device of the present invention.
具体实施例specific embodiment
下面结合附图和具体的实施方式对本发明作进一步的描述。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
首先结合附图1对本发明实施例所述方法进行详细说明。Firstly, the method described in the embodiment of the present invention will be described in detail with reference to FIG. 1 .
如图1所示,图1为本发明方法实施例所的流程示意图,本实施例提供的所述方法的执行主体可以是文件处理装置,该装置可具体为服务端设备,如云端设备,该方法具体可以包括如下步骤:As shown in Figure 1, Figure 1 is a schematic flow diagram of the method embodiment of the present invention. The subject of execution of the method provided in this embodiment may be a file processing device, which may specifically be a server device, such as a cloud device. The method may specifically include the following steps:
步骤101:云端服务器获取需要推送给客户端的打包文件;所述打包文件为多个APK和/或APK增量升级包;Step 101: the cloud server acquires a packaged file that needs to be pushed to the client; the packaged file is multiple APKs and/or incremental APK upgrade packages;
具体的说就是,APK是AndroidPackage的缩写,即Android安装包(APK)。APK是类似Symbian Sis或Sisx的文件格式。通过将APK文件直接传到Android模拟器或Android手机中执行即可安装。APK文件和sis一样,把android sdk编译的工程打包成一个安装程序文件,格式为apk。Specifically, APK is the abbreviation of Android Package, that is, the Android installation package (APK). APK is a file format similar to Symbian Sis or Sisx. It can be installed by directly transferring the APK file to the Android emulator or Android phone for execution. The APK file is the same as the sis, and the project compiled by the android sdk is packaged into an installer file in the format of apk.
当用户下载或升级应用时,经常存在需要对同属一个系列的所有应用进行下载或更新的情况,例如,office系列的APK,或者是同一公司推出的多个关联应用,因此,云端服务器获取的需要推送给客户端的打包文件可以是多个APK的软件安装包,也可以是多个APK增量升级包,还可以是至少一个APK的软件安装包和至少一个APK增量数据包;When a user downloads or upgrades an application, it is often necessary to download or update all applications belonging to the same series, for example, the APK of the office series, or multiple related applications launched by the same company. Therefore, the cloud server needs to obtain The packaging file pushed to the client can be multiple APK software installation packages, multiple APK incremental upgrade packages, or at least one APK software installation package and at least one APK incremental data package;
其中,该APK增量数据包的生成过程包括:预先对高版本软件安装包和当前软件安装包进行比较,采用预定算法(例如差分算法)对二者之间的差异文件进行计算,生成针对所述高版本软件安装包的APK增量升级包。Wherein, the generating process of the APK incremental data package includes: comparing the high-version software installation package and the current software installation package in advance, using a predetermined algorithm (such as a difference algorithm) to calculate the difference file between the two, and generating The APK incremental upgrade package of the software installation package of the above-mentioned higher version.
本发明方法实施例中,客户端可以是任何可供用户使用、能够安装各种应用软件的终端设备,例如手机、ipad等。云端服务器具有数据存储及处理的功能,例如在云端服务器的数据中存储有多个APK和APK增量升级包,可以根据主动推送软件安装消息或升级消息给客户端,也可以根据客户端的下载请求消息或升级消息,提供相应的APK和APK增量升级包给客户端。In the method embodiment of the present invention, the client may be any terminal device that is available to the user and capable of installing various application software, such as a mobile phone, ipad, and the like. The cloud server has data storage and processing functions. For example, multiple APKs and APK incremental upgrade packages are stored in the data of the cloud server, which can be actively pushed to the client according to the software installation message or upgrade message, or according to the download request of the client. Message or upgrade message, provide the corresponding APK and APK incremental upgrade package to the client.
步骤102:统一处理获取的所有文件,对其将进行合并,得到合并数据;Step 102: process all the obtained files in a unified manner, and merge them to obtain merged data;
具体的说就是,如果有APK软件安装包或者APK增量数据包本身就是压缩格式,那么在合并之前需要先采用通过的解压缩算法进行解压缩,每个APK软件安装包或者APK增量数据包经过解压缩后都会得到对应的一组文件;如果某个APK软件安装包或者APK增量数据包本身是非压缩格式,那么就不用进行任何处理。Specifically, if there is an APK software installation package or APK incremental data package itself in a compressed format, it needs to be decompressed with the adopted decompression algorithm before merging. Each APK software installation package or APK incremental data package After decompression, a corresponding set of files will be obtained; if a certain APK software installation package or APK incremental data package itself is in a non-compressed format, then no processing is required.
对于上述非压缩格式的所有文件(包括经过上述解压缩处理的所有多组文件),识别各文件的内容格式,将其中内容格式相同的解压数据合并为一个待压缩单元,其中,内容格式的识别可通过识别文件扩展名和识别文件头,这两种方式来实现。采用识别文件扩展名的方式识别速度快,但准确度要低于采用识别文件头的方式。例如,扩展名是.zip和.jar都是zip格式。文件头是PK开头,表示是zip格式。所有格式都可采用lzma2/lzma作为压缩算法。格式内容识别后进行合并处理得到合并数据包,该合并数据包含有至少一个待压缩单元。例如,应用安装包中包含两种内容格式的解压数据,一种是zip格式;另一种是PNG(Portable Network Graphic,可移植网络图形)格式。For all files in the above-mentioned uncompressed format (including all groups of files through the above-mentioned decompression process), identify the content format of each file, and merge the decompressed data with the same content format into a unit to be compressed, wherein the identification of the content format It can be realized in two ways by identifying the file extension and identifying the file header. The method of recognizing the file extension is fast, but the accuracy is lower than the method of recognizing the file header. For example, the extension is .zip and .jar is in zip format. The file header starts with PK, which means it is in zip format. All formats can use lzma2/lzma as compression algorithm. After the format and content are identified, merge processing is performed to obtain a merged data package, and the merged data includes at least one unit to be compressed. For example, the application installation package contains decompressed data in two content formats, one is in zip format; the other is in PNG (Portable Network Graphic, Portable Network Graphics) format.
步骤103:对上述合并数据进行压缩处理,生成新的压缩文件存储在云端服务器中;Step 103: compressing the above combined data, generating a new compressed file and storing it in the cloud server;
具体的说就是,根据所述待压缩单元所包含的文件的内容格式,选取对应的压缩算法,根据选取的压缩算法,对待压缩单元进行压缩处理,生成所述待压缩单元对应的压缩数据,即新的压缩数据,新的压缩数据包括有合并数据中包含的所有APK的打包数据。其中压缩的过程包括:提取所有APK文件或者APK增量数据包中的元数据信息,将多个元数据信息进行整理合并,然后和上述合并数据重新进行压缩生成新的压缩文件,其中元数据信息包括:目录信息和文件头信息,目录信息主要记录合并前每个文件的位置,每个文件对应一个文件头信息,文件头信息主要用以区别于其他文件。Specifically, according to the content format of the file contained in the unit to be compressed, select a corresponding compression algorithm, and perform compression processing on the unit to be compressed according to the selected compression algorithm, and generate compressed data corresponding to the unit to be compressed, that is New compressed data, the new compressed data includes packaging data of all APKs contained in the merged data. The compression process includes: extracting metadata information in all APK files or APK incremental data packages, sorting and merging multiple metadata information, and then recompressing the above merged data to generate a new compressed file, in which the metadata information Including: directory information and file header information. The directory information mainly records the position of each file before merging. Each file corresponds to a file header information. The file header information is mainly used to distinguish it from other files.
另外,上述压缩处理时还可以获取所述新的压缩文件在压缩时的压缩参数;将压缩参数保存到元数据信息中,以根据元数据信息中的压缩参数对新的压缩文件进行解压缩。这是由于采用现有解压缩算法,压缩数据可能绝大部分能被完整的解出(即内容完全一样),但还是有有些部分不太可能恢复的与原包一模一样。虽然,从运行结构来看,并不存在任何影响,但还是有出错的可能。为了保证压缩数据解出的解压数据与原包完全一样,且保证不出错,本发明实施例即采用上述过程将所述新的压缩数据在压缩时的压缩参数记录下来并保存到元数据信息中。In addition, during the above compression process, the compression parameters of the new compressed file during compression may also be obtained; the compression parameters are stored in the metadata information, so as to decompress the new compressed file according to the compression parameters in the metadata information. This is due to the use of the existing decompression algorithm, most of the compressed data may be completely decompressed (that is, the content is exactly the same), but there are still some parts that are unlikely to be restored to be exactly the same as the original package. Although, from the perspective of the operating structure, there is no impact, but there is still the possibility of errors. In order to ensure that the decompressed data decompressed from the compressed data is exactly the same as the original package and that there is no error, the embodiment of the present invention uses the above process to record the compression parameters of the new compressed data during compression and save them in the metadata information .
步骤104:向客户端发送软件安装或升级的推送信息;Step 104: Send push information for software installation or upgrade to the client;
步骤105:当接收到客户端发来的下载请求或升级请求消息时,将新的压缩文件提供给所述客户端。Step 105: When receiving the download request or upgrade request message from the client, provide the new compressed file to the client.
接下来结合附图2对本发明装置实施例进行详细说明。Next, the embodiment of the device of the present invention will be described in detail in conjunction with FIG. 2 .
如图2所示,图2为本发明装置实施例的结构示意图,具体就可以包括:As shown in Figure 2, Figure 2 is a schematic structural view of an embodiment of the device of the present invention, specifically it may include:
获取模块201,用于获取需要推送给客户端的打包文件,所述打包文件为多个APK文件和/或增量升级包;获取模块还用于,预先对高版本软件安装包和当前软件安装包进行比较,采用预定算法对二者之间的差异文件进行计算,生成针对所述高版本软件安装包的增量升级包。The obtaining module 201 is used to obtain the packaging file that needs to be pushed to the client, and the packaging file is a plurality of APK files and/or incremental upgrade packages; the obtaining module is also used to pre-install the high-version software installation package and the current software installation package For comparison, a predetermined algorithm is used to calculate the difference files between the two, and an incremental upgrade package for the high-version software installation package is generated.
合并模块202,用于统一处理获取的所有文件,对其进行合并,得到合并数据;具体的说就是,合并模块202识别各文件的内容格式;将内容格式相同的解压数据合并为一个待压缩单元;其中,合并数据包含有至少一个待压缩单元。The merging module 202 is used to uniformly process all the files obtained and merge them to obtain the merged data; specifically, the merging module 202 identifies the content format of each file; merges the decompressed data with the same content format into a unit to be compressed ; Wherein, the merged data contains at least one unit to be compressed.
压缩模块203,用于对所述合并数据进行压缩处理,生成新的压缩文件存储在云端服务器中;具体的说就是,压缩模块203根据所述待压缩单元所包含的文件的内容格式,选取对应的压缩算法;根据选取的压缩算法,对待压缩单元进行压缩处理,生成待压缩单元对应的压缩数据;其中,新的压缩数据包括有合并数据中包含的所有APK的打包数据。The compression module 203 is used to compress the merged data to generate a new compressed file and store it in the cloud server; specifically, the compression module 203 selects the corresponding file according to the content format of the file contained in the unit to be compressed. Compression algorithm; according to the selected compression algorithm, the unit to be compressed is compressed, and the compressed data corresponding to the unit to be compressed is generated; wherein, the new compressed data includes packaged data of all APKs contained in the merged data.
压缩模块203还用于,提取包含所有APK的打包文件中的元数据信息;将所述元数据信息和所述新的压缩数据重新打包成压缩文件。以及,获取所述新的压缩文件在压缩时的压缩参数;将所述压缩参数保存到所述元数据信息中,以根据所述元数据信息中的所述压缩参数对所述新的压缩文件进行解压缩。其中,元数据信息包括:包含所有APK的打包文件的目录信息和文件头信息。The compression module 203 is also used to extract the metadata information in the packaging file containing all APKs; and repackage the metadata information and the new compressed data into a compressed file. And, obtain the compression parameters of the new compressed file during compression; save the compression parameters in the metadata information, so as to compress the new compressed file according to the compression parameters in the metadata information to unzip. Wherein, the metadata information includes: directory information and file header information of packaged files including all APKs.
文件提供模块204,用于当接收到客户端发来的请求下载或升级消息时,将压缩模块203处理后的新的压缩文件提供给所述客户端。The file providing module 204 is configured to provide the new compressed file processed by the compression module 203 to the client when receiving a download or upgrade request message from the client.
作为本发明装置实施例的最佳实施例,还可以包括:As a preferred embodiment of the device embodiment of the present invention, it may also include:
消息发送模块205,用于存储在云端服务器中后,向客户端发送软件安装或升级的推送信息。The message sending module 205 is configured to send push information of software installation or upgrade to the client after being stored in the cloud server.
需要说明的是,对于上述装置的具体实现过程,上述方法已进行详细说明,故此处不再赘述。It should be noted that, for the specific implementation process of the above-mentioned device, the above-mentioned method has been described in detail, so details will not be repeated here.
综上所述,本发明实施例提供了一种APK文件压缩方法及装置,与采用现有技术相比相比,压缩后的APK文件数据量更小,因此,用户下载APK文件及APK增量数据包时候可节省一定的下载流量,缩短下载等待时间,提高了下载效率。In summary, the embodiment of the present invention provides an APK file compression method and device. Compared with the prior art, the data volume of the compressed APK file is smaller. Therefore, the user downloads the APK file and the APK increment Data packets can save a certain amount of download traffic, shorten download waiting time, and improve download efficiency.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Additionally, please note that examples of the word "in one embodiment" herein do not necessarily all refer to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。In addition, it should be noted that the language used in the specification has been chosen primarily for the purpose of readability and instruction rather than to explain or delimit the inventive subject matter. Accordingly, many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. With respect to the scope of the present invention, the disclosure of the present invention is intended to be illustrative rather than restrictive, and the scope of the present invention is defined by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510992699.9ACN106897052B (en) | 2015-12-24 | 2015-12-24 | APK file compression method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510992699.9ACN106897052B (en) | 2015-12-24 | 2015-12-24 | APK file compression method and device |
| Publication Number | Publication Date |
|---|---|
| CN106897052Atrue CN106897052A (en) | 2017-06-27 |
| CN106897052B CN106897052B (en) | 2021-08-24 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510992699.9AActiveCN106897052B (en) | 2015-12-24 | 2015-12-24 | APK file compression method and device |
| Country | Link |
|---|---|
| CN (1) | CN106897052B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107908404A (en)* | 2017-11-17 | 2018-04-13 | 深圳市泉眼网络科技有限公司 | program packaging method, system and terminal device |
| CN109120687A (en)* | 2018-08-09 | 2019-01-01 | 深圳市腾讯网络信息技术有限公司 | Data packet sending method, device, system, equipment and storage medium |
| CN111966647A (en)* | 2020-08-21 | 2020-11-20 | 苏州浪潮智能科技有限公司 | Cloud storage method and device for small files, server and storage medium |
| CN112825035A (en)* | 2019-11-21 | 2021-05-21 | 北京搜狗科技发展有限公司 | Program installation file generating and processing method and device |
| CN113794589A (en)* | 2021-08-31 | 2021-12-14 | 新华三技术有限公司成都分公司 | AC firmware packaging method, AP upgrading method and AC |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1584875A (en)* | 2004-06-01 | 2005-02-23 | 北京九州计算机网络有限公司 | Ergodic compressing and decompressing method for batched computer document |
| US20070288556A1 (en)* | 2002-05-17 | 2007-12-13 | Anton Richard N | System and Method for Encoding and Decoding Data Files |
| CN101478370A (en)* | 2009-01-20 | 2009-07-08 | 中兴通讯股份有限公司 | File compression method and apparatus based on file system |
| CN101763269A (en)* | 2010-01-27 | 2010-06-30 | 中兴通讯股份有限公司 | Method for manufacturing software installation package |
| CN101984405A (en)* | 2010-10-11 | 2011-03-09 | 中兴通讯股份有限公司 | Method of software version upgrade and terminal and system |
| CN102375753A (en)* | 2011-10-08 | 2012-03-14 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal application presetting method and mobile terminal |
| CN103176864A (en)* | 2013-03-11 | 2013-06-26 | 广东欧珀移动通信有限公司 | A backup method, device and mobile terminal based on Android system |
| CN103699408A (en)* | 2013-12-12 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Software updating method and equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070288556A1 (en)* | 2002-05-17 | 2007-12-13 | Anton Richard N | System and Method for Encoding and Decoding Data Files |
| CN1584875A (en)* | 2004-06-01 | 2005-02-23 | 北京九州计算机网络有限公司 | Ergodic compressing and decompressing method for batched computer document |
| CN101478370A (en)* | 2009-01-20 | 2009-07-08 | 中兴通讯股份有限公司 | File compression method and apparatus based on file system |
| CN101763269A (en)* | 2010-01-27 | 2010-06-30 | 中兴通讯股份有限公司 | Method for manufacturing software installation package |
| CN101984405A (en)* | 2010-10-11 | 2011-03-09 | 中兴通讯股份有限公司 | Method of software version upgrade and terminal and system |
| CN102375753A (en)* | 2011-10-08 | 2012-03-14 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal application presetting method and mobile terminal |
| CN103176864A (en)* | 2013-03-11 | 2013-06-26 | 广东欧珀移动通信有限公司 | A backup method, device and mobile terminal based on Android system |
| CN103699408A (en)* | 2013-12-12 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Software updating method and equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107908404A (en)* | 2017-11-17 | 2018-04-13 | 深圳市泉眼网络科技有限公司 | program packaging method, system and terminal device |
| CN109120687A (en)* | 2018-08-09 | 2019-01-01 | 深圳市腾讯网络信息技术有限公司 | Data packet sending method, device, system, equipment and storage medium |
| CN109120687B (en)* | 2018-08-09 | 2020-07-24 | 深圳市腾讯网络信息技术有限公司 | Data packet transmitting method, device, system, equipment and storage medium |
| CN112825035A (en)* | 2019-11-21 | 2021-05-21 | 北京搜狗科技发展有限公司 | Program installation file generating and processing method and device |
| CN111966647A (en)* | 2020-08-21 | 2020-11-20 | 苏州浪潮智能科技有限公司 | Cloud storage method and device for small files, server and storage medium |
| CN113794589A (en)* | 2021-08-31 | 2021-12-14 | 新华三技术有限公司成都分公司 | AC firmware packaging method, AP upgrading method and AC |
| CN113794589B (en)* | 2021-08-31 | 2023-11-07 | 新华三技术有限公司成都分公司 | Packaging method of AC firmware, upgrading method of AP and AC |
| Publication number | Publication date |
|---|---|
| CN106897052B (en) | 2021-08-24 |
| Publication | Publication Date | Title |
|---|---|---|
| TWI712956B (en) | Method and device for updating mobile terminal application program | |
| CN103699410B (en) | Method and device for updating application programs | |
| CN106897052A (en) | APK file compression method and device | |
| WO2014206046A1 (en) | A method, equipment and system of incremental update | |
| CN103647816A (en) | Method and device for upgrading application software | |
| CN105760183A (en) | File processing method, device and communication system | |
| CN108647032B (en) | Application loading method and apparatus, computer apparatus and computer-readable storage medium | |
| US9420070B2 (en) | Streaming zip | |
| CN110532016B (en) | Version management method, version updating method and version management system | |
| CN104077162A (en) | Mobile terminal application template updating and issuing method and device | |
| CN105138333A (en) | APK file compression method and system based on Android system | |
| CN106021023A (en) | Application recovery method and device, and terminal | |
| CN108008971A (en) | A kind of offline compressed package based on HTML5 downloads the method for realizing mobile APP module upgrades | |
| WO2016202000A1 (en) | Differential rollback upgrading method and apparatus | |
| US10365910B2 (en) | Systems and methods for uninstalling or upgrading software if package cache is removed or corrupted | |
| CN104714812A (en) | Method and system for quickly deploying and loading Java applications in cloud environment | |
| CN105095367A (en) | Method and device for acquiring client data | |
| CN105446975A (en) | File packing method and device | |
| CN104038520A (en) | Multi-version distributed resource management method and multi-version distributed resource management system | |
| CN105740298A (en) | File processing method and apparatus, and server-side equipment | |
| AU2016378425B2 (en) | Application program running method and apparatus | |
| CN110597508B (en) | Interface dynamic configuration method, device and storage medium | |
| CN107179918B (en) | Software processing method, device and system | |
| CN109962972B (en) | A kind of offline packet reassembly method and system | |
| CN108595335B (en) | Test environment deployment method, deployment device and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | Effective date of registration:20220818 Address after:No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science and Technology Park, High-tech Zone, Binhai New District, Tianjin 300000 Patentee after:3600 Technology Group Co.,Ltd. Address before:100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before:BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before:Qizhi software (Beijing) Co.,Ltd. | |
| TR01 | Transfer of patent right |