CN104899025A - Method and device for generating channel package - Google Patents

Method and device for generating channel package Download PDF

Info

Publication number
CN104899025A
CN104899025A CN201510254521.4A CN201510254521A CN104899025A CN 104899025 A CN104899025 A CN 104899025A CN 201510254521 A CN201510254521 A CN 201510254521A CN 104899025 A CN104899025 A CN 104899025A
Authority
CN
China
Prior art keywords
channel
installation kit
file
channel number
mark
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
CN201510254521.4A
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 Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510254521.4A priority Critical patent/CN104899025A/en
Publication of CN104899025A publication Critical patent/CN104899025A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and device for generating a channel package. The method comprises the steps: analyzing information amount of respective parts in an installation package of an application program to obtain at least a part of information with the information amount being lower than a threshold value, judging whether respective obtained parts need signature authentication or not, determining respective parts with a no judging result, selecting at least a part from determined respective parts and writing a channel number into at least one selected part to obtain the channel package. According to an embodiment of the invention, the data part without the need of signature authentication is selected from files of the installation package of the application program and is added with the channel number, and the channel package is generated. Through this manner, repetitive signature operation is not needed when the channel package is generated, calculation pressure of a server is reduced, time for generating the channel package is effectively saved and the channel package generating efficiency is improved.

Description

A kind of method and apparatus generating channel bag
Technical field
The present invention relates to computer realm, be specifically related to a kind of method and apparatus generating channel bag.
Background technology
At present, there is multiple application market in field of mobile terminals, such as 360 mobile phone assistants etc., for distributing the installation kit of various application, user downloads and installs bag by these application markets and carries out application program installation.In order to the installation kit of statistics application program is in the effect (such as active number, lower odd number etc.) of these application markets, need one identify unique mark they.
Current employing be designated channel number, each channel number unique mark application market, such as, the channel number of 360 mobile phone assistants can be " qihoo360 ".Generally, software developer, after completing a Develop Application System, can add channel number in installation kit.Or application market, in order to add up its distribution situation to installation kit, add channel number in the installation kit also can issued at it, obtain channel bag.
At present in android system, the installation kit of application program is unified adopts apk installation kit, for this kind of installation kit, usually can select, insert channel number in AndroidManifest.xml wherein.But according to the definition of Android for installation kit, after AndroidManifest.xml is modified, signature computing must be re-started to whole installation kit.
Because the computation process of computing of signing is more complicated, generating the consuming time longer of channel bag.The signature computing of average to an installation kit probably needs 5 seconds, and application market needs to carry out signature computing to ten hundreds of installation kits usually, then need the long period, affect the issue for channel bag.
Therefore, the generation method length consuming time of current channel bag, efficiency is lower.
Summary of the invention
In view of the above problems, propose the present invention in case provide a kind of overcome the problems referred to above or solve the problem at least in part a kind of generate channel bag method and correspondingly device.
According to one aspect of the present invention, a kind of method generating channel bag is provided, comprises:
Resolve the quantity of information that comprises of each several part in the installation kit of application program, obtain wherein quantity of information lower than at least one part of threshold value;
The each several part obtained described in judgement, the need of signature authentication, determines each several part that wherein judged result is no;
At least one part is selected in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag.
Alternatively, the quantity of information that in the installation kit of described parsing application program, each several part comprises, obtains wherein quantity of information and, lower than at least one part of threshold value, comprising:
Described installation kit is decompressed, utilizes the file compressed in installation kit;
Resolving described file is multiple part, and analyzes the quantity of information obtaining and comprise in each several part, and wherein, described quantity of information refers to the useful information that can obtain according to file parts content;
Compare the quantity of information of each several part and described threshold value, obtain comparative result;
Quantity of information at least one part lower than threshold value is determined according to comparative result.
Alternatively, describedly in the described each several part determined, select at least one part, and at described at least one partial write channel selected number to obtain channel bag, comprising:
The partial write channel number of signature authentication is not needed in the catalogue of the installation kit after decompress(ion);
The whole catalogue of the installation kit after write channel number is compressed again and obtains channel bag.
Alternatively, do not need the partial write channel number of signature authentication in the catalogue of described installation kit after decompress(ion), comprising:
A newly-built empty folder in specified folder in installation kit after decompress(ion), and the title of combination as this empty folder using channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified folder is META-INF file.
Alternatively, do not need the partial write channel number of signature authentication in the catalogue of described installation kit after decompress(ion), comprising:
In installation kit after decompress(ion), the specific field of the end of file of specified file writes channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified file is any one file in described installation kit, and described specific field is extended field or comment field.
Alternatively, after not needing the partial write channel number of signature authentication in the catalogue of described installation kit after decompress(ion), described method also comprises:
The side-play amount of described specific field is revised according to the length of the channel mark of said write and channel number.
Alternatively, after the length of the described channel mark according to said write and channel number revises the side-play amount of described specific field, described method also comprises:
The side-play amount of each file after described specified file is revised according to the length of the channel mark of said write and channel number.
Alternatively, describedly in the described each several part determined, select at least one part, and at described at least one partial write channel selected number to obtain channel bag, comprising:
At comment field write channel mark and the channel number of the end of file of described installation kit, obtain channel bag, described channel mark is for identifying described channel number.
Alternatively, after the comment field of the described end of file at described installation kit write channel mark and channel number, described method also comprises:
The side-play amount of described comment field is revised according to the length of the channel mark of said write and channel number.
Alternatively, described method also comprises:
Travel through described installation kit until find described channel mark, read described channel number according to described channel mark.
According to another aspect of the present invention, a kind of square law device generating channel bag is provided, comprises:
Installation kit parsing module, is suitable for resolving the quantity of information that comprises of each several part in the installation kit of application program, obtain wherein quantity of information lower than at least one part of threshold value;
Judge module, described in being suitable for judging, each several part that obtains is the need of signature authentication, determines each several part that wherein judged result is no;
Channel writing module, is suitable for selecting at least one part in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag.
Alternatively, described installation kit parsing module is suitable for resolving in the following manner the quantity of information that in the installation kit of application program, each several part comprises, obtain wherein quantity of information lower than at least one part of threshold value:
Described installation kit is decompressed, utilizes the file compressed in installation kit;
Resolving described file is multiple part, and analyzes the quantity of information obtaining and comprise in each several part, and wherein, described quantity of information refers to the useful information that can obtain according to file parts content;
Compare the quantity of information of each several part and described threshold value, obtain comparative result;
Quantity of information at least one part lower than threshold value is determined according to comparative result.
Alternatively, described channel writing module, comprising:
Channel writing unit, is suitable for the partial write channel number not needing signature authentication in the catalogue of the installation kit after decompress(ion);
Compression unit, the whole catalogue being suitable for the installation kit after to write channel number is again compressed and is obtained channel bag.
Alternatively, the partial write channel number of signature authentication is not needed in the catalogue that described channel writing unit is specifically suitable for according to the installation kit of following form after decompress(ion):
A newly-built empty folder in specified folder in installation kit after decompress(ion), and the title of combination as this empty folder using channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified folder is META-INF file.
Alternatively, the partial write channel number of signature authentication is not needed in the catalogue that described channel writing unit is specifically suitable for according to the installation kit of following form after decompress(ion):
In installation kit after decompress(ion), the specific field of the end of file of specified file writes channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified file is any one file in described installation kit, and described specific field is extended field or comment field.
Alternatively, described device also comprises:
First side-play amount arranges module, after being suitable for not needing in the catalogue of the installation kit after decompress(ion) the partial write channel number of signature authentication, revises the side-play amount of described specific field according to the length of the channel mark of said write and channel number.
Alternatively, described device also comprises:
Second side-play amount arranges module, be suitable for after revising the side-play amount of described specific field according to the length of the channel mark of said write and channel number, revise the side-play amount of each file after described specified file according to the length of the channel mark of said write and channel number.
Alternatively, described channel writing module is specifically suitable in the described each several part determined, selecting at least one part in the following manner, and at described at least one partial write channel selected number to obtain channel bag:
At comment field write channel mark and the channel number of the end of file of described installation kit, described channel mark is for identifying described channel number.
Alternatively, described device also comprises:
3rd side-play amount arranges module, is suitable for after the comment field write channel mark and channel number of the end of file of described installation kit, revises the side-play amount of described comment field according to the length of the channel mark of said write and channel number.
Alternatively, described device also comprises:
Read module, is suitable for traveling through described installation kit until find described channel mark, reads described channel number according to described channel mark.
Embodiments provide a kind of method and apparatus generating channel bag, choose in application program installation kit file and do not need the data division of signature authentication to add channel number, and generate channel bag.By this kind of mode, can making not need when generating channel bag to repeat computing of signing again, reducing the calculating pressure of server, and effective saving generates the time of channel bag, promotes the efficiency generating channel bag.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
According to hereafter by reference to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram generating channel bag that one embodiment of the invention provides;
Fig. 2 is a kind of concrete grammar process flow diagram generating channel bag that one embodiment of the invention provides;
Fig. 3 is a kind of apparatus structure block diagram generating channel bag that one embodiment of the invention provides.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiment one
Embodiments provide a kind of method generating channel bag.It can be implemented on server or development machines by application program, such as, can be PC computer etc.
Fig. 1 is a kind of method flow diagram generating channel bag that the embodiment of the present invention provides.The method specifically comprises step S102 to step S106.
S102: resolve the quantity of information that comprises of each several part in the installation kit of application program, obtain wherein quantity of information lower than at least one part of threshold value.
S104: each several part obtained described in judgement, the need of signature authentication, determines each several part that wherein judged result is no.
S106: select at least one part in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag.
Embodiments provide a kind of method generating channel bag, choose in application program installation kit file and do not need the data division of signature authentication to add channel number, and generate channel bag.By this kind of mode, can making not need when generating channel bag to repeat computing of signing again, reducing the calculating pressure of server, and effective saving generates the time of channel bag, promotes the efficiency generating channel bag.
Embodiment two
The present embodiment is a kind of embody rule scene of above-described embodiment one, by the present embodiment, can set forth method provided by the present invention clearly, particularly.
Fig. 2 is a kind of concrete grammar process flow diagram generating channel bag that the embodiment of the present invention provides, the method comprising the steps of S201 to S204.
Step S201, obtains the installation kit of application program.
In the present embodiment, the obtain manner of installation kit can be obtained by the developer of each installation kit.Under normal circumstances, application market is responsible for application programs as channel and is distributed, and for the upgrading of the installation kit of application program, the developer of installation kit can send the installation kit file of latest edition to the operator of application market.
Except above-mentioned obtain manner, the installation kit file of application program also can be obtained by Internet channel download by the operator of application market.The installation kit of the application program this time obtained, the installation kit of the application program of master that best is, does not namely write any channel number.
After the installation kit of the program of being applied, perform step S202, in installation kit, choose the position of channel to be written number.
In the present embodiment, be described for the installation kit under Android operation system, under Android operation system, installation kit adopts JAVA exploitation, Google is for the definition of installation kit, application program is after exploitation completes, and installation kit should adopt zip or rar agreement to compress, and has carried out signing regulation to data division wherein.
Wherein, in order to prevent illegally being distorted, the major part of file all needs to perform signature computing.And Google do not specify must certifying signature to total data, such as wherein quantity of information, all can as the position of write channel number lower than the part of threshold value.
In the present embodiment, need by choosing the position write channel number not needing to sign in installation kit, to avoid the signature computing needing when generating channel bag again to perform.Wherein, the method for the position of channel to be written number is included, but are not limited to choose in installation kit as follows in the present embodiment:
(1) first method:
Installation kit is decompressed, obtains the catalogue after decompressing, and a newly-built empty folder in specified folder wherein, the name of this empty file is referred to as the position of write channel number.
For first method, installation kit can be decompressed by zip or rar agreement, obtain the file directory after decompressing, in installation kit after decompression, comprise META-IF file, res file, AndroidManfest.xml file, classes.dex file etc.
Wherein, specify in the agreement of Android, empty folder under META-IF file does not need to do signature computing, therefore, a newly-built empty folder under this file can be selected, using the position of its name as write channel number, thus avoid again carrying out signature calculation to all files of installation kit.
Therefore, preferably in the present embodiment, specified folder is META-INF file.
(2) second method:
Installation kit is decompressed, obtains the catalogue after decompressing, and using the position of the specific field of the end of file of specified file as write channel number.
For second method, after each file after decompress(ion) in installation kit, all carry an extended field (extruefield field) and a comment field (comment field), specify not need to carry out signature computing to extended field or comment field in the agreement of Android.
Therefore, in the present embodiment, specified file can be any one file in the installation kit after decompress(ion), and specific field is extended field or comment field.
(3) the third method:
Using the position of the comment field of the end of file of installation kit as write channel number.
For the third method, there is a comment field at the last end of installation kit of Android, this field is the side-play amount of installation kit, and the source code of resolving installation kit does not utilize this field, therefore so this field can be used for plug information, and do not need signature again, as the position of write channel number.
After choosing the position obtaining writing channel number, perform step S203, the position write channel number chosen.
Wherein, channel number is for identifying the application market of this application program of distribution, and for each application market, its channel number must follow corresponding regulation, so that can be identified after application program is installed.Such as, the channel number of mobile phone bodyguard can be " mobilesafe ", and the channel number of security guard can be " 360safe ", and uses a channel number mark to identify channel number.
Such as, adding the mode of channel number, can be add following field:
“Channel_mobilesafe”
In the present embodiment, by the combination of above-mentioned channel number mark+channel number, to mark the source of the installation kit of this application program.
After write channel number, perform step S204, the side-play amount in amendment installation kit obtains channel bag.
Wherein, after write channel number, because content increases, cause the information in installation kit to change, need to revise the side-play amount in installation kit.
It should be noted that, when choosing the position of different positions as write channel number in step S202, the mode of amendment side-play amount is also different.
In the present embodiment, when choosing the position of channel to be written number for adopting the second method described in above-mentioned steps S202 in installation kit, the mode of amendment side-play amount can be carried out as follows:
When channel number writes on the end of specified file, according to the side-play amount of the length amendment specific field of write channel mark and channel number, meanwhile, the side-play amount of each file after specified file also needs to modify according to the length of write channel mark and channel number.
When channel number writes on the end of file of installation kit, only need according to the side-play amount of the length amendment comment field of write channel mark and channel number.
Further, after generation channel bag, when channel bag is installed in an operating system, following operation is also comprised:
Traversal installation kit, until find channel mark, reads channel number according to channel mark.
Embodiments provide a kind of method generating channel bag, choose in application program installation kit file and do not need the data division of signature authentication to add channel number, and generate channel bag.By this kind of mode, can making not need when generating channel bag to repeat computing of signing again, reducing the calculating pressure of server, and effective saving generates the time of channel bag, promotes the efficiency generating channel bag.
Embodiment three
Fig. 3 is a kind of structured flowchart generating the device of channel bag that one embodiment of the invention provides, and this device 300 comprises:
Installation kit parsing module 310, is suitable for resolving the quantity of information that comprises of each several part in the installation kit of application program, obtain wherein quantity of information lower than at least one part of threshold value;
Judge module 320, is suitable for judging that each several part obtained above is the need of signature authentication, determines each several part that wherein judged result is no;
Channel writing module 330, is suitable for selecting at least one part in the above-mentioned each several part determined, and at above-mentioned at least one partial write channel selected number to obtain channel bag.
Alternatively, above-mentioned installation kit parsing module 310 is suitable for resolving in the following manner the quantity of information that in the installation kit of application program, each several part comprises, obtain wherein quantity of information lower than at least one part of threshold value:
Above-mentioned installation kit is decompressed, utilizes the file compressed in installation kit;
Resolving above-mentioned file is multiple part, and analyzes the quantity of information obtaining and comprise in each several part, and wherein, above-mentioned quantity of information refers to the useful information that can obtain according to file parts content;
Compare the quantity of information of each several part and above-mentioned threshold value, obtain comparative result;
Quantity of information at least one part lower than threshold value is determined according to comparative result.
Alternatively, above-mentioned channel writing module 330, comprising:
Channel writing unit 331, is suitable for the partial write channel number not needing signature authentication in the catalogue of the installation kit after decompress(ion);
Compression unit 332, the whole catalogue being suitable for the installation kit after to write channel number is again compressed and is obtained channel bag.
Alternatively, the partial write channel number of signature authentication is not needed in the catalogue that above-mentioned channel writing unit 331 is specifically suitable for according to the installation kit of following form after decompress(ion):
A newly-built empty folder in specified folder in installation kit after decompress(ion), and the title of combination as this empty folder using channel mark and channel number;
Wherein, above-mentioned channel mark is for identifying above-mentioned channel number, and above-mentioned specified folder is META-INF file.
Alternatively, the partial write channel number of signature authentication is not needed in the catalogue that above-mentioned channel writing unit 331 is specifically suitable for according to the installation kit of following form after decompress(ion):
In installation kit after decompress(ion), the specific field of the end of file of specified file writes channel mark and channel number;
Wherein, above-mentioned channel mark is for identifying above-mentioned channel number, and above-mentioned specified file is any one file in above-mentioned installation kit, and above-mentioned specific field is extended field or comment field.
Alternatively, this device 300 also comprises:
First side-play amount arranges module 340, after being suitable for not needing in the catalogue of the installation kit after decompress(ion) the partial write channel number of signature authentication, revises the side-play amount of above-mentioned specific field according to the length of the channel mark of above-mentioned write and channel number.
Alternatively, this device 300 also comprises:
Second side-play amount arranges module 350, be suitable for after revising the side-play amount of above-mentioned specific field according to the length of the channel mark of above-mentioned write and channel number, revise the side-play amount of each file after above-mentioned specified file according to the length of the channel mark of above-mentioned write and channel number.
Alternatively, above-mentioned channel writing module 330 is specifically suitable in the above-mentioned each several part determined, selecting at least one part in the following manner, and at above-mentioned at least one partial write channel selected number to obtain channel bag:
At comment field write channel mark and the channel number of the end of file of above-mentioned installation kit, above-mentioned channel mark is for identifying above-mentioned channel number.
Alternatively, this device 300 also comprises:
3rd side-play amount arranges module 360, is suitable for after the comment field write channel mark and channel number of the end of file of above-mentioned installation kit, revises the side-play amount of above-mentioned comment field according to the length of the channel mark of above-mentioned write and channel number.
Alternatively, this device 300 also comprises:
Read module 370, is suitable for traveling through above-mentioned installation kit until find above-mentioned channel mark, reads above-mentioned channel number according to above-mentioned channel mark.
Embodiments provide a kind of device generating channel bag, choose in application program installation kit file and do not need the data division of signature authentication to add channel number, and generate channel bag.By this kind of mode, can making not need when generating channel bag to repeat computing of signing again, reducing the calculating pressure of server, and effective saving generates the time of channel bag, promotes the efficiency generating channel bag.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in detail in the claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the device of the generation channel bag of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, although multiple exemplary embodiment of the present invention is illustrate and described herein detailed, but, without departing from the spirit and scope of the present invention, still can directly determine or derive other modification many or amendment of meeting the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or amendments.
The embodiment of the present invention additionally provides the method that A1. mono-kind generates channel bag, comprising:
Resolve the quantity of information that comprises of each several part in the installation kit of application program, obtain wherein quantity of information lower than at least one part of threshold value;
The each several part obtained described in judgement, the need of signature authentication, determines each several part that wherein judged result is no;
At least one part is selected in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag.
A2. the method according to A1, wherein, the quantity of information that in the installation kit of described parsing application program, each several part comprises, obtains wherein quantity of information and, lower than at least one part of threshold value, comprising:
Described installation kit is decompressed, utilizes the file compressed in installation kit;
Resolving described file is multiple part, and analyzes the quantity of information obtaining and comprise in each several part, and wherein, described quantity of information refers to the useful information that can obtain according to file parts content;
Compare the quantity of information of each several part and described threshold value, obtain comparative result;
Quantity of information at least one part lower than threshold value is determined according to comparative result.
A3. the method according to A2, wherein, describedly selects at least one part in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag, comprising:
The partial write channel number of signature authentication is not needed in the catalogue of the installation kit after decompress(ion);
The whole catalogue of the installation kit after write channel number is compressed again and obtains channel bag.
A4. the method according to A3, wherein, does not need the partial write channel number of signature authentication, comprising in the catalogue of described installation kit after decompress(ion):
A newly-built empty folder in specified folder in installation kit after decompress(ion), and the title of combination as this empty folder using channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified folder is META-INF file.
A5. the method according to A3, wherein, does not need the partial write channel number of signature authentication, comprising in the catalogue of described installation kit after decompress(ion):
In installation kit after decompress(ion), the specific field of the end of file of specified file writes channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified file is any one file in described installation kit, and described specific field is extended field or comment field.
A6. the method according to A5, wherein, after not needing the partial write channel number of signature authentication in the catalogue of described installation kit after decompress(ion), described method also comprises:
The side-play amount of described specific field is revised according to the length of the channel mark of said write and channel number.
A7. the method according to A6, wherein, after the length of the described channel mark according to said write and channel number revises the side-play amount of described specific field, described method also comprises:
The side-play amount of each file after described specified file is revised according to the length of the channel mark of said write and channel number.
A8. the method according to A1, wherein, describedly selects at least one part in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag, comprising:
At comment field write channel mark and the channel number of the end of file of described installation kit, obtain channel bag, described channel mark is for identifying described channel number.
A9. the method according to A8, wherein, after the comment field of the described end of file at described installation kit write channel mark and channel number, described method also comprises:
The side-play amount of described comment field is revised according to the length of the channel mark of said write and channel number.
A10. the method according to any one of A3 to A9, wherein, described method also comprises:
Travel through described installation kit until find described channel mark, read described channel number according to described channel mark.
The embodiment of the present invention additionally provides the device that B11. mono-kind generates channel bag, comprising:
Installation kit parsing module, is suitable for resolving the quantity of information that comprises of each several part in the installation kit of application program, obtain wherein quantity of information lower than at least one part of threshold value;
Judge module, described in being suitable for judging, each several part that obtains is the need of signature authentication, determines each several part that wherein judged result is no;
Channel writing module, is suitable for selecting at least one part in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag.
B12. the device according to B11, wherein, described installation kit parsing module is suitable for resolving in the following manner the quantity of information that in the installation kit of application program, each several part comprises, obtain wherein quantity of information lower than at least one part of threshold value:
Described installation kit is decompressed, utilizes the file compressed in installation kit;
Resolving described file is multiple part, and analyzes the quantity of information obtaining and comprise in each several part, and wherein, described quantity of information refers to the useful information that can obtain according to file parts content;
Compare the quantity of information of each several part and described threshold value, obtain comparative result;
Quantity of information at least one part lower than threshold value is determined according to comparative result.
B13. the device according to B12, wherein, described channel writing module, comprising:
Channel writing unit, is suitable for the partial write channel number not needing signature authentication in the catalogue of the installation kit after decompress(ion);
Compression unit, the whole catalogue being suitable for the installation kit after to write channel number is again compressed and is obtained channel bag.
B14. the device according to B13, wherein, described channel writing unit is specifically suitable for the partial write channel number not needing signature authentication in the catalogue according to the installation kit of following form after decompress(ion):
A newly-built empty folder in specified folder in installation kit after decompress(ion), and the title of combination as this empty folder using channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified folder is META-INF file.
B15. the device according to B13, wherein, described channel writing unit is specifically suitable for the partial write channel number not needing signature authentication in the catalogue according to the installation kit of following form after decompress(ion):
In installation kit after decompress(ion), the specific field of the end of file of specified file writes channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified file is any one file in described installation kit, and described specific field is extended field or comment field.
B16. the device according to B15, wherein, described device also comprises:
First side-play amount arranges module, after being suitable for not needing in the catalogue of the installation kit after decompress(ion) the partial write channel number of signature authentication, revises the side-play amount of described specific field according to the length of the channel mark of said write and channel number.
B17. the device according to B16, wherein, described device also comprises:
Second side-play amount arranges module, be suitable for after revising the side-play amount of described specific field according to the length of the channel mark of said write and channel number, revise the side-play amount of each file after described specified file according to the length of the channel mark of said write and channel number.
B18. the device according to B11, wherein, described channel writing module is specifically suitable in the described each several part determined, selecting at least one part in the following manner, and at described at least one partial write channel selected number to obtain channel bag:
At comment field write channel mark and the channel number of the end of file of described installation kit, described channel mark is for identifying described channel number.
B19. the device according to B18, wherein, described device also comprises:
3rd side-play amount arranges module, is suitable for after the comment field write channel mark and channel number of the end of file of described installation kit, revises the side-play amount of described comment field according to the length of the channel mark of said write and channel number.
B20. the device according to any one of B13 to B19, wherein, described device also comprises:
Read module, is suitable for traveling through described installation kit until find described channel mark, reads described channel number according to described channel mark.

Claims (10)

1. generate a method for channel bag, comprising:
Resolve the quantity of information that comprises of each several part in the installation kit of application program, obtain wherein quantity of information lower than at least one part of threshold value;
The each several part obtained described in judgement, the need of signature authentication, determines each several part that wherein judged result is no;
At least one part is selected in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag.
2. method according to claim 1, wherein, the quantity of information that in the installation kit of described parsing application program, each several part comprises, obtains wherein quantity of information and, lower than at least one part of threshold value, comprising:
Described installation kit is decompressed, utilizes the file compressed in installation kit;
Resolving described file is multiple part, and analyzes the quantity of information obtaining and comprise in each several part, and wherein, described quantity of information refers to the useful information that can obtain according to file parts content;
Compare the quantity of information of each several part and described threshold value, obtain comparative result;
Quantity of information at least one part lower than threshold value is determined according to comparative result.
3. method according to claim 2, wherein, describedly selects at least one part in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag, comprising:
The partial write channel number of signature authentication is not needed in the catalogue of the installation kit after decompress(ion);
The whole catalogue of the installation kit after write channel number is compressed again and obtains channel bag.
4. method according to claim 3, wherein, does not need the partial write channel number of signature authentication, comprising in the catalogue of described installation kit after decompress(ion):
A newly-built empty folder in specified folder in installation kit after decompress(ion), and the title of combination as this empty folder using channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified folder is META-INF file.
5. method according to claim 3, wherein, does not need the partial write channel number of signature authentication, comprising in the catalogue of described installation kit after decompress(ion):
In installation kit after decompress(ion), the specific field of the end of file of specified file writes channel mark and channel number;
Wherein, described channel mark is for identifying described channel number, and described specified file is any one file in described installation kit, and described specific field is extended field or comment field.
6. method according to claim 5, wherein, after not needing the partial write channel number of signature authentication in the catalogue of described installation kit after decompress(ion), described method also comprises:
The side-play amount of described specific field is revised according to the length of the channel mark of said write and channel number.
7. method according to claim 6, wherein, after the length of the described channel mark according to said write and channel number revises the side-play amount of described specific field, described method also comprises:
The side-play amount of each file after described specified file is revised according to the length of the channel mark of said write and channel number.
8. method according to claim 1, wherein, describedly selects at least one part in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag, comprising:
At comment field write channel mark and the channel number of the end of file of described installation kit, obtain channel bag, described channel mark is for identifying described channel number.
9. method according to claim 8, wherein, after the comment field of the described end of file at described installation kit write channel mark and channel number, described method also comprises:
The side-play amount of described comment field is revised according to the length of the channel mark of said write and channel number.
10. generate a device for channel bag, comprising:
Installation kit parsing module, is suitable for resolving the quantity of information that comprises of each several part in the installation kit of application program, obtain wherein quantity of information lower than at least one part of threshold value;
Judge module, described in being suitable for judging, each several part that obtains is the need of signature authentication, determines each several part that wherein judged result is no;
Channel writing module, is suitable for selecting at least one part in the described each several part determined, and at described at least one partial write channel selected number to obtain channel bag.
CN201510254521.4A 2015-05-18 2015-05-18 Method and device for generating channel package Pending CN104899025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510254521.4A CN104899025A (en) 2015-05-18 2015-05-18 Method and device for generating channel package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510254521.4A CN104899025A (en) 2015-05-18 2015-05-18 Method and device for generating channel package

Publications (1)

Publication Number Publication Date
CN104899025A true CN104899025A (en) 2015-09-09

Family

ID=54031703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510254521.4A Pending CN104899025A (en) 2015-05-18 2015-05-18 Method and device for generating channel package

Country Status (1)

Country Link
CN (1) CN104899025A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516299A (en) * 2015-12-04 2016-04-20 北京卓易讯畅科技有限公司 Installation file packaging method and device and installation file distribution method and system
CN105955775A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Application program installation package push method and device
CN106126205A (en) * 2016-06-14 2016-11-16 武汉斗鱼网络科技有限公司 The rapid batch of a kind of Android program installation kit generates method and system
CN106534365A (en) * 2016-12-16 2017-03-22 广州四三九九信息科技有限公司 Method and device for determining channel information
CN106648643A (en) * 2016-12-12 2017-05-10 北京三快在线科技有限公司 Method and device for generating channel package, terminal and server
CN106775643A (en) * 2016-11-22 2017-05-31 武汉斗鱼网络科技有限公司 A kind of application file packaging system and method with channel data
CN106775916A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN106843909A (en) * 2017-03-07 2017-06-13 东软集团股份有限公司 Support the channel packaging method and device of channel customization
CN106909404A (en) * 2015-12-22 2017-06-30 博雅网络游戏开发(深圳)有限公司 Oftware updating method and system
CN107994993A (en) * 2017-11-21 2018-05-04 北京奇虎科技有限公司 Application program detection method and device
CN108280341A (en) * 2016-12-30 2018-07-13 腾讯科技(深圳)有限公司 Channel number addition, installation kit method of calibration and device
CN109213497A (en) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 A kind of moving game channel packet generation method and device
CN109298869A (en) * 2018-08-23 2019-02-01 武汉斗鱼网络科技有限公司 A kind of generation method and relevant apparatus of target channel packet
CN110401717A (en) * 2019-07-26 2019-11-01 上海优扬新媒信息技术有限公司 A kind of application program installation kit generation method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036678A (en) * 2011-09-29 2013-04-10 北京新媒传信科技有限公司 Symbian signature application authentication method and system
CN103729186A (en) * 2013-12-31 2014-04-16 上海网达软件股份有限公司 Method for generating multi-channel apk file packages in batches
CN104346167A (en) * 2014-08-25 2015-02-11 腾讯科技(深圳)有限公司 Method and device for generating application channel package

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036678A (en) * 2011-09-29 2013-04-10 北京新媒传信科技有限公司 Symbian signature application authentication method and system
CN103729186A (en) * 2013-12-31 2014-04-16 上海网达软件股份有限公司 Method for generating multi-channel apk file packages in batches
CN104346167A (en) * 2014-08-25 2015-02-11 腾讯科技(深圳)有限公司 Method and device for generating application channel package

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516299A (en) * 2015-12-04 2016-04-20 北京卓易讯畅科技有限公司 Installation file packaging method and device and installation file distribution method and system
CN106909404A (en) * 2015-12-22 2017-06-30 博雅网络游戏开发(深圳)有限公司 Oftware updating method and system
CN105955775A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Application program installation package push method and device
CN106126205A (en) * 2016-06-14 2016-11-16 武汉斗鱼网络科技有限公司 The rapid batch of a kind of Android program installation kit generates method and system
CN106775643B (en) * 2016-11-22 2020-03-17 武汉斗鱼网络科技有限公司 Application file packaging system and method with channel data
CN106775643A (en) * 2016-11-22 2017-05-31 武汉斗鱼网络科技有限公司 A kind of application file packaging system and method with channel data
CN106648643A (en) * 2016-12-12 2017-05-10 北京三快在线科技有限公司 Method and device for generating channel package, terminal and server
CN106534365A (en) * 2016-12-16 2017-03-22 广州四三九九信息科技有限公司 Method and device for determining channel information
CN108280341A (en) * 2016-12-30 2018-07-13 腾讯科技(深圳)有限公司 Channel number addition, installation kit method of calibration and device
CN108280341B (en) * 2016-12-30 2020-06-30 腾讯科技(深圳)有限公司 Channel number adding and installation package checking method and device
CN106775916A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN106843909A (en) * 2017-03-07 2017-06-13 东软集团股份有限公司 Support the channel packaging method and device of channel customization
CN109213497A (en) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 A kind of moving game channel packet generation method and device
CN107994993A (en) * 2017-11-21 2018-05-04 北京奇虎科技有限公司 Application program detection method and device
CN107994993B (en) * 2017-11-21 2021-10-08 北京奇虎科技有限公司 Application program detection method and device
CN109298869A (en) * 2018-08-23 2019-02-01 武汉斗鱼网络科技有限公司 A kind of generation method and relevant apparatus of target channel packet
CN110401717A (en) * 2019-07-26 2019-11-01 上海优扬新媒信息技术有限公司 A kind of application program installation kit generation method and device

Similar Documents

Publication Publication Date Title
CN104899025A (en) Method and device for generating channel package
US9274769B1 (en) Table of contents pointer value save and restore placeholder positioning
CN109491695B (en) Incremental updating method for integrated android application
US9146715B1 (en) Suppression of table of contents save actions
CN102289378B (en) Method for automatically generating APP (Application)
CN107168749B (en) Compiling method, device, equipment and computer readable storage medium
CN104731625A (en) Method, device and mobile terminal for loading plugin
CN105045631A (en) Method and device for upgrading client-side applications
CN103647816A (en) Method and device for upgrading application software
CN111090433A (en) Data processing method, device and storage medium
CN109976793B (en) Application program running method, device, equipment and medium
CN106775781B (en) Method and device for reducing application installation packages and electronic equipment
CN111176717A (en) Method and device for generating installation package and electronic equipment
CN104731622A (en) Application program loading method and device and mobile terminal
CN109933350A (en) The method, apparatus and electronic equipment of embedded code in the application
CN108694049B (en) Method and equipment for updating software
CN111273942A (en) Code generation method, storage medium, electronic device and system
CN112732321A (en) Firmware modification method and device, computer readable storage medium and equipment
US10747514B2 (en) Reduced save and restore instructions for call-clobbered registers
CN109446754A (en) The guard method of algorithm, device, equipment and storage medium in intelligent contract
CN103379145B (en) The method, apparatus and system of information processing
CN111435312A (en) Application program management method and device and electronic equipment
CN106775916B (en) Method and device for reducing application installation packages and electronic equipment
CN110941443B (en) Method and device for modifying file name in SDK (software development kit) and electronic equipment
CN113641389B (en) Software upgrading method, device and equipment based on OpenCPU

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150909