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

A method and device for generating functional class diagrams of Android applications combined with dynamic and static code analysis techniques

An Android application and static code technology, applied in the field of functional class diagrams, to achieve the effect of improving understanding efficiency and reducing difficulty

Active Publication Date: 2019-07-12
PEKING UNIV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to overcome the deficiencies of artificial understanding of code structure, the present invention provides a method and device for generating functional class diagrams of Android applications combined with dynamic and static code analysis techniques, using runtime trace logs (Trace) to obtain functional class collections and using intelligent search Create a functional class diagram

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
  • A method and device for generating functional class diagrams of Android applications combined with dynamic and static code analysis techniques
  • A method and device for generating functional class diagrams of Android applications combined with dynamic and static code analysis techniques
  • A method and device for generating functional class diagrams of Android applications combined with dynamic and static code analysis techniques

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0038] Firstly, through Trace analysis, a set of functional classes is obtained. Then, according to the set of function classes obtained, use intelligent search technology to analyze the source code, obtain the relationship between classes, and establish such figure 2 Functional class diagram shown. The ellipse in the figure represents the class, the root node A is the class of the objective function, and the leaf nodes G, E, I, J are the class objects that can be directly constructed. The letters on the side of the figure represent different relationships, f represents that the function parameter of the parent node class is a child node class object, g represents that the constructor of the parent node needs to use a child node class object as a parameter, and h represents that the parent node class object is a child node The return value of the class function. For example, the function f is the objective function, A is its class, and the parameter classes of f are B, C, J...

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 relates to an Android application function class graph generation method and device combining dynamic and static code analysis technologies. The method comprises the steps that (1) basedon dynamic Trace analysis, a function class set of Android applications is acquired; and (2) according to the acquired function class set, the static intelligent search technology is utilized to analyze source codes of the Android applications, and a function class graph is generated. According to the generation method and device, the characteristics in the prior art are combined, the dynamic Trace analysis and static source code analysis combined technical means is creatively used, the class set relevant to specific functions is discovered and acquired through dynamic Trace analysis, and then the class set is utilized to perform static intelligent search, so that the function class graph is generated. Through the generation method and device, automatic generation of the function class graph of the Android applications can be effectively realized, the understanding efficiency of a developer on APP codes is improved, and code reuse difficulty is lowered.

Description

technical field [0001] The present invention is a method and a device for finding out a class set of a specific function by using a code dynamic analysis technology and a static analysis technology for a mobile application program (Application, APP), and then generating a function class diagram. Background technique [0002] Code reuse is a solution to avoid duplication of labor in APP development. It can effectively save developers' time and avoid errors in rewriting code. When reusing code, developers often need to understand code semantics and code structure, especially some functional codes that developers care about. To achieve this goal, developers usually browse the APP source code to lock the functional modules they care about, find out the collection of related classes and the relationship between classes to understand the code semantics, and then determine the classes, methods and parameters involved in the function. However, the source code is often complex in st...

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 Patents(China)
IPC IPC(8): G06F8/36
CPCG06F8/36
Inventor 景翔蔡华谦张舒汇骆宇冲李若淼崔磊黄罡
Owner PEKING UNIV