CN108595187A - Method, device and the storage medium of Android installation kit integrated software development kit - Google Patents

Method, device and the storage medium of Android installation kit integrated software development kit Download PDF

Info

Publication number
CN108595187A
CN108595187A CN201810256529.8A CN201810256529A CN108595187A CN 108595187 A CN108595187 A CN 108595187A CN 201810256529 A CN201810256529 A CN 201810256529A CN 108595187 A CN108595187 A CN 108595187A
Authority
CN
China
Prior art keywords
dex
new content
byte code
modified
software development
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810256529.8A
Other languages
Chinese (zh)
Inventor
龚安
简军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Good Life Partner Information Technology Co Ltd
Original Assignee
Beijing Good Life Partner Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Good Life Partner Information Technology Co Ltd filed Critical Beijing Good Life Partner Information Technology Co Ltd
Priority to CN201810256529.8A priority Critical patent/CN108595187A/en
Publication of CN108595187A publication Critical patent/CN108595187A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

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

Abstract

The present invention provides a kind of integrated approach, device and the storage mediums of the Software Development Kit of APK.This method includes:According to the more new content of Software Development Kit, the corresponding position in Dex byte code files that more new content includes in APK is determined;It according to the more new content of Software Development Kit, modifies to the Dex bytecodes positioned at corresponding position, to generate modified Dex byte code files.The present invention, which can realize, directly modifies to the Dex byte code files in APK packets so that during integrated SDK, it is not necessary to recompilate entire APK and generate new Dex byte code files, and then promote APK development efficiency.

Description

Method, device and the storage medium of Android installation kit integrated software development kit
Technical field
The present invention relates to field of software development more particularly to a kind of sides of Android installation kit integrated software development kit Method, device and storage medium.
Background technology
Android installation kit (Android Package, APK) is Android Software Development Kit (Software Development Kit, SDK) compile and be packaged and an installation procedure file being formed, wherein including Dex bytecode texts Part.Dex byte code files are that the exclusive file of Dalvik virtual machine executes format, and Dalvik is that Google grasps exclusively for Android Make the virtual machine of system design, has Dex byte code files, the institute that the inside contains the application active in each APK installation kits Code.The code in Dex byte code files can be checked by tools such as such as apktool or Dex2jar+jd-gui.
Integrated third party SDK is frequently necessary in Android (Android) system development, most of is all by the way that SDK to be packaged At jar formatted files either aar formatted files, SDK is integrated into APK after recompility.Due to integrating SDK all every time It needs to recompilate entire APK so that APK development efficiency declines.
Therefore a kind of urgently method that SDK is efficiently integrated into APK.
Invention content
In view of this, an embodiment of the present invention provides a kind of method of Android installation kit integrated software development kit, dresses Set and storage medium, can in APK integrated software development kit.
The method that one aspect of the present invention provides a kind of Android installation kit integrated software development kit, including:According to The more new content of Software Development Kit, pair in Dex byte code files that determining more new content includes in Android installation kit Answer position;It according to the more new content of Software Development Kit, modifies to the Dex bytecodes positioned at corresponding position, to generate Modified Dex byte code files.
In one embodiment of the invention, it modifies to the Dex bytecodes positioned at corresponding position, after generating modification Dex byte code files, including:It adds and instructs in corresponding position, wherein instruction is for executing except Dex byte code files Code;Wherein, the code except Dex byte code files includes:Include the code of the more new content of Software Development Kit;
In one embodiment of the invention, it modifies to the Dex bytecodes positioned at corresponding position, after generating modification Dex byte code files, including:More new content is added to corresponding position;Or it is replaced to be located at originally with more new content and be corresponded to The Dex bytecodes of position.
In one embodiment of the invention, further include:Android installation kit is decompressed, Dex byte code files are obtained;It will modification Compressing file afterwards generates modified Android installation kit, and modified file includes:Modified Dex byte code files.
In one embodiment of the invention, method further includes:Include in retrieval Android installation kit AndroidManifest.xml files, the information of securing component, wherein information includes:The startup position of component;According to software The more new content of development kit, the correspondence position in Dex byte code files that determining more new content includes in Android installation kit It sets, including:According to the more new content for starting position and Software Development Kit, the Dex bytes for including in Android installation kit are retrieved Code file content, obtains corresponding position of the more new content in Dex byte code files, and wherein method further includes:It is opened according to software The more new content of kit is sent out, the content of AndroidManifest.xml files is updated, is generated modified AndroidManifest.xml;Generate modified Android installation kit, wherein modified Android installation is comprising modified AndroidManifest.xml。
In one embodiment of the invention, the more new content of Software Development Kit includes:User right, function and class At least one of in.
Another aspect of the present invention provides a kind of device of Android installation kit integrated software development kit, including:It is fixed Position module determines the Dex words that more new content includes in Android installation kit for the more new content according to Software Development Kit Save the corresponding position in code file;Modified module, for the more new content according to Software Development Kit, to being located at corresponding position Dex bytecodes modify, to generate modified Dex byte code files.
In one embodiment of the invention, modified module is added in corresponding position and is instructed, wherein instruction is for executing Code except Dex byte code files;Wherein, the code except Dex byte code files includes:Including Software Development Kit The code of more new content.
In one embodiment of the invention, more new content is added to corresponding position by modified module;Or in update Hold the Dex bytecodes replaced and be located at corresponding position originally.
In one embodiment of the invention, locating module is additionally operable to, and decompresses Android installation kit, obtains Dex bytecode texts Part;Modified module is additionally operable to, and modified compressing file is generated modified Android installation kit, modified file includes: Modified Dex byte code files.
In one embodiment of the invention, locating module is additionally operable to, and includes in retrieval Android installation kit AndroidManifest.xml files, the information of securing component, wherein information includes:The startup position of component;According to software The more new content of development kit, the correspondence position in Dex byte code files that determining more new content includes in Android installation kit It sets, including:According to the more new content for starting position and Software Development Kit, the Dex bytes for including in Android installation kit are retrieved Code file content, obtains corresponding position of the more new content in Dex byte code files, and modified module is additionally operable to:It is opened according to software The more new content of kit is sent out, the content of AndroidManifest.xml files is updated, is generated modified AndroidManifest.xml;And generate modified Android installation kit, wherein modified Android installation includes modification AndroidManifest.xml afterwards.
In one embodiment of the invention, the more new content of Software Development Kit includes:User right, function and class At least one of in.
Another aspect of the present invention provides a kind of storage medium, is stored thereon with computer executable instructions, feature It is, the method that above-mentioned Android installation kit integrated software development kit is realized when executable instruction is executed by processor.
The technical solution provided according to embodiments of the present invention is determined by the more new content according to Software Development Kit The corresponding position in Dex byte code files that more new content includes in Android installation kit;More according to Software Development Kit New content modifies to the Dex bytecodes positioned at corresponding position, to generate modified Dex byte code files, realizes pair Dex byte code files in Android installation kit are directly modified so that during integrated SDK, it is not necessary to again by entire APK Compiling generates new Dex byte code files, and then promotes APK development efficiency.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of Android installation kit integrated software development kit shown according to an exemplary embodiment of the invention The flow chart of method.
Fig. 2 is the development kit side of a kind of Android installation kit integrated software shown according to an exemplary embodiment of the invention The flow chart of method.
Fig. 3 is a kind of Android installation kit integrated software development kit shown according to an exemplary embodiment of the invention The block diagram of device.
Fig. 4 is to be used for Android installation kit integrated software development kit according to shown in an exemplary embodiment of the invention The block diagram of device.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained without creative efforts Example is applied, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of Android installation kit integrated software development kit shown according to an illustrative examples of the invention The flow chart of method, as shown in Figure 1, this method includes:
Step 110:Determine corresponding position of the more new content in Dex byte code files.
In embodiments of the present invention, developer retrieves the content of Dex byte code files according to the more new content of SDK, and Determine position of the more new content in Dex byte code files.For example, in embodiments of the present invention, the more new content of SDK includes more A certain function in new APK, developer find in Dex byte code files the position corresponding to this function by code scan tool It sets.
In another embodiment of the present invention, the more new content of SDK includes one new token (token) character of addition String.Developer retrieves the content of Dex byte code files, token is recorded in Dex byte code files by code scan tool The part of character string, according to putting in order for letter and number, determine new token character string the position to be added arrived.
Step 120:It modifies in the Dex bytecodes of corresponding position, to generate modified Dex byte code files.
In embodiments of the present invention, by changing the Dex bytecodes in corresponding position, modified Dex bytecodes are generated File.It includes execution program that bytecode (Byte-code), which is a kind of, literary to the binary system formed by a sequence op code/datas Part.The content being first written into when modification is Dex bytecodes according to the standard handovers that Google issues, then will be transformed The corresponding position of Dex byte code files is written in Dex bytecodes.For example, in embodiments of the present invention, by function statement to be modified Dex bytecodes are converted to, corresponding position in Dex byte code files is written.In an alternative embodiment of the invention, by token character String input developing instrument, is converted to Dex bytecodes, and pair of Dex byte code files is written by developing instrument by token character string Answer position.It should be understood that the present invention does not limit the mode that Content Transformation to be written is Dex bytecodes.
Through the above steps, it directly modifies to the Dex byte code files in APK packets so that the process of integrated SDK In, it is not necessary to entire APK is recompilated and generates new Dex byte code files, and then promotes APK development efficiency.
According to an embodiment of the invention, the method for above-mentioned integrated SDK further includes:APK packets are decompressed, Dex bytecode texts are obtained Part;Modified compressing file is generated into modified APK packets, modified file includes:Modified Dex bytecodes text Part.Enable developer easily to obtain Dex byte code files through the above steps and generates modified APK file.
According to an embodiment of the invention, the more new content of above-mentioned Software Development Kit includes:User right, function, change At least one of in amount and class so that developer can modify to the different types of content in APK.
In another embodiment of the present invention, modify to the Dex bytecodes positioned at corresponding position, it is modified to generate Dex byte code files, including:It adds and instructs in corresponding position, wherein instruction is for executing the generation except Dex byte code files Code;Wherein, the code except Dex byte code files includes:Include the code of the more new content of institute's part development kit.
Since Dex byte code files are that Java source code is generated by compiling, so the legal sentence in Java language Dex byte code files can be written after compiling and be performed.In Java language, provide a variety of for loading classes, tune With external program or function, or the instruction of reference external variable, in embodiments of the present invention, by by this kind of compiling of instruction Dex byte code files are written afterwards so that when the bytecode is run, can loading classes, call external function or program, or draw Use external variable.Meanwhile content to be updated in SDK being packaged into the file that can be called by Dex byte code files, so as to it It can be by the routine call in Dex byte code files.
Through the above steps so that existing function in original program can not be changed in the integrating process of SDK.
In an alternative embodiment of the invention, the method for integrated SDK further includes:Include in retrieval APK AndroidManifest.xml files, the information of securing component, wherein information includes:The startup position of component;According to software The more new content of development kit, the corresponding position in Dex byte code files that determining more new content includes in APK include: According to the more new content for starting position and Software Development Kit, the Dex byte code files contents for including in APK are retrieved, are obtained Corresponding position of the more new content in Dex byte code files, wherein the method for integrated SDK further includes:According to Software Development Tools The more new content of packet updates the content of AndroidManifest.xml files, generates modified AndroidManifest.xml;Generate modified APK, wherein modified APK includes modified AndroidManifest.xml。
AndroidManifest.xml is necessary file in each Android program, is the entry file of Android application, it Describe the component in APK packets, including application, the respective realization class such as activities and services, various energy Processed data and startup position.Analysis AndroidManifest.xml can be carried out by text editor, can also be led to Other softwares for editing are crossed to be analyzed.The embodiment of the present invention does not limit the method for retrieving AndroidManifest.xml.
For example, in the embodiment of the present invention, need to modify to application classes.Developer exists The startup position that application classes are found in AndroidManifest.xml files, according to the update for starting position and SDK Content retrieves the Dex byte code files contents for including in APK, obtains correspondence position of the more new content in Dex byte code files It sets.It also needs to change corresponding application classes in AndroidManifest.xml accordingly when integrated SDK, and It is wrapped into generating new APK.
In another embodiment, it needs to add new application classes.Developer exists The corresponding position that application classes to be added are found in AndroidManifest.xml files, phase is added on this position The content answered, for example, addition onCreate functions, and at the same time onCreate functions is enabled to inherit all classes in path.It is modified AndroidManifest.xml is packaged with alternative document and generates new APK jointly.
Through the above steps so that SDK integrating process can modify and add to class.
Fig. 2 is the development kit side of a kind of Android installation kit integrated software shown according to an exemplary embodiment of the invention The flow chart of method, as shown in Fig. 2, this method includes:
Step 210:APK file is decompressed, AndroidManifest.xml files wherein included and original Dex words are obtained Save code file.
Include AndroidManifest.xml files and classes.Dex byte code files (i.e. original Dex bytes in APK Code file).APK file is zip formats in fact, can be decompressed by a variety of decoder softwares.
Step 220:AndroidManifest.xml is analyzed, the respective realizations of application and activities are obtained Class, the various processed data of energy and startup position.
AndroidManifest.xml is necessary file in each android programs, is the entrance of Android applications File, it describes the component in APK packets, including application, the respective realization such as activities and services Class, the various processed data of energy and startup position.Analyze AndroidManifest.xml can by text editor into Row, can also be analyzed by other byte softwares for editing.
Step 230:According to SDK mark sheets, corresponding content in AndroidManifest.xml is changed.
SDK mark sheets are the files for the feature for recording this newer SDK content, wherein the feature of content includes, new to add The application and activities that enter and its respective realization class, the various processed data of energy and startup position.Also Including in original application and activities, the realization class being respectively newly added can processed number after various updates According to updated startup position.
Corresponding content refers in modification AndroidManifest.xml, right according to the content in above-mentioned SDK mark sheets Corresponding content makes the modification of addition or replacement in AndroidManifest.xml files, such as adds or replace and is to be updated Application classes startup position.
Step 240:Original Dex byte code files are scanned, according to the compiling of byte code files rule, in original Dex bytes The corresponding position of code file, is written token, with modification authority.
Token is a string of character strings for authentication, and in byte code files, token is pressed in the form of character string The specific position of byte code files is stored according to the compiling rule of Dex byte code files.For example, in embodiments of the present invention, Token is arranged in order according to letter and the sequence of number in the designated position of original Dex byte code files.When the new write-in of needs When one token, the letter and numerical order of token newer first and original token obtain new token and are located at original Dex Position in byte code files, is inserted into the position by new token later, and completion is written in original Dex byte code files token。
Step 250:According to the information of application or activities that step 220 scanning obtains, judge original Which application or activities needs that new SDK contents are written in Dex byte code files.If necessary to newly-built Application or activities is established newly then according to the compiling of byte code files rule in corresponding position Application or activities.
Step 260:According to step 250 as a result, being searched in the application for needing to be written new SDK contents OnCreate functions if adding onCreate functions without if, and enable newly added onCreate functions inherit path institute There is class;In activities, onStart/onStop functions are searched for, if adding onStart/onStop functions without if.
Step 270:According to step 260 as a result, being recorded in need in onCreate functions and onStart/onStop functions Newly to be inserted into or change the position of the point of code;According to SDK mark sheets, record needs the position where the function replaced or changed It sets.
For example, in embodiments of the present invention, one section of new code B is added before needing the code A in onCreate functions, Code A is then searched first in onCreate functions, and the initial position of record code A is in original Dex byte code files Line number and columns.In an alternative embodiment of the invention, it needs to replace the code C in onStart functions using code D, then first Code C is searched in onStart functions, and records initial positions and stop bits of the code C in original Dex byte code files The line number and columns set.The amending method of other functions is identical as above-mentioned modification onCreate functions and onStart functions, for letter For the sake of clean, details are not described herein.
Step 280:According to the location information recorded in step 270, on the corresponding position in original Dex byte code files Bytecode to be updated is written, the content of bytecode includes:According to the newer class of SDK mark sheets, function and sentence.It is newer Class, function and sentence are loaded by way of reflecting class load, and the mode of reflection class load is first to load SDK-loader texts Part, then newer class, function and sentence are loaded by SDK-loader files.
All items in this SDK updates of SDK-loader file records, and file where its code is quoted. Modification mode in original Dex byte code files is that sentence is added in the position for needing to modify, program is made to execute the language SDK-loader files are accessed when sentence, and inquire the correspondence project in SDK-loader files, pass through the reference of SDK-loader The file where the respective items destination code is accessed, to execute the code, and after execution, continues to execute former Dex words Section code document positions the code postponed.
For example, in the embodiment of the present invention, one section of new code B is added before needing the code A in onCreate functions, then Before the initial position of code A, sentence is added so that program accesses SDK-loader files when running the sentence of this addition, And the project corresponding to code B is inquired, by the file where the reference fetcher code B in SDK-loader files, and then hold Line code B.Code B execution continues to execute code A after terminating.
Step 290:By modified Dex byte code files, AndroidManifest.xml files, SDK-loader texts File where part and fresh code, which is repacked, to be incorporated in APK, and updated APK file is generated.
Following is apparatus of the present invention embodiment, can be used for executing the method for the present invention embodiment.For apparatus of the present invention reality Undisclosed details in example is applied, the method for the present invention embodiment is please referred to.
Fig. 3 is a kind of Android installation kit integrated software development kit shown according to an exemplary embodiment of the invention The block diagram of device 300.As shown in figure 3, the device 300 includes:
Locating module 310 determines that more new content includes in APK for the more new content according to Software Development Kit Dex byte code files in corresponding position;And
Modified module 320, for the more new content according to Software Development Kit, to the Dex bytes positioned at corresponding position Code is modified, to generate modified Dex byte code files.
The technical solution provided according to embodiments of the present invention is determined by the more new content according to Software Development Kit The corresponding position in Dex byte code files that more new content includes in APK;According to the more new content of Software Development Kit, It modifies to the Dex bytecodes positioned at corresponding position, to generate modified Dex byte code files, realizes in APK packets Dex byte code files directly modify so that during integrated SDK, it is not necessary to entire APK is recompilated generate it is new Dex byte code files, and then promote APK development efficiency.
In one embodiment of the invention, modified module 310 is added in corresponding position and is instructed, wherein instruction is for holding Code except row Dex byte code files;Wherein, the code except Dex byte code files includes:Including Software Development Kit More new content code.
In one embodiment of the invention, more new content is added to corresponding position by modified module 310;Or with update Content replaces the Dex bytecodes for being located at corresponding position originally.
In one embodiment of the invention, locating module 310 is additionally operable to, and decompresses APK packets, obtains Dex byte code files; Modified module is additionally operable to, and modified compressing file is generated modified APK packets, modified file includes:It is modified Dex byte code files.
In one embodiment of the invention, locating module 310 is additionally operable to, and includes in retrieval APK AndroidManifest.xml files, the information of securing component, wherein information includes:The startup position of component;According to software The more new content of development kit, the corresponding position in Dex byte code files that determining more new content includes in APK, including: According to the more new content for starting position and Software Development Kit, the Dex byte code files contents for including in APK are retrieved, are obtained Corresponding position of the more new content in Dex byte code files, modified module 320 are additionally operable to:More according to Software Development Kit New content updates the content of AndroidManifest.xml files, generates modified AndroidManifest.xml;And Generate modified APK, wherein modified APK includes modified AndroidManifest.xml.
In one embodiment of the invention, the more new content of Software Development Kit includes:User right, function and class At least one of in.
The function of modules and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus Realization process, details are not described herein.
Fig. 4 is to be used for Android installation kit integrated software development kit according to shown in an exemplary embodiment of the invention The block diagram of device 400.
With reference to Fig. 4, device 400 includes processing component 410, further comprises one or more processors, and by depositing Memory resource representated by reservoir 420, can be by the instruction of the execution of processing component 410, such as application program for storing.It deposits The application program stored in reservoir 420 may include it is one or more each correspond to one group of instruction module.This Outside, processing component 410 is configured as executing instruction, the method to execute above-mentioned Android installation kit integrated software development kit.
Device 400 can also include that a power supply module be configured as the power management of executive device 400, one it is wired or Radio network interface is configured as device 400 being connected to network and input and output (I/O) interface.Device 400 can be grasped Make based on the operating system for being stored in memory 420, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTMOr it is similar.
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is by the processing of above-mentioned apparatus 400 When device executes so that the method that above-mentioned apparatus 400 is able to carry out a kind of Android installation kit integrated software development kit, including: According to the more new content of Software Development Kit, the correspondence position in Dex byte code files that more new content includes in APK is determined It sets;It according to the more new content of Software Development Kit, modifies to the Dex bytecodes positioned at corresponding position, to generate modification Dex byte code files afterwards.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), arbitrary access are deposited The various media that can store program ver-ify code such as reservoir (Random Access Memory, RAM), magnetic disc or CD.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of method of Android installation kit integrated software development kit, which is characterized in that including:
According to the more new content of Software Development Kit, determine described in the more new content Dex that includes in the Android installation kit Corresponding position in byte code files;
According to the more new content of the Software Development Kit, modify to the Dex bytecodes positioned at the corresponding position, with Generate modified Dex byte code files.
2. content according to claim 1, which is characterized in that described pair be located at the corresponding position Dex bytecodes into Row modification, to generate modified Dex byte code files, including:
It adds and instructs in the corresponding position, wherein described instruction is used to execute the code except the Dex byte code files;
Wherein, the code except the Dex byte code files includes:Include the generation of the more new content of the Software Development Kit Code.
3. content according to claim 1, which is characterized in that described pair be located at the corresponding position Dex bytecodes into Row modification, to generate modified Dex byte code files, including:
The more new content is added to the corresponding position;Or
The Dex bytecodes for being located at the corresponding position originally are replaced with the more new content.
4. content according to any one of claims 1 to 3, which is characterized in that further include:
The Android installation kit is decompressed, the Dex byte code files are obtained;Modified compressing file is generated into modified peace Tall and erect installation kit, the modified file include:The modified Dex byte code files.
5. method according to any one of claims 1 to 3, which is characterized in that the method further includes:
The AndroidManifest.xml files for including in retrieval Android installation kit, the information of securing component, wherein the letter Breath includes:The startup position of the component;
The more new content according to Software Development Kit, determine described in more new content include in the Android installation kit Corresponding position in Dex byte code files, including:
According to the more new content for starting position and the Software Development Kit, retrieves in the Android installation kit and include The Dex byte code files content, obtain described in corresponding position of the more new content in the Dex byte code files,
Wherein the method further includes:
According to the more new content of the Software Development Kit, the content of the AndroidManifest.xml files is updated, it is raw At modified AndroidManifest.xml;
Generate modified Android installation kit, wherein the modified Android installation is comprising described modified AndroidManifest.xml。
6. method according to any one of claims 1 to 3, which is characterized in that the Software Development Kit is more New content includes:At least one of in user right, function and class.
7. a kind of device of Android installation kit integrated software development kit, which is characterized in that including:
Locating module, for the more new content according to Software Development Kit, more new content is installed in the Android described in determination The corresponding position in Dex byte code files for including in packet;
Modified module, for the more new content according to the Software Development Kit, to the Dex bytes positioned at the corresponding position Code is modified, to generate modified Dex byte code files.
8. content according to claim 7, which is characterized in that the modified module is added in the corresponding position and is instructed, Wherein, described instruction is used to execute the code except the Dex byte code files;
Wherein, the code except the Dex byte code files includes:Include the generation of the more new content of the Software Development Kit Code.
9. content according to claim 7, which is characterized in that the more new content is added to described by the modified module Corresponding position;Or
The Dex bytecodes for being located at the corresponding position originally are replaced with the more new content.
10. the method according to any one of claims 7 to 9, which is characterized in that the locating module is additionally operable to, inspection The AndroidManifest.xml files for including in Suo Anzhuo installation kits, the information of securing component, wherein described information includes: The startup position of the component;
The more new content according to Software Development Kit, determine described in more new content include in the Android installation kit Corresponding position in Dex byte code files, including:
According to the more new content for starting position and the Software Development Kit, retrieves in the Android installation kit and include The Dex byte code files content, obtain described in corresponding position of the more new content in the Dex byte code files,
The modified module is additionally operable to:
According to the more new content of the Software Development Kit, the content of the AndroidManifest.xml files is updated, it is raw At modified AndroidManifest.xml;And
Generate modified Android installation kit, wherein the modified Android installation is comprising described modified AndroidManifest.xml。
CN201810256529.8A 2018-03-27 2018-03-27 Method, device and the storage medium of Android installation kit integrated software development kit Pending CN108595187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810256529.8A CN108595187A (en) 2018-03-27 2018-03-27 Method, device and the storage medium of Android installation kit integrated software development kit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810256529.8A CN108595187A (en) 2018-03-27 2018-03-27 Method, device and the storage medium of Android installation kit integrated software development kit

Publications (1)

Publication Number Publication Date
CN108595187A true CN108595187A (en) 2018-09-28

Family

ID=63623708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810256529.8A Pending CN108595187A (en) 2018-03-27 2018-03-27 Method, device and the storage medium of Android installation kit integrated software development kit

Country Status (1)

Country Link
CN (1) CN108595187A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109508249A (en) * 2018-11-15 2019-03-22 厦门美图之家科技有限公司 Collapse processing method, apparatus and electronic equipment
CN109614107A (en) * 2018-11-01 2019-04-12 同盾控股有限公司 A kind of integrated approach and device of Software Development Kit
CN109783138A (en) * 2018-12-05 2019-05-21 北京奇艺世纪科技有限公司 Method for splitting, device, terminal and the medium that application package is constituted
CN110083344A (en) * 2019-04-30 2019-08-02 北京金山安全软件有限公司 Software development kit modification method and device and electronic equipment
WO2020177429A1 (en) * 2019-03-07 2020-09-10 江苏通付盾信息安全技术有限公司 Method and apparatus for embedding codes in application, and electronic device
CN113448585A (en) * 2020-12-11 2021-09-28 北京新氧科技有限公司 Optimization method and device for thread pool, electronic equipment and storage medium
CN113835718A (en) * 2020-06-23 2021-12-24 北京字节跳动网络技术有限公司 Android application package generation method and device, terminal device and medium
CN114296742A (en) * 2022-03-08 2022-04-08 苏州万店掌网络科技有限公司 Installation package creating method, device, equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026827A1 (en) * 2013-07-17 2015-01-22 Industrial Technology Research Institute Method for application management, corresponding system, and user device
CN104408366A (en) * 2014-11-26 2015-03-11 清华大学 Android application permission usage behavior tracking method based on plug-in technology
CN104866293A (en) * 2014-02-25 2015-08-26 北京娜迦信息科技发展有限公司 Method and device for extending Android application program function
US9268557B2 (en) * 2014-06-24 2016-02-23 International Business Machines Corporation Wrapping computer software applications
US9535674B2 (en) * 2012-12-21 2017-01-03 Bmc Software, Inc. Application wrapping system and method
CN106502725A (en) * 2016-09-30 2017-03-15 歌尔科技有限公司 The upgrade method of application program, equipment and electronic equipment
CN107038103A (en) * 2017-04-14 2017-08-11 上海交通大学 Android program monitoring system and method based on bytecode pitching pile
CN107145373A (en) * 2017-05-10 2017-09-08 深圳市创世互动科技有限公司 A kind of method and device that Games Software is accessed to target channel SDK
CN107463420A (en) * 2016-06-02 2017-12-12 深圳市慧动创想科技有限公司 A kind of convenient method of the code implant in Android APK
CN107589947A (en) * 2017-08-02 2018-01-16 成都极娱网络科技有限公司 A kind of SDK cut-in methods, client and system
CN107844301A (en) * 2017-12-12 2018-03-27 苏州蜗牛数字科技股份有限公司 A kind of Android application channel closes bag method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9535674B2 (en) * 2012-12-21 2017-01-03 Bmc Software, Inc. Application wrapping system and method
US20150026827A1 (en) * 2013-07-17 2015-01-22 Industrial Technology Research Institute Method for application management, corresponding system, and user device
CN104866293A (en) * 2014-02-25 2015-08-26 北京娜迦信息科技发展有限公司 Method and device for extending Android application program function
US9268557B2 (en) * 2014-06-24 2016-02-23 International Business Machines Corporation Wrapping computer software applications
CN104408366A (en) * 2014-11-26 2015-03-11 清华大学 Android application permission usage behavior tracking method based on plug-in technology
CN107463420A (en) * 2016-06-02 2017-12-12 深圳市慧动创想科技有限公司 A kind of convenient method of the code implant in Android APK
CN106502725A (en) * 2016-09-30 2017-03-15 歌尔科技有限公司 The upgrade method of application program, equipment and electronic equipment
CN107038103A (en) * 2017-04-14 2017-08-11 上海交通大学 Android program monitoring system and method based on bytecode pitching pile
CN107145373A (en) * 2017-05-10 2017-09-08 深圳市创世互动科技有限公司 A kind of method and device that Games Software is accessed to target channel SDK
CN107589947A (en) * 2017-08-02 2018-01-16 成都极娱网络科技有限公司 A kind of SDK cut-in methods, client and system
CN107844301A (en) * 2017-12-12 2018-03-27 苏州蜗牛数字科技股份有限公司 A kind of Android application channel closes bag method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DAVID FLANAGAN: "《JAVA技术手册》", 31 October 2006, 东南大学出版社 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614107A (en) * 2018-11-01 2019-04-12 同盾控股有限公司 A kind of integrated approach and device of Software Development Kit
CN109614107B (en) * 2018-11-01 2022-09-16 同盾控股有限公司 Integration method and device of software development kit
CN109508249B (en) * 2018-11-15 2022-05-31 厦门美图之家科技有限公司 Crash processing method and device and electronic equipment
CN109508249A (en) * 2018-11-15 2019-03-22 厦门美图之家科技有限公司 Collapse processing method, apparatus and electronic equipment
CN109783138A (en) * 2018-12-05 2019-05-21 北京奇艺世纪科技有限公司 Method for splitting, device, terminal and the medium that application package is constituted
WO2020177429A1 (en) * 2019-03-07 2020-09-10 江苏通付盾信息安全技术有限公司 Method and apparatus for embedding codes in application, and electronic device
CN110083344A (en) * 2019-04-30 2019-08-02 北京金山安全软件有限公司 Software development kit modification method and device and electronic equipment
CN110083344B (en) * 2019-04-30 2023-07-21 北京金山安全软件有限公司 Software development tool package modification method and device and electronic equipment
CN113835718A (en) * 2020-06-23 2021-12-24 北京字节跳动网络技术有限公司 Android application package generation method and device, terminal device and medium
CN113448585A (en) * 2020-12-11 2021-09-28 北京新氧科技有限公司 Optimization method and device for thread pool, electronic equipment and storage medium
CN113448585B (en) * 2020-12-11 2024-01-16 北京新氧科技有限公司 Compiling method and device of thread pool, electronic equipment and storage medium
CN114296742A (en) * 2022-03-08 2022-04-08 苏州万店掌网络科技有限公司 Installation package creating method, device, equipment and medium
CN114296742B (en) * 2022-03-08 2022-05-10 苏州万店掌网络科技有限公司 Installation package creating method, installation package creating device, installation package creating equipment and installation package creating medium

Similar Documents

Publication Publication Date Title
CN108595187A (en) Method, device and the storage medium of Android installation kit integrated software development kit
US9569343B2 (en) Integration of a software content space with test planning and test case generation
TWI536263B (en) Projecting native application programming interfaces of an operating system into other programming languages
US20240045850A1 (en) Systems and methods for database orientation transformation
CN109564540B (en) System, method, and apparatus for debugging of JIT compiler
CN110059456B (en) Code protection method, code protection device, storage medium and electronic equipment
CN110515647A (en) A kind of static resource management method, device, equipment and storage medium
CN112769706B (en) Componentized routing method and system
KR101924747B1 (en) Flexible metadata composition
US10642714B2 (en) Mapping dynamic analysis data to source code
US20140359258A1 (en) Declarative Configuration Elements
US9830204B2 (en) Facilitating communication between software components that use middleware
US20190317877A1 (en) Application state monitoring
US11640281B2 (en) Tool for introspection in object-oriented source code
US9760368B2 (en) Automatically expiring out source code comments
JP7410269B2 (en) Automated verification of high-level construct optimization using test vectors
US10146529B2 (en) Monitoring rules declaration and automatic configuration of the monitoring rules
Golemon Extending and Embedding PHP
US9038049B2 (en) Automated discovery of resource definitions and relationships in a scripting environment
US9519879B1 (en) Just in time compilation (JIT) for business process execution
EP2866139A1 (en) Method facilitating the communication between two software components that use two different middleware by automatically generating a communication layer between them
US20150220310A1 (en) Object field optimization
US20210110059A1 (en) Dynamically Identifying and Redacting Data from Diagnostic Operations via Runtime Monitoring of Data Sources
CN113343649A (en) File annotation method and device, storage medium and computing equipment
CN115495096A (en) Application deployment method, device, equipment, storage medium and product

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