CN107145342A - The treating method and apparatus of the channel information of application - Google Patents
The treating method and apparatus of the channel information of application Download PDFInfo
- Publication number
- CN107145342A CN107145342A CN201710212811.1A CN201710212811A CN107145342A CN 107145342 A CN107145342 A CN 107145342A CN 201710212811 A CN201710212811 A CN 201710212811A CN 107145342 A CN107145342 A CN 107145342A
- Authority
- CN
- China
- Prior art keywords
- empty file
- title
- channel information
- intended application
- target
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000009434 installation Methods 0.000 claims abstract description 67
- 238000012545 processing Methods 0.000 claims abstract description 36
- 230000004044 response Effects 0.000 claims description 22
- 238000003672 processing method Methods 0.000 claims description 14
- 238000012856 packing Methods 0.000 description 29
- 230000015654 memory Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 15
- 230000000694 effects Effects 0.000 description 8
- 150000003839 salts Chemical class 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 5
- 230000002427 irreversible effect Effects 0.000 description 5
- 238000012795 verification Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000013515 script Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 238000002347 injection Methods 0.000 description 2
- 239000007924 injection Substances 0.000 description 2
- 241000406668 Loxodonta cyclotis Species 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/447—Target code generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The invention discloses a kind for the treatment of method and apparatus of the channel information of application.Wherein, this method includes:The first channel information is obtained, wherein, the first channel information is used to indicate that intended application is distributed to the information in intended application market;First channel information is encrypted, the second channel information is obtained;First kind target empty file and Equations of The Second Kind target empty file are added under target directory in the installation kit of intended application, wherein, the title of first kind target empty file is obtained according to the first channel information, the title of Equations of The Second Kind target empty file is obtained according to the second channel information, and first kind target empty file and Equations of The Second Kind target empty file are the empty file for being not involved in carrying out installation kit completeness check.The processing scheme that the present invention solves the channel bag in correlation technique needs to recompilate installation kit, the technical problem for causing the treatment effeciency of channel bag relatively low.
Description
Technical field
The present invention relates to computer realm, in particular to a kind for the treatment of method and apparatus of the channel information of application.
Background technology
, it is necessary to be come by APP (APPlication, i.e. cell phone software) on the intelligent terminals such as smart mobile phone, tablet personal computer
The function of intelligent terminal is improved, wherein, the APP installation kits on intelligent terminal are typically to download what is obtained in application market.For
The information such as sales volume, downloads of the statistics APP in application market in APP installation kits, it is necessary to add channel mark, to lead to
The channel mark is crossed to be counted.
At present, channel mark is added on APP installation kits and generally uses gradle packing scheme, Maven instruments by all kinds of means
The scheme that the scheme or apkTool of packing are inversely packed.But, packed using gradle, Maven and apkTool channel bag
Scheme, its process is very slow and sufficiently complex, and every dozen of channel bags are required for rebuilding engineering or signed again,
Channel bag packing efficiency will so be reduced;The scheme packed using Maven instruments needs the artificial code changed and play channel bag,
Operation is more complicated, and packing efficiency is also than relatively low.
Processing scheme for the channel bag in above-mentioned correlation technique needs to recompilate installation kit, causes the place of channel bag
The problem of managing less efficient, not yet proposes effective solution at present.
The content of the invention
The embodiments of the invention provide a kind for the treatment of method and apparatus of the channel information of application, at least to solve related skill
The processing scheme of channel bag in art needs to recompilate installation kit, the technical problem for causing the treatment effeciency of channel bag relatively low.
One side according to embodiments of the present invention there is provided a kind of processing method of the channel information of application, including:Obtain
The first channel information is taken, wherein, first channel information is used to indicate that intended application is distributed to the letter in intended application market
Breath;First channel information is encrypted, the second channel information is obtained;In the installation kit of the intended application
First kind target empty file and Equations of The Second Kind target empty file are added under target directory, wherein, the first kind target empty file
Title is obtained according to first channel information, and the title of the Equations of The Second Kind target empty file is obtained according to second channel information
Arrive, the first kind target empty file and the Equations of The Second Kind target empty file are to be not involved in carrying out integrality school to the installation kit
The empty file tested.
Another aspect according to embodiments of the present invention, additionally provides a kind of processing unit of the channel information of application, including:
Acquiring unit, for obtaining the first channel information, wherein, first channel information is used to indicate that intended application is distributed to mesh
Mark the information of application market;Processing unit, for first channel information to be encrypted, obtains the second channel letter
Breath;Adding device, for adding first kind target empty file and the under the target directory in the installation kit of the intended application
Two class target empty files, wherein, the title of the first kind target empty file is obtained according to first channel information, and described
The title of two class target empty files is obtained according to second channel information, the first kind target empty file and the Equations of The Second Kind
Target empty file is the empty file for being not involved in carrying out the installation kit completeness check.
In embodiments of the present invention, first channel information in intended application market is distributed to by obtaining intended application,
And first channel information is encrypted, the second channel information is drawn, then the mesh in the installation kit of intended application
Addition is not involved in carrying out installation kit the empty file of completeness check in heading record, and the empty file is divided into first kind target empty
File and Equations of The Second Kind target empty file, wherein, the title of first kind target empty file is obtained according to the first channel information, the
The title of two class target empty files is obtained according to the second channel information, so as to complete beating to the installation kit of intended application
Bag, obtains the channel bag after being handled through packing, realizes the technique effect for improving the treatment effeciency to the channel bag of application, solves
The processing scheme of channel bag in correlation technique needs to recompilate installation kit, the skill that causes the treatment effeciency of channel bag relatively low
Art problem.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of the processing method of the channel information of application according to embodiments of the present invention;
Fig. 2 is a kind of flow chart of the processing method of channel information optionally applied according to embodiments of the present invention;
Fig. 3 is a kind of flow chart of optional channel bag packing scheme according to embodiments of the present invention;
Fig. 4 is a kind of schematic diagram of optional original channel information according to embodiments of the present invention;
Fig. 5 is a kind of schematic diagram of optional main bag META-INF catalogues according to embodiments of the present invention;
Fig. 6 is the ineffective law, rule, etc. of the ad hoc rules after a kind of optional injection according to embodiments of the present invention is encrypted to channel information
The schematic diagram of part;
Fig. 7 is a kind of optional schematic diagram for obtaining channel information according to embodiments of the present invention;
Fig. 8 is a kind of optional Android channel bags packing scheme signal safely and fast according to embodiments of the present invention
Figure;
Fig. 9 is a kind of schematic diagram of the processing unit of channel information optionally applied according to embodiments of the present invention;
Figure 10 is the schematic diagram of the processing unit of another channel information optionally applied according to embodiments of the present invention;
Figure 11 is the schematic diagram of the processing unit of another channel information optionally applied according to embodiments of the present invention;
Figure 12 is the schematic diagram of the processing unit of another channel information optionally applied according to embodiments of the present invention;
Figure 13 is the schematic diagram of the processing unit of another channel information optionally applied according to embodiments of the present invention;
Figure 14 is a kind of structured flowchart of terminal according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
First, the part noun or term occurred during the embodiment of the present invention is described is applied to as follows
Explain:
Channel:After the completion of present APP each version exploitations, major application markets will be all published to, such as application treasured, 360
Mobile phone assistant, Baidu mobile phone house keeper;In order to count effects (such as sales volume, download etc.) of these APP in application market, just need
A kind of method is asked uniquely to indicate them, channel is exactly this mark.
APK:The installation file of android applications.
Installation kit:I.e. software installation bag, is that can voluntarily decompress the set of file, including all texts of software installation
Part.
Channel bag:It is published to the installation kit i.e. channel bag of major application markets.
It is used for the information for indicating the application market that APP is published in channel information, channel bag.
Embodiment 1
There is provided a kind of processing method embodiment of the channel information of application according to embodiments of the present invention.
Alternatively, in the present embodiment, the processing method of the channel information of above-mentioned application can apply to as shown in Figure 1
In the hardware environment being made up of server 102 and terminal 104.As shown in figure 1, server 102 is entered by network with terminal 104
Row connection, above-mentioned network includes but is not limited to:Wide area network, Metropolitan Area Network (MAN) or LAN, terminal 104 are not limited to PC, mobile phone, put down
Plate computer etc..The processing method of the channel information of the application of the embodiment of the present invention can be performed by server 102, can also be by
Terminal 104 is performed, and be can also be and is performed jointly by server 102 and terminal 104.Wherein, terminal 104 performs implementation of the present invention
The processing method of the channel information of the application of example can also be performed by client mounted thereto.
Fig. 2 is a kind of flow chart of the processing method of channel information optionally applied according to embodiments of the present invention, such as
Shown in Fig. 2, this method may comprise steps of:
Step S202, obtains the first channel information, wherein, the first channel information is used to indicate that intended application is distributed to mesh
Mark the information of application market;
Step S204, the first channel information is encrypted, and obtains the second channel information;
First kind target empty file and Equations of The Second Kind are added under step S206, the target directory in the installation kit of intended application
Target empty file, wherein, the title of first kind target empty file is obtained according to the first channel information, Equations of The Second Kind target empty file
Title is obtained according to the second channel information, and first kind target empty file and Equations of The Second Kind target empty file are to be not involved in entering installation kit
The empty file of row completeness check.
By above-mentioned steps S202 to step S206, by obtaining intended application is distributed to intended application market first
Channel information, and first channel information is encrypted, the second channel information is drawn, then in the installation of intended application
Addition is not involved in carrying out installation kit the empty file of completeness check in target directory in bag, and the empty file is divided into basis
First channel information draws the first kind target empty file of the title of empty file and draws empty file according to the second channel information
The Equations of The Second Kind target empty file of title, so as to complete the packing to former installation kit, obtains the channel bag after packing is handled, can
Need to recompilate installation kit to solve the processing scheme of the channel bag in correlation technique, cause the treatment effeciency of channel bag relatively low
Technical problem, and then reach improve application channel bag treatment effeciency technique effect.
In the technical scheme that step S202 is provided, the embodiment of the present invention is not specifically limited to the type of intended application,
The APP applications based on intelligent terminal such as intended application can be wechat, QQ browsers, king's honor;Intended application market
Can be the application market for issuing intended application, such as intended application market can apply treasured, 360 mobile phone assistant, Baidu's hand
Machine house keeper etc. provides the application market that APP is downloaded.Intended application is distributed to after intended application market, and intelligent terminal can be from
The intended application is downloaded in intended application market.
In practical application scene, using being distributed to after application market, downloaded from the application market obtain should
It is that can include being used to indicate that the application is distributed to the application market in the channel bag of the application, the channel bag with installation kit
Channel information.Alternatively, the embodiment of the present invention sets target can apply the target that can be published to according to the actual requirements
The information of application market, wherein, for indicating that the information that intended application is distributed to intended application market can be the first channel
Information.As a kind of optional embodiment, the first channel information can include:The title in intended application market and intended application city
The identification number of field.It should be noted that the first channel information can also include other information, no longer illustrate one by one herein.This hair
Bright embodiment can determine the intended application market that the intended application is published to first, then obtain the intended application market
The identification number of relevant information, the including but not limited to title in intended application market and intended application market, to realize acquisition
First channel information.
In the technical scheme that step S204 is provided, after the first channel information is obtained, the embodiment of the present invention can be with
First channel information is encrypted, to obtain the second channel information, can so reach and improve the first channel information
The effect of security.It should be noted that the embodiment of the present invention the first channel information and the second channel information got it
Afterwards, it can be stored, in order to can specifically be made with convenient use when the channel information to application carries out packing processing
The introduction for the technical scheme that step S206 is provided is may refer to process.It should also be noted that, the embodiment of the present invention is to
The storage location of one channel information and the second channel information is not specifically limited, for example, it can be stored in the peace of intended application
In dress bag, it can also be stored in the memory of the server of the processing method for the channel information for performing the application or intended application
In the corresponding memory in market.It should also be noted that, can add what salt was encrypted in the embodiment of the present invention using irreversible MD5
First channel information is encrypted mode, the second channel information after being encrypted.Herein it should be noted that MD5
Full name be Message-Digest Algorithm 5 (md5-challenge), be to make Large Copacity information soft in digital signature
A kind of form of secrecy is ' compressed ' into before the private secret key of part signature.Plus salt encryption is a kind of encryption side to password system log
Formula, the mode that it is realized is that the same n positions random number for being called " salt " (salt) of each password is associated, and by password and
Random number is connected and then together encrypted.The first channel information is added by the way of irreversible MD5 adds salt to encrypt
Close processing can further improve the security of the first channel information.It should also be noted that, the embodiment of the present invention can be with
The first channel information is encrypted using other cipher modes, no longer illustrated one by one herein.
In the technical scheme that step S206 is provided, it is necessary first to explanation, it can be downloaded and successfully install and use
Intended application installation kit in information be complete, the intended application can not be just if the information in installation kit is imperfect
Often use, therefore the installation kit of intended application carries out completeness check after being downloaded firstly the need of to it, the feelings passed through in verification
Normal mounting is just allowed to use the intended application under condition.The installation kit of intended application includes a target directory, target directory
Can be META-INF catalogues, MATA-INF can equivalent to one packet, file and catalogue in META-INF catalogues are obtained
JAVA, the accreditation and explanation of Android platform are obtained, for configuring application program, expansion program, Classloader.Also, META-
The completeness check that empty file in INF catalogues is carried out during being not involved in installation targets application, so-called completeness check
The empty file that can be understood as being added in META-INF catalogues does not interfere with the integrality of intended application, equally will not shadow yet
Ring the installation of intended application and use, need not be to the institute in META-INF catalogues to the completeness check of the installation kit of intended application
The empty file of addition is verified.Can be by adding ineffective law, rule, etc. in META-INF catalogues using the above-mentioned principle embodiment of the present invention
The mode of part completes to beat intended application the operation of channel bag.
The embodiment of the present invention, can be in the installation kit of intended application in order to realize the channel bag packing to intended application
Add empty file under target directory, wherein, the empty file added under target directory can include first kind target empty file and
Equations of The Second Kind target empty file, wherein, the title of first kind target empty file and Equations of The Second Kind target empty file can be according to obtaining in advance
The first channel information for taking and storing and the name of the second channel information, specifically, the title of first kind target empty file can root
Obtained according to the first channel information, the title of Equations of The Second Kind target empty file can be obtained according to the second channel information, and the first classification
Mark empty file and Equations of The Second Kind target empty file are not involved in carrying out completeness check to the installation kit of intended application, namely to target
Without being verified to first kind target empty file and Equations of The Second Kind target empty file when the installation kit of application carries out completeness check.
Herein it should be noted that the embodiment of the present invention is to the first kind target empty file and the second classification that are added under target directory
The number of mark empty file is not specifically limited, and can be one or multiple.The number of first kind target empty file can be with
Determined according to the information content included in the first channel information, for example, it is assumed that only including intended application in the first channel information
The title in market, then the number of first kind target empty file could be arranged to one, and the first kind target empty file can be with
The name nominating in intended application market;Assuming that the first channel information includes title and the intended application city in intended application market
Identification number, then the number of first kind target empty file could be arranged to two, it is respectively designated as intended application market
Title and the identification number in intended application market.Similarly, the number of Equations of The Second Kind target empty file can be according to the second channel information
In the included information content determine, for example, it is assumed that only include an encryption information in the second channel information, then Equations of The Second Kind target
The number of empty file could be arranged to one, and the Equations of The Second Kind target empty file can be named with this encryption information;Assuming that the
A plurality of encryption information is only included in second channel information, then the number of Equations of The Second Kind target empty file could be arranged to multiple, and its point
Do not named with a plurality of encryption information.Above-mentioned simply simple example illustrates first kind target empty file and Equations of The Second Kind target empty file
Number determination method, it is necessary to explanation, the number of first kind target empty file and Equations of The Second Kind target empty file can be with
Determine, be not specifically limited herein according to the actual requirements.
Using the present invention, by adding the first kind target empty file named according to the first channel information in target directory
With the Equations of The Second Kind target empty file named according to the second channel information, so as to by the first kind target empty file and Equations of The Second Kind
The name of target empty file is referred to as channel mark, completes the packing processing of the channel bag of intended application.
As a kind of optional embodiment, the first channel information can include:The title and target in intended application market should
With the identification number in market, wherein, first kind target empty is added under target directories of the step S206 in the installation kit of intended application
File and Equations of The Second Kind target empty file can include:
First object empty file and are at least added under step S2062, the target directory in the installation kit of intended application
Two target empty files, wherein, first kind target empty file includes first object empty file, and Equations of The Second Kind target empty file includes second
Target empty file;
Step S2064, the title of first object empty file is set to title and the intended application city in intended application market
Identification number at least one, the title of the second target empty file is set to the second channel information.
It should be noted that one or more can be added in the alternative embodiment under the target directory of intended application
One class target empty file, and one or more Equations of The Second Kind target empty files, wherein, it can include in first kind target empty file
One or more first object empty files, Equations of The Second Kind target empty file can include one or more second target empty files.The
The title of one target empty file can be obtained according to the first channel information, specifically could be arranged to intended application market title and
At least one in the identification number in intended application market;The title of second target empty file could be arranged to the second channel information.
Using above-mentioned alternative embodiment of the invention, by the name that first kind channel information is set to first object empty file
Claim, Equations of The Second Kind channel information is set to the title of the second target empty file, can realize and beat the channel information of intended application
Bag is handled with completing the packing of channel bag of intended application in the installation kit of intended application, need not so change code, without
The installation kit of intended application is recompilated, without signing again, and then shortens the packing time of channel bag, reaches and carry
The effect of the channel bag packing efficiency of high intended application.
As a kind of optional embodiment, the title of first object empty file is set to intended application city by step S2064
At least one in the title of field and the identification number in intended application market can include following several situations:
The first situation, the title of first object empty file is set to title or the intended application city in intended application market
The identification number of field.
Second of situation, the title and target for being set to include intended application market by the title of first object empty file should
With the identification number in market.
The third situation, the title of first object empty file is set to the title in intended application market, by the 3rd target
The title of empty file is set to the identification number in intended application market, wherein, first kind target empty file also includes the 3rd target empty
File.
For example, when only one of which empty file in first kind target empty file, namely first kind target empty file includes the
During one target empty file, the title of the first object empty file could be arranged to the title in intended application market, or be set to mesh
The identification number of application market is marked, or is set to the combination of the title in intended application market and the identification number in intended application market.
For example, when first kind target empty file includes multiple empty files, such as two, then the two target empty files
Title can be respectively set to the title in intended application market and the identification number in intended application market.Alternatively, the first kind is worked as
When target empty file includes first object empty file and the 3rd target empty file, the title of first object file could be arranged to mesh
The title of application market is marked, the title of the 3rd file destination could be arranged to the identification number in intended application market, or the first mesh
The title of mark file could be arranged to the identification number in intended application market, and the title of the 3rd file destination could be arranged to target should
With the title in market.
Using above-mentioned alternative embodiment of the invention, it can be realized the first channel information intactly by above-mentioned several situations
The title of first object empty file is embodied in, the second channel information is intactly embodied in the title of the second target empty file, this
Sample can enable according to the title of first object empty file and the title of the second target empty file be directly obtained target should
Channel information, and then reach the effect of the packing efficiency for the channel bag for improving intended application.
As a kind of optional embodiment, first is added under the target directory in the installation kit of step S206 intended applications
After class target empty file and Equations of The Second Kind target empty file, the alternative embodiment can also include step S207 to step S210:
Step S207, after intended application is activated, reads the title of the Equations of The Second Kind target empty file under target directory;
Processing is decrypted in step S208, the title to Equations of The Second Kind target empty file, obtains the 3rd channel information;
Step S209, the 3rd channel information is matched with the title of the first kind target empty file under target directory;
Step S210, in the case of the name-matches of the 3rd channel information and first kind target empty file, determines first
The first channel information represented by the title of class target empty file is correct.
It should be noted that after intended application is activated, intended application can read the second classification under target directory
The title of empty file is marked, and processing is decrypted to the title of Equations of The Second Kind target empty file, the 3rd channel information is obtained.Need herein
It is noted that in the case where the first channel information is not tampered with, the 3rd channel information is matched with the first channel information;
In the case that first channel information is tampered, the 3rd channel information and the first channel information are mismatched.Obtaining the 3rd channel letter
After breath, the alternative embodiment can be matched the 3rd channel information with first kind target empty file name, the 3rd
In the case that channel information is matched with first kind target empty file name, then it can illustrate that the 3rd channel information and the first channel are believed
Breath matching, and then can determine that the first channel information represented by the title of first kind file destination is correct;In the 3rd channel letter
In the case of breath and first kind target empty file name are unmatched, then it can illustrate the 3rd channel information and the first channel information not
Matching, and then can determine that the first channel information represented by the title of first kind file destination is incorrect, now in the presence of safety
Risk." matching " herein can be identical or equal.
The above-mentioned alternative embodiment of the present invention, is decrypted by the title to Equations of The Second Kind target empty file and obtains the 3rd channel
Information, then judge whether the 3rd channel information and the title of first kind target empty file match, so as to judge the first channel information
Whether it is tampered, to reach the purpose of the accuracy and security that ensure channel information.
As a kind of optional embodiment, first is added under the target directory in the installation kit of step S206 intended applications
After class target empty file and Equations of The Second Kind target empty file, the alternative embodiment can also include step S211:
Step S211, the destination request for carrying the first channel information is sent to server, wherein, destination request is used for please
Ask obtain intended application intended application market download, the first channel information by first kind target empty file title table
Show;
Step S212, the target response transmitted by the reception server response destination request, wherein, carried in target response
Indicate the information of download.
It should be noted that can carry the first channel information in destination request in the alternative embodiment, target please
Seek the download that can be used for acquisition request intended application in intended application market.The transmission of destination request in the alternative embodiment
Side can be other servers of any terminal or difference with receiving destination request.When the server in the alternative embodiment connects
Receive after destination request, server can be responded to the destination request, it is being specifically introduced to the response process
Before, it is necessary first to explanation, after intended application is downloaded, intended application can report the first channel to believe to the server
Breath, server can be stored and the accumulative number of times for receiving the first channel information, wherein, the number of times being accumulated by can be used for
Indicate download of the intended application in intended application market.Server can include according to after destination request is received
The number of times for receiving the first channel information being accumulated by returns to target response, wherein, clothes can be carried in the target response
The number of times for receiving the first channel information that business device has been accumulated by, to indicate download of the intended application in intended application market
Amount.
Using the above embodiment of the present invention, destination request is responded by server and return carries instruction intended application and existed
The target response of the information of the download in intended application market, can realize and rapidly and accurately obtain intended application in intended application
The purpose of the information of the download in market.
It should be noted that the embodiment of the present invention can be applied in Android platform.
Present invention also offers a kind of preferred embodiment, the preferred embodiment provides a kind of Android safely and fast
Channel bag packing scheme, this programme only needs to compiling and builds once main bag, and other channel bags are by being not involved in toward injecting in main bag
The empty file of APK completeness checks, these empty files are named using the encrypted characters of ad hoc rules;Then when APP starts, read
The title of these specific files is taken, is decrypted using corresponding decryption method, verifies and extracts channel information;Channel bag need not
Code is changed, without recompilating, without signing again, so as to greatly reduce the packing time for carrying out channel, a channel bag
Output time shortens to second level.
The program is described as follows:
Android APK use with the same set of signature check methods of java, be placed on the ineffective law, rule, etc. under META-INF catalogues
Part is essentially without signature check;Completeness check when APK is installed is will not to verify the sky under META-INF catalogues
File, therefore channel information can be realized by way of injecting empty file toward APK in the case of without recompilating packing
Dynamic modification.
Because the empty file under META-INF catalogues can at will inject and can bypass APK integralities and signature check,
So can have security risk.To solve safety problem, the preferred embodiment can add the side that salt is encrypted using irreversible MD5
Empty file title is encrypted formula, and corresponding decipherment algorithm verification is then carried out when APP starts and effectively letter is extracted
Breath.
Fig. 3 is a kind of flow chart of optional channel bag packing scheme according to embodiments of the present invention, as shown in figure 3, by
Source code need not be changed in Android channel bags APK, without recompility, signature, therefore this method can include following step
Suddenly:
Step S302, compiles main bag.
Step S304, channel information is encrypted using python scripts.Wherein, python is a kind of towards right
The explanation type computer design language of elephant.Encryption herein is by the way of irreversible MD5 adds salt to encrypt.
Step S306, is believed toward injecting under META-INF catalogues in main bag APK file by script with the channel after encryption
Cease the empty file for meeting ad hoc rules of name.Wherein, ad hoc rules can be set according to the actual requirements, not do specific limit herein
It is fixed.
Step S308, the empty file for meeting ad hoc rules under META-INF catalogues is read after APP startups, correspondence is used
Decipherment algorithm verified from empty file title and extract channel information.
For above-mentioned execution flow, now it is exemplified below:
Fig. 4 is a kind of schematic diagram of optional original channel information according to embodiments of the present invention, as shown in figure 4, obtaining
Original channel information include the title of channel:" CHANNEL=ad_xiaomi ";The numbering of channel:" CHANNEL_ID=
100005”。
Fig. 5 is a kind of schematic diagram of optional main bag META-INF catalogues according to embodiments of the present invention, as shown in figure 5,
Include META-INF catalogues compiling main bag.
Fig. 6 is the ineffective law, rule, etc. of the ad hoc rules after a kind of optional injection according to embodiments of the present invention is encrypted to channel information
The schematic diagram of part, as shown in fig. 6, adding entitled channel_ad_xiaomi sky in the file of META-INF targets
File, entitled id_100005 empty file and the empty file according to the character designation after encryption.
Fig. 7 is a kind of optional schematic diagram for obtaining channel information according to embodiments of the present invention, as shown in fig. 7, in APP
Verification decryption is carried out to the title of empty file during startup and channel information is extracted, wherein, packet capturing can be passed through by obtaining channel information
Mode.Utilize extracted channel information to may be employed and count, for example, count APP download.
Fig. 8 is a kind of optional Android channel bags packing scheme signal safely and fast according to embodiments of the present invention
Figure, as shown in figure 8, the detailed process of the channel bag packing scheme can be described as:Channel information adds salt using irreversible MD5
Channel information after encryption method is encrypted after being encrypted;Then the channel information after encryption is handled using ad hoc rules;
Compile and inserted in main APMB package folder with the empty file of the channel information name after processing;So far channel bag packing process terminates.
After APP starts, APP reads the empty file of ad hoc rules, and carries out school to the title of empty file using corresponding decipherment algorithm
Test, to realize extraction channel information.
Fast and safely channel packing manner provided by the present invention, can be without manual amendment's source code, without compiling again
Structure APK is translated, without the APK that signs again, anti-tamper encryption has been carried out to channel information, has realized and makes a call within 1 second a safety
Channel bag, greatly improve channel bag packing efficiency.
Used in the present invention by script toward injecting the satisfaction named with the channel information after encryption under META-INF catalogues
The empty file of ad hoc rules, and empty file is read when APP starts again, and channel letter is extracted by the verification of corresponding decipherment algorithm
Breath, is finally applied in statistics.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Understood based on such, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiment 2
According to embodiments of the present invention, a kind of answering for processing method for being used to implement the channel information of above-mentioned application is additionally provided
The processing unit of channel information.Fig. 9 is a kind of processing of channel information optionally applied according to embodiments of the present invention
The schematic diagram of device, as shown in figure 9, the device can include:
Acquiring unit 91, for obtaining the first channel information, wherein, the first channel information is used to indicate that intended application is sent out
Information of the cloth to intended application market;Processing unit 93, for the first channel information to be encrypted, obtains the second channel
Information;Adding device 95, for adding first kind target empty file and the under the target directory in the installation kit of intended application
Two class target empty files, wherein, the title of first kind target empty file is obtained according to the first channel information, Equations of The Second Kind target ineffective law, rule, etc.
The title of part is obtained according to the second channel information, and first kind target empty file and Equations of The Second Kind target empty file are to be not involved in installing
Bag carries out the empty file of completeness check.
It should be noted that the acquiring unit 91 in the embodiment can be used for performing the step in the embodiment of the present application 1
Processing unit 93 in S202, the embodiment can be used for performing in the step S204 in the embodiment of the present application 1, the embodiment
Adding device 95 can be used for performing the step S206 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that the step of correspondence is realized, but not
It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as
It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, as shown in Figure 10, the first channel information can include:The name in intended application market
Claim the identification number with intended application market, wherein, adding device 95 includes:Add module 951, for the installation in intended application
First object empty file and the second target empty file are at least added under target directory in bag, wherein, first kind target empty file
Including first object empty file, Equations of The Second Kind target empty file includes the second target empty file;Setup module 953, for by first
The title of target empty file is set at least one in the identification number in the title in intended application market and intended application market, will
The title of second target empty file is set to the second channel information.
As a kind of optional embodiment, as shown in figure 11, setup module 953 can include:First sets submodule
9531, for the title of first object empty file to be set to the title in intended application market or the mark in intended application market
Number;Or second set submodule 9533, for the title of first object empty file to be set to include intended application market
Title and the identification number in intended application market;Or the 3rd set submodule 9535, for by the title of first object empty file
The title in intended application market is set to, the title of the 3rd target empty file is set to the identification number in intended application market, its
In, first kind target empty file also includes the 3rd target empty file.
As a kind of optional embodiment, as shown in figure 12, the embodiment can also include:Reading unit 121, for
After adding first kind target empty file and Equations of The Second Kind target empty file under target directory in the installation kit of the intended application,
After intended application is activated, the title of the Equations of The Second Kind target empty file under target directory is read;Decryption unit 123, is used for
Processing is decrypted in title to Equations of The Second Kind target empty file, obtains the 3rd channel information;Matching unit 125, for by the 3rd
Channel information is matched with the title of the first kind target empty file under target directory;Determining unit 127, in the 3rd canal
In the case of road information and the name-matches of first kind target empty file, represented by the title for determining first kind target empty file
First channel information is correct.
As a kind of optional embodiment, as shown in figure 13, the embodiment can also include:Transmitting element 131, for
Processing is decrypted in the title to the Equations of The Second Kind target empty file, after obtaining the 3rd channel information, to service
Device sends the destination request for carrying the first channel information, wherein, destination request is used for acquisition request intended application should in target
With the download in market, the first channel information is represented by the title of first kind target empty file;Receiving unit 133, for receiving
Target response transmitted by server response destination request, wherein, the information for indicating download is carried in target response.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that the step of correspondence is realized, but not
It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as
It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
By above-mentioned module, the packing to former installation kit is completed, the channel bag after packing is handled is obtained, can solve
The processing scheme of channel bag in correlation technique needs to recompilate installation kit, the technology for causing the treatment effeciency of channel bag relatively low
Problem, and then reach the technique effect for the treatment effeciency for improving channel bag.
Embodiment 3
According to embodiments of the present invention, a kind of end for being used to implement the processing method of the channel information of above-mentioned application is additionally provided
End.
Figure 14 is a kind of structured flowchart of terminal according to embodiments of the present invention, and as shown in figure 14, the terminal can include:
One or more (one is only shown in figure) processors 201, memory 203 and transmitting device 205, as shown in figure 14, the end
End can also include input-output equipment 207.
Wherein, the channel for the application that memory 203 can be used in storage software program and module, such as embodiment of the present invention
Corresponding programmed instruction/the module for the treatment of method and apparatus of information, processor 201 is stored in memory 203 by operation
Software program and module, so as to perform various function application and data processing, that is, realize the channel information of above-mentioned application
Processing method.Memory 203 may include high speed random access memory, can also include nonvolatile memory, such as one or
Multiple magnetic storage devices, flash memory or other non-volatile solid state memories.In some instances, memory 203 can enter one
Step includes the memory remotely located relative to processor 201, and these remote memories can pass through network connection to terminal.On
The example for stating network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 205 is used to data are received or sent via a network.Above-mentioned network instantiation
It may include cable network and wireless network.In an example, transmitting device 205 includes a network adapter (Network
Interface Controller, NIC), its can be connected by netting twine and other network equipments with router so as to interconnection
Net or LAN are communicated.In an example, transmitting device 205 is radio frequency (Radio Frequency, RF) module, its
For wirelessly being communicated with internet.
Wherein, specifically, memory 203 is used to store and applied.
Processor 201 can call the application that memory 203 is stored, to perform following step:The first channel information is obtained,
Wherein, the first channel information is used to indicate that intended application is distributed to the information in intended application market;First channel information is entered
Row encryption, obtains the second channel information;First kind target empty is added under target directory in the installation kit of intended application
File and Equations of The Second Kind target empty file, wherein, the title of first kind target empty file is obtained according to the first channel information, Equations of The Second Kind
The title of target empty file is obtained according to the second channel information, and first kind target empty file and Equations of The Second Kind target empty file are not join
Empty file with carrying out completeness check to installation kit.
Processor 201 is additionally operable to perform following step:At least added under target directory in the installation kit of intended application
First object empty file and the second target empty file, wherein, first kind target empty file includes first object empty file, Equations of The Second Kind
Target empty file includes the second target empty file;By the title of first object empty file be set to intended application market title and
At least one in the identification number in intended application market, the second channel information is set to by the title of the second target empty file.
Processor 201 is additionally operable to perform following step:The title of first object empty file is set to intended application market
Title or intended application market identification number;Or be set to the title of first object empty file to include intended application market
Title and intended application market identification number;Or the title of first object empty file is set to the name in intended application market
Claim, the title of the 3rd target empty file is set to the identification number in intended application market, wherein, first kind target empty file is also wrapped
Include the 3rd target empty file.
Processor 201 is additionally operable to perform following step:After intended application is activated, second under target directory is read
The title of class target empty file;Processing is decrypted in title to Equations of The Second Kind target empty file, obtains the 3rd channel information;By
Three channel informations are matched with the title of the first kind target empty file under target directory;In the 3rd channel information and the first kind
In the case of the name-matches of target empty file, determine the first channel information represented by the title of first kind target empty file just
Really.
Processor 201 is additionally operable to perform following step:The destination request for carrying the first channel information is sent to server,
Wherein, destination request is used for acquisition request intended application in the download in intended application market, and the first channel information is by the first kind
The title of target empty file is represented;Target response transmitted by the reception server response destination request, wherein, taken in target response
With the information for indicating download.
Using the embodiment of the present invention, first channel information in intended application market is distributed to by obtaining intended application,
And first channel information is encrypted, the second channel information is drawn, then the mesh in the installation kit of intended application
Addition is not involved in carrying out installation kit the empty file of completeness check in heading record, and the empty file is divided into according to the first channel
Information show that the first kind target empty file and the second channel information of the title of empty file draw the Equations of The Second Kind of the title of empty file
Target empty file, so as to complete the packing to former installation kit, obtains the channel bag after being handled through packing, can solve correlation technique
In the processing scheme of channel bag need to recompilate installation kit, the technical problem for causing the treatment effeciency of channel bag relatively low enters
And reach the technique effect for the treatment effeciency for improving channel bag.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2
Example, the present embodiment will not be repeated here.
It will appreciated by the skilled person that the structure shown in Figure 14 is only signal, terminal can be smart mobile phone
(such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile internet device (Mobile Internet
Devices, MID), the terminal device such as PAD.Figure 14 it does not cause to limit to the structure of above-mentioned electronic installation.For example, terminal is also
May include than shown in Figure 14 more either less components (such as network interface, display device etc.) or with Figure 14 institutes
Show different configurations.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To be completed by program come the device-dependent hardware of command terminal, the program can be stored in a computer-readable recording medium
In, storage medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
For the program code for the processing method for performing the channel information applied.
Alternatively, in the present embodiment, above-mentioned storage medium can be located at multiple in the network shown in above-described embodiment
On at least one network equipment in the network equipment.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
S1, obtains the first channel information, wherein, the first channel information is used to indicate that intended application is distributed to intended application
The information in market;
S2, the first channel information is encrypted, and obtains the second channel information;
First kind target empty file and Equations of The Second Kind target empty are added under S3, the target directory in the installation kit of intended application
File, wherein, the title of first kind target empty file is obtained according to the first channel information, the title root of Equations of The Second Kind target empty file
Obtained according to the second channel information, first kind target empty file and Equations of The Second Kind target empty file are complete to be not involved in carrying out installation kit
Property verification empty file.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:In intended application
First object empty file and the second target empty file are at least added under target directory in installation kit, wherein, first kind target empty
File includes first object empty file, and Equations of The Second Kind target empty file includes the second target empty file;By first object empty file
Title is set at least one in the identification number in the title in intended application market and intended application market, by the second target ineffective law, rule, etc.
The title of part is set to the second channel information.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First object is empty
The title of file is set to the title in intended application market or the identification number in intended application market;Or by first object empty file
Title be set to include the title in intended application market and the identification number in intended application market;Or by first object empty file
Title be set to the title in intended application market, the title of the 3rd target empty file is set to the mark in intended application market
Number, wherein, first kind target empty file also includes the 3rd target empty file.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:In intended application quilt
After startup, the title of the Equations of The Second Kind target empty file under target directory is read;Title to Equations of The Second Kind target empty file is carried out
Decryption processing, obtains the 3rd channel information;By the title of the first kind target empty file under the 3rd channel information and target directory
Matched;In the case of the name-matches of the 3rd channel information and first kind target empty file, first kind target empty is determined
The first channel information represented by the title of file is correct.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Sent to server
The destination request of the first channel information is carried, wherein, destination request is used for acquisition request intended application in intended application market
Download, the first channel information represents by the title of first kind target empty file;The reception server response destination request is sent out
The target response sent, wherein, the information for indicating download is carried in target response.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2
Example, the present embodiment will not be repeated here.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
If the integrated unit in above-described embodiment is realized using in the form of SFU software functional unit and is used as independent product
Sale or in use, the storage medium that above computer can be read can be stored in.Understood based on such, skill of the invention
The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft
The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are to cause one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the invention
State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, may refer to the associated description of other embodiment.
, can be by others side in several embodiments provided herein, it should be understood that disclosed client
Formula is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, only one
Kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (11)
1. a kind of processing method of the channel information of application, it is characterised in that including:
The first channel information is obtained, wherein, first channel information is used to indicate that intended application is distributed to intended application city
The information of field;
First channel information is encrypted, the second channel information is obtained;
First kind target empty file and Equations of The Second Kind target ineffective law, rule, etc. are added under target directory in the installation kit of the intended application
Part, wherein, the title of the first kind target empty file is obtained according to first channel information, the Equations of The Second Kind target ineffective law, rule, etc.
The title of part is obtained according to second channel information, and the first kind target empty file and the Equations of The Second Kind target empty file are
It is not involved in carrying out the installation kit empty file of completeness check.
2. according to the method described in claim 1, it is characterised in that first channel information includes:The intended application city
The title of field and the identification number in the intended application market, wherein, under the target directory in the installation kit of the intended application
Addition first kind target empty file and Equations of The Second Kind target empty file include:
First object empty file and the second target are at least added under the target directory in the installation kit of the intended application
Empty file, wherein, the first kind target empty file includes the first object empty file, the Equations of The Second Kind target empty file bag
Include the second target empty file;
The title of the first object empty file is set to the title in the intended application market and the intended application market
Identification number at least one, the title of the second target empty file is set to second channel information.
3. method according to claim 2, it is characterised in that the title by the first object empty file is set to
At least one in the identification number in the title in the intended application market and the intended application market includes:
The title of the first object empty file is set to the title in the intended application market or the intended application market
Identification number;Or
The title of the first object empty file is set to include to the title and the intended application in the intended application market
The identification number in market;Or
The title of the first object empty file is set to the title in the intended application market, by the 3rd target empty file
Title is set to the identification number in the intended application market, wherein, the first kind target empty file also includes the 3rd mesh
Mark empty file.
4. according to the method described in claim 1, it is characterised in that under the target directory in the installation kit of the intended application
Add after first kind target empty file and Equations of The Second Kind target empty file, methods described also includes:
After the intended application is activated, the title of the Equations of The Second Kind target empty file under the target directory is read;
Processing is decrypted in title to the Equations of The Second Kind target empty file, obtains the 3rd channel information;
3rd channel information is matched with the title of the first kind target empty file under the target directory;
In the case of the name-matches of the 3rd channel information and the first kind target empty file, the first kind is determined
First channel information represented by the title of target empty file is correct.
5. method according to claim 4, it is characterised in that enter in the title to the Equations of The Second Kind target empty file
Row decryption processing, is obtained after the 3rd channel information, methods described also includes:
The destination request for carrying first channel information is sent to server, wherein, the destination request is obtained for request
Take the intended application in the download in the intended application market, first channel information is by the first kind target ineffective law, rule, etc.
The title of part is represented;
The target response transmitted by the server response destination request is received, wherein, carried in the target response
Indicate the information of the download.
6. method according to any one of claim 1 to 5, it is characterised in that the target directory is META-INF mesh
Record.
7. a kind of processing unit of the channel information of application, it is characterised in that including:
Acquiring unit, for obtaining the first channel information, wherein, first channel information is used to indicate that intended application is published
To the information in intended application market;
Processing unit, for first channel information to be encrypted, obtains the second channel information;
Adding device, for adding first kind target empty file and the under the target directory in the installation kit of the intended application
Two class target empty files, wherein, the title of the first kind target empty file is obtained according to first channel information, and described
The title of two class target empty files is obtained according to second channel information, the first kind target empty file and the Equations of The Second Kind
Target empty file is the empty file for being not involved in carrying out the installation kit completeness check.
8. device according to claim 7, it is characterised in that first channel information includes:The intended application city
The title of field and the identification number in the intended application market, wherein, the adding device includes:
Add module, at least adding first object ineffective law, rule, etc. under the target directory in the installation kit of the intended application
Part and the second target empty file, wherein, the first kind target empty file includes the first object empty file, the Equations of The Second Kind
Target empty file includes the second target empty file;
Setup module, for the title of the first object empty file to be set to the title in the intended application market and described
At least one in the identification number in intended application market, second channel is set to by the title of the second target empty file
Information.
9. device according to claim 8, it is characterised in that the setup module includes:
First sets submodule, the title for the title of the first object empty file to be set to the intended application market
Or the identification number in the intended application market;Or
Second sets submodule, for being set to the title of the first object empty file to include the intended application market
Title and the identification number in the intended application market;Or
3rd sets submodule, the name for the title of the first object empty file to be set to the intended application market
Claim, the title of the 3rd target empty file is set to the identification number in the intended application market, wherein, the first kind target empty
File also includes the 3rd target empty file.
10. device according to claim 7, it is characterised in that described device also includes:
Reading unit, for adding first kind target empty file and the under the target directory in the installation kit of the intended application
After two class target empty files, after the intended application is activated, second classification under the target directory is read
Mark the title of empty file;
Decryption unit, is decrypted processing for the title to the Equations of The Second Kind target empty file, obtains the 3rd channel information;
Matching unit, for by the name of the first kind target empty file under the 3rd channel information and the target directory
Title is matched;
Determining unit, in the case of the name-matches of the 3rd channel information and the first kind target empty file,
Determine that first channel information represented by the title of the first kind target empty file is correct.
11. device according to claim 10, it is characterised in that described device also includes:
Transmitting element, for processing to be decrypted in the title to the Equations of The Second Kind target empty file, obtains the described 3rd
After channel information, the destination request for carrying first channel information is sent to server, wherein, the destination request is used
In intended application described in acquisition request in the download in the intended application market, first channel information is by the first kind
The title of target empty file is represented;
Receiving unit, for receiving the target response transmitted by the server response destination request, wherein, the target
The information for indicating the download is carried in response.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710212811.1A CN107145342B (en) | 2017-03-31 | 2017-03-31 | Method and device for processing channel information of application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710212811.1A CN107145342B (en) | 2017-03-31 | 2017-03-31 | Method and device for processing channel information of application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107145342A true CN107145342A (en) | 2017-09-08 |
CN107145342B CN107145342B (en) | 2024-03-19 |
Family
ID=59784013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710212811.1A Active CN107145342B (en) | 2017-03-31 | 2017-03-31 | Method and device for processing channel information of application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107145342B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078223A (en) * | 2018-10-22 | 2020-04-28 | 腾讯科技(深圳)有限公司 | Application program packaging method and device |
CN112416386A (en) * | 2020-10-26 | 2021-02-26 | 北京一亩田新农网络科技有限公司 | Method, device, system and medium for software upgrading |
CN114528060A (en) * | 2022-02-11 | 2022-05-24 | 掌阅科技股份有限公司 | Page display method, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050251686A1 (en) * | 1999-06-09 | 2005-11-10 | Andres Torrubia-Saez | Methods and apparatus for secure distribution of software |
CN104077503A (en) * | 2014-07-22 | 2014-10-01 | 百度在线网络技术(北京)有限公司 | Processing method and device for APK (Android Package) files |
CN104657631A (en) * | 2015-02-03 | 2015-05-27 | 百度在线网络技术(北京)有限公司 | Processing method and device of channel information of application |
WO2016091034A1 (en) * | 2014-12-09 | 2016-06-16 | 北京奇虎科技有限公司 | Method and device for providing application channel packet |
CN105893008A (en) * | 2015-11-16 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Method and device for customizing multi-channel installation package |
WO2017028733A1 (en) * | 2015-08-20 | 2017-02-23 | 广州爱九游信息技术有限公司 | Software installation package packaging method, device and system and machine-readable storage medium |
-
2017
- 2017-03-31 CN CN201710212811.1A patent/CN107145342B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050251686A1 (en) * | 1999-06-09 | 2005-11-10 | Andres Torrubia-Saez | Methods and apparatus for secure distribution of software |
CN104077503A (en) * | 2014-07-22 | 2014-10-01 | 百度在线网络技术(北京)有限公司 | Processing method and device for APK (Android Package) files |
WO2016091034A1 (en) * | 2014-12-09 | 2016-06-16 | 北京奇虎科技有限公司 | Method and device for providing application channel packet |
CN104657631A (en) * | 2015-02-03 | 2015-05-27 | 百度在线网络技术(北京)有限公司 | Processing method and device of channel information of application |
WO2017028733A1 (en) * | 2015-08-20 | 2017-02-23 | 广州爱九游信息技术有限公司 | Software installation package packaging method, device and system and machine-readable storage medium |
CN105893008A (en) * | 2015-11-16 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Method and device for customizing multi-channel installation package |
Non-Patent Citations (2)
Title |
---|
ZHIHU: "https://tech.meituan.com/2014/06/13/mt-apk-packaging.html", 《美团ANDROID自动化之旅——生成渠道包》 * |
ZHIHU: "https://tech.meituan.com/2014/06/13/mt-apk-packaging.html", 《美团ANDROID自动化之旅——生成渠道包》, 13 June 2014 (2014-06-13), pages 1 - 5 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078223A (en) * | 2018-10-22 | 2020-04-28 | 腾讯科技(深圳)有限公司 | Application program packaging method and device |
CN111078223B (en) * | 2018-10-22 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Application program packaging method and device |
CN112416386A (en) * | 2020-10-26 | 2021-02-26 | 北京一亩田新农网络科技有限公司 | Method, device, system and medium for software upgrading |
CN114528060A (en) * | 2022-02-11 | 2022-05-24 | 掌阅科技股份有限公司 | Page display method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107145342B (en) | 2024-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106710017B (en) | Identity verification method, device and system for logistics signing | |
CN106503589A (en) | The method of calibration of block chain Transaction Information correctness, apparatus and system | |
CN106055602A (en) | File verification method and apparatus | |
CN111831563A (en) | Automatic interface test method and device and storage medium | |
CN105119722B (en) | A kind of auth method, equipment and system | |
CN104486343A (en) | Method and system for double-factor bidirectional authentication | |
CN107872447A (en) | Electronic device, server, communication system and communication method | |
CN103139761B (en) | The method and communication terminal of a kind of information real-time show | |
CN108628743A (en) | Applied program testing method, device, equipment and storage medium | |
CN110677381A (en) | Penetration testing method and device, storage medium and electronic device | |
CN107145342A (en) | The treating method and apparatus of the channel information of application | |
CN111931188A (en) | Vulnerability testing method and system under login scene | |
Yang et al. | Inside Radio: An Attack and Defense Guide | |
CN108848057A (en) | A kind of method and device of remote secure access | |
CN110099065A (en) | Internet of things equipment and authentication method, Cloud Server, processing equipment, readable medium | |
CN107104924A (en) | The verification method and device of website backdoor file | |
CN105791246A (en) | Information verification method, device and system | |
CN111045722B (en) | Intelligent contract packaging method, device, system, computer equipment and storage medium | |
US20040111618A1 (en) | Software integrity test | |
CN111625464A (en) | Interface test method and device, storage medium and processor | |
CN106878246A (en) | A kind of method for managing resource and device | |
CN104184773B (en) | A kind of data download method and system | |
CN107318100A (en) | Method, apparatus and system for binding phone number | |
CN104158893B (en) | The method and system of Contents of clipboard are transmitted based on WiFi equipment | |
CN106503529A (en) | A kind of cloud storage system based on fingerprint |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |