Android API application specification-based automatic code quality evaluation and optimization method

A code quality and automatic evaluation technology, applied in the fields of information technology and computer software, can solve problems such as threats to code quality, no automatic detection, economic and property losses, etc., to improve code quality and reduce improper use and misuse.

Active Publication Date: 2016-11-16
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the inertial thinking of Android application developers, they usually write code based on existing experience, ignoring or not paying attention to the API usage recommendations stated on the Android official website, resulting in some APIs that have been deprecated or abandoned in earlier versions are still being used. This will lead to potential security problems in the written application, which is more likely to be exploited by malicious programs. For example, CVE-2015-3833 in Common Vulnerabilities And Exposures (CVE)

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
  • Android API application specification-based automatic code quality evaluation and optimization method
  • Android API application specification-based automatic code quality evaluation and optimization method
  • Android API application specification-based automatic code quality evaluation and optimization method

Examples

Experimental program
Comparison scheme
Effect test
No Example Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to an Android API application specification-based automatic code quality evaluation and optimization method. The method comprises the following steps of: constructing a specific analyzer to analyze an API summary document; classifying APIs on the basis of an Android API application specification, and establishing an API feature library; establishing an automatic scanning estimation engine, calling the APIs to scan a to-be-tested Android application program, carrying out statistic on type distribution of the called APIs, and locating calling positions of removed PIS, un-recommended APIs and hidden APIs; and providing an automatic code quality optimization suggestion so as to generate a code quality estimation report. For investigating the specification degrees of calling the APIs by Android application programs, an integrated automatic detection estimation system is established, so that Android application program developers can be effectively helped to detect and optimize the usage of the APIs, decrease the mis-application of the APIs and enhance the Android application program code quality so as to improve the security levels of the Android application programs.

Description

technical field [0001] The invention belongs to the technical fields of information technology and computer software, and in particular relates to an automatic code quality evaluation and optimization method based on Android API usage specifications. Background technique [0002] Up to now, the Android system version developed by Google has developed from Android1.0 to Marshmallow6.0, and a total of more than 20 different major versions have been released, and the corresponding Android Application Programming Interface (Android Application Programming Interface, Android API) Also increased from level 1 to level 23. Each version upgrade of the Android system will add, delete and change some APIs according to the requirements of the system's functions, performance, security, etc. and change 144 API methods. However, due to the inertial thinking of Android application developers, they usually write code based on existing experience, ignoring or not paying attention to the API...

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): G06F11/36
CPCG06F11/3616
Inventor 赵丝喆武志飞黄小芳吴敬征罗天悦杨牧天武延军
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products