CN110162311A - It is a kind of using installation method, the generation method of application installation package - Google Patents
It is a kind of using installation method, the generation method of application installation package Download PDFInfo
- Publication number
- CN110162311A CN110162311A CN201810150852.7A CN201810150852A CN110162311A CN 110162311 A CN110162311 A CN 110162311A CN 201810150852 A CN201810150852 A CN 201810150852A CN 110162311 A CN110162311 A CN 110162311A
- Authority
- CN
- China
- Prior art keywords
- application
- application installation
- installation package
- executable file
- instruction
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
This application discloses a kind of using installation method, the generation method of application installation package;It is above-mentioned to apply installation method, comprising: to obtain the application installation package after dex2oat operation optimization;Based on application installation package, carry out using installation operation;Wherein, dex2oat operation is skipped using installation operation.The application can be improved using installation speed.
Description
Technical field
This application involves but be not limited to field of computer technology more particularly to a kind of application installation method, application installation package
Generation method.
Background technique
With terminal device (for example, the fixed terminals such as the portable terminals such as mobile phone, notebook computer or desktop computer)
Configuration it is higher and higher, display effect is become better and better, also increasing using (APP, Application) the space occupied, is moved
Often all tens MB (million) even several hundred MB, consequent are that the speed of APP downloading installation is slower and slower, commonly use the installation of APP
Require tens seconds even for more time.Moreover, APP is newly installed or is covered when installing as APP installation kit is increasing
Speed is slow, low efficiency, causes user experience bad.
Summary of the invention
It is the general introduction to the theme being described in detail herein below.This general introduction is not the protection model in order to limit claim
It encloses.
The embodiment of the present application provides a kind of using installation method, the generation method of application installation package, can be improved using peace
Fill speed.
In a first aspect, the embodiment of the present application provide it is a kind of using installation method, comprising:
Obtain application installation package, wherein the application installation package passes through following operation optimization: dex bytecode is compiled into
The executable file of oat format;
Based on the application installation package, carry out using installation operation;Wherein, described incite somebody to action is skipped in the application installation operation
Dex bytecode is compiled into the operation of the executable file of oat format.
Second aspect, the embodiment of the present application provide a kind of generation method of application installation package, comprising:
After carrying out file compiling to an application, the behaviour that dex bytecode is compiled into the executable file of oat format is executed
Make, the application file after being optimized;
Application file after being packaged the optimization generates the application installation package of the application.
The third aspect, the embodiment of the present application provide a kind of terminal device, comprising: first memory and first processor,
The first memory is suitable for storage and applies installation procedure, and the application installation procedure is realized when being executed by the first processor
The step of application installation method that above-mentioned first aspect provides.
Fourth aspect, the embodiment of the present application provide a kind of calculating equipment, comprising: second memory and second processor,
The second memory is suitable for storing the generation program of application installation package, when the generation program is executed by the second processor
The step of realizing the generation method for the application installation package that above-mentioned second aspect provides.
In addition, the embodiment of the present application also provides a kind of computer-readable medium, it is stored with using installation procedure, the application
The step of application installation method that above-mentioned first aspect provides is realized when installation procedure is executed by processor.
In addition, the embodiment of the present application also provides a kind of computer-readable medium, it is stored with the generation program of application installation package,
The step of generation method for generating the application installation package for realizing that above-mentioned second aspect provides when program is executed by processor.
In the embodiment of the present application, it obtains and (dex bytecode is compiled into the executable of oat format by dex2oat operation
The operation of file) optimization after application installation package;Based on application installation package, carry out using installation operation;Wherein, it is grasped using installation
Skip dex2oat operation.In the embodiment of the present application, application installation package after pre-optimized is provided, and applying installation process
Dex2oat operation is skipped, to improve using installation speed, promotes user experience.
After reading and understanding attached drawing and detailed description, it can be appreciated that other aspects.
Detailed description of the invention
Fig. 1 is the flow chart provided by the embodiments of the present application using installation method;
Fig. 2 is the exemplary diagram that operating process is installed in application provided by the embodiments of the present application;
Fig. 3 is the example flow diagram of executable file resolving in the embodiment of the present application;
Fig. 4 is the example flow diagram of execution process instruction in the embodiment of the present application;
Fig. 5 is the schematic diagram provided by the embodiments of the present application using mounting device;
Fig. 6 is the flow chart of the generation method of application installation package provided by the embodiments of the present application;
Fig. 7 is the schematic diagram of the generating means of application installation package provided by the embodiments of the present application;
Fig. 8 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application is described in detail below in conjunction with attached drawing, it should be understood that embodiments described below is only
For instruction and explanation of the application, it is not used to limit the application.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
Fig. 1 is the flow chart provided by the embodiments of the present application using installation method.Application installation side provided in this embodiment
Method can be held by terminal device (for example, the fixed terminals such as the portable terminals such as mobile phone, notebook computer or desktop computer)
Row.However, the application does not limit this.
As shown in Figure 1, provided in this embodiment apply installation method, comprising:
S101, application installation package is obtained, wherein application installation package passes through following operation optimization: dex bytecode is compiled into
The executable file of oat format;In other words, in this step, the application installation package after dex2oat operation optimization is obtained;
S102, it is based on application installation package, carried out using installation operation, wherein dex2oat behaviour is skipped in application installation operation
Make.
The installation speed provided in this embodiment that can be used in improving Android application using installation method, and then promote Android
The usage experience of user.
In the present embodiment, terminal device can be from the application installation behind application store or application download site downloading pre-optimized
Then packet is carried out using new installation or covering installation operation.Wherein, the application installation package after pre-optimized may include having been subjected to
Various files after dex2oat operation optimization, for example, DEX file, jar file, APK file etc..
In the present embodiment, dex2oat operates the operation for referring to the executable file that dex bytecode is compiled into oat format.
In the present embodiment, after downloading application installation package, DEX file can be loaded into memory, and will be corresponding
Resource file parses and copies to system installation directory;Then, class.dex file is unziped into system installation path.Wherein,
When going to installation instruction dex2oat, this instruction execution is skipped, and the odex file that precompile period is generated is (i.e. pre- excellent
DEX file after change) it is installed to system path.The execution of other instructions does not influence.
Fig. 2 is the exemplary diagram of the application installation operating process of the embodiment of the present application.As shown in Fig. 2, in the present embodiment, holding
Row application installation operates, and may include:
S1021, parsing application installation package;
S1022, according to parsing result, carry out information checking and registration;
S1023, application permission update operation is carried out.
Wherein, reading to xml document in application installation package is completed in S1021, it is available applied permission, used
Various assemblies (for example, Activity), broadcast, service etc.;In S1022, permission can be verified and signed whether correct and complete
The registration of broadcast, service etc. in pairs;In S1023, according to the executable file in the application installation package of pre-optimized (for example, DEX
File), notice system is loaded and is updated to the permission of all components of application and component application.After the above process,
It can star application.
In the exemplary embodiment, S102 may include:
Based on the code having been injected into application installation package, application installation operation is executed.
In this example, the DEX that can be directly operated using the dex2oat carried out in advance in application installation process
File, and by code injection technology, so that dex2oat operation is skipped using installation procedure, to improve using installation speed
Degree.
In the exemplary embodiment, S102 may include:
Hook (Hook) point having been injected into executable file based on application installation package executes application installation operation.Its
In, in executing application installation operating process, skips dex2oat instruction and (dex bytecode is compiled into holding for oat format
The instruction of style of writing part).
Code injection technology used by this example is Hook technology.Hook technology refers to the skill of filtering (or being hook) message
Art refers to that some Key Functions of filtering call, before function execution, customized hooking function is first carried out, to reach monitoring letter
Number calls, and changes the purpose of function performance.
In this example, the Hook point having been injected into the executable file based on application installation package executes application installation behaviour
Make, may include:
Based on the 1 Hook point injected in executable file, in the resolving of executable file, skip load
Dex2oat instruction;
Based on the 2nd Hook point injected in executable file, in execution process instruction, skips execution dex2oat and refer to
It enables.
Illustratively, it based on the 1 Hook point injected in executable file, in the resolving of executable file, jumps
Load dex2oat instruction is crossed, may include:
When running function read () from memory reading of content, if reading the 1 Hook point, custom function is jumped to
The start address of read_handle (), with skip load dex2oat instruction.
Illustratively, execution is skipped in execution process instruction based on the 2nd Hook point injected in executable file
Dex2oat is instructed, and may include:
When operation function execv () is read and executed instruction from memory, if reading and going to the 2nd Hook point, jump
To the start address of custom function execv_handle (), dex2oat instruction is executed to skip.
Illustrate the implementation example of code injection referring to Fig. 3 and Fig. 4.
In this example, after the application installation package of terminal device downloading Android application, if user is touched in a manner of clicking etc.
Hair applies erection schedule, then mount request is sent to using erection schedule by interprocess communication mode the PMS of service layer
(PackageManagerService, packet management service);After PMS receives mount request, service processes can be called to execute application
Installation operation.
Fig. 3 is the example flow diagram of executable file resolving in the embodiment of the present application.In this example, executable file
(for example, DEX file) resolving corresponds to read_handle () execution process instruction, is jumped by read_handle ()
It goes in customized process, skips the loading procedure of original dex2oat instruction, then execute knot in read_handle ()
Execution stack before beam jumps back to then parses next instruction.
In this example, DEX file can be first loaded into memory by PMS, then, by running read () function, successively
Memory content is read to be parsed.Wherein, read () function is system function, is used for from appropriate address reading of content.
As shown in figure 3, this exemplary process may include:
S301, it calls service processes to run to read () function in PMS, reads memory content, and by i-th section of word of reading
Section is denoted as read [i];
Wherein, read () function can successively read the byte structure of setting length from memory, for example, according to 32bit (ratio
It is special) or the reading of 64bit word length.
S302, the byte for successively handling reading, judge read [i] whether the ground for being custom function read_handle ()
Location;If not, then it represents that read [i] is program normal content, read [i] only can be loaded into memory;If so, indicating
Read [i] is Hook point (corresponding to the 1 above-mentioned Hook point), jumps to the beginning of custom function read_handle ()
Then address executes S303, with skip load dex2oat instruction;
Wherein, read_handle () is the custom function in this example, and Hook jumps function, can be in customized letter
Customized realization function is added in number.
S303, read_handle () function is loaded into memory;
In this step, memory duplication is carried out by mmap function, the caching for data will be acquired being saved in memory
(buffer) region;Wherein, mmap function is used to a file or object being mapped into memory.
Wherein, the data of acquisition may include using comprising data, for example, code file, resource file, statement text
Part, class (class) file etc., are to indicate in binary form in memory.
S304, by the memory of function read () read jth section byte, wherein j=0,1 ... i;Read read [j]
Instruction;For example, read [0] instruction is read from the memory of read () function, read [1] is instructed from read () function
It is read in memory, and records corresponding command content in memory, such as ldr pc (transferring data to PC register).
S305, judge whether the jth section byte read is the address of read [i+1], if it is not, then returning to S304, continue
It reads jth section byte to be replicated, if so, executing S306.
S306, complete above-metioned instruction content reading and duplication after, terminate read_handle () function jump, return
It returns in original read () function.
Fig. 4 is the example flow diagram of the execution process instruction of the embodiment of the present application.In this example, execution process instruction energy
It is enough to find custom function at runtime, and skip the execution of dex2oat instruction.Execution process instruction can be in parsing DEX text
After part, parsing result by PMS based on DEX file, operation execv () function is realized.Wherein, execv () function usually exists
Run after fork sub thread, execv () can stop executing current process, according to incoming parameter, be transferred to objective function into
Journey.
As shown in figure 4, this exemplary process may include:
S401, it calls service processes to run execv () function by PMS, is read by execv () function and execute system
The command line parameter transmitted when operation, wherein command line parameter includes that the obtained instruction to be executed is parsed in memory.Wherein,
I-th section of byte of reading is denoted as execv [i].
Two of them instruction is set forth below to be illustrated as example:
BX instruction: jumping to destination address specified in instruction, the instruction at destination address either ARM instruction,
It is also possible to Thumb instruction;
Nop instruction: do-nothing instruction without any processing when running the instruction, but can occupy the time of an instruction.
Meaning about instruction can be with reference to compilation stereotyped command definition.The application does not limit this.In this example,
It is illustrated by taking ARM instruction as an example.ARM (Advanced RISC Machine, advanced reduced instruction set machine) instruction set refers to
Computer ARM operation instructing system.Jumping for program may be implemented there are two types of mode in ARM: one is jump instructions;It is another
Kind is that destination address value is directly written into PC register (R15).
In this step, it is successively read instruction by defined byte-sized, is Bx pc when reading instruction 1, is then followed by reading
Instruction fetch 2 is do-nothing instruction, is successively read in register if such instruction.
S402, judge whether execv [i] is do-nothing instruction;Continue to read next instruction if so, returning to S401;If it is not,
Then execute S403.
S403, judge whether execv [i] is the address of custom function execv_handle (), if it is not, then returning
S401 jumps to custom function if so, indicating that execv [i] is Hook point (corresponding to the 2nd above-mentioned Hook point)
The start address of exec_handle () executes S404, executes dex2oat instruction to skip.
Wherein, execv_handle () is the custom function in this example, and Hook jumps function, can be in customized letter
Customized realization function is added in number.
S404, execv_handle () function is executed;
For example, in this step, according to the first address in region memory cache (buffer) of mmap duplication, successively from
The address parameter execv [0] of execv_handle () function starts to address parameter execv [5], reads instruction to when operation
It is called and executes in memory.
In this example, after jumping to execv_handle () function, the instruction of execution is according to read_handle
What () load obtained.
S405, by the memory of function execv () read jth section byte, wherein j=0,1 ... i;Read execv
[j] instruction, and execute the instruction of reading, wherein the instruction is in read_handle () stack space.
S406, judge whether execv [j] is ARM instruction, if so, executing S407, otherwise, execute S408.
S407, then the executive mode that execv [j] instruction is switched to ARM instruction is held for example, executing instruction ldrpc
Row S408.
S408, it reads instruction at execv [j+1] byte and executes.
S409, judge whether+1 section of byte of jth is the address of exevc [i+1], if it is not, S405 is then returned, if so,
Execute S410.
S410, after completing the reading and executing of above-metioned instruction, terminate execv_handle () function and jump, and return
Execv () function.
Fig. 5 is the schematic diagram provided by the embodiments of the present application using mounting device.As shown in figure 5, provided in this embodiment
Using mounting device, comprising:
Module 501 is obtained, is configured to obtain the application installation package after dex2oat operation optimization;
Module 502 is installed, application installation package is configured to, is carried out using installation operation, wherein application installation operation is jumped
Cross dex2oat operation.
The corresponding embodiment of the method for Fig. 1 is referred to about the related description provided in this embodiment using mounting device
Description, therefore repeated no more in this.
Fig. 6 is the flow chart of the generation method of application installation package provided by the embodiments of the present application.As shown in fig. 6, this implementation
The generation method that example provides, comprising:
S601, after carrying out file compiling to application, dex2oat operation, the application file after being optimized are executed;
S602, the application file being packaged after optimization, generate the application installation package of the application.
The present embodiment can be executed under Application development environ-ment by calculating equipment (for example, PC etc.), by compiling
Dex2oat operation is executed after translating, obtains the DEX file of pre-optimized, is allowed and is skipped dex2oat behaviour using installation process
Make.
In the present embodiment, applied using including Android (Android).Android application written in Java utilizes
Android SDK (Software Development Kit, Software Development Tools) compiled code, and all data and
Resource file is packaged into a compressed file (i.e. application installation package), which includes all interior of an Android application
Hold, is realized based on the compressed file and Android application is installed in Android platform.
In the present embodiment, dex2oat operation is executed after the completion of the compilation phase, Android application compiling normal first,
The optimization of the files such as namely DEX operates, this operation is placed on before packing i.e. compilation phase completion than relatively time-consuming.S602
Packing process be packaged content all switched to the file after dex2oat operation optimization.Wherein, being normally packaged process can
To include: that application declarative file, resource file compiling are generated R.java file and resource packet respectively using strapping tool aapt
File;The class file that javac compiled code source file generates, is converted class file with dx tool, is generated
Classes.dex file, the DEX file being packaged after this one-step optimization was pre-processed in the compilation phase;Pass through
Apkbuilder is packaged above content and generates compressed file;Compressed file can finally be issued by the operations such as signature generation using peace
Dress packet.
In the exemplary embodiment, it is primary by calling when S602 may include: the application file after packing optimization
(Native) function of layer, the Hook point of dex2oat operation is skipped in injection in application file.In this way, supporting to install in application
Dex2oat operation is skipped in the process, applies installation speed to be promoted.
Fig. 7 is the schematic diagram of the generating means of application installation package provided by the embodiments of the present application.As shown in fig. 7, this implementation
The generating means for the application installation package that example provides, comprising:
Optimize operation module 701, be configured to after carrying out file compiling to application, executes dex2oat operation, optimized
Application file afterwards;
Packetization module 702 is configured to be packaged the application file after optimization, generates the application installation package of application.
The corresponding embodiment of the method for Fig. 6 is referred to about the related description provided in this embodiment using mounting device
Description, therefore repeated no more in this.
Fig. 8 is the schematic diagram of terminal device provided by the embodiments of the present application.As shown in figure 8, terminal provided in this embodiment
Equipment 800, comprising: first memory 801 and first processor 802, first memory 801 are suitable for storage application installation journey
Sequence, this realizes the step using installation method that Fig. 1 corresponding embodiment provides when being executed using installation procedure by first processor 802
Suddenly.
Wherein, first processor 802 can include but is not limited to microprocessor (MCU, Microcontroller Unit)
Or the processing unit of programmable logic device (FPGA, Field Programmable Gate Array) etc..First memory
801 can be used for storing the software program and module of application software, such as the corresponding program of application installation method in the present embodiment
Instruction or module, the software program and module that first processor 802 is stored in first memory 801 by operation, thus
Application and data processing are performed various functions, for example is realized provided in this embodiment using installation method.First memory 801
May include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory,
Or other non-volatile solid state memories.In some instances, first memory 801 may include relative to first processor
802 remotely located memories, these remote memories can pass through network connection to terminal device 800.The reality of above-mentioned network
Example includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Illustratively, terminal device 800 can also include the first communication unit 803;First communication unit 803 can be via
One network receives or sends data.In an example, the first communication unit 803 can be radio frequency (Radio
Frequency, referred to as RF) module, it is used to wirelessly be communicated with internet.
In addition, the embodiment of the present application also provides a kind of calculating equipment, comprising: second memory and second processor, the
Two memories are suitable for storing the generation program of application installation package, which realizes that Fig. 6 is corresponding when being executed by second processor
The step of generation method for the application installation package that embodiment provides.
Related description about the second processor provided in this embodiment for calculating equipment and second memory is referred to
The explanation of first processor and first memory, therefore repeated no more in this.
In addition, the embodiment of the present application also provides a kind of computer-readable medium, it is stored with using installation procedure, the application peace
The step of application installation method that Fig. 1 corresponding embodiment provides when dress program is executed by processor.
In addition, the embodiment of the present application also provides a kind of computer-readable medium, it is stored with the generation program of application installation package,
The generation program realizes the step of generation method for the application installation package that Fig. 6 corresponding embodiment provides when being executed by processor.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module or unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment
In, the division between functional module or unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example,
One physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain
A little components or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or
Person is implemented as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer
On readable medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or
Fugitive medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information
Implement in any method or technique of (such as computer readable instructions, data structure, program module or other data) volatile
Property and non-volatile, removable and nonremovable medium.Computer storage medium includes but is not limited to RAM, ROM, EEPROM, sudden strain of a muscle
It deposits or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage
Or other magnetic memory apparatus or any other Jie that can be used for storing desired information and can be accessed by a computer
Matter.In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer readable instructions, data structure, journey
Other data in the modulated data signal of sequence module or such as carrier wave or other transmission mechanisms etc, and may include any
Information delivery media.
Although embodiment disclosed by the application is as above, the content only for ease of understanding the application and use
Embodiment is not limited to the application.Technical staff in any the application fields, is taken off not departing from the application
Under the premise of the spirit and scope of dew, any modification and variation, but the application can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (14)
1. a kind of apply installation method characterized by comprising
Obtain application installation package, wherein the application installation package passes through following operation optimization: dex bytecode is compiled into oat lattice
The executable file of formula;
Based on the application installation package, carry out using installation operation;Wherein, the application installation operation is skipped described by dex word
Section code is compiled into the operation of the executable file of oat format.
2. carrying out the method according to claim 1, wherein described be based on the application installation package using installation
Operation, comprising:
Based on the code having been injected into the application installation package, application installation operation is executed.
3. according to the method described in claim 2, it is characterized in that, described based on the generation being had been injected into the application installation package
Code executes application installation operation, comprising:
The hook Hook point having been injected into executable file based on the application installation package executes application installation operation.
4. according to the method described in claim 3, it is characterized in that, in the executable file based on the application installation package
The hook Hook point having been injected into executes application installation operation, comprising:
It is jumped in the resolving of the executable file based on the first hook Hook point injected in the executable file
Cross the instruction that dex bytecode is compiled into the executable file of oat format by load;
It skips in execution process instruction based on the second hook Hook point injected in the executable file and executes described incite somebody to action
Dex bytecode is compiled into the instruction of the executable file of oat format.
5. according to the method described in claim 4, it is characterized in that, described hang based on inject in the executable file first
Hook Hook point, in the resolving of the executable file, dex bytecode is compiled into holding for oat format by skip load
The instruction of style of writing part, comprising:
When running function read () from memory reading of content, if reading the first hook Hook point, custom function is jumped to
The start address of read_handle (), dex bytecode to be compiled into described in skip load the executable file of oat format
Instruction.
6. according to the method described in claim 4, it is characterized in that, described hang based on inject in the executable file second
Hook Hook point is skipped in execution process instruction and executes the executable file that dex bytecode is compiled into oat format
Instruction, comprising:
When operation function execv () is read and executed instruction from memory, if reading and going to the second hook Hook point, jump
To the start address of custom function execv_handle (), to skip, execution is described to be compiled into oat format for dex bytecode
Executable file instruction.
7. carrying out the method according to claim 1, wherein described be based on the application installation package using installation
Operation, comprising:
Parse the application installation package;
According to parsing result, information checking and registration are carried out;
According to the executable file in the application installation package, carries out application permission and update operation.
8. a kind of generation method of application installation package characterized by comprising
After carrying out file compiling to an application, the operation that dex bytecode is compiled into the executable file of oat format is executed,
Application file after being optimized;
Application file after being packaged the optimization generates the application installation package of the application.
9. according to the method described in claim 8, it is characterized in that, the application file being packaged after the optimization, generates institute
State the application installation package of application, comprising:
In the application file being packaged after the optimization, by calling primary Native layers of function, in the application file
The hook Hook point of the operation of the executable file that dex bytecode is compiled into oat format is skipped in injection.
10. according to the method described in claim 8, it is characterized in that, the application includes Android application.
11. a kind of terminal device characterized by comprising
First memory and first processor, the first memory are suitable for storage and apply installation procedure, the application installation
The step of application installation method as described in any one of claims 1 to 7 is realized when program is executed by the first processor.
12. a kind of calculating equipment characterized by comprising
Second memory and second processor, the second memory is suitable for storing the generation program of application installation package, described
Generate the life that the application installation package as described in any one of claim 8 to 10 is realized when program is executed by the second processor
The step of at method.
13. a kind of computer-readable medium, which is characterized in that be stored with using installation procedure, the application installation procedure is located
Manage the step of application installation method as described in any one of claims 1 to 7 is realized when device executes.
14. a kind of computer-readable medium, which is characterized in that be stored with the generation program of application installation package, the generation program
The step of generation method of the application installation package as described in any one of claim 8 to 10 is realized when being executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810150852.7A CN110162311A (en) | 2018-02-13 | 2018-02-13 | It is a kind of using installation method, the generation method of application installation package |
PCT/CN2019/071104 WO2019157891A1 (en) | 2018-02-13 | 2019-01-10 | Application installation method and application installer generating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810150852.7A CN110162311A (en) | 2018-02-13 | 2018-02-13 | It is a kind of using installation method, the generation method of application installation package |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110162311A true CN110162311A (en) | 2019-08-23 |
Family
ID=67619113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810150852.7A Withdrawn CN110162311A (en) | 2018-02-13 | 2018-02-13 | It is a kind of using installation method, the generation method of application installation package |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110162311A (en) |
WO (1) | WO2019157891A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114996078A (en) * | 2021-12-07 | 2022-09-02 | 荣耀终端有限公司 | Method and device for controlling compilation of dex file |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262549A (en) * | 2011-03-02 | 2011-11-30 | 奇智软件(北京)有限公司 | Method and system for installing patches |
CN105100191A (en) * | 2015-05-22 | 2015-11-25 | 华为技术有限公司 | Method, device and system for realizing Java application installation via cloud compilation |
EP3026559A1 (en) * | 2014-11-28 | 2016-06-01 | Thomson Licensing | Method and device for providing verifying application integrity |
CN106775828A (en) * | 2016-11-25 | 2017-05-31 | 广东欧珀移动通信有限公司 | Application program installation method and device, computer equipment |
CN107506221A (en) * | 2017-09-28 | 2017-12-22 | 阿里巴巴集团控股有限公司 | Application program updating method, apparatus and equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104598809B (en) * | 2015-02-13 | 2017-04-19 | 北京奇虎科技有限公司 | Program monitoring method and defending method thereof, as well as relevant device |
US20170269950A1 (en) * | 2016-03-15 | 2017-09-21 | Mediatek Inc. | Selective execution of ahead-of-time compiled code |
-
2018
- 2018-02-13 CN CN201810150852.7A patent/CN110162311A/en not_active Withdrawn
-
2019
- 2019-01-10 WO PCT/CN2019/071104 patent/WO2019157891A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262549A (en) * | 2011-03-02 | 2011-11-30 | 奇智软件(北京)有限公司 | Method and system for installing patches |
EP3026559A1 (en) * | 2014-11-28 | 2016-06-01 | Thomson Licensing | Method and device for providing verifying application integrity |
CN105100191A (en) * | 2015-05-22 | 2015-11-25 | 华为技术有限公司 | Method, device and system for realizing Java application installation via cloud compilation |
CN106775828A (en) * | 2016-11-25 | 2017-05-31 | 广东欧珀移动通信有限公司 | Application program installation method and device, computer equipment |
CN107506221A (en) * | 2017-09-28 | 2017-12-22 | 阿里巴巴集团控股有限公司 | Application program updating method, apparatus and equipment |
Non-Patent Citations (1)
Title |
---|
XIANGZHIHONG8: "Android应用安装过程分析", 《CSDN:HTTPS://BLOG.CSDN.NET/XIANGZHIHONG8/ARTICLE/DETAILS/72582278》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114996078A (en) * | 2021-12-07 | 2022-09-02 | 荣耀终端有限公司 | Method and device for controlling compilation of dex file |
Also Published As
Publication number | Publication date |
---|---|
WO2019157891A1 (en) | 2019-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107291480B (en) | Function calling method and device | |
US7657886B1 (en) | Mobile device with a MMU for faster firmware updates in a wireless network | |
CN109491695A (en) | A kind of increment updating method of integrated Android application | |
CN109144533B (en) | Method, system and computer device for updating and loading application program | |
Taherkordi et al. | Optimizing sensor network reprogramming via in situ reconfigurable components | |
CN108121594B (en) | Process management method and device | |
CN106095504B (en) | Preset application loading method and mobile terminal | |
CN104793946A (en) | Application deployment method and system based on cloud computing platform | |
CN105335173A (en) | Method, apparatus and system for initializing intelligent terminal device | |
CN101957766B (en) | Method, device and system for weaving byte code | |
CN107239309B (en) | Patch generation method and device, updating method, electronic device and storage medium | |
CN111078229A (en) | Application processing method and device, storage medium and electronic equipment | |
CN105468427A (en) | Implementation method and system of automatic compilation and release | |
US8397217B2 (en) | Integrating templates into tests | |
CN104731622A (en) | Application program loading method and device and mobile terminal | |
CN111651169B (en) | Block chain intelligent contract operation method and system based on web container | |
WO2015057816A1 (en) | Method and system for adaptive loading of application | |
CN110442399B (en) | Method and device for executing read Native service of application, storage medium and terminal equipment | |
CN114895935A (en) | Method and device for flashing vehicle ECU, electronic equipment and storage medium | |
CN113312046A (en) | Sub-application page processing method and device and computer equipment | |
CN111290740B (en) | Application program development method and device, computer equipment and storage medium | |
US9262301B2 (en) | Observability control with observability information file | |
US10552135B1 (en) | Reducing a size of an application package | |
CN110162311A (en) | It is a kind of using installation method, the generation method of application installation package | |
CN111880804A (en) | Application program code processing method and device |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190823 |