CN103729186A - Method for generating multi-channel apk file packages in batches - Google Patents

Method for generating multi-channel apk file packages in batches Download PDF

Info

Publication number
CN103729186A
CN103729186A CN201310748221.2A CN201310748221A CN103729186A CN 103729186 A CN103729186 A CN 103729186A CN 201310748221 A CN201310748221 A CN 201310748221A CN 103729186 A CN103729186 A CN 103729186A
Authority
CN
China
Prior art keywords
apk file
file bag
apk
channel information
channel
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
CN201310748221.2A
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.)
SHANGHAI WONDERTEK SOFTWARE CO Ltd
Original Assignee
SHANGHAI WONDERTEK SOFTWARE 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 SHANGHAI WONDERTEK SOFTWARE CO Ltd filed Critical SHANGHAI WONDERTEK SOFTWARE CO Ltd
Priority to CN201310748221.2A priority Critical patent/CN103729186A/en
Publication of CN103729186A publication Critical patent/CN103729186A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for generating multi-channel apk file packages in batches. Multi-channel apk files can be generated efficiently in batches, and the error rate is reduced. The method includes the following steps that first, at least one apk file package is placed in the first file, and a plurality of pieces of channel information is placed into a first list; second, traversal of the first list is performed, a plurality of pieces of channel information is sequentially obtained, the apk file packages are sequentially selected from the first file, original channel information in the files, containing the channel information, in the apk file packages are sequentially replaced with the plurality of pieces of channel information, and a plurality of different files containing new channel information are sequentially obtained; third, the part without containing the channel information of the apk file packages and the different files containing the new channel information are respectively repackaged, and a plurality of new apk file packages are generated and signed; fourth, the second step and the third step are repeated till all the apk file packages in the first file are processed.

Description

A kind of Mass production is the method for apk file bag by all kinds of means
Technical field
The present invention relates to a kind of apk document generating method, relate in particular to a kind of Mass production method of apk file bag by all kinds of means.
Background technology
After elipse Android project development completes, android item file to be packaged into apk file bag, and finally download on mobile phone and move.When exploitation android app, opening due to android market, because the distribution platform in android market is too many, each distribution platform has the app market of oneself, and app has a common requirement in this case, is exactly to want distributing canal road statistics active, registration, online data, or load SDK according to different channel information, do the concrete business that this platform is relevant.But so each version updating will be revised channel information exactly one time, the input password that also will sign manual, if using ADT Export Application Package, especially in the situation that having configured proguard, if there is like this n channel information just to need manual modification containing the channel information of the file the inside of channel information n time, and then manually signing is packed n time, sometimes an engineering application is very large, each packing all will slattern a few minutes, this can increase a lot of extra expending to add manual modification channel information, and if each channel is issued separately, what like that efficiency can be extremely is low, because channel number is many, the probability making a mistake is very high.Therefore find method change very necessary of a kind of efficiently Mass production apk file bag by all kinds of means.
Summary of the invention
The object of the present invention is to provide a kind of Mass production method of apk file bag by all kinds of means, efficiently Mass production apk file by all kinds of means.
To achieve these goals, the invention provides a kind of Mass production method of apk file bag by all kinds of means, comprise the following steps:
S1: at least one apk file bag is put into the first file, some channel information is put into the first list, described at least one apk file bag is by containing channel message file and not forming containing channel message part;
S2: travel through described the first list, obtain successively described some channel information, and from described the first file, choose successively an apk file bag, to in selected apk file bag, containing the former channel information in channel message file, by described some channel information, replace successively, obtain successively some different files containing new channel information;
S3: not repacking from described some different files containing new channel information respectively containing channel message part in described apk file bag, generates some new apk file bags, and described some new apk file bags are signed again;
S4: repeating step S2 to S3, until all apk file bags in described the first file are finished dealing with.
Preferably, in S1, also comprise, if described at least one apk file bag is compressed file bag, it is decompressed and is obtained containing channel message file and not containing channel message part.
Preferably, in S3, also comprise, if having signing certificate in described apk file bag, delete described apk file bag not containing the signing certificate information in channel message part, the part obtaining respectively from some different repacking containing new channel message files.
Preferably, S4 further comprises, while obtaining different apk file bags from the first file, the some channel information in corresponding described the first list are modifiable.
Preferably, described channel information comprises version number information and canal Taoist monastic name information.
Preferably, in S3, be also included in after the filename of described new apk file bag and add version number information and canal Taoist monastic name information.
The present invention, owing to adopting above technical scheme, makes it compared with prior art, has following advantage and good effect:
The present invention can realize without manual modification containing the channel information in canal Taoist monastic name file, but being put into channel information list file, a series of channel information carries out packing and issuing by all kinds of means, simplify packing process by all kinds of means, and can comparatively fast generate applicable different apk file bag versions multiple screen resolution and multiple distribution platform.The probability that has reduced manpower and made mistakes, and later stage expansion is briefly easily reused and be easy to autoexec.For developer, can change like a cork program and channel information list, packing process is expanded and optimized, facilitate the efficiency of raising program.
Accompanying drawing explanation
Fig. 1 is a kind of Mass production of the present invention process flow diagram of the method for apk file bag by all kinds of means.
Embodiment
Further illustrate the present invention with specific embodiment with reference to the accompanying drawings.
Referring to the accompanying drawing that goes out the embodiment of the present invention, below the present invention will be described in more detail.Yet the present invention can be with many multi-form realizations, and should not be construed as the restriction of the embodiment being subject in this proposition.On the contrary, it is abundant and complete open in order to reach proposing these embodiment, and makes those skilled in the art understand scope of the present invention completely.
Embodiment mono-
Accompanying drawing 1 is a kind of Mass production of the present invention process flow diagram of the method for apk file bag by all kinds of means, below describes a kind of Mass production provided by the invention method of apk file bag by all kinds of means in detail, comprises the following steps:
S1: an apk file bag is put into the first file, some channel information is put into the first list.Apk file bag, by containing channel message file and containing channel message part composition, if apk file bag is compressed file, decompresses and obtains containing channel message file and do not contain channel message part it.Channel information comprises version number information and canal Taoist monastic name information,
Be exemplified as: 02030502-99000-100300010010002; In the apk name producing, except canal Taoist monastic name information 100300010010002, also has version number information Ver2.3.5.2:02030502-99000, canal Taoist monastic name information is for identifying the apk file bag of different distribution platforms, and version number information can be used for identifying the apk file bag of applicable different screen resolutions mobile phone use and the apk file bag of different editions.
S2: traversal the first file, obtain an apk file bag, traversal the first list, obtains some channel information successively, to in apk file bag, containing the former channel information in channel message file, by some channel information, replace successively, obtain successively some different files containing new channel information.In this step, adopt the former channel information containing in the file of channel information according to mode that in the first list, channel information is replaced successively, simplified the miscellaneous work of artificial input channel information, improved efficiency, and the first list editor is flexible, reusable.
Not not repacking from some different files containing new channel information respectively containing channel message part of S3:apk file bag, generate new apk file bag, and some new apk file bags are signed again, just obtain the object apk file bag of having signed, realized Mass production apk file bag by all kinds of means.
In S3, if original signing certificate in apk file bag, delete apk file bag not containing the signing certificate information in channel message part, the part obtaining is repacked from some different new channel message files that contain respectively, generate new apk file bag, and some new apk file bags are signed again, and after the filename of new apk file bag, add that version number information and canal Taoist monastic name information are to distinguish the apk file bag of each different channel information.
Embodiment bis-
As shown in Figure 1, the present invention relates to a kind of Mass production method of apk file bag by all kinds of means, comprise the following steps:
S1: a plurality of apk file bags are put into the first file, some channel information is put into the first list, apk file bag is by containing channel message file and not forming containing channel message part, if apk file bag is compressed file, it is decompressed and is obtained containing channel message file and not containing channel message part.Channel information comprises version number information and canal Taoist monastic name information,
Be exemplified as: 02030502-99000-100300010010002; In the apk name producing, except canal Taoist monastic name information 100300010010002, also has version number information Ver2.3.5.2:02030502-99000, canal Taoist monastic name information is for identifying the apk file bag of different distribution platforms, and version number information can be used for identifying the apk file bag of applicable different screen resolutions mobile phone use and the apk file bag of different editions.
S2: traversal the first list, obtain successively some channel information, and from the first file, choose successively an apk file bag, will be in selected apk file bag containing the former channel information in channel message file, with some channel information, replace successively, obtain successively the different new channel message files that contain.In this step, employing, by the former channel information containing in channel message file according to the mode that in the first list, channel information is replaced successively, has been simplified the miscellaneous work of artificial input channel information, has improved efficiency, and the first list editor is flexible, reusable.
Not not repacking from some different new channel message files that contain respectively containing channel message part in S3:apk file bag, generate some new apk file bags, and some new apk file bags are signed again, just obtain the object apk file bag of having signed, realized Mass production apk file bag by all kinds of means.
In S3, if original signing certificate in apk file bag, delete apk file bag not containing the signing certificate information in channel message part, the part obtaining is repacked from some different new channel message files that contain respectively, generate new spk file bag, and some new apk file bags are signed again, and after the filename of new apk file bag, add that version number information and canal Taoist monastic name information are to distinguish the apk file bag of each different channel information.
S4: obtain another apk file bag from the first file, repeat step in S2 and S3, obtain some new apk file bags of having signed, so circulation, until all apk file bags are finished dealing with in the first file.
From the first file, obtain different apk file bags, in the first list of corresponding traversal, obtain successively some channel information, wherein in the first list, some channel information can be adjusted change according to obtaining different apk file bags, repeat again step in S2 and S3: will in apk file bag, containing the former channel information in channel message file, by the some channel information in the first list, replace successively, obtain different from new channel message file, not not repacking from some different new channel message files that contain respectively containing channel message part of apk file bag, generate new apk file bag, and some new apk file bags are signed again, obtain some new apk file bags of having signed.And then from the first file, obtain next apk file bag, repeat step in S2 and S3, obtain some new apk files of having signed, so circulation, until all apk files are coated in the first file, finish dealing with, by the method can realize a plurality of apk file bag personal issues different platform by all kinds of means, the Mass production of many versions apk file bag.
Above-mentioned disclosed be only specific embodiments of the invention, this embodiment is only that clearer explanation the present invention is used, and limitation of the invention not, the changes that any person skilled in the art can think of, all should drop in protection domain.

Claims (6)

1. a Mass production method for apk file bag by all kinds of means, is characterized in that, comprises the following steps:
S1: at least one apk file bag is put into the first file, some channel information is put into the first list, described at least one apk file bag is by containing channel message file and not forming containing channel message part;
S2: travel through described the first list, obtain successively described some channel information, and from described the first file, choose successively an apk file bag, to in selected apk file bag, containing the former channel information in channel message file, by described some channel information, replace successively, obtain successively some different files containing new channel information;
S3: not repacking from described some different files containing new channel information respectively containing channel message part in described apk file bag, generates some new apk file bags, and described some new apk file bags are signed again;
S4: repeating step S2 to S3, until all apk file bags in described the first file are finished dealing with.
2. a kind of Mass production as claimed in claim 1 method of apk file bag by all kinds of means, it is characterized in that, in S1, also comprise, if described at least one apk file bag is compressed file bag, it is decompressed and is obtained containing channel message file and not containing channel message part.
3. a kind of Mass production as claimed in claim 2 method of apk file bag by all kinds of means, it is characterized in that, in S3, also comprise, if have signing certificate in described apk file bag, delete described apk file bag not containing the signing certificate information in channel message part, the part obtaining respectively from some different repacking containing new channel message files.
4. a kind of Mass production as claimed in claim 3 method of apk file bag by all kinds of means, is characterized in that,
S4 further comprises, while obtaining different apk file bags from the first file, the some channel information in corresponding described the first list are modifiable.
5. the method for apk file bag by all kinds of means of a kind of Mass production as described in any one in claim 1-4, is characterized in that, described channel information comprises version number information and canal Taoist monastic name information.
6. the method for apk file bag by all kinds of means of a kind of Mass production as described in any one in claim 1-4, is characterized in that, is also included in after the filename of described new apk file bag and adds version number information and canal Taoist monastic name information in S3.
CN201310748221.2A 2013-12-31 2013-12-31 Method for generating multi-channel apk file packages in batches Pending CN103729186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310748221.2A CN103729186A (en) 2013-12-31 2013-12-31 Method for generating multi-channel apk file packages in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310748221.2A CN103729186A (en) 2013-12-31 2013-12-31 Method for generating multi-channel apk file packages in batches

Publications (1)

Publication Number Publication Date
CN103729186A true CN103729186A (en) 2014-04-16

Family

ID=50453272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310748221.2A Pending CN103729186A (en) 2013-12-31 2013-12-31 Method for generating multi-channel apk file packages in batches

Country Status (1)

Country Link
CN (1) CN103729186A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503780A (en) * 2014-12-09 2015-04-08 北京奇虎科技有限公司 Method and device for providing application channel packet
CN104539725A (en) * 2015-01-15 2015-04-22 北京金和软件股份有限公司 Method for clustering and packaging generated APP
CN104615433A (en) * 2015-02-11 2015-05-13 北海和思科技有限公司 Method for packaging clusters of APPs (applications) generated on development platforms
CN104899025A (en) * 2015-05-18 2015-09-09 北京奇虎科技有限公司 Method and device for generating channel package
CN105068818A (en) * 2015-08-26 2015-11-18 网易(杭州)网络有限公司 Channel package generation method and apparatus and channel package batch generation method and system
CN105574369A (en) * 2015-12-14 2016-05-11 网易(杭州)网络有限公司 Method, device and system for re-signing application program
CN105631361A (en) * 2014-10-28 2016-06-01 中国移动通信集团终端有限公司 Application program channel source identification method and device
CN105718276A (en) * 2014-12-02 2016-06-29 北京奇虎科技有限公司 Method and device for providing APK download and NGINX server
CN106027517A (en) * 2016-05-19 2016-10-12 福建创意嘉和软件有限公司 Game pack distribution method and apparatus supporting multiple channels
CN106126205A (en) * 2016-06-14 2016-11-16 武汉斗鱼网络科技有限公司 The rapid batch of a kind of Android program installation kit generates method and system
WO2017028733A1 (en) * 2015-08-20 2017-02-23 广州爱九游信息技术有限公司 Software installation package packaging method, device and system and machine-readable storage medium
CN106843843A (en) * 2016-12-23 2017-06-13 光锐恒宇(北京)科技有限公司 Installation kit Mass production method and device
CN106843939A (en) * 2016-12-30 2017-06-13 百度在线网络技术(北京)有限公司 The generation method and device of the channel bag of application
CN107580049A (en) * 2017-09-05 2018-01-12 同程网络科技股份有限公司 A kind of expansible efficient APP channels bag packing platform
CN107769924A (en) * 2017-09-11 2018-03-06 福建新大陆支付技术有限公司 Verify the method and system of POS APK signatures
CN108628617A (en) * 2018-05-18 2018-10-09 深圳爱加密科技有限公司 A kind of packaging method by all kinds of means of Android application program
CN108897562A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Installation kit update method, device, medium and equipment
CN109408076A (en) * 2018-10-22 2019-03-01 海南新软软件有限公司 A kind of APP batch hair version method, apparatus and system
CN109542461A (en) * 2018-10-16 2019-03-29 深圳壹账通智能科技有限公司 Dissemination method, terminal device and the medium of application installation package
CN110830559A (en) * 2019-10-24 2020-02-21 北京城市网邻信息技术有限公司 Channel package automatic batch processing method, device, equipment and storage medium
CN111381865A (en) * 2020-04-01 2020-07-07 深圳传趣网络技术有限公司 Packaging method, device and equipment of game application and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019708A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Method and system for releasing software
CN103036678A (en) * 2011-09-29 2013-04-10 北京新媒传信科技有限公司 Symbian signature application authentication method and system
CN103064666A (en) * 2012-11-30 2013-04-24 北京奇虎科技有限公司 Multi-channel method and system for issuing software

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
CN103019708A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Method and system for releasing software
CN103064666A (en) * 2012-11-30 2013-04-24 北京奇虎科技有限公司 Multi-channel method and system for issuing software

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LUCK_APPLE: "python: android批量多渠道打包", 《HTTP://BLOG.CSDN.NET/LUCK_APPLE/ARTICLE/DETAILS/8634572》 *
SOZELL: "浅谈下Android的多渠道打包", 《HTTP://BLOG.CSDN.NET/SOZELL/ARTICLE/DETAILS/11337629》 *
谦虚的天下: "Android学习系列(31)--App自动化之使用Ant编译项目多渠道打包", 《HTTP://WWW.CNBLOGS.COM/QIANXUDETIANXIA/ARCHIVE/2012/07/04/2573687.HTML》 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631361B (en) * 2014-10-28 2018-12-07 中国移动通信集团终端有限公司 A kind of application program channel source identification method and device
CN105631361A (en) * 2014-10-28 2016-06-01 中国移动通信集团终端有限公司 Application program channel source identification method and device
CN105718276B (en) * 2014-12-02 2020-12-11 北京奇虎科技有限公司 Method and device for providing APK download and NGINX server
CN105718276A (en) * 2014-12-02 2016-06-29 北京奇虎科技有限公司 Method and device for providing APK download and NGINX server
CN104503780A (en) * 2014-12-09 2015-04-08 北京奇虎科技有限公司 Method and device for providing application channel packet
CN104503780B (en) * 2014-12-09 2018-12-14 深圳市奇付通科技有限公司 It is a kind of that method and apparatus that applying channel packet are provided
CN104539725A (en) * 2015-01-15 2015-04-22 北京金和软件股份有限公司 Method for clustering and packaging generated APP
CN104539725B (en) * 2015-01-15 2018-05-25 北京金和软件股份有限公司 A kind of method that APP applications to generation carry out cluster packing
CN104615433B (en) * 2015-02-11 2018-01-26 深圳市南方众悦供应链有限公司 A kind of method that cluster packing is carried out to the APP applications generated in development platform
CN104615433A (en) * 2015-02-11 2015-05-13 北海和思科技有限公司 Method for packaging clusters of APPs (applications) generated on development platforms
CN104899025A (en) * 2015-05-18 2015-09-09 北京奇虎科技有限公司 Method and device for generating channel package
WO2017028733A1 (en) * 2015-08-20 2017-02-23 广州爱九游信息技术有限公司 Software installation package packaging method, device and system and machine-readable storage medium
CN105068818B (en) * 2015-08-26 2019-02-12 网易(杭州)网络有限公司 Generate the method, apparatus of channel packet and method, the system of Mass production channel packet
CN105068818A (en) * 2015-08-26 2015-11-18 网易(杭州)网络有限公司 Channel package generation method and apparatus and channel package batch generation method and system
CN105574369A (en) * 2015-12-14 2016-05-11 网易(杭州)网络有限公司 Method, device and system for re-signing application program
CN106027517A (en) * 2016-05-19 2016-10-12 福建创意嘉和软件有限公司 Game pack distribution method and apparatus supporting multiple channels
CN106027517B (en) * 2016-05-19 2019-04-02 福州靠谱网络有限公司 A kind of game subpackage method and apparatus supported by all kinds of means
CN106126205A (en) * 2016-06-14 2016-11-16 武汉斗鱼网络科技有限公司 The rapid batch of a kind of Android program installation kit generates method and system
CN106843843A (en) * 2016-12-23 2017-06-13 光锐恒宇(北京)科技有限公司 Installation kit Mass production method and device
CN106843939A (en) * 2016-12-30 2017-06-13 百度在线网络技术(北京)有限公司 The generation method and device of the channel bag of application
CN107580049A (en) * 2017-09-05 2018-01-12 同程网络科技股份有限公司 A kind of expansible efficient APP channels bag packing platform
CN107769924A (en) * 2017-09-11 2018-03-06 福建新大陆支付技术有限公司 Verify the method and system of POS APK signatures
CN108628617A (en) * 2018-05-18 2018-10-09 深圳爱加密科技有限公司 A kind of packaging method by all kinds of means of Android application program
CN108897562A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Installation kit update method, device, medium and equipment
CN108897562B (en) * 2018-06-27 2022-08-09 腾讯科技(深圳)有限公司 Installation package updating method, device, medium and equipment
CN109542461A (en) * 2018-10-16 2019-03-29 深圳壹账通智能科技有限公司 Dissemination method, terminal device and the medium of application installation package
CN109408076A (en) * 2018-10-22 2019-03-01 海南新软软件有限公司 A kind of APP batch hair version method, apparatus and system
CN110830559A (en) * 2019-10-24 2020-02-21 北京城市网邻信息技术有限公司 Channel package automatic batch processing method, device, equipment and storage medium
CN111381865A (en) * 2020-04-01 2020-07-07 深圳传趣网络技术有限公司 Packaging method, device and equipment of game application and storage medium

Similar Documents

Publication Publication Date Title
CN103729186A (en) Method for generating multi-channel apk file packages in batches
CN103064666B (en) One software distribution method by all kinds of means and system
CN105893008A (en) Method and device for customizing multi-channel installation package
CN102855178B (en) Method and device for generating Mock base during unit test
CN112835560A (en) WEB multi-terminal low-code intelligent software development platform
CN104123126B (en) It is a kind of to be used to generate the method and apparatus for merging conflict record list
US10853079B2 (en) Dependency-based streamlined processing
CN107077361A (en) Configuration conversion for application deployment
US20160124739A1 (en) Minimizing Image Copying During Partition Updates
CN105893094A (en) Achieving method and device for application program plug-in
CN102665231B (en) Method of automatically generating parameter configuration file for LTE (Long Term Evolution) system
CN106557307B (en) Service data processing method and system
CN105068818A (en) Channel package generation method and apparatus and channel package batch generation method and system
CN105487907A (en) Difference package manufacturing method and device
CN104834510A (en) Method and device for generating CAN (Controller Area Network) protocol code source file
CN105573734A (en) Method and device for providing SDK file
CN108073390A (en) It is managed collectively the method, apparatus and system of configuration file in multiple engineerings
CN112463149B (en) Software-defined satellite-oriented reusable code library construction method and device
CN111966760B (en) Test data generation method and device based on Hive data warehouse
CN104881311A (en) Method and apparatus for judging version compatibility
CN107479939A (en) A kind of APK installation kits repeat the implementation method of packing
CN104166552A (en) Transplantable memory bitmap graphics library application method
CN106951240B (en) Batch packaging method for user customized products
CN105469437A (en) Client-side Flash film manufacturing method, device and system
CN109933325A (en) A kind of dex file construction method, apparatus and system

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: 20140416