CN107797808A - Application installation package processing method and processing device - Google Patents

Application installation package processing method and processing device Download PDF

Info

Publication number
CN107797808A
CN107797808A CN201610797656.XA CN201610797656A CN107797808A CN 107797808 A CN107797808 A CN 107797808A CN 201610797656 A CN201610797656 A CN 201610797656A CN 107797808 A CN107797808 A CN 107797808A
Authority
CN
China
Prior art keywords
channel
mark
application
bag
catalogue
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
CN201610797656.XA
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610797656.XA priority Critical patent/CN107797808A/en
Publication of CN107797808A publication Critical patent/CN107797808A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of application installation package processing method and processing device;Method includes:Obtain the channel mark of the installation kit of application and the channel to be released of the application;Unpacking processing is carried out to the installation kit of application, obtains the bibliographic structure in the installation kit;It is positioned for storing the signing messages catalogue of signing messages in the bibliographic structure, channel mark file corresponding with the channel mark is created in the signing messages catalogue;The bibliographic structure for having channel mark file to establishment carries out packing processing, obtains the channel bag of the corresponding channel to be released.Implement the present invention, can efficiently form the channel bag for different channels.

Description

Application installation package processing method and processing device
Technical field
The present invention relates to the encapsulation of the installation kit of application and distribution technology, more particularly to a kind of application installation package processing method And device.
Background technology
With flourishing for internet industry particularly mobile Internet, the kind of Mobile solution is particularly using (App) Class and quantity rapidly increase, all trades and professions be all opened to is available in mobile terminal installation application, user can according to demand from Different applying for channel needs are installed and used in mobile terminal.
It is various that the channel of application is obtained at present, diversified trend occurs, so that Android is applied as an example, obtains application installation package Channel include Android official apply shop, and numerous third party manufacturers customize apply shop, therefore, it is necessary to right The channel of the installation kit of application is identified, and is on the one hand understood for user and install the sources applied, another aspect can be with The situation for being downloaded installation application from different channels to user based on the mark of channel is counted, and is applied so as to distribute rationally not With reaching the standard grade for channel.
For correlation technique by the way of channel mark is added in the installation kit in application, this needs the magnanimity uploaded to user Installation kit in addition channel information, such as the processing recompilated to installation kit or signed again.
This mode that channel mark is added in the installation kit of application that correlation technique provides, take and can consume a large amount of Computing resource, also have impact on the efficiency for issuing of reaching the standard grade of the installation kit of different channels.
In summary, how the installation kit that efficient identification is issued to different channels, so as to ensure the installation kit of different channels Efficiency for issuing of reaching the standard grade, there is no effective solution.
The content of the invention
The embodiment of the present invention provides a kind of application installation package processing method and processing device, can efficiently be formed for different channels Channel bag.
What the technical scheme of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of application installation package processing method, methods described includes:
Obtain the channel mark of the installation kit of application and the channel to be released of the application;
Unpacking processing is carried out to the installation kit of application, obtains the bibliographic structure in the installation kit;
It is positioned for storing the signing messages catalogue of signing messages in the bibliographic structure, in the signing messages catalogue It is middle to create channel mark file corresponding with the channel mark;
The bibliographic structure for having channel mark file to establishment carries out packing processing, obtains the corresponding channel to be released Channel bag.
Second aspect, the embodiment of the present invention provide a kind of application installation package processing unit, and described device includes:
Acquiring unit, for obtaining the channel mark of the installation kit of application and the channel to be released of the application;
Unwrapper unit, for carrying out unpacking processing to the installation kit of application, obtain the bibliographic structure in the installation kit;
Creating unit, for being positioned for storing the signing messages catalogue of signing messages in the bibliographic structure, in institute State and channel mark file corresponding with the channel mark is created in signing messages catalogue;
Packaged unit, the bibliographic structure for having channel mark file to establishment carry out packing processing, obtain correspondingly The channel bag of the channel to be released.
The embodiment of the present invention has such beneficial effect:
In the signing messages catalogue of the bibliographic structure of installation kit during add file, due to not to its in bibliographic structure He is modified at catalogue, and channel is implanted into installation kit by way of adding channel mark file in signing messages catalogue Information, installation kit need not both be compiled again, without to be signed again to installation kit, merely relate to installation kit unpacking and Packaging operation, so as to be obviously improved the efficiency for forming channel bag, it ensure that reach the standard grade efficiency of the channel bag in different channels.
Brief description of the drawings
Fig. 1 is one optional schematic flow sheet of application installation package processing method in the embodiment of the present invention;
Fig. 2 is an optional software and hardware structure schematic diagram of application installation package processing unit in the embodiment of the present invention;
Fig. 3-1 is an optional schematic diagram of a scenario of application installation package processing method in the embodiment of the present invention;
Fig. 3-2 is an optional schematic diagram of a scenario of application installation package processing method in the embodiment of the present invention;
Fig. 4-1 is an optional schematic flow sheet of application installation package processing method in the embodiment of the present invention;
Fig. 4-2 is an optional schematic flow sheet of application installation package processing method in the embodiment of the present invention;
Fig. 4-3 is an optional schematic flow sheet of application installation package processing method in the embodiment of the present invention;
Fig. 5-1 is an optional operation chart of user's lateral terminal installation channel bag in the embodiment of the present invention;
Fig. 5-2 is that user can to one of channel bag packing platform upload installation kit and channel mark in the embodiment of the present invention The operation chart of choosing;
Fig. 6-1 is the optional Technical Architecture schematic diagram that channel bag is packed in the embodiment of the present invention;
Fig. 6-2 is the schematic diagram that installation kit unpacks the optional bibliographic structure of the latter in the embodiment of the present invention;
Fig. 6-3 is to create an optional signal for having empty file in the embodiment of the present invention in the bibliographic structure of installation kit Figure;
Fig. 6-4 be in the embodiment of the present invention to the name modifications of the empty file created in the bibliographic structure of installation kit after One optional schematic diagram;
Fig. 6-5 is an optional schematic flow sheet of application installation package processing method in the embodiment of the present invention;
Fig. 7 is an optional structural representation of application installation package processing unit in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention will be described in further detail.It is it should be appreciated that mentioned herein Embodiment only to explain the present invention, is not intended to limit the present invention.In addition, embodiment provided below is to be used to implement The section Example of the present invention, rather than the whole embodiments for implementing the present invention are provided, in the case where not conflicting, the present invention is implemented Example record technical scheme can be in any combination mode implement.
Before the present invention will be described in further detail, the noun and term being related in the embodiment of the present invention are said Bright, the noun and term being related in the embodiment of the present invention are applied to following explanation.
Installation kit, for, to realize the package file of corresponding function, by taking Android system as an example, being installed for terminal installation application Wrap as the file of APK encapsulation format.
Channel, user obtain the approach of the installation kit of application.
By taking Android as an example, including Android official application shop, it is third-party apply shop, cell phone manufacturer is carried using business Shop and operator's channel etc..
Channel mark, for the information of unique mark channel, such as sequence number, title and combination form.
Channel bag:User is directed to the installation kit for different channels of same issue, and the mark of channel is carried in installation kit Know.For example, same version application can issue the installation kit of corresponding multiple support channels, the peace for a channel can also be issued Dress bag.
Inventor is having found to identify in the application in such a way using next in the practice of the invention Which applies shop (channel) from:
1) each channel is directed to, channel mark is implanted into the source code structure of application, and completely compile, pack Form installation kit.
So that Android is applied as an example, packing is compiled (binary code) in the bibliographic structure based on source code package Before, channel mark is added in the AndroidManifest in the bibliographic structure of source code package, then, source code package is carried out Compiling and packing obtain channel bag.
Exemplified by needing to obtain channel 1 to channel 100 altogether the channel bag of 100 channels, for channel 1, in application Add channel 1 in AndroidManifest in the bibliographic structure of source code package to identify, then, to the catalogue knot of source code package Structure is compiled packing and obtains the channel bag of channel 1 and signed, and above-mentioned similar behaviour is carried out for channel 2 to channel 100 Make, by the compiling packaging operation of 100 times, obtain corresponding channel 1 to the channel bag of channel 100.
2) each channel is directed to, addition channel mark is unpacked to existing installation kit and repacks and signs.
Still so that Android is applied as an example, by ApkTool instruments unpack signed installation kit, Ran Houxiu The channel mark of AndroidManifest in the bibliographic structure of installation kit is changed into, is finally entered again by ApkTool in object construction Row packing and signature.
Exemplified by needing to obtain channel 1 to channel 100 altogether the channel bag of 100 channels, for channel 1, corresponding application Installation kit unpacked to obtain bibliographic structure therein, in AndroidManifest add channel 1 identify, then, to peace The bibliographic structure of dress bag is packed to obtain the channel bag of channel 1 and signed, and is carried out for channel 2 to channel 100 above-mentioned Similar operation, packing and signature operation by 100 times, corresponding channel 1 is obtained to the channel bag of channel 100.
As can be seen that aforesaid way is related to substantial amounts of compiling or signature operation, and current channel quantity is quite a lot of, uses Often issue the redaction of an application in family, it is necessary to which the channel of corresponding magnanimity forms channel bag, consumption calculations resource, influences application Redaction efficiency for issuing.
In view of the above-mentioned problems, the embodiment of the present invention provides a kind of application installation package processing method, referring to the application shown in Fig. 1 One optional schematic flow sheet of packet processing method is installed, obtains the installation kit of application and the channel to be released of application Channel mark (step 101), unpacking processing is carried out to the installation kit of application, obtains the bibliographic structure (step 102) in installation kit; It is positioned for storing the signing messages catalogue of signing messages in bibliographic structure, establishment and channel mark in signing messages catalogue Corresponding channel mark file (step 103);The bibliographic structure for having channel mark file to establishment carries out packing processing, obtains pair Answer the channel bag (step 104) of channel to be released;Alternatively, publication channel bag is to corresponding channel (step 105).
Inventor has found, in the signing messages catalogue of the bibliographic structure of installation kit during add file, due to not to mesh Other catalogues in directory structures are modified, therefore are being installed by way of road is added in signing messages catalogue and identifies file Channel information is carried in bag, installation kit need not both be compiled again, without to sign to installation kit again, merely relates to pacify Unpacking and the packaging operation of bag are filled, so as to be obviously improved the efficiency for forming channel bag, ensure that channel bag in different channels Reach the standard grade efficiency.
The embodiment of the present invention also provides to perform the application installation package processing of the application installation package processing method shown in Fig. 1 Device, on hardware view, exemplarily, the resource that application installation package processing unit can be based on server or server cluster Such as computing resource (such as processor) and the communication resource (such as network interface) realization, on software view, application installation package processing dress Put executable instruction (including such as program, mould that may be embodied as being stored in the storage medium of server or server cluster The computer executable instructions of block etc).
As described above, being based on server or the realization of server cluster resource with application installation package processing unit, show referring to Fig. 2 The optional software and hardware structure schematic diagram of one of the application installation package processing unit 14 gone out, application installation package processing unit 14 include Hardware layer, intermediate layer, operating system layer and software layer.However, it will be understood by those of skill in the art that application shown in Fig. 2 The structure of installation kit processing unit 14 is merely illustrative, does not form the restriction to the structure of application installation package processing unit 14.For example, Application installation package processing unit 14 can be set compared with the more components of Fig. 2 according to needs are implemented, or needs to omit according to implementation Setting unit component.
The hardware layer of application installation package processing unit 14 includes processor 141, input/output interface 143, storage medium 144 and network interface 142, component can be through system bus connection communication.
Processor 141 can use central processing unit (CPU), microprocessor (MCU, Microcontroller Unit), Application specific integrated circuit (ASIC, Application Specific Integrated Circuit) or logic programmable gate array (FPGA, Field-Programmable Gate Array) is realized.
Input/output interface 143 can use such as display screen, touch-screen, loudspeaker input/output device to realize.
Storage medium 144 can use the non-volatile memory mediums such as flash memory, hard disk, CD to realize, can also use double The volatile storage mediums such as multiplying power (DDR, Double Data Rate) dynamic buffering are realized, wherein being stored with to perform above-mentioned The executable instruction of application installation package processing method.
Exemplarily, storage medium 144 can be set in same place jointly with application installation package processing unit 14, also may be used To be set relative to the place remote of application installation package processing unit 14, or relative application installation package processing unit 14 is local and different Ground distribution is set.Network interface 142 provides the access energy of the external data storage medium 144 that such as strange land is set to processor 141 Power, exemplarily, network interface 142 can be based on near-field communication (NFC, Near Field Communication) technology, indigo plant The short-range communication that tooth (Bluetooth) technology, purple honeybee (ZigBee) technology are carried out, furthermore it is also possible to realize such as based on code division Multiple access (CDMA, Code Division Multiple Access), WCDMA (WCDMA, Wideband Code Division Multiple Access) etc. communication standard and its evolution standard communication.
Drive layer include be used for for operating system 146 identify hardware layer and with the middleware 145 of each assembly communication of hardware layer, Such as can be the set of the driver of each component for hardware layer.
Operating system 146 is used to provide user oriented graphical interfaces, exemplarily, including plug-in unit icon, desktop background And application icon, operating system 146 support user via control of the graphical interfaces to application installation package processing unit 14.The present invention Embodiment is not limited the software environment such as OS Type, version of above-mentioned application installation package processing unit 14, such as can To be Android operation system, iOS operating systems, (SuSE) Linux OS or UNIX operating system etc..
Carried out referring to a typical application scenarios of the application installation package processing method provided by the invention shown in Fig. 3-1 Illustrate, in the application installation package processing system 10 shown in Fig. 3-1, channel is embodied as with foregoing application installation package processing unit 12 exemplified by bag packing platform, channel bag packing platform 12 provides patterned setting interface to developer 11, supports developer 11 The installation kit of application to be released is uploaded, and supports to set the channel for needing installation kit needs to issue in graphical interfaces namely answers With shop 13, channel bag packing platform 12 is formed the channel bag 13 to tackling each channel based on installation kit, is distributed to corresponding canal Road.The channel bag that user's lateral terminal 14 downloads different channels is installed, process of the user's lateral terminal 14 in the channel bag of installation In can show the mark of channel to prompt to install source, also, channel bag packing platform 12 installs canal in user's lateral terminal 14 Corresponding channel mark is obtained during road bag, the same reality for applying the channel bag issued to different channels is directed to so as to count Border installation situation.
Illustrated in conjunction with the implementation process of the application installation package processing scene shown in Fig. 4-1 couples of Fig. 3-1.
Referring to an optional schematic flow sheet of the application installation package processing method shown in Fig. 4-1, comprise the following steps:
Step 201, graphical interfaces of the channel bag packing platform loading based on Web.
Installation kit is uploaded by the graphical interfaces batch based on Web for developer and batch setting is treated for installation kit The channel mark of the channel of issue.
Step 202, channel bag packing platform obtains installation kit and the application for the application that user (such as developer) uploads The channel mark of channel to be released.
Step 203, channel bag packing platform calls untar, carries out unpacking processing to the installation kit of application, is pacified Bibliographic structure in dress bag.
Exemplarily, when the APK bags that the installation kit of application is applied for Android, because APK bags are a kind of compressed format, because This channel bag packing platform carries out unpacking processing to APK bags as compressed package.
Step 204, channel bag packing platform is positioned for storing the signing messages catalogue of signing messages in bibliographic structure.
By taking the installation kit of Android application as an example, the entitled META-INFO of signing messages catalogue therein, equivalent to one Packet, file and subdirectory therein obtain the accreditation and explanation of the platforms of Java 2, for configuring application program, extension journey Sequence, Classloader and service etc..
Subsequent step 205 creates and channel mark pair to step 208 to channel bag packing platform in signing messages catalogue The processing for the channel mark file answered illustrates.
For an installation kit, generally require to form corresponding channel bag for substantial amounts of channel, in order to lift shape Into the efficiency of channel bag, by building the copy of bibliographic structure, mass creates the mode shape of channel mark file in copy Into channel bag, illustrated in step 205.
Step 205, channel bag packing platform creates the copy of bibliographic structure corresponding with channel quantity to be released.
Step 206, channel bag pack platform in the signing messages catalogue of the copy of each bibliographic structure it is corresponding create with it is each File corresponding to channel mark.
For example, it is assumed that need to be formed corresponding channel 1 to the channel bag of channel 100, then after being unpacked for installation kit, formed 100 copies of bibliographic structure after unpacking, the file corresponding to the corresponding channel mark for creating corresponding channel 1 to 100 in copy.
Step 207, in order to further be lifted at the efficiency of establishment file corresponding with channel mark in signing messages catalogue, For the copy of each bibliographic structure after unpacking, channel bag packing platform creates in signing messages catalogue to be named with channel mark Empty file.
Exemplarily, the empty file named with specific names is created in signing messages catalogue.
Step 208, channel bag packing platform changes the entitled and channel mark of created empty file according to channel mark Title corresponding to knowledge.
For example, it is assumed that need to be formed corresponding channel 1 to the channel bag of channel 100, then after being unpacked for installation kit, formed 100 copies of bibliographic structure after unpacking, first, disposably create in signing messages catalogue and created with canal in 100 copies The empty file of road mark name, then, is correspondingly changed in copy 1 in copy 100 using the channel mark of channel 1 to channel 100 The title of file, lifts treatment effeciency in a manner of mass.
Step 209, channel bag packing platform calls strapping tool to have the bibliographic structure of channel mark file to carry out to establishment Packing is handled, and obtains the channel bag of corresponding channel to be released.
Exemplarily, by taking the installation kit of Android as an example, calling APKTOOL instruments, (establishment has to the bibliographic structure after unpacking To channel mark corresponding to empty file) be packed into the channel bag of corresponding corresponding channel, due to being in signing messages catalogue Channel mark information is implanted, therefore the installation kit applied need not re-start signature processing.
Step 210, channel bag packs platform publication channel bag to corresponding channel.
Exemplarily channel bag packs platform by transmitting the corresponding channel bag formed using shop issuing interface with each, Reached the standard grade channel bag using shop.
Step 211, channel obtains the request of channel bag in response to user's lateral terminal, and channel bag is sent to user's lateral terminal, Channel bag is installed for user side terminal operating.
It is pointed out that by exemplified by a channel publication channel bag and exemplified by the operation installation of end side in Fig. 4-1 Illustrate, the processing for other channel publication channel bags is referred to step 210 and step 211 is implemented.
In one embodiment, illustrate referring to an optional flow of the application installation package processing method shown in Fig. 4-2 Figure, it is further comprising the steps of in user's lateral terminal after channel system downloads channel bag based on Fig. 4-1:
Step 212, user side terminal operating installation channel bag.
Step 213, the channel mark file in channel bag of the channel bag packing platform based on operation installation, obtains operation The channel mark of channel bag.
Exemplarily, channel bag packing platform can be by Java code (it is of course also possible to by other forms code such as C code) read channel mark file obtain corresponding channel mark, by channel mark be assigned to installation kit operation when be used for preserve The variable of channel mark, so as to, during user side terminal operating installation kit, the sources of channel bag are prompted, As shown in fig. 5-1, the channel in the institute source of user's channel bag is prompted, such as prompts the application that user will install to be applied from which Shop, so as to decide whether to continue to install channel bag for user, realize the effect in prompting user's channel bag source.
In one embodiment, illustrate referring to an optional flow of the application installation package processing method shown in Fig. 4-3 Figure, based on Fig. 4-2, after the channel mark for the channel bag that channel bag packing platform gets the installation of user side terminal operating, It can also comprise the following steps:
Step 214, the channel mark for the channel bag that channel bag packing platform is installed based on different terminals side, is counted same Apply the installation distribution situation in different channels.
User's lateral terminal uploads the mark of channel bag, exemplarily, ginseng to channel bag packing platform when running channel bag See Fig. 3-2, user's lateral terminal 14 uploads the application mark of institute's installation channel bag in operation channel Bao Shixiang channels bag packing platform 14 Know and channel mark, channel bag packing platform run the number of installation with " application identities-channel mark to different channel coatings Data structure as knowledge-operation installation number " stores in database 15.Channel bag packing platform 12 is based in database 15 The number of the different channels coating operation installation of same application, forms the same installation distribution situation applied in different channels, uses In understanding the situation in the user installation of the corresponding channel of channel coating of different channels issue for user, so as to realize subsequently to not The effect optimized with channel publication channel bag.
For example, it is assumed that user has issued the channel bag identified with channel 1 by channel bag packing platform to channel 1, lead to Cross channel bag packing platform and the channel bag identified with channel 2, mistake of user's lateral terminal in operation channel bag have been issued to channel 2 Channel bag packing platform uploads application identities and channel mark in journey, and channel bag packing platform counts the different channel bags of application The number of installation is run, as the subsequently reference to channel publication channel bag, if for example, the operation peace of the channel bag of channel 1 The number of dress is more than the number of the channel coating operation installation of channel 2, then subsequently can in the publication channel bag first of channel 1, from And cause the popularization installation degree of the application of redaction.
Below again by taking the installation kit of Android application as an example, the process of the formation channel bag to foregoing description illustrates.
The technical scheme Organization Chart packed referring to the channel bag shown in Fig. 6-1, it is real in the Technical Architecture of channel bag packing Existing channel guarantees the repair free of charge the function of changing engine, and alternatively, channel guarantees the repair free of charge the function reality for changing engine as platform of being packed independently of channel bag Body, or, channel bag packing platform intergration channel is guaranteed the repair free of charge to change and is drawn as the functional entity for being embedded into channel bag packing platform The function of holding up.
Channel, which is guaranteed the repair free of charge, to be changed engine and is responsible for the channels of different channels numbering being added to APK bags, and channel bag is packed platform intergration Channel, which is guaranteed the repair free of charge, changes engine, and alternatively, as shown in Fig. 5-2, channel bag packing platform provides a user batch packing channel bag etc. Shortcut function operation interface instrument, developer can be directed to the channel for uploading disposable corresponding multiple support channels in graphical interfaces Mark, channel bag packing platform is guaranteed the repair free of charge by integrated channel changes APK addition corresponding channel mark of the engine to upload.
APK bag packings are achieved in that in the embodiment of the present invention:Because the APK bags of Android applications are pressure in itself Contracting form, therefore APK bags are decompressed as a compressed file (such as zip file bag), preserving the catalogue of signing messages One empty file of lower addition, and empty file is named with channel mark (such as channel title), due to the catalogue to signing messages Modification and also need not sign again, while be not related to recompility to installation kit etc., only by " decompression-addition yet The such step of channel mark-packing " can complete batches of channel bag packaging operation, so as to be obviously improved channel bag batch Measure the time of packing.
Illustrated with reference to the main flow of the technical scheme of Fig. 6-1 to Fig. 6-5 pairs of channel bag.
First, user uploads APK bags and channel number to channel bag packing platform.Because APK bags are a zip files, because This channel bag packing platform directly decompresses APK bags, and the root obtained after decompression has a META-INF as in fig. 6-2 Catalogue 61, for storing signing messages.
Inventor has found that the packing flow of Android applications has individual feature, if adding ineffective law, rule, etc. in META-INF catalogues Part, then installation kit need not be signed again.Therefore, by corresponding different channels in ineffective law, rule, etc. corresponding to the addition of ETA-INF catalogues Part, can in installation kit one channel of unique mark.
Secondly, empty file is added into APK bags with script.
Channel bag packing platform adds empty file using scripted code to the APK bags after decompression, and the prefix of empty file is qqpimsecure。
Following code illustrates the processing procedure of addition empty file using python scripts as example:
Import zipfile zipped=zipfile.ZipFile (your_apk, ' a', zipfile.zip_ DEFLATED)
Empty_channel_file=
" META-INF/qqpimsecure_ { channel } " .format (channel=your_channel)
zipped.write(your_empty_file,empty_channel_file)
The catalogue after empty channel file is added, more one of META-INFO catalogues are entitled as shown in Fig. 6-3 Qqpimsecure_123 empty file 62.
Secondly, the channel number of the entitled target channel of empty file is replaced.
The structure of installation kit after replacement is as shown in Fig. 6-4, for example the channel number of the channel bag to be issued is: 123456789, then empty file qqpimsecure_123 file name is revised as:Qqpimsecure_123456789 63, New APK bags (the channel bag for also referred to as corresponding to channel 123456789) are packed into catalogue structure, so far complete a canal The packing flow of road bag.
Again, dynamic reads and sets channel number when APK bags are run.
For APK bags in user side terminal operating, channel bag packing platform passes through Java code, C code, Python code etc. Fotmat code reads the channel file below META-INF catalogues, and channel number is assigned to the preservation channel number inside program Variable, so as to, when program run setting installation kit channel number.
Above-mentioned flow institute it is functional can be integrated into channel and guarantee the repair free of charge change engine, by channel bag packing platform pass through calling Channel, which is guaranteed the repair free of charge, to be changed engine and completes above-mentioned channel bag packing processing.
Channel bag packing platform is embodied based on Web online packaging system in embodiments of the present invention, is integrated with channel Guarantee the repair free of charge and change engine, good interface alternation is provided for packing, as long as user uploads APK bags, set corresponding channel number, channel Bag packing platform can quickly form the channel bag of corresponding different channels.
The logical functional structure of aforementioned applications installation kit processing unit is illustrated, installed referring to the application shown in Fig. 7 One optional structural representation of bag processing unit 70, including:
Acquiring unit 71, for obtaining the channel mark of the installation kit of application and the channel to be released of application;
Unwrapper unit 72, for carrying out unpacking processing to the installation kit of application, obtain the bibliographic structure in installation kit;
Creating unit 73, for being positioned for storing the signing messages catalogue of signing messages in bibliographic structure, signing Channel mark file corresponding with channel mark is created in message catalog;
Packaged unit 74, the bibliographic structure for having channel mark file to establishment carry out packing processing, obtain corresponding treat The channel bag of publication channel;
Release unit 75, for publication channel bag to corresponding channel.
In one embodiment, creating unit 73, it is additionally operable to create bibliographic structure corresponding with channel quantity to be released Copy, it is corresponding in the signing messages catalogue of the copy of each bibliographic structure to create file corresponding with each channel mark.
In one embodiment, creating unit 73, it is additionally operable to create in signing messages catalogue with channel mark name Empty file.
In one embodiment, creating unit 73, it is additionally operable to create in signing messages catalogue with specific names name Empty file, and change according to channel mark the corresponding title of entitled and channel mark of created empty file.
In one embodiment, acquiring unit 71, it is additionally operable in the end side operation of channel coating, the installation based on operation The channel mark of the channel bag of channel mark file acquisition operation in bag.
In one embodiment, acquiring unit 71, it is additionally operable to obtain accordingly by Java code reading channel mark file Channel mark, for preserving the variable of channel mark when channel mark is assigned into installation kit operation.
In one embodiment, device also includes:
Statistic unit 76, for the channel mark for the channel bag installed based on different terminals side, count same apply The installation distribution situation of different channels.
In practical application, Fig. 7 shows that each unit can be realized by the hardware resource of the hardware layer shown in Fig. 2, such as obtains Unit 71 can be realized that unwrapper unit 72, creating unit 73 and packaged unit 75 can be passed through by processor 141 by network interface 142 Perform executable instruction in storage medium 144 and realize.
In summary, the embodiment of the present invention has the advantages that:
1) in the signing messages catalogue of the bibliographic structure of installation kit during add file, due to not in bibliographic structure Other catalogues are modified, and canal is carried in installation kit by way of adding channel mark file in signing messages catalogue Road information, i.e., installation kit need not be compiled again, without to be signed again to installation kit, merely relate to the unpacking of installation kit And packaging operation, so as to be obviously improved the efficiency for forming channel bag, it ensure that reach the standard grade efficiency of the channel bag in different channels.
2) channel in the institute source of user's channel bag is prompted, which the application that such as prompting user will install apply business from Shop, so as to decide whether to continue to install channel bag for user, realize the effect in prompting user's channel bag source.
3) the same installation distribution situation applied in different channels is formed, for understanding for user in the issue of different channels Channel is coated with the situation of the user installation of corresponding channel, so as to realize to subsequently being optimized to different channel publication channel bags Effect.
It will be appreciated by those skilled in the art that:Journey can be passed through by realizing all or part of step of above method embodiment Sequence instructs related hardware to complete, and foregoing program can be stored in a computer read/write memory medium, and the program exists During execution, execution the step of including above method embodiment;And foregoing storage medium includes:Flash memory device, deposit at random Access to memory (RAM, Random Access Memory), read-only storage (ROM, Read-Only Memory), magnetic disc or CD etc. is various can be with the medium of store program codes.
Or if the above-mentioned integrated unit of the present invention is realized in the form of software function module and is used as independent product Sale in use, can also be stored in a computer read/write memory medium.Based on such understanding, the present invention is implemented The part that the technical scheme of example substantially contributes to correlation technique in other words can be embodied in the form of software product, The computer software product is stored in a storage medium, including some instructions are causing a computer installation (can be with It is personal computer, server or network equipment etc.) perform all or part of each embodiment methods described of the present invention. And foregoing storage medium includes:Flash memory device, RAM, ROM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of application installation package processing method, it is characterised in that methods described includes:
Obtain the channel mark of the installation kit of application and the channel to be released of the application;
Unpacking processing is carried out to the installation kit of application, obtains the bibliographic structure in the installation kit;
It is positioned for storing the signing messages catalogue of signing messages in the bibliographic structure, is created in the signing messages catalogue Build channel mark file corresponding with the channel mark;
The bibliographic structure for having channel mark file to establishment carries out packing processing, obtains the canal of the corresponding channel to be released Road bag.
2. the method as described in claim 1, it is characterised in that described to be created and the channel in the signing messages catalogue Channel mark file corresponding to mark, including:
The copy of bibliographic structure corresponding with channel quantity to be released is created, in the signing messages of the copy of each bibliographic structure It is corresponding in catalogue to create channel mark file corresponding with each channel mark.
3. the method as described in claim 1, it is characterised in that described to be created and the channel in the signing messages catalogue Channel mark file corresponding to mark, including:
The empty file named with the channel mark is created in the signing messages catalogue.
4. method as claimed in claim 3, it is characterised in that described to be created in the signing messages catalogue with the channel The empty file of name is identified, including:
The empty file named with specific names is created in the signing messages catalogue, and changes the title of created empty file For title corresponding with the channel mark.
5. the method as described in claim 1, it is characterised in that
In the end side operation of channel coating, fortune described in the channel mark file acquisition in the channel bag based on the operation The channel mark of capable channel bag.
6. method as claimed in claim 5, it is characterised in that the channel mark text in the installation kit based on the operation Part obtains the channel mark of the channel bag of the operation, including:
The channel mark file is read by code and obtains corresponding channel mark, channel mark is assigned to the installation kit For preserving the variable of channel mark during operation.
7. the method as described in claim 1, it is characterised in that methods described also includes:
The channel mark of channel bag based on the installation of different terminals side, count the same installation distribution feelings applied in different channels Condition.
8. the method as described in claim 1, it is characterised in that methods described also includes:To the channel issue pin to be released To the channel bag of channel generation.
9. a kind of application installation package processing unit, it is characterised in that described device includes:
Acquiring unit, for obtaining the channel mark of the installation kit of application and the channel to be released of the application;
Unwrapper unit, for carrying out unpacking processing to the installation kit of application, obtain the bibliographic structure in the installation kit;
Creating unit, for being positioned for storing the signing messages catalogue of signing messages in the bibliographic structure, in the label Channel mark file corresponding with the channel mark is created in name message catalog;
Packaged unit, for establishment have channel mark file the bibliographic structure carry out packing processing, corresponded to described in The channel bag of channel to be released.
10. device as claimed in claim 9, it is characterised in that
The creating unit, it is additionally operable to create the copy of bibliographic structure corresponding with channel quantity to be released, in each catalogue It is corresponding to create channel mark file corresponding with each channel mark in the signing messages catalogue of the copy of structure.
CN201610797656.XA 2016-08-31 2016-08-31 Application installation package processing method and processing device Pending CN107797808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610797656.XA CN107797808A (en) 2016-08-31 2016-08-31 Application installation package processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610797656.XA CN107797808A (en) 2016-08-31 2016-08-31 Application installation package processing method and processing device

Publications (1)

Publication Number Publication Date
CN107797808A true CN107797808A (en) 2018-03-13

Family

ID=61529618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610797656.XA Pending CN107797808A (en) 2016-08-31 2016-08-31 Application installation package processing method and processing device

Country Status (1)

Country Link
CN (1) CN107797808A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521349A (en) * 2018-03-15 2018-09-11 福建天泉教育科技有限公司 A kind of method and system of the installation number of statistics installation kit
CN108920155A (en) * 2018-05-04 2018-11-30 天津猎鹰网络技术有限公司 Software installation treating method and apparatus
CN109542461A (en) * 2018-10-16 2019-03-29 深圳壹账通智能科技有限公司 Dissemination method, terminal device and the medium of application installation package
CN111443918A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Channel access method and device for business object installation package
CN111610984A (en) * 2020-05-09 2020-09-01 上海万间信息技术有限公司 Plug-in-based android application packaging and distributing method and system and application terminal
CN113094121A (en) * 2021-04-30 2021-07-09 腾讯科技(成都)有限公司 Data processing method, data processing equipment and computer readable storage medium
CN113407932A (en) * 2021-06-18 2021-09-17 湖南快乐阳光互动娱乐传媒有限公司 Channel identification reporting method, system and storage medium
CN113535140A (en) * 2020-04-16 2021-10-22 武汉斗鱼网络科技有限公司 Parameter packaging method, device, equipment and storage medium
CN113127005B (en) * 2021-05-08 2024-05-24 抖音视界有限公司 Method and device for generating executable file and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077503A (en) * 2014-07-22 2014-10-01 百度在线网络技术(北京)有限公司 Processing method and device for APK (Android Package) files
CN104090946A (en) * 2014-06-30 2014-10-08 广州华多网络科技有限公司 Method and device for adding information to application installation package
WO2014187255A1 (en) * 2013-08-01 2014-11-27 中兴通讯股份有限公司 Application packaging device and method
CN105893008A (en) * 2015-11-16 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and device for customizing multi-channel installation package

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014187255A1 (en) * 2013-08-01 2014-11-27 中兴通讯股份有限公司 Application packaging device and method
CN104346184A (en) * 2013-08-01 2015-02-11 中兴通讯股份有限公司 Application packaging device and application packaging method
CN104090946A (en) * 2014-06-30 2014-10-08 广州华多网络科技有限公司 Method and device for adding information to application installation package
CN104077503A (en) * 2014-07-22 2014-10-01 百度在线网络技术(北京)有限公司 Processing method and device for APK (Android Package) files
CN105893008A (en) * 2015-11-16 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and device for customizing multi-channel installation package

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521349A (en) * 2018-03-15 2018-09-11 福建天泉教育科技有限公司 A kind of method and system of the installation number of statistics installation kit
CN108920155A (en) * 2018-05-04 2018-11-30 天津猎鹰网络技术有限公司 Software installation treating method and apparatus
CN109542461A (en) * 2018-10-16 2019-03-29 深圳壹账通智能科技有限公司 Dissemination method, terminal device and the medium of application installation package
CN111443918A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Channel access method and device for business object installation package
CN113535140A (en) * 2020-04-16 2021-10-22 武汉斗鱼网络科技有限公司 Parameter packaging method, device, equipment and storage medium
CN111610984A (en) * 2020-05-09 2020-09-01 上海万间信息技术有限公司 Plug-in-based android application packaging and distributing method and system and application terminal
CN111610984B (en) * 2020-05-09 2023-10-27 上海万间信息技术有限公司 Android application packaging and distributing method and system based on plug-in and application terminal
CN113094121A (en) * 2021-04-30 2021-07-09 腾讯科技(成都)有限公司 Data processing method, data processing equipment and computer readable storage medium
CN113094121B (en) * 2021-04-30 2023-03-10 腾讯科技(成都)有限公司 Data processing method, data processing equipment and computer readable storage medium
CN113127005B (en) * 2021-05-08 2024-05-24 抖音视界有限公司 Method and device for generating executable file and computer storage medium
CN113407932A (en) * 2021-06-18 2021-09-17 湖南快乐阳光互动娱乐传媒有限公司 Channel identification reporting method, system and storage medium

Similar Documents

Publication Publication Date Title
CN107797808A (en) Application installation package processing method and processing device
US10795652B2 (en) Generating native code from intermediate language code for an application
CN109697060B (en) Video special effect system, generation method, device, equipment and storage medium thereof
CN103902265B (en) One kind applies implementation method and relevant apparatus
KR102281052B1 (en) Mobile terminal application update method and apparatus
CN103970563B (en) The method of dynamic load Android class
CN103443763B (en) Comprise to connect the ISA Bridge of the support called rewriteeing virtual function
CN112835975B (en) Method for deploying, updating and calling intelligent contracts in blockchain
JP2017146966A (en) Method and system for extending function to package file
CN105068818A (en) Channel package generation method and apparatus and channel package batch generation method and system
CN105204873A (en) Terminal and application interface display method
CN108647032A (en) Using loading method and device, computer installation and computer readable storage medium
CN109857432B (en) Hot updating method and device for game application
CN107357607A (en) The read method and device of file data
CN103995696A (en) Custom-built system and method of software package of mobile terminal
Taivalsaari et al. The web as a software platform: Ten years later
CN109766123B (en) Application program packaging method and device
CN110045998A (en) Load the method and device of dynamic base
CN110825365B (en) Method, device, equipment and medium for customizing webview characteristics
CN105933887B (en) Apply the adaptation method and device between different dual-card intelligent mobile phones
CN108334360A (en) Method, apparatus, storage medium and the computer equipment of application program dynamic load
CN107092472A (en) A kind of dynamic publishing method and equipment
CN107463423B (en) Verification method, storage medium, electronic device and system depending on package tool
CN106951288B (en) Development and application method and device of hot upgrade resource
CN115344275A (en) Method and device for generating image file of operating system and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination