CN111198812B - Application fault detection method, application fault detection device and terminal equipment - Google Patents

Application fault detection method, application fault detection device and terminal equipment Download PDF

Info

Publication number
CN111198812B
CN111198812B CN201811381762.5A CN201811381762A CN111198812B CN 111198812 B CN111198812 B CN 111198812B CN 201811381762 A CN201811381762 A CN 201811381762A CN 111198812 B CN111198812 B CN 111198812B
Authority
CN
China
Prior art keywords
application
fault
target
information
fault detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811381762.5A
Other languages
Chinese (zh)
Other versions
CN111198812A (en
Inventor
熊友军
蒋永俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiujiang Youbixing Technology Co ltd
Shenzhen Ubtech Technology Co ltd
Original Assignee
Shenzhen Ubtech Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ubtech Technology Co ltd filed Critical Shenzhen Ubtech Technology Co ltd
Priority to CN201811381762.5A priority Critical patent/CN111198812B/en
Publication of CN111198812A publication Critical patent/CN111198812A/en
Application granted granted Critical
Publication of CN111198812B publication Critical patent/CN111198812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention is applicable to the technical field of information processing, and provides an application fault detection method, an application fault detection device and terminal equipment, wherein the application fault detection method is applied to the terminal equipment with an android system, faulty applications are operated in the terminal equipment, and the application fault detection method comprises the following steps: installing a target application to a terminal device, wherein the target application and the fault application contain the same preset attribute information; running the target application through a target process of the terminal equipment, wherein the target process is a process running the fault application; and acquiring process information when the target process runs the target application, and detecting the application fault of the target application according to the process information so as to determine the fault condition of the fault application. The invention can improve the accuracy of the application fault detection.

Description

Application fault detection method, application fault detection device and terminal equipment
Technical Field
The present invention belongs to the technical field of information processing, and in particular, relates to an application fault detection method, an application fault detection device, and a terminal device.
Background
The Android (Android) system is an operation system of an open source code based on Linux, and can be used in various terminal devices, such as smart phones, tablet computers or robots.
When an application installed in a terminal device (such as a mobile phone, a robot, etc.) using an android system fails, technicians often perform logic analysis and fault inference by means of a system log output by the android system in the terminal device. However, the system log cannot sufficiently provide the data information of the fault site of the application, especially when some information is not printed from the log, a technician can only guess and infer from probability, so that the cause of the fault cannot be determined, and the accuracy of fault detection of the application is lower.
Disclosure of Invention
In view of the above, the embodiment of the invention provides an application fault detection method, an application fault detection device and a terminal device, which can improve the accuracy of application fault detection.
A first aspect of an embodiment of the present invention provides an application failure detection method, which is applied to a terminal device having an android system, where a failed application is running in the terminal device, where the application failure detection method includes:
installing a target application to a terminal device, wherein the target application and the fault application contain the same preset attribute information;
running the target application through a target process of the terminal equipment, wherein the target process is a process running the fault application;
and acquiring process information when the target process runs the target application, and detecting the application fault of the target application according to the process information so as to determine the fault condition of the fault application.
A second aspect of an embodiment of the present invention provides an application fault detection device, which is applied to a terminal device having an android system, where a faulty application is running in the terminal device, where the application fault detection device includes:
the installation module is used for installing a target application to the terminal equipment, wherein the target application and the fault application contain the same preset attribute information;
the running module is used for running the target application through a target process of the terminal equipment, wherein the target process is a process for running the fault application;
and the detection module is used for acquiring the process information when the target process runs the target application, and carrying out application fault detection according to the process information so as to determine the fault condition of the fault application.
A third aspect of the embodiments of the present invention provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of applying a fault detection method as described above when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of applying a fault detection method as described above.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: the embodiment of the invention is applied to terminal equipment with an android system, a fault application is operated in the terminal equipment, and a target application is installed in the terminal equipment, wherein the target application and the fault application contain the same preset attribute information; running the target application through a target process of the terminal equipment, wherein the target process is a process running the fault application; and acquiring process information when the target process runs the target application, and detecting the application fault of the target application according to the process information so as to determine the fault condition of the fault application. According to the embodiment of the invention, the target application is operated through the target process of the terminal equipment, the application fault detection can be carried out by detecting the target application under the condition that the fault application is not modified, for example, the fault condition of the fault application can be determined by modifying and debugging the target application, so that the accuracy of the fault detection is improved, and the method has strong practicability and usability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an implementation of an application fault detection method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of an implementation flow of an application fault detection method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of an application fault detection device according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device according to a fourth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
Fig. 1 is a schematic implementation flow chart of an application fault detection method according to an embodiment of the present invention, where the application fault detection method may be applied to a terminal device with an android system, and a faulty application is running in the terminal device.
In this embodiment of the present application, the terminal device may be a smart phone, a tablet computer, a robot, or other devices that may use an android system. The Android (Android) system is an operating system of open source code based on Linux. The failed application is an application that fails, which may refer to a state in which the application cannot perform a prescribed function. The faults can be various and can be determined according to the specific application scenario of the mobile terminal, the application and the like.
The application fault detection method as shown in fig. 1 may include the steps of:
step S101, installing a target application to a terminal device, wherein the target application and the fault application contain the same preset attribute information.
In the embodiment of the present invention, the preset attribute information may be preset information that may indicate related attributes of an application (such as a type of the application, a process of running the application, a user identifier corresponding to the application, and an installation package of the application). At this time, by installing the target application having the same preset attribute information as the faulty application in the terminal device, it is possible to analyze the fault condition of the corresponding faulty application according to the installed target application in the subsequent operation without destroying the state and data when the faulty application fails.
For example, the preset attribute information may be obtained in advance by querying a process running a faulty application in the android system or by querying a service storing information of the faulty application. For example, for an android system, information for applications that it installs may be stored in a PackagerManagerService. Therefore, the target application which is the same as the preset attribute information of the fault application can be acquired and configured by checking the preset attribute information of the fault application stored in the PackagerManagerService, and the target application is installed to the terminal device.
Step S102, the target application is operated through a target process of the terminal equipment, wherein the target process is a process for operating the fault application.
In the embodiment of the invention, the target application can be operated through the target process by configuring the information of the target application. For example, the information of the designated attribute of the service component in the application configuration table of the target application is configured to be consistent with the information of the process running the fault application, so that the process running the target application is consistent with the process running the fault application. The application configuration table, the service component and other files or components are functions and services provided by the android system. Illustratively, the application configuration table is an android management xml file, and the specified attribute of the service component may be an android: process attribute.
Step S103, process information when the target process runs the target application is obtained, and application fault detection is carried out on the target application according to the process information so as to determine the fault condition of the fault application.
In the embodiment of the present invention, the process information may be parameters, variables, objects (objects), data, and other information generated when the target process runs the target application. For example, the process information may be obtained through a preset interface through a preset function or service in the android system. For example, it may be that the service component receives the process information through onStartCommand interface.
In the embodiment of the present invention, there may be various specific implementation manners of applying fault detection to the target application process according to the process information. For example, other information (such as references of internal objects or variables, etc.) when the process runs the target application may be obtained according to the process information, and then the other information and the process information are combined to perform application fault detection on the target application, where the other information may be information that cannot be obtained by directly accessing the process. Wherein, specifically, the other information can be obtained according to the process information by reflection or the like. In the embodiment of the present invention, the reflection may be a method in JAVA programming language. In the running state, for any entity class, all the attributes and methods of the class can be known through the reflection; for any one object, any method and attribute thereof can also be invoked by the reflection. Further, by way of example, fault detection may be applied to a target application process by querying or modifying process information and other information obtained from the process information.
In the embodiment of the present application, since the target application and the fault application include the same preset attribute information and the process running the target application is the same as the process running the fault application, by performing application fault detection on the target application, the running condition of the fault application can be simulated, and the fault condition of the fault application can be analyzed and determined by analyzing information such as data of the target application.
Optionally, in an embodiment of the present invention, the installing the target application to the terminal device includes:
acquiring preset attribute information of the fault application;
and installing the target application to the terminal equipment according to the preset attribute information.
Optionally, the preset attribute information includes target process information of the fault application, user information and an android installation package APK signature.
In the embodiment of the invention, the preset attribute information can be obtained in advance by inquiring a process running the faulty application in the android system or by inquiring a service storing the information of the faulty application.
The target process information may include a target process name, and the like, where in this case, by configuring an attribute android of a service component in an application configuration table android management. Xml of the target application, an exemplary process may be the same as a process name of a failed application, that is, the attribute android of the service component corresponding to the target application is configured to be the target process name, so that the process name of the target application may be the same as the process name of the failed application.
The user information may include information such as Identity (ID) of the user. When the user information of the target process is consistent, the target process can keep the consistency of the operations such as authority setting of the target application and the fault application. In the embodiment of the invention, the process User Identity (UID) set by the shared User Id attribute of the fault application can be detected in advance, and the shared User Id attribute of the target application is configured to be the same as that of the fault application, so that the User information of the target application can be kept consistent with the User information of the fault application.
The android installation package (AndroidPackage, APK) is signed as a digital signature of the android installation package. Through the APK signature, the android system can verify the application when the installation package of the application is installed, so that identity authentication of the installed application, information integrity and the like are guaranteed. By using the same key file signature as the fault application for the target application, the APK signature of the target application and the APK signature of the fault application can be kept consistent.
Optionally, after performing the fault detection according to the data information, the method further includes:
and stopping the target process from running the target application, and keeping the fault application to continue running.
In the embodiment of the invention, as the fault application can not be influenced when the target process runs the target application, the fault application can be kept to continue to run when the target process stops running the target application. For example, after the target application is stopped, the fault application can be processed in a targeted manner by the fault condition detected during the running of the target application.
The embodiment of the invention is applied to terminal equipment with an android system, a fault application is operated in the terminal equipment, and a target application is installed in the terminal equipment, wherein the target application and the fault application contain the same preset attribute information; running the target application through a target process of the terminal equipment, wherein the target process is a process running the fault application; and acquiring process information when the target process runs the target application, and detecting the application fault of the target application according to the process information so as to determine the fault condition of the fault application. According to the embodiment of the invention, the target application is operated through the target process of the terminal equipment, and the application fault detection can be carried out by detecting the target application under the condition that the fault application is not modified. And by carrying out application fault detection on the target application, the running condition of the fault application can be simulated, and the fault condition of the fault application can be analyzed and determined by modifying and debugging the data and other information of the target application, and the detection and analysis process can not influence the state of the fault application, so that the detection can be repeatedly carried out to determine the whole path and the accurate reason of the fault occurrence, the accuracy of the fault detection is improved, and the method has high practicability and usability.
Fig. 2 is a schematic implementation flow chart of an application fault detection method provided in a second embodiment of the present invention, where the application fault detection method is applied to a terminal device with an android system, and a faulty application is run in the terminal device. The application fault detection method may include the steps of:
in step S201, a target application is installed on a terminal device, where the target application and the fault application include the same preset attribute information.
In step S202, the target application is run by a target process of the terminal device, where the target process is a process running the faulty application.
The steps S201 and S202 in this embodiment are the same as or similar to the steps S101 and S102 described above, and the detailed description of the steps S101 and S102 will be omitted herein.
In step S203, process information when the target process runs the target application is obtained, and preset type parameter information of the target application is obtained according to the process information.
In the embodiment of the present invention, the process information may be parameters, variables, objects (objects), data, and other information generated when the target process runs the target application. For example, the process information may be obtained through a preset interface through a preset function or service in the android system. For example, it may be that the service component receives the process information through onStartCommand interface.
In the embodiment of the present invention, the process information may be information generated when the target application is executed, which is obtained from the process through a preset interface, service or function. Because the obtained process information often cannot fully embody a relatively complete processing path or flow when the target process runs the target application, the preset type parameter information of the target application can be further obtained according to the process information. The preset type parameter information may be child object information, variable information, and the like. For example, sub-object information, variable information and the like can be obtained according to the process information in a reflection mode and the like so as to query the current value of a specific object (such as a root object, a sub-object) or a variable in the running process of the target process and debug.
In step S204, application fault detection is performed on the target application according to the preset type parameter information, so as to determine a fault condition of the fault application.
In the embodiment of the present invention, there may be various specific implementation manners of applying fault detection to the target application process according to the process information. For example, the fault detection may be applied to the target application process by querying or modifying the process information and the preset type parameter information.
Optionally, the process information includes root object information;
correspondingly, the obtaining the preset type parameter information of the target application according to the process information includes:
and obtaining sub-object information and/or variable information of the target application according to the root object information.
In the embodiment of the present invention, the Root Object may refer to the top layer of the mapping, and the Root Object information may refer to the Root Object and information related to the Root Object. The sub-object information may be the sub-object and information related to the sub-object, such as data, service, method, etc. corresponding to the sub-object. The variable information may be a variable and information related to the variable. For example, a service component in the android system can be used for interfacing root object information in components such as Acitivity, service in the android system or services, and then a sub-object or variable reference in the target process can be obtained through reflection and other methods according to the root object information.
Optionally, the performing the application fault detection on the target application according to the preset type parameter information includes:
obtaining a query result of the preset type parameter information, or debugging the target application according to the preset type parameter information and obtaining a debugging result;
and carrying out application fault detection on the target application according to the query result or the debugging result.
In the embodiment of the application, the target application is debugged by modifying and inquiring the preset type parameter information, the process information and the like, so that the target application can be debugged on line for multiple times, the running of the fault application in the target process is not influenced, the fault condition of the fault application is detected more comprehensively, and the success rate of fault detection and fault solution is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Fig. 3 is a schematic diagram of an application fault detection apparatus provided in a third embodiment of the present invention, where the application fault detection apparatus 300 is applied to a terminal device with an android system, and a faulty application is running in the terminal device. For convenience of explanation, only portions relevant to the embodiments of the present invention are shown.
The application fault detection apparatus 300 includes:
an installation module 301, configured to install a target application to a terminal device, where the target application and the fault application include the same preset attribute information;
an operation module 302, configured to operate the target application through a target process of the terminal device, where the target process is a process for operating the faulty application;
and the detection module 303 is configured to obtain process information when the target process runs the target application, and perform application fault detection according to the process information, so as to determine a fault condition of the fault application.
Optionally, the mounting module 301 specifically includes:
the acquisition unit is used for acquiring preset attribute information of the fault application;
and the installation unit is used for installing the target application to the terminal equipment according to the preset attribute information.
Optionally, in the embodiment of the present invention, the preset attribute information includes target process information of the fault application, user information, and an APK signature of the android installation package.
Optionally, the detection module 303 specifically includes:
the obtaining unit is used for obtaining preset type parameter information of the target application according to the process information;
and the detection unit is used for carrying out application fault detection on the target application according to the preset type parameter information.
Optionally, in an embodiment of the present invention, the process information includes root object information;
correspondingly, the obtaining unit is specifically configured to:
and obtaining sub-object information and/or variable information of the target application according to the root object information.
Optionally, the detection unit specifically includes:
the processing subunit is used for acquiring the query result of the preset type parameter information, or debugging the target application according to the preset type parameter information and acquiring a debugging result;
and the detection subunit is used for carrying out application fault detection on the target application according to the query result or the debugging result.
Optionally, the application fault detection device further includes:
and the stopping module is used for stopping the target process from running the target application and keeping the fault application to continue running.
According to the embodiment of the invention, the target application is operated through the target process of the terminal equipment, the application fault detection can be carried out by detecting the target application under the condition that the fault application is not modified, for example, the fault condition of the fault application can be determined by modifying and debugging the target application, so that the accuracy of the fault detection is improved, and the method has strong practicability and usability.
Fig. 4 is a schematic diagram of a terminal device according to a fourth embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in the memory 41 and executable on the processor 40. The processor 40, when executing the computer program 42, implements the steps of the various application fault detection method embodiments described above, such as steps 101 through 103 shown in fig. 1. Alternatively, the processor 40 may perform the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules 301 to 303 shown in fig. 3, when executing the computer program 42.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 42 in the terminal device 4. For example, the computer program 42 may be divided into an installation module, an operation module, and a detection module, where each module specifically functions as follows:
the installation module is used for installing a target application to the terminal equipment, wherein the target application and the fault application contain the same preset attribute information;
the running module is used for running the target application through a target process of the terminal equipment, wherein the target process is a process for running the fault application;
and the detection module is used for acquiring the process information when the target process runs the target application, and carrying out application fault detection according to the process information so as to determine the fault condition of the fault application.
The terminal device 4 may be a computing device such as a robot, a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the terminal device 4 and does not constitute a limitation of the terminal device 4, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 40 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. . Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (7)

1. The application fault detection method is characterized by being applied to terminal equipment with an android system, wherein faulty applications run in the terminal equipment, and the application fault detection method comprises the following steps:
acquiring preset attribute information of fault application; the fault application is an application with a fault, and the fault refers to a state that the application cannot execute a specified function;
installing a target application to a terminal device according to the preset attribute information, wherein the target application and the fault application contain the same preset attribute information, and the preset attribute information comprises target process information, user information and an android installation package (APK) signature of the fault application;
the information of the target application is configured, so that a target process of the terminal equipment runs the target application, and application fault detection is carried out by detecting the target application under the condition that the fault application is not modified, wherein the target process is a process running the fault application;
acquiring process information when the target process runs the target application, and performing application fault detection on the target application according to the process information to determine the fault condition of the fault application;
and stopping the target process from running the target application, and keeping the fault application to continue running.
2. The application fault detection method as claimed in claim 1, wherein said performing application fault detection on a target application according to the process information comprises:
acquiring preset type parameter information of the target application according to the process information;
and carrying out application fault detection on the target application according to the preset type parameter information.
3. The application fault detection method as claimed in claim 2, wherein the process information includes root object information;
correspondingly, the obtaining the preset type parameter information of the target application according to the process information includes:
and obtaining sub-object information and/or variable information of the target application according to the root object information.
4. The application fault detection method as claimed in claim 2, wherein said performing application fault detection on the target application according to the preset type parameter information includes:
obtaining a query result of the preset type parameter information, or debugging the target application according to the preset type parameter information and obtaining a debugging result;
and carrying out application fault detection on the target application according to the query result or the debugging result.
5. An application fault detection device, which is applied to a terminal device with an android system, wherein a faulty application runs in the terminal device, and the application fault detection device comprises:
the installation module is used for acquiring preset attribute information of the fault application; installing a target application to a terminal device according to the preset attribute information, wherein the fault application is an application with a fault, and the fault refers to a state that the application cannot execute a specified function; the target application and the fault application contain the same preset attribute information, wherein the preset attribute information comprises target process information, user information and an android installation package (APK) signature of the fault application;
the running module is used for enabling a target process of the terminal equipment to run the target application by configuring the information of the target application so as to detect application faults by detecting the target application without modifying the fault application, wherein the target process is a process for running the fault application;
the detection module is used for acquiring the process information when the target process runs the target application and carrying out application fault detection according to the process information so as to determine the fault condition of the fault application;
and the stopping module is used for stopping the target process from running the target application and keeping the fault application to continue running.
6. Terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of applying a fault detection method according to any of claims 1 to 4 when the computer program is executed.
7. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of applying a fault detection method according to any one of claims 1 to 4.
CN201811381762.5A 2018-11-20 2018-11-20 Application fault detection method, application fault detection device and terminal equipment Active CN111198812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811381762.5A CN111198812B (en) 2018-11-20 2018-11-20 Application fault detection method, application fault detection device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811381762.5A CN111198812B (en) 2018-11-20 2018-11-20 Application fault detection method, application fault detection device and terminal equipment

Publications (2)

Publication Number Publication Date
CN111198812A CN111198812A (en) 2020-05-26
CN111198812B true CN111198812B (en) 2024-02-09

Family

ID=70746268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811381762.5A Active CN111198812B (en) 2018-11-20 2018-11-20 Application fault detection method, application fault detection device and terminal equipment

Country Status (1)

Country Link
CN (1) CN111198812B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064770A (en) * 2013-01-08 2013-04-24 哈尔滨工程大学 Dual-process redundancy transient fault tolerating method
CN104809400A (en) * 2015-04-28 2015-07-29 联动优势科技有限公司 Process protection method and device
CN105677141A (en) * 2015-12-29 2016-06-15 深圳市金立通信设备有限公司 Application program management method and terminal
CN106133698A (en) * 2014-03-17 2016-11-16 微软技术许可有限责任公司 Framework for user model collapse report
CN106293979A (en) * 2015-06-25 2017-01-04 伊姆西公司 Detection procedure is without the method and apparatus of response
CN106648863A (en) * 2016-12-08 2017-05-10 武汉斗鱼网络科技有限公司 Live keeping method and system of Android application installation package and application target process
CN107729128A (en) * 2017-07-24 2018-02-23 上海壹账通金融科技有限公司 Application data restoration methods, device, computer equipment and storage medium
CN107729178A (en) * 2017-09-28 2018-02-23 郑州云海信息技术有限公司 A kind of Metadata Service process takes over method and device
CN107943578A (en) * 2017-11-03 2018-04-20 深圳市金立通信设备有限公司 A kind of memory release method, terminal device and computer-readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5286942B2 (en) * 2008-05-30 2013-09-11 富士通株式会社 Control method, control program, and information processing apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064770A (en) * 2013-01-08 2013-04-24 哈尔滨工程大学 Dual-process redundancy transient fault tolerating method
CN106133698A (en) * 2014-03-17 2016-11-16 微软技术许可有限责任公司 Framework for user model collapse report
CN104809400A (en) * 2015-04-28 2015-07-29 联动优势科技有限公司 Process protection method and device
CN106293979A (en) * 2015-06-25 2017-01-04 伊姆西公司 Detection procedure is without the method and apparatus of response
CN105677141A (en) * 2015-12-29 2016-06-15 深圳市金立通信设备有限公司 Application program management method and terminal
CN106648863A (en) * 2016-12-08 2017-05-10 武汉斗鱼网络科技有限公司 Live keeping method and system of Android application installation package and application target process
CN107729128A (en) * 2017-07-24 2018-02-23 上海壹账通金融科技有限公司 Application data restoration methods, device, computer equipment and storage medium
CN107729178A (en) * 2017-09-28 2018-02-23 郑州云海信息技术有限公司 A kind of Metadata Service process takes over method and device
CN107943578A (en) * 2017-11-03 2018-04-20 深圳市金立通信设备有限公司 A kind of memory release method, terminal device and computer-readable medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张丹青 ; 江建慧 ; 陈林博 ; .嵌入式程序的故障行为分析.计算机应用.(第01期),249-255+259. *
张丹青 等.嵌入式程序的故障行为分析.计算机应用.2013,(第01期),全文. *

Also Published As

Publication number Publication date
CN111198812A (en) 2020-05-26

Similar Documents

Publication Publication Date Title
CN108459962B (en) Code normalization detection method and device, terminal equipment and storage medium
CN108833459B (en) Data reporting method and terminal equipment
US20160224462A1 (en) Devices and methods for generating test cases
CN110543420B (en) Software testing method, system, terminal and storage medium
CN112231702B (en) Application protection method, device, equipment and medium
CN112286828B (en) Testing method and system for intelligent contracts of block chains
US20180089072A1 (en) Automated testing of application program interface
CN109271789A (en) Malicious process detection method, device, electronic equipment and storage medium
CN110851352A (en) Fuzzy test system and terminal equipment
CN112671609A (en) Asset census and safety detection method and device and terminal equipment
WO2014204470A1 (en) Generating a fingerprint representing a response of an application to a simulation of a fault of an external service
CN110940874B (en) Calibration method, server and medium for nuclear power station transformer protection device
CN111198812B (en) Application fault detection method, application fault detection device and terminal equipment
CN109902001B (en) Method for detecting uninitialized variable and terminal equipment
CN110309062B (en) Use case generation method, device, electronic equipment and storage medium
CN113467815B (en) Application repairing method and device for hot update, terminal equipment and storage medium
CN109684205B (en) System testing method, device, electronic equipment and storage medium
CN114969759B (en) Asset security assessment method, device, terminal and medium of industrial robot system
CN113468058B (en) Regression testing method and device for software as service platform and electronic equipment
CN115756935A (en) Abnormal fault positioning method, device and equipment of embedded software system
CN115455414A (en) Safety detection method and device
CN114328065A (en) Interrupt verification method and device and electronic equipment
CN114282221A (en) Injection vulnerability detection method, system, terminal and storage medium
CN114238943A (en) Application program protection method, device, equipment and storage medium
CN111475400A (en) Verification method of service platform and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen UBTECH Technology Co.,Ltd.

Country or region after: China

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen UBTECH Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240422

Address after: Room 101 and 201, Building 1, Qingwang Science and Technology Park, Intersection of Ecological Fourth Road and Keji Fourth Road, Lianxi District, Jiujiang City, Jiangxi Province, 332000

Patentee after: Jiujiang Youbixing Technology Co.,Ltd.

Country or region after: China

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen UBTECH Technology Co.,Ltd.

Country or region before: China