Font Size: a A A

Defect Detection And Analysis Technology For Android Inter Component Communication

Posted on:2021-12-08Degree:MasterType:Thesis
Country:ChinaCandidate:S ZhaoFull Text:PDF
GTID:2518306470970499Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Smartphone has become an essential electronic product in daily life.Devices running the Android system account for a large proportion of the smartphone market,and the applications running on the Android system have been gradually increasing.The communication mechanism among components in an Android application is the Intent mechanism,which is a commonly used mechanism in applications to reduce the burden on developers and promote component reuse.However,because this mechanism exposes the components to the outside,the application is at risk of crashing when the message sent by a malicious application cannot be handled by the component.Therefore,the problems which exist in the communication process of Android application with the Intent mechanism have become the focus of research.This paper takes the exposed components in Android applications as the research object and studies the robustness of communication among application components using Intent.It was discovered that the reason of affecting the application's robustness was that the application failed to process the message properly when it received an Intent from another application.To solve this problem,this paper proposes a defect detection and analysis method for communication among Android components.The method includes path-based defect detection and analysis.The defect detection method is mainly completed through static analysis and testing.In the static analysis phase,this paper firstly uses the decompilation technology to analyze the configuration file,and then propose the core engine analysis method to obtain the parameter information related to the Intent in the program.In the test phase,use the component information obtained in the static analysis phase and the standard constant values provided by Android are used to construct the test suites and send them to the target component.The system log information is monitored in real time to obtain the exception information which can be used in the next stage.In defect analysis,this article proposes a defect analysis method between Android components.The core engine analysis method is used to obtain the path information related to the Intent.And the function call stack analysis method is used to extract the abnormal stack information in the log.The combination of both is possible to automatically analyze the root cause of the exception is triggered.Using the above defect detection and defect analysis methods in real applications,this paper finds a variety of exceptions in the communication among application components,and further achieves the automatic analysis of the root cause of the exceptions.It provides guidance for Android application developers to analyze the causes of exceptions,provides test methods for testers and provides reference for subsequent work.
Keywords/Search Tags:Android inter components communication, Robustness, Software testing, Program static analysis, Program dynamic analysis
PDF Full Text Request
Related items