Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for acquiring SO file interface, medium and server

A file interface and interface technology, applied in computer security devices, instruments, program/content distribution protection, etc., can solve problems such as program crash, inability to call SO files, and inability to determine the SO file interface, so as to ensure normal operation. Effect

Pending Publication Date: 2022-02-18
武汉斗鱼鱼乐网络科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the problems existing in the prior art, the embodiment of the present invention provides a method, device, medium and computer equipment for obtaining the interface of the SO file, which is used to solve the problem that the JAVA layer cannot Determine the interface provided by the SO file, and then cause the JAVA layer to fail to call the SO file, resulting in a technical problem that the program crashes

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 acquiring SO file interface, medium and server
  • Method and device for acquiring SO file interface, medium and server
  • Method and device for acquiring SO file interface, medium and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] This embodiment provides a method for obtaining the SO file interface, such as figure 1 As shown, the methods include:

[0049] S110, acquiring the JAVA layer code corresponding to the target SO file;

[0050] When the program is running, it is often necessary to load the SO file. For example, the SO file may include program components of a third-party application, program components of different application versions, and the like. For example: If a third-party application is needed in the live broadcast platform, if the live broadcast platform can only obtain the corresponding components, without corresponding program documentation, and cannot obtain source code information, then the live broadcast platform cannot use the corresponding interface to load SO file, at this time, it is necessary to obtain the interface of the third-party application component.

[0051] Generally speaking, SO files do not exist alone, but have corresponding JAVA layer codes, and the JAVA ...

Embodiment 2

[0102] This embodiment provides a device for obtaining the SO file interface, such as figure 2 As shown, the device includes: an acquisition unit 21, a first judgment unit 22, a second judgment unit 23, and a search unit 24;

[0103] Acquisition unit 21, used to obtain the JAVA layer code corresponding to the target SO file;

[0104] The first judgment unit 22 is used to judge whether there is obfuscated code in the JAVA layer code, if it is determined that there is no obfuscated code in the JAVA layer code, obtain the JAVA class used to call the keyword; the keyword is used to load The target SO file;

[0105] The second judging unit 23 is used to obtain all the JAVA methods contained in the JAVA class; traverse the JAVA method to judge whether there is a preset identifier in the definition corresponding to the JAVA method; the identifier is used to indicate the The JAVA method is a method corresponding to the target SO file target interface, and the target interface is th...

Embodiment 3

[0156] This embodiment provides a computer device, such as image 3 As shown, it includes a memory 310, a processor 320, and a computer program 311 stored on the memory 310 and operable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented:

[0157] Obtain the JAVA layer code corresponding to the target SO file;

[0158] Judging whether there is obfuscated code in the JAVA layer code, if it is determined that there is no obfuscated code in the JAVA layer code, obtain the JAVA class for calling the keyword; the keyword is used to load the target SO file;

[0159] Obtain all the JAVA methods contained in the JAVA class; traverse the JAVA method, and judge whether there is a preset identification in the definition corresponding to the JAVA method; the identification is used to indicate that the JAVA method is related to the target SO The method corresponding to the file target interface, the target interface being the...

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 provides a method for acquiring an SO file interface. The method comprises the following steps: acquiring a JAVA layer code corresponding to a target SO file; judging whether the JAVA layer codes have obfuscated codes or not, and if not, acquiring all JAVA methods in the JAVA class; judging whether a preset identifier exists in a definition corresponding to the JAVA method or not; if so, searching a target interface corresponding to the target SO file; therefore, when the source code of the target SO file cannot be obtained, all JAVA methods in the JAVA class are obtained; whether a preset identifier exists in the JAVA method or not is judged, and if so, a target interface corresponding to the target SO file is searched in a JAVA class based on the JAVA method; therefore, the target interface can be determined even under the condition that no SO file source code exists, the JAVA layer can normally call the SO file, and normal operation of a program is ensured.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a method, device, medium and computer equipment for obtaining an SO file interface. Background technique [0002] In the Android platform, the core functions that need to be protected are usually written into the SO file, which increases the difficulty of reverse cracking. [0003] When the JAVA layer needs to complete a certain target function, it usually needs to call the corresponding function of the SO file through the interface; each interface provided by the SO file corresponds to each function of the SO file, so the JAVA layer must first call the SO file before calling the SO file. Determine the interface that needs to be called. [0004] In the prior art, if the source code of the SO file exists, you can check the source code to determine the interface provided by the SO file; but in practical applications, if the SO file is an SO file developed by a third-p...

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): G06F21/12
CPCG06F21/125
Inventor 周志刚
Owner 武汉斗鱼鱼乐网络科技有限公司