CN107038074B - Memory optimization device and method based on association strategy - Google Patents

Memory optimization device and method based on association strategy Download PDF

Info

Publication number
CN107038074B
CN107038074B CN201710247786.0A CN201710247786A CN107038074B CN 107038074 B CN107038074 B CN 107038074B CN 201710247786 A CN201710247786 A CN 201710247786A CN 107038074 B CN107038074 B CN 107038074B
Authority
CN
China
Prior art keywords
application
data table
memory
running
cleaned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710247786.0A
Other languages
Chinese (zh)
Other versions
CN107038074A (en
Inventor
周龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710247786.0A priority Critical patent/CN107038074B/en
Publication of CN107038074A publication Critical patent/CN107038074A/en
Application granted granted Critical
Publication of CN107038074B publication Critical patent/CN107038074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/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

Abstract

The invention discloses a memory optimization device and a method, wherein the memory optimization method comprises the following steps: scanning the running application in the memory at intervals of preset time, and establishing an associated application data table of the running application according to a scanning result and a preset associated data table; when the mobile terminal is detected to be in an application installation state, extracting feature information of the currently installed application; establishing an associated application data table of the current installation application according to the characteristic information and a preset rule; and determining an application to be cleaned in the running application according to the associated application data table of the running application and the associated application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned. The invention can optimize the memory resource of the mobile terminal and reduce the occurrence of the situations of pause, short-time screen blacking or flash quitting.

Description

Memory optimization device and method based on association strategy
Technical Field
The present invention relates to the field of memory management technologies, and in particular, to a memory optimization device and method based on an association policy.
Background
With the popularization of mobile terminals and the close relationship between applications based on mobile terminals and people's daily life, more applications are usually installed on the mobile terminals of users. However, as the number of applications opened by the user increases and the applications are not closed in time after the applications are used up, the available capacity of the memory of the mobile terminal is insufficient.
Because the memory of the mobile terminal does not have dynamic expansibility, the memory capacity of the mobile terminal of the user is the size of the memory when the mobile terminal leaves a factory. When a user opens too many applications and does not close the applications in time for memory release, the memory resources that can be applied by the applications that are opened or installed later become more and more limited because the limited memory resources are already occupied.
When the memory is insufficient and the user installs the application, the mobile terminal is triggered to forcibly recycle the memory resources, the user can install the application only after the forced recycling of the memory resources by the mobile terminal is completed, and the problems of blocking, short-time black screen or flash back and the like are easily caused in the process of forcibly recycling the memory by the mobile terminal.
Disclosure of Invention
The invention mainly aims to provide a device and a method for optimizing a memory based on an association strategy, and aims to solve the technical problems of blockage, short-time screen blacking or flash backing caused by insufficient memory resources.
In order to achieve the above object, the present invention provides an association policy-based memory optimization device, which is applied to a mobile terminal, and includes:
the scanning processing module is used for scanning the running application in the memory at intervals of preset time and establishing an associated application data table of the running application according to a scanning result and a preset associated data table;
the detection extraction module is used for extracting the characteristic information of the currently installed application when the mobile terminal is detected to be in the application installation state;
the processing module is used for establishing an associated application data table of the current installation application according to the characteristic information and a preset rule;
and the determining control module is used for determining the application to be cleaned in the running application according to the associated application data table of the running application and the associated application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
Optionally, the processing module includes:
the establishing unit is used for establishing a first associated application data table of the current installation application according to the characteristic information;
the scanning establishing unit is used for scanning the code segment and the data segment of the currently installed application according to a preset rule so as to establish a second associated application data table of the currently installed application;
the establishing unit is further configured to establish an associated application data table of the currently installed application according to the first associated application data table and the second associated application data table.
Optionally, the determination control module includes:
the extraction unit is used for extracting non-associated running applications which are not in the associated application data table of the running applications and the associated application data table of the currently installed applications from the running applications;
the extracting unit is further configured to extract the associated application in a preset blacklist from the associated application data table of the running application and the associated application data table of the currently installed application;
the determining unit is used for determining the application to be cleaned according to the non-associated running application and the associated application;
and the control unit is used for controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
Optionally, the memory optimization apparatus further includes:
the query module is used for querying the number of the running applications in the memory when the applications are started;
the scanning processing module is further configured to scan a code segment and a data segment of a currently opened application according to a preset rule to establish an associated data table of the opened application when the number of running applications in the memory is greater than or equal to a preset number;
the determining control module is used for determining the application to be cleaned in the running application according to the associated application data table of the running application and the associated data table of the opened application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
Optionally, the memory optimization apparatus further includes:
the determining module is used for determining the residual resources of the memory according to the scanning result;
the acquisition module is used for acquiring the starting time of the running application when the residual resources of the memory are less than or equal to a preset value;
the determining control module is used for determining an application to be cleaned in the running application according to the starting time and the associated application data table of the running application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
In addition, in order to achieve the above object, the present invention further provides a memory optimization method based on an association policy, where the memory optimization method based on the association policy is applied to a mobile terminal, and the memory optimization method based on the association policy includes the following steps:
scanning the running application in the memory at intervals of preset time, and establishing an associated application data table of the running application according to a scanning result and a preset associated data table;
when the mobile terminal is detected to be in an application installation state, extracting feature information of the currently installed application;
establishing an associated application data table of the current installation application according to the characteristic information and a preset rule;
and determining an application to be cleaned in the running application according to the associated application data table of the running application and the associated application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
Optionally, the step of establishing an associated application data table of the currently installed application according to the feature information and a preset rule includes:
establishing a first associated application data table of the current installation application according to the characteristic information;
scanning a code segment and a data segment of the currently installed application according to a preset rule to establish a second associated application data table of the currently installed application;
and establishing an associated application data table of the current installation application according to the first associated application data table and the second associated application data table.
Optionally, the step of determining an application to be cleaned in the running application according to the relevant application data table of the running application and the relevant application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned to release the memory resource occupied by the application to be cleaned includes:
extracting non-associated running applications which are not in the associated application data table of the running applications and the associated application data table of the currently installed applications from the running applications;
extracting the associated application in a preset blacklist from the associated application data table of the running application and the associated application data table of the currently installed application;
determining an application to be cleaned according to the non-associated running application and the associated application;
and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
Optionally, after the step of scanning the running application in the memory at preset intervals and establishing the associated application data table of the running application according to the scanning result and the preset associated data table, the method for optimizing the memory based on the association policy further includes:
when the application is started, the number of the running applications in the memory is inquired;
when the number of the running applications in the memory is larger than or equal to the preset number, scanning a code segment and a data segment of the currently opened application according to a preset rule to establish an associated data table of the opened application;
and determining an application to be cleaned in the running application according to the associated application data table of the running application and the associated data table of the started application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
Optionally, after the step of scanning the running application in the memory at preset intervals and establishing the associated application data table of the running application according to the scanning result and the preset associated data table, the method for optimizing the memory based on the association policy further includes:
determining the residual resources of the memory according to the scanning result;
when the residual resources of the memory are less than or equal to a preset value, acquiring the starting time of the running application;
and determining an application to be cleaned in the running application according to the opening time and the associated application data table of the running application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
The method comprises the steps of scanning running applications in a memory at intervals of preset time, establishing a related application data table of the running applications according to a scanning result and a preset related data table, extracting characteristic information of currently installed applications when a mobile terminal is detected to be in an application installation state, establishing a related application data table of the currently installed applications according to the characteristic information and preset rules, determining applications to be cleaned in the running applications according to the related application data table of the running applications and the related application data table of the currently installed applications, controlling the mobile terminal to close the applications to be cleaned to release occupied memory resources, circularly scanning the memory to obtain the related application data table of the running applications in the memory, and establishing the related application data table of the currently installed applications when the application installation is detected, so that the memories are cleaned according to the related application data table of the running applications and the related application data table of the currently installed applications And releasing the memory resources occupied by the non-associated application, thereby completing the cleaning of the memory resources, providing enough memory resources for the subsequently started or installed application, and reducing the occurrence of the situations of blockage, short-time screen blacking or flash backing and the like.
Drawings
Fig. 1 is a schematic diagram of an alternative hardware configuration of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a functional block diagram of a first embodiment of a memory optimization device based on association policy according to the present invention;
FIG. 3 is a schematic diagram of a refinement function module of the processing module shown in FIG. 2;
FIG. 4 is a block diagram illustrating a detailed function of the determination control module according to a second embodiment of the present invention;
FIG. 5 is a functional block diagram of a memory optimization device based on association policy according to a third embodiment of the present invention;
FIG. 6 is a functional block diagram of a memory optimization device based on an association policy according to a fourth embodiment of the present invention;
FIG. 7 is a flowchart illustrating a first embodiment of a method for optimizing a memory based on an association policy according to the present invention;
FIG. 8 is a detailed flowchart of the step of establishing the associated application data table of the currently installed application according to the feature information and the preset rule in FIG. 7;
fig. 9 is a detailed flowchart of the step of determining an application to be cleaned in an operating application according to the associated application data table of the operating application and the associated application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned in the second embodiment of the present invention;
FIG. 10 is a flowchart illustrating a memory optimization method based on association policy according to a third embodiment of the present invention;
fig. 11 is a flowchart illustrating a memory optimization method based on an association policy according to a fourth 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.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. 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 themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication device or network. For example, the wireless communication unit may include at least one of a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd so on.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module 115 is a GPS (global positioning device). According to the current technology, the GPS calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS can calculate speed information by continuously calculating current position information in real time.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or jerky movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a microphone, a buzzer, and the like.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the memory optimization device based on the association policy.
Referring to fig. 3, in a first embodiment of the association policy based memory optimization device of the present invention, the association policy based memory optimization device includes:
the scanning processing module 10 is configured to scan the running application in the memory at preset intervals, and establish an associated application data table of the running application according to a scanning result and a preset associated data table;
it should be noted that the memory optimization device based on the association policy provided by the present invention implements functions based on the mobile terminal shown in fig. 1. The mobile terminal comprises a smart phone, a tablet computer and the like, scans running applications in a memory at intervals of preset time through a scanning module 10, monitors the real-time situation of the running applications which are loaded into the memory and apply resources to the memory in real time, applies resources to the memory by related applications of the running applications, compares the scanning result, namely the running applications, with a preset related data table, and marks related applications and related service information which are depended by application processes running in the current memory so as to establish a related application data table of the running applications in the current memory. The preset associated data table comprises a core service data table, a non-core service data table and a third-party service data table, and further comprises an application classification table. The classification subjects in the application classification chart include game, audio-visual entertainment, utility, social communication, education, news reading, shooting beautification, food, travel navigation, travel accommodation, shopping price, business, children, financial, sports, convenient life, car and theme personality and the like. The preset time can be 1 second, 2 seconds or 5 seconds, and the preset time can be set according to the needs of the user. In specific implementation, a setting control of preset time can be set in the mobile terminal, when a user touches the setting control, the mobile terminal displays a setting interface of the preset time, the user can set the preset time on the setting interface, and the preset time is saved after the setting is completed.
The detection extraction module 20 is configured to extract feature information of a currently installed application when it is detected that the mobile terminal is in an application installation state;
the processing module 30 is configured to establish an associated application data table of the currently installed application according to the feature information and a preset rule;
the detection and extraction module 20 detects whether the mobile terminal is in an application installation state, that is, whether an application is installed in the mobile terminal, and when the detection and extraction module 20 detects that an application is installed in the mobile terminal, that is, the mobile terminal is in the application installation state, the detection and extraction module extracts feature information of the currently installed application, where the feature information includes name information, classification information, and the like of the currently installed application. After extracting the obtained feature information, the processing module 30 establishes an associated application data table of the currently installed application according to the feature information and a preset rule. Specifically, referring to fig. 3, fig. 3 is a schematic diagram of a detailed functional module of the processing module 30 in fig. 2, where the processing module 30 includes:
the establishing unit 31 is configured to establish a first associated application data table of the currently installed application according to the feature information;
the scanning establishing unit 32 is configured to scan the code segments and the data segments of the currently installed application according to a preset rule to establish a second associated application data table of the currently installed application;
the establishing unit 31 is further configured to establish an associated application data table of the currently installed application according to the first associated application data table and the second associated application data table.
Firstly, the mobile terminal establishes a first associated application data table of the current installation application according to a preset associated data table and the characteristic information of the current installation application, namely, acquiring the associated data from the preset associated data table according to the name information and the classification information of the currently installed application, establishing a first associated application data table of the currently installed application, and then, after obtaining the first associated application data table, the mobile terminal scans the code segment and the data segment of the currently installed application according to a preset rule so as to obtain the associated application, establishing a second associated application data table of the current installation application, finally determining the associated application data table of the current installation application according to the first associated application data table and the second associated application data table, namely, the intersection of the first associated application data table and the second associated data table is taken as the associated application data table of the currently installed application. In specific implementation, the preset associated data table, the associated application data table of the currently installed application, and the associated application data table of the running application may be stored in a fixed area in the memory of the mobile terminal, so as to improve the reliability of data. In another specific implementation, the preset associated data table is established based on big data, repeated tests and experimental analysis and stored in the memory and the cloud server, and the cloud server collects and stores related data, updates and optimizes the preset associated data table, and issues the updated and optimized preset associated data table to the mobile terminal, so as to cover the historical preset associated data table.
The preset rules include a first rule, a second rule, a third rule, a fourth rule and the like, the first rule is a scan function startActivity and a function startActityForResult, the component values (component values) of the parameter entries in the two functions are detected, the second rule is a scan function startService and a function bindService, the component values (component values) of the parameter entries in the two functions are detected, the third rule is a scan function sendBroadcast, a function sendOrderedBroadcast and a function sendStickyBroadcast, the component values (component values) of the parameter entries in the three functions are detected, the fourth rule is a method call of a scan function ContResolver object query, insert, delete and update, the value of the parameter Uri in the four method calls is detected, a component value list is obtained, then the component values in the component value list are compared, if the component values in the application are not in the application class, the application class is not in the application system, and the application class is not in the application class, and the application class is not in the system, and the application class is not in the application class, the application that the component value can launch is the application associated with the currently installed application, thereby creating an associated application data table for the currently installed application.
And the determining control module 40 is configured to determine an application to be cleaned in the running application according to the associated application data table of the running application and the associated application data table of the currently installed application, and control the mobile terminal to close the application to be cleaned to release the memory resource occupied by the application to be cleaned.
After the mobile terminal queries the running application process in the memory, the determination control module 40 determines the application to be cleaned in the running application process according to the associated application data table of the running application and the associated application data table of the currently installed application, and controls the mobile terminal to close the application to be cleaned to release the memory resource occupied by the application to be cleaned, so that the current memory resource is optimized, and sufficient memory resource is provided for the installed application. In specific implementation, after the application to be closed is determined, the running application needing to be cleaned is further screened out according to the core service data table, the non-core service data table and the third-party service data table, and the core service necessary for running of the mobile terminal is reserved, so that the mobile terminal can work normally. In another embodiment, a switch control for memory resource cleaning may be set in the mobile terminal, and when the switch control is in an on state, the mobile terminal may perform memory resource cleaning according to the present invention, and when the switch control is in an off state, the mobile terminal may not perform memory resource cleaning.
In this embodiment, the present invention scans the running application in the memory at preset time intervals, establishes the associated application data table of the running application according to the scanning result and the preset associated data table, extracts the feature information of the currently installed application when detecting that the mobile terminal is in the application installation state, establishes the associated application data table of the currently installed application according to the feature information and the preset rule, determines the application to be cleared in the running application according to the associated application data table of the running application and the associated application data table of the currently installed application, and controls the mobile terminal to close the application to be cleared to release occupied memory resources, and the present invention obtains the associated application data table of the running application in the memory by circularly scanning the memory, and establishes the associated application data table of the currently installed application when detecting that the application is installed, therefore, the memory is cleaned according to the associated application data table of the running application and the associated application data table of the currently installed application, and the memory resources occupied by the non-associated application are released, so that the cleaning of the memory resources is completed, sufficient memory resources are provided for the subsequently started or installed application, and the occurrence of the situations of blockage, short-time black screen or flash back and the like is reduced.
Further, referring to fig. 4, a second embodiment of the memory optimization device based on the association policy according to the present invention is proposed based on the above first embodiment, and the difference between the second embodiment and the foregoing embodiment is that, in this embodiment, the determination control module 40 includes:
an extracting unit 41, configured to extract, from running applications, non-associated running applications that are not in an associated application data table of the running applications and an associated application data table of a currently installed application;
the extracting unit 41 is further configured to extract the associated application in a preset blacklist from the associated application data table of the running application and the associated application data table of the currently installed application;
a determining unit 42, configured to determine an application to be cleaned according to the non-associated running application and the associated application;
a control unit 43, configured to control the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
After the mobile terminal establishes the associated application data table of the running application and the associated application data table of the currently installed application, the mobile terminal extracts, through the advancing unit 41, the application process that is not in the associated application data table of the running application and the associated application data table of the currently installed application, that is, the non-associated running application, from the application process that is currently running and the associated application data table of the currently installed application, extracts the associated application that is in the preset blacklist from the associated application data table of the running application and the associated application data table of the currently installed application, then the determining unit 42 determines the application to be cleaned according to the non-associated running application and the associated application, that is, the application to be cleaned includes the non-associated application and the associated application that is in the blacklist, and finally, the mobile terminal is controlled by the control unit 43 to close the application to be cleaned to release the occupied memory.
In this embodiment, the method extracts the associated application in the blacklist from the associated application data table while obtaining the non-associated running application of the associated application data table not in the running application and the associated application data table of the currently installed application, and further determines the application to be cleaned, that is, enlarges the cleaning range, releases more occupied memory resources, and further optimizes memory resources.
Further, referring to fig. 5, a third embodiment of the memory optimization device based on association policy according to the present invention is proposed based on the first or second embodiment, and the difference between the third embodiment and the foregoing embodiment is that in this embodiment, the memory optimization device based on association policy further includes:
the query module 50 is configured to query the number of applications running in the memory when the applications are started;
the scanning processing module 10 is further configured to scan a code segment and a data segment of a currently opened application according to a preset rule to establish an associated data table of the opened application when the number of running applications in the memory is greater than or equal to a preset number;
the determining control module 40 is configured to determine an application to be cleaned in the running application according to the associated application data table of the running application and the associated data table of the open application, and control the mobile terminal to close the application to be cleaned to release the memory resource occupied by the application to be cleaned.
The user clicks the icon of the application to trigger an opening instruction of the application, when the mobile terminal receives the opening instruction, the number of the running applications in the memory is inquired through the inquiry module 50, and when the number of the running applications in the memory is larger than or equal to the preset number, the code segment and the data segment of the currently-opened application are scanned according to the preset rule to establish the associated data table of the currently-opened application, then the application to be cleaned in the running application is determined according to the associated application data table of the running application and the associated data table of the currently-opened application, and the mobile terminal is controlled to close the application to be cleaned to release occupied memory resources.
In this embodiment, when the application is started, the number of the running applications in the memory is queried, and when the number of the running applications exceeds the preset number, the mobile terminal cleans up the memory resources, so that sufficient memory resources are provided for the currently started application, and the cleaning frequency of the mobile terminal is also reduced.
Further, referring to fig. 6, a fourth embodiment of the memory optimization device based on association policy of the present invention is proposed based on the first, second, or third embodiment, and the difference between the fourth embodiment and the foregoing embodiments is that in this embodiment, the memory optimization device based on association policy further includes:
a determining module 60, configured to determine remaining resources of the memory according to the scanning result;
the obtaining module 70 obtains the starting time of the running application when the remaining resources of the memory are smaller than the preset value;
the determining control module 40 is configured to determine an application to be cleaned in the running application according to the starting time and the associated application data table of the running application, and control the mobile terminal to close the application to be cleaned to release the memory resource occupied by the application to be cleaned.
After the mobile terminal scans the running applications in the memory at intervals of preset time, the determining module 60 determines the remaining resources of the memory in the mobile terminal according to the scanning result, when the remaining resources of the memory are less than or equal to the preset value, the obtaining module 70 obtains the opening time of the running applications, sorts the running applications according to the sequence of the opening time, calculates the memory resources occupied by each running application and the associated applications, adds the occupied memory resources according to the sequence of the sorting, when the occupied memory resources obtained by adding are greater than or equal to the difference value between the remaining resources and the preset value, records the added running applications, namely determines the applications to be cleaned, and finally controls the mobile terminal to close the applications to be cleaned, thereby releasing the occupied memory resources. In specific implementation, the corresponding running applications and the associated applications in the associated application data table may also be closed according to the sequencing order to release the memory resources until the remaining resources of the memory are greater than the preset value.
In this embodiment, after scanning the running application in the memory at preset intervals, the present invention determines the remaining resources of the memory according to the scanning result, and when the remaining resources of the memory are insufficient, obtains the open time of the running application, and then closes the unnecessary application with a longer open time, until the remaining resources of the memory are greater than the preset value, the mobile terminal can automatically clean the memory without manually cleaning the memory by a user.
The present invention further provides a memory optimization method based on association policy, which is executed by the memory optimization device based on association policy shown in fig. 2, and with reference to fig. 2 and fig. 7, and corresponds to the first embodiment of the memory optimization device based on association policy of the present invention, in the first embodiment of the memory optimization method based on association policy of the present invention, the memory optimization method based on association policy includes:
step S10, scanning the running application in the memory at preset time intervals, and establishing an associated application data table of the running application according to the scanning result and a preset associated data table;
it should be noted that the memory optimization device based on the association policy provided by the present invention implements functions based on the mobile terminal shown in fig. 1. The mobile terminal comprises a smart phone, a tablet computer and the like, scans running applications in a memory at intervals of preset time through a scanning module 10, monitors the real-time situation of the running applications which are loaded into the memory and apply resources to the memory in real time, applies resources to the memory by related applications of the running applications, compares the scanning result, namely the running applications, with a preset related data table, and marks related applications and related service information which are depended by application processes running in the current memory so as to establish a related application data table of the running applications in the current memory. The preset associated data table comprises a core service data table, a non-core service data table and a third-party service data table, and further comprises an application classification table. The classification subjects in the application classification chart include game, audio-visual entertainment, utility, social communication, education, news reading, shooting beautification, food, travel navigation, travel accommodation, shopping price, business, children, financial, sports, convenient life, car and theme personality and the like. The preset time can be 1 second, 2 seconds or 5 seconds, and the preset time can be set according to the needs of the user. In specific implementation, a setting control of preset time can be set in the mobile terminal, when a user touches the setting control, the mobile terminal displays a setting interface of the preset time, the user can set the preset time on the setting interface, and the preset time is saved after the setting is completed.
Step S20, when detecting that the mobile terminal is in the application installation state, extracting the characteristic information of the current installation application;
step S30, establishing a related application data table of the current installation application according to the characteristic information and a preset rule;
the detection and extraction module 20 detects whether the mobile terminal is in an application installation state, that is, whether an application is installed in the mobile terminal, and when the detection and extraction module 20 detects that an application is installed in the mobile terminal, that is, the mobile terminal is in the application installation state, the detection and extraction module extracts feature information of the currently installed application, where the feature information includes name information, classification information, and the like of the currently installed application. After extracting the obtained feature information, the processing module 30 establishes an associated application data table of the currently installed application according to the feature information and a preset rule. Specifically, referring to fig. 8, fig. 8 is a detailed flowchart of step S30 in fig. 7, where the step S30 includes:
step S31, establishing a first associated application data table of the current installation application according to the characteristic information;
step S32, scanning the code segment and the data segment of the current installation application according to the preset rule to establish a second associated application data table of the current installation application;
step S33, establishing an associated application data table of the currently installed application according to the first associated application data table and the second associated application data table.
Firstly, the mobile terminal establishes a first associated application data table of the current installation application according to a preset associated data table and the characteristic information of the current installation application, namely, acquiring the associated data from the preset associated data table according to the name information and the classification information of the currently installed application, establishing a first associated application data table of the currently installed application, and then, after obtaining the first associated application data table, the mobile terminal scans the code segment and the data segment of the currently installed application according to a preset rule so as to obtain the associated application, establishing a second associated application data table of the current installation application, finally determining the associated application data table of the current installation application according to the first associated application data table and the second associated application data table, namely, the intersection of the first associated application data table and the second associated data table is taken as the associated application data table of the currently installed application. In specific implementation, the preset associated data table, the associated application data table of the currently installed application, and the associated application data table of the running application may be stored in a fixed area in the memory of the mobile terminal, so as to improve the reliability of data. In another specific implementation, the preset associated data table is established based on big data, repeated tests and experimental analysis and stored in the memory and the cloud server, and the cloud server collects and stores related data, updates and optimizes the preset associated data table, and issues the updated and optimized preset associated data table to the mobile terminal, so as to cover the historical preset associated data table.
The preset rules include a first rule, a second rule, a third rule, a fourth rule and the like, the first rule is a scan function startActivity and a function startActityForResult, the component values (component values) of the parameter entries in the two functions are detected, the second rule is a scan function startService and a function bindService, the component values (component values) of the parameter entries in the two functions are detected, the third rule is a scan function sendBroadcast, a function sendOrderedBroadcast and a function sendStickyBroadcast, the component values (component values) of the parameter entries in the three functions are detected, the fourth rule is a method call of a scan function ContResolver object query, insert, delete and update, the value of the parameter Uri in the four method calls is detected, a component value list is obtained, then the component values in the component value list are compared, if the component values in the application are not in the application class, the application class is not in the application system, and the application class is not in the application class, and the application class is not in the system, and the application class is not in the application class, the application that the component value can launch is the application associated with the currently installed application, thereby creating an associated application data table for the currently installed application.
Step S40, determining an application to be cleaned in the running application according to the relevant application data table of the running application and the relevant application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned to release the memory resource occupied by the application to be cleaned.
After the mobile terminal queries the running application process in the memory, the determination control module 40 determines the application to be cleaned in the running application process according to the associated application data table of the running application and the associated application data table of the currently installed application, and controls the mobile terminal to close the application to be cleaned to release the memory resource occupied by the application to be cleaned, so that the current memory resource is optimized, and sufficient memory resource is provided for the installed application. In specific implementation, after the application to be closed is determined, the running application needing to be cleaned is further screened out according to the core service data table, the non-core service data table and the third-party service data table, and the core service necessary for running of the mobile terminal is reserved, so that the mobile terminal can work normally. In another embodiment, a switch control for memory resource cleaning may be set in the mobile terminal, and when the switch control is in an on state, the mobile terminal may perform memory resource cleaning according to the present invention, and when the switch control is in an off state, the mobile terminal may not perform memory resource cleaning.
In this embodiment, the present invention scans the running application in the memory at preset time intervals, establishes the associated application data table of the running application according to the scanning result and the preset associated data table, extracts the feature information of the currently installed application when detecting that the mobile terminal is in the application installation state, establishes the associated application data table of the currently installed application according to the feature information and the preset rule, determines the application to be cleared in the running application according to the associated application data table of the running application and the associated application data table of the currently installed application, and controls the mobile terminal to close the application to be cleared to release occupied memory resources, and the present invention obtains the associated application data table of the running application in the memory by circularly scanning the memory, and establishes the associated application data table of the currently installed application when detecting that the application is installed, therefore, the memory is cleaned according to the associated application data table of the running application and the associated application data table of the currently installed application, and the memory resources occupied by the non-associated application are released, so that the cleaning of the memory resources is completed, sufficient memory resources are provided for the subsequently started or installed application, and the occurrence of the situations of blockage, short-time black screen or flash back and the like is reduced.
Further, referring to fig. 9, a second embodiment of the method for optimizing a memory based on an association policy according to the present invention is provided based on the first embodiment, and the difference from the foregoing embodiment is that, in this embodiment, the step S40 includes:
step S41, extracting non-associated running applications which are not in the associated application data table of the running applications and the associated application data table of the currently installed applications from the running applications;
step S42, extracting the relevant application in the preset blacklist from the relevant application data table of the running application and the relevant application data table of the current installation application;
step S43, determining an application to be cleaned according to the non-associated running application and the associated application;
and step S44, controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
After the mobile terminal establishes the associated application data table of the running application and the associated application data table of the currently installed application, the mobile terminal extracts, through the advancing unit 41, the application process that is not in the associated application data table of the running application and the associated application data table of the currently installed application, that is, the non-associated running application, from the application process that is currently running and the associated application data table of the currently installed application, extracts the associated application that is in the preset blacklist from the associated application data table of the running application and the associated application data table of the currently installed application, then the determining unit 42 determines the application to be cleaned according to the non-associated running application and the associated application, that is, the application to be cleaned includes the non-associated application and the associated application that is in the blacklist, and finally, the mobile terminal is controlled by the control unit 43 to close the application to be cleaned to release the occupied memory.
In this embodiment, the method extracts the associated application in the blacklist from the associated application data table while obtaining the non-associated running application of the associated application data table not in the running application and the associated application data table of the currently installed application, and further determines the application to be cleaned, that is, enlarges the cleaning range, releases more occupied memory resources, and further optimizes memory resources.
Further, referring to fig. 10, a third embodiment of the memory optimization method based on the association policy according to the present invention is proposed based on the foregoing first or second embodiment, and the difference from the foregoing embodiment is that, in this embodiment, after step S10, the memory optimization method based on the association policy further includes:
step S50, when opening the application, inquiring the number of the running applications in the memory;
step S60, when the number of the running applications in the memory is larger than or equal to the preset number, scanning the code segment and the data segment of the currently opened application according to the preset rule to establish the associated data table of the opened application;
step S70, determining an application to be cleaned in the running application according to the associated application data table of the running application and the associated data table of the open application, and controlling the mobile terminal to close the application to be cleaned to release the memory resource occupied by the application to be cleaned.
The user clicks the icon of the application to trigger an opening instruction of the application, when the mobile terminal receives the opening instruction, the number of the running applications in the memory is inquired through the inquiry module 50, and when the number of the running applications in the memory is larger than or equal to the preset number, the code segment and the data segment of the currently-opened application are scanned according to the preset rule to establish the associated data table of the currently-opened application, then the application to be cleaned in the running application is determined according to the associated application data table of the running application and the associated data table of the currently-opened application, and the mobile terminal is controlled to close the application to be cleaned to release occupied memory resources.
In this embodiment, when the application is started, the number of the running applications in the memory is queried, and when the number of the running applications exceeds the preset number, the mobile terminal cleans up the memory resources, so that sufficient memory resources are provided for the currently started application, and the cleaning frequency of the mobile terminal is also reduced.
Further, referring to fig. 11, a fourth embodiment of the method for optimizing a memory based on an association policy according to the present invention is proposed based on the first, second, or third embodiment, and the difference from the foregoing embodiment is that, after the step S10, the method for optimizing a memory based on an association policy further includes:
step S101, determining the residual resources of the memory according to the scanning result;
step S102, when the residual resources of the memory are less than or equal to a preset value, acquiring the starting time of the running application;
step S103, determining an application to be cleaned in the running application according to the starting time and the associated application data table of the running application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
After the mobile terminal scans the running applications in the memory at intervals of preset time, the determining module 60 determines the remaining resources of the memory in the mobile terminal according to the scanning result, when the remaining resources of the memory are less than or equal to the preset value, the obtaining module 70 obtains the opening time of the running applications, sorts the running applications according to the sequence of the opening time, calculates the memory resources occupied by each running application and the associated applications, adds the occupied memory resources according to the sequence of the sorting, when the occupied memory resources obtained by adding are greater than or equal to the difference value between the remaining resources and the preset value, records the added running applications, namely determines the applications to be cleaned, and finally controls the mobile terminal to close the applications to be cleaned, thereby releasing the occupied memory resources. In specific implementation, the corresponding running applications and the associated applications in the associated application data table may also be closed according to the sequencing order to release the memory resources until the remaining resources of the memory are greater than the preset value.
In this embodiment, after scanning the running application in the memory at preset intervals, the present invention determines the remaining resources of the memory according to the scanning result, and when the remaining resources of the memory are insufficient, obtains the open time of the running application, and then closes the unnecessary application with a longer open time, until the remaining resources of the memory are greater than the preset value, the mobile terminal can automatically clean the memory without manually cleaning the memory by a user.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
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 (8)

1. The device for optimizing the memory based on the association policy is characterized in that the device for optimizing the memory based on the association policy is applied to a mobile terminal, and comprises the following components:
the scanning processing module is used for scanning the running application in the memory at intervals of preset time and establishing an associated application data table of the running application according to a scanning result and a preset associated data table;
the detection extraction module is used for extracting the characteristic information of the currently installed application when the mobile terminal is detected to be in the application installation state;
the processing module is used for establishing an associated application data table of the current installation application according to the characteristic information and a preset rule;
the determining control module is used for determining the application to be cleaned in the running application according to the associated application data table of the running application and the associated application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned;
wherein the determination control module includes:
the extraction unit is used for extracting non-associated running applications which are not in the associated application data table of the running applications and the associated application data table of the currently installed applications from the running applications;
the extracting unit is further configured to extract the associated application in a preset blacklist from the associated application data table of the running application and the associated application data table of the currently installed application;
the determining unit is used for determining the application to be cleaned according to the non-associated running application and the associated application;
and the control unit is used for controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
2. The association policy based memory optimization device of claim 1, wherein the processing module comprises:
the establishing unit is used for establishing a first associated application data table of the current installation application according to the characteristic information;
the scanning establishing unit is used for scanning the code segment and the data segment of the currently installed application according to a preset rule so as to establish a second associated application data table of the currently installed application;
the establishing unit is further configured to establish an associated application data table of the currently installed application according to the first associated application data table and the second associated application data table.
3. The association policy based memory optimization device of claim 1, wherein the memory optimization device further comprises:
the query module is used for querying the number of the running applications in the memory when the applications are started;
the scanning processing module is further configured to scan a code segment and a data segment of a currently opened application according to a preset rule to establish an associated data table of the opened application when the number of running applications in the memory is greater than or equal to a preset number;
the determining control module is used for determining the application to be cleaned in the running application according to the associated application data table of the running application and the associated data table of the opened application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
4. The association policy based memory optimization device according to any one of claims 1 to 3, wherein the memory optimization device further comprises:
the determining module is used for determining the residual resources of the memory according to the scanning result;
the acquisition module is used for acquiring the starting time of the running application when the residual resources of the memory are less than or equal to a preset value;
the determining control module is used for determining an application to be cleaned in the running application according to the starting time and the associated application data table of the running application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
5. A memory optimization method based on an association policy is characterized in that the memory optimization method based on the association policy is applied to a mobile terminal, and comprises the following steps:
scanning the running application in the memory at intervals of preset time, and establishing an associated application data table of the running application according to a scanning result and a preset associated data table;
when the mobile terminal is detected to be in an application installation state, extracting feature information of the currently installed application;
establishing an associated application data table of the current installation application according to the characteristic information and a preset rule;
determining an application to be cleaned in the running application according to the associated application data table of the running application and the associated application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned so as to release memory resources occupied by the application to be cleaned;
the step of determining the application to be cleaned in the running application according to the relevant application data table of the running application and the relevant application data table of the currently installed application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned comprises the following steps:
extracting non-associated running applications which are not in the associated application data table of the running applications and the associated application data table of the currently installed applications from the running applications;
extracting the associated application in a preset blacklist from the associated application data table of the running application and the associated application data table of the currently installed application;
determining an application to be cleaned according to the non-associated running application and the associated application;
and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
6. The association policy-based memory optimization method according to claim 5, wherein the step of establishing the association application data table of the currently installed application according to the feature information and the preset rule comprises:
establishing a first associated application data table of the current installation application according to the characteristic information;
scanning a code segment and a data segment of the currently installed application according to a preset rule to establish a second associated application data table of the currently installed application;
and establishing an associated application data table of the current installation application according to the first associated application data table and the second associated application data table.
7. The method as claimed in claim 5, wherein after the step of scanning the running applications in the memory at preset time intervals and establishing the associated application data table of the running applications according to the scanning result and the preset associated data table, the method for optimizing the memory based on the association policy further comprises:
when the application is started, the number of the running applications in the memory is inquired;
when the number of the running applications in the memory is larger than or equal to the preset number, scanning a code segment and a data segment of the currently opened application according to a preset rule to establish an associated data table of the opened application;
and determining an application to be cleaned in the running application according to the associated application data table of the running application and the associated data table of the started application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
8. The method for optimizing memory based on association policy according to any one of claims 5 to 7, wherein after the step of scanning the running application in the memory at preset time intervals and establishing the associated application data table of the running application according to the scanning result and the preset associated data table, the method for optimizing memory based on association policy further comprises:
determining the residual resources of the memory according to the scanning result;
when the residual resources of the memory are less than or equal to a preset value, acquiring the starting time of the running application;
and determining an application to be cleaned in the running application according to the opening time and the associated application data table of the running application, and controlling the mobile terminal to close the application to be cleaned so as to release the memory resource occupied by the application to be cleaned.
CN201710247786.0A 2017-04-14 2017-04-14 Memory optimization device and method based on association strategy Active CN107038074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710247786.0A CN107038074B (en) 2017-04-14 2017-04-14 Memory optimization device and method based on association strategy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710247786.0A CN107038074B (en) 2017-04-14 2017-04-14 Memory optimization device and method based on association strategy

Publications (2)

Publication Number Publication Date
CN107038074A CN107038074A (en) 2017-08-11
CN107038074B true CN107038074B (en) 2021-04-23

Family

ID=59535437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710247786.0A Active CN107038074B (en) 2017-04-14 2017-04-14 Memory optimization device and method based on association strategy

Country Status (1)

Country Link
CN (1) CN107038074B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797858A (en) * 2017-10-31 2018-03-13 努比亚技术有限公司 Disk space optimization method, mobile terminal and computer-readable recording medium
CN107943590B (en) * 2017-11-30 2022-03-18 努比亚技术有限公司 Memory optimization method based on associated starting application, mobile terminal and storage medium
CN108037997A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Memory Optimize Method, mobile terminal and computer-readable recording medium
CN110162396A (en) * 2018-02-14 2019-08-23 阿里巴巴集团控股有限公司 Method for recovering internal storage, device, system and storage medium
CN110221756B (en) * 2019-06-18 2020-08-28 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for processing application data
CN111338710A (en) * 2020-02-26 2020-06-26 腾讯科技(深圳)有限公司 Application program control method and device, electronic equipment and storage medium
CN115391032A (en) * 2022-08-15 2022-11-25 上海慧程工程技术服务有限公司 Memory optimization method for industrial Internet of things edge equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA849847A (en) * 1970-08-25 F. Foldes Gabriel Start-up system for once-through boiler
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
CN104714874A (en) * 2015-02-28 2015-06-17 深圳市中兴移动通信有限公司 Method for intelligently optimizing internal storage of mobile terminal and mobile terminal
CN106155790A (en) * 2016-06-30 2016-11-23 宇龙计算机通信科技(深圳)有限公司 The management method of application program, managing device and terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE455331T1 (en) * 2003-02-13 2010-01-15 Ubs Ag NETWORK-BASED SYSTEM FOR MANAGING DOCUMENTS
CN103092700B (en) * 2013-02-01 2016-09-28 华为终端有限公司 Internal memory method for cleaning, device and terminal unit
CN104899153A (en) * 2015-06-04 2015-09-09 上海卓易科技股份有限公司 Background application cleaning method and system
CN105117295A (en) * 2015-09-18 2015-12-02 北京金山安全软件有限公司 Memory resource release method and device and electronic equipment
CN105843650B (en) * 2016-03-31 2020-03-31 青岛海信移动通信技术股份有限公司 Application program management method and device in intelligent terminal
CN106371904A (en) * 2016-08-29 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Application process clearing method and mobile terminal
CN106502740B (en) * 2016-10-31 2019-08-06 北京小米移动软件有限公司 Using installation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA849847A (en) * 1970-08-25 F. Foldes Gabriel Start-up system for once-through boiler
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
CN104714874A (en) * 2015-02-28 2015-06-17 深圳市中兴移动通信有限公司 Method for intelligently optimizing internal storage of mobile terminal and mobile terminal
CN106155790A (en) * 2016-06-30 2016-11-23 宇龙计算机通信科技(深圳)有限公司 The management method of application program, managing device and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Interface engineering to enhance phase change memory programmability;Yihan Chen ET AL;《2015 IEEE International Conference on Electron Devices and Solid-State Circuits (EDSSC)》;20151001;全文 *
基于改进Apriori算法的客户满意度评测研究及应用;仲伟祎等;《万方硕士学位论文全文数据库》;20090421;第2009年卷(第2期);全文 *

Also Published As

Publication number Publication date
CN107038074A (en) 2017-08-11

Similar Documents

Publication Publication Date Title
CN107038074B (en) Memory optimization device and method based on association strategy
CN106570102B (en) Intelligent chatting method, device and terminal
CN106547886B (en) Application program recommendation method and device, terminal and server
CN106533928B (en) Method and device for updating unread message reminding identification
CN106959779B (en) Device and method for reducing touch screen error report points
CN106550126B (en) Mobile terminal and screen brightness control device and method thereof
CN105517189B (en) Method and device for realizing WIFI connection
CN106157970B (en) Audio identification method and terminal
CN106550124B (en) Application pre-installation method and terminal
CN106789575B (en) Information sending device and method
CN106778176B (en) Information processing method and mobile terminal
CN105898703B (en) Management method and device for identified pseudo base station
CN104932697B (en) Gesture unlocking method and device
CN106598538B (en) Instruction set updating method and system
CN106527799B (en) Method and device for preventing key from being misoperated
CN106534560B (en) Mobile terminal control device and method
CN106484279B (en) Method for identifying and processing abnormal operation of terminal and terminal
CN106547439B (en) Method and device for processing message
CN108601004B (en) NFC use guide method, mobile terminal and computer readable storage medium
CN106484534B (en) Control method and control device for displayed mobile terminal
CN105704331B (en) Application program recommendation method and system of mobile terminal
CN105955474B (en) Application evaluation prompting method and mobile terminal
CN105791541B (en) Screenshot method and mobile terminal
CN106951350B (en) Method and device for checking mobile terminal disk
CN106534446B (en) Mobile terminal dialing device and method

Legal Events

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