WO2016058414A1 - Method and device for processing terminal application - Google Patents
Method and device for processing terminal application Download PDFInfo
- Publication number
- WO2016058414A1 WO2016058414A1 PCT/CN2015/083320 CN2015083320W WO2016058414A1 WO 2016058414 A1 WO2016058414 A1 WO 2016058414A1 CN 2015083320 W CN2015083320 W CN 2015083320W WO 2016058414 A1 WO2016058414 A1 WO 2016058414A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal application
- abnormal
- abnormality
- terminal
- capture
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
Definitions
- This document relates to the field of mobile applications, and in particular to a method and device for implementing terminal application processing.
- a terminal application is an application software program running on a terminal device.
- many terminal applications on the market are completed by companies, teams, and even individuals with unprofessional technical capabilities. Due to the high timeliness requirements of terminal applications, some terminal applications have been provided when they are still immature. The problem that is brought to the user is that due to the immaturity of the terminal application, the abnormality frequently occurs, which affects the user experience.
- the user of the terminal is required to manually open the application process management of the terminal, and the application process is closed to handle the abnormal frequency issue, and the method for implementing the terminal application processing is cumbersome and inefficient.
- This paper provides a method and device for implementing terminal application processing, which can simplify the processing of abnormal frequency and improve the processing efficiency of terminal application abnormalities.
- a method for implementing terminal application processing comprising:
- the method further includes: dynamically adjusting the interval period according to a preset adjustment policy, where
- the interval period during which the abnormal capture is performed is reduced; when the number of abnormal terminal applications captured by the abnormality is less than the specified second threshold, the increase is performed. The interval period for exception capture.
- the method further includes determining, by an external instruction, whether the terminal application is abnormally captured and processed.
- the step of terminating the abnormal terminal application when the terminal application is abnormal when the terminal application that captures the abnormality is two or more, according to the time sequence of the abnormality of the capture terminal application, and/or The frequency of each terminal application that captures an abnormality, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
- the method when terminating the abnormal terminal application according to the frequency of each terminal application that captures the abnormality, the method further includes:
- the number of abnormal acquisitions of all cycles of each terminal application is accumulated, and the frequency of each terminal application that captures an abnormality is obtained.
- An apparatus for implementing processing of a terminal application comprising: adding a monitoring unit, an abnormality capturing unit, and an exception handling unit;
- Add a monitoring unit set to: add the active application active terminal to the pre-established monitoring list;
- the abnormality capturing unit is configured to: perform an abnormal capture on the terminal application in the monitoring list according to the interval period;
- the exception handling unit is configured to: terminate the abnormal terminal application when the terminal application is abnormal.
- the device further includes: a dynamic adjustment unit, configured to dynamically adjust the interval period according to a preset adjustment policy;
- the interval period during which the abnormal capture is performed is reduced; when the number of abnormal terminal applications captured by the abnormality is less than the specified second threshold, the abnormal capture is increased. Interval period.
- the apparatus further includes an external command unit configured to: receive an external command to determine Whether to capture and process exceptions for terminal applications.
- the exception handling unit is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of capturing the abnormality of the terminal application, and/or the frequency of each terminal application that captures the abnormality The degree, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
- the exception handling unit is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of capturing the abnormality of the terminal application, and/or accumulating the abnormality of all the cycles of each terminal application. The number of times of capture, the frequency of each terminal application that captures an abnormality, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
- a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
- the technical solution provided by the embodiment of the present invention includes: adding an active terminal application to a pre-established monitoring list; performing an abnormal capture on the terminal application in the monitoring list according to an interval period; and capturing the terminal when capturing When an application is abnormal, the abnormal terminal application is terminated.
- the embodiment of the present invention implements the abnormality capture of the terminal application in the active mode, implements the timely processing of the abnormal terminal application, simplifies the abnormal processing flow of the terminal application, and improves the efficiency of the abnormal terminal application processing.
- FIG. 1 is a flowchart of a method for implementing terminal application processing according to an embodiment of the present invention
- FIG. 2 is a structural block diagram of an apparatus for implementing terminal application processing according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a method for implementing processing of a terminal application according to an embodiment of the present invention, including: as shown in FIG.
- Step 100 Add the terminal application in an active state to the pre-established monitoring list.
- the pre-established monitoring list here refers to a conventional data statistics list that can receive database instructions for adding operations, such as a regular SQL database list, ACESS, and the like.
- Step 101 Perform an exception capture on the terminal application in the monitoring list according to the interval period.
- the exception capture of the terminal application can be implemented by reading the abnormal state parameter of the terminal application through an existing instruction, for example, reading the Excepion mContext parameter of the terminal application and the Simple Date Format time parameter of the system through the Catch Exception instruction to obtain the abnormality. Type and time point, get exception information.
- the method of the embodiment of the present invention further includes dynamically adjusting the interval period according to a preset adjustment policy, including:
- the interval period for performing abnormal capture is reduced; otherwise, (for example, the number of abnormal terminal applications captured by the abnormality is less than the specified second Threshold), increasing the interval period for exception capture.
- the first threshold and the second threshold may be the same or different.
- the definition of the number of abnormally captured abnormal terminal applications is a numerical value obtained by a person skilled in the art based on empirical statistical analysis, and is a change value of a change trend; for example, an initial value of an interval period is assumed to be 60000 milliseconds, that is, 1 Minutes, the setting duration here mainly considers that the terminal application will not be processed in time, and processing delay will occur, which will affect the user experience. It is assumed that the number of abnormalities of the application of the statistical capture terminal is 3, and the number of abnormal terminal applications is greater than 3, and the number of applications is abnormal. Shorten the interval period, and vice versa, increase the interval period. The general minimum interval period is 1000 milliseconds.
- the interval period can be adjusted by setting the interval function or a function opposite to the direction of the abnormal terminal application. For example, when the abnormal terminal application is long, the interval duration is reduced; otherwise, the interval period is increased, and the interval period is increased.
- the adjustment range is set according to the actual situation.
- the interval period is set by a timer.
- Step 102 Terminate the abnormal terminal application when the terminal application is abnormal.
- the method for terminating the terminal application may be implemented by using an instruction of the process to be closed, wherein the instruction to close the process is a conventional technical means of a person skilled in the art, for example, KillProgress closes the process of the terminal application.
- the terminal application that terminates the abnormality includes:
- the abnormal terminal application is terminated according to the time sequence of capturing the terminal application abnormality, and/or the frequency of each terminal application that captures the abnormality, and/or the order in which the terminal application is added to the monitoring list.
- the method further includes:
- the number of abnormal acquisitions of all cycles of each terminal application is accumulated, and the frequency of each terminal application that captures an abnormality is obtained.
- the method further includes: determining, by an external instruction, whether the terminal application is abnormally captured and processed.
- the external command is the setting command of the function that is turned on. It is assumed that the function of the embodiment of the present invention is named "KillAPP", and the setting item of the application is set to "on” and “off”, and when "on” is selected, the application to the terminal is started. The exception capture process is performed, and vice versa; the setting of the switch is a common technical means by those skilled in the art.
- FIG. 2 is a structural block diagram of an apparatus for implementing terminal application processing according to an embodiment of the present invention. As shown in FIG. 2, the method includes: an adding monitoring unit 21, an abnormality capturing unit 22, and an exception processing unit 23;
- the monitoring unit 21 is configured to: add the terminal application in Active to the pre-established monitoring list;
- the abnormality capturing unit 22 is configured to: perform an abnormal capture on the terminal application in the monitoring list according to the interval period;
- the exception processing unit 23 is configured to: terminate the abnormal terminal application when the terminal application abnormality is captured.
- the exception handling unit 22 is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of the abnormality of the capture terminal application, and/or the frequency of each terminal application that captures the abnormality, and / or the order in which the terminal application is added to the monitoring list to terminate the abnormal terminal application.
- the exception handling unit 22 is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of the abnormality of the capture terminal application, and/or the cumulative number of abnormal captures of all the cycles of each terminal application, Obtaining the corresponding frequency of each terminal application that captures an abnormality, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
- the device of the embodiment of the present invention may further include a dynamic adjustment unit 24 configured to dynamically adjust the interval period according to a preset adjustment policy;
- the interval period during which the abnormal capture is performed is reduced; when the number of abnormal terminal applications captured by the abnormality is less than the specified second threshold, the abnormal capture is increased. Interval period.
- the apparatus of the embodiment of the present invention may further include an external command unit 25 configured to: receive an external command to determine whether to perform abnormal capture and processing on the terminal application.
- the device in the embodiment of the present invention may be built in or connected to the terminal device to implement processing on the terminal application.
- the user determines to perform an abnormality capture and processing of the terminal application, and sets an interval period for the abnormal capture by the timer.
- the terminal applications A, B, and C are all abnormal. If the information obtained by the abnormal capture determines the abnormal information captured by the terminal application A, B, and C, the abnormal time exists in sequence, then the time can be followed. The terminal application is closed in turn; of course, if the frequency of capturing the terminal application abnormality is different, the order of closing the terminal application that captures the abnormality may also be determined by the frequency.
- the order of closing the abnormal terminal applications is determined in combination with the frequency of the abnormality of the capture terminal application; or, in combination with the order in which the terminal applications are added to the monitoring list, the order of closing the abnormal terminal applications is determined; Or, by capturing the frequency of abnormality of the terminal application and the sequence of adding the terminal application to the monitoring list, determining the order of closing the abnormal terminal application; these determinations may be adjusted according to actual conditions.
- all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
- the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
- the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
- the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
- the embodiment of the present invention implements the abnormality capture of the terminal application in the active mode, implements the timely processing of the abnormal terminal application, simplifies the abnormal processing flow of the terminal application, and improves the efficiency of the abnormal terminal application processing.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
- Debugging And Monitoring (AREA)
Abstract
A method and device for processing a terminal application, comprising: adding a terminal application in an active state into a pre-established monitoring list; performing abnormal capture on the terminal application in the monitoring list according to an interval period; and when a terminal application abnormality is captured, terminating the abnormal terminal application.
Description
本文涉及移动应用领域,尤指一种实现终端应用处理的方法及装置。This document relates to the field of mobile applications, and in particular to a method and device for implementing terminal application processing.
随着通信技术和电子技术的高速发展,智能的终端设备的普及不仅推动了移动互联网的发展,终端设备上的应用也得到了爆炸式的增长,并成为移动互联网发展的主流。With the rapid development of communication technology and electronic technology, the popularity of intelligent terminal devices has not only promoted the development of mobile Internet, but also the explosive growth of applications on terminal devices, and has become the mainstream of mobile Internet development.
终端应用,是指在终端设备上运行的应用软件程序。目前,市场上的终端应用,很多是由技术能力并不专业的公司、团队、甚至是个人完成,由于终端应用对时效性要求较高,因此,部分终端应用在还不成熟时就已被提供给用户使用,而带来的问题是:由于终端应用的不成熟,导致异常频发,影响用户体验。A terminal application is an application software program running on a terminal device. At present, many terminal applications on the market are completed by companies, teams, and even individuals with unprofessional technical capabilities. Due to the high timeliness requirements of terminal applications, some terminal applications have been provided when they are still immature. The problem that is brought to the user is that due to the immaturity of the terminal application, the abnormality frequently occurs, which affects the user experience.
对于终端应用的异常频发,通常需要终端的用户手动打开终端的应用进程管理,通过应用进程管理关闭终端应用来处理异常频发问题,实现终端应用处理的方法过程繁琐且效率低。For the abnormal frequency of the terminal application, the user of the terminal is required to manually open the application process management of the terminal, and the application process is closed to handle the abnormal frequency issue, and the method for implementing the terminal application processing is cumbersome and inefficient.
发明内容Summary of the invention
本文提供一种实现终端应用处理的方法及装置,能够简化处理异常频发问题,提高终端应用异常的处理效率。This paper provides a method and device for implementing terminal application processing, which can simplify the processing of abnormal frequency and improve the processing efficiency of terminal application abnormalities.
一种实现终端应用处理的方法,包括:A method for implementing terminal application processing, comprising:
将处于激活状态Active的终端应用添加到预先建立的监控列表中;Adding the terminal application in the active state Active to the pre-established monitoring list;
按照间隔周期对处于监控列表的终端应用进行异常捕获;Abnormal capture of the terminal application in the monitoring list according to the interval period;
当捕获到终端应用异常时,终止异常的终端应用。When an abnormality of the terminal application is caught, the abnormal terminal application is terminated.
可选地,该方法还包括:对间隔周期按照预先设置的调整策略进行动态调整,其中,
Optionally, the method further includes: dynamically adjusting the interval period according to a preset adjustment policy, where
当所述异常捕获的异常终端应用个数多于指定的第一阈值时,减少进行异常捕获的间隔周期;当所述异常捕获的异常终端应用个数少于指定的第二阈值时,增加进行异常捕获的间隔周期。When the number of abnormal terminal applications that are abnormally captured is greater than the specified first threshold, the interval period during which the abnormal capture is performed is reduced; when the number of abnormal terminal applications captured by the abnormality is less than the specified second threshold, the increase is performed. The interval period for exception capture.
可选地,所述将处于激活状态Active的终端应用添加到预先建立的监控列表中的步骤之前还包括,通过外部指令确定是否对终端应用进行异常捕获和处理。Optionally, before the step of adding the terminal application in the active state Active to the pre-established monitoring list, the method further includes determining, by an external instruction, whether the terminal application is abnormally captured and processed.
可选地,在当捕获到终端应用异常时,终止异常的终端应用的步骤中,当捕获到异常的终端应用为两个或两个以上时,根据捕获终端应用异常的时间先后、和/或每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。Optionally, in the step of terminating the abnormal terminal application when the terminal application is abnormal, when the terminal application that captures the abnormality is two or more, according to the time sequence of the abnormality of the capture terminal application, and/or The frequency of each terminal application that captures an abnormality, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
可选地,当根据每个捕获到异常的终端应用的频繁度终止异常的终端应用时,该方法还包括:Optionally, when terminating the abnormal terminal application according to the frequency of each terminal application that captures the abnormality, the method further includes:
累加每个终端应用的所有周期的异常捕获次数,获得相应的每个捕获到异常的终端应用的频繁度。The number of abnormal acquisitions of all cycles of each terminal application is accumulated, and the frequency of each terminal application that captures an abnormality is obtained.
一种实现终端应用处理的装置,包括:添加监控单元、异常捕获单元和异常处理单元;其中,An apparatus for implementing processing of a terminal application, comprising: adding a monitoring unit, an abnormality capturing unit, and an exception handling unit; wherein
添加监控单元,设置为:将处于激活状态Active的终端应用添加到预先建立的监控列表中;Add a monitoring unit, set to: add the active application active terminal to the pre-established monitoring list;
异常捕获单元,设置为:按照间隔周期对处于监控列表的终端应用进行异常捕获;The abnormality capturing unit is configured to: perform an abnormal capture on the terminal application in the monitoring list according to the interval period;
异常处理单元,设置为:捕获到终端应用异常时,终止异常的终端应用。The exception handling unit is configured to: terminate the abnormal terminal application when the terminal application is abnormal.
可选地,该装置还包括动态调整单元,设置为:对所述间隔周期按照预先设置的调整策略进行动态调整;其中,Optionally, the device further includes: a dynamic adjustment unit, configured to dynamically adjust the interval period according to a preset adjustment policy;
当异常捕获的异常终端应用个数多于指定的第一阈值时,减少进行异常捕获的间隔周期;当所述异常捕获的异常终端应用个数少于指定的第二阈值时,增加进行异常捕获的间隔周期。When the number of abnormal terminal applications captured by the abnormality is greater than the specified first threshold, the interval period during which the abnormal capture is performed is reduced; when the number of abnormal terminal applications captured by the abnormality is less than the specified second threshold, the abnormal capture is increased. Interval period.
可选地,该装置还包括外部指令单元,设置为:接收外部指令,以确定
是否对终端应用进行异常捕获和处理。Optionally, the apparatus further includes an external command unit configured to: receive an external command to determine
Whether to capture and process exceptions for terminal applications.
可选地,异常处理单元是设置为:当捕获到的异常的终端应用为两个或两个以上时,根据捕获终端应用异常的时间先后、和/或每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。Optionally, the exception handling unit is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of capturing the abnormality of the terminal application, and/or the frequency of each terminal application that captures the abnormality The degree, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
可选地,异常处理单元是设置为:当捕获到的异常的终端应用为两个或两个以上时,根据捕获终端应用异常的时间先后、和/或累加每个终端应用的所有周期的异常捕获次数,获得相应的每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。Optionally, the exception handling unit is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of capturing the abnormality of the terminal application, and/or accumulating the abnormality of all the cycles of each terminal application. The number of times of capture, the frequency of each terminal application that captures an abnormality, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。A computer readable storage medium storing computer executable instructions for performing the method of any of the above.
与相关技术相比,本发明实施例提供的技术方案,包括:将处于Active的终端应用添加到预先建立的监控列表中;按照间隔周期对处于监控列表的终端应用进行异常捕获;当捕获到终端应用异常时,终止异常的终端应用。本发明实施例通过对处于Active的终端应用进行异常捕获,实现对异常的终端应用的及时处理,简化了终端应用的异常处理流程,提高了对异常的终端应用处理的效率。Compared with the related art, the technical solution provided by the embodiment of the present invention includes: adding an active terminal application to a pre-established monitoring list; performing an abnormal capture on the terminal application in the monitoring list according to an interval period; and capturing the terminal when capturing When an application is abnormal, the abnormal terminal application is terminated. The embodiment of the present invention implements the abnormality capture of the terminal application in the active mode, implements the timely processing of the abnormal terminal application, simplifies the abnormal processing flow of the terminal application, and improves the efficiency of the abnormal terminal application processing.
附图概述BRIEF abstract
图1为本发明实施例实现终端应用处理的方法的流程图;FIG. 1 is a flowchart of a method for implementing terminal application processing according to an embodiment of the present invention;
图2为本发明实施例实现终端应用处理的装置的结构框图。FIG. 2 is a structural block diagram of an apparatus for implementing terminal application processing according to an embodiment of the present invention.
下文中将结合附图对本发明的实施方式进行详细说明。在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The features in the embodiments and the embodiments herein may be arbitrarily combined with each other without conflict.
图1为本发明实施例实现终端应用处理的方法的流程图,包括:如图1所示,还包括:
FIG. 1 is a flowchart of a method for implementing processing of a terminal application according to an embodiment of the present invention, including: as shown in FIG.
步骤100、将处于激活状态(Active)的终端应用添加到预先建立的监控列表中。Step 100: Add the terminal application in an active state to the pre-established monitoring list.
这里预先建立的监控列表是指可以接收数据库指令进行添加操作的常规的数据统计列表,例如常规的SQL数据库列表、ACESS等。The pre-established monitoring list here refers to a conventional data statistics list that can receive database instructions for adding operations, such as a regular SQL database list, ACESS, and the like.
步骤101、按照间隔周期对处于监控列表的终端应用进行异常捕获。Step 101: Perform an exception capture on the terminal application in the monitoring list according to the interval period.
对终端应用进行异常捕获,可以通过已有的指令读取终端应用的异常状态参数来实现,例如通过Catch Exception指令读取终端应用的Excepion mContext参数和系统的Simple Date Format时间参数,来获取异常的类型和时间点,获得异常信息。The exception capture of the terminal application can be implemented by reading the abnormal state parameter of the terminal application through an existing instruction, for example, reading the Excepion mContext parameter of the terminal application and the Simple Date Format time parameter of the system through the Catch Exception instruction to obtain the abnormality. Type and time point, get exception information.
本发明实施例方法还包括:对所述间隔周期按照预先设置的调整策略进行动态调整,包括:The method of the embodiment of the present invention further includes dynamically adjusting the interval period according to a preset adjustment policy, including:
当异常捕获的异常终端应用个数多时(比如,多于指定的第一阈值),减少进行异常捕获的间隔周期;反之(比如,所述异常捕获的异常终端应用个数少于指定的第二阈值),增加进行异常捕获的间隔周期。上述第一阈值和第二阈值可以相同,也可以不同,When the number of abnormal terminal applications captured by the abnormality is large (for example, more than the specified first threshold), the interval period for performing abnormal capture is reduced; otherwise, (for example, the number of abnormal terminal applications captured by the abnormality is less than the specified second Threshold), increasing the interval period for exception capture. The first threshold and the second threshold may be the same or different.
这里的异常捕获的异常终端应用的个数的多少的定义是本领域技术人员根据经验统计分析获得的数值,是一个变化趋势的变化值;例如,假设间隔周期的初始值为60000毫秒也就是1分钟,这里设置时长主要考虑终端应用如果不及时处理,会出现处理延时,影响用户体验,假设统计捕获终端应用的异常数为3,定义大于3为异常终端应用个数为较多,此时缩短间隔周期,反之,增加间隔周期,一般的最小间隔周期为1000毫秒。间隔周期的调整可以通过设定区间函数或与异常终端应用个数多少变化趋势方向相反的函数实现,例如,异常的终端应用多时,减少间隔周期的时长;反之,增加间隔周期的时长,间隔周期的调整幅度根据实际情况设定。间隔周期的设定通过计时器实现。Here, the definition of the number of abnormally captured abnormal terminal applications is a numerical value obtained by a person skilled in the art based on empirical statistical analysis, and is a change value of a change trend; for example, an initial value of an interval period is assumed to be 60000 milliseconds, that is, 1 Minutes, the setting duration here mainly considers that the terminal application will not be processed in time, and processing delay will occur, which will affect the user experience. It is assumed that the number of abnormalities of the application of the statistical capture terminal is 3, and the number of abnormal terminal applications is greater than 3, and the number of applications is abnormal. Shorten the interval period, and vice versa, increase the interval period. The general minimum interval period is 1000 milliseconds. The interval period can be adjusted by setting the interval function or a function opposite to the direction of the abnormal terminal application. For example, when the abnormal terminal application is long, the interval duration is reduced; otherwise, the interval period is increased, and the interval period is increased. The adjustment range is set according to the actual situation. The interval period is set by a timer.
步骤102、当捕获到终端应用异常时,终止异常的终端应用。Step 102: Terminate the abnormal terminal application when the terminal application is abnormal.
本步骤中,可以通过关闭进程的指令来实现终端应用终止的方法,其中,关闭进程的指令为本领域技术人员的惯用技术手段,例如通过
KillProgress关闭终端应用的进程。In this step, the method for terminating the terminal application may be implemented by using an instruction of the process to be closed, wherein the instruction to close the process is a conventional technical means of a person skilled in the art, for example,
KillProgress closes the process of the terminal application.
本步骤中,当捕获到异常的终端应用为两个或两个以上时,终止异常的终端应用包括:In this step, when the terminal application that captures the abnormality is two or more, the terminal application that terminates the abnormality includes:
根据捕获终端应用异常的时间先后、和/或每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。The abnormal terminal application is terminated according to the time sequence of capturing the terminal application abnormality, and/or the frequency of each terminal application that captures the abnormality, and/or the order in which the terminal application is added to the monitoring list.
当根据每个捕获到异常的终端应用的频繁度终止所述异常的终端应用时,该方法还包括:When the abnormal terminal application is terminated according to the frequency of each terminal application that captures an abnormality, the method further includes:
累加每个终端应用的所有周期的异常捕获次数,获得相应的每个捕获到异常的终端应用的频繁度。The number of abnormal acquisitions of all cycles of each terminal application is accumulated, and the frequency of each terminal application that captures an abnormality is obtained.
本发明实施例的步骤100之前还包括,通过外部指令确定是否对终端应用进行异常捕获和处理。Before step 100 of the embodiment of the present invention, the method further includes: determining, by an external instruction, whether the terminal application is abnormally captured and processed.
外部指令就是是否开启的该项功能的设置指令,假设本发明实施例功能取名“KillAPP”,在应用的设置项设置“开”“关”选择,选择“开”时就会启动对终端应用进行异常捕获处理,反之则不处理;对于开关的设置,属于本领域技术人员的惯用技术手段。The external command is the setting command of the function that is turned on. It is assumed that the function of the embodiment of the present invention is named "KillAPP", and the setting item of the application is set to "on" and "off", and when "on" is selected, the application to the terminal is started. The exception capture process is performed, and vice versa; the setting of the switch is a common technical means by those skilled in the art.
图2为本发明实施例实现终端应用处理的装置的结构框图,如图2所示,包括:添加监控单元21、异常捕获单元22和异常处理单元23;其中,2 is a structural block diagram of an apparatus for implementing terminal application processing according to an embodiment of the present invention. As shown in FIG. 2, the method includes: an adding monitoring unit 21, an abnormality capturing unit 22, and an exception processing unit 23;
添加监控单元21,设置为:将处于Active的终端应用添加到预先建立的监控列表中;The monitoring unit 21 is configured to: add the terminal application in Active to the pre-established monitoring list;
异常捕获单元22,设置为:按照间隔周期对处于监控列表的终端应用进行异常捕获;The abnormality capturing unit 22 is configured to: perform an abnormal capture on the terminal application in the monitoring list according to the interval period;
异常处理单元23,设置为:捕获到终端应用异常时,终止异常的终端应用。The exception processing unit 23 is configured to: terminate the abnormal terminal application when the terminal application abnormality is captured.
异常处理单元22是设置为:当捕获到的异常的终端应用为两个或两个以上时,根据捕获终端应用异常的时间先后、和/或每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。
The exception handling unit 22 is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of the abnormality of the capture terminal application, and/or the frequency of each terminal application that captures the abnormality, and / or the order in which the terminal application is added to the monitoring list to terminate the abnormal terminal application.
异常处理单元22是设置为:当捕获到的异常的终端应用为两个或两个以上时,根据捕获终端应用异常的时间先后、和/或累加每个终端应用的所有周期的异常捕获次数,获得相应的每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。The exception handling unit 22 is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of the abnormality of the capture terminal application, and/or the cumulative number of abnormal captures of all the cycles of each terminal application, Obtaining the corresponding frequency of each terminal application that captures an abnormality, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
本发明实施例装置还可包括动态调整单元24,设置为:对所述间隔周期按照预先设置的调整策略进行动态调整;其中,The device of the embodiment of the present invention may further include a dynamic adjustment unit 24 configured to dynamically adjust the interval period according to a preset adjustment policy;
当异常捕获的异常终端应用个数多于指定的第一阈值时,减少进行异常捕获的间隔周期;当所述异常捕获的异常终端应用个数少于指定的第二阈值时,增加进行异常捕获的间隔周期。When the number of abnormal terminal applications captured by the abnormality is greater than the specified first threshold, the interval period during which the abnormal capture is performed is reduced; when the number of abnormal terminal applications captured by the abnormality is less than the specified second threshold, the abnormal capture is increased. Interval period.
本发明实施例装置还可包括外部指令单元25,设置为:接收外部指令,以确定是否对终端应用进行异常捕获和处理。The apparatus of the embodiment of the present invention may further include an external command unit 25 configured to: receive an external command to determine whether to perform abnormal capture and processing on the terminal application.
本发明实施例的装置可以内置于终端设备内或与终端设备连接,实现对终端应用的处理。The device in the embodiment of the present invention may be built in or connected to the terminal device to implement processing on the terminal application.
以下对本发明实施例关于捕获的异常的终端应用为两个或两个以上的情况进行说明。Hereinafter, a case where the terminal application of the captured abnormality is two or more in the embodiment of the present invention will be described.
假设通过外部指令,用户确定进行终端应用的异常捕获和处理,通过计时器设定进行异常捕获的间隔周期。It is assumed that through an external command, the user determines to perform an abnormality capture and processing of the terminal application, and sets an interval period for the abnormal capture by the timer.
假设目前处于Active状态的终端应用有A、B、C;Assume that the terminal applications currently in the Active state have A, B, and C;
进行异常捕获时,终端应用A、B、C都出现了异常,此时如果异常捕获获得的信息确定终端应用A、B、C捕获到的异常信息中,异常时间存在先后顺序,则可以按照时间先后关闭终端应用;当然,如果捕获终端应用异常的频繁度不同,则也可以单独以频繁度来确定关闭捕获到异常的终端应用的顺序。When an exception is captured, the terminal applications A, B, and C are all abnormal. If the information obtained by the abnormal capture determines the abnormal information captured by the terminal application A, B, and C, the abnormal time exists in sequence, then the time can be followed. The terminal application is closed in turn; of course, if the frequency of capturing the terminal application abnormality is different, the order of closing the terminal application that captures the abnormality may also be determined by the frequency.
如果捕获终端应用异常的时间先后相同,则结合捕获终端应用异常的频繁度不同确定关闭异常的终端应用的顺序;或者,结合终端应用添加到监控列表的先后顺序确定关闭异常的终端应用的顺序;或者,通过捕获终端应用异常的频繁度和终端应用添加到监控列表的先后顺序、确定关闭异常的终端应用的顺序;这些判断可以根据实际情况进行调整。
If the times of capturing the terminal application abnormalities are the same, the order of closing the abnormal terminal applications is determined in combination with the frequency of the abnormality of the capture terminal application; or, in combination with the order in which the terminal applications are added to the monitoring list, the order of closing the abnormal terminal applications is determined; Or, by capturing the frequency of abnormality of the terminal application and the sequence of adding the terminal application to the monitoring list, determining the order of closing the abnormal terminal application; these determinations may be adjusted according to actual conditions.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
本发明实施例通过对处于Active的终端应用进行异常捕获,实现对异常的终端应用的及时处理,简化了终端应用的异常处理流程,提高了对异常的终端应用处理的效率。
The embodiment of the present invention implements the abnormality capture of the terminal application in the active mode, implements the timely processing of the abnormal terminal application, simplifies the abnormal processing flow of the terminal application, and improves the efficiency of the abnormal terminal application processing.
Claims (11)
- 一种实现终端应用处理的方法,包括:A method for implementing terminal application processing, comprising:将处于激活状态Active的终端应用添加到预先建立的监控列表中;Adding the terminal application in the active state Active to the pre-established monitoring list;按照间隔周期对处于监控列表的终端应用进行异常捕获;Abnormal capture of the terminal application in the monitoring list according to the interval period;当捕获到终端应用异常时,终止异常的终端应用。When an abnormality of the terminal application is caught, the abnormal terminal application is terminated.
- 根据权利要求1所述的方法,还包括:对所述间隔周期按照预先设置的调整策略进行动态调整,其中,The method according to claim 1, further comprising: dynamically adjusting the interval period according to a preset adjustment policy, wherein当所述异常捕获的异常终端应用个数多于指定的第一阈值时,减少进行异常捕获的间隔周期;当所述异常捕获的异常终端应用个数少于指定的第二阈值时,增加进行异常捕获的间隔周期。When the number of abnormal terminal applications that are abnormally captured is greater than the specified first threshold, the interval period during which the abnormal capture is performed is reduced; when the number of abnormal terminal applications captured by the abnormality is less than the specified second threshold, the increase is performed. The interval period for exception capture.
- 根据权利要求1所述的方法,其中,所述将处于激活状态Active的终端应用添加到预先建立的监控列表中的步骤之前,还包括,通过外部指令确定是否对终端应用进行异常捕获和处理。The method of claim 1, wherein the step of adding the terminal application in the active state Active to the pre-established monitoring list further comprises determining, by an external command, whether the terminal application is abnormally captured and processed.
- 根据权利要求1~3任一项所述的方法,其中,在当捕获到终端应用异常时,终止异常的终端应用的步骤中,当捕获到异常的终端应用为两个或两个以上时,根据捕获终端应用异常的时间先后、和/或每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。The method according to any one of claims 1 to 3, wherein, in the step of terminating the abnormal terminal application when the terminal application is abnormal, when the terminal application that captures the abnormality is two or more, The abnormal terminal application is terminated according to the time sequence of capturing the terminal application abnormality, and/or the frequency of each terminal application that captures the abnormality, and/or the order in which the terminal application is added to the monitoring list.
- 根据权利要求4所述的方法,其中,当根据每个捕获到异常的终端应用的频繁度终止所述异常的终端应用时,该方法还包括:The method according to claim 4, wherein when the abnormal terminal application is terminated according to the frequency of each terminal application that captures an abnormality, the method further includes:累加每个终端应用的所有周期的异常捕获次数,获得相应的每个捕获到异常的终端应用的频繁度。The number of abnormal acquisitions of all cycles of each terminal application is accumulated, and the frequency of each terminal application that captures an abnormality is obtained.
- 一种实现终端应用处理的装置,包括:添加监控单元、异常捕获单元和异常处理单元;其中,An apparatus for implementing processing of a terminal application, comprising: adding a monitoring unit, an abnormality capturing unit, and an exception handling unit; wherein添加监控单元,设置为:将处于激活状态Active的终端应用添加到预先建立的监控列表中; Add a monitoring unit, set to: add the active application active terminal to the pre-established monitoring list;异常捕获单元,设置为:按照间隔周期对处于监控列表的终端应用进行异常捕获;The abnormality capturing unit is configured to: perform an abnormal capture on the terminal application in the monitoring list according to the interval period;异常处理单元,设置为:捕获到终端应用异常时,终止异常的终端应用。The exception handling unit is configured to: terminate the abnormal terminal application when the terminal application is abnormal.
- 根据权利要求6所述的装置,还包括动态调整单元,设置为:对所述间隔周期按照预先设置的调整策略进行动态调整;其中,The device according to claim 6, further comprising: a dynamic adjustment unit, configured to dynamically adjust the interval period according to a preset adjustment policy;当所述异常捕获的异常终端应用个数多于指定的第一阈值时,减少进行异常捕获的间隔周期;当所述异常捕获的异常终端应用个数少于指定的第二阈值时,增加进行异常捕获的间隔周期。When the number of abnormal terminal applications that are abnormally captured is greater than the specified first threshold, the interval period during which the abnormal capture is performed is reduced; when the number of abnormal terminal applications captured by the abnormality is less than the specified second threshold, the increase is performed. The interval period for exception capture.
- 根据权利要求6所述的装置,还包括外部指令单元,设置为:接收外部指令,以确定是否对终端应用进行异常捕获和处理。The apparatus of claim 6, further comprising an external command unit configured to: receive an external command to determine whether to perform an exception capture and processing of the terminal application.
- 根据权利要求6~8任一项所述的装置,其中,所述异常处理单元是设置为:当捕获到的异常的终端应用为两个或两个以上时,根据捕获终端应用异常的时间先后、和/或每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。The device according to any one of claims 6 to 8, wherein the exception processing unit is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of the abnormality of the capture terminal application And/or the frequency of each terminal application that captures an abnormality, and/or the order in which the terminal application is added to the monitoring list, terminates the abnormal terminal application.
- 根据权利要求6~8任一项所述的装置,其中,所述异常处理单元是设置为:当捕获到的异常的终端应用为两个或两个以上时,根据捕获终端应用异常的时间先后、和/或累加每个终端应用的所有周期的异常捕获次数,获得相应的每个捕获到异常的终端应用的频繁度、和/或终端应用添加到监控列表的先后顺序,终止异常的终端应用。The device according to any one of claims 6 to 8, wherein the exception processing unit is configured to: when the terminal application of the captured abnormality is two or more, according to the time sequence of the abnormality of the capture terminal application And/or accumulating the number of abnormal acquisitions of all cycles of each terminal application, obtaining the frequency of each terminal application that captures an abnormality, and/or the order in which the terminal application is added to the monitoring list, terminating the abnormal terminal application .
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-5.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410553060.6A CN105573854A (en) | 2014-10-17 | 2014-10-17 | Terminal application processing method and device |
CN201410553060.6 | 2014-10-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016058414A1 true WO2016058414A1 (en) | 2016-04-21 |
Family
ID=55746092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/083320 WO2016058414A1 (en) | 2014-10-17 | 2015-07-03 | Method and device for processing terminal application |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105573854A (en) |
WO (1) | WO2016058414A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107678911A (en) * | 2017-08-28 | 2018-02-09 | 平安科技(深圳)有限公司 | The monitoring method and device of anomalous event treatment effeciency |
CN108777679A (en) * | 2018-05-22 | 2018-11-09 | 深信服科技股份有限公司 | Flow access relation generation method, device and the readable storage medium storing program for executing of terminal |
CN110007968A (en) * | 2017-12-29 | 2019-07-12 | 广东欧珀移动通信有限公司 | Information processing method, device, computer equipment and computer readable storage medium |
CN110377341A (en) * | 2019-06-10 | 2019-10-25 | 北京字节跳动网络技术有限公司 | A kind of method, apparatus, medium and electronic equipment of the monitoring without response abnormality |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108255536A (en) * | 2017-04-27 | 2018-07-06 | 平安科技(深圳)有限公司 | Application control method and server based on functional switch |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050204034A1 (en) * | 2004-03-12 | 2005-09-15 | Betarbet Sandeep R. | Methods, systems, and products for monitoring multiple tasks to fulfill a request originating from a web browser |
CN101859275A (en) * | 2010-03-08 | 2010-10-13 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for monitoring application program |
CN102946468A (en) * | 2012-10-18 | 2013-02-27 | 广东欧珀移动通信有限公司 | Automatic mobile phone operating program abnormality alarming method and system |
CN103530193A (en) * | 2013-11-01 | 2014-01-22 | 北京网秦天下科技有限公司 | Method and device used for adjusting application process |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101739327A (en) * | 2008-11-07 | 2010-06-16 | 北大方正集团有限公司 | Method and system for monitoring and repairing service process |
CN102360328B (en) * | 2011-09-29 | 2014-06-04 | 用友软件股份有限公司 | Programmed monitoring device and programmed monitoring method |
-
2014
- 2014-10-17 CN CN201410553060.6A patent/CN105573854A/en active Pending
-
2015
- 2015-07-03 WO PCT/CN2015/083320 patent/WO2016058414A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050204034A1 (en) * | 2004-03-12 | 2005-09-15 | Betarbet Sandeep R. | Methods, systems, and products for monitoring multiple tasks to fulfill a request originating from a web browser |
CN101859275A (en) * | 2010-03-08 | 2010-10-13 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for monitoring application program |
CN102946468A (en) * | 2012-10-18 | 2013-02-27 | 广东欧珀移动通信有限公司 | Automatic mobile phone operating program abnormality alarming method and system |
CN103530193A (en) * | 2013-11-01 | 2014-01-22 | 北京网秦天下科技有限公司 | Method and device used for adjusting application process |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107678911A (en) * | 2017-08-28 | 2018-02-09 | 平安科技(深圳)有限公司 | The monitoring method and device of anomalous event treatment effeciency |
CN110007968A (en) * | 2017-12-29 | 2019-07-12 | 广东欧珀移动通信有限公司 | Information processing method, device, computer equipment and computer readable storage medium |
CN108777679A (en) * | 2018-05-22 | 2018-11-09 | 深信服科技股份有限公司 | Flow access relation generation method, device and the readable storage medium storing program for executing of terminal |
CN110377341A (en) * | 2019-06-10 | 2019-10-25 | 北京字节跳动网络技术有限公司 | A kind of method, apparatus, medium and electronic equipment of the monitoring without response abnormality |
Also Published As
Publication number | Publication date |
---|---|
CN105573854A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016058414A1 (en) | Method and device for processing terminal application | |
CN108255653B (en) | Product testing method and terminal thereof | |
US9626183B1 (en) | Device interrogation framework | |
WO2022151783A1 (en) | Processor parameter adjustment method, apparatus, electronic device, and storage medium | |
US11076135B2 (en) | Blockchain-based trustless date verifiable video capture | |
WO2015103984A1 (en) | Network access traffic control method and server | |
US9715532B1 (en) | Systems and methods for content object optimization | |
WO2016180100A1 (en) | Method and device for improving audio processing performance | |
US10225643B1 (en) | Secure audio acquisition system with limited frequency range for privacy | |
US20140298101A1 (en) | Distributed pressure testing system and method | |
US10386910B2 (en) | Data storage power management | |
WO2013066581A4 (en) | Network analysis device and method | |
WO2016184048A1 (en) | Method and device for frequency management for multi-core processor cpu | |
CN109615022B (en) | Model online configuration method and device | |
US9178860B2 (en) | Out-of-path, content-addressed writes with untrusted clients | |
US10750076B2 (en) | Network device, image processing method, and computer readable medium | |
WO2018177350A1 (en) | Method and apparatus for providing serial number, electronic device and readable storage medium | |
WO2020048243A1 (en) | Window adjustment method, window adjustment device and mobile terminal | |
CN106296735B (en) | Filter updating method and device in target tracking and intelligent terminal | |
US12106151B2 (en) | Dynamic client/server selection for machine learning execution based on current performance characteristics | |
CN109885384A (en) | Task concurrency optimization method, apparatus, computer equipment and storage medium | |
CN107506292B (en) | Automatic test method for random read time delay under multilevel non-uniform directory | |
WO2016165372A1 (en) | Method and device for controlling hot plug operation of cpu in mobile terminal | |
WO2019028359A1 (en) | System and method for sensor-driven automatic device interaction | |
US8737696B2 (en) | Human face recognition method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15850332 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15850332 Country of ref document: EP Kind code of ref document: A1 |