Application management method, apparatus, device, and readable storage medium

By setting reserved space when terminal memory is insufficient and managing applications according to a whitelist set, the problem of important applications failing to start normally due to insufficient terminal memory is solved, and the normal use of important applications is realized.

CN110825509BActive Publication Date: 2026-03-20SHENZHEN TRANSSION HLDG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-01
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

When terminal memory is insufficient, the normal operation of some important applications cannot be guaranteed, which affects the user experience.

Method used

When free memory is detected to be less than or equal to a preset threshold, reserved space is set, and when an application startup request is received, it is determined whether the target application belongs to the whitelist set. If so, reserved memory is enabled and the application is started. Optionally, the whitelist set can be adjusted by counting the number of startup failures, user behavior data, etc.

Benefits of technology

Ensuring the normal startup and use of important applications when terminal memory is insufficient improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110825509B_ABST
    Figure CN110825509B_ABST
Patent Text Reader

Abstract

The application discloses an application management method, which comprises the following steps: when detecting that the idle memory is less than or equal to a preset storage threshold, setting a reserved space in the idle memory, and closing the reserved space to obtain remaining available memory; when receiving an application starting request, determining a target application corresponding to the application starting request and the occupied memory when the target application starts; when the occupied memory is greater than the remaining available memory, judging whether the target application belongs to a white list application set; and if the target application belongs to the white list application set, opening the reserved memory and starting the target application. The application further discloses an application management device, equipment and a readable storage medium. According to the application, when the memory is low, the reserved memory is only opened and the application is only started when the white list application starts, so that the normal use of some important applications is ensured when the memory is insufficient.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of device storage, in particular to an application management method and device, equipment and a readable storage medium. BACKGROUND

[0002] With the rapid development of mobile terminal technology, various APPs (Application, application program) can be installed in the terminal, such as WeChat, Meituan, etc.

[0003] Under the premise of a certain terminal memory, the increase in the number of APPs installed in the terminal will result in a decrease in the available storage space of the terminal, that is, a large number of files will be generated during the use of the APPs, occupying the storage space of the terminal, resulting in insufficient terminal storage space. Insufficient terminal memory will cause some application programs to be unable to start normally. When the terminal storage space is insufficient, how to normally start and use some important applications has become a technical problem to be solved. SUMMARY

[0004] The main purpose of the present application is to provide an application management method, device, equipment and readable storage medium, which aims to solve the technical problem that when the terminal memory is insufficient, some important applications cannot be normally used, and the user is affected when using some applications.

[0005] To achieve the above purpose, the present application provides an application management method, which comprises the following steps:

[0006] S11: when it is detected that the free memory is less than or equal to a preset storage threshold, setting a reserved space in the free memory, and closing the reserved space to obtain a remaining available memory;

[0007] S12: when an application start request is received, determining a target application corresponding to the application start request, and the occupied memory when the target application starts;

[0008] S13: when the occupied memory is greater than the remaining available memory, determining whether the target application belongs to a white list application set;

[0009] S14: if the target application belongs to the white list application set, starting the reserved memory and starting the target application.

[0010] Optionally, the S14 step comprises:

[0011] If the target application belongs to the white list application set, determining whether the occupied memory is greater than the free memory;

[0012] If the occupied memory is greater than the free memory, outputting a memory cleaning page;

[0013] if the occupied memory is less than or equal to the free memory, then starting the reserved memory and starting the target application.

[0014] Optionally, after the S13 step, the method further comprises:

[0015] if the target application does not belong to the whitelist application set, then counting the number of times of starting failure of the target application;

[0016] if the number of times of starting failure is greater than or equal to a preset number of times, then adding the target application to a blacklist application set, so that the target application cannot be started.

[0017] Optionally, after the S13 step, the method further comprises:

[0018] if the target application does not belong to the whitelist application set, then obtaining a current time and a preset starting time corresponding to the target application;

[0019] if the current time is within the preset starting time, then starting the reserved memory and starting the target application.

[0020] Optionally, after the S13 step, the method further comprises:

[0021] S131: if the target application does not belong to the whitelist application set, then outputting a memory cleaning page;

[0022] S132: upon receiving a memory cleaning instruction, performing a memory cleaning operation;

[0023] S133: after the memory cleaning operation is performed, starting the target application.

[0024] Optionally, after the S131 step, the method further comprises:

[0025] if a preset time period does not receive a memory cleaning instruction, then obtaining user behavior data corresponding to the target application;

[0026] according to the user behavior data, determining whether to add the target application to a whitelist application set;

[0027] if the target application is added to the whitelist application set, then starting the reserved memory and starting the target application.

[0028] Optionally, the step of determining whether to add the target application to the whitelist application set according to the user behavior data comprises:

[0029] obtaining an application browsing duration and an application operation frequency in the user behavior data;

[0030] query a preset score mapping table to obtain a first score corresponding to the application browsing time length and a second score corresponding to the application operation frequency;

[0031] add the first score and the second score to obtain a comprehensive score of the application, and determine whether the comprehensive score is greater than a preset threshold value;

[0032] If the comprehensive score is greater than the preset threshold value, a target application is added to a whitelist application set.

[0033] To achieve the above object, the application further provides an application management method, which comprises the following steps:

[0034] S21: receiving an application starting instruction;

[0035] S22: determining whether the application occupies memory more than the current available memory of the system;

[0036] S23: if yes, determining whether the application belongs to a whitelist application set;

[0037] S24: if yes, releasing the memory and starting the application.

[0038] Optionally, the step S22 comprises that the current available memory of the system comprises free memory and / or a preset reserved space.

[0039] The step S24 comprises that if yes, the preset reserved space and / or other occupied memory are released, and the application is started.

[0040] Optionally, the step 24 comprises that if yes, the blacklist application and / or other occupied memory are released, and the application is started.

[0041] Optionally, the step 24 further comprises that if the application fails to start, an error message is prompted.

[0042] In addition, to achieve the above object, the application further provides an application management device, which comprises:

[0043] a detection module, configured to set a reserved space in free memory when detecting that the free memory is less than or equal to a preset storage threshold value, and obtain remaining available memory by closing the reserved space;

[0044] a receiving module, configured to determine a target application corresponding to an application starting request and occupied memory of the target application when starting the target application after receiving the application starting request;

[0045] a judgment module, configured to determine whether the target application belongs to a whitelist application set when the occupied memory is greater than the remaining available memory.

[0046] The starting module is configured to start the reserved memory and start the target application if the target application belongs to the white list application set.

[0047] In addition, the application also provides an application management device, which comprises:

[0048] The cleaning module is configured to perform a memory cleaning operation when receiving a memory cleaning instruction.

[0049] In addition, the application also provides an application management device, which comprises:

[0050] The management module is configured to add the application into a black list application set according to the number of application start failures, and / or add the application into a white list application set according to application user behavior data.

[0051] In addition, the application also provides an application management device, which comprises a memory, a processor and an application management program stored in the memory and executable on the processor, and the application management program implements the steps of the application management method when executed by the processor.

[0052] In addition, the application also provides a computer readable storage medium, which stores an application management program, and the application management program implements the steps of the application management method when executed by a processor.

[0053] The application management method, device, equipment and readable storage medium are provided. In the application, when the idle memory is less than or equal to a preset storage threshold, the terminal is in a low storage state, a reserved memory is set in the idle memory, and the reserved memory is closed. When an application outside the white list application set is started and inquires about the idle memory, only the memory outside the reserved memory in the idle memory can be obtained. When an application start request is received, a target application corresponding to the application start request and occupied memory required by the application start are obtained. If it is judged that the target application belongs to the white list application set, the reserved memory is started, so that the white list application can use the reserved memory when starting, and the normal use of some important applications is ensured when the terminal memory is insufficient. BRIEF DESCRIPTION OF DRAWINGS

[0054] Figure 1 The hardware structure schematic diagram of an embodiment of the application management device provided by the application;

[0055] Figure 2 The flowchart of the first embodiment of the application management method provided by the application;

[0056] Figure 3 Flowchart of a second embodiment of the application management method;

[0057] Figure 4 Flowchart of a third embodiment of the application management method;

[0058] Figure 5 Flowchart of a fourth embodiment of the application management method;

[0059] Figure 6 Flowchart of a fifth embodiment of the application management method;

[0060] Figure 7 Flowchart of a sixth embodiment of the application management method;

[0061] Figure 8 Functional module diagram of an embodiment of the application management device.

[0062] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0063] It should be understood that the specific embodiments described herein merely exemplify the application and are not intended to limit the application.

[0064] In the following description, the suffix used for an element such as "module", "part", or "unit" is merely for convenience in explaining the present application, and does not have a specific meaning by itself. Thus, "module", "part", or "unit" can be mixedly used.

[0065] The GIT-based version management terminal of the embodiments of the present application can be a PC, or a mobile terminal device having a storage function such as a smart phone, a tablet PC, and a portable computer.

[0066] As Figure 1As shown, the terminal can include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection communication between the components. The user interface 1003 can include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a stable memory (non-volatile memory) such as a disk memory. The memory 1005 can also be an optional storage device independent of the aforementioned processor 1001.

[0067] Optionally, the terminal can also include a camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio circuit, WiFi module, etc. Among them, the sensor such as light sensor, motion sensor and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor can turn off the display and / or backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the size of the acceleration in each direction (usually three axes), and can detect the size and direction of gravity when at rest, which can be used for identifying mobile terminal posture applications (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, knocking) and the like. Of course, the mobile terminal can also be configured with a gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors, which will not be described here.

[0068] Those skilled in the art can understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.

[0069] As Figure 1 As shown, the memory 1005 as a computer storage medium can include an operating system, a network communication module, a user interface module, and an application management program.

[0070] In Figure 1The terminal shown, the network interface 1004 is mainly used for connecting the background server, and the background server is communicated with data; the user interface 1003 is mainly used for connecting the client (user end), and the client is communicated with data; and the processor 1001 can be used to call the application management program stored in the memory 1005, the application management program is executed by the processor to realize the operation in the application management method provided by the following embodiment.

[0071] Based on the above device hardware structure, the application management method of the application is proposed.

[0072] Reference Figure 2 In the first embodiment of the application management method, the application management method comprises:

[0073] Step S11, when detecting that the idle memory is less than or equal to the preset storage threshold, setting a reserved space in the idle memory, and closing the reserved space to obtain the remaining available memory.

[0074] The application management method in this embodiment is applied to an application management device (also called a terminal or a device), which includes smart phones, tablet computers, portable computers and other devices with storage functions.

[0075] In this embodiment, the idle memory is the memory that is not used in the device, the reserved memory is a part of the memory reserved in advance, the remaining available memory is the difference between the idle memory and the reserved memory, and the preset storage threshold refers to a preset idle memory critical value, that is, when the idle memory of the device is less than or equal to the preset storage threshold, the device is determined to be in a low storage state.

[0076] In this embodiment, a specific application scenario is given, for example, the preset storage threshold is 200MB, the idle memory of the device is 150MB, the reserved memory is 100MB, and the remaining available memory is 50MB. In this specific application scenario, the idle memory is less than the preset storage threshold, and the device is in a low storage state. In the case that the device is in a low storage state, the application management program closes the reserved space.

[0077] Step S12, when receiving an application startup request, determining the target application corresponding to the application startup request and the occupied memory when the target application starts.

[0078] In this embodiment, the application startup request includes various files needed to write into the idle memory of the device to start the target application, and the occupied memory refers to a part of the idle memory occupied by the target application when starting the target application, that is, the application startup memory.

[0079] The application starting manner includes user active triggering or device automatic starting according to preset rules. The specific application starting manner is not limited and detailed in the embodiment. When the application is triggered to start, the application sends an application starting request to the application management program. When the application management program receives the application starting request, the target application sending the application starting request is determined through the application starting request. The application management program can also determine, according to the target application, various files written in the idle memory of the device by the target application when starting, and calculate the size of the part of the idle memory occupied by the files when written in the idle memory of the device, that is, the occupied memory.

[0080] Step S13: When the occupied memory is greater than the remaining available memory, it is determined whether the target application belongs to the white list application set.

[0081] If the determined occupied memory is greater than the remaining available memory, that is, the remaining available memory cannot meet the memory space required by the target application when starting, it can be known from the specific application scenario given in step S10 that the occupied memory of a certain application when starting is 60 MB, and the remaining available memory is only 50 MB, that is, the target application cannot write various files required when starting into the remaining available memory, thereby causing the target application to fail to start.

[0082] The purpose of setting the reserved memory is that when some important applications (that is, applications in the white list application set) start in the case that the device is in a low storage state, various files required when starting the important applications can be written into the reserved memory, thereby ensuring the normal starting of the important applications. Therefore, it is necessary to determine whether the target application belongs to the white list application set, and according to the determination result, it is determined whether the target application can write various files required when starting into the reserved memory, that is, it is determined whether the target application can use the reserved space.

[0083] Step S14: If the target application belongs to the white list application set, the reserved memory is started and the target application is started.

[0084] If the result of determining whether the target application belongs to the white list application set is that the target application belongs to the white list application set, that is, the target application is an important application that needs to be ensured to start normally when the device is in a low storage state, the application management program starts the reserved memory, so that the target application writes various files required when starting into the reserved memory and writes into the idle memory of the device, thereby achieving the purpose of normally starting the target application.

[0085] In the embodiment, when the application management program receives an application startup request, by determining the target application sending the application startup request and the occupied memory when the target application starts when the device is in the low storage state and receives the application startup request, when the occupied memory is greater than the remaining available memory (i.e., the remaining available memory cannot meet the startup of the target application), it is determined whether the target application belongs to the whitelist application set (i.e., the set of important applications), if the target application belongs to the whitelist application set, the reserved memory is started to start the target application, which ensures the normal startup of some important applications when the device is in the low storage state.

[0086] Further, with reference to Figure 3 On the basis of the above-mentioned embodiments of the application, the second embodiment of the application is proposed.

[0087] The embodiment is a detailed step of step S14 in the first embodiment, and the difference between the embodiment and the above-mentioned embodiments of the application is that:

[0088] In step S141, if the target application belongs to the whitelist application set, it is determined whether the occupied memory is greater than the free memory.

[0089] In the embodiment, the whitelist application set is a set containing some important applications, and the selection of the important applications can be actively selected by the user or automatically selected by the device according to the pre-set rules, and the selection of the important applications is not limited and detailed in the embodiment, because the selection of the important applications is various, it is necessary to determine the size relationship between the occupied memory and the free memory when the target application starts.

[0090] In the embodiment, a specific application scenario is given, for example, the free memory of the device is 150MB, the reserved memory is 100MB, the remaining available memory is 50MB, and the occupied memory of the target application in the whitelist application set when starting is 160MB, when the target application requests to start, the application management program starts the reserved memory, and the free memory available for the target application is only 150MB, which cannot meet the startup of the target application.

[0091] In step S142, if the occupied memory is greater than the free memory, an internal memory cleaning page is output.

[0092] In the embodiment, the internal memory cleaning page is a page output by the application management program, which contains a memory cleaning method and cleanable files, so that the user or the device can clean the used memory of the device according to the memory cleaning method to increase the free memory.

[0093] If the target application belongs to the white list application set and the occupied memory of the target application at the time of starting is greater than the free memory of the device, the reserved memory is started, but the starting of the target application cannot be met. In this case, the application management program outputs a memory cleaning interface, so that the user or the device cleans the used memory according to the memory cleaning method, so as to increase the free memory.

[0094] In step S143, if the occupied memory is less than or equal to the free memory, the reserved memory is started and the target application is started.

[0095] If the result of judging whether the occupied memory is greater than the free memory is that the occupied memory is less than or equal to the free memory, that is, the free memory can meet the starting of the target application, the application management program starts the reserved memory, so that the target application writes various files needed to be written in the free memory of the device at the time of starting into the free memory, thereby achieving the purpose of normally starting the target application.

[0096] In the embodiment, the occupied memory of the target application in the white list application at the time of starting is judged, and the memory cleaning page is output when the occupied memory is greater than the free memory of the device, so that the user cleans the used memory of the device. When the occupied memory is less than or equal to the free memory, the used management program starts the reserved memory, so that the target application in the white list application can be started.

[0097] Further, with reference to Figure 4 On the basis of the above-mentioned embodiments of the application, a third embodiment of the application management method is provided.

[0098] The embodiment is a step after step S13 in the first embodiment. The difference between the embodiment and the above-mentioned embodiments of the application is that:

[0099] In step S15, if the target application does not belong to the white list application set, the number of times of starting failure of the target application is counted.

[0100] In the embodiment, the target application does not belong to the white list application set, and the occupied memory of the target application at the time of starting is greater than the remaining available memory. That is, in the case that the application management program does not start the reserved memory, the remaining available memory cannot meet the memory space required by the starting of the target application. Therefore, the target application fails to start. According to the preset rule in the application management program, the target application will request to start again after failing to start. The purpose of adding the preset rule in the application management program is that the free memory of the device will change with the user actively cleaning the used memory or the device automatically cleaning the garbage files in the used memory. In the case that the free memory changes, multiple attempts to start the target application are beneficial to the use of the target application. The application management program counts the number of times of starting failure after the target application fails to start.

[0101] Step S16, when the number of times of the failed starting is greater than or equal to the preset number of times, adding the target application to a black list application set, so that the target application cannot start.

[0102] In this embodiment, a specific application scenario is given, as shown in Table 1, the reserved memory is 100 MB, the occupied memory of the target application when starting is 60 MB, the free memory of the device when the target application starts for the first time is 150 MB, the remaining available memory is 50 MB, the occupied memory of the target application when starting is greater than the remaining available memory of the device, the target application fails to start, after 0.1 seconds of the first failure of the target application to start, the target application requests to start again, at this time, the free memory of the device is 148 MB, the remaining available memory of the device is 52 MB, the occupied memory of the target application when starting is still greater than the remaining available memory of the device, the target application fails to start again, when the number of times of the failed starting of the target application is four, the application management program adds the target application to the black list application set, so that the target application cannot request to start again.

[0103] The number of times of the failed starting of the target application in this embodiment is only illustrative, and the preset number of times is not limited.

[0104]

[0105] Table 1

[0106] Specifically, after step S13, further comprising:

[0107] Step a1, if the target application does not belong to the white list application set, obtaining a current time and a preset starting time corresponding to the target application.

[0108] In this embodiment, the current time refers to the time when the application management program receives the application starting request, and the preset starting time refers to one or more time periods that are set in advance and have a corresponding relationship with the target application. The preset starting time has a corresponding relationship with the target application, as shown in Table 2, when the target application is Meituan, because Meituan is a catering application, the preset starting time corresponding to Meituan can be set to 07:00-09:00, 11:00-13:00, and 17:00-19:00, which basically corresponds to the time of three meals in people's daily life. The division of the preset starting time in this embodiment is not limited and specifically described.

[0109] Application Current time Pre-set time period Netease cloud music 10:45:25 18:00-07:00 Meituan 12:01:13 07:00-09:00,11:00-13:00,17:00-19:00 Youku 20:08:49 18:00-00:00

[0110] Table 2

[0111] Step a2, if the current time is within the preset starting time, starting the reserved memory and starting the target application.

[0112] As shown in Table 2, a specific application scenario is given in this embodiment, for example, the current time of the Meituan delivery request start is 12:01:13, the preset start time corresponding to Meituan delivery is 07:00-09:00, 11:00-13:00, 17:00-19:00, and it can be known that the current time of the Meituan delivery request start is within the preset start time corresponding to Meituan delivery, so the application management program adds Meituan delivery to the white list application set, so that Meituan delivery can be normally started, and it can be known that the current time of the NetEase cloud music request start is not within the preset start time corresponding to NetEase cloud music, so the application management program will not add NetEase cloud music to the white list application set.

[0113] In this embodiment, by counting the number of times of the target application startup failure, it is determined whether the current time of the target application request start is within the preset start time corresponding to the target application, and then the target application meeting the preset rule is added to the black list application set or the white list application set, thereby realizing the rationality and flexibility of the white list application set and the black list application set.

[0114] Further, with reference to Figure 5 On the basis of the above-mentioned embodiments of the application, a fourth embodiment of the application application management method is proposed.

[0115] This embodiment is a step after step S13 in the first embodiment, and the difference between this embodiment and the above-mentioned embodiments of the application is that:

[0116] Step S131, if the target application does not belong to the white list application set, output a memory cleaning page.

[0117] In this embodiment, the memory cleaning page is a page output by the application management program, which contains a memory cleaning method and cleanable files, so as to clean the used memory of the device according to the memory cleaning method, so as to increase the idle memory.

[0118] In this embodiment, the target application does not belong to the white list application set, and the occupied memory of the target application when starting is greater than the remaining available memory, that is, in the case that the application management program does not start the reserved memory, the remaining available memory cannot meet the memory space required by the target application startup, so the target application startup fails. The application management program outputs a memory cleaning page, so as to clean the used memory of the device by the user or the device, thereby increasing the idle memory of the device.

[0119] Step S132, when receiving the memory cleaning instruction, performing a memory cleaning operation.

[0120] The memory cleaning page is a page output by the application management program and containing a memory cleaning method and cleanable files. When the user cleans the used memory of the device according to the memory cleaning method in the memory cleaning page, the application management program receives the memory cleaning instruction. After the application management program receives the memory cleaning instruction, the used memory of the device is cleaned, thereby releasing a part of the used memory of the device.

[0121] Step S133, after the memory cleaning operation is completed, the target application is started.

[0122] After the used memory of the device is cleaned, the application management program acquires the remaining available memory after cleaning. If the occupied memory of the target application when starting is still greater than the remaining available memory after cleaning, the application management program cleans the used memory of the device for a second time until the occupied memory of the target application when starting is less than or equal to the remaining available memory after cleaning. Specifically, when the occupied memory of the target application when starting is still greater than the remaining available memory after cleaning after the first cleaning, the application management program outputs a page containing a method of cleaning more used memory of the device or closing the target application, and the user operates according to the page. When the occupied memory of the target application when starting is less than or equal to the remaining available memory after cleaning, the target application is started.

[0123] In this embodiment, the used memory of the device is cleaned, thereby increasing the remaining available memory of the device, and the normal starting of the application is realized.

[0124] Further, with reference to Figure 6 On the basis of the above-mentioned embodiments of the application, the fifth embodiment of the application management method is provided.

[0125] This embodiment is a step after step S131 in the fourth embodiment. The difference between this embodiment and the above-mentioned embodiments of the application is that:

[0126] Step S134, if no memory cleaning instruction is received in the preset time period, the user behavior data corresponding to the target application is acquired.

[0127] In this embodiment, the user behavior data refers to the regular behavior of the user based on a certain thing. The user behavior data corresponding to the target application reflects the degree of attention of the user to the application to some extent. The user behavior data includes: application browsing time length and application operation frequency.

[0128] In the case that the occupied memory is less than the free memory and greater than or equal to the remaining available memory, the application outside the whitelist application set cannot be started, but the application outside the whitelist application set which requests to be started in this case can also be an application which is needed by the user for a short time and has not been added to the whitelist application set. By obtaining the user behavior data corresponding to the target application, a method for measuring whether the user needs to start the target application is provided.

[0129] In step S135, it is judged whether the target application is added to the whitelist application set according to the user behavior data.

[0130] In the embodiment, the user behavior data includes the application browsing time length and the application operation frequency. The application browsing time length is the sum of the interval between each time the user opens the application and closes the application in a unit time, and the application operation frequency is the number of times the user operates the application in a unit time. As shown in Table 3, according to the two behaviors of the user for the target application, i.e., the application browsing time length and the application operation frequency, the attention degree of the user to the application can be measured.

[0131] In step S136, if the target application is added to the whitelist application set, the reserved memory is started and the target application is started.

[0132]

[0133] Table 3

[0134] According to the two behaviors of the user for the target application, i.e., the application browsing time length and the application operation frequency, the attention degree of the user to the application is comprehensively measured, and then the target application which can be needed by the user is added to the whitelist application set according to the attention degree of the user to the application, so that the application management program starts the reserved memory and starts the target application.

[0135] Specifically, the step S135 further includes the following steps.

[0136] In step b1, the application browsing time length and the application operation frequency in the user behavior data are obtained.

[0137] In the embodiment, the user behavior data includes the application browsing time length and the application operation frequency. The application browsing time length is the sum of the interval between each time the user opens the application and closes the application in a unit time, and the application operation frequency is the number of times the user operates the application in a unit time. According to the two behaviors of the user for the target application, i.e., the application browsing time length and the application operation frequency, the attention degree of the user to the application can be measured.

[0138] In step b2, a preset score mapping table is queried to obtain a first score corresponding to the application browsing time length and a second score corresponding to the application operation frequency.

[0139] The preset score mapping table in the embodiment is a preset mapping table for measuring the degree of attention of a user to an application by scores, as shown in Table 3. By obtaining the application browsing time length and the application operation frequency corresponding to the target application, the first score corresponding to the application browsing time length and the second score corresponding to the application operation frequency can be known.

[0140] Step b3, taking the sum of the first score and the second score as the comprehensive score of the application, and determining whether the comprehensive score is greater than a preset threshold.

[0141] The preset threshold in the embodiment refers to a preset critical value of the comprehensive score, that is, when the comprehensive score corresponding to the target application is greater than the preset threshold, the target application is determined to be an application that the user pays great attention to.

[0142] As shown in Table 3, a specific application scenario is given in the embodiment, for example, the unit time is one week, the browsing time length of WeChat of the user is 260 minutes, the operation frequency is 870 times, the browsing time length of Meituan of the user is 100 minutes, the operation frequency is 200 times, the browsing time length of the calendar of the user is 20 minutes, and the operation frequency is 38 times, then the comprehensive score of WeChat is 110, the comprehensive score of Meituan is 60, and the comprehensive score of the calendar is 20. After obtaining the comprehensive scores corresponding to the applications, when the application of one of the applications requests to start, the application management program will determine the size relationship between the comprehensive score corresponding to each application and the preset threshold. The purpose of determining the size relationship between the comprehensive score and the preset threshold is to determine whether the application is an application that the user pays great attention to.

[0143] Step b4, if the comprehensive score is greater than the preset threshold, the target application is added to the white list application set.

[0144] As shown in Table 3, if the preset threshold is 100, it can be known that the only application whose comprehensive score is greater than 100 is WeChat, then the application management program adds WeChat to the white list application set, and when WeChat requests to start, the application management program starts the reserved memory to enable WeChat to start.

[0145] In the embodiment, by obtaining the user behavior data corresponding to the target application and analyzing the user behavior data, the application meeting the preset rule is added to the white list application set, and the rationality and flexibility of the white list application set are realized.

[0146] Reference Figure 7 In the sixth embodiment of the application management method, the application management method further comprises:

[0147] Step S21, receiving an application start instruction.

[0148] The application start instruction in this embodiment refers to an instruction generated by an application in the application management device when the application requests to start. The application start manner can be triggered by a user, for example, the user manually clicks the application. The application start manner can also be triggered by the application management device, for example, the application management device allows the application to start in the background.

[0149] In step S22, it is determined whether the application occupied memory exceeds the current available memory of the system.

[0150] The current available memory of the system in this embodiment refers to the memory in the application management device except the system used memory, that is, the total memory of the device minus the used memory of the device. For example, the total memory of the device is 32 GB, and the used memory is 28 GB. Therefore, the current available memory of the system is 4 GB. The purpose of determining whether the application occupied memory exceeds the current available memory of the system is to determine whether the current available memory of the system meets the start of the application.

[0151] In step S23, if yes, it is determined whether the application belongs to the white list application set.

[0152] The white list application set in this embodiment refers to a set containing some important applications. The settings of these important applications can be actively set by a user or automatically set by the device based on certain rules. The specific setting manner of the important applications is not limited and described in detail in this embodiment.

[0153] If the application occupied memory exceeds the current available memory of the system, that is, the current available memory of the system cannot meet the start of the application. In this case, it is further determined whether the application belongs to the white list application set, and then the next execution action is determined.

[0154] In step S24, if yes, the memory is released and the application is started.

[0155] If the application belongs to the white list application set, that is, the application is an important application. Based on the technical problem to be solved by the present application, the normal use of some important applications is ensured. The application management device releases some used memory until the available memory of the system after releasing the used memory is greater than or equal to the application occupied memory, that is, the available memory of the system after releasing the used memory meets the normal start of the application. Therefore, the application is successfully started.

[0156] Specifically, the step S24 further includes the following steps.

[0157] In step c1, the black list application and / or other occupied memory and / or the preset reserved space are released, and the application is started.

[0158] The black list application in the embodiment refers to some applications which occupy large memory at start or are considered unimportant by the user, and the other occupied memory refers to the memory in the application management device which has been occupied by other programs. Specifically, the step of releasing the used memory in the application management device includes releasing the other occupied memory and releasing the reserved space, and the order is to release the other occupied memory first, and if the start of the white list application is still not satisfied after the release, the reserved space is released again, and if the system available memory reaches a preset value after the release of the memory in the device, the application management device also releases the black list application.

[0159] Specifically, the step after step S24 further includes:

[0160] In step d1, if the application fails to start, an error message is prompted.

[0161] If the device still cannot satisfy the start of the white list application after the release of the reserved space, that is, the operation of automatically cleaning the used memory in the device cannot realize the start of the white list application, in this case, if the white list application is to be started, the user needs to manually clean the used memory in the device. Specifically, the device can output an application start error message on the display screen, and the error message includes a prompt of application start failure and the used memory which can be cleaned recommended by the device, and the user can make corresponding operation according to the error message.

[0162] In the embodiment, when the application starts, the application management program acquires the start occupied memory of the application, and judges whether the application is a white list application. If the application occupied memory exceeds the current available memory of the system, and the application is a white list application, that is, an important application, the application management program automatically releases the used memory in the device. If the automatic release of the used memory still cannot satisfy the start of the application, an error message is output for the user to manually release the used memory. If the automatic release of the used memory can satisfy the start of the application, the application management program releases the black list application, and allows the application to start, thereby realizing the normal start of some important applications when the memory of the device is insufficient.

[0163] In addition, with reference to Figure 8 The embodiment of the application further provides an application management device, which comprises:

[0164] The detection module 10 is configured to set a reserved space in the idle memory and obtain the remaining available memory by closing the reserved space when it is detected that the idle memory is less than or equal to a preset storage threshold.

[0165] The receiving module 20 is configured to determine a target application corresponding to an application start request and occupied memory of the target application when the application start request is received.

[0166] A judging module 30 is configured to judge whether the target application belongs to a whitelist application set when the occupied memory is greater than the remaining available memory.

[0167] An opening module 40 is configured to open the reserved memory and start the target application if the target application belongs to the whitelist application set.

[0168] A cleaning module 50 is configured to perform a memory cleaning operation when a memory cleaning instruction is received.

[0169] A management module 60 is configured to add the application to a blacklist application set according to the number of application start failures, and / or add the application to the whitelist application set according to application user behavior data.

[0170] The method performed by each of the above program modules can refer to each embodiment of the method of the present application, and will not be described here again.

[0171] The above is only a preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.

Claims

1. An application management method, characterized in that, The application management method includes the following steps: S11: When the free memory is detected to be less than or equal to a preset storage threshold, a reserved space is set in the free memory, and the reserved space is closed to obtain the remaining available memory; S12: Upon receiving an application startup request, determine the target application corresponding to the application startup request and the memory occupied by the target application when it starts. S13: When the occupied memory is greater than the remaining available memory, determine whether the target application belongs to the whitelist application set; S14: If the target application belongs to the whitelist application set, then open the reserved space and start the target application; Following step S13, the method further includes: If the target application does not belong to the whitelisted application set, then output the memory cleanup page; If no memory cleanup command is received within the preset time period, the user behavior data corresponding to the target application is obtained, and the application browsing time and application operation frequency in the user behavior data are obtained. Query the preset score mapping table to obtain the first score corresponding to the application browsing time and the second score corresponding to the application operation frequency; The sum of the first score and the second score is used as the comprehensive score of the application, and it is determined whether the comprehensive score is greater than a preset threshold. If the overall score is greater than the preset threshold, the target application will be added to the whitelist application set, the reserved space will be opened, and the target application will be launched.

2. The application management method as described in claim 1, characterized in that, Step S14 includes: If the target application belongs to the whitelist application set, then determine whether the occupied memory is greater than the free memory; If the occupied memory is greater than the free memory, then output a memory cleanup page; If the occupied memory is less than or equal to the free memory, then the reserved space is enabled and the target application is launched.

3. The application management method as described in claim 1, characterized in that, Following step S13, the following is included: If the target application does not belong to the whitelist of applications, then count the number of times the target application failed to start; When the number of startup failures is greater than or equal to a preset number, the target application is added to the blacklist application set so that the target application cannot be launched.

4. The application management method as described in claim 1, characterized in that, Following step S13, the method further includes: If the target application does not belong to the whitelist application set, then obtain the current time and the preset start time corresponding to the target application; If the current time is within the preset opening time, then the reserved space is opened and the target application is launched.

5. The application management method as described in claim 1, characterized in that, Following the step of outputting the memory cleanup page if the target application does not belong to the whitelisted application set, the method further includes: Upon receiving a memory cleanup command, perform a memory cleanup operation. After the memory cleanup operation is completed, the target application is launched.

6. An application management method, characterized in that, The application management method includes the following steps: S21: Receive application startup command; Prior to the step of receiving the application launch instruction, the method further includes: When the detected free memory is less than or equal to a preset storage threshold, a reserved space is set in the free memory, and the reserved space is closed to obtain the remaining available memory; S22: Determine whether the memory occupied by the application exceeds the currently available memory of the system; S23: If yes, determine whether the application belongs to the whitelist application set; S24: If so, release the memory and start the application; S25: If not, output the memory cleanup page and determine whether a memory cleanup command has been received within the preset time period; S26: If not, obtain the user behavior data corresponding to the target application, and obtain the application browsing time and application operation frequency from the user behavior data; S27: Query the preset score mapping table to obtain the first score corresponding to the application browsing time and the second score corresponding to the application operation frequency; S28: The sum of the first score and the second score is taken as the comprehensive score of the application, and it is determined whether the comprehensive score is greater than a preset threshold. S29: If the overall score is greater than the preset threshold, the target application is added to the whitelist application set, the reserved space is opened, and the target application is launched.

7. The application management method as described in claim 6, characterized in that, Step S22 includes: the system’s currently available memory includes free memory and / or preset reserved space; Step S24 includes: if so, releasing the preset reserved space and / or other occupied memory, and starting the application.

8. The application management method as described in claim 6, characterized in that, Step 24 includes: if so, releasing blacklisted applications and / or other memory-consuming applications, and launching the application.

9. The application management method as described in any one of claims 6 to 8, characterized in that, Step 24 is followed by: if the application fails to start, displaying an error message.

10. An application management device, characterized in that, The application management device includes: The detection module is used to set a reserved space in the free memory and close the reserved space to obtain the remaining available memory when the detected free memory is less than or equal to a preset storage threshold. The receiving module is used to determine the target application corresponding to the application startup request and the memory occupied by the target application when it starts up when it receives the application startup request. The judgment module is used to determine whether the target application belongs to the whitelist application set when the occupied memory is greater than the remaining available memory; The module is configured to enable the reserved space and launch the target application if the target application belongs to the whitelist application set. The judgment module is also used for: If the target application does not belong to the whitelisted application set, then output the memory cleanup page; If no memory cleanup command is received within the preset time period, the user behavior data corresponding to the target application is obtained, and the application browsing time and application operation frequency in the user behavior data are obtained. Query the preset score mapping table to obtain the first score corresponding to the application browsing time and the second score corresponding to the application operation frequency; The sum of the first score and the second score is used as the comprehensive score of the application, and it is determined whether the comprehensive score is greater than a preset threshold. If the overall score is greater than the preset threshold, the target application will be added to the whitelist application set, the reserved space will be opened, and the target application will be launched.

11. The application management device as described in claim 10, characterized in that, The application management device also includes: Cleanup module: Used to perform memory cleanup operations when a memory cleanup command is received.

12. The application management device as described in claim 10 or 11, characterized in that, The application management device also includes: Management module: used to add the application to the blacklist application set based on the number of times the application failed to start; and / or add the application to the whitelist application set based on the application's user behavior data.

13. An application management device, characterized in that, The application management device includes: a memory, a processor, and an application management program stored in the memory and executable on the processor. When the application management program is executed by the processor, it implements the steps of the application management method as described in any one of claims 1 to 5 or 6 to 9.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an application management program, which, when executed by a processor, implements the steps of the application management method as claimed in any one of claims 1 to 5 or 6 to 9.

Citation Information

Patent Citations

  • A method and system for realizing memory share scheduling management based on KVM virtualization

    CN109885381A

  • Reserved memory in memory management system

    US20170357450A1