Method and device for pre-encrypting program

A pre-compilation and program technology, applied in the field of electronic technology applications, can solve problems such as slow program startup and running speed

Active Publication Date: 2017-05-31
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF4 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem of slow program startup and running speed in related technologies, the present disclosure provides a method and device for precompiling programs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for pre-encrypting program
  • Method and device for pre-encrypting program
  • Method and device for pre-encrypting program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0116] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present disclosure, not all of them. . Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present disclosure.

[0117] See figure 1, which shows a schematic diagram of an implementation environment involved in the method for program precompilation provided in some embodiments of the present disclosure. The implementation environment may include: a server 110 and at least one smart device 120 . The server 110 may be one server, or a server cluster composed of several servers, or a cloud computing service center. The smart device 120 may be a smart ph...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method and device for pre-encrypting a program, and belongs to the field of electronic technology application. The method comprises the steps of obtaining optimization information of a target program, wherein the optimization information comprises the function name of at least one function to be optimized and a running stage corresponding to each function to be optimized in the target program; according to the optimization information, encrypting the function to be optimized corresponding to each running stage. Because in the process that intelligent equipment conducts pre-encryption on the target program, the function recorded in the optimization information can be encrypted only, all functions in the target function does not need to be encrypted an more, thus the encryption efficiency of the target program is effectively improved, and speeds for starting and running a system are increased.

Description

technical field [0001] The present disclosure relates to the application field of electronic technology, in particular to a method and device for precompiling programs. Background technique [0002] When the smart device starts for the first time, or after the operating system is updated, all installed programs in the system need to be pre-compiled. The pre-compilation process may include: compiling each function in each program into a file in a preset format (such as DEX format), and then compiling the file in the preset format into a machine code supported by a smart device through a virtual machine, And save the machine code. When a program is triggered, the smart device can directly execute the machine code corresponding to the program, so as to realize the rapid startup and operation of the program. [0003] In related technologies, when a smart device is started for the first time or after an operating system is updated, all functions in each program need to be compi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44521G06F9/44578
Inventor 董俊杰曲雯雯杨亮
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products