Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Optimization method and device of program calling

A technology of program calling and optimization method, which is applied in the direction of program control device, multi-programming device, program code conversion, etc., and can solve the problem that the conversion format of ELF file and DEX file cannot be guaranteed to be consistent.

Active Publication Date: 2018-05-11
BEIJING QIHOO TECH CO LTD
View PDF12 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a method and device for optimizing program calls, the main purpose of which is to solve the problem that the ELF file between the original function and the target function cannot be guaranteed when the existing ART virtual machine uses the Hook function to realize the hook target function. The conversion format of DEX files is consistent

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
  • Optimization method and device of program calling
  • Optimization method and device of program calling
  • Optimization method and device of program calling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0049] The embodiment of the present invention provides a method for optimizing program calls, such as figure 1 As shown, the method includes:

[0050]101. When the original function hooks the target function through the Hook function, judge whether there is a jump identifier in the target function.

[0051] Among them, the original function can be a program in DEX format that executes business requirements, such as a DEX format p...

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 discloses an optimization method and device of program calling, relates to the field of application development technology, and mainly aims to solve the problem that existing ART (Android runtime) virtual-machines cannot guarantee consistency of conversion formats of ELF files and DEX files between original functions and target functions when a Hook function is utilized to realize hooking of the target functions. The main technical solution includes: when a target function is hooked by an original function through the Hook function, judging whether a jumping identifier exists inthe target function; parsing parameters in the target function if the jumping identifier exists; and jumping to a replacement function through a preset pointing instruction for processing if a conversion format identifier of a parameter is less than a preset conversion condition. The method and device are mainly used for optimization of program calling.

Description

technical field [0001] The invention relates to the technical field of application development, in particular to a method and device for optimizing program calling. Background technique [0002] With the rapid development of operating system application development technology, using virtualization technology to process and develop the bottom layer of the operating system has become a mainstream method. The Android runtime (ART) virtual machine is different from the traditional Dalvik virtual machine. It uses pre-compilation technology to replace the just-in-time compilation technology in Dalvik, which speeds up the startup and execution of applications. [0003] At present, when multiple applications are opened in the traditional Dalvik virtual machine, the technology of using the Hook function to realize the hook target function to complete multiple applications has been developed. However, after the Android system uses the ART virtual machine to call the third-party applic...

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
IPC IPC(8): G06F8/20G06F8/41G06F9/48G06F9/455
CPCG06F8/22G06F8/24G06F8/443G06F9/45558G06F9/4881G06F2009/45562
Inventor 任太胜王浩易新
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products