Method and device for reinforcing dynamic link library SO file of Android installation package

A technology of Android installation package and dynamic link library, which is applied in the field of computer security and can solve problems such as memory leaks and difficulty in grasping the timing of using the original SO file.

Inactive Publication Date: 2017-05-17
BEIJING QIHOO TECH CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The problem is that when the original SO file is used up, the memory space allocated for the original SO file needs to be released, but it is actually difficult

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 reinforcing dynamic link library SO file of Android installation package
  • Method and device for reinforcing dynamic link library SO file of Android installation package

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While 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 so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

[0046] figure 1 Shown is a schematic flowchart of a method for reinforcing a dynamic link library SO file of an Android installation package according to an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0047] Step S110, adding a shell to the original SO file of the Android installation package to obtain a reinforced SO file.

[0048] In step S120, a loading space is reserved for t...

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 a method and device for reinforcing a dynamic link library SO file of an Android installation package. The method includes the following steps: adding a shell to an original SO file of the Android installation package to obtain a reinforced SO file; preserving a loading space for the original SO file in initialization codes of the reinforced SO file, so that when the Android system loads the original SO file, the original SO file is loaded in a memory space distributed for the preserved loading space. According to the technical scheme, the method no longer calls a mmap function alone to distribute a memory space for the original SO file, but uses a part of memory space distributed to the reinforced SO file for loading of the original SO file when the reinforced SO file is loaded, therefore, when the system releases the memory space occupied by the reinforced SO file, the memory space occupied by the original SO file can be released together, normal use of the original SO file is not affected, and memory leaking is not caused.

Description

technical field [0001] The invention relates to the field of computer security, in particular to a method and a device for reinforcing a dynamic link library SO file of an Android installation package. Background technique [0002] In the prior art, when the Android system loads the SO file into the memory, it will randomly allocate a segment of memory in the process space of the application calling the SO file through the mmap function. However, for many hardened SO files, since the original SO file does not exist as an independent SO file, the hardened SO file needs to call the mmap function to allocate memory for the original SO file. The problem is that when the original SO file is used up, the memory space allocated for the original SO file needs to be released, and it is actually difficult to grasp the timing of using the original SO file. If the memory space allocated for the original SO file is not released, There will be a memory leak problem. SUMMARY OF THE INVE...

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): G06F9/50
CPCG06F9/5016
Inventor 吴乐
Owner BEIJING QIHOO TECH 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