Application processing method, device and system

By judging the importance index and operating environment characteristics of the application, and protecting or closing applications on mobile smart terminals, the problem of short standby time of mobile smart terminals is solved, and efficient resource management and user experience are achieved.

CN112748957BActive Publication Date: 2024-12-06BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201911052624.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-31
Publication Date
2024-12-06
Estimated Expiration
2039-10-31

AI Technical Summary

Technical Problem

The standby time of mobile smart terminals is short, and existing solutions affect portability or user experience, and cannot effectively reduce resource consumption.

Method used

By judging the importance index of the application and the characteristics of the operating environment, protect or close the application when preset conditions are met to avoid unnecessary resource consumption.

Benefits of technology

It realizes effective management of applications, reduces the consumption of power and other resources, maintains user experience, and does not require hardware changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112748957B_ABST
    Figure CN112748957B_ABST
Patent Text Reader

Abstract

The present invention discloses an application processing method, device and system, and relates to the field of computer technology. A specific implementation of the method includes: when a preset trigger condition is met, for any currently running application: judging whether the importance index of the application complies with a preset first discrimination rule, and / or judging whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; when the importance index complies with the first discrimination rule, or the operating environment characteristics are consistent with the environmental state, protecting the application. This implementation can protect or shut down the application by judging the importance index and / or operating environment characteristics of the application in the electronic device, thereby reducing or avoiding unnecessary consumption of system resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an application processing method, device and system. Background Art

[0002] At present, mobile smart terminals consume a lot of power, resulting in a short standby time. The existing solutions are to use large-capacity batteries, force shut down certain functions when the battery is low, or reduce the screen brightness or the central processing unit frequency when the battery is low. The former solution will affect the portability and appearance of the terminal, and the latter two solutions will affect the normal use of users. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides an application processing method, device and system, which can protect or close the application by judging the importance index and / or operating environment characteristics of the application in the electronic device, thereby reducing or avoiding unnecessary consumption of electronic device resources.

[0004] To achieve the above objective, according to one aspect of the present invention, a method for processing an application is provided.

[0005] The application processing method of an embodiment of the present invention is used to protect or shut down at least one application currently running in an electronic device; the method includes: when a preset trigger condition is met, for any currently running application: determining whether the importance index of the application complies with a preset first judgment rule, and / or determining whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; when the importance index complies with the first judgment rule, or the operating environment characteristics are consistent with the environmental state, protecting the application.

[0006] Optionally, the importance index of any currently running application is determined according to the following steps: obtaining user behavior data within a preset first historical time interval and inputting the user behavior data into a pre-trained user classification model to obtain a user portrait containing at least one label representing the category to which the application belongs; determining an initial importance value of the application based on data associated with the application in the user behavior data and / or historical processing statistics of the application within the first historical time interval; when the application matches at least one label in the user portrait, using the matching label to increase the initial importance value to obtain the importance index of the application.

[0007] Optionally, the operating environment characteristics of any currently running application are operating environment characteristics under at least one preset dimension, and any dimension value of any dimension corresponds to an environmental state of the electronic device; and the operating environment characteristics of the application under any dimension are determined according to the following steps: obtaining the operating time of each dimension value of the application in the dimension within a preset second historical time interval and determining the proportion of the operating time of each dimension value; when there is a dimension value whose operating time proportion is greater than a preset proportion, the dimension value is used as the operating environment characteristic of the application under the dimension.

[0008] Optionally, the method further includes: before judging the importance index and operating environment characteristics of any currently running application: detecting whether the application is in a whitelist preset by the user, and / or detecting whether the application is running in the foreground; when the application is in the whitelist or the application is running in the foreground, protecting the application.

[0009] Optionally, the method further includes: when the importance index of any currently running application does not meet the first judgment rule and the operating environment characteristics of the application are inconsistent with the current environmental state of the electronic device, performing at least one of the following judgments: judging whether the importance index of the application meets the preset second judgment rule, judging whether the application is started automatically, judging whether the unused time of the application meets the preset third judgment rule, judging whether the application is in the user's preset blacklist; when any judgment result is yes, closing the application.

[0010] Optionally, the currently running applications include: the application currently running in the foreground and the application currently running in the background; the trigger conditions include: the remaining power of the electronic device is less than a preset value, the display module of the electronic device is turned off, or the display module of the electronic device is turned off and continues for a preset first time period; the first judgment rule includes: the importance index of the application is greater than a preset first threshold; the second judgment rule includes: the importance index of the application is less than a preset second threshold; wherein the second threshold is less than the first threshold; the third judgment rule includes: the unused time of the application is greater than the preset second time period; the dimensions include a time dimension and a motion state dimension, the dimension values ​​of the time dimension include daytime and nighttime, and the dimension values ​​of the motion state dimension include stationary, low-speed motion, and high-speed motion; user behavior data includes: the time data of the user using the application and / or the application data in the whitelist; the historical processing statistics of the application include: the number of times the application is protected, the number of times the application is closed, and / or the number of times the application is started automatically.

[0011] To achieve the above objective, according to another aspect of the present invention, an application processing device is provided.

[0012] The application processing device of an embodiment of the present invention is used to protect or shut down at least one application currently running in an electronic device; the device may include a judgment module, which is used to: when a preset trigger condition is met, for any currently running application: judge whether the importance index of the application complies with a preset first judgment rule, and / or, judge whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; a processing module, which is used to: protect the application when the importance index complies with the first judgment rule, or the operating environment characteristics are consistent with the environmental state.

[0013] To achieve the above objective, according to another aspect of the present invention, an application processing system is provided.

[0014] The application processing system of an embodiment of the present invention is used to protect or shut down at least one application currently running in an electronic device; the system includes an execution unit; wherein the execution unit is used to: when a preset trigger condition is met, for any currently running application: determine whether the importance index of the application complies with a preset first judgment rule, and / or, determine whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; when the importance index complies with the first judgment rule, or the operating environment characteristics are consistent with the environmental state, protect the application.

[0015] Optionally, the operating environment characteristics of any currently running application are operating environment characteristics under at least one preset dimension, and any dimension value of any dimension corresponds to an environmental state of the electronic device; and the system further includes: a data collection unit, a historical data storage unit, a scoring unit and a feature determination unit; wherein the data collection unit can be used to: obtain user behavior data of the most recent historical collection period, historical processing statistics of the application, and the operating time data of each dimension value of the application in each dimension and send them to the historical data storage unit; the historical data storage unit can be used to: store user behavior data of the historical period, historical processing statistics of the application, and the operating time data, and use the stored user behavior data to train a user classification model; the scoring unit can be used to: obtain user behavior data within a preset first historical time interval from the historical data storage unit and input the user behavior data into a pre-trained user classification model to obtain a user portrait containing at least one label representing the category to which the application belongs; based on the data associated with any application in the user behavior data and / or The historical processing statistical data of the application within the first historical time interval determines the initial importance value of the application; when the application matches at least one tag in the user portrait, the initial importance value is increased by using the matched tag to obtain the importance index of the application; wherein, the user behavior data within the first historical time interval includes the user behavior data of the most recent historical collection period acquired by the data collection unit, and the historical processing statistical data of the application within the first historical time interval includes the historical processing statistical data of the application within the most recent historical collection period acquired by the data collection unit; the feature determination unit can be used to: obtain the running time data of each dimension value of any application in any dimension within a preset second historical time interval from the historical data storage unit and determine the running time proportion of each dimension value; when there is a dimension value whose running time proportion is greater than the preset proportion, the dimension value is used as the running environment feature of the application under the dimension; wherein, the running time data of the application within the second historical time interval includes the running time data of the application in the most recent historical collection period acquired by the data collection unit.

[0016] Optionally, the system may further include: a state detection unit for acquiring the current environmental state of the electronic device and sending it to the execution unit, and a user setting acquisition unit for acquiring the whitelist and blacklist preset by the user and sending them to the execution unit; and the execution unit may be further used to: before judging the importance index and operating environment characteristics of any currently running application: detect whether the application is in the whitelist, and / or, detect whether the application is running in the foreground; when the application is in the whitelist or the application is running in the foreground, protect the application; when the importance index of any currently running application does not meet the first judgment rule and the operating environment characteristics of the application are inconsistent with the current environmental state of the electronic device, perform at least one of the following judgments: determine whether the importance index of the application meets the preset second judgment rule, determine whether the application is automatically started, determine whether the unused time of the application meets the preset third judgment rule, and determine whether the application is in the blacklist; when any judgment result is yes, close the application.

[0017] Optionally, the currently running applications include: the application currently running in the foreground and the application currently running in the background; the trigger conditions include: the remaining power of the electronic device is less than a preset value, the display module of the electronic device is turned off, or the display module of the electronic device is turned off and continues for a preset first time period; the first judgment rule includes: the importance index of the application is greater than a preset first threshold; the second judgment rule includes: the importance index of the application is less than a preset second threshold; wherein the second threshold is less than the first threshold; the third judgment rule includes: the unused time of the application is greater than the preset second time period; the dimensions include a time dimension and a motion state dimension, the dimension values ​​of the time dimension include daytime and nighttime, and the dimension values ​​of the motion state dimension include stationary, low-speed motion, and high-speed motion; user behavior data includes: the time data of the user using the application and / or the application data in the whitelist; the historical processing statistics of the application include: the number of times the application is protected, the number of times the application is closed, and / or the number of times the application is started automatically.

[0018] To achieve the above objective, according to another aspect of the present invention, an electronic device is provided.

[0019] An electronic device of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the application processing method provided by the present invention.

[0020] To achieve the above objective, according to yet another aspect of the present invention, a computer-readable storage medium is provided.

[0021] A computer-readable storage medium of the present invention stores a computer program, which implements the application processing method provided by the present invention when the program is executed by a processor.

[0022] According to the technical solution of the present invention, one embodiment of the above invention has the following advantages or beneficial effects:

[0023] First, when the trigger condition is met, for any application currently running on the electronic device, determine whether its importance index and / or operating environment characteristics meet the preset protection rules. When it meets the protection rules (for example, the importance index of the application is greater than the preset first threshold, and the operating environment characteristics of the application are consistent with the current environmental state of the electronic device), protect the application; when it does not meet the rules, determine whether the importance index, self-startup, unused time, and matching with the user's preset blacklist of the application meet the preset shutdown rules. When it meets the shutdown rules (for example, the importance index of the application is less than the preset second threshold, the application is self-started, the unused time of the application is greater than the preset second time, and the application is in the blacklist), close the application. In addition, before determining the importance index and operating environment characteristics, if it is determined that the application is in the user's preset whitelist or the application is running in the foreground, the application is protected. Through the above settings, necessary applications and unnecessary applications can be identified from multiple angles and then automatically protected and closed, thereby achieving effective management of applications and avoiding unnecessary consumption of electronic device resources (such as power) without changing the hardware and affecting the user experience.

[0024] Second, in an embodiment of the present invention, various relevant data (such as user behavior data, historical processing statistics data of applications, and running time data, etc.) in electronic devices are periodically collected and sent to a historical data storage unit set at a remote location for storage, and the stored data is used to train a user classification model. In order to determine the importance index of an application, first, the user behavior data, historical processing statistics data of applications, and running time data of a preset time interval including the most recently collected data can be obtained from the historical data storage unit. On the one hand, the user behavior data is input into the user classification model to obtain a user portrait containing at least one label representing the application category, and the initial importance value of the application is calculated based on the user behavior data and the historical processing statistics data of the application. The above initial importance value is adjusted using the label in the user portrait to obtain the importance index of the application. On the other hand, the running time data of the application in each dimension value of the preset dimension is counted to obtain the operating environment characteristics of the application. In this way, the importance index and operating environment characteristics of the application are accurately calculated through big data technology, which is beneficial to the subsequent application processing steps.

[0025] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0027] Figure 1 It is a schematic diagram of the main steps of the application processing method in an embodiment of the present invention;

[0028] Figure 2 is a schematic diagram of specific execution steps of the application processing method in an embodiment of the present invention;

[0029] Figure 3 is a schematic diagram of components of an application processing device in an embodiment of the present invention;

[0030] Figure 4 is a schematic diagram of the main parts of the application processing system in an embodiment of the present invention;

[0031] Figure 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;

[0032] Figure 6 It is a schematic diagram of the structure of an electronic device used to implement the application processing method in the embodiment of the present invention. DETAILED DESCRIPTION

[0033] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0034] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.

[0035] Figure 1 is a schematic diagram of the main steps of the application processing method in the embodiment of the present invention, and the above method is used to protect or shut down at least one application currently running in the electronic device. In the embodiment of the present invention, the electronic device can be a mobile terminal (such as a mobile phone), a tablet computer, a laptop computer, a desktop computer, etc. The above protection refers to maintaining the running state of the application during this processing, and the above shutting down refers to killing the application (i.e. shutting down the related processes of the application) and prohibiting its subsequent self-starting.

[0036] like Figure 1 As shown, the application processing method of the embodiment of the present invention can be specifically performed according to the following steps:

[0037] Step S101: When the preset trigger condition is met, for any currently running application: determine whether the importance index of the application complies with the preset first judgment rule, and / or determine whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device.

[0038] In this step, the process of processing the application can be executed when it is determined that the preset trigger condition is met. The above trigger conditions can be set according to actual needs, for example, they can be set to: the remaining power of the electronic device is less than the preset value, the display module of the electronic device is turned off (for example, the display screen is off, and the application processing process will not affect the user experience at this time), the display module of the electronic device is turned off and continues for a preset first time period, or the display module of the electronic device is turned off and continues for a first time period under the premise that the remaining power of the electronic device is less than the preset value. The application program targeted by the processing flow can be the application program currently running in the foreground and the application program currently running in the background. It can be understood that the application program running in the foreground is the application program currently being used by the user, and the application program running in the background is not the application program currently being used by the user. Some applications running in the background are not started by the user but are started automatically. These programs can consume system resources without being noticed, and they can be identified and closed by the method of the present invention.

[0039] In an embodiment of the present invention, the importance index is used to characterize the importance of an application to an electronic device operating system and a user. Generally, the longer a user uses an application, the higher the importance index of the application. The operating environment feature refers to the environmental state of the electronic device matched by the application, which generally corresponds to at least one dimension, and each dimension value of each dimension corresponds to an environmental state of the electronic device. For example, the above-mentioned dimension can be a time dimension or a motion state dimension, the dimension value of the time dimension can be daytime and nighttime, and the dimension value of the motion state dimension can be static, slow motion, and high-speed motion. If a user uses an application for a long time during the daytime and slow motion, the operating environment feature of the application in the time dimension can be daytime, and the operating environment feature in the motion state dimension can be slow motion. It can be understood that the above-mentioned dimensions and their dimension values ​​can be selected according to actual needs, and the present invention is not limited to this. For example, the dimension value of the time dimension can be selected as morning, afternoon, and nighttime, and the dimension value of the motion state dimension can be selected as static and motion.

[0040] It can be understood that the importance index and operating environment characteristics of the application are predetermined. In an embodiment of the present invention, the importance index is determined according to the following steps. First, the user behavior data within the preset first historical time interval is obtained. In practical applications, in order to realize the dynamic update of the application processing strategy, the data in the electronic device can be periodically collected according to a collection cycle of a fixed duration (for example, 1 day), and these data can be user behavior data, historical processing statistics of the application, and the running time data of each dimension value of the application in each dimension. Among them, the user behavior data can be flexibly set according to the needs, for example, it can be the time data of the user using the application (the time data can be a specific time, such as the use time of application A in a collection cycle is 1 hour, the use time of application B is 2 hours, and the time data can also be the use time ranking data of the application) and / or the application data in the user preset whitelist or blacklist (for example, the application identifier in the whitelist or blacklist), or it can be the changes in the application installed or uninstalled by the user (such as which applications are installed and which applications are uninstalled in a collection cycle) and the changes in the application in the user's whitelist or blacklist. The above historical processing statistical data may include the number of times the application is protected, the number of times the application is closed, and the number of times the application is automatically started within a certain time interval. The above runtime data may consist of the runtime of each dimension value of the application in each dimension. For example, in a collection cycle, the runtime of an application in "daytime" is 1 hour, the runtime in "nighttime" is 2 hours, the runtime in "stationary" is 1.5 hours, and the runtime in "motion" is 1.5 hours. It is understandable that each time data is collected, the current application list of the electronic device and the user identification may also be collected.

[0041] In a specific application, the first historical time interval is a continuous time interval of a fixed length, and its length is generally greater than the collection period. For example, when the collection period is 1 day, the first time interval can be 1 week. In addition, the first historical time interval includes the collection period closest to the current moment, that is, the first historical time interval is a historical time period close to the current moment, and the data therein is data with a high correlation with the current situation. As a preferred solution, after obtaining the user behavior data within the first historical time interval, it can be input into a pre-trained user classification model to obtain a user portrait with at least one label. Among them, the user classification model can be implemented based on existing classification algorithms such as naive Bayes and random forests, and its training data is user behavior data marked with labels, and each label can be an application category from a perspective. For example, from a functional perspective, applications can be divided into video, game, shopping, etc. From the perspective of the provider, applications can be divided into r, s, t, etc. (r, s, t are application provider identifiers), then video, game, shopping, r, s, t can all be used as labels. In addition, the pre-trained user classification model can be continuously optimized using subsequent continuously updated training data.

[0042] After obtaining the user portrait, the initial importance value of the application can be determined using the data associated with any application in the user behavior data in the first historical time interval and / or the historical processing statistics of the application in the first historical time interval. It can be understood that the initial importance value of the application increases with the increase in user usage time, increases with the increase in the number of times the application is protected, decreases with the increase in the number of times the application is closed, and decreases with the increase in the number of times the application is started automatically. If the application is in the whitelist, its initial importance value increases, and if the application is in the blacklist, its initial importance value decreases. For example, the initial importance value can be calculated using the following formula:

[0043] I=aT+bP+cL+dM+eN

[0044] Among them, I represents the initial importance value of an application, T is the length of time the user uses the application, P can be zero or one, zero means that the application is not in the whitelist, and one means that the application is in the whitelist; L represents the number of times the application is protected, M represents the number of times the application is closed, and N represents the number of times the application is started automatically; a, b, c, d, and e are all fixed coefficients, where a, b, and c are positive numbers, and d and e are negative numbers.

[0045] It can be understood that the above formula is only a certain calculation method of the initial importance value, and does not impose any restrictions on the calculation method of the initial importance value. After obtaining the initial importance value of any application, determine whether the application matches the label of the user portrait (that is, determine whether the application belongs to the application category represented by the label). If there is a matching label, the matching label is used to increase the initial importance value to obtain the importance index of the application. In practical applications, the initial importance value can be increased according to the specific circumstances of the matching label, or it can be increased according to the number of matching labels. For example, when the number of matching labels is 1, the initial importance value is increased by 10%, and when the number of matching labels is 2, the initial importance value is increased by 20%... It can be understood that the method of increasing the initial importance value in the above example is only an example. In addition, the steps of obtaining the user portrait and increasing the initial importance value using the label are not necessary. When this step is not performed, the initial importance value is the importance index.

[0046] In an embodiment of the present invention, the operating environment characteristics of the application are determined by the following steps: first, the running time of each dimension value of the application in the dimension within the preset second historical time interval is obtained. Among them, the above-mentioned first historical time interval is a continuous time interval of a fixed time length, and its length can be greater than the collection period. For example, when the collection period is 1 day, the second time interval can be 1 week. In addition, the second historical time interval contains the collection period closest to the current moment, that is, the second historical time interval is a historical time period close to the current moment, and the data in it is data with a high correlation with the current situation. The second historical time interval and the first historical time interval can be the same time interval or different time intervals. Thereafter, the running time ratio of each dimension value is determined. Specifically, in an embodiment of the present invention, the running time ratio of a dimension value of a dimension refers to the ratio of the running time of the application in the dimension value to the total running time of all dimension values ​​of the application in the dimension. For example, the dimension values ​​of the time dimension include "daytime" and "nighttime", and the running time of a certain application in "daytime" is 1 hour, and the running time in "nighttime" is 2 hours, then the running time ratio of "daytime" is 1 / 3, and the running time ratio of "nighttime" is 2 / 3. Afterwards, if there is a dimension value whose running time ratio is greater than a preset ratio, the dimension value is used as the running environment feature of the application under the dimension.

[0047] Through the above steps, the importance index and operating environment characteristics of any application in the electronic device can be determined. It can be understood that the importance index will be continuously updated with the update of data in the first historical time interval, and the operating environment characteristics will be continuously updated with the update of data in the second historical time interval. The importance index and operating environment characteristics used in step S101 are all the latest data.

[0048] In step S101, after obtaining the importance index and operating environment characteristics of the application, it can be determined whether the importance index meets the first discrimination rule and whether the operating environment characteristics are consistent with the current environmental state of the electronic device (consistency means that the operating environment characteristics of each dimension are consistent with the environmental state of the electronic device). Specifically, the first discrimination rule can be set according to actual needs, for example, it can be set to: the importance index is greater than a preset first threshold, and the current environmental state of the electronic device can be obtained through various devices (such as sensors) installed in the electronic device, for example, a photosensitive sensor or a time module is used to determine whether the current environment is daytime or nighttime, and a motion sensor is used to determine whether the current state is moving or stationary. Afterwards, if it is determined that the importance index of the application meets the first discrimination rule, or the operating environment characteristics of the application are consistent with the current environmental state of the electronic device, the application is protected.

[0049] Preferably, in an embodiment of the present invention, before judging the importance index and operating environment characteristics of any currently running application, it is first possible to detect whether the application is in the whitelist or whether the application is running in the foreground. If the application is in the whitelist or the application is running in the foreground, the application is protected. If the importance index of any currently running application does not meet the first judgment rule and the operating environment characteristics of the application are inconsistent with the current environmental state of the electronic device, at least one of the following judgments is performed: judging whether the importance index of the application meets the preset second judgment rule, judging whether the application is automatically started, judging whether the unused time of the application meets the preset third judgment rule, judging whether the application is in the user's preset blacklist, and when any of the judgment results is yes, the application is closed. Among them, the second judgment rule can be: the importance index of the application is less than the preset second threshold value, generally, the second threshold value is less than the above-mentioned first threshold value. The third judgment rule can be: the unused time of the application is greater than the preset second time length. It can be understood that the execution order of the above judgment actions based on whitelist, foreground operation, operating environment characteristics, first judgment rule, second judgment rule, automatic startup, third judgment rule and blacklist can be flexibly adjusted according to needs, and the present invention is not limited to this.

[0050] Through the above steps, the big data technology can be used to accurately identify necessary applications and non-essential applications, and the former can be protected and the latter can be closed, thereby saving system resource consumption including power. It can be understood that the method of the present invention is not only used to save power, but also to save a variety of electronic equipment resources such as central processing units, memory, and disks.

[0051] Figure 2Schematic diagram of specific execution steps of the application processing method in the embodiment of the present invention. Figure 2 As shown, in an embodiment of the present invention, the following application processing flow can be executed. When the trigger condition is met, for any currently running application, first determine whether it is in the whitelist: if so, protect the application, otherwise further determine whether the application is running in the foreground. If the application is running in the foreground, protect it, otherwise determine whether its operating environment characteristics are consistent with the current environmental state of the electronic device: if so, protect it, otherwise determine whether its importance index is greater than the first threshold. If so, protect it, otherwise determine whether the importance index is less than the second threshold. When the importance index of the application is less than the second threshold, close it; when the importance index of the application is not less than the second threshold, determine whether it is automatically started: if so, close it; otherwise further determine whether its unused time is greater than the second time. When the unused time of the application is greater than the second time, close it; when the unused time of the application is not greater than the second time, further determine whether it is in the blacklist: if so, close it; otherwise, exit the process (equivalent to protecting the application). It should be noted that Figure 2 The steps shown are only preferred and do not limit the application processing flow.

[0052] In the technical solution of the embodiment of the present invention, when the trigger condition is met, for any application currently running on the electronic device, it is determined whether its importance index and / or operating environment characteristics meet the preset protection rules. When it meets the protection rules (for example, the importance index of the application is greater than the preset first threshold, and the operating environment characteristics of the application are consistent with the current environmental state of the electronic device), the application is protected; when it does not meet the rules, it is determined whether the importance index, self-starting situation, unused time, and matching situation with the user's preset blacklist meet the preset closing rules. When it meets the closing rules (for example, the importance index of the application is less than the preset second threshold, the application is self-starting, the unused time of the application is greater than the preset second time, and the application is in the blacklist), the application is closed. In addition, before judging the importance index and the operating environment characteristics, if it is determined that the application is in the user's preset whitelist or the application is running in the foreground, the application is protected. Through the above settings, necessary applications and unnecessary applications can be identified from multiple angles and then automatically protected and closed, thereby realizing effective management of applications and avoiding unnecessary consumption of electronic equipment resources (such as power) without changing the hardware and affecting the user experience. In addition, in an embodiment of the present invention, various relevant data (such as user behavior data, historical processing statistics data of applications, and running time data, etc.) in the electronic device are periodically collected and sent to a historical data storage unit set at a remote location for storage, and the stored data is used to train the user classification model. In order to determine the importance index of the application, the user behavior data, historical processing statistics data of the application, and running time data of the preset time interval including the most recently collected data can be first obtained from the historical data storage unit. On the one hand, the user behavior data is input into the user classification model to obtain a user portrait containing at least one label representing the application category, and the initial importance value of the application is calculated based on the user behavior data and the historical processing statistics data of the application. The above initial importance value is adjusted using the label in the user portrait to obtain the importance index of the application. On the other hand, the running time data of the application in each dimension value of the preset dimension is counted to obtain the operating environment characteristics of the application. In this way, the importance index and operating environment characteristics of the application are accurately calculated through big data technology, which is beneficial to the subsequent application processing steps.

[0053] It should be noted that, for the convenience of description, the aforementioned method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described action sequence, and some steps can actually be performed in other sequences or simultaneously. In addition, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily necessary to implement the present invention.

[0054] In order to better implement the above-mentioned solution of the embodiment of the present invention, relevant devices for implementing the above-mentioned solution are also provided below.

[0055] See also Figure 3 As shown, the application processing device 300 provided in the embodiment of the present invention can be used to protect or shut down at least one application currently running in an electronic device; the device 300 includes a judgment module 301 and a processing module 302.

[0056] Among them, the judgment module 301 can be used to: when the preset trigger condition is met, for any currently running application: judge whether the importance index of the application complies with the preset first judgment rule, and / or, judge whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; the processing module 302 can be used to: protect the application when the importance index complies with the first judgment rule, or the operating environment characteristics are consistent with the environmental state.

[0057] In an embodiment of the present invention, the device 300 may further include an importance index calculation module, which is used to: obtain user behavior data within a preset first historical time interval and input the user behavior data into a pre-trained user classification model to obtain a user portrait containing at least one label representing the category to which the application belongs; determine an initial importance value of the application based on data associated with the application in the user behavior data and / or historical processing statistics of the application within the first historical time interval; when the application matches at least one label in the user portrait, use the matching label to increase the initial importance value to obtain the importance index of the application.

[0058] In a specific application, the operating environment characteristics of any currently running application are operating environment characteristics under at least one preset dimension, and any dimension value of any dimension corresponds to an environmental state that the electronic device is in. The device 300 may further include an operating environment characteristic determination module, which is used to: obtain the operating time of each dimension value of the application in the dimension within a preset second historical time interval and determine the operating time proportion of each dimension value; when there is a dimension value whose operating time proportion is greater than the preset proportion, the dimension value is used as the operating environment characteristic of the application under the dimension.

[0059] In actual application scenarios, the judgment module 301 can be further used to: before judging the importance index and operating environment characteristics of any currently running application: detect whether the application is in the whitelist preset by the user, and / or detect whether the application is running in the foreground. The processing module 302 can be further used to: protect the application when the application is in the whitelist or the application is running in the foreground.

[0060] As a preferred solution, the judgment module 301 can be further used to: when the importance index of any currently running application does not meet the first judgment rule and the operating environment characteristics of the application are inconsistent with the current environmental state of the electronic device, perform at least one of the following judgments: judging whether the importance index of the application meets the preset second judgment rule, judging whether the application is automatically started, judging whether the unused time of the application meets the preset third judgment rule, and judging whether the application is in the user's preset blacklist. The processing module 302 can be further used to: when any judgment result is yes, close the application.

[0061] In addition, in an embodiment of the present invention, the currently running application includes: the application currently running in the foreground and the application currently running in the background; the trigger conditions include: the remaining power of the electronic device is less than a preset value, the display module of the electronic device is turned off, or the display module of the electronic device is turned off and continues for a preset first time period; the first judgment rule includes: the importance index of the application is greater than a preset first threshold; the second judgment rule includes: the importance index of the application is less than a preset second threshold; wherein the second threshold is less than the first threshold; the third judgment rule includes: the unused time of the application is greater than the preset second time period; the dimensions include a time dimension and a motion state dimension, the dimension values ​​of the time dimension include daytime and nighttime, and the dimension values ​​of the motion state dimension include stationary, low-speed motion, and high-speed motion; user behavior data includes: the time data of the user using the application and / or the application data in the whitelist; the historical processing statistics of the application include: the number of times the application is protected, the number of times the application is closed, and / or the number of times the application is started automatically.

[0062] In the technical solution of the embodiment of the present invention, when the trigger condition is met, for any application currently running on the electronic device, it is determined whether its importance index and / or operating environment characteristics meet the preset protection rules. When it meets the protection rules (for example, the importance index of the application is greater than the preset first threshold, and the operating environment characteristics of the application are consistent with the current environmental state of the electronic device), the application is protected; when it does not meet the rules, it is determined whether the importance index, self-starting situation, unused time, and matching situation with the user's preset blacklist meet the preset closing rules. When it meets the closing rules (for example, the importance index of the application is less than the preset second threshold, the application is self-starting, the unused time of the application is greater than the preset second time, and the application is in the blacklist), the application is closed. In addition, before judging the importance index and the operating environment characteristics, if it is determined that the application is in the user's preset whitelist or the application is running in the foreground, the application is protected. Through the above settings, necessary applications and unnecessary applications can be identified from multiple angles and then automatically protected and closed, thereby realizing effective management of applications and avoiding unnecessary consumption of electronic equipment resources (such as power) without changing the hardware and affecting the user experience. In addition, in an embodiment of the present invention, various relevant data (such as user behavior data, historical processing statistics data of applications, and running time data, etc.) in the electronic device are periodically collected and sent to a historical data storage unit set at a remote location for storage, and the stored data is used to train the user classification model. In order to determine the importance index of the application, the user behavior data, historical processing statistics data of the application, and running time data of the preset time interval including the most recently collected data can be first obtained from the historical data storage unit. On the one hand, the user behavior data is input into the user classification model to obtain a user portrait containing at least one label representing the application category, and the initial importance value of the application is calculated based on the user behavior data and the historical processing statistics data of the application. The above initial importance value is adjusted using the label in the user portrait to obtain the importance index of the application. On the other hand, the running time data of the application in each dimension value of the preset dimension is counted to obtain the operating environment characteristics of the application. In this way, the importance index and operating environment characteristics of the application are accurately calculated through big data technology, which is beneficial to the subsequent application processing steps.

[0063] Figure 4It is a schematic diagram of the main part of the application processing system in an embodiment of the present invention. The system can be used to protect or shut down at least one application currently running in an electronic device, and includes an execution unit set locally in the electronic device. Specifically, the execution unit can be used to: when a preset trigger condition is met, for any currently running application: determine whether the importance index of the application meets the preset first discrimination rule, and / or determine whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; when the importance index meets the first discrimination rule, or the operating environment characteristics are consistent with the environmental state, protect the application.

[0064] The above trigger conditions can be set according to actual needs, for example, they can be set as follows: the remaining power of the electronic device is less than a preset value, the display module of the electronic device is turned off (for example, the display screen is off), the display module of the electronic device is turned off and continues for a preset first time, or the display module of the electronic device is turned off and continues for a first time under the premise that the remaining power of the electronic device is less than a preset value. The application program targeted by the processing flow can be the application program currently running in the foreground and the application program currently running in the background.

[0065] In an embodiment of the present invention, the operating environment characteristics of any currently running application are operating environment characteristics under at least one preset dimension, and any dimension value of any dimension corresponds to an environmental state of the electronic device. The system may further include: a data acquisition unit and a historical data storage unit, a scoring unit, and a feature determination unit set locally in the electronic device. The historical data storage unit, the scoring unit, and the feature determination unit may be set locally in the electronic device or remotely.

[0066] As a preferred solution, the data collection unit can be used to obtain the user behavior data of the most recent historical collection period, the historical processing statistics of the application, and the running time data of each dimension value of the application in each dimension and send them to the historical data storage unit. The historical data storage unit can be used to store the user behavior data of the historical period, the historical processing statistics of the application, and the running time data, and use the stored user behavior data to train the user classification model. The collection period, user behavior data, historical processing statistics, running time data, and user classification model have been explained above and will not be repeated here.

[0067] The scoring unit can be used to: obtain user behavior data within a preset first historical time interval from a historical data storage unit and input the user behavior data into a pre-trained user classification model to obtain a user portrait containing at least one label representing the category to which the application belongs; determine an initial importance value of the application based on data associated with any application in the user behavior data and / or historical processing statistical data of the application within the first historical time interval; when the application matches at least one label in the user portrait, increase the initial importance value using the matching label to obtain an importance index of the application; wherein, the user behavior data within the first historical time interval includes the user behavior data of the most recent historical collection period obtained by the data collection unit, and the historical processing statistical data of the application within the first historical time interval includes the historical processing statistical data of the application in the most recent historical collection period obtained by the data collection unit.

[0068] The feature determination unit can be used to: obtain the running time data of each dimension value of any application in any dimension within a preset second historical time interval from the historical data storage unit and determine the running time ratio of each dimension value; when there is a dimension value whose running time ratio is greater than a preset ratio, use the dimension value as the running environment feature of the application under the dimension; wherein the running time data of the application in the second historical time interval includes the running time data of the application in the most recent historical collection cycle obtained by the data collection unit. In practical applications, the importance index calculated by the scoring unit and the running environment feature determined by the feature determination unit can be regularly sent to the execution unit via the update unit locally set in the electronic device.

[0069] Preferably, in an embodiment of the present invention, the system may further include: a state detection unit for obtaining the current environmental state of the electronic device and sending it to the execution unit, and a user setting acquisition unit for obtaining the whitelist and blacklist preset by the user and sending them to the execution unit. It can be understood that the state detection unit can obtain the current environmental state of the electronic device through various sensors installed in the electronic device. The execution unit can be further used to: before judging the importance index and operating environment characteristics of any currently running application: detect whether the application is in the whitelist, and / or, detect whether the application is running in the foreground; when the application is in the whitelist or the application is running in the foreground, protect the application; when the importance index of any currently running application does not meet the first judgment rule and the operating environment characteristics of the application are inconsistent with the current environmental state of the electronic device, perform at least one of the following judgments: judge whether the importance index of the application meets the preset second judgment rule, judge whether the application is automatically started, judge whether the unused time of the application meets the preset third judgment rule, and judge whether the application is in the blacklist; when any judgment result is yes, close the application.

[0070] In addition, in an embodiment of the present invention, the currently running application includes: the application currently running in the foreground and the application currently running in the background; the trigger conditions include: the remaining power of the electronic device is less than a preset value, the display module of the electronic device is turned off, or the display module of the electronic device is turned off and continues for a preset first time period; the first judgment rule includes: the importance index of the application is greater than a preset first threshold; the second judgment rule includes: the importance index of the application is less than a preset second threshold; wherein the second threshold is less than the first threshold; the third judgment rule includes: the unused time of the application is greater than the preset second time period; the dimensions include a time dimension and a motion state dimension, the dimension values ​​of the time dimension include daytime and nighttime, and the dimension values ​​of the motion state dimension include stationary, low-speed motion, and high-speed motion; user behavior data includes: the time data of the user using the application and / or the application data in the whitelist; the historical processing statistics of the application include: the number of times the application is protected, the number of times the application is closed, and / or the number of times the application is started automatically.

[0071] Through the above settings, the application processing system comprehensively considers the user's personalized settings (i.e., blacklist and whitelist), the application importance index and operating environment characteristics calculated using big data, and the real-time detection of the current environmental status of the electronic device, providing perfect support for the application processing strategy, thereby saving system resource consumption including power. It can be understood that the method of the present invention is not only used to save power, but also to save multiple electronic device resources such as central processing unit, memory, disk, etc.

[0072] Figure 5 An exemplary system architecture 500 is shown to which the application processing method or application processing apparatus according to the embodiment of the present invention can be applied.

[0073] like Figure 5 As shown, the system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505 (this architecture is only an example, and the components included in the specific architecture may be adjusted according to the specific application). The network 504 is used to provide a medium for a communication link between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0074] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various client applications can be installed on terminal devices 501, 502, 503, such as an application importance index calculation application (only an example).

[0075] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0076] The server 505 may be a server that provides various services, such as a computing server that provides support for importance index calculation applications operated by users using the terminal devices 501, 502, and 503 (only as an example). The computing server may process the received importance index calculation request and feed back the calculation result (such as the importance index of the application program - only as an example) to the terminal devices 501, 502, and 503.

[0077] It should be noted that the application processing method provided in the embodiment of the present invention is generally executed by the terminal devices 501 , 502 , 503 , and accordingly, the application processing device is generally arranged in the terminal devices 501 , 502 , 503 .

[0078] It should be understood that Figure 5The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0079] The present invention also provides an electronic device. The electronic device of an embodiment of the present invention comprises: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the application processing method provided by the present invention.

[0080] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of an electronic device suitable for implementing an embodiment of the present invention. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0081] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0082] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.

[0083] In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the main step diagram. In the above embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit 601, the above functions defined in the system of the present invention are executed.

[0084] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0085] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0086] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a judgment module and a processing module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the judgment module may also be described as "a module that provides a judgment result for the importance index and / or operating environment characteristics to the processing module".

[0087] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the steps executed by the device include: when the preset trigger condition is met, for any currently running application: determine whether the importance index of the application complies with the preset first judgment rule, and / or determine whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; when the importance index complies with the first judgment rule, or the operating environment characteristics are consistent with the environmental state, protect the application.

[0088] In the technical solution of the embodiment of the present invention, when the trigger condition is met, for any application currently running on the electronic device, it is determined whether its importance index and / or operating environment characteristics meet the preset protection rules. When it meets the protection rules (for example, the importance index of the application is greater than the preset first threshold, and the operating environment characteristics of the application are consistent with the current environmental state of the electronic device), the application is protected; when it does not meet the rules, it is determined whether the importance index, self-starting situation, unused time, and matching situation with the user's preset blacklist meet the preset closing rules. When it meets the closing rules (for example, the importance index of the application is less than the preset second threshold, the application is self-starting, the unused time of the application is greater than the preset second time, and the application is in the blacklist), the application is closed. In addition, before judging the importance index and the operating environment characteristics, if it is determined that the application is in the user's preset whitelist or the application is running in the foreground, the application is protected. Through the above settings, necessary applications and unnecessary applications can be identified from multiple angles and then automatically protected and closed, thereby realizing effective management of applications and avoiding unnecessary consumption of electronic equipment resources (such as power) without changing the hardware and affecting the user experience. In addition, in an embodiment of the present invention, various relevant data (such as user behavior data, historical processing statistics data of applications, and running time data, etc.) in the electronic device are periodically collected and sent to a historical data storage unit set at a remote location for storage, and the stored data is used to train the user classification model. In order to determine the importance index of the application, the user behavior data, historical processing statistics data of the application, and running time data of the preset time interval including the most recently collected data can be first obtained from the historical data storage unit. On the one hand, the user behavior data is input into the user classification model to obtain a user portrait containing at least one label representing the application category, and the initial importance value of the application is calculated based on the user behavior data and the historical processing statistics data of the application. The above initial importance value is adjusted using the label in the user portrait to obtain the importance index of the application. On the other hand, the running time data of the application in each dimension value of the preset dimension is counted to obtain the operating environment characteristics of the application. In this way, the importance index and operating environment characteristics of the application are accurately calculated through big data technology, which is beneficial to the subsequent application processing steps.

[0089] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An application processing method for protecting or shutting down at least one application currently running in an electronic device; characterized in that: The method comprises: When the preset trigger condition is met, for any currently running application: determining whether the importance index of the application complies with a preset first discrimination rule, wherein the importance index is used to characterize the importance of the application to the electronic device operating system and the user; The importance index of any currently running application is determined according to the following steps: obtaining user behavior data within a preset first historical time interval and inputting the user behavior data into a pre-trained user classification model to obtain a user portrait containing at least one label representing the category to which the application belongs; determining an initial importance value of the application based on data associated with the application in the user behavior data and / or historical processing statistics of the application within the first historical time interval; when the application matches at least one label in the user portrait, increasing the initial importance value using the matched label to obtain the importance index of the application; and / or, when the trigger condition is met, determining whether the operating environment characteristics of any currently running application are consistent with the current environmental state of the electronic device; the operating environment characteristics refer to the environmental state of the electronic device matched by the application; When the importance index meets the first determination rule, or the operating environment feature is consistent with the environment state, the application is protected.

2. The method according to claim 1, characterized in that: The user behavior data includes at least one of the following: data on the duration of a user's use of an application, data on applications in a whitelist or blacklist preset by the user, data on changes in applications installed or uninstalled by the user, and data on changes in applications in a whitelist or blacklist; The historical processing statistics of the application include: the number of times the application was protected, the number of times the application was closed, and / or the number of times the application was started automatically.

3. The method according to claim 2, characterized in that The operating environment characteristics of any currently running application are operating environment characteristics under at least one preset dimension, and any dimension value of any dimension corresponds to an environmental state of the electronic device, and the dimension includes a time dimension and a motion state dimension; and the operating environment characteristics of the application under any dimension are determined according to the following steps: Obtain the running time of each dimension value of the application in the dimension within a preset second historical time interval and determine the running time proportion of each dimension value; When there is a dimension value whose running time ratio is greater than a preset ratio, the dimension value is used as the running environment feature of the application under the dimension.

4. The method according to claim 3, characterized in that The method further comprises: Before determining the importance index and operating environment characteristics of any currently running application: detecting whether the application is in a whitelist preset by the user, and / or detecting whether the application is running in the foreground; When the application is in the whitelist or the application is running in the foreground, the application is protected.

5. The method according to claim 4, characterized in that The method further comprises: When the importance index of any currently running application does not meet the first judgment rule and the running environment characteristics of the application are inconsistent with the current environment state of the electronic device, at least one of the following judgments is performed: judging whether the importance index of the application meets the preset second judgment rule, judging whether the application is automatically started, judging whether the unused time of the application meets the preset third judgment rule, and judging whether the application is in the blacklist preset by the user; If any of the determinations is yes, the application is closed.

6. The method according to claim 5, characterized in that The currently running applications include: the application currently running in the foreground and the application currently running in the background; The triggering condition includes: the remaining power of the electronic device is less than a preset value, the display module of the electronic device is turned off, or the display module of the electronic device is turned off for a preset first time period; The first discrimination rule includes: the importance index of the application is greater than a preset first threshold; The second discrimination rule includes: the importance index of the application is less than a preset second threshold; wherein the second threshold is less than the first threshold; The third judgment rule includes: the unused time of the application is greater than the preset second time; The dimension values ​​of the time dimension include daytime and nighttime, and the dimension values ​​of the motion state dimension include stillness, slow motion, and fast motion.

7. An application processing device, used to protect or shut down at least one application currently running in an electronic device; characterized in that: The device comprises: A judgment module, used for: when a preset trigger condition is met, for any currently running application: judging whether the importance index of the application complies with a preset first judgment rule, and / or judging whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; wherein the importance index is used to characterize the importance of the application to the electronic device operating system and the user, and the operating environment characteristics refer to the environmental state of the electronic device matched by the application; A processing module, used to: protect the application when the importance index meets the first discrimination rule or the operating environment feature is consistent with the environment state; The importance index calculation module is used to: obtain user behavior data within a preset first historical time interval and input the user behavior data into a pre-trained user classification model to obtain a user portrait containing at least one label representing the category to which the application belongs; determine an initial importance value of the application based on data associated with the application in the user behavior data and / or historical processing statistics of the application within the first historical time interval; when the application matches at least one label in the user portrait, use the matched label to increase the initial importance value to obtain the importance index of the application.

8. An application processing system for protecting or shutting down at least one application currently running in an electronic device; characterized in that: The system comprises an execution unit and a scoring unit; wherein, The execution unit is used to: when a preset trigger condition is met, for any currently running application: determine whether the importance index of the application complies with a preset first discrimination rule, and / or determine whether the operating environment characteristics of the application are consistent with the current environmental state of the electronic device; when the importance index complies with the first discrimination rule, or the operating environment characteristics are consistent with the environmental state, protect the application; the importance index is used to characterize the importance of the application to the electronic device operating system and the user, and the operating environment characteristics refer to the electronic device environmental state matched by the application; The scoring unit is used to: obtain user behavior data within a preset first historical time interval and input the user behavior data into a pre-trained user classification model to obtain a user portrait containing at least one label representing the category to which the application belongs; determine an initial importance value of the application based on data associated with any application in the user behavior data and / or historical processing statistics of the application within the first historical time interval; when the application matches at least one label in the user portrait, use the matched label to increase the initial importance value to obtain an importance index of the application.

9. The system according to claim 8, characterized in that The operating environment characteristics of any currently running application are operating environment characteristics under at least one preset dimension, and any dimension value of any dimension corresponds to an environmental state of the electronic device; and the system further includes: a data collection unit, a historical data storage unit, a scoring unit and a characteristic determination unit; wherein, The data collection unit is used to: obtain the user behavior data of the most recent historical collection period, the historical processing statistics of the application, and the running time data of each dimension value of the application in each dimension and send them to the historical data storage unit; The historical data storage unit is used to store user behavior data of historical periods, historical processing statistics of application programs and the running time data, and train a user classification model using the stored user behavior data; The user behavior data within the first historical time interval includes the user behavior data of the most recent historical collection period acquired by the data collection unit, and the historical processing statistical data of the application within the first historical time interval includes the historical processing statistical data of the application in the most recent historical collection period acquired by the data collection unit; The feature determination unit is used to: obtain the running time data of each dimension value of any application in any dimension within a preset second historical time interval from the historical data storage unit and determine the running time ratio of each dimension value; when there is a dimension value whose running time ratio is greater than a preset ratio, use the dimension value as the running environment feature of the application under the dimension; wherein the running time data of the application within the second historical time interval includes the running time data of the application in the most recent historical collection period obtained by the data collection unit.

10. The system according to claim 9, characterized in that The system further comprises: a state detection unit for acquiring the current environment state of the electronic device and sending it to the execution unit, and a user setting acquisition unit for acquiring the white list and black list preset by the user and sending them to the execution unit; and the execution unit is further used to: Before judging the importance index and operating environment characteristics of any currently running application: detecting whether the application is in the whitelist and / or detecting whether the application is running in the foreground; and protecting the application when the application is in the whitelist or the application is running in the foreground; When the importance index of any currently running application does not meet the first judgment rule and the operating environment characteristics of the application are inconsistent with the current environmental state of the electronic device, perform at least one of the following judgments: determine whether the importance index of the application meets the preset second judgment rule, determine whether the application is started automatically, determine whether the unused time of the application meets the preset third judgment rule, and determine whether the application is in the blacklist; when any judgment result is yes, close the application.

11. The system according to claim 10, characterized in that The currently running applications include: the application currently running in the foreground and the application currently running in the background; The triggering condition includes: the remaining power of the electronic device is less than a preset value, the display module of the electronic device is turned off, or the display module of the electronic device is turned off for a preset first time period; The first discrimination rule includes: the importance index of the application is greater than a preset first threshold; The second discrimination rule includes: the importance index of the application is less than a preset second threshold; wherein the second threshold is less than the first threshold; The third judgment rule includes: the unused time of the application is greater than the preset second time; The dimension includes a time dimension and a motion state dimension. The dimension values ​​of the time dimension include daytime and nighttime. The dimension values ​​of the motion state dimension include stillness, low-speed motion, and high-speed motion. User behavior data includes: data on the duration of a user's use of an application and / or data on applications in the whitelist; The historical processing statistics of the application include: the number of times the application was protected, the number of times the application was closed, and / or the number of times the application was started automatically.

12. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Process management method and mobile terminal

    CN108304258A