Android target application crash calculation method and device

A target application and statistical method technology, applied in the field of Android target application crash statistics, Android target application crash statistics device field, can solve the problem of poor applicability, inability to detect and obtain Android system crash information, inability to detect and capture crash information, etc. problems, to achieve the effect of improving comprehensiveness and applicability

Active Publication Date: 2016-04-20
BEIJING QIHOO TECH CO LTD
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method can only detect the crash information of some APPs. For the abnormal statistics of APPs that have implemented UncaughtExceptionHandler, that is, there is already a logic for statistical analysis of abnormalities in the APP. Using the above-mentioned UncaughtException function method of the Hookthread class, cannot detect and capture crash information
It can be seen that the APP crash statistics method in the prior art may not be able to detect and obtain the crash information of some APPs in the Android system, and the applicability is not strong

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 target application crash calculation method and device
  • Android target application crash calculation method and device
  • Android target application crash calculation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] refer to figure 1 , which shows a flow chart of the steps of an embodiment of a method for counting crashes of an Android target application according to an embodiment of the present invention, which may specifically include the following steps:

[0061] Step 110 , monitor whether the activation function of the window of the Activity of the target application calls the exception catching function; if the activation function of the window of the Activity calls the exception catching function, go to step 120 .

[0062] The above-mentioned target applications may include various applications running in the Android system that need to obtain crash information, such as 360 Security Guard, 360 Security Browser, and the like.

[0063] Activity is one of the most basic and most commonly used four components in Android components. Activity is an application component that provides a screen that users can use to interact in order to complete a certain task. In an Android applicati...

Embodiment 2

[0084] refer to figure 2 , which shows a flow chart of the steps of an embodiment of a method for counting crashes of an Android target application according to an embodiment of the present invention, which may specifically include the following steps:

[0085] Step 210, inject the hook function into the application process of the target application.

[0086] In the embodiment of the present invention, the hook function is used to intercept the authority verification result returned by the authority verification function, and at the same time execute the logical process of returning the authority verification result indicating that the verification has passed to the system. Therefore, the embodiment of the present invention needs to inject the hook function into the application process of each application first.

[0087] Preferably, step 210 includes:

[0088] Sub-step 211, when the system starts, replace the initial hatching process that comes with the system with the pred...

Embodiment 3

[0126] refer to image 3 , which shows a structural block diagram of an embodiment of an Android target application crash statistics device according to an embodiment of the present invention, which may specifically include the following modules:

[0127] The monitoring module 310 is adapted to monitor whether the activation function of the window of the Activity of the target application calls the exception capture function; if the activation function of the window of the Activity calls the exception capture function, enter the hooking module.

[0128] The hooking module 320 is adapted to hook the exception catching function through a hook function.

[0129] The obtaining module 330 is adapted to obtain the exception message through the exception catching function.

[0130] The statistical module 340 is adapted to collect statistics on the abnormal messages.

[0131] In the embodiment of the present invention, monitor whether the window activation function of the Activity o...

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

An embodiment of the invention provides an Android target application crash calculation method and relates to the technical field of computers. The method comprises the following steps: whether a window enabling function of Activity of a target application calls an exception catching function is monitored; if the window enabling function of Activity calls the exception catching function, the exception catching function is hooked through a hook function; exception messages are caught through the exception catching function; the exception messages are counted. The method solves the problem that the application crash calculation method in the prior art cannot detect and acquire crash information of certain target application in an Android system, is low in applicability and the like and has the benefit that the comprehensiveness and applicability for detection and acquisition of the crash information of the target application in the Android are improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method for counting crashes of Android target applications and a device for counting crashes of Android target applications. Background technique [0002] With the development of smartphones, various systems supporting smartphones have emerged. Such as Android (Android) system. Android is an open source operating system based on Linux, which is mainly used in mobile terminals such as mobile phones. Android platform consists of operating system, middleware, user interface and application software. [0003] As the market share of the Android system increases, more and more developers develop APPs (Applications) based on the Android system, making it more convenient for users to use Android phones. [0004] For developers, it is necessary to make statistics on the crashes of each APP, so as to obtain the cause of the crash and further improve the performance of the co...

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/34
CPCG06F11/34
Inventor 姜阳阳袁任娜
Owner BEIJING QIHOO TECH CO LTD
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