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

Method for analyzing and detecting service use defects in Android application

A detection method and defect technology, applied in the field of analysis and detection of service use defects in Android applications, can solve the problems of no service use defect research, no construction of detection tools, service leakage, etc., to achieve detailed division, strong versatility, and detection. wide range of effects

Pending Publication Date: 2020-02-04
NANJING UNIV OF SCI & TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Most of the existing work focuses on the detection of functional defects caused by services. The research on service performance defects is only limited to one of the reasons, such as service leaks. There is no comprehensive research on service use defects, nor service use defects A build detection tool for some reason

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 analyzing and detecting service use defects in Android application
  • Method for analyzing and detecting service use defects in Android application
  • Method for analyzing and detecting service use defects in Android application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0077] The invention provides an analysis and detection method for service use defects in Android applications. By testing the Android application, the detection result of the service usage defect in the application is generated. The specific detection process is as follows figure 1 shown. First, for a specific apk file to be tested, after converting it into a jimple file, analyze whether the application uses the service. If the service is used, go to the next step, otherwise end the analysis; then, search the jimple file to get the service usage set, and use the service matching algorithm to match the service; finally, perform anti-pattern detection on the obtained service usage set, and get the detection result.

[0078] In this implementation, the method includes the following steps:

[0079] Step 1, for an Android application to be tested, analyze whether it uses the service, the specific steps are as follows:

[0080] Step 1-1, use soot to convert the installation pac...

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 analyzing and detecting service use defects in an Android application. According to the method, an apk file of an Android application is used as input, and the detected service use defect is used as an output. The method comprises the following steps: converting an installation package file of the Android application to be detected into a jimple file by using boot, and analyzing whether the Android application uses the service or not based on the jimple file: if so, entering the next step; otherwise, ending the analysis; carrying out service matching on theAndroid application to be tested to obtain a service use statement set of the Android application and a corresponding service; and detecting the obtained service use statement set by using an inversepattern analyzer to obtain an inverse pattern of service use. The method has the advantage of being good in universality, and the service use defects of the application can be accurately and comprehensively detected from the installation package file of the Android application.

Description

technical field [0001] The invention belongs to the technical field of program static analysis, and in particular relates to an analysis and detection method for service use defects in Android applications. Background technique [0002] Smartphones and tablet computers mainly run on embedded operating systems represented by Android and IOS, among which the Android operating system currently occupies the highest share of the global smart phone operating system. As one of the four major components of Android, service is the most similar component to activity. The difference is that service runs in the background all the time, has no graphical user interface, and rarely involves interaction with users. Services are mainly responsible for processing some time-consuming logic in the background, or performing certain long-running tasks, such as file I / O, music playback, and network transactions. The existence of services makes the functions of Android applications more diversifie...

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/366G06F11/3624
Inventor 宋巍钱昌盛张静张炽华
Owner NANJING UNIV OF SCI & TECH