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

Method for automatically generating Android application callback sequence on basis of callback function modeling

A callback function, automatic generation technology, applied in electrical digital data processing, software testing/debugging, instruments, etc., can solve problems such as difficulty in finding sequence patterns, error-prone results, and difficulty in applying sequence models.

Active Publication Date: 2017-06-20
NANKAI UNIV
View PDF2 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the callback function sequence can solve logic problems caused by event uncertainty, such as event exceptions, callback function sequence violations, etc., and these problems are difficult to solve using traditional analysis techniques
[0008] 2) The processing work of the existing callback function sequence is only goal-oriented
The reason for this is that it is difficult to find a uniform sequential pattern
For example, detecting the change state of some controls must deal with its transfer relationship between different components. It is difficult to unify the change of controls and the transfer actions between components. An incomplete model sequence makes the analysis results prone to errors
Second, different types of logic defects often exist in the same program block
Parts of the current construction methods cannot be addressed with a general approach, severely limiting their usefulness
In addition, partial construction also makes it difficult to apply the constructed sequence model to other scenarios

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 for automatically generating Android application callback sequence on basis of callback function modeling
  • Method for automatically generating Android application callback sequence on basis of callback function modeling
  • Method for automatically generating Android application callback sequence on basis of callback function modeling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] According to the method of the present invention, realize the figure 1 The java source code automatically generates a unified callback sequence.

[0065] The invention first builds an Android callback information library, constructs a white list set, a registration relationship set, a release registration relationship set, a jump function set between components, and a callback function set.

[0066] right figure 1 The source code shown performs function-callback mapping preprocessing. Initialize the callback function set callbackSet and the developer-defined non-callback function set funSignedSet as empty sets. right figure 1 Scan the source code of the source code, and every time a function definition is scanned, mark the predecessor function and successor function of this function, and classify and mark the function. The method of classifying and marking is: check whether the name of the function appears in the Android callback information library. In the function...

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 for automatically generating an Android application callback sequence on the basis of callback function modeling. A life cycle callback function, a GUI callback function and a system driving callback function are considered according to the method. The method comprises the following steps: on the basis of a pre-designed and established Android callback information base, performing function-callback mapping pretreatment on a source program, thereby acquiring essential data required by modeling, such as, a callback set, a non-callback set and a function-callback mapping list, and then performing uniform abstraction on the life cycle callback relation, the register relation and the inter-component skipping relation in an application component and generating a callback sequence model. The method for automatically generating the Android application callback sequence on the basis of callback function modeling provided by the invention is complete and uniform in modeling, is high in executing speed and is proved as reliable in practice. The method can be applied to the fields of static analysis and internal callback modeling of the application program on an Android platform.

Description

[0001] 【Technical field】 [0002] The invention belongs to the technical field of static analysis and internal callback modeling of an application program on an Android platform, and in particular relates to a method for automatically generating an Android application callback sequence based on callback function modeling. [0003] 【Background technique】 [0004] Currently mobile devices have become an essential part of people's lives. In order to meet people's increasing application requirements, applications on mobile devices emerge in an endless stream. Among them, the number of applications based on the Android platform is huge and continues to grow, and a large number of applications on the Android platform have been proven to have functional or security problems. Therefore, ensuring the correctness of mobile application functions and the security of use has increasingly become a key requirement of people. [0005] To perform security inspection and static analysis on And...

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): G06F21/56G06F11/36
CPCG06F11/3688G06F21/563G06F2221/033
Inventor 许静过辰楷刘奥朱静雯康介恢
Owner NANKAI UNIV