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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


