CN104346167B - The method and device of channel bag is applied in generation - Google Patents
The method and device of channel bag is applied in generation Download PDFInfo
- Publication number
- CN104346167B CN104346167B CN201410421600.5A CN201410421600A CN104346167B CN 104346167 B CN104346167 B CN 104346167B CN 201410421600 A CN201410421600 A CN 201410421600A CN 104346167 B CN104346167 B CN 104346167B
- Authority
- CN
- China
- Prior art keywords
- application
- installation package
- package file
- file
- identities
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method and device generated using channel bag, belong to mobile Internet field.The described method includes:Obtain original application installation package file;Into the specified region of the original application installation package file, write-in obtains corresponding application channel bag, the specified region will not cause the original checksums information of the original application installation package file to fail using the identification information of distribution platform.Described device includes:First acquisition module and writing module.The present invention manually generates the formation efficiency using channel bag, improved using channel bag for different without application developer using distribution platform.Further, since directly generated using channel bag in application distribution platform, so, manually generate without application developer and uploaded manually again afterwards using channel bag, it is easy to operate, a large amount of communications and management cost have also been saved using distribution platform, has improved the efficiency using distribution.
Description
Technical field
The present invention relates to mobile Internet field, more particularly to a kind of method and device generated using channel bag.
Background technology
With the fast development of internet, there are more and more applications.Application developer is in order to expand under application
Carrying capacity and activation amount, are often distributed and promote by application distribution platform (as using precious, mobile phone assistant).However,
Before being distributed and promote using distribution platform, it is necessary to by the APK of the application (Android Application Package,
Android application installation package) file packs, and channel bag is applied in generation.Subsequent user can be downloaded from this using distribution platform should
Installed using channel bag.
At present, when application developer goes out new function to the application and development promoted on application distribution platform, latest edition is generated
This APK file, can include AndroidManifest.xml (program global configuration) file in the APK file, at this
Channel title is configured with AndroidManifest.xml files.When application developer is distributed and promoted to application distribution platform
It is somebody's turn to do in application, application developer is by ant scripts, by the property value of the channel title in AndroidManifest.xml files
Replace with the channel mark for applying distribution platform.Finally, by ant scripts, which is packed, generation application
Channel bag.
In the implementation of the present invention, inventor has found that the prior art has at least the following problems:
Since the process of above-mentioned generation application channel bag is manually completed by application developer, and when the application is distributed to
During multiple application distribution platforms, application developer needs to manually generate multiple application channel bags according to the method described above, reduces
Using the formation efficiency of channel bag.In addition, after channel bag is applied in generation, application developer also needs to manually apply channel
Wrap pass to it is corresponding apply distribution platform, however, when using distribution platform do not support that application developer uploads when also need to should
Manually uploaded with the administrator of distribution platform, it is cumbersome, significantly reduce the efficiency using distribution.
The content of the invention
In order to solve problem of the prior art, an embodiment of the present invention provides a kind of method and dress generated using channel bag
Put.The technical solution is as follows:
On the one hand, there is provided a kind of method generated using channel bag, the described method includes:
Obtain original application installation package file;
Into the specified region of the original application installation package file, write-in obtains pair using the identification information of distribution platform
That answers applies channel bag, and the specified region will not cause the check information of the original application installation package file to fail.
On the other hand, there is provided a kind of device generated using channel bag, described device include:
First acquisition module, for obtaining original application installation package file;
Writing module, for writing the mark using distribution platform into the specified region of the original application installation package file
Know information, obtain corresponding application channel bag, the specified region will not cause the verification of the original application installation package file
Information fails.
In embodiments of the present invention, developer need to only upload to original application installation package file using in distribution platform.
The mark using distribution platform can be automatically write into the specified region of the original application installation package file using distribution platform
Know information, be applied channel bag.Manually generated without application developer for different using distribution platform using channel
Bag, improves the formation efficiency using channel bag.Further, since it is directly to be generated in application distribution platform using channel bag
, so, manually generate without application developer and uploaded manually again afterwards using channel bag, it is easy to operate, improve
Using the efficiency of distribution.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is a kind of Organization Chart generated using channel bag provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram generated using channel bag provided in an embodiment of the present invention;
Fig. 3 is method flow diagram of another generation provided in an embodiment of the present invention using channel bag;
Fig. 4 is a kind of apparatus structure schematic diagram generated using channel bag provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is a kind of system architecture diagram for generating channel bag provided in an embodiment of the present invention.Fig. 1 includes developer's correspondence
Second terminal, application server, using distribution platform and the corresponding first terminal of user.Application server is developed for developer
The corresponding server of application, and between second terminal and application server pass through network connection, second terminal with application distribute
By network connection between platform, using passing through network connection between distribution platform and first terminal.When developer develops newly
During the application installation package file of version, application developer can be deposited the application installation package file of the new version by second terminal
Store up in application server, furthermore it is also possible to upload to using distribution platform, the answering based on the new version using distribution platform
Channel bag is applied with installation package file generation is corresponding, and this is applied into the corresponding client of distribution platform using channel bag at this
In be shown, to promote the application.Wherein, when installing the client corresponding using distribution platform in first terminal, the
One terminal can send download request by the client to application distribution platform, to download the application using distribution platform from this
Channel bag, the application is installed based on this using channel bag.In addition, in embodiments of the present invention, can also be by the application in Fig. 1 point
Hair platform is divided into bag management server, content management server and channel bag generation server, and bag management server, content
Management server and channel bag generation server can be different servers, or different function on same server
Module.The embodiment of the present invention is not specifically limited this.
Fig. 2 is a kind of method flow diagram generated using channel bag provided in an embodiment of the present invention.The execution master of this method
Body is using distribution platform.Referring to Fig. 2, this method includes:
Step 201:Obtain original application installation package file.
Step 202:Into the specified region of original application installation package file, write-in is obtained using the identification information of distribution platform
To corresponding application channel bag, specified region will not cause the check information of original application installation package file to fail.
In embodiments of the present invention, developer need to only upload to original application installation package file using in distribution platform.
Using distribution platform can automatically into the original application installation package file, write-in using the identification information of distribution platform, obtains
Using channel bag.Manually generated without application developer for different using distribution platform using channel bag, improving should
With the formation efficiency of channel bag.Further, since using channel bag directly application distribution platform in generate, so, also without
Need application developer to manually generate to be uploaded manually again afterwards using channel bag, it is easy to operate, improve the effect using distribution
Rate.
Alternatively, original application installation package file is obtained, including:
Monitoring file upload request, application identities, application version information and application installation are carried in this document upload request
APMB package;
According to the application identities and the application version information, judge the application installation package file whether be new version application
Installation package file;
If the application installation package file is the application installation package file of new version, this document upload request is carried
Application installation package file acquisition is original application installation package file.
Alternatively, according to the application identities and the application version information, judge whether the application installation package file is new edition
This application installation package file, including:
According to the application identities, lookup is corresponding from the correspondence between the application identities and application version information of storage
Application version information;
If corresponding application version information is found, and the application version information found is believed less than the application version
Breath, it is determined that the application installation package file is the application installation package file of new version;
If corresponding application version information is not found, it is determined that the application installation package file is the application of new version
Installation package file.
Alternatively, original application installation package file is obtained, including:
Monitor the application version in the correspondence between the application identities and application version information stored in application server
Whether this information changes;
If there is changed application version information, then sent to the application server and obtain request, it is described to obtain
Take in request and carry the corresponding application identities of changed application version information, the application is obtained according to described in request
The application identities of carrying, corresponding application is obtained from the correspondence between the application identities of storage and application installation package file
Installation package file;
It is when receiving the application installation package file that the application server is sent, the application installation package file of reception is true
It is set to original application installation package file.
Alternatively, into the original application installation package file, write-in using the identification information of distribution platform, obtains corresponding
After channel bag, further include:
According to the corresponding application identities of original application installation package file, between the application identities of storage and store path
Correspondence in search corresponding store path;
If finding corresponding store path, generation is replaced with using channel bag by being stored under the store path
Using channel bag;
If not finding corresponding store path, according to the corresponding application mark of the original application installation package file
Know, generate corresponding store path;
Generation is stored under the store path of generation using channel bag.
Alternatively, into the original application installation package file, write-in using the identification information of distribution platform, obtains corresponding
After channel bag, further include:
Obtain this apply channel bag attribute information, the attribute information include the original application installation package file it is corresponding should
With mark, this apply channel bag application version information, channel bag title and address information;
According to the corresponding application identities of original application installation package file and the attribute information, to the application identities of storage with
Corresponding attribute information is updated in correspondence between attribute information.
Alternatively, this method further includes:
The download request that first terminal is sent is received, the address information of intended application is carried in the download request,;
The application identities of the intended application are obtained from the address information;
According to the application identities of the intended application, obtained from the correspondence between the application identities of storage and store path
Take corresponding store path;
The first terminal is sent to using channel bag by being stored under the store path, the first terminal is based on the application
Channel bag installs the intended application.
Above-mentioned all optional technical solutions, can form the alternative embodiment of the present invention, herein no longer according to any combination
Repeat one by one.
Fig. 3 is method flow diagram of another generation provided in an embodiment of the present invention using channel bag.Implement in the present invention
In example, bag management server, content management server and channel bag generation server will be divided into using distribution platform to carry out
Explanation.Referring to Fig. 3, this method includes:
Step 301:Second terminal is sent to bag management server uploads file request, and being carried in the upload file request should
With mark, application version information and application installation package file.
Wherein, second terminal is the corresponding terminal of developer, second terminal can based on the fresh code that developer develops,
Generate application installation package file.
Wherein, it is what the application distributed in advance using distribution platform that application identities, which are, and the application identities can be to answer
Title, application numbers etc..Application version information can include the version number of the application, the icon etc. of the application.Using peace
Dress APMB package can be the new version application installation package file for the application promoted in application distribution platform, can also be first
In the application installation package file for the application that this is promoted using distribution platform, the embodiment of the present invention does not do this specific limit
It is fixed.
Step 302:When bag management server, which receives, uploads file request, this assures reason server storage application mark
Know the corresponding pass between the correspondence between application version information, and storage application identities and application installation package file
System.
Specifically, when bag management server receives the upload file request, bag management server is marked according to the application
Know, corresponding application version information is searched from the correspondence between the application identities and application version information of storage.If
Find corresponding application version information, then the application version information of lookup is replaced with carried in the upload file request should
Use version information.If corresponding application version information is not found, between application identities and application version information
A new directory is created in correspondence, and the application identities and application version information that are carried in the upload file request are stored
In the new directory.Similarly, bag management server is according to the application identities, from application identities and the application installation package file of storage
Between correspondence in search corresponding application installation package file., will if finding corresponding application installation package file
The application installation package file of lookup replaces with the application installation package file carried in the upload file request.If do not find
Corresponding application installation package file, then create a new mesh in the correspondence between application identities and application installation package file
Record, and the application identities carried in the upload file request and application installation package file are stored in the new directory.
Wherein, according to the above method, the application installation for the latest edition each applied only is stored in bag management server
APMB package and application version information, can mitigate the burden of bag management server.
Wherein, when the application installation package file that bag generation server determines to carry in this document upload request is new version
During application installation package file, notice request is sent to channel bag generation server.
Step 303:Channel bag generation server obtains original application installation package file.
Specifically, in embodiments of the present invention, channel bag generation server can obtain original application by two ways
Installation package file, including:
First way, the file upload request of bag management server monitoring reception, and according in this document upload request
Whether the application identities and application version information of carrying, the application installation package file for judging to carry in this document upload request are new
The application installation package file of version.If the application installation package file carried in this document upload request is the application peace of new version
APMB package is filled, then sends notice request to channel bag generation server.When channel bag generation server receives notice request
When, which generates server and installs the application installation package file acquisition carried in this document upload request for original application
APMB package.
Wherein, bag management server is sentenced according to the application identities and application version information that are carried in this document upload request
The application installation package file carried in disconnected this document upload request whether be new version application installation package file, including:Assure
Server is managed according to the application identities carried in this document upload request, between the application identities and application version information of storage
Correspondence in search corresponding application version information.If corresponding application version information is found, and what is found answers
It is less than the application version information carried in this document upload request with version information, it is determined that carried in this document upload request
Application installation package file is the application installation package file of new version.If corresponding application version information is not found, really
The application installation package file for determining to carry in this document upload request is the application installation package file of new version.
It should be noted that if bag management server does not find corresponding application version information, it is determined that this article
The application installation package file carried in part upload request for the application promoted first at this using distribution platform is corresponding should
With installation package file, i.e., do not promoted before the new opplication at this using distribution platform.
Wherein, it is first which, which generates server by the application installation package file acquisition carried in this document upload request,
The concrete operations of beginning application installation package file can be:Channel bag generates server please to the second acquisition of bag management server transmission
Ask, carry the application identities in the second acquisition request, which is the application identities carried in the upload file request.When
Bag management server receives the second acquisition request, and the bag management server is according to the application identities, from the application identities of storage
Corresponding application installation package file is obtained in correspondence between application installation package file.By the application installation package text of acquisition
Part is sent to channel bag generation server, and channel bag generates server and the application installation package file is determined as original application installation
APMB package.
Wherein, first way is developer actively by file upload request by the application installation package file of new version
Pass in bag management server, the second way is that bag management server is actively obtained from the corresponding application server of developer
The application installation package file of new version.
The second way, bag management server monitor in application server the application identities that store and application version information it
Between correspondence in application version information whether change.If there is changed application version information, then reason is assured
Server sends first to the application server and obtains request, and changed application version information is carried in the first acquisition request
Corresponding application identities, make the application server obtain the application identities carried in request according to first, from the application mark of storage
Know with obtaining corresponding application installation package file in the correspondence between application installation package file.When bag management server receives
During to the application installation package file, notice request is sent to channel bag generation server.When channel bag generation server receives
When the notice is asked, the application installation package file that bag management server receives is determined as original application installation package file.
Wherein, after bag management server receives the application installation package file, reason server storage application mark is assured
Know the correspondence with the application installation package file.Afterwards, the application that channel bag generation server receives bag management server
The concrete operations that installation package file is determined as original application installation package file can be:Channel bag generates server and is taken to reason is assured
Business device sends first and obtains request, and the first acquisition carries the corresponding application identities of changed application version information in asking.
When bag management server receives the first acquisition request, bag management server is corresponded to according to changed application version information
Application identities, corresponding application installation is obtained from the correspondence between the application identities of storage and application installation package file
APMB package, and the application installation package file of acquisition is sent to channel bag generation server.
Wherein, after the application installation package file that new version is developed due to developer, the application of the new version is installed
APMB package stores in the application server, and then can update corresponding in the correspondence between application identities and application version information
Application version information, so, bag management server monitor application server in application identities and application version information between
Correspondence in application version information, it may be determined that whether corresponding application installation package file is updated.When application is pacified
When dress APMB package is updated, the application installation package file of new version can be obtained from the application service, and make channel Bao Sheng
Into the corresponding application channel bag of application installation package file generated of the server based on the new version.
Step 304:Channel bag generation server writes to apply into the specified region of the original application installation package file to be divided
The identification information of platform is sent out, obtains corresponding application channel bag, specified region will not cause the original application installation package file
Check information fails.
Wherein, in embodiments of the present invention, not only can by ant scripts to the original application installation package file specify
Write-in, can also be by way of programming to the original application installation package file using the identification information of distribution platform in region
The identification information write in region using distribution platform is specified, the embodiment of the present invention is not specifically limited this.
Wherein, which includes but not limited to the comment field of the original application installation package file, and the region is not
By the original application installation package file per se with check information verify, into without causing the original application installation package file
Check information failure.In addition, distribution platform, and the identification information are applied for identifying this using the identification information of distribution platform
Can be this apply distribution platform title, can also be this apply distribution platform channel number, the embodiment of the present invention to this not
It is specifically limited.
Wherein, it can be based on using the File Format of channel bag but be not limited to ZIP forms, jar forms, it is therefore preferable to ZIP
Form (Android installation package file, that is, apk files are based on ZIP forms at present).ZIP forms can be divided into pressure source number of files
According to area, pressure source file directory area and pressure source file directory end mark.Wherein, wrapped in pressure source file directory end mark
The comment field of ZIP file is included, the field of the comment field is indefinite length, so, it can be write in the comment field
The identification information using distribution platform of sufficient length.
Due to wanting to reach the standard grade and promote in application distribution platform using channel bag, it is necessary to by signature check, MD5 schools
Test, virus scan, security sweep, the multistep flow such as manual examination and verification.However, annotated using method provided in an embodiment of the present invention
The identification information for applying distribution platform is write in region, is experimentally confirmed, the application channel bag ultimately generated completely can be with
By above-mentioned stringent flow, illustrate using method provided in an embodiment of the present invention generation using channel bag and common application
The specification of channel bag is just the same, it is possible to achieve accomplishes with existing application distribution platform completely compatible.
Further, if the original application installation package file is APK file, that is to say, original application installation kit text
Part is applied in Android operation system.Due to needing to carry out signature check when installing application in Android operation system, and sign
The characteristics of name verification is that the application of same title and signature is considered as same application, can update upgrading, otherwise, be considered as
Different application or signature conflict, can not update upgrading.However.dex files of having packed in APK file, resource file and
AndroidManifest.xml files, at the same will also be in the APK file by digital signature so file has firmly been protected
Come.If third party have modified any file in APK file, the content that may result in APK file is mismatched with signature, Android
Operating system can parse APK file when installing the application and check signature, and such APK file can be rejected installation.Due to APK
The form of file is exactly ZIP forms in fact, and ZIP file includes comment field, it is possible to the addition application point in APK file
Send out the identification information of platform.In addition, the signature of APK file is not intended to protect what whole APK file was not tampered, and only protect
All Files in APK file is not tampered, so, APK file can not be protected to be tampered in itself, as long as following ZIP file lattice
Formula, does not change the content in pressure source file data area and pressure source file directory area, then signs still valid, can be operated by Android
The signature check of the APK file of system.
For example, one application signature file folder META-INF include MANIFEST.MF files, CERT.SF files and
CERT.RSA files.The coding for the first summary that All Files in APK file generates is stored in MANIFEST.MF files;
First that All Files generation in the second summary and APK file to MANIFEST.MF files is stored in CERT.SF files is plucked
Carry out digest algorithm again and obtain the 3rd summary, the 3rd summary will also be encoded;Stored in CERT.RSA files
The information such as signature, RSA public keys and the Encryption Algorithm of CERT.SF files, for signature check, and this document is binary format.
If the identification information for applying distribution platform is added in the comment field of APK file, since all in APK file are protected
The content of shield file does not all change, so signature is still effective, 3 in META-INF files are used for the text verified
For part also all without changing, which can normal mounting, upgrading and operation on the subscriber terminal.
Wherein, can be counted when calculating summary by SHA1 (Secure Hash Algorithm, Secure Hash Algorithm)
To calculate, when coding, can also be encoded by Base64, be made a summary it is, of course, also possible to be calculated by other algorithms, and be encoded,
The embodiment of the present invention is not specifically limited this.
Wherein, generation is using after channel bag, it is also necessary to is stored in this under corresponding store path using channel bag, side
Just the corresponding first terminal installation of subsequent user should be in application, corresponding application channel bag can promptly be found.
Step 305:This is sent to bag management server by channel bag generation server using channel bag.
Due to being stored in using channel bag in bag management service, so, when the generation server generation application of channel bag
, it is necessary to which this is sent to bag management server using channel bag after channel bag.
Step 306:When bag management server, which receives this, applies channel bag, corresponded to according to original application installation package file
Application identities, search corresponding store path from the correspondence between the application identities of storage and store path, if
Corresponding store path is found, then performs step 307, if not finding corresponding store path, performs step
308。
Step 307:Bag management server will store under the store path found and replace with generation using channel bag
Using channel bag, step 310 is performed.
Wherein, the legacy version application installation package file using channel bag for the application stored under the store path found
Corresponding old application channel bag, at this point it is possible to which old this is applied channel bag, i.e. new version using what channel bag replaced with generation
The corresponding new opplication channel bag of application installation package file.
Step 308:Bag management server is corresponding according to the corresponding application identities of original application installation package file, generation
Store path.
Wherein, in embodiments of the present invention, bag management server can be corresponding according to the original application installation package file
The corresponding store path of channel bag is applied in application identities, splicing, i.e., it is initial to include this using the corresponding store path of channel bag
The corresponding application identities of application installation package file.As long as knowing that this applies the corresponding store path of channel bag, then can directly exist
The corresponding application identities of original application installation package file are extracted in the store path.For example, the original application installation kit is literary
The corresponding application identities of part are ID1, at this point it is possible to according to application identities ID1, splice this and apply the corresponding storage road of channel bag
Footpath is D:/apk/ID1.
Step 309:Generation is stored under the store path of generation by bag management server using channel bag, performs step
310。
Step 310:Bag management server obtains the attribute information for applying channel bag, and attribute information includes the original application
The corresponding application identities of installation package file, this apply channel bag application version information, channel bag title and address information.
Wherein, this can be with the application version information of original application installation package file using the application version information of channel bag
It is identical, can not also be same.Such as when application version information includes application version number, application icon, using the version of channel bag
This number can be identical with the version number of original application installation package file, can not also be same.Using channel bag icon can with it is first
The beginning icon of application installation package file is identical, can not also be same.
Wherein, address information is the address information that bag management server is application generation, and the address information is also root
It is spliced according to the application identities of the original application installation package file, and the address information can be that this applies channel bag
URL (Uniform Resoure Locator, universal resource locator), it is, of course, also possible to be other address informations, as long as
Client can find corresponding application channel bag according to the address information, and the embodiment of the present invention does not do this specific limit
It is fixed.
It should be added that in embodiments of the present invention, attribute information can not only include above-mentioned information, may be used also
With including other information, such as, store path etc..The embodiment of the present invention is not specifically limited this.
Step 311:Bag management server sends renewal request to content management server, and it is first to carry this in renewal request
The corresponding application identities of beginning application installation package file and the attribute information.
Wherein, the attribute information of each expanded application is stored in content server, and the attribute information is pushed to
Using the corresponding client of distribution platform.So when bag management server receives, original application installation package file is corresponding to answer
After channel bag, bag management server sends renewal request to content management server.
Step 312:When content management server receives renewal request, content management server initially should according to this
With the corresponding application identities of installation package file and attribute information, the correspondence between application identities and attribute information to storage
In corresponding attribute information be updated.
Specifically, when content management server receives renewal request, content management server initially should according to this
With the corresponding application identities of installation package file, lookup is corresponding from the correspondence between the application identities of storage and attribute information
Attribute information.If finding corresponding attribute information, the attribute information of lookup is replaced with renewal request and is carried
Attribute information.If not finding corresponding attribute information, the correspondence between application identities and attribute information
One new directory of middle establishment, and the application identities carried during the renewal is asked are stored in the new directory with attribute information.
Further, when the attribute in the correspondence that content management server updates between application identities and attribute information
After information, the attribute information of renewal can be pushed to using the corresponding client of distribution platform by content management server.Should
The attribute information of client renewal display.
Wherein, when user applies the corresponding client installation targets of distribution platform in application, specifically installing by this
Cheng Wei:The download request that first terminal is sent is received, the address information of intended application is carried in the download request.Believe from the address
The application identities of intended application are obtained in breath.According to the application identities of intended application, from the application identities and store path of storage
Between correspondence in obtain corresponding store path.What will be stored under the store path of acquisition is sent to the using channel bag
One terminal, makes first terminal install the intended application using channel bag based on this.
Specifically, content management server receives the download request that first terminal is sent, and target is carried in the download request
The address information of application.The download request is sent to bag management server by content management server.When bag management server connects
When receiving the download request, bag management server obtains the application identities of intended application from the address information, and according to target
The application identities of application, corresponding store path is obtained from the correspondence between the application identities of storage and store path.
Then, it will be stored under the store path of acquisition and be sent to first terminal using channel bag.When first terminal receives the application
During channel bag, to this using channel bag carry out signature check, and verify it is errorless after be based on using channel bag install the target answer
With.
Further, after first terminal installs the intended application, if first terminal runs the intended application first,
First terminal obtains this using the identification information using distribution platform in channel bag.First terminal applies corresponding application to this
Server sends download renewal request, and the identification information for applying distribution platform is carried in download renewal request.When this
When application server receives download renewal request, which applies the identification information of distribution platform according to this,
Update the corresponding download in the correspondence between identification information and download.
Wherein, which applies the identification information of distribution platform according to this, renewal identification information and download it
Between correspondence in the concrete operations of corresponding download can be:The application server is according to this using distribution platform
Identification information, corresponding download is obtained from the correspondence between the identification information and download of storage.What increase obtained
Download, and after download corresponding to the identification information in the correspondence between identification information and download is replaced with increase
Download.
Wherein, increasing the concrete operations of the download of acquisition can be:The download of acquisition is increased by 1.
It should be added that first terminal not only can report the target should by the above method to application server
Download, can also report activation amount of the intended application etc. by the above method to application server, these statistics
Numerical value is used for application developer and carries out promotion expense reconciliation and clearing reference with platform, and the embodiment of the present invention does not carry out this one by one
Illustrate.
In addition, this, which is applied, can also include some customized informations for applying distribution platform in channel bag, such as, Ke Yi
Run and show this using Logo of distribution platform etc. during the application.At this time, first terminal is needed according to this using distribution platform
Identification information, obtains corresponding customized information in the resource file applied from this in channel bag, and shows the customized information of acquisition.
Wherein, the correspondence between the identification information and customized information using distribution platform can be stored in the resource file.This hair
Bright embodiment is to this without detailed elaboration.
In embodiments of the present invention, developer need to only upload to original application installation package file in bag management server.
Channel bag generation server can automatically obtain original application installation package file from bag management server, to the original application
Write-in is using the identification information of distribution platform in installation package file, and be applied channel bag.Without application developer for difference
Manually generate the formation efficiency using channel bag, improved using channel bag using distribution platform.Further, since using canal
Road bag directly generates in application distribution platform, so, manually generated without application developer using after channel bag
Uploaded manually again, it is easy to operate, improve the efficiency using distribution.
Fig. 4 is a kind of apparatus structure schematic diagram of generation application channel bag of the offer of the embodiment of the present invention.Referring to Fig. 4,
The device includes:First acquisition module 401 and writing module 402;
First acquisition module 401, for obtaining original application installation package file;
Writing module 402, for write-in in the specified region to the original application installation package file using distribution platform
Identification information, obtains corresponding application channel bag, this specifies region that the verification of the original application installation package file will not be caused to believe
Breath failure.
Alternatively, the first acquisition module 401 includes:
First monitoring unit, for monitoring file upload request, carries application identities, using version in this document upload request
This information and application installation package file;
Judging unit, for according to the application identities and the application version information, whether judging the application installation package file
For the application installation package file of new version;
First acquisition unit, if by the application installation package file for the application installation package file for new version, will
The application installation package file acquisition that this document upload request carries is original application installation package file.
Alternatively, judging unit includes:
Search subelement, for according to the application identities, pair between the application identities and application version information of storage
It should be related to the corresponding application version information of middle lookup;
First determination subelement, if for finding corresponding application version information, and the application version letter found
Breath is less than the application version information, it is determined that the application installation package file is the application installation package file of new version;
Second determination subelement, if for not finding corresponding application version information, it is determined that the application installation
APMB package is the application installation package file of new version.
Alternatively, the first acquisition module 401 includes:
Second monitoring unit, for monitoring pair between the application identities and application version information that are stored in application server
Whether the application version information in should being related to changes;
Second acquisition unit, for if there is changed application version information, then sends the to application server
One obtains request, carries the corresponding application identities of changed application version information in the first acquisition request, makes application service
Device obtains the application identities that carry in request according to first, from corresponding between the application identities of storage and application installation package file
Corresponding application installation package file is obtained in relation;
Determination unit, for when receiving the application installation package file of application server transmission, the application of reception to be pacified
Dress APMB package is determined as original application installation package file.
Alternatively, which further includes:
Searching module, for according to the corresponding application identities of original application installation package file, from the application identities of storage
Corresponding store path is searched in correspondence between store path;
Replacement module, if for finding corresponding store path, channel is applied by what is stored under the store path
Bag replaces with the application channel bag of generation;
Generation module, if for not finding corresponding store path, according to the original application installation package file
Corresponding application identities, generate corresponding store path;
Memory module, for generation to be stored under the store path of generation using channel bag.
Alternatively, which further includes:
Second acquisition module, for obtaining the attribute information for applying channel bag, which includes the original application
The corresponding application identities of installation package file, this apply channel bag application version information, channel bag title and address information;
Update module, for according to the corresponding application identities of original application installation package file and the attribute information, to depositing
Corresponding attribute information is updated in correspondence between the application identities of storage and attribute information.
Alternatively, which further includes:
Receiving module, for receiving the download request of first terminal transmission, carries the ground of intended application in the download request
Location information,;
3rd acquisition module, for obtaining the application identities of the intended application from the address information;
4th acquisition module, for the application identities according to the intended application, from the application identities and store path of storage
Between correspondence in obtain corresponding store path;
Sending module, the first terminal is sent to using channel bag for what will be stored under the store path, make this first
Terminal installs the intended application based on this using channel bag.
In embodiments of the present invention, developer need to only upload to original application installation package file using in distribution platform.
Using distribution platform can automatically into the original application installation package file, write-in using the identification information of distribution platform, obtains
Using channel bag.Manually generated without application developer for different using distribution platform using channel bag, improving should
With the formation efficiency of channel bag.Further, since using channel bag directly application distribution platform in generate, so, also without
Need application developer to manually generate to be uploaded manually again afterwards using channel bag, it is easy to operate, improve the effect using distribution
Rate.
It should be noted that:The generation that above-described embodiment provides applies the device of channel bag when channel bag is applied in generation,
, can be as needed and by above-mentioned function distribution only with the division progress of above-mentioned each function module for example, in practical application
Completed by different function modules, i.e., the internal structure of device is divided into different function modules, it is described above to complete
All or part of function.In addition, the generation that above-described embodiment provides applies the device of channel bag with generating using channel bag
Embodiment of the method belongs to same design, its specific implementation process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on, should all be included in the protection scope of the present invention.
Claims (14)
- A kind of 1. method generated using channel bag, it is characterised in that the described method includes:Original application installation package file is obtained, the original application installation package file is the file of ZIP forms;Into the comment field of the original application installation package file, write-in obtains corresponding using the identification information of distribution platform Using channel bag, the comment field will not cause the check information of the original application installation package file to fail.
- 2. the method as described in claim 1, it is characterised in that the acquisition original application installation package file, including:Monitoring file upload request, application identities, application version information and application installation package are carried in the file upload request File;According to the application identities and the application version information, judge whether the application installation package file is answering for new version Use installation package file;If the application installation package file is the application installation package file of new version, the file upload request is carried Application installation package file acquisition is original application installation package file.
- 3. method as claimed in claim 2, it is characterised in that described to be believed according to the application identities and the application version Breath, judge the application installation package file whether be new version application installation package file, including:According to the application identities, searched from the correspondence between the application identities and application version information of storage corresponding Application version information;If corresponding application version information is found, and the application version information found is less than the application version information, Then determine the application installation package file that the application installation package file is new version;If corresponding application version information is not found, it is determined that the application installation package file is pacified for the application of new version Fill APMB package.
- 4. the method as described in claim 1, it is characterised in that the acquisition original application installation package file, including:Monitor the application version letter in the correspondence between the application identities and application version information stored in application server Whether breath changes;If there is changed application version information, then send first to the application server and obtain and ask, described the The corresponding application identities of changed application version information are carried in one acquisition request, make the application server according to First obtains the application identities carried in request, from the correspondence between the application identities of storage and application installation package file Obtain corresponding application installation package file;When receiving the application installation package file that the application server is sent, the application installation package file of reception is determined as Original application installation package file.
- 5. the method as described in claim 1-4 any claims, it is characterised in that described to the original application installation kit Write-in after obtaining corresponding application channel bag, is further included using the identification information of distribution platform in file:According to the corresponding application identities of the original application installation package file, between the application identities of storage and store path Corresponding store path is searched in correspondence;If finding corresponding store path, answering for generation is replaced with using channel bag by what is stored under the store path With channel bag;If not finding corresponding store path, according to the corresponding application identities of the original application installation package file, Generate corresponding store path;Generation is stored under the store path of generation using channel bag.
- 6. the method as described in claim 1-4 any claims, it is characterised in that described to the original application installation kit Write-in after obtaining corresponding application channel bag, is further included using the identification information of distribution platform in file:The attribute information using channel bag is obtained, it is corresponding that the attribute information includes the original application installation package file Application identities, the application version information, channel bag title and address information using channel bag;According to the corresponding application identities of the original application installation package file and the attribute information, to the application identities of storage with Corresponding attribute information is updated in correspondence between attribute information.
- 7. the method as described in claim 1-4 any claims, it is characterised in that the method further includes:The download request that first terminal is sent is received, the address information of intended application is carried in the download request;The application identities of the intended application are obtained from described address information;According to the application identities of the intended application, obtained from the correspondence between the application identities of storage and store path Corresponding store path;The first terminal is sent to using channel bag by being stored under the store path, is based on the first terminal described The intended application is installed using channel bag.
- 8. a kind of device generated using channel bag, it is characterised in that described device includes:First acquisition module, for obtaining original application installation package file, the original application installation package file is ZIP forms File;Writing module, believes for being write into the comment field of the original application installation package file using the mark of distribution platform Breath, obtains corresponding application channel bag, and the comment field will not cause the check information of the original application installation package file Failure.
- 9. device as claimed in claim 8, it is characterised in that first acquisition module includes:First monitoring unit, for monitoring file upload request, carries application identities, application version in the file upload request Information and application installation package file;Judging unit, for according to the application identities and the application version information, judging that the application installation package file is The no application installation package file for new version;First acquisition unit, if by for the application installation package file be new version application installation package file, by institute The application installation package file acquisition for stating the carrying of file upload request is original application installation package file.
- 10. device as claimed in claim 9, it is characterised in that the judging unit includes:Subelement is searched, for according to the application identities, from corresponding between the application identities and application version information of storage Corresponding application version information is searched in relation;First determination subelement, if for finding corresponding application version information, and the application version information found is low In the application version information, it is determined that the application installation package file is the application installation package file of new version;Second determination subelement, if for not finding corresponding application version information, it is determined that the application installation package File is the application installation package file of new version.
- 11. device as claimed in claim 8, it is characterised in that first acquisition module includes:Second monitoring unit, for monitoring the corresponding pass between the application identities stored in application server and application version information Whether the application version information in system changes;Second acquisition unit, for if there is changed application version information, then sends the to the application server One obtains request, carries the corresponding application identities of changed application version information in the first acquisition request, makes described Application server obtains the application identities carried in request according to described first, from application identities and the application installation package text of storage Corresponding application installation package file is obtained in correspondence between part;Determination unit, for when receiving the application installation package file that the application server is sent, the application of reception to be pacified Dress APMB package is determined as original application installation package file.
- 12. the device as described in claim 8-11 any claims, it is characterised in that described device further includes:Searching module, for according to the corresponding application identities of the original application installation package file, from the application identities of storage with Corresponding store path is searched in correspondence between store path;Replacement module, if for finding corresponding store path, channel bag is applied by what is stored under the store path Replace with generation applies channel bag;Generation module, if for not finding corresponding store path, according to the original application installation package file pair The application identities answered, generate corresponding store path;Memory module, for generation to be stored under the store path of generation using channel bag.
- 13. the device as described in claim 8-11 any claims, it is characterised in that described device further includes:Second acquisition module, for obtaining the attribute information using channel bag, the attribute information initially should including described With the corresponding application identities of installation package file, the application version information, channel bag title and address information using channel bag;Update module, for according to the corresponding application identities of the original application installation package file and the attribute information, to depositing Corresponding attribute information is updated in correspondence between the application identities of storage and attribute information.
- 14. the device as described in claim 8-11 any claims, it is characterised in that described device further includes:Receiving module, for receiving the download request of first terminal transmission, carries the address of intended application in the download request Information;3rd acquisition module, for obtaining the application identities of the intended application from described address information;4th acquisition module, for the application identities according to the intended application, from the application identities and store path of storage it Between correspondence in obtain corresponding store path;Sending module, the first terminal is sent to using channel bag for what will be stored under the store path, makes described the One terminal is based on the application channel bag and installs the intended application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410421600.5A CN104346167B (en) | 2014-08-25 | 2014-08-25 | The method and device of channel bag is applied in generation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410421600.5A CN104346167B (en) | 2014-08-25 | 2014-08-25 | The method and device of channel bag is applied in generation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104346167A CN104346167A (en) | 2015-02-11 |
CN104346167B true CN104346167B (en) | 2018-05-08 |
Family
ID=52501861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410421600.5A Active CN104346167B (en) | 2014-08-25 | 2014-08-25 | The method and device of channel bag is applied in generation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104346167B (en) |
Families Citing this family (34)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199656A (en) * | 2014-08-27 | 2014-12-10 | 广州金山网络科技有限公司 | Method and device for adding customized information |
CN104978530B (en) * | 2015-03-12 | 2018-09-04 | 腾讯科技(深圳)有限公司 | A kind of application method for managing security, device, server and system |
CN104754062B (en) * | 2015-04-16 | 2018-03-23 | 腾讯科技(北京)有限公司 | Information popularization method, server and user terminal based on internet |
CN104899025A (en) * | 2015-05-18 | 2015-09-09 | 北京奇虎科技有限公司 | Method and device for generating channel package |
CN105242953A (en) * | 2015-11-24 | 2016-01-13 | 魅族科技(中国)有限公司 | Prompt method and device for updating application |
CN105516299A (en) * | 2015-12-04 | 2016-04-20 | 北京卓易讯畅科技有限公司 | Installation file packaging method and device and installation file distribution method and system |
CN106897049A (en) * | 2015-12-21 | 2017-06-27 | 五八同城信息技术有限公司 | The packaging method and device of a kind of installation kit |
CN106911738A (en) * | 2015-12-22 | 2017-06-30 | 北京奇虎科技有限公司 | A kind of method and server for generating application installation kit |
CN106959968A (en) * | 2016-01-12 | 2017-07-18 | 广州市动景计算机科技有限公司 | Website icon promotion method and device |
CN105760202B (en) * | 2016-03-14 | 2019-05-03 | 广州爱九游信息技术有限公司 | Server calculates equipment, Software Compression packet processing unit and method |
CN105955774A (en) * | 2016-04-29 | 2016-09-21 | 乐视控股(北京)有限公司 | Software upgrading control method and device |
CN106375095A (en) * | 2016-09-02 | 2017-02-01 | 中科信息安全共性技术国家工程研究中心有限公司 | Method of protecting integrity of APK |
CN106534365B (en) * | 2016-12-16 | 2020-02-21 | 广州四三九九信息科技有限公司 | Method and equipment for determining channel information |
CN108280341B (en) * | 2016-12-30 | 2020-06-30 | 腾讯科技(深圳)有限公司 | Channel number adding and installation package checking method and device |
CN106843962A (en) * | 2017-01-19 | 2017-06-13 | 北京乐盟互动科技有限公司 | One kind application packaging method and device |
CN107247584A (en) * | 2017-05-11 | 2017-10-13 | 北京潘达互娱科技有限公司 | application installation package packaging method and device |
CN107346248B (en) * | 2017-07-04 | 2020-11-13 | 北京像素软件科技股份有限公司 | Platform identification method and device |
CN107844518B (en) * | 2017-09-30 | 2021-05-07 | 北京房江湖科技有限公司 | Method for evaluating download quantity of specified APP, data server, packaging platform and system |
CN108415725A (en) * | 2018-03-01 | 2018-08-17 | 深圳市创梦天地科技有限公司 | Channel application packet producing device, method, electronic equipment and storage medium |
CN108874429B (en) * | 2018-07-20 | 2022-06-03 | 珠海宏桥高科技有限公司 | Android system integrated automatic packaging method |
CN109495271A (en) * | 2018-10-19 | 2019-03-19 | 北京梆梆安全科技有限公司 | Compare APK file method, apparatus, server and its storage medium |
CN111078223B (en) * | 2018-10-22 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Application program packaging method and device |
CN109558164A (en) * | 2018-11-21 | 2019-04-02 | 北京小米移动软件有限公司 | Android installation kit packaging method and device, electronic equipment, readable storage medium storing program for executing |
CN110377331B (en) * | 2019-07-22 | 2023-10-13 | 腾讯科技(深圳)有限公司 | Monitoring method, device, equipment and storage medium for issuing application program |
CN110377333A (en) * | 2019-07-24 | 2019-10-25 | 上海游民网络科技有限公司 | A kind of application installation package document handling method and system |
CN110990073B (en) * | 2019-11-13 | 2023-09-29 | 北京城市网邻信息技术有限公司 | Method and device for verifying customization requirements of application program |
CN113014533B (en) * | 2019-12-20 | 2022-11-08 | 北京金山云网络技术有限公司 | Processing method, device and system for checking file, storage medium and electronic device |
CN111274552A (en) * | 2020-01-07 | 2020-06-12 | 惠州市德赛西威汽车电子股份有限公司 | Signature and signature verification method of upgrade package and storage medium |
CN114253432B (en) * | 2020-09-11 | 2023-09-08 | 腾讯科技(深圳)有限公司 | Application channel package delivery method and system |
CN112131224B (en) * | 2020-09-25 | 2024-04-23 | 广州虎牙科技有限公司 | Application installation package processing and installation source determining method, device and traceability system |
CN113094121B (en) * | 2021-04-30 | 2023-03-10 | 腾讯科技(成都)有限公司 | Data processing method, data processing equipment and computer readable storage medium |
CN113885884A (en) * | 2021-08-31 | 2022-01-04 | 上海二三四五网络科技有限公司 | Control method and control device for automatically checking channel packet information |
CN113992655B (en) * | 2021-10-26 | 2024-07-02 | 陕西绝顶人峰网络科技有限公司 | Software packaging method, system and computer storage medium |
CN114500515B (en) * | 2022-02-16 | 2024-07-12 | 厦门市安杰云网络有限公司 | APK dynamic rewriting method and system based on CDN edge computing network |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019708A (en) * | 2012-11-30 | 2013-04-03 | 北京奇虎科技有限公司 | Method and system for releasing software |
CN103139279A (en) * | 2011-12-05 | 2013-06-05 | 阿里巴巴集团控股有限公司 | File access method and system |
CN103577762A (en) * | 2012-07-23 | 2014-02-12 | 北京掌汇天下科技有限公司 | Channel marking system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090260004A1 (en) * | 2008-04-10 | 2009-10-15 | Palm, Inc. | Computer program updates for mobile computing device |
-
2014
- 2014-08-25 CN CN201410421600.5A patent/CN104346167B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139279A (en) * | 2011-12-05 | 2013-06-05 | 阿里巴巴集团控股有限公司 | File access method and system |
CN103577762A (en) * | 2012-07-23 | 2014-02-12 | 北京掌汇天下科技有限公司 | Channel marking system and method |
CN103019708A (en) * | 2012-11-30 | 2013-04-03 | 北京奇虎科技有限公司 | Method and system for releasing software |
Also Published As
Publication number | Publication date |
---|---|
CN104346167A (en) | 2015-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104346167B (en) | The method and device of channel bag is applied in generation | |
US11974204B2 (en) | Method for sharing application between terminals, and terminal | |
CN107346252B (en) | Application updating method and device | |
CN102830992B (en) | Plug-in loading method and system | |
KR101150041B1 (en) | System and method for updating files utilizing delta compression patching | |
CN104052818B (en) | The version upgrading method and device of a kind of mobile terminal | |
CN105391717A (en) | APK signature authentication method and APK signature authentication system | |
CN106201607A (en) | The upgrade method of a kind of software version and equipment | |
CN111008034B (en) | Patch generation method and device | |
KR20130012929A (en) | Method and system for efficient download of data package | |
CN104573435A (en) | Method for terminal authority management and terminal | |
WO2019080110A1 (en) | Apk signature authentication method and system | |
CN107239299B (en) | Plug-in upgrading method and device | |
CN105279436A (en) | Software updating method and system | |
CN112579125B (en) | Firmware upgrading method and device, electronic equipment and storage medium | |
CN106709281B (en) | Patch granting and acquisition methods, device | |
CN104504587A (en) | Advertisement monitoring method and device, electronic apparatus | |
CN107391507B (en) | Updating method and device for mobile terminal page | |
CN109445815A (en) | A kind of smart card and its application upgrade method | |
CN113961226B (en) | Software development kit repairing method, terminal, server and equipment | |
CN111273920A (en) | Method and device for writing data into installation package and storage medium | |
CN108121552B (en) | Automatic patching method based on XenServer | |
WO2019183806A1 (en) | Resource permission processing method and apparatus, and storage medium and chip | |
CN110543323B (en) | Application program repairing method and device | |
CN117908939A (en) | Application program upgrading method, computer readable storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |