CN107391267B - Process detection method and device, electronic equipment and readable storage medium - Google Patents

Process detection method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN107391267B
CN107391267B CN201710494827.6A CN201710494827A CN107391267B CN 107391267 B CN107391267 B CN 107391267B CN 201710494827 A CN201710494827 A CN 201710494827A CN 107391267 B CN107391267 B CN 107391267B
Authority
CN
China
Prior art keywords
detected
account
memory
synchronous operation
determining
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
CN201710494827.6A
Other languages
Chinese (zh)
Other versions
CN107391267A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710494827.6A priority Critical patent/CN107391267B/en
Publication of CN107391267A publication Critical patent/CN107391267A/en
Application granted granted Critical
Publication of CN107391267B publication Critical patent/CN107391267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • 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/3636Software debugging by tracing the execution of the program

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a process detection method and device, electronic equipment and a readable storage medium. The method comprises the following steps: determining a process to be detected in the android terminal; judging whether the process to be detected is killed; if so, monitoring whether account synchronous operation corresponding to the process to be detected is triggered, wherein the account synchronous operation can execute pull-alive operation on the killed process corresponding to the account synchronous operation; if the process is triggered, determining whether the process to be detected runs in the memory or not after the account synchronous operation is completed; if the process to be detected runs in the memory, determining that the account synchronous operation is activated; and if the process to be detected is not operated in the memory, determining that the account synchronous operation is not alive. By applying the embodiment of the invention, whether the killed process corresponding to the account number synchronous operation is successfully pulled alive or not can be detected after the account number synchronous operation is executed.

Description

Process detection method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of process detection technologies, and in particular, to a process detection method and apparatus, an electronic device, and a readable storage medium.
Background
At present, people often utilize an android terminal (such as an android mobile phone) to communicate, wherein the android terminal refers to a terminal provided with an android system. However, some processes in the android terminal are often accidentally killed (for example, after the android mobile phone is blacked out, the song playing process is killed), so that the processes cannot run normally, and the user experience is affected. Therefore, in the prior art, a method for pulling a process in conjunction with an account synchronization mechanism is provided, so that in a process of performing an account synchronization operation, that is, in a process of performing a data synchronization operation between a client and a server corresponding to an account, a pulling operation can be performed on a killed process corresponding to the account synchronization operation.
However, the inventor finds that at present, there is no effective way to determine whether the pull-alive method can successfully pull-alive process.
Therefore, it is desirable to provide a process detection scheme for detecting whether a killed process corresponding to an account synchronization operation is successfully pulled alive after the account synchronization operation is performed.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a process detection method and apparatus, an electronic device, and a readable storage medium, so as to detect whether a killed process corresponding to an account synchronization operation is successfully pulled alive after the account synchronization operation is performed.
In a first aspect, an embodiment of the present invention provides a process detection method, where the method may include:
determining a process to be detected in the android terminal;
judging whether the process to be detected is killed;
if so, monitoring whether account synchronous operation corresponding to the process to be detected is triggered, wherein the account synchronous operation can execute pull-alive operation on the killed process corresponding to the account synchronous operation;
if the process is triggered, determining whether the process to be detected runs in the memory or not after the account synchronous operation is completed;
if the process to be detected runs in the memory, determining that the account synchronous operation is activated; and if the process to be detected is not operated in the memory, determining that the account synchronous operation is not alive.
Optionally, when it is determined that the process to be detected in the android terminal is not killed, the method may further include:
and killing the process to be detected, and monitoring whether the account synchronous operation corresponding to the process to be detected is triggered.
Optionally, the step of determining a process to be detected in the android terminal may include:
obtaining a detection instruction;
and taking the process in the android terminal, which is detected by the detection instruction, as the process to be detected.
Optionally, the step of monitoring whether the account synchronization operation corresponding to the process to be detected is triggered may include:
monitoring whether account synchronization time of account synchronization operation corresponding to the process to be detected is reached, if the account synchronization time is reached, indicating that the account synchronization operation corresponding to the process to be detected is triggered, and if the account synchronization time is not reached, indicating that the account synchronization operation corresponding to the process to be detected is not triggered.
Optionally, the step of determining whether the process to be detected runs in the memory may include:
acquiring a control command for checking whether the process to be detected runs in the memory;
and determining whether the process to be detected runs in the memory or not based on the control command.
Optionally, the process to be detected is:
any process created by an existing application program in the android terminal, or a process created by a newly added test program in the android terminal, wherein the existing application program and the test program are both provided with account number synchronous operation.
In a second aspect, an embodiment of the present invention further provides a process detection apparatus, where the apparatus may include:
the first determining unit is used for determining a process to be detected in the android terminal;
the judging unit is used for judging whether the process to be detected is killed or not;
the monitoring unit is used for monitoring whether account synchronous operation corresponding to the process to be detected is triggered or not when the judging unit judges that the process to be detected in the android terminal is killed, wherein the account synchronous operation can execute pull-alive operation on the killed process corresponding to the account synchronous operation;
the second determining unit is used for determining whether the process to be detected runs in the memory or not when the monitoring unit monitors that the account synchronous operation corresponding to the process to be detected is triggered;
a third determining unit, configured to determine that the account synchronization operation has reactivated the process to be detected when the second determining unit determines that the process to be detected runs in the memory; and when the second determining unit determines that the process to be detected does not run in the memory, determining that the account synchronous operation does not revive the process to be detected.
Optionally, in an embodiment of the present invention, the apparatus may further include:
and the process killing unit is used for killing the process to be detected and triggering the monitoring unit when the judging unit judges that the process to be detected in the android terminal is not killed.
Optionally, the first determining unit is specifically configured to:
obtaining a detection instruction;
and taking the process in the android terminal, which is detected by the detection instruction, as the process to be detected.
Optionally, the monitoring unit is specifically configured to:
monitoring whether account synchronization time of account synchronization operation corresponding to the process to be detected is reached, if the account synchronization time is reached, indicating that the account synchronization operation corresponding to the process to be detected is triggered, and if the account synchronization time is not reached, indicating that the account synchronization operation corresponding to the process to be detected is not triggered.
Optionally, the third determining unit includes:
the obtaining subunit is used for obtaining a control command for checking whether the process to be detected runs in the memory;
and the determining subunit is configured to determine, based on the control command, whether the process to be detected runs in the memory.
Optionally, the process to be detected is: any process created by an existing application program in the android terminal, or a process created by a newly added test program in the android terminal, wherein the existing application program and the test program are both provided with account number synchronous operation.
In a third aspect, an embodiment of the present invention further provides an electronic device, which may include a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the method steps of any process detection method when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the process detection methods described above.
In the embodiment of the invention, the process to be detected in the android terminal is determined at first, and whether the process to be detected is killed or not is judged. And monitoring whether the account synchronous operation corresponding to the process to be detected is triggered or not under the condition that the process to be detected is killed. Because the account synchronization operation can perform the pull-alive operation on the killed process corresponding to the account synchronization operation, when it is monitored that the account synchronization operation corresponding to the process to be detected is triggered, it is indicated that the account synchronization operation has performed the pull-alive operation on the process to be detected, and at this time, it can be determined whether the process to be detected is running in the memory. If the process to be detected is run in the memory, it may be determined that the account number synchronization operation has inactivated the process to be detected, and otherwise, it may be determined that the account number synchronization operation has not inactivated the process to be detected. By the method, whether the killed process corresponding to the account synchronization operation is successfully pulled alive or not can be detected after the account synchronization operation is executed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a process detection method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an account management interface of an android terminal;
FIG. 3 is a diagram illustrating a command prompt cmd window for a computer to obtain a control command according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a command prompt cmd window for a computer-generated control command according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a process detection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the method for pulling a process in combination with an account synchronization mechanism in the prior art, a pull operation may be performed on a process corresponding to an account synchronization operation by using an account synchronization operation.
Specifically, in the method for activating a process by combining an account synchronization mechanism, when an application a is added to account management under a setting menu of the android terminal and the application a reaches account synchronization time, the android terminal triggers account synchronization operation on the application a, so as to synchronize data such as contact data and chat data corresponding to the application a with a server of the application a. And after the account synchronization operation is triggered, the account synchronization operation may call: the function is used to pull up the process corresponding to the application program a, that is, the account synchronization operation may perform a pull-alive operation on the process corresponding to the application program a.
In order to detect whether the process activating method combined with the account synchronization mechanism can successfully activate the process, embodiments of the present invention provide a process detection method, an apparatus, an electronic device, and a readable storage medium.
First, a process detection method provided in an embodiment of the present invention is described below.
It should be noted that an execution main body for executing the process detection method provided by the embodiment of the present invention may be a computer, and the computer may be connected to the android terminal through a communication interface; of course, it is reasonable that the execution subject can be the android terminal itself.
When the execution subject is a computer, the functional software for implementing the process detection method provided by the embodiment of the present invention may be: the special process detection software arranged in the computer can also be a functional plug-in the existing software arranged in the computer. When the execution subject is the android terminal, the functional software for implementing the process detection method provided by the embodiment of the invention may be: the special process detection software arranged in the android terminal can also be a functional plug-in arranged in the existing software in the android terminal.
It is worth mentioning that the android terminal includes, but is not limited to, a mobile phone and a tablet computer with an android system installed.
Referring to fig. 1, a process detection method provided in an embodiment of the present invention may include the following steps:
s101: determining a process to be detected in the android terminal;
s102: judging whether the process to be detected is killed; if yes, go to step S103;
s103: monitoring whether account synchronous operation corresponding to the process to be detected is triggered, wherein the account synchronous operation can execute pull-alive operation on the killed process corresponding to the account synchronous operation; if triggered, go to step S104;
s104: after the account number synchronization operation is completed, determining whether the process to be detected runs in a memory; if the operation is in the memory, executing step S105; if not, executing step S106;
s105: determining that the account synchronous operation has already activated the process to be detected;
s106: and determining that the account synchronous operation does not pull the process to be detected alive.
It can be understood that, the operation of determining the process to be detected in step S101 may specifically be: obtaining a detection instruction; and taking the process in the android terminal, which is detected by the detection instruction, as the process to be detected.
The detection instruction may be obtained based on a touch instruction of a user, or may be obtained when a preset detection operation is triggered at regular time, which is not limited to this.
After determining the process to be detected, it may be determined whether the process to be detected is killed through step S102, where it may be determined whether the process to be detected is killed by detecting whether the process to be detected runs in the memory. Specifically, when detecting that the process to be detected does not run in the memory, judging that the process to be detected is killed; and when the process to be detected is detected to run in the memory, judging that the process to be detected is not killed. And when it is determined that the process to be detected is not killed, in order to ensure the accuracy of the subsequent detection result, an operation of killing the process to be detected may be performed, and then the step of S103 is continuously performed.
It should be noted that, in an implementation manner, the step of killing the process to be detected may be executed after it is determined that the process to be detected in the android terminal is not killed, and after an instruction of forcibly stopping sent by a user is received; in another implementation manner, the step of killing the process to be detected can be directly executed when the process to be detected in the android terminal is judged not to be killed. Wherein the operation of killing the process to be detected comprises: and removing the process to be detected from the memory.
For step S103, because the account corresponding to the process to be detected is operated synchronously, the pull-alive operation can be performed on the process to be detected. Therefore, whether pull-alive operation is executed for the process to be detected can be judged by judging whether the account synchronization operation is triggered. Specifically, if it is monitored that the account synchronization operation is triggered, it is indicated that the pull-alive operation has been performed on the process to be detected, and at this time, the operation of step S104 may be continuously performed; if the account synchronization operation is not triggered, it is indicated that the pull-alive operation is not performed on the process to be detected, so that computing resources are saved, accuracy of a detection result is guaranteed, and subsequent operations are not performed.
It should be noted that the process to be detected may be determined by the following method: in an implementation manner, any process created by an existing application program in the android terminal can be used as a process to be detected; in another implementation manner, a process created by a test program newly added in the android terminal by a technician may be used as the process to be detected. The existing application programs and the test programs are both provided with account number synchronization operations, that is, for processes corresponding to the application programs, the processes can utilize the corresponding account number synchronization operations to execute pull-alive operations on the corresponding processes.
For example, the process to be detected may be a process corresponding to a "sing bar" application program displayed on an account management interface of the android terminal shown in fig. 2, where the "sing bar" application program is an existing application program in the android terminal. The process corresponding to the application added to the account management can be pulled through the corresponding account synchronization operation.
Of course, a person skilled in the art may add a new test program with an account number of "app method order" in the android terminal, assuming that the test program corresponds to a process app method order, and add the test program to the account management shown in fig. 2, that is, perform an account number synchronization operation on the test program. Furthermore, it may be detected whether a killed process corresponding to the test program is successfully pulled alive after the account synchronization operation of the test program is executed.
For step S104, when the process to be detected is pulled alive, the process to be detected must run in the memory, so that it is monitored that the account number synchronization operation corresponding to the process to be detected is triggered (that is, it is determined that the pull-alive operation has been performed on the process to be detected), and after the pull-alive operation is completed, it can be determined whether the process to be detected runs in the memory, and if the process to be detected runs in the memory, it can be determined that the process to be detected is pulled alive, that is, the account number synchronization operation can pull-alive the process to be detected; if the detection is not run in the memory, it can be determined that the process to be detected is not pulled alive, that is, the account synchronization operation cannot pull alive the process to be detected.
In the embodiment of the invention, the process to be detected in the android terminal is determined at first, and whether the process to be detected is killed or not is judged. And monitoring whether the account synchronous operation corresponding to the process to be detected is triggered or not under the condition that the process to be detected is killed. Because the account synchronization operation can perform the pull-alive operation on the killed process corresponding to the account synchronization operation, when it is monitored that the account synchronization operation corresponding to the process to be detected is triggered, it is indicated that the account synchronization operation has performed the pull-alive operation on the process to be detected, and at this time, it can be determined whether the process to be detected is running in the memory. If the process to be detected is run in the memory, it may be determined that the account number synchronization operation has inactivated the process to be detected, and otherwise, it may be determined that the account number synchronization operation has not inactivated the process to be detected. By the method, whether the killed process corresponding to the account synchronization operation is successfully pulled alive or not can be detected after the account synchronization operation is executed.
Optionally, in an embodiment of the present invention, the step of monitoring whether the account synchronization operation corresponding to the process to be detected is triggered may include:
monitoring whether account synchronization time of account synchronization operation corresponding to the process to be detected is reached, if the account synchronization time is reached, indicating that the account synchronization operation corresponding to the process to be detected is triggered, and if the account synchronization time is not reached, indicating that the account synchronization operation corresponding to the process to be detected is not triggered.
It should be noted that the account synchronization time of the account synchronization operation corresponding to the process to be detected may be synchronization time set by the system, or synchronization time set by a technician according to an actual situation. This is because, due to various factors, the actual synchronization time is usually later than the system-set synchronization time, for example, the system-set synchronization time is 30 seconds, and the account synchronization operation should theoretically be performed at 30 seconds, but in the actual synchronization process, the account synchronization operation may be performed at 35 seconds or later, and therefore, it is reasonable for those skilled in the art to set the synchronization time to be 40 seconds.
For example, if the account synchronization time corresponding to the process to be detected is 40 seconds, after the process to be detected is determined to be killed, whether the time reaches 40 seconds or not may be monitored, if the time reaches 40 seconds, it is indicated that the account synchronization operation corresponding to the process to be detected is triggered, and if the time does not reach 40 seconds, it is indicated that the account synchronization operation corresponding to the process to be detected is not triggered.
Optionally, the step of determining whether the process to be detected runs in the memory includes:
acquiring a control command for checking whether the process to be detected runs in the memory;
and determining whether the process to be detected runs in the memory or not based on the control command.
It can be understood that, the execution subject in the embodiment of the present invention may obtain the control command, and after obtaining the control command, may determine whether the process to be detected runs in the memory by using the control command.
For example, when the execution body is a computer, the computer may obtain a control command input by a user through a command prompt cmd window. Specifically, when the process to be detected is the above-mentioned process AppMethodOrder, the computer may obtain a control command input by the user: ps | grey com.zjw.apppeeethorder, and further, the control command can be utilized to read the memory occupation information of the process. When the process runs in the memory, the computer may read memory occupation information in a rectangular frame in the cmd window shown in fig. 3, and it is seen that the rectangular frame has a numerical value; when the process is not running in memory, the computer may read the memory footprint information in the rectangular frame in the cmd window as shown in FIG. 4, which shows that there is no numerical value in the rectangular frame.
Note that com.zjw.apppeeethodorder is: package name of process appmethodder.
The process detection method provided by the embodiment of the present invention is further described below with reference to table one. See table one:
Figure BDA0001332206320000091
Figure BDA0001332206320000101
watch 1
Wherein N in Table I represents not pulling, Y represents pulling, s represents seconds, m represents minutes, h represents hours, and d represents days.
The person skilled in the art installs a test program AppMethodOrder in the android phone of the model shown in table one, and the test program corresponds to a process AppMethodOrder. And setting account number synchronization operation for the test program AppMethodOrder, and setting the account number synchronization operation to be executed once every 30 seconds. The time from triggering to completing of the account synchronization operation is very short.
For the process app method order in the android phone with models from model 1 to model 11, when it is determined that the process app method order is killed and the account synchronization operation corresponding to the process app method order is triggered, for example, the triggering time of the account synchronization operation is the time corresponding to 30s in table one, then the detection result as listed as 30s in table one can be obtained: the process AppMethodOrder in the android mobile phone with the model 4 and the model 8 is pulled alive, and other models are not pulled alive.
It should be noted that the 11 models shown in the table i are merely examples, and the process detection method provided in the embodiment of the present invention can detect a process in an android mobile phone of any model, and all models are not described here. Note that the system customizations of the respective models shown in table one are different from each other.
In addition, the inventors found that: when the account number synchronization operation is executed for multiple times, namely the process AppMethodOrder is executed for multiple times, the probability of the process pull-alive can be improved. Therefore, after the account synchronization operation is completed each time, the operation of detecting whether the process AppMethodOrder runs in the memory is executed, so as to obtain the detection results of the columns of 1m to 1d in the table i. Of course, the operation of detecting whether the process AppMethodOrder is running in the memory may not be executed at the preset time point (for example, the time point corresponding to 15m in the table one), because after the preset time point, the pull-alive results for most models are the same as the pull-alive results corresponding to the preset time point, that is, the pull-alive results corresponding to the preset time point may be used as the final pull-alive results.
From the detection results at the time points corresponding to 15m in table one, it can be seen that: the process AppMethodOrder in the android mobile phone with the model 1, the model 2, the model 3 and the model 10 cannot be pulled back through the pull-back operation executed on the process AppMethodOrder through the account synchronous operation, but the process AppMethodOrder in the android mobile phone with the model 4-9 and the model 11 can be pulled back. When the process AppMethodOrder is pulled alive, the pull alive of the test program AppMethodOrder is realized.
As can be further seen from the table i, most of the android handsets with the android system version below android7.0 can pull the process AppMethodOrder through the account synchronization operation when the process detection method provided by the embodiment of the present invention is used for detecting. Moreover, for an android mobile phone with an android system version of more than android7.0, there is a model that can pull a process AppMethodOrder through account synchronization operation, for example, an android mobile phone with a model of 9.
In summary, the process detection method provided by the embodiment of the invention can detect whether processes in android mobile phones of various models can be successfully pulled through account number synchronization operation.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a process detection apparatus, and referring to fig. 5, the apparatus may include:
a first determining unit 501, configured to determine a process to be detected in an android terminal;
a judging unit 502, configured to judge whether the process to be detected is killed;
a monitoring unit 503, configured to monitor whether an account synchronization operation corresponding to a process to be detected is triggered when the determining unit 502 determines that the process to be detected in the android terminal is killed, where the account synchronization operation can perform a pull-alive operation on the killed process corresponding to the account synchronization operation;
a second determining unit 504, configured to determine whether the process to be detected runs in the memory when the monitoring unit 503 monitors that the account synchronization operation corresponding to the process to be detected is triggered;
a third determining unit 505, configured to determine that the account synchronization operation has already activated the process to be detected when the second determining unit 504 determines that the process to be detected runs in the memory; when the second determining unit 504 determines that the process to be detected does not run in the memory, it is determined that the account synchronization operation does not revive the process to be detected.
In the embodiment of the invention, the process to be detected in the android terminal is determined at first, and whether the process to be detected is killed or not is judged. And monitoring whether the account synchronous operation corresponding to the process to be detected is triggered or not under the condition that the process to be detected is killed. Because the account synchronization operation can perform the pull-alive operation on the killed process corresponding to the account synchronization operation, when it is monitored that the account synchronization operation corresponding to the process to be detected is triggered, it is indicated that the account synchronization operation has performed the pull-alive operation on the process to be detected, and at this time, it can be determined whether the process to be detected is running in the memory. If the process to be detected is run in the memory, it may be determined that the account number synchronization operation has inactivated the process to be detected, and otherwise, it may be determined that the account number synchronization operation has not inactivated the process to be detected. By the method, whether the killed process corresponding to the account synchronization operation is successfully pulled alive or not can be detected after the account synchronization operation is executed.
Optionally, in an embodiment of the present invention, the apparatus may further include:
and the process killing unit is used for killing the to-be-detected process and triggering the monitoring unit 503 when the judging unit 502 judges that the to-be-detected process in the android terminal is not killed.
Optionally, in this embodiment of the present invention, the first determining unit 501 is specifically configured to:
obtaining a detection instruction;
and taking the process in the android terminal, which is detected by the detection instruction, as the process to be detected.
Optionally, in an embodiment of the present invention, the monitoring unit 502 is specifically configured to:
monitoring whether account synchronization time of account synchronization operation corresponding to the process to be detected is reached, if the account synchronization time is reached, indicating that the account synchronization operation corresponding to the process to be detected is triggered, and if the account synchronization time is not reached, indicating that the account synchronization operation corresponding to the process to be detected is not triggered.
Optionally, in this embodiment of the present invention, the third determining unit 505 includes:
the obtaining subunit is used for obtaining a control command for checking whether the process to be detected runs in the memory;
and the determining subunit is configured to determine, based on the control command, whether the process to be detected runs in the memory.
Optionally, the process to be detected is: any process created by an existing application program in the android terminal, or a process created by a newly added test program in the android terminal, wherein the existing application program and the test program are both provided with account number synchronous operation.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an electronic device, referring to fig. 6, where the electronic device may include a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604;
a memory 603 for storing a computer program;
the processor 601 is configured to implement the method steps of the process detection method according to any one of the above descriptions when executing the program stored in the memory 603.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of the process detection method described in any one of the above.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In the embodiment of the invention, the process to be detected in the android terminal is determined at first, and whether the process to be detected is killed or not is judged. And monitoring whether the account synchronous operation corresponding to the process to be detected is triggered or not under the condition that the process to be detected is killed. Because the account synchronization operation can perform the pull-alive operation on the killed process corresponding to the account synchronization operation, when it is monitored that the account synchronization operation corresponding to the process to be detected is triggered, it is indicated that the account synchronization operation has performed the pull-alive operation on the process to be detected, and at this time, it can be determined whether the process to be detected is running in the memory. If the process to be detected is run in the memory, it may be determined that the account number synchronization operation has inactivated the process to be detected, and otherwise, it may be determined that the account number synchronization operation has not inactivated the process to be detected. By the method, whether the killed process corresponding to the account synchronization operation is successfully pulled alive or not can be detected after the account synchronization operation is executed.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A method for process detection, the method comprising:
determining a process to be detected in the android terminal; the process to be detected is a process corresponding to a preset test program which is set with account number synchronous operation and used for testing whether the process can be pulled alive or not;
judging whether the process to be detected is killed;
if so, monitoring whether account synchronous operation corresponding to the process to be detected is triggered, wherein the account synchronous operation can execute pull-alive operation on the killed process corresponding to the account synchronous operation;
if the process is triggered, determining whether the process to be detected runs in the memory or not after the account synchronous operation is completed;
if the process to be detected runs in the memory, determining that the account synchronous operation is activated; if the process to be detected is not operated in the memory, determining that the account synchronous operation is not alive;
and when the process to be detected in the android terminal is judged not to be killed, killing the process to be detected, and executing a step of monitoring whether the account synchronous operation corresponding to the process to be detected is triggered.
2. The method according to claim 1, wherein the step of determining the process to be detected in the android terminal comprises:
obtaining a detection instruction;
and taking the process in the android terminal, which is detected by the detection instruction, as the process to be detected.
3. The method according to claim 1, wherein the step of monitoring whether the account synchronization operation corresponding to the process to be detected is triggered comprises:
monitoring whether account synchronization time of account synchronization operation corresponding to the process to be detected is reached, if the account synchronization time is reached, indicating that the account synchronization operation corresponding to the process to be detected is triggered, and if the account synchronization time is not reached, indicating that the account synchronization operation corresponding to the process to be detected is not triggered.
4. The method according to claim 1, wherein the step of determining whether the process to be detected is running in the memory comprises:
acquiring a control command for checking whether the process to be detected runs in the memory;
and determining whether the process to be detected runs in the memory or not based on the control command.
5. The method according to any one of claims 1 to 4, wherein the process to be detected is:
any process created by an existing application program in the android terminal, or a process created by a newly added test program in the android terminal, wherein the existing application program and the test program are both provided with account number synchronous operation.
6. An apparatus for process detection, the apparatus comprising:
the first determining unit is used for determining a process to be detected in the android terminal; the process to be detected is a process corresponding to a preset test program which is set with account number synchronous operation and used for testing whether the process can be pulled alive or not;
the judging unit is used for judging whether the process to be detected is killed or not;
the monitoring unit is used for monitoring whether account synchronous operation corresponding to the process to be detected is triggered or not when the judging unit judges that the process to be detected in the android terminal is killed, wherein the account synchronous operation can execute pull-alive operation on the killed process corresponding to the account synchronous operation;
the second determining unit is used for determining whether the process to be detected runs in the memory or not when the monitoring unit monitors that the account synchronous operation corresponding to the process to be detected is triggered;
a third determining unit, configured to determine that the account synchronization operation has reactivated the process to be detected when the second determining unit determines that the process to be detected runs in the memory; when the second determining unit determines that the process to be detected does not run in the memory, determining that the account synchronous operation does not revive the process to be detected;
and the process killing unit is used for killing the process to be detected and triggering the monitoring unit when the judging unit judges that the process to be detected in the android terminal is not killed.
7. The apparatus according to claim 6, wherein the first determining unit is specifically configured to:
obtaining a detection instruction;
and taking the process in the android terminal, which is detected by the detection instruction, as the process to be detected.
8. The apparatus according to claim 6, wherein the monitoring unit is specifically configured to:
monitoring whether account synchronization time of account synchronization operation corresponding to the process to be detected is reached, if the account synchronization time is reached, indicating that the account synchronization operation corresponding to the process to be detected is triggered, and if the account synchronization time is not reached, indicating that the account synchronization operation corresponding to the process to be detected is not triggered.
9. The apparatus according to claim 6, wherein the third determining unit comprises:
the obtaining subunit is used for obtaining a control command for checking whether the process to be detected runs in the memory;
and the determining subunit is configured to determine, based on the control command, whether the process to be detected runs in the memory.
10. The apparatus according to any one of claims 6-9, wherein the process to be detected is: any process created by an existing application program in the android terminal, or a process created by a newly added test program in the android terminal, wherein the existing application program and the test program are both provided with account number synchronous operation.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
12. A readable storage medium, characterized in that a computer program is stored in the readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN201710494827.6A 2017-06-26 2017-06-26 Process detection method and device, electronic equipment and readable storage medium Active CN107391267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710494827.6A CN107391267B (en) 2017-06-26 2017-06-26 Process detection method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710494827.6A CN107391267B (en) 2017-06-26 2017-06-26 Process detection method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN107391267A CN107391267A (en) 2017-11-24
CN107391267B true CN107391267B (en) 2020-03-27

Family

ID=60333263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710494827.6A Active CN107391267B (en) 2017-06-26 2017-06-26 Process detection method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN107391267B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495549B (en) * 2018-10-30 2021-07-20 上海尚往网络科技有限公司 Method, equipment and computer storage medium for application pull alive
CN111399924B (en) * 2020-03-18 2023-06-16 山东车微联信息技术股份有限公司 Method, terminal and storage medium for keeping application process alive under android platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648861A (en) * 2016-12-05 2017-05-10 广州优视网络科技有限公司 Method and device for keeping background service process activated
CN106874077A (en) * 2015-12-11 2017-06-20 腾讯科技(深圳)有限公司 process operation method and device
CN106874088A (en) * 2017-01-25 2017-06-20 北京奇虎科技有限公司 A kind of processing method of application program self-starting, device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874077A (en) * 2015-12-11 2017-06-20 腾讯科技(深圳)有限公司 process operation method and device
CN106648861A (en) * 2016-12-05 2017-05-10 广州优视网络科技有限公司 Method and device for keeping background service process activated
CN106874088A (en) * 2017-01-25 2017-06-20 北京奇虎科技有限公司 A kind of processing method of application program self-starting, device and mobile terminal

Also Published As

Publication number Publication date
CN107391267A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US10838838B2 (en) Method and apparatus for dealing with abnormality of application program and storage medium
CN107145782B (en) Abnormal application program identification method, mobile terminal and server
WO2017206476A1 (en) Method, device and apparatus for detecting cpu occupation
CN105302711B (en) Application restoration method and device and terminal
US8959394B2 (en) Electronic device, system, and method for testing exception handling mechanism
CN107797922B (en) Application page testing method, electronic device and electronic equipment
CN110442502B (en) Point burying method, device, equipment and storage medium
CN109032811B (en) Data monitoring method and device and electronic equipment
CN111625425A (en) Data monitoring method, device and system
CN107391267B (en) Process detection method and device, electronic equipment and readable storage medium
CN108668241B (en) Information reminding method and device, storage medium and electronic equipment
CN111427771A (en) Code coverage rate analysis method, equipment, server and readable storage medium
CN110688173B (en) Positioning method and device of components in cross-platform interface framework and electronic equipment
CN110502399B (en) Fault detection method and device
CN110704311B (en) Application program testing method and device, electronic equipment and readable storage medium
CN110083355B (en) APP page processing method and device
CN110659082A (en) Application program interface display method and device, terminal and storage medium
CN109491771B (en) Task processing method based on system performance optimization and related equipment
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN106708705B (en) Terminal background process monitoring method and system
US9912796B2 (en) Apparatus and method for correcting an input number
CN109981873B (en) Address book permission opening method and device and electronic equipment
CN111128139A (en) Non-invasive voice test method and device
CN106407016B (en) Method and device for simulating multithreading contention and robbery of resources
CN108055382A (en) Adding method, device and the mobile terminal of calendar event

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