CN107402792A - Integrated approach, device, equipment and the storage medium of application software installation kit - Google Patents
Integrated approach, device, equipment and the storage medium of application software installation kit Download PDFInfo
- Publication number
- CN107402792A CN107402792A CN201710647600.0A CN201710647600A CN107402792A CN 107402792 A CN107402792 A CN 107402792A CN 201710647600 A CN201710647600 A CN 201710647600A CN 107402792 A CN107402792 A CN 107402792A
- Authority
- CN
- China
- Prior art keywords
- apk
- party
- function
- api
- integrated
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Abstract
The invention discloses a kind of integrated approach, device, equipment and the storage medium of application software installation kit.The integrated approach includes:The first APK of host software and the 2nd APK of third party's function of third party's function to be integrated are obtained, there is identical API to use rule by the first APK and the 2nd APK;Processing is merged to the first APK and the 2nd APK, generation uses rule and the 3rd APK of the host software of integrated third party's function comprising API.Can solve that third party's function APK is write to the technical problem that caused program bag versatility is poor and code function coupling is tighter in original host software program bag code in the prior art using the above method.
Description
Technical field
The present invention relates to data processing field, more particularly to a kind of integrated approach of application software installation kit, device, equipment
And storage medium.
Background technology
Android (Android) operating system is a kind of freedom and the operating system of open source code, is widely used in
In the intelligent terminals such as tablet personal computer, mobile phone.Android installation kit (AndroidPackage, APK) is that a kind of Android system can be known
Other file format.In general, after intelligent terminal downloads APK, it is decompressed and installed, to be run in intelligent terminal
Corresponding application software.
With increasing, the same application software third party to be integrated of popularization and the user's request of intelligent terminal
Function is increasingly come more.Such as, it is necessary to be related to user's login, video during a certain video application is used by a user
Third party's functions such as push, membership buying, third party's advertisement applications and video sharing.In the prior art, it is soft in development and application
During the original program bag of part, the Android installation kit (AndroidPackage, APK) of all kinds of third party's functions is write as far as possible
To in original program bag code so that finally develop that obtained program bag versatility is poor and code function coupling compares
Tightly.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of integrated approach, device, equipment and the storage of application software installation kit
Medium, led to solving in the prior art to write third party's function APK caused program bag in original host software program bag
Technical problem poor with property and that code function coupling is tighter.
In a first aspect, the embodiments of the invention provide a kind of integrated approach of application software installation kit, including:
Obtain the host software of third party's function to be integrated the first Android installation kit APK and third party's function second
There is identical application programming interface API to use rule by APK, the first APK and the 2nd APK;
Processing is merged to the first APK and the 2nd APK, generation uses regular and integrated comprising the API
3rd APK of the host software of third party's function.
Second aspect, the embodiment of the present invention additionally provide a kind of integrating device of application software installation kit, including:
Acquisition module, the first Android installation kit APK and the 3rd of the host software for obtaining third party's function to be integrated
There is identical application programming interface API to use rule by Fang Gongneng the 2nd APK, the first APK and the 2nd APK
Then;
Merging module, for merging processing to the first APK and the 2nd APK, generation makes comprising the API
With rule and the 3rd APK of the host software of integrated third party's function.
The third aspect, the embodiment of the present invention additionally provide a kind of equipment, and the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processing
Device realizes the integrated approach of application software installation kit as described in the present embodiment of the invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer
Program, the integrated approach of application software installation kit as described in the present embodiment of the invention is realized when the program is executed by processor.
Integrated approach, device, equipment and the storage medium of the application software installation kit of above-mentioned offer, wait to integrate by obtaining
The first APK and the APK of third party's function the 2nd of the host software of third party's function, wherein, the first APK and the 2nd APK have phase
Same API is using rule, further, to merging place using the first APK and the 2nd APK of rule with identical API
Reason is realized and integrated in the 3rd APK of host software to obtain the technological means with the API using the 3rd APK of rule
Third party function APK, and host software and third party's function can be by being handed over API using the corresponding api interface of rule
Mutually, without third party's function APK is write in host software program bag so that third party's function and host software can be with independent zones
Point, it is easy to respectively to host software and third party's function is managed and development of resources.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of the integrated approach for application software installation kit that the embodiment of the present invention one provides;
Fig. 2 a are a kind of flow chart of the integrated approach for application software installation kit that the embodiment of the present invention two provides;
Fig. 2 b are a kind of schematic flow sheet of the integrated approach of application software installation kit;
Fig. 3 is a kind of structural representation of the integrating device for application software installation kit that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural representation for equipment that the embodiment of the present invention four provides.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just
Part related to the present invention rather than full content are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart of the integrated approach for application software installation kit that the embodiment of the present invention one provides.This implementation
The integrated approach for the application software installation kit that example provides can be performed by the integrating device of application software installation kit, the integrating device
It can be realized, and be integrated in a device by the form of software and/or hardware, wherein the equipment is optional is integrated for host software
The server of third party's function.Specifically, the integrated approach of the application software installation kit provided with reference to figure 1, the present embodiment is specific
Including:
S110, the first APK of host software and the 2nd APK of third party's function for obtaining third party's function to be integrated.
In the present embodiment, host software is the application software that may be mounted at Android system, and the application software is being run
When, it is necessary to use third party's function.The host software of third party's function to be integrated refers in the program bag of the host software not
APK comprising third party's function or third party's function program bag, i.e., do not have in use using third party's work(
The ability of energy.Wherein, third party's function does not refer in particular to a certain function, and it can be understood as can using in host software complete
The general designation of portion's third party's function, for example, third party's function include but is not limited to payment function, login feature, push function with
And sharing functionality etc..
Further, there is the first APK and the 2nd APK identical API to use rule.Optionally, API using rule be by
Server settings, call the API of third party application use rule.In general, can be in configuration text using rule
Described in part, when the configuration file is used to subsequently synthesize the first APK and the 2nd APK, it is determined that middle API calling rule
Then.When the first APK and the 2nd APK have identical API using it is regular when, host software and third party's function can by with this
API is interacted using API corresponding to rule, and it is specifically, host software can be opened by API Calls third party's functional software
Kit (Software Development Kit, SDK) is sent out, third party's function is realized in host software to realize.
Specifically, the API that host software and third party's function interact can be defaulted as be all kinds of api interfaces collection
Into as logged in API, payment API, pushing the integrated of API and shared API.Corresponding API can be with using the particular content of rule
Set according to actual conditions.For example, the third party's function of setting on logging in can be by main-inlet class as login
API is called, wherein, main-inlet class is entitled logs in API for this.Third party's function on payment can pass through main-inlet class
It is called for the API of payment, wherein, the entitled payment API of the main-inlet class.Further, set for logging in API
When, it is specially:Log in, it is asynchronous log in, delay logs in, obtain log in after user profile and log in whether successfully readjustment etc. the
Tripartite's login feature can be called by login API, and all kinds of login features set different function codes, with logical
When crossing login API progress login feature calling, different login features are made a distinction by function code.Carried out for paying API
Setting, it is specially:The Third-party payment functions such as wechat is paid, Alipay is paid, Jingdone district is paid and bank card is paid
To be called by payment API, and all kinds of payment functions set different identity, to be carried out by paying API
When payment function calls, different payment functions are made a distinction by identity.
When there is identical API to use regular by the first APK and the 2nd APK, it is generally understood that the first APK and second
One in APK is integrated with the Java code executable file (jar bags) with API using regular corresponding API, and another is integrated
The reference rule of the API, can be called with host software corresponding to guarantee by API to third party's function.For example,
API jar bags are integrated in first APK, now, the first APK includes host software program bag and API jar bags.Second
API is integrated in APK and quotes rule, now, the 2nd APK includes third party's function program bag and API quotes rule.Wherein,
It is preferably provide modes to quote rule, i.e., without integrating API jar bags in the 2nd APK, is only through provide modes
Quote API., wherein it is desired to illustrate, the 2nd APK is not to refer in particular to some specific third party's function APK in the present embodiment,
But referring to all kinds of third party's function APK set, i.e. the third party's function APK included in the 2nd APK quantity is not unique.
S120, processing is merged to the first APK and the 2nd APK, generation uses rule and integrated third party's work(comprising API
3rd APK of the host software of energy.
Exemplary, decompiling processing is carried out to the first APK, obtains the first decompiling file.It is counter to the 2nd APK to be compiled
Processing is translated, obtains the second decompiling file.Wherein, it is identical to the first APK and the 2nd APK decompilings processing mode, for example,
Decompiling is carried out by same APK compilation tools.Wherein, after APK decompilings, APK file can be decompiled into corresponding format
File.That is the form of the first decompiling file and the second decompiling file is identical, such as is smali files.Wherein, first
Decompiling file includes the host software program bag with API jar bags, and the second decompiling file includes that there is API to quote rule
Third party's function program bag.It should be noted that because the number of third party's function APK in the 2nd APK is not unique, because
This, the number of the second obtained decompiling file is not unique.
Specifically, processing is merged to the first decompiling file and multiple second decompiling files.Wherein, merging treatment
Concrete mode be chosen as:The first decompiling file and multiple second decompiling files are synthesized according to default script file.It is default
The particular content of script file can be set according to actual conditions.Wherein, preset in script file and preferably include:API's
Configuration file.The configuration file includes the contents such as API main-inlets class, class name and all kinds of lower third party's functions that can be called, with
Client is set to realize API plug-in unit by the configuration file after the 3rd APK is downloaded.Wherein, in merging treatment using quiet
The mode that state merges, i.e., do not change the APK of host software APK itself and third party's function in itself, ensure the APK of host software
Full decoupled with the APK of third party's function, being only through configuration file realizes API plug-in unit, and then realizes place by API
Calling of the major software to third party's function.
Further, to the file process of compilation after merging, to obtain the 3rd final APK.Host is included in 3rd APK
Software APK, third party's function APK and API jar bags.That is the 3rd APK is comprising the API citation criterias and is integrated with the
The APK of the host software of tripartite's function.Wherein, the file after merging is compiled using APK compilation tools, obtains the 3rd
APK.Optionally, the 3rd APK is performed signature, alignment optimization operation, and will sign, alignment optimization operation after the 3rd APK make
To be issued to the APK of client.
The present embodiment provide technical scheme, by obtain third party's function integrate host software the first APK with
The APK of third party's function the 2nd, wherein, the first APK and the 2nd APK have identical API using rule, further, to
Identical API merges processing to obtain with the API using the regular the 3rd using the first APK and the 2nd APK of rule
APK technological means, realize and third party function APK is integrated in the 3rd APK of host software, and host software and third party
Function can be soft without third party's function APK is write into host by being interacted with API using the corresponding api interface of rule
In part program bag so that third party's function and host software can be distinguished independently, be easy to respectively to host software and third party's work(
It can be managed and development of resources.
Embodiment two
Fig. 2 a are a kind of flow chart of the integrated approach for application software installation kit that the embodiment of the present invention two provides.This implementation
Example is embodied on the basis of above-described embodiment.Specifically, obtaining the of the host software of third party's function to be integrated
Before one APK and the 2nd APK of third party's function, it can also include:Selected third party's function is imported in the engineering of structure
Program bag;Based on the reference rule of the API needed for default calling third party's function program bag, third party's function program is compiled
Bag, to generate the 2nd APK.
Further, in the first APK for obtaining the host software of third party's function to be integrated and the second of third party's function
Before APK, it can also include:Compiling is provided with the executable text of Java code for calling the API needed for third party's function program bag
4th APK of part, to generate the first APK.
Further, processing is merged to the first APK and the 2nd APK, generation uses rule and the integrated 3rd comprising API
3rd APK of Fang Gongneng host software is specifically included:The APK of decompiling the first and the 2nd APK, the first decompiling corresponding to generation
File and the second decompiling file;Static monitor the first decompiling file and the second decompiling file, and after compiling static monitor
File generated include API and use rule and the 3rd APK of the host software of integrated third party's function.
With reference to figure 2a, a kind of integrated approach for application software installation kit that the present embodiment provides specifically includes:
S210, selected third party's function program bag is imported in the engineering of structure.
Wherein, third party's function program bag refers to the program in machine code bag for including third party's function SDK, each third party's function
Correspond to third party's function program bag.
S220, the reference rule based on the API needed for default calling third party's function program bag, compile third party's function
Program bag, to generate the 2nd APK.
Specifically, setting API to quote rule for each third party's function program bag, it can be that API jar bags is corresponding
Code write in the code of current engineering, and when setting third party's function program coating host software to pass through API Calls, the 3rd
Square function program bag quotes the reference rule of the API, i.e., quotes API in rule write-in third party's function program bag.Wherein, draw
It is preferably provide modes with rule.Setting API to quote the benefit of rule is, when being compiled to third party's function program bag,
Without being compiled to API jar bags.Especially when third party's function is excessive, the process of compiling API jar bags needs largely
Workload, so by setting API to quote rule, it is based only upon reference rule and each third party's function program bag is compiled,
It can subtract workload during applet process.
Specifically, specifically compile mode when being compiled to third party's function program bag, the compilation tool that uses can be with
Set according to actual conditions.Further, third party's function program bag is compiled based on reference rule, to generate bag
2nd APK of the rule containing reference, and do not include API jar bags in the 2nd APK.Simultaneously as can be by quoting rule
API is realized, hence in so that there is the 2nd APK API to use rule.
S230, compiling are provided with the of the Java code executable file for calling the API needed for third party's function program bag
Four APK, to generate the first APK.
Wherein, the 4th APK refer to third party's function to be integrated and without API using rule host software APK.
In general, the 4th APK can be provided by host software exploitation side.
Specifically, setting the jar bags for the API that can call third party's function program bag in the 4th APK, it specifically can be with
It is:Jar bags are write in the host software program bag in the 4th APK.For example, carrying out decompiling to the 4th APK, the 4th is obtained
Source file in APK file, i.e. host software program bag, and API jar bags are write in host software program bag.
Further, the compilation tool for mode is specifically compiled when being compiled to the 4th APK, using can be according to reality
Situation is set.Further, it can be the host software program to writing API jar bags to compile the 4th APK based on jar bags
Bag is compiled, and the first APK of API jar bags is included with generation.Due to API can be realized by API jar bags, hence in so that
First APK is provided with API using rule, and the API is used using rule and the 2nd APK for being configured with API reference rules API
Rule is identical.
It should be noted that S210-S220 is mainly idiographic flow when developing two APK.S230 is mainly to host
The idiographic flow of software APK (the 4th APK) provisioning API, above-mentioned two flow can be completely independent progress in sequential.This implementation
Execution sequence is intended only as a kind of optional mode in example, and simultaneously non-limiting way.Exemplary, with reference to figure 2b, starting as place
When major software integrates third party's function, the 2nd APK is set, it includes all kinds of third party's functions (such as log in, pay, advertisement)
APK, and set and API is quoted by provide modes.Meanwhile the first APK is set, API jar bags are integrated into host software
In program bag.Wherein, the first APK and the 2nd APK are set simultaneously.Further, the first APK and the 2nd APK when in use,
It can be interacted by API.
S240, the APK of decompiling the first and the 2nd APK, the first decompiling file and the second decompiling file corresponding to generation.
Specifically, decompiling mode, the decompiling instrument used can be set according to actual conditions.Wherein, first
Decompiling file corresponding to APK is designated as the first decompiling file, and it includes the host software program bag with jar bags, the 2nd APK
Corresponding decompiling file is designated as the second decompiling file, and it includes respectively having the third party's function program bag for quoting rule.Need
It is noted that the 2nd APK quantity is not unique, therefore the quantity of the second obtained decompiling file is not also unique.
Optionally, when carrying out decompiling to the first APK and the 2nd APK using same decompiling instrument, the first of generation is anti-
The form of compiling file and the second decompiling file is identical.
S250, static monitor the first decompiling file and the second decompiling file, and compile the life of the file after static monitor
Rule and the 3rd APK of the host software of integrated third party's function are used into comprising API.
Specifically, static close is performed to the first decompiling file and the second decompiling file according to script set in advance
Into, wherein, in script set in advance it is optional including:Composition rule and configuration file.Record API's in configuration file
Use rule, i.e. main-inlet class, class name and all kinds of lower third party's functions that can be called etc..For example, call payment function when pair
It should be payment class, the entitled payment API of class.Meanwhile record third party's function SDK and each 3rd that each main-inlet class can be called
Fang Gongneng SDK identity.Wherein, it is in order to by same class API Calls difference third party's function SDK to set identity
When, different third party's functions are distinguished.Wherein, it is to set main-inlet class per class third party's function, can avoids when the
Tripartite's function is excessive and is that each third party's function is respectively provided with extensive work amount required during corresponding API.
It is exemplary, third party's function program bag and host software in obtained file are merged according to script set in advance
Program bag is separate, is only to set API when host software calls third party's function in this document, to realize
Third party's function is integrated in host software.
Further, the file after merging is compiled, to obtain the 3rd APK.Wherein, compiling mode can be according to reality
Border situation is set.
Optionally, because the quantity of the second decompiling file is not unique, therefore the first decompiling file and the second decompiling
The number of the union operation of file is not unique.With reference to figure 2b, specifically, the first decompiling file and one second anti-volume
After translation part merges, continuation merged with second the second decompiling file, until with whole the second decompiling files
After merging, the file obtained to merging is compiled to obtain the 3rd APK.Wherein, the first decompiling file is included in script
With the merging rule of all the second decompiling files.
The technical scheme that the present embodiment provides, advised by the reference that API is provided with the 2nd APK of third party's function
Then, API jar bags are provided with the first APK of the host software of third party's function to be integrated, and by the first APK and second
APK merges processing and obtains the 3rd APK.Wherein, host software program bag and third party's function program bag are phases in the 3rd APK
It is mutually independent, only realized by an API integrated.Advantage of this is that host software and third party's function can be separated
Come, can not only be realized from maintenance it is full decoupled, while program development aspect can also realize respectively to host software and
The exploitation of third party's function, save human resources and exploit natural resources.When obtaining three APK simultaneously, it is only necessary to by advance
The script file of setting synthesizes to the first APK and the 2nd APK, without changing host software program bag and third party's function journey
Sequence bag, it can also avoid loading caused loading problem during all kinds of third party's function program bags.
Embodiment three
Fig. 3 is a kind of structural representation of the integrating device for application software installation kit that the embodiment of the present invention three provides.Ginseng
Fig. 3 is examined, the integrating device that the present embodiment provides specifically includes:Acquisition module 301 and merging module 302.
Wherein, acquisition module 301, the first Android installation kit of the host software for obtaining third party's function to be integrated
There is identical application programming interface API to use rule by APK and third party's function the 2nd APK, the first APK and the 2nd APK
Then;Merging module 302, for merging processing to the first APK and the 2nd APK, generation uses rule and integrated the comprising API
3rd APK of the host software of tripartite's function.
The present embodiment provide technical scheme, by obtain third party's function integrate host software the first APK with
The APK of third party's function the 2nd, wherein, the first APK and the 2nd APK have identical API using rule, further, to
Identical API merges processing to obtain with the API using the regular the 3rd using the first APK and the 2nd APK of rule
APK technological means, realize and third party function APK is integrated in the 3rd APK of host software, and host software and third party
Function can be by being interacted, without third party's function APK is write into host software journey with API using the corresponding API of rule
In sequence bag so that third party's function and host software can be distinguished independently, be easy to respectively enter host software and third party's function
Row management and development of resources.
On the basis of above-described embodiment, in addition to:Import modul, for obtaining the host of third party's function to be integrated
Before first APK of software and the 2nd APK of third party's function, selected third party's function program is imported in the engineering of structure
Bag;First generation module, for based on the default reference rule for calling the API needed for third party's function program bag, compiling
Third party's function program bag is translated, to generate the 2nd APK.
On the basis of above-described embodiment, in addition to:Second generation module, for obtaining third party's function to be integrated
Before first APK of host software and the 2nd APK of third party's function, compiling, which is provided with, calls needed for third party's function program bag
API Java code executable file the 4th APK, to generate the first APK.
On the basis of above-described embodiment, the merging module 302 includes:Decompiling unit, for the APK of decompiling the first
With the 2nd APK, the first decompiling file and the second decompiling file corresponding to generation;Piece file mergence unit, for static monitor
First decompiling file and the second decompiling file, and compile the file generated after static monitor and include API using rule and collect
Into the 3rd APK of the host software of third party's function.
The integrating device of application software installation kit provided in an embodiment of the present invention can be used for performing above-mentioned any embodiment
The integrated approach of the application software installation kit of offer, possess corresponding function and beneficial effect.
Example IV
Fig. 4 is a kind of structural representation for equipment that the embodiment of the present invention four provides.As shown in figure 4, the equipment includes place
Manage device 40, memory 41, input unit 42 and output device 43;The quantity of processor 40 can be one or more in equipment,
In Fig. 4 by taking a processor 40 as an example;Processor 40, memory 41, input unit 42 and output device 43 in equipment can be with
Connected by bus or other modes, in Fig. 4 exemplified by being connected by bus.
Memory 41 is used as a kind of computer-readable recording medium, and journey is can perform available for storage software program, computer
Sequence and module, programmed instruction/module (example as corresponding to the integrated approach of the application software installation kit in the embodiment of the present invention
Such as, acquisition module 301 and merging module 302).Processor 40 is by running the software program being stored in memory 41, instruction
And module, so as to perform the various function application of equipment and data processing, that is, realize above-mentioned application software installation kit
Integrated approach.
Memory 41 can mainly include storing program area and storage data field, wherein, storing program area can store operation system
Application program needed for system, at least one function;Storage data field can store uses created data etc. according to equipment.This
Outside, memory 41 can include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic
Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 41 can be further
Including network connection to equipment can be passed through relative to the remotely located memory of processor 40, these remote memories.It is above-mentioned
The example of network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 42 can be used for the numeral or character information for receiving input, and produce set with the user of equipment and
The relevant key signals input of function control.Output device 43 may include the display devices such as display screen.
Equipment provided in an embodiment of the present invention can perform the collection for the application software installation kit that above-mentioned any embodiment provides
Into method, possess corresponding function and beneficial effect.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium for including computer executable instructions, and the computer can be held
Row instruction by computer processor when being performed for performing a kind of integrated approach of application software installation kit, application software peace
The integrated approach of dress bag includes:
Obtain the host software of third party's function to be integrated the first Android installation kit APK and third party's function second
There is identical application programming interface API to use rule by APK, the first APK and the 2nd APK;
Processing is merged to the first APK and the 2nd APK, generation using rule and integrates third party's function comprising API
3rd APK of host software.
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The integrated approach operation for the application software installation kit that executable instruction is not limited to the described above, it can also carry out of the invention any real
The associative operation in the integrated approach for the application software installation kit that example is provided is applied, possesses corresponding function and beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to realized by hardware, but the former is more in many cases
Good embodiment.Based on such understanding, what technical scheme substantially contributed to prior art in other words
Part can be embodied in the form of software product, and the computer software product can be stored in computer-readable recording medium
In, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are causing a computer to set
Standby (can be personal computer, server, or network equipment etc.) performs the application software described in each embodiment of the present invention
The integrated approach of installation kit.
It is worth noting that, in the embodiment of the integrating device of above-mentioned application software installation kit, included unit
Simply divided with module according to function logic, but be not limited to above-mentioned division, as long as corresponding work(can be realized
Energy;In addition, the specific name of each functional unit is also only to facilitate mutually distinguish, the guarantor being not intended to limit the invention
Protect scope.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
- A kind of 1. integrated approach of application software installation kit, it is characterised in that including:Obtain the first Android installation kit APK of the host software of third party's function to be integrated and the 2nd APK of third party's function, institute Stating the first APK and the 2nd APK, there is identical application programming interface API to use rule;Processing is merged to the first APK and the 2nd APK, generation uses rule and the integrated 3rd comprising the API 3rd APK of Fang Gongneng host software.
- 2. integrated approach according to claim 1, it is characterised in that it is described obtain third party's function to be integrated host it is soft Before the step of first APK of part and two APK of third party's function, in addition to:Selected third party's function program bag is imported in the engineering of structure;Based on the default reference rule for calling the API needed for third party's function program bag, third party's function is compiled Program bag, to generate the 2nd APK.
- 3. integrated approach according to claim 1, it is characterised in that it is described obtain third party's function to be integrated host it is soft Before the step of first APK of part and two APK of third party's function, in addition to:Compiling is provided with the 4th APK of the Java code executable file for calling the API needed for third party's function program bag, with life Into the first APK.
- 4. integrated approach according to claim 1, it is characterised in that described to enter to the first APK and the 2nd APK Row merging treatment, generation are wrapped comprising the API using the step of three APK of rule and the host software of integrated third party's function Include:First APK described in decompiling and the 2nd APK, the first decompiling file and the second decompiling file corresponding to generation;First decompiling file described in static monitor and the second decompiling file, and compile the file generated after static monitor Rule and the 3rd APK of the host software of integrated third party's function are used comprising the API.
- A kind of 5. integrating device of application software installation kit, it is characterised in that including:Acquisition module, for the first Android installation kit APK and third party's work(of the host software for obtaining third party's function to be integrated There is the 2nd APK, the first APK and the 2nd APK of energy identical application programming interface API to use rule;Merging module, for merging processing to the first APK and the 2nd APK, generation uses rule comprising the API Then and the host software of integrated third party's function the 3rd APK.
- 6. integrating device according to claim 5, it is characterised in that also include:Import modul, in the first APK for obtaining the host software of third party's function to be integrated and the second of third party's function Before APK, selected third party's function program bag is imported in the engineering of structure;First generation module, for based on the default reference rule for calling the API needed for third party's function program bag, compiling Third party's function program bag is translated, to generate the 2nd APK.
- 7. integrating device according to claim 5, it is characterised in that also include:Second generation module, for obtaining the first APK of the host software of third party's function to be integrated and third party's function Before 2nd APK, compiling is provided with the 4th of the Java code executable file for calling the API needed for third party's function program bag APK, to generate the first APK.
- 8. integrating device according to claim 5, it is characterised in that the merging module includes:Decompiling unit, for the first APK described in decompiling and the 2nd APK, the first decompiling file corresponding to generation and Second decompiling file;Piece file mergence unit, for the first decompiling file described in static monitor and the second decompiling file, and compile quiet File generated after state synthesis includes the API and uses rule and the 3rd APK of the host software of integrated third party's function.
- 9. a kind of equipment, it is characterised in that the equipment includes:One or more processors;Memory, for storing one or more programs,When one or more of programs are by one or more of computing devices so that one or more of processors are real The now integrated approach of the application software installation kit as described in any in claim 1-4.
- 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The integrated approach of the application software installation kit as described in any in claim 1-4 is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710647600.0A CN107402792B (en) | 2017-08-01 | 2017-08-01 | Integration method, device, equipment and storage medium of application software installation package |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710647600.0A CN107402792B (en) | 2017-08-01 | 2017-08-01 | Integration method, device, equipment and storage medium of application software installation package |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107402792A true CN107402792A (en) | 2017-11-28 |
CN107402792B CN107402792B (en) | 2020-08-28 |
Family
ID=60401810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710647600.0A Active CN107402792B (en) | 2017-08-01 | 2017-08-01 | Integration method, device, equipment and storage medium of application software installation package |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107402792B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107844301A (en) * | 2017-12-12 | 2018-03-27 | 苏州蜗牛数字科技股份有限公司 | A kind of Android application channel closes bag method and device |
CN110908734A (en) * | 2019-11-15 | 2020-03-24 | 网易(杭州)网络有限公司 | Application combination method and device based on plug-in, terminal equipment and storage medium |
CN111290801A (en) * | 2020-02-13 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Data processing method, data processing device, computer equipment and storage medium |
CN112711445A (en) * | 2019-10-26 | 2021-04-27 | 广州星际悦动股份有限公司 | Application program management method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140114769A (en) * | 2013-03-15 | 2014-09-29 | 주식회사 에스이웍스 | Method for Binary Obfuscating of Dalvix Executable File in Android |
CN104090772A (en) * | 2014-07-23 | 2014-10-08 | 广州金山网络科技有限公司 | Method and device for generating android package (APK) |
CN104216741A (en) * | 2014-08-25 | 2014-12-17 | 华中科技大学 | Android plug-in implementation method and device based on APK (Android Package) dynamic loading and interaction method |
CN104484585A (en) * | 2014-11-26 | 2015-04-01 | 北京奇虎科技有限公司 | Application program installation package processing method and device, and mobile apparatus |
CN104572089A (en) * | 2014-12-26 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and device for generating android installation package |
-
2017
- 2017-08-01 CN CN201710647600.0A patent/CN107402792B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140114769A (en) * | 2013-03-15 | 2014-09-29 | 주식회사 에스이웍스 | Method for Binary Obfuscating of Dalvix Executable File in Android |
CN104090772A (en) * | 2014-07-23 | 2014-10-08 | 广州金山网络科技有限公司 | Method and device for generating android package (APK) |
CN104216741A (en) * | 2014-08-25 | 2014-12-17 | 华中科技大学 | Android plug-in implementation method and device based on APK (Android Package) dynamic loading and interaction method |
CN104484585A (en) * | 2014-11-26 | 2015-04-01 | 北京奇虎科技有限公司 | Application program installation package processing method and device, and mobile apparatus |
CN104572089A (en) * | 2014-12-26 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and device for generating android installation package |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107844301A (en) * | 2017-12-12 | 2018-03-27 | 苏州蜗牛数字科技股份有限公司 | A kind of Android application channel closes bag method and device |
CN112711445A (en) * | 2019-10-26 | 2021-04-27 | 广州星际悦动股份有限公司 | Application program management method and system |
CN112711445B (en) * | 2019-10-26 | 2023-12-12 | 广州星际悦动股份有限公司 | Application program management method and system |
CN110908734A (en) * | 2019-11-15 | 2020-03-24 | 网易(杭州)网络有限公司 | Application combination method and device based on plug-in, terminal equipment and storage medium |
CN111290801A (en) * | 2020-02-13 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Data processing method, data processing device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107402792B (en) | 2020-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109885311B (en) | Application program generation method and device | |
Mellor et al. | Guest editors' introduction: Model-driven development | |
JP6490598B2 (en) | Compiler-based obfuscation | |
CN107402792A (en) | Integrated approach, device, equipment and the storage medium of application software installation kit | |
CN101233485B (en) | Method and system for integrating late bound functions and languages into an external program environment | |
CN106990966A (en) | Mobile terminal cross-platform Development Framework and development approach based on front end frame | |
JP6412276B2 (en) | Virtual machine creation method and apparatus | |
CN105814539A (en) | Method and apparatus for code virtualization and remote process call generation | |
CN104572237A (en) | Automatic quick generation system and method for UKey installation package | |
KR101878870B1 (en) | Distributed Ledger Device and Distributed Ledger Method for Token Issuance and User Identification Management Based on Block Chain | |
CN104715309A (en) | Service control method and device | |
CN110197052A (en) | Authority application method, apparatus, equipment and storage medium based on Android platform | |
CN110895471A (en) | Installation package generation method, device, medium and electronic equipment | |
US20150113506A1 (en) | Method and system for adaptive loading of application | |
US11531763B1 (en) | Automated code generation using analysis of design diagrams | |
US20150113502A1 (en) | Method and system for encapsulation of application | |
US9715372B2 (en) | Executable guidance experiences based on implicitly generated guidance models | |
CN109413189B (en) | Electronic transaction system based on bottom translation | |
KR101962285B1 (en) | Distributed Ledger Device and Distributed Ledger Method for User Identification Management Based on Block Chain | |
KR102323276B1 (en) | Method and apparatus for converting application | |
CN108984158A (en) | Computing device and the method executed in the computing device | |
CN110018831B (en) | Program processing method, program processing apparatus, and computer-readable storage medium | |
CN110597496B (en) | Method and device for acquiring bytecode file of application program | |
CN108170433A (en) | A kind of Java code obscures method, restoration methods and its device | |
CN101593258B (en) | System for realizing.Net virtual machine in software protection device and method thereof |
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 |