CN110825509A - Application management method, device, equipment and readable storage medium - Google Patents

Application management method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110825509A
CN110825509A CN201911059367.XA CN201911059367A CN110825509A CN 110825509 A CN110825509 A CN 110825509A CN 201911059367 A CN201911059367 A CN 201911059367A CN 110825509 A CN110825509 A CN 110825509A
Authority
CN
China
Prior art keywords
application
memory
starting
target application
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911059367.XA
Other languages
Chinese (zh)
Inventor
李丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN201911059367.XA priority Critical patent/CN110825509A/en
Publication of CN110825509A publication Critical patent/CN110825509A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an application management method, which comprises the following steps: when detecting that the free memory is smaller than or equal to a preset storage threshold value, setting a reserved space in the free memory, and closing the reserved space to obtain a residual available memory; when an application starting request is received, determining a target application corresponding to the application starting request and an occupied memory when the target application is started; when the occupied memory is larger than the residual 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, starting the reserved memory and starting the target application. The invention also discloses an application management device, equipment and a readable storage medium. The reserved memory is opened and the application is started only when the white list application is started when the memory is low, so that the normal use of some important applications is ensured when the memory is insufficient.

Description

Application management method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of device storage, and in particular, to an application management method, apparatus, device, and readable storage medium.
Background
With the rapid development of mobile terminal technology, various APPs (applications) such as WeChat, Mei Tuo, etc. can be installed in the terminal.
Under the certain prerequisite in terminal memory, because the quantity increase of the APP of installation in the terminal, can lead to the available storage space of terminal to reduce, promptly, the APP can generate a large amount of files in the use, occupy the storage space of terminal for terminal storage space is not enough, and terminal memory is not enough can lead to the unable normal start-up of some application and use, and when terminal storage space was not enough, how normally to start-up and use some important applications and become the present technical problem that awaits the solution urgently.
Disclosure of Invention
The invention mainly aims to provide an application management method, an application management device, application management equipment and a readable storage medium, and aims to solve the technical problem that when a terminal memory is insufficient, normal use of some important applications cannot be guaranteed, and users are affected when using some applications.
In order to achieve the above object, the present invention provides an application management method, including the steps of:
s11: when detecting that the free memory is smaller than or equal to a preset storage threshold value, setting a reserved space in the free memory, and closing the reserved space to obtain a residual available memory;
s12: when an application starting request is received, determining a target application corresponding to the application starting request and an occupied memory when the target application is started;
s13: when the occupied memory is larger than the residual available memory, judging whether the target application belongs to a white list application set;
s14: and if the target application belongs to the white list application set, starting the reserved memory and starting the target application.
Optionally, the step S14 includes:
if the target application belongs to the white list application set, judging whether the occupied memory is larger than the idle memory;
if the occupied memory is larger than the idle memory, outputting a memory cleaning page;
and if the occupied memory is less than or equal to the idle memory, opening the reserved memory and starting the target application.
Optionally, after the step of S13, the method includes:
if the target application does not belong to the white list application set, counting the number of times of the target application failed to start;
and when the starting failure times are larger than or equal to the preset times, adding the target application into a blacklist application set so as to enable the target application not to be started.
Optionally, after the step of S13, the method further includes:
if the target application does not belong to the white list application set, acquiring the current time and the preset starting time corresponding to the target application;
and if the current time is within the preset starting time, starting the reserved memory and starting the target application.
Optionally, after the step of S13, the method further includes:
s131: if the target application does not belong to the white list application set, outputting a memory cleaning page;
s132: executing memory cleaning operation when receiving a memory cleaning instruction;
s133: and starting the target application after the execution of the memory cleaning operation is finished.
Optionally, after the step S131, the method includes:
if the memory cleaning instruction is not received within the preset time period, acquiring user behavior data corresponding to the target application;
judging whether the target application is added into a white list application set or not according to the user behavior data;
and if the target application is added into the white list application set, opening the reserved memory and starting the target application.
Optionally, the step of determining whether to add the target application to a white list application set according to the user behavior data includes:
acquiring application browsing duration and application operating frequency in user behavior data;
inquiring a preset score mapping table, and acquiring a first score corresponding to the application browsing duration and a second score corresponding to the application operating frequency;
taking the sum of the first score and the second score as a comprehensive score of the application, and judging whether the comprehensive score is greater than a preset threshold value;
and if the comprehensive score is larger than the preset threshold value, adding the target application into a white list application set.
In order to achieve the above object, the present invention further provides an application management method, including the steps of:
s21: receiving an application starting instruction;
s22: judging whether the memory occupied by the application exceeds the current available memory of the system;
s23: if yes, judging whether the application belongs to a white list application set or not;
s24: and if so, releasing the memory and starting the application.
Optionally, the step S22 includes: the current available memory of the system comprises a free memory and/or a preset reserved space;
the step S24 includes: and if so, releasing the preset reserved space and/or other occupied memories, and starting the application.
Optionally, the step 24 comprises: and if so, releasing the blacklist application and/or other occupied memories, and starting the application.
Optionally, step 24 is followed by: and if the application fails to be started, prompting error information.
In order to achieve the above object, the present invention also provides an application management apparatus, including:
the detection module is used for setting a reserved space in the idle memory and closing the reserved space to obtain the residual available memory when detecting that the idle memory is smaller than or equal to a preset storage threshold;
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for determining a target application corresponding to an application starting request and an occupied memory when the target application is started when the application starting request is received;
the judging module is used for judging whether the target application belongs to a white list application set or not when the occupied memory is larger than the residual available memory;
and the starting module is used for starting the reserved memory and starting the target application if the target application belongs to the white list application set.
In order to achieve the above object, the present invention also provides an application management apparatus, including:
a cleaning module: and the processor is used for executing the memory cleaning operation when receiving the memory cleaning instruction.
In order to achieve the above object, the present invention also provides an application management apparatus, including:
a management module: the application is added into a blacklist application set according to the application starting failure times; and/or adding the application to a white list application set according to application user behavior data.
Further, to achieve the above object, the present invention also provides an application management apparatus, including: a memory, a processor and an application manager stored on the memory and executable on the processor, the application manager when executed by the processor implementing the steps of the application management method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon an application management program, which when executed by a processor, implements the steps of the application management method as described above.
The embodiment of the invention provides an application management method, device and equipment and a readable storage medium. In the embodiment of the invention, when the idle memory is detected to be less than or equal to the preset storage threshold value and the terminal is in the low storage state, the reserved memory is set in the idle memory to close the reserved memory, and when the application outside the white list application set is started and inquires the idle memory, only the memory outside the reserved memory in the idle memory can be obtained. When an application starting request is received, a target application corresponding to the application starting request and an occupied memory required by application starting are obtained, if the target application is judged to belong to a white list application set, a reserved memory is opened, so that the white list application can use the reserved memory when being started, and normal use of some important applications is guaranteed when the terminal memory is insufficient.
Drawings
Fig. 1 is a schematic hardware structure diagram of an implementation manner of an application management device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of an application management method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of an application management method according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of an application management method according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of an application management method according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of the application management method according to the present invention;
FIG. 7 is a flowchart illustrating a sixth embodiment of an application management method according to the present invention;
fig. 8 is a functional block diagram of an application management device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The version management terminal based on the GIT can be a PC, and can also be a mobile terminal device with a storage function, such as a smart phone, a tablet computer and a portable computer.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application management program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke an application management program stored in the memory 1005 that, when executed by the processor, performs operations in the application management methods provided by the embodiments described below.
Based on the hardware structure of the device, the embodiment of the application management method is provided.
Referring to fig. 2, in a first embodiment of the application management method of the present invention, the application management method includes:
step S11, when it is detected that the free memory is less than or equal to the preset storage threshold, setting a reserved space in the free memory, and closing the reserved space to obtain the remaining available memory.
The application management method in the embodiment is applied to application management equipment (called as a terminal or equipment), and the application management equipment comprises equipment with a storage function, such as a smart phone, a tablet computer and a portable computer.
In this embodiment, the idle memory is a memory that is not used in the device, the reserved memory is a part of a pre-reserved memory, the remaining available memory is a 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.
In this embodiment, a specific application scenario is given, for example, the preset storage threshold is 200MB, the free memory of the device is 150MB, the reserved memory is 100MB, and the remaining available memory is 50MB, in the specific application scenario, the free memory is smaller than the preset storage threshold, the device is in a low storage state, and when the device is in the low storage state, the application management program closes the reserved space.
Step S12, when receiving the application start request, determining a target application corresponding to the application start request and an occupied memory when the target application is started.
In this embodiment, the application start request includes various files that need to be written into the device free memory for starting the target application, and the occupied memory refers to a part of the free memory occupied by writing the start configuration file or the version update file of the target application into the device free memory when the target application is started, where the part of the occupied free memory is the occupied memory when the application is started.
The method for starting the application includes that a user actively triggers or the device automatically starts according to a preset rule, a specific application starting method is not limited and described in detail in this embodiment, the application sends an application starting request to the application management program when the application is triggered to start, when the application management program receives the application starting request, the application sending the application starting request, that is, the target application, is determined according to the application starting request, and the application management program may also determine, according to the target application, that the target application is started, to write various files in an idle memory of the device, and calculate the size of a part of the idle memory occupied by the files when the files are written in the idle memory of the device, that is, the occupied memory.
Step S13, when the occupied memory is greater than the remaining available memory, determine whether the target application belongs to a white list application set.
If the determined occupied memory is larger than the remaining available memory, that is, the remaining available memory cannot meet the memory space required when the target application is started, as can be seen from the specific application scenario given in step S10, the occupied memory when a certain application is started is 60MB, and the remaining available memory is only 50MB, that is, the target application cannot write various files required when the application is started into the remaining available memory, thereby causing the target application to fail to be started.
The purpose of setting the reserved memory is to, under the condition that the device is in a low storage state, when some important applications (i.e., applications in the white list application set) are started, write various files required to be written into the memory for starting the important applications into the reserved memory, thereby ensuring normal starting of the important applications, so that it is necessary to judge whether the target application belongs to the white list application set, and determine whether the target application can write various files required during starting into the reserved memory according to a judgment result, i.e., determine whether the target application can use the reserved space.
Step S14, if the target application belongs to the white list application set, opening the reserved memory and starting the target application.
If the result of judging whether the target application belongs to the white list application set is that the target application belongs to the white list application set, namely the target application is an important application which needs to be ensured to be normally started when the equipment is in a low storage state, the application management program starts the reserved memory so that various files which need to be written into the idle memory of the equipment when the target application is started are written into the reserved memory, and therefore the purpose of normally starting the target application is achieved.
In this embodiment, when the application management program receives an application start request, by determining a target application that sends the application start request and an occupied memory when the target application is started when the device is in a low storage state and receives the application start request, when the occupied memory is greater than a remaining available memory (i.e., the remaining available memory cannot meet the start of the target application), it is determined whether the target application belongs to a white list application set (i.e., a set of important applications), and if the target application belongs to the white list application set, a reserved memory is opened to start the target application, thereby ensuring normal start of some important applications when the device is in the low storage state.
Further, referring to fig. 3, a second embodiment of the application management method of the present invention is proposed on the basis of the above-described embodiment of the present invention.
This embodiment is a step of the first embodiment, which is a refinement of step S14, and the difference between this embodiment and the above-described embodiment of the present invention is:
step S141, if the target application belongs to the white list application set, determining whether the occupied memory is greater than the free memory.
The white list application set in this embodiment is a set including some important applications, and the selection manner of the important applications may be actively selected by a user or automatically selected by the device according to a preset rule.
In this 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 when the target application in the whitelist application set is started is 160 MB.
In step S142, if the occupied memory is larger than the free memory, a memory cleaning page is output.
In this embodiment, the memory cleaning page is a page output by the application management program and includes a memory cleaning method and a cleanable file, so that a user or a device can clean a used memory of the device according to the memory cleaning method, and the free memory is increased.
If the target application belongs to the white list application set and the occupied memory of the target application is larger than the free memory of the device when the target application is started, the reserved memory is opened and the starting of the target application cannot be met, and under the condition, the application management program outputs a memory cleaning interface for a user or the device to clean the used memory of the device according to a memory cleaning method, so that the free memory is increased.
Step S143, if the occupied memory is less than or equal to the idle memory, the reserved memory is opened and the target application is started.
If the result of judging whether the occupied memory is larger than the idle memory is that the occupied memory is smaller than or equal to the idle memory, namely the idle memory can meet the starting of the target application, the application management program starts the reserved memory so that the target application can write various files which need to be written into the idle memory of the equipment during starting into the idle memory, and the aim of normally starting the target application is fulfilled.
In this embodiment, by determining a size relationship between an occupied memory of a target application in the white list application and a device free memory when the target application is started, a memory cleaning page is output when the occupied memory is larger than the device free memory, so that a user cleans a device used memory, and when the occupied memory is smaller than or equal to the free memory, a reserved memory is opened by a used management program, so that the target application in the white list application can be started.
Further, referring to fig. 4, a third embodiment of the application management method of the present invention is proposed on the basis of the above-described embodiment of the present invention.
This embodiment is a step after step S13 in the first embodiment, and the present embodiment is different from the above-described embodiments of the present invention in that:
step S15, if the target application does not belong to the white list application set, counting the number of times that the target application fails to start.
In this embodiment, the target application does not belong to the white list application set, and the occupied memory of the target application when the target application is started is larger than the remaining available memory, that is, under the condition 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, and the target application fails to be started. According to a preset rule in the application management program, the target application can be requested to be started again after the start failure, the purpose of adding the preset rule in the application management program is that the device idle memory can be changed along with the situation that a user actively cleans the used memory or the device automatically cleans garbage files in the used memory, and under the situation that the idle memory is changed, the target application is started by being tried for many times, so that the target application is favorably used. The application management program counts the number of failed starts after the target application fails to start.
And 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 into a blacklist application set so as to make the target application unable to be started.
In this embodiment, a specific application scenario is given, as shown in table 1, the reserved memory is 100MB, the occupied memory when the target application is started is 60MB, when the target application is first requested to be started, the free memory of the device is 150MB, the remaining available memory is 50MB, the occupied memory when the target application is started is larger than the remaining available memory of the device, the target application fails to be started, after 0.1 second of the first target application failure, the target application requests to be started again, the device free memory is 148MB, the remaining available memory of the device is 52MB, the occupied memory when the target application is started is still larger than the remaining available memory of the device, the target application fails to be started again, and when the number of times of the target application failure is four, the application management program adds the target application to the blacklist application set, so that the target application cannot request to be started again.
In this embodiment, the number of times of the start failure of the target application is only illustrated by way of example, and the preset number of times is not limited.
Figure BDA0002257456210000101
TABLE 1
Specifically, after step S13, the method further includes:
step a1, if the target application does not belong to the white list application set, acquiring the current time and the preset starting time corresponding to the target application.
In this embodiment, the current time refers to the time when the application management program receives the application start request, the preset start time refers to one or more preset periods of time having a corresponding relationship with the target application, and the preset start time has a corresponding relationship with the target application, as shown in table 2, when the target application is a mei-qu takeaway, the preset start time corresponding to the mei-qu takeaway can be set to be 07:00-09:00,11:00-13:00, and 17:00-19:00, and basically corresponds to the time of three meals in daily life of people. The division of the preset on-time in this embodiment is not limited and specifically described.
Applications of Current time Preset time period
Internet music 10:45:25 18:00-07:00
Beauty group take-out 12:01:13 07:00-09:00,11:00-13:00,17:00-19:00
Youke 20:08:49 18:00-00:00
TABLE 2
Step a2, if the current time is within the preset starting time, starting the reserved memory and starting the target application.
As shown in table 2, a specific application scenario is provided in this embodiment, for example, the current time of starting the mei-qu takeout request is 12:01:13, the preset opening time corresponding to the mei-qu takeout request is 07:00-09:00,11:00-13:00,17:00-19:00, and if it is known that the current time of starting the mei-qu takeout request is within the preset opening time corresponding to the mei-qu takeout request, the application management program adds the mei-qu takeout request to the white list application set, so that the mei-qu takeout request can be started normally.
In this embodiment, the number of times of the target application start failure is counted, and it is determined that the current time of the target application request start is not within the preset start time having a corresponding relationship with the target application, so that the target application meeting the preset rule is added into the blacklist application set or added into the whitelist application set, thereby implementing rationality and flexibility of the whitelist application set and the blacklist application set.
Further, referring to fig. 5, a fourth embodiment of the application management method of the present invention is proposed on the basis of the above-described embodiment of the present invention.
This embodiment is a step after step S13 in the first embodiment, and the present embodiment is different from the above-described embodiments of the present invention in that:
step S131, if the target application does not belong to the white list application set, outputting a memory cleaning page.
In this embodiment, the memory cleaning page is a page output by the application management program and includes a memory cleaning method and a cleanable file, so that a user or a device can clean a used memory of the device according to the memory cleaning method, and the free memory is increased.
In this embodiment, the target application does not belong to the white list application set, and the occupied memory of the target application when the target application is started is larger than the remaining available memory, that is, under the condition 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, and the target application fails to be started. And the application management program outputs a memory cleaning page for a user or equipment to clean the used memory of the equipment, so that the free memory of the equipment is increased.
In step S132, when the memory clear command is received, the memory clear operation is executed.
The memory cleaning page is a page which is output by the application management program and comprises a memory cleaning method and a cleanable file, when a user cleans the used memory of the equipment according to the memory cleaning method in the memory cleaning page, the application management program receives a memory cleaning instruction, and after receiving the memory cleaning instruction, the application management program cleans the used memory of the equipment, so that a part of the used memory of the equipment is released.
Step S133, after the execution of the memory cleaning operation is completed, the target application is started.
After the used memory of the device is cleaned, the application management program acquires the cleaned remaining available memory, if the occupied memory of the target application when started is still larger than the cleaned remaining available memory, the application management program cleans the used memory of the device for the second time until the occupied memory of the target application when started is smaller than or equal to the cleaned remaining available memory, specifically, when the occupied memory of the target application when started after the first cleaning is still larger than the cleaned remaining available memory, the application management program outputs a method for cleaning more used memory of the device or closes a page of the target application, the user operates according to the page, and when the occupied memory of the target application when started is smaller than or equal to the cleaned remaining available memory, the target application is started.
In this embodiment, the used memory of the device is cleared, so that the remaining available memory of the device is increased, and normal starting of the application is realized.
Further, referring to fig. 6, a fifth embodiment of the application management method of the present invention is proposed on the basis of the above-described embodiment of the present invention.
This embodiment is a step after step S131 in the fourth embodiment, and the present embodiment is different from the above-described embodiments of the present invention in that:
in step S134, if the memory cleaning instruction is not received within the preset time period, user behavior data corresponding to the target application is obtained.
In this embodiment, the user behavior data refers to regular behaviors of the user based on some things, and the user behavior data corresponding to the target application reflects the attention degree of the user to the application to a certain extent, and includes: application browsing duration and application operating frequency.
Under the condition that the occupied memory is smaller than the free memory and is larger than or equal to the residual available memory, the application outside the white list application set cannot be started, but the application outside the white list application set which is requested to be started under the condition can also be the application which is needed by the user for a short time and is not added into the white list application set, and the method for measuring whether the user needs to start the target application or not is provided by acquiring the user behavior data corresponding to the target application.
Step S135, determining whether to add the target application to a white list application set according to the user behavior data.
In this embodiment, the user behavior data includes an application browsing duration and an application operating frequency, the application browsing duration is a sum of intervals at which the user opens the application to close the application each time in a unit time, and the application operating frequency is a number of times the user operates the application in the unit time. As shown in table 3, according to the behaviors of the two users to the target application, the application browsing duration and the application operating frequency, the attention degree of the user to the application can be measured.
Step S136, if the target application is added into the white list application set, the reserved memory is opened and the target application is started.
Figure BDA0002257456210000131
TABLE 3
After comprehensively measuring the attention degree of the user to the application according to the behaviors of the application browsing duration and the application operating frequency of the two users to the target application, adding the target application which the user may need to start into a white list application set according to the attention degree of the user to the application, so that the application management program starts a reserved memory and starts the target application.
Specifically, the step of step S135 refinement further includes:
and b1, acquiring the application browsing duration and the application operating frequency in the user behavior data.
In this embodiment, the user behavior data includes an application browsing duration and an application operating frequency, the application browsing duration is a sum of intervals at which the user opens the application to close the application each time in a unit time, and the application operating frequency is a number of times the user operates the application in the unit time. According to the behaviors of the two users to the target application, namely the application browsing time and the application operating frequency, the attention degree of the users to the application can be measured.
Step b2, querying a preset score mapping table, and acquiring a first score corresponding to the application browsing duration and a second score corresponding to the application operating frequency.
In this embodiment, the preset score mapping table is a preset mapping table for measuring the attention degree of the user to the application by the score, as shown in table 3. By obtaining the application browsing duration and the application operating frequency corresponding to the target application, a first score corresponding to the application browsing duration and a second score corresponding to the application operating frequency can be known.
And b3, taking the sum of the first score and the second score as a comprehensive score of the application, and judging whether the comprehensive score is larger than a preset threshold value.
The preset threshold value in this embodiment is a preset comprehensive score critical value, that is, when the comprehensive score corresponding to the target application is greater than the preset threshold value, it is determined that the target application is an application that the user pays attention to.
As shown in table 3, a specific application scenario is provided in this embodiment, for example, when the unit time is one week, the browsing duration of the user on the WeChat is 260 minutes, the operation frequency is 870 times, the browsing duration of the user on the Mei-Tuo is 100 minutes, the operation frequency is 200 times, the browsing duration of the user on the calendar is 20 minutes, and the operation frequency is 38 times, then the comprehensive score of the WeChat is 110, the comprehensive score of the Mei-Tuo is 60, and the comprehensive score of the calendar is 20, after obtaining the comprehensive scores corresponding to the applications, when an application request of one of the applications is started, the application management program will determine the magnitude relationship between the comprehensive score corresponding to each application and the preset threshold, and determine whether the application is an application that is a great concern of the user.
Step b4, if the comprehensive score is larger than the preset threshold, adding the target application into a white list application set.
As shown in table 3, if the preset threshold is 100, it can be known that the application with the comprehensive score greater than 100 only has a WeChat, the application management program adds the WeChat to the white list application set, and when the WeChat requests to start, the application management program starts the reserved memory to start the WeChat.
In the embodiment, the reasonability and flexibility of the white list application set are realized by acquiring the user behavior data corresponding to the target application and analyzing the user behavior data so as to add the application meeting the preset rule into the white list application set.
Referring to fig. 7, in a sixth embodiment of the application management method of the present invention, the application management method further includes:
in step S21, an application start instruction is received.
The application start instruction in this embodiment refers to an instruction generated when an application in the application management device requests to start, and the application start mode may be actively triggered by a user, for example, the user manually clicks the application, or the application start mode may be automatically triggered by the application management device, for example, the application management device allows the application to be self-started in a background. The present embodiment does not limit and explain in detail the manner of application start.
Step S22, determine whether the memory occupied by the application exceeds the current available memory of the system.
In this embodiment, the currently available memory of the system refers to a memory of the application management device other than the used memory of the system, that is, a result of subtracting the used memory of the device from the total memory of the device, for example, if the total memory of the device is 32GB, and the used memory is 28GB, the currently available memory of the system is 4 GB. The purpose of judging whether the memory occupied by the application exceeds the current available memory of the system is to determine whether the current available memory of the system meets the starting requirement of the application.
And step S23, if yes, judging whether the application belongs to a white list application set.
The white list application set in this embodiment is a set including some relatively important applications, and the setting of the important applications may be actively set by a user or automatically set by the device based on a certain rule, and the specific setting mode of the important applications is not limited and detailed in this embodiment.
And if the memory occupied by the application exceeds the current available memory of the system, namely the current available memory of the system cannot meet the starting of the application, under the condition, further judging whether the application belongs to the white list application set or not, and further determining the next execution action.
And step S24, if yes, releasing the memory and starting the application.
If the application belongs to the white list application set, namely the application is an important application, based on the technical problem to be solved by the scheme, the normal use of some important applications is ensured, and the application management equipment releases some used memories until the system available memory after the used memory is released is larger than or equal to the memory occupied by the application, namely the system available memory after the used memory is released meets the normal start of the application, and the application is started successfully.
Specifically, the step refined in step S24 further includes:
and c1, releasing blacklist application and/or other occupied memories and/or releasing preset reserved space, and starting the application.
In this embodiment, the blacklisted application refers to some applications that occupy a large amount of memory or are not considered to be important by the user when started, and the other occupied memories refer to memories that have been occupied by other programs in the application management device. Specifically, the step of releasing the memory of the used management device includes releasing other occupied memories and releasing the reserved space, the order is to release other occupied memories first, if the start of the white list application is not satisfied after the release, the reserved space is released again, and if the available memory of the system reaches a preset value after the device memory is released, the application management device also releases the black list application.
Specifically, the steps subsequent to step S24 further include:
and d1, if the application fails to start, prompting an error message.
If the device does not meet the requirement for starting the white list application after releasing the reserved space, that is, the device cannot start the white list application by automatically cleaning the used memory of the device, in this case, if the device wants to start the white list application, the device needs to manually clean the used memory of the device, specifically, the device can output information of application start errors on a display screen, the error information includes a prompt for failed application start and the used memory which can be cleaned and recommended by the device, and the user can perform corresponding operations according to the error information.
In this embodiment, when an application is started, an application management program obtains a memory occupied by the start of the application, and determines whether the application is a white list application, if the memory occupied by the application exceeds a 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 an already-used memory of the device, and if the automatically-released already-used memory still cannot satisfy the start of the application, error information is output to manually release the already-used memory by a user, and if the automatically-released already-used memory can satisfy the start of the application, the application management program releases the black list application to allow the application to start, thereby ensuring normal start of some important applications when the memory of the device is insufficient.
In addition, referring to fig. 8, an embodiment of the present invention further provides an application management apparatus, where the application management apparatus includes:
the detection module 10 is configured to set a reserved space in an idle memory and close the reserved space to obtain a remaining available memory when it is detected that the idle memory is less than or equal to a preset storage threshold;
the receiving module 20 is configured to determine, when an application start request is received, a target application corresponding to the application start request and an occupied memory when the target application is started;
a determining module 30, configured to determine whether the target application belongs to a white list application set when the occupied memory is greater than the remaining available memory;
the starting module 40 is configured to start the reserved memory and start the target application if the target application belongs to the white list application set;
cleaning module 50: the device comprises a memory cleaning device, a memory cleaning module and a control module, wherein the memory cleaning device is used for executing memory cleaning operation when receiving a memory cleaning instruction;
the management module 60: the application is added into a blacklist application set according to the application starting failure times; and/or adding the application to a white list application set according to application user behavior data.
The method executed by each program module can refer to each embodiment of the method of the present invention, and is not described herein again.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (16)

1. An application management method, characterized in that the application management method comprises the steps of:
s11: when detecting that the free memory is smaller than or equal to a preset storage threshold value, setting a reserved space in the free memory, and closing the reserved space to obtain a residual available memory;
s12: when an application starting request is received, determining a target application corresponding to the application starting request and an occupied memory when the target application is started;
s13: when the occupied memory is larger than the residual available memory, judging whether the target application belongs to a white list application set;
s14: and if the target application belongs to the white list application set, starting the reserved memory and starting the target application.
2. The application management method according to claim 1, wherein the step of S14 includes:
if the target application belongs to the white list application set, judging whether the occupied memory is larger than the idle memory;
if the occupied memory is larger than the idle memory, outputting a memory cleaning page;
and if the occupied memory is less than or equal to the idle memory, opening the reserved memory and starting the target application.
3. The application management method according to claim 1, wherein after the step of S13, comprising:
if the target application does not belong to the white list application set, counting the number of times of the target application failed to start;
and when the starting failure times are larger than or equal to the preset times, adding the target application into a blacklist application set so as to enable the target application not to be started.
4. The application management method according to claim 1, wherein after the step of S13, further comprising:
if the target application does not belong to the white list application set, acquiring the current time and the preset starting time corresponding to the target application;
and if the current time is within the preset starting time, starting the reserved memory and starting the target application.
5. The application management method according to claim 1, wherein after the step of S13, further comprising:
s131: if the target application does not belong to the white list application set, outputting a memory cleaning page;
s132: executing memory cleaning operation when receiving a memory cleaning instruction;
s133: and starting the target application after the execution of the memory cleaning operation is finished.
6. The application management method according to claim 5, wherein after the step of S131, comprising:
if the memory cleaning instruction is not received within the preset time period, acquiring user behavior data corresponding to the target application;
judging whether the target application is added into a white list application set or not according to the user behavior data;
and if the target application is added into the white list application set, opening the reserved memory and starting the target application.
7. The application management method of claim 6, wherein the step of determining whether to add the target application to a white-list application set according to the user behavior data comprises:
acquiring application browsing duration and application operating frequency in user behavior data;
inquiring a preset score mapping table, and acquiring a first score corresponding to the application browsing duration and a second score corresponding to the application operating frequency;
taking the sum of the first score and the second score as a comprehensive score of the application, and judging whether the comprehensive score is greater than a preset threshold value;
and if the comprehensive score is larger than the preset threshold value, adding the target application into a white list application set.
8. An application management method, characterized in that the application management method comprises the steps of:
s21: receiving an application starting instruction;
s22: judging whether the memory occupied by the application exceeds the current available memory of the system;
s23: if yes, judging whether the application belongs to a white list application set or not;
s24: and if so, releasing the memory and starting the application.
9. The application management method according to claim 8, wherein the step S22 includes: the current available memory of the system comprises a free memory and/or a preset reserved space;
the step S24 includes: and if so, releasing the preset reserved space and/or other occupied memories, and starting the application.
10. The application management method according to claim 8, wherein the step 24 comprises: and if so, releasing the blacklist application and/or other occupied memories, and starting the application.
11. The application management method according to any of claims 8 to 10, characterized in that said step 24 is followed by: and if the application fails to be started, prompting error information.
12. An application management apparatus, characterized in that the application management apparatus comprises:
the detection module is used for setting a reserved space in the idle memory and closing the reserved space to obtain the residual available memory when detecting that the idle memory is smaller than or equal to a preset storage threshold;
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for determining a target application corresponding to an application starting request and an occupied memory when the target application is started when the application starting request is received;
the judging module is used for judging whether the target application belongs to a white list application set or not when the occupied memory is larger than the residual available memory;
and the starting module is used for starting the reserved memory and starting the target application if the target application belongs to the white list application set.
13. The application management apparatus according to claim 12, wherein the application management apparatus further comprises:
a cleaning module: and the processor is used for executing the memory cleaning operation when receiving the memory cleaning instruction.
14. The application management apparatus according to claim 12 or 13, wherein the application management apparatus further comprises:
a management module: the application is added into a blacklist application set according to the application starting failure times; and/or adding the application to a white list application set according to application user behavior data.
15. An application management device, characterized in that the application management device comprises: memory, a processor and an application manager stored on the memory and executable on the processor, the application manager when executed by the processor implementing the steps of the application management method according to any of claims 1 to 7 or claims 8 to 11.
16. A computer-readable storage medium, characterized in that an application management program is stored on the computer-readable storage medium, which application management program, when executed by a processor, carries out the steps of the application management method according to any one of claims 1 to 7 or claims 8 to 11.
CN201911059367.XA 2019-11-01 2019-11-01 Application management method, device, equipment and readable storage medium Pending CN110825509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911059367.XA CN110825509A (en) 2019-11-01 2019-11-01 Application management method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911059367.XA CN110825509A (en) 2019-11-01 2019-11-01 Application management method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN110825509A true CN110825509A (en) 2020-02-21

Family

ID=69551898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911059367.XA Pending CN110825509A (en) 2019-11-01 2019-11-01 Application management method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110825509A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756922A (en) * 2020-06-15 2020-10-09 北京智明星通科技股份有限公司 Method and system for running mobile phone game and game terminal
CN113495789A (en) * 2020-04-08 2021-10-12 大唐移动通信设备有限公司 Memory allocation method and device
WO2022032668A1 (en) * 2020-08-14 2022-02-17 深圳传音控股股份有限公司 Application management method and apparatus, and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495789A (en) * 2020-04-08 2021-10-12 大唐移动通信设备有限公司 Memory allocation method and device
CN113495789B (en) * 2020-04-08 2024-02-13 大唐移动通信设备有限公司 Memory allocation method and device
CN111756922A (en) * 2020-06-15 2020-10-09 北京智明星通科技股份有限公司 Method and system for running mobile phone game and game terminal
WO2022032668A1 (en) * 2020-08-14 2022-02-17 深圳传音控股股份有限公司 Application management method and apparatus, and storage medium

Similar Documents

Publication Publication Date Title
US11099900B2 (en) Memory reclamation method and apparatus
CN105929925B (en) Electronic device and method for managing power in electronic device
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
US11429439B2 (en) Task scheduling based on performance control conditions for multiple processing units
CN107276789B (en) Log uploading method and device and computer readable storage medium
WO2019228156A1 (en) Method and device for preloading application, storage medium and intelligent terminal
RU2633151C2 (en) Method and device for updating firmware
EP3502878B1 (en) Method for preloading application and terminal device
CN109429102B (en) Electronic device and server for displaying applications
CN110825509A (en) Application management method, device, equipment and readable storage medium
US10354077B2 (en) Permission control method and electronic device operating the same
US9645914B1 (en) Apps store with integrated test support
KR102536266B1 (en) Method for memory leak detection and electronic device thereof
KR20170001393A (en) Method for using external device according to context of electronic device and electronic device thereof
CN109684573B (en) Target picture display method and device, storage medium and electronic equipment
CN109117153B (en) Application processing method, device, terminal and storage medium
US20160197987A1 (en) Method for supporting situation specific information sharing and electronic device supporting the same
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN111381953B (en) Process management method and device, storage medium and electronic equipment
CN115225966B (en) Application starting method, device, terminal equipment and storage medium
CN107066270B (en) Information acquisition method and terminal
CN106302821B (en) Data request method and equipment thereof
CN112534409A (en) Electronic device and operation method thereof
CN112799803B (en) Micro-service architecture operation maintenance method, device, equipment and readable storage medium
US20170085723A1 (en) Electronic device and content transmitting and receiving method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination