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

Detection method and detection devices of application

An application program and detection device technology, applied in the field of communication, can solve the problems of high false alarm rate, class-dump tool can not fully meet the function of private API detection, and can not detect results, etc., to achieve the effect of ensuring reliability

Active Publication Date: 2017-11-14
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, open source tools using existing private APIs may be prone to errors due to the instability of the tool, such as figure 1 as shown, figure 1 It is a schematic diagram of the interface displaying the system error when detecting the private API in the prior art. In addition, the formula used above is not completely correct. The first reason is that there are private classes in the Framework and public classes in the PrivateFramework. If only according to the above formula Extracting private APIs will cause many public functions to be mistaken for private APIs, resulting in a high rate of false positives. The second reason is that the detection of private APIs can be avoided by adding strings to private APIs. Omissions in the results increase the rate of false negatives, which is not conducive to the integrity of the test results
see figure 2 , figure 2 A schematic diagram is shown for the interface where the private API of the application cannot be detected in the prior art. When using the class-dump tool to detect the application of multiple private APIs, the following may occur: figure 2 The same interface, unable to detect the result, obviously the class-dump tool can no longer fully meet the function of private API detection

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
  • Detection method and detection devices of application
  • Detection method and detection devices of application
  • Detection method and detection devices of application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The embodiment of the present invention provides a detection method and a detection device of an application program. The detection device replaces the existing class-dump tool with the nm tool to obtain the private API in the SDK, which can make the detection process more stable and improve the detection of the private API The accuracy of this is because the nm tool is suitable for a higher version of the system, which ensures the reliability of the detection in actual detection.

[0044] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of practice in sequences other than those illustrated o...

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 embodiment of the invention discloses a detection method of an application. The method includes: acquiring the to-be-detected application; extracting private application programming interfaces (APIs) from a software development kit (SDK) through a symbol list tool of nm; extracting a target API in the to-be-detected application; and determining that the target API is a private API of the to-be-detected application if the target API extracted from the to-be-detected application is consistent with the private API extracted from the SDK. The embodiment of the invention further provides a detection device. According to the embodiment of the invention, an existing class-dump tool is replaced by the nm tool to acquire the private APIs in the SDK, the nm tool is suitable for use in a system of a later version, thus a detection process can be enabled to be more stable and the accuracy of detecting the private API can be improved, and the reliability of detection is guaranteed in actual detection.

Description

technical field [0001] The invention relates to the communication field, in particular to a detection method and a detection device of an application program. Background technique [0002] Since Apple officially adopts a strict application program audit mechanism, if an application is found to use a private application programming interface (English full name: Application Programming Interface, English abbreviation: API), it will be forcibly removed from the Apple App Store or rejected. on shelves. [0003] Currently, there are some open source tools that help audit private APIs. It extracts the list of private APIs through the following formula: [0004] Private api=(api in header file generated by class-dump Framework library-(api in Framework header file=documented api(docSet.dsidx)+undocumented api))+PrivateFramework api [0005] Then write a script that automatically extracts the API to get the private API list. [0006] However, open source tools using existing priv...

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): G06F11/36
CPCG06F11/3616
Inventor 林桠泉伍惠宇马传雷胡珀
Owner TENCENT TECH (SHENZHEN) CO LTD