CN107038074A - Internal memory optimization device and method based on associating policy - Google Patents
Internal memory optimization device and method based on associating policy Download PDFInfo
- Publication number
- CN107038074A CN107038074A CN201710247786.0A CN201710247786A CN107038074A CN 107038074 A CN107038074 A CN 107038074A CN 201710247786 A CN201710247786 A CN 201710247786A CN 107038074 A CN107038074 A CN 107038074A
- Authority
- CN
- China
- Prior art keywords
- application
- data
- tables
- clearance
- mobile terminal
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation 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/5016—Allocation 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 kind of internal memory optimization device and method, the Memory Optimize Method comprises the following steps:Operation application in internal memory is scanned with interval preset time, and the associated application tables of data that the operation is applied is set up according to scanning result and default associated data table;When detecting mobile terminal in application installment state, the characteristic information for being currently installed on application is extracted;The associated application tables of data for being currently installed on application is set up according to the characteristic information and preset rules;According to the associated application tables of data of the operation application and the application for clearance being currently installed in the determination operation application of the associated application tables of data of application, and control mobile terminal to close the application for clearance to discharge the memory source of the application occupancy for clearance.The present invention can optimize the memory source of mobile terminal, reduce interim card, of short duration blank screen or dodge the situation generation moved back.
Description
Technical field
The present invention relates to memory management technology field, more particularly to a kind of internal memory optimization device and side based on associating policy
Method.
Background technology
With the popularization of mobile terminal, and application based on mobile terminal and daily life it is in close relations, use
More application would generally be installed on the mobile terminal at family.But as user opens increasing for number of applications, and using
Without application is closed in time after, the active volume of mobile terminal internal memory can be caused not enough.
Because the internal memory of mobile terminal does not have dynamic scalability, the memory size size of customer mobile terminal is to dispatch from the factory
When size.When user, which opens too many application, carries out internal memory release without closing application in time, because limited internal memory is provided
Source is occupied, and the memory source for causing the application opened or installed later to apply is more and more limited.
Work as low memory, and user is when installation is applied, and can trigger pressure of the mobile terminal to memory source and reclaim, only
After the completion of being reclaimed Deng mobile terminal to the pressure of memory source, user can just install application, and it is strong that mobile terminal internally deposits into row
During system is reclaimed, easily produce interim card, of short duration blank screen or dodge the problems such as moving back.
The content of the invention
It is a primary object of the present invention to propose a kind of internal memory optimization device and method based on associating policy, it is intended to solve
The technical problem that interim card, of short duration blank screen or sudden strain of a muscle are moved back caused by memory source is not enough.
To achieve the above object, a kind of internal memory optimization device based on associating policy that the present invention is provided, it is described based on pass
The internal memory optimization device of connection strategy is applied to mobile terminal, and the internal memory optimization device based on associating policy includes:
Scan process module, for scanning the operation application in internal memory with interval preset time, and according to scanning result and
Default associated data table sets up the associated application tables of data of the operation application;
Extraction module is detected, for when detecting mobile terminal in application installment state, extraction to be currently installed on application
Characteristic information;
Processing module, the associated application data of application are currently installed on for being set up according to the characteristic information and preset rules
Table;
Control module is determined, for the associated application tables of data according to the operation application and the association for being currently installed on application
Application data sheet determines the application for clearance in operation application, and controls mobile terminal to close the application for clearance to discharge
State the memory source that application for clearance takes.
Alternatively, the processing module includes:
Unit is set up, the first associated application tables of data of application is currently installed on for being set up according to the characteristic information;
Unit is set up in scanning, and the code segment and data segment that application is currently installed on for being scanned according to preset rules are worked as with setting up
Preceding the second associated application tables of data for installing application;
It is described to set up unit, it is additionally operable to according to the first associated application tables of data and the second associated application tables of data
Set up the associated application tables of data for being currently installed on application.
Alternatively, the determination control module includes:
Extraction unit, the associated application tables of data for running application is not at and current for being extracted from operation application
Dereferenced operation application in the associated application tables of data of application is installed;
The extraction unit, is additionally operable to the associated application tables of data from the operation application and the association for being currently installed on application
The associated application in default blacklist is extracted in application data sheet;
Determining unit, for determining application for clearance according to dereferenced operation application and the associated application;
Control unit, for controlling mobile terminal to close what the application for clearance took to discharge the application for clearance
Memory source.
Alternatively, the internal memory optimization device also includes:
Enquiry module, for when unlatching is applied, the quantity of application to be run in audit memory;
The scan process module, is additionally operable to when the quantity that application is run in internal memory is more than or equal to predetermined number, root
Scan the current code segment and data segment for opening application to set up the associated data table for opening application according to preset rules;
The determination control module, is applied for the associated application tables of data according to the operation application and the unlatching
Associated data table determines the application for clearance in operation application, and controls mobile terminal to close the application for clearance to discharge
State the memory source that application for clearance takes.
Alternatively, the internal memory optimization device also includes:
Determining module, the surplus resources for determining internal memory according to the scanning result;
Acquisition module, when the surplus resources of internal memory are less than or equal to preset value, obtains the opening time of operation application;
The determination control module, it is true for the associated application tables of data according to the opening time and operation application
Application for clearance in fixed operation application, and control mobile terminal to close the application for clearance to discharge the application for clearance
The memory source of occupancy.
In addition, to achieve the above object, the present invention also provides a kind of Memory Optimize Method based on associating policy, the base
Mobile terminal is applied in the Memory Optimize Method of associating policy, the Memory Optimize Method based on associating policy includes following
Step:
Operation application in internal memory is scanned with interval preset time, and set up according to scanning result and default associated data table
The associated application tables of data of the operation application;
When detecting mobile terminal in application installment state, the characteristic information for being currently installed on application is extracted;
The associated application tables of data for being currently installed on application is set up according to the characteristic information and preset rules;
Fortune is determined according to the associated application tables of data of the operation application and the associated application tables of data for being currently installed on application
Application for clearance in row application, and control mobile terminal to close the application for clearance to discharge the application occupancy for clearance
Memory source.
Alternatively, it is described that the associated application tables of data for being currently installed on application is set up according to the characteristic information and preset rules
The step of include:
The the first associated application tables of data for being currently installed on application is set up according to the characteristic information;
The code segment and data segment that are currently installed on application are scanned according to preset rules and is currently installed on the second of application to set up
Associated application tables of data;
Set up according to the first associated application tables of data and the second associated application tables of data and be currently installed on application
Associated application tables of data.
Alternatively, the associated application tables of data and the associated application number for being currently installed on application according to the operation application
According to table determine operation application in application for clearance, and control mobile terminal close it is for clearance application with discharge it is described it is for clearance should
The step of with the memory source of occupancy, includes:
The associated application tables of data for being not at the operation application and the pass for being currently installed on application are extracted from operation application
Join the dereferenced operation application in application data sheet;
Run the associated application tables of data applied from described and be currently installed in the associated application tables of data of application at extraction
Associated application in default blacklist;
Application for clearance is determined according to dereferenced operation application and the associated application;
Control mobile terminal closes the application for clearance to discharge the memory source that the application for clearance takes.
Alternatively, the operation application scanned with interval preset time in internal memory, and according to scanning result and default pass
After the step of connection tables of data sets up the associated application tables of data of the operation application, the internal memory optimization based on associating policy
Method also includes:
When unlatching is applied, the quantity of application is run in audit memory;
, should according to current open of preset rules scanning when the quantity that application is run in internal memory is more than or equal to predetermined number
Code segment and data segment are to set up the associated data table for opening application;
Determine that operation should according to the associated data table that the associated application tables of data of the operation application and the unlatching are applied
Application for clearance in, and control mobile terminal to close the application for clearance to discharge in the application occupancy for clearance
Deposit resource.
Alternatively, the operation application scanned with interval preset time in internal memory, and according to scanning result and default pass
After the step of connection tables of data sets up the associated application tables of data of the operation application, the internal memory optimization based on associating policy
Method also includes:
The surplus resources of internal memory are determined according to the scanning result;
When the surplus resources of internal memory are less than or equal to preset value, the opening time of operation application is obtained;
The associated application tables of data applied according to the opening time and the operation determines for clearance in operation application
Using, and control mobile terminal to close the application for clearance to discharge the memory source that the application for clearance takes.
The present invention scans the operation application in internal memory with interval preset time, and according to scanning result and default associated data
Table sets up the associated application tables of data for being currently running application, and when detecting mobile terminal in application installment state, extracts
The characteristic information of application is currently installed on, and the associated application number for being currently installed on application is set up according to this feature information and preset rules
According to table, then determine that operation should according to the associated application tables of data of operation application and the associated application tables of data for being currently installed on applying
Application for clearance in, and control mobile terminal to close the application for clearance, with the memory source of release busy, this programme leads to
Scan round internal memory is crossed, to obtain the associated application tables of data for the application being currently running in internal memory, and is being detected using peace
During dress, foundation is currently installed on the associated application tables of data of application, so that according to the associated application tables of data of operation application and currently
The associated application tables of data for installing application internally deposits into capable cleaning, the memory source that release dereferenced application takes, so as to complete
The cleaning of memory source, provides enough memory sources for the follow-up application opened or installed, reduces interim card, of short duration blank screen or sudden strain of a muscle
The generation for situations such as moving back.
Brief description of the drawings
Fig. 1 is a kind of optional hardware architecture diagram for the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the high-level schematic functional block diagram of the internal memory optimization device first embodiment of the invention based on associating policy;
Fig. 3 is the refinement high-level schematic functional block diagram of processing module described in Fig. 2;
Fig. 4 is the refinement high-level schematic functional block diagram that control module is determined described in second embodiment of the invention;
Fig. 5 is the high-level schematic functional block diagram of the internal memory optimization device 3rd embodiment of the invention based on associating policy;
Fig. 6 is the high-level schematic functional block diagram of the internal memory optimization device fourth embodiment of the invention based on associating policy;
Fig. 7 is the schematic flow sheet of the Memory Optimize Method first embodiment of the invention based on associating policy;
Fig. 8 is to set up the associated application number for being currently installed on application described in Fig. 7 according to the characteristic information and preset rules
According to the refinement schematic flow sheet of table step;
Fig. 9 is the associated application tables of data applied described in second embodiment of the invention according to the operation and is currently installed on
The associated application tables of data of application determines the application for clearance in operation application, and control mobile terminal close application for clearance with
Discharge the refinement schematic flow sheet for the memory source step that the application for clearance takes;
Figure 10 is the schematic flow sheet of the Memory Optimize Method 3rd embodiment of the invention based on associating policy;
Figure 11 is the schematic flow sheet of the Memory Optimize Method fourth embodiment of the invention based on associating policy.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 illustrates for the hardware configuration of the mobile terminal of realization each embodiment of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, user input unit 130, sensing unit 140, output list
Member 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc..Fig. 1 is shown with various assemblies
Mobile terminal, it should be understood that being not required for implementing all components shown.It can alternatively implement more or less
Component.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and radio communication device
Or the radio communication between network.For example, wireless communication unit can include mobile communication module 112, wireless Internet mould
At least one in block 113, short range communication module 114 and location information module 115.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
115 typical case is GPS (global pick device).According to current technology, GPS calculate from three or more satellites away from
From information and correct time information and for the Information application triangulation of calculating, so that according to longitude, latitude and height
Degree calculates three-dimensional current location information exactly.Currently, three satellites are used simultaneously for calculating the method for position and temporal information
And the position calculated by using other satellite correction and the error of temporal information.In addition, GPS can be by real-time
Ground Continuous plus current location information carrys out calculating speed information.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch
Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape
State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal
100 orientation, the acceleration of mobile terminal 1 00 or by fast movement and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00
Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from
The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity
Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit
151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include sound pick-up, buzzer etc..
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal
Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control
Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member
Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation
Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai
Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Each reality of the internal memory optimization device of the invention based on associating policy is proposed based on above-mentioned mobile terminal hardware configuration
Apply example.
Reference picture 3, should be based on association plan in the first embodiment of internal memory optimization device of the present invention based on associating policy
Internal memory optimization device slightly includes:
Scan process module 10, for scanning the operation application in internal memory with interval preset time, and according to scanning result
The associated application tables of data of the operation application is set up with default associated data table;
It should be noted that the internal memory optimization device based on associating policy that the present invention is provided is based on the movement shown in Fig. 1
Terminal realizes function.The mobile terminal includes smart mobile phone and tablet personal computer etc., and mobile terminal is by scan module 10 with interval
The application being currently running in preset time scanning internal memory, monitoring is already loaded into internal memory in real time, and arrives resource to internal memory application
The real-time condition of application is run, and then the associated application that the operation is applied will sweep to the real-time condition of internal memory application resource
Result is retouched, that is, the application being currently running is compared with default associated data table, is marked the application run in current memory and is entered
Associated application and association service information that journey is relied on, to set up in current memory the associated application tables of data for running application.This is pre-
If associated data table includes core service data table, non-core service data table and third party's service tables of data, in addition to application
Classification chart.Classification scheme in the application class table includes game, audio-visual amusement, utility, social communication, education, news
Read, shoot beautification, cuisines, trip navigation, tourist lodging, the do shopping rate of exchange, commercial affairs, children, finance and money management, sport health, just
The classification such as victory life, automobile and theme individual character.The preset time can be 1 second, 2 seconds or 5 seconds etc., the preset time can according to
Voluntarily set the need for family.In specific implementation, the setting control of preset time can be set, when user's touch-control in the terminal
When setting control, mobile terminal shows the setting interface of preset time, and user can set preset time at the setting interface, set
Preserved after the completion of putting.
Extraction module 20 is detected, for when detecting mobile terminal in application installment state, extraction is currently installed on should
Characteristic information;
Processing module 30, the associated application number of application is currently installed on for being set up according to the characteristic information and preset rules
According to table;
Whether have by detecting extraction module 20 and detecting mobile terminal and whether be in apply in installment state, i.e. mobile terminal
Using installing, there is application just when mounted when detecting extraction module 20 is detected in mobile terminal, i.e., at mobile terminal
When application installment state, the characteristic information for being currently installed on application is extracted, this feature information includes the title for being currently installed on application
Information and classification information etc..After acquisition characteristic information is extracted, processing module 30 is set up according to this feature information and preset rules
It is currently installed on the associated application tables of data of application.Specifically, reference picture 3, Fig. 3 is the refinement work(of processing module 30 described in Fig. 2
Energy module diagram, the processing module 30 includes:
Unit 31 is set up, the first associated application tables of data of application is currently installed on for being set up according to the characteristic information;
Unit 32 is set up in scanning, for scanning the code segment and data segment that are currently installed on application according to preset rules to set up
It is currently installed on the second associated application tables of data of application;
It is described to set up unit 31, it is additionally operable to according to the first associated application tables of data and the second associated application data
Table sets up the associated application tables of data for being currently installed on application.
First, mobile terminal is currently installed on answering according to default associated data table and the characteristic information foundation for being currently installed on applying
First associated application tables of data, i.e., preset associated data according to the name information and classification information for being currently installed on applying from this
Associated data is obtained in table, and sets up the first associated application tables of data for being currently installed on application, then, should obtaining the first association
After tables of data, mobile terminal is scanned according to preset rules to be currently installed on the code segment and data segment of application to obtain association
Using, and the second associated application tables of data for being currently installed on application is set up, finally according to the first associated application tables of data and the
Two associated application tables of data determine the associated application tables of data for being currently installed on applying, that is, take the first associated application tables of data and second
The common factor of associated data table is used as the associated application tables of data for being currently installed on application., can be by default incidence number in specific implementation
According to table, be currently installed on application associated application tables of data and operation application associated application tables of data be stored in mobile terminal internal memory
In FX, to improve the reliability of data.In another specific implementation, the default associated data table is based on big number
According to, repeatedly test and analysis of experiments set up, and be stored in internal memory and Cloud Server, the related number of Cloud Server Collection and conservation
According to, the default associated data table of optimization is updated, and the default associated data table for updating optimization is issued to mobile terminal, so as to cover
The default associated data table of history.
The preset rules include the first rule, Second Rule, three sigma rule and the 4th rule etc., and first rule is scanning
Function startActivity and function startActivityForResult, detects parameter intent in the two functions
Component values (components values), the Second Rule is scanning function startService and function bindService, detects this
Parameter intent component values (components values) in two functions, three sigma rule is scanning function sendBroadcast, letter
Number sendOrderedBroadcast and function sendStickyBroadcast, detects parameter intent in these three functions
Component values (components values), the 4th rule for scanning function ContentResolver objects query, insert, delete,
Update method call, detects the value (components values) of the parameter Uri in this four method calls, obtains component value list, so
The components values in component value list are compared two-by-two afterwards, if it is not the class in this application that comparison, which obtains components values, or are not these
The class of application, nor the service services of system, or the class not being directed in this application, then what the components values can start answers
With to be currently installed on the associated application of application, so as to set up the associated application tables of data for being currently installed on application.
Control module 40 is determined, for the associated application tables of data according to the operation application and the pass for being currently installed on application
Join application data sheet to determine to run the application for clearance in application, and control mobile terminal to close the application for clearance to discharge
The memory source that the application for clearance takes.
After the application process being currently running in mobile terminal enquiry internal memory, pass of the control module 40 according to operation application is determined
Connection application data sheet and be currently installed on that the associated application tables of data of application determines in the application process that is currently running it is for clearance should
With, and control mobile terminal to close the application for clearance to discharge the memory source that the application for clearance takes, work as so as to optimize
Preceding memory source, enough memory sources are provided for the application of installation.In specific implementation, it is determined that wait close application after,
According to core service data table, non-core service data table and third party's service tables of data, further filtering out needs what is cleared up
Operation application, and retain the indispensable kernel service of running of mobile terminal so that mobile terminal being capable of normal work.Another specific
In implementation, the switch control that memory source can be set to clear up in the terminal is mobile when the switch control is in opening
Terminal can carry out memory source cleaning according to the present invention, and when the switch control is closed, mobile terminal can not enter
Row memory source is cleared up.
In the present embodiment, the present invention scans the operation application in internal memory with interval preset time, and according to scanning result
The associated application tables of data for being currently running application is set up with default associated data table, and application peace is in when detecting mobile terminal
During dress state, the characteristic information for being currently installed on application is extracted, and be currently installed on answering according to this feature information and preset rules foundation
Associated application tables of data, then according to the associated application tables of data of operation application and the associated application number for being currently installed on application
The application for clearance in operation application is determined according to table, and controls mobile terminal to close the application for clearance, with release busy
Deposit resource, this programme is by scan round internal memory, to obtain the associated application tables of data for the application being currently running in internal memory, and
When having detected using installing, the associated application tables of data for being currently installed on application is set up, so that should according to the association of operation application
Capable cleaning, the internal memory that release dereferenced application takes internally are deposited into tables of data and the associated application tables of data for being currently installed on application
Resource, so as to complete the cleaning of memory source, provides enough memory sources for the follow-up application opened or installed, reduces card
, of short duration blank screen or dodge generation situations such as move back.
Further, reference picture 4, based on above-mentioned first embodiment, it is proposed that the internal memory of the invention based on associating policy is excellent
Second embodiment is put in makeup, and the difference with previous embodiment is, in the present embodiment, and the determination control module 40 includes:
Extraction unit 41, the associated application tables of data of the operation application is not at for being extracted from operation application and is worked as
Dereferenced operation application in the preceding associated application tables of data for installing application;
The extraction unit 41, is additionally operable to the associated application tables of data from the operation application and the pass for being currently installed on application
Join the associated application extracted in application data sheet in default blacklist;
Determining unit 42, for determining application for clearance according to dereferenced operation application and the associated application;
Control unit 43, is taken for controlling mobile terminal to close the application for clearance with discharging the application for clearance
Memory source.
Mobile terminal is setting up the associated application tables of data of operation application and is being currently installed on the associated application tables of data of application
Afterwards, the associated application tables of data for being not at operation application is extracted from the application process being currently running by extraction unit 41
With the application process being currently installed in the associated application tables of data of application, i.e. dereferenced operation is applied, and applied from the operation
Associated application of the associated application tables of data with extraction in the associated application tables of data for being currently installed on applying in default blacklist,
It is then determined that unit 42 runs application according to the dereferenced and the associated application determines application for clearance, i.e., application for clearance includes
Dereferenced application and the associated application in blacklist, for clearance answer is closed finally by the control mobile terminal of control unit 43
Memory source to release busy.
In the present embodiment, the present invention is obtaining being not at the associated application tables of data of operation application and is being currently installed on application
Associated application tables of data dereferenced operation while apply, the association in blacklist is extracted from associated application tables of data
Using the further application for determining to need to clear up expands cleanup area, discharge the memory source of more occupancy, further
Memory optimization resource.
Further, reference picture 5, based on foregoing first or second embodiments, propose the present invention based in associating policy
Optimization device 3rd embodiment is deposited, the difference with previous embodiment is, in the present embodiment, should the internal memory based on associating policy
Optimization device also includes:
Enquiry module 50, for when unlatching is applied, the quantity of application to be run in audit memory;
The scan process module 10, is additionally operable to when the quantity that application is run in internal memory is more than or equal to predetermined number,
Scan the current code segment and data segment for opening application to set up the associated data table for opening application according to preset rules;
The determination control module 40, for the associated application tables of data according to the operation application and the unlatching application
Associated data table determine application for clearance in operation application, and control mobile terminal to close the application for clearance to discharge
The memory source that the application for clearance takes.
User clicks on the icon of application, so as to trigger the open command of application, and mobile terminal does open command receiving
When, by running the quantity of application in the audit memory of enquiry module 50, and run in internal memory the quantity of application and be more than or equal to
During predetermined number, scan the current code segment and data segment for opening application to set up the current pass for opening application according to preset rules
Join tables of data, then determine that operation should according to the associated application tables of data of operation application and the current associated data table for opening application
Application for clearance in, and control mobile terminal to close application for clearance with the memory source of release busy.
In the present embodiment, the present invention runs the quantity of application when unlatching is applied in audit memory, when operation application
When quantity exceedes predetermined number, mobile terminal cleaning memory source is opened using enough memory sources are provided to be current, also subtracted
The clearing times of few mobile terminal.
Further, reference picture 6, based on foregoing first, second or third embodiment, it is proposed that the present invention is based on association plan
Internal memory optimization device fourth embodiment slightly, the difference with previous embodiment is, in the present embodiment, should be based on associating policy
Internal memory optimization device also include:
Determining module 60, the surplus resources for determining internal memory according to the scanning result;
Acquisition module 70, when the surplus resources of internal memory are less than preset value, obtains the opening time of operation application;
The determination control module 40, for the associated application tables of data according to the opening time and operation application
It is determined that operation application in application for clearance, and control mobile terminal close it is described it is for clearance application with discharge it is described it is for clearance should
With the memory source of occupancy.
Mobile terminal is scanned with interval preset time after the operation application in internal memory, and determining module 60 is true according to scanning result
Determine the surplus resources of internal memory in mobile terminal, when the surplus resources of internal memory are less than or equal to preset value, acquisition module 70 is obtained
The opening time of application is currently running, and operation application is ranked up according to the sequencing of opening time, and calculates each
The memory source of occupancy, is added by the memory source that operation application and its associated application take according to the sequencing of sequence, when
When being added the committed memory resource obtained and being more than or equal to the difference of surplus resources and preset value, the operation application being added is recorded,
Application for clearance is determined, finally controls mobile terminal to close application for clearance, so that the memory source of release busy.Specific
In implementation, corresponding operation application can also be closed according to the sequencing of sequence and the operation is applied in associated application tables of data
In associated application with releasing memory resource, until the surplus resources of internal memory are more than preset value.
In the present embodiment, the present invention is scanned with interval preset time after the operation application in internal memory, according to scanning result
The surplus resources of internal memory are determined, when the surplus resources of internal memory are not enough, the opening time of operation application is obtained, is then shut off opening
Time is longer, and is not indispensable application, within the surplus resources of internal memory are more than preset value, and mobile terminal can be cleared up automatically
Deposit, cleared up manually without user.
The present invention also provides a kind of Memory Optimize Method based on associating policy, as shown in Figure 2 based on associating policy
Internal memory optimization device is performed, with reference to reference picture 2 and Fig. 7, corresponding to the of internal memory optimization device of the present invention based on associating policy
One embodiment, should be based in associating policy in the first embodiment of Memory Optimize Method of the present invention based on associating policy
Depositing optimization method includes:
Step S10, the operation application in internal memory is scanned with interval preset time, and according to scanning result and default incidence number
The associated application tables of data of the operation application is set up according to table;
It should be noted that the internal memory optimization device based on associating policy that the present invention is provided is based on the movement shown in Fig. 1
Terminal realizes function.The mobile terminal includes smart mobile phone and tablet personal computer etc., and mobile terminal is by scan module 10 with interval
The application being currently running in preset time scanning internal memory, monitoring is already loaded into internal memory in real time, and arrives resource to internal memory application
The real-time condition of application is run, and then the associated application that the operation is applied will sweep to the real-time condition of internal memory application resource
Result is retouched, that is, the application being currently running is compared with default associated data table, is marked the application run in current memory and is entered
Associated application and association service information that journey is relied on, to set up in current memory the associated application tables of data for running application.This is pre-
If associated data table includes core service data table, non-core service data table and third party's service tables of data, in addition to application
Classification chart.Classification scheme in the application class table includes game, audio-visual amusement, utility, social communication, education, news
Read, shoot beautification, cuisines, trip navigation, tourist lodging, the do shopping rate of exchange, commercial affairs, children, finance and money management, sport health, just
The classification such as victory life, automobile and theme individual character.The preset time can be 1 second, 2 seconds or 5 seconds etc., the preset time can according to
Voluntarily set the need for family.In specific implementation, the setting control of preset time can be set, when user's touch-control in the terminal
When setting control, mobile terminal shows the setting interface of preset time, and user can set preset time at the setting interface, set
Preserved after the completion of putting.
Step S20, when detecting mobile terminal in application installment state, extracts the feature letter for being currently installed on application
Breath;
Step S30, the associated application tables of data for being currently installed on application is set up according to the characteristic information and preset rules;
Whether have by detecting extraction module 20 and detecting mobile terminal and whether be in apply in installment state, i.e. mobile terminal
Using installing, there is application just when mounted when detecting extraction module 20 is detected in mobile terminal, i.e., at mobile terminal
When application installment state, the characteristic information for being currently installed on application is extracted, this feature information includes the title for being currently installed on application
Information and classification information etc..After acquisition characteristic information is extracted, processing module 30 is set up according to this feature information and preset rules
It is currently installed on the associated application tables of data of application.Specifically, reference picture 8, the refinement flow that Fig. 8 is step S30 described in Fig. 7 is shown
It is intended to, the step S30 includes:
Step S31, the first associated application tables of data for being currently installed on application is set up according to the characteristic information;
Step S32, the code segment and data segment for being currently installed on applying are scanned according to preset rules and is currently installed on answering to set up
Second associated application tables of data;
Step S33, current peace is set up according to the first associated application tables of data and the second associated application tables of data
Fill the associated application tables of data of application.
First, mobile terminal is currently installed on answering according to default associated data table and the characteristic information foundation for being currently installed on applying
First associated application tables of data, i.e., preset associated data according to the name information and classification information for being currently installed on applying from this
Associated data is obtained in table, and sets up the first associated application tables of data for being currently installed on application, then, should obtaining the first association
After tables of data, mobile terminal is scanned according to preset rules to be currently installed on the code segment and data segment of application to obtain association
Using, and the second associated application tables of data for being currently installed on application is set up, finally according to the first associated application tables of data and the
Two associated application tables of data determine the associated application tables of data for being currently installed on applying, that is, take the first associated application tables of data and second
The common factor of associated data table is used as the associated application tables of data for being currently installed on application., can be by default incidence number in specific implementation
According to table, be currently installed on application associated application tables of data and operation application associated application tables of data be stored in mobile terminal internal memory
In FX, to improve the reliability of data.In another specific implementation, the default associated data table is based on big number
According to, repeatedly test and analysis of experiments set up, and be stored in internal memory and Cloud Server, the related number of Cloud Server Collection and conservation
According to, the default associated data table of optimization is updated, and the default associated data table for updating optimization is issued to mobile terminal, so as to cover
The default associated data table of history.
The preset rules include the first rule, Second Rule, three sigma rule and the 4th rule etc., and first rule is scanning
Function startActivity and function startActivityForResult, detects parameter intent in the two functions
Component values (components values), the Second Rule is scanning function startService and function bindService, detects this
Parameter intent component values (components values) in two functions, three sigma rule is scanning function sendBroadcast, letter
Number sendOrderedBroadcast and function sendStickyBroadcast, detects parameter intent in these three functions
Component values (components values), the 4th rule for scanning function ContentResolver objects query, insert, delete,
Update method call, detects the value (components values) of the parameter Uri in this four method calls, obtains component value list, so
The components values in component value list are compared two-by-two afterwards, if it is not the class in this application that comparison, which obtains components values, or are not these
The class of application, nor the service services of system, or the class not being directed in this application, then what the components values can start answers
With to be currently installed on the associated application of application, so as to set up the associated application tables of data for being currently installed on application.
Step S40, according to the associated application tables of data and the associated application data for being currently installed on application of the operation application
Table determines the application for clearance in operation application, and it is described for clearance to discharge to control mobile terminal to close the application for clearance
Using the memory source of occupancy.
After the application process being currently running in mobile terminal enquiry internal memory, pass of the control module 40 according to operation application is determined
Connection application data sheet and be currently installed on that the associated application tables of data of application determines in the application process that is currently running it is for clearance should
With, and control mobile terminal to close the application for clearance to discharge the memory source that the application for clearance takes, work as so as to optimize
Preceding memory source, enough memory sources are provided for the application of installation.In specific implementation, it is determined that wait close application after,
According to core service data table, non-core service data table and third party's service tables of data, further filtering out needs what is cleared up
Operation application, and retain the indispensable kernel service of running of mobile terminal so that mobile terminal being capable of normal work.Another specific
In implementation, the switch control that memory source can be set to clear up in the terminal is mobile when the switch control is in opening
Terminal can carry out memory source cleaning according to the present invention, and when the switch control is closed, mobile terminal can not enter
Row memory source is cleared up.
In the present embodiment, the present invention scans the operation application in internal memory with interval preset time, and according to scanning result
The associated application tables of data for being currently running application is set up with default associated data table, and application peace is in when detecting mobile terminal
During dress state, the characteristic information for being currently installed on application is extracted, and be currently installed on answering according to this feature information and preset rules foundation
Associated application tables of data, then according to the associated application tables of data of operation application and the associated application number for being currently installed on application
The application for clearance in operation application is determined according to table, and controls mobile terminal to close the application for clearance, with release busy
Deposit resource, this programme is by scan round internal memory, to obtain the associated application tables of data for the application being currently running in internal memory, and
When having detected using installing, the associated application tables of data for being currently installed on application is set up, so that should according to the association of operation application
Capable cleaning, the internal memory that release dereferenced application takes internally are deposited into tables of data and the associated application tables of data for being currently installed on application
Resource, so as to complete the cleaning of memory source, provides enough memory sources for the follow-up application opened or installed, reduces card
, of short duration blank screen or dodge generation situations such as move back.
Further, reference picture 9, based on above-mentioned first embodiment, it is proposed that the internal memory of the invention based on associating policy is excellent
Change method second embodiment, the difference with previous embodiment is that in the present embodiment, step S40 includes:
Step S41, extracts the associated application tables of data for being not at the operation application and is currently installed on from operation application
Dereferenced operation application in the associated application tables of data of application;
Step S42, from the associated application tables of data and the associated application tables of data for being currently installed on application of the operation application
The middle associated application extracted in default blacklist;
Step S43, application for clearance is determined according to dereferenced operation application and the associated application;
Step S44, control mobile terminal closes the application for clearance to discharge the internal memory that the application for clearance takes
Resource.
Mobile terminal is setting up the associated application tables of data of operation application and is being currently installed on the associated application tables of data of application
Afterwards, the associated application tables of data for being not at operation application is extracted from the application process being currently running by extraction unit 41
With the application process being currently installed in the associated application tables of data of application, i.e. dereferenced operation is applied, and applied from the operation
Associated application of the associated application tables of data with extraction in the associated application tables of data for being currently installed on applying in default blacklist,
It is then determined that unit 42 runs application according to the dereferenced and the associated application determines application for clearance, i.e., application for clearance includes
Dereferenced application and the associated application in blacklist, for clearance answer is closed finally by the control mobile terminal of control unit 43
Memory source to release busy.
In the present embodiment, the present invention is obtaining being not at the associated application tables of data of operation application and is being currently installed on application
Associated application tables of data dereferenced operation while apply, the association in blacklist is extracted from associated application tables of data
Using the further application for determining to need to clear up expands cleanup area, discharge the memory source of more occupancy, further
Memory optimization resource.
Further, reference picture 10, based on foregoing first or second embodiments, propose the present invention based in associating policy
Optimization method 3rd embodiment is deposited, the difference with previous embodiment is, in the present embodiment, should be based on pass after step S10
The Memory Optimize Method of connection strategy also includes:
Step S50, when unlatching is applied, runs the quantity of application in audit memory;
Step S60, when the quantity that application is run in internal memory is more than or equal to predetermined number, works as according to preset rules scanning
It is preceding to open the code segment applied and data segment to set up the associated data table for opening application;
Step S70, it is true according to the associated data table that the associated application tables of data of the operation application and the unlatching are applied
Application for clearance in fixed operation application, and control mobile terminal to close the application for clearance to discharge the application for clearance
The memory source of occupancy.
User clicks on the icon of application, so as to trigger the open command of application, and mobile terminal does open command receiving
When, by running the quantity of application in the audit memory of enquiry module 50, and run in internal memory the quantity of application and be more than or equal to
During predetermined number, scan the current code segment and data segment for opening application to set up the current pass for opening application according to preset rules
Join tables of data, then determine that operation should according to the associated application tables of data of operation application and the current associated data table for opening application
Application for clearance in, and control mobile terminal to close application for clearance with the memory source of release busy.
In the present embodiment, the present invention runs the quantity of application when unlatching is applied in audit memory, when operation application
When quantity exceedes predetermined number, mobile terminal cleaning memory source is opened using enough memory sources are provided to be current, also subtracted
The clearing times of few mobile terminal.
Further, reference picture 11, based on foregoing first, second or third embodiment, it is proposed that the present invention is based on association
The Memory Optimize Method fourth embodiment of strategy, the difference with previous embodiment is, in the present embodiment, step S10 it
Afterwards, being somebody's turn to do the Memory Optimize Method based on associating policy also includes:
Step S101, the surplus resources of internal memory are determined according to the scanning result;
Step S102, when the surplus resources of internal memory are less than or equal to preset value, obtains the opening time of operation application;
Step S103, the associated application tables of data applied according to the opening time and the operation is determined in operation application
Application for clearance, and control mobile terminal to close the application for clearance to provide to discharge the internal memory that the application for clearance takes
Source.
Mobile terminal is scanned with interval preset time after the operation application in internal memory, and determining module 60 is true according to scanning result
Determine the surplus resources of internal memory in mobile terminal, when the surplus resources of internal memory are less than or equal to preset value, acquisition module 70 is obtained
The opening time of application is currently running, and operation application is ranked up according to the sequencing of opening time, and calculates each
The memory source of occupancy, is added by the memory source that operation application and its associated application take according to the sequencing of sequence, when
When being added the committed memory resource obtained and being more than or equal to the difference of surplus resources and preset value, the operation application being added is recorded,
Application for clearance is determined, finally controls mobile terminal to close application for clearance, so that the memory source of release busy.Specific
In implementation, corresponding operation application can also be closed according to the sequencing of sequence and the operation is applied in associated application tables of data
In associated application with releasing memory resource, until the surplus resources of internal memory are more than preset value.
In the present embodiment, the present invention is scanned with interval preset time after the operation application in internal memory, according to scanning result
The surplus resources of internal memory are determined, when the surplus resources of internal memory are not enough, the opening time of operation application is obtained, is then shut off opening
Time is longer, and is not indispensable application, within the surplus resources of internal memory are more than preset value, and mobile terminal can be cleared up automatically
Deposit, cleared up manually without user.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes
It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of internal memory optimization device based on associating policy, it is characterised in that the internal memory optimization dress based on associating policy
Put applied to mobile terminal, the internal memory optimization device based on associating policy includes:
Scan process module, for scanning the operation application in internal memory with interval preset time, and according to scanning result and presets
Associated data table sets up the associated application tables of data of the operation application;
Extraction module is detected, for when detecting mobile terminal in application installment state, extracting the spy for being currently installed on application
Reference ceases;
Processing module, the associated application tables of data of application is currently installed on for being set up according to the characteristic information and preset rules;
Control module is determined, for the associated application tables of data and the associated application for being currently installed on application according to the operation application
Tables of data determines the application for clearance in operation application, and controls mobile terminal to close the application for clearance to discharge described treat
The memory source that cleaning application takes.
2. the internal memory optimization device as claimed in claim 1 based on associating policy, it is characterised in that the processing module bag
Include:
Unit is set up, the first associated application tables of data of application is currently installed on for being set up according to the characteristic information;
Unit is set up in scanning, for scanning the code segment and data segment that are currently installed on application according to preset rules to set up current peace
Fill the second associated application tables of data of application;
It is described to set up unit, it is additionally operable to be set up according to the first associated application tables of data and the second associated application tables of data
It is currently installed on the associated application tables of data of application.
3. the internal memory optimization device as claimed in claim 1 based on associating policy, it is characterised in that the determination control module
Including:
Extraction unit, the associated application tables of data of the operation application is not at for being extracted from operation application and is currently installed on
Dereferenced operation application in the associated application tables of data of application;
The extraction unit, is additionally operable to the associated application tables of data and the associated application for being currently installed on application from the operation application
The associated application in default blacklist is extracted in tables of data;
Determining unit, for determining application for clearance according to dereferenced operation application and the associated application;
Control unit, for controlling the mobile terminal closing application for clearance to discharge the internal memory that the application for clearance takes
Resource.
4. the internal memory optimization device as claimed in claim 1 based on associating policy, it is characterised in that the internal memory optimization device
Also include:
Enquiry module, for when unlatching is applied, the quantity of application to be run in audit memory;
The scan process module, is additionally operable to when the quantity that application is run in internal memory is more than or equal to predetermined number, according to pre-
Open the code segment applied and data segment to set up the associated data table for opening application if rule scanning is current;
The determination control module, the association applied for the associated application tables of data according to the operation application and the unlatching
Tables of data determines the application for clearance in operation application, and controls mobile terminal to close the application for clearance to discharge described treat
The memory source that cleaning application takes.
5. the internal memory optimization device based on associating policy as any one of claim 1-4, it is characterised in that in described
Depositing optimization device also includes:
Determining module, the surplus resources for determining internal memory according to the scanning result;
Acquisition module, when the surplus resources of internal memory are less than or equal to preset value, obtains the opening time of operation application;
The determination control module, for determining to transport according to the associated application tables of data of the opening time and operation application
Application for clearance in row application, and control mobile terminal to close the application for clearance to discharge the application occupancy for clearance
Memory source.
6. a kind of Memory Optimize Method based on associating policy, it is characterised in that the internal memory optimization side based on associating policy
Method is applied to mobile terminal, and the Memory Optimize Method based on associating policy comprises the following steps:
Operation application in internal memory is scanned with interval preset time, and according to being set up scanning result and default associated data table
Run the associated application tables of data of application;
When detecting mobile terminal in application installment state, the characteristic information for being currently installed on application is extracted;
The associated application tables of data for being currently installed on application is set up according to the characteristic information and preset rules;
Determine that operation should according to the associated application tables of data of the operation application and the associated application tables of data for being currently installed on application
Application for clearance in, and control mobile terminal to close the application for clearance to discharge in the application occupancy for clearance
Deposit resource.
7. the Memory Optimize Method as claimed in claim 6 based on associating policy, it is characterised in that described according to the feature
The step of information and preset rules set up the associated application tables of data for being currently installed on application includes:
The the first associated application tables of data for being currently installed on application is set up according to the characteristic information;
Associated according to the code segment that preset rules scanning is currently installed on application with data segment with setting up be currently installed on applying second
Application data sheet;
Set up according to the first associated application tables of data with the second associated application tables of data and be currently installed on associating for application
Application data sheet.
8. the Memory Optimize Method as claimed in claim 6 based on associating policy, it is characterised in that described according to the operation
The associated application tables of data of application and the application for clearance being currently installed in the determination operation application of the associated application tables of data of application,
And control mobile terminal to close application for clearance to discharge the step of memory source that the application for clearance takes to include:
The association for being not at the associated application tables of data of the operation application and being currently installed on applying is extracted in being applied from operation should
Application is run with the dereferenced in tables of data;
The associated application tables of data applied from the operation and extraction in the associated application tables of data for being currently installed on applying are in advance
If the associated application in blacklist;
Application for clearance is determined according to dereferenced operation application and the associated application;
Control mobile terminal closes the application for clearance to discharge the memory source that the application for clearance takes.
9. the Memory Optimize Method based on associating policy as claimed in claim 6, it is characterised in that it is described with interval it is default when
Between scanning internal memory in operation application, and according to scanning result and default associated data table set up it is described operation application association should
After the step of tables of data, the Memory Optimize Method based on associating policy also includes:
When unlatching is applied, the quantity of application is run in audit memory;
When the quantity that application is run in internal memory is more than or equal to predetermined number, current unlatching application is scanned according to preset rules
Code segment and data segment are to set up the associated data table for opening application;
Determined according to the associated data table that the associated application tables of data of the operation application and the unlatching are applied in operation application
Application for clearance, and control mobile terminal to close the application for clearance to provide to discharge the internal memory that the application for clearance takes
Source.
10. the Memory Optimize Method based on associating policy as any one of claim 6-9, it is characterised in that described
Operation application in internal memory is scanned with interval preset time, and the operation is set up according to scanning result and default associated data table
After the step of associated application tables of data of application, the Memory Optimize Method based on associating policy also includes:
The surplus resources of internal memory are determined according to the scanning result;
When the surplus resources of internal memory are less than or equal to preset value, the opening time of operation application is obtained;
The associated application tables of data applied according to the opening time and the operation determines the application for clearance in operation application,
And control mobile terminal to close the application for clearance to discharge the memory source that the application for clearance takes.
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 true CN107038074A (en) | 2017-08-11 |
CN107038074B 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) |
Cited By (7)
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 |
CN107943590A (en) * | 2017-11-30 | 2018-04-20 | 努比亚技术有限公司 | Start Memory Optimize Method, mobile terminal and the storage medium of application based on association |
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 |
CN110221756A (en) * | 2019-06-18 | 2019-09-10 | Oppo广东移动通信有限公司 | Method, apparatus, terminal and the storage medium of data are applied in processing |
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 (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA849847A (en) * | 1970-08-25 | F. Foldes Gabriel | Start-up system for once-through boiler | |
EP1447756A1 (en) * | 2003-02-13 | 2004-08-18 | Ubs Ag | Network-based document management system |
CN103092700A (en) * | 2013-02-01 | 2013-05-08 | 华为终端有限公司 | Internal memory cleaning method and cleaning device and terminal device |
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 |
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 |
CN105843650A (en) * | 2016-03-31 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Application program management method and device in intelligent terminal |
CN106155790A (en) * | 2016-06-30 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | The management method of application program, managing device and terminal |
CN106371904A (en) * | 2016-08-29 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Application process clearing method and mobile terminal |
CN106502740A (en) * | 2016-10-31 | 2017-03-15 | 北京小米移动软件有限公司 | Application installation method and device |
-
2017
- 2017-04-14 CN CN201710247786.0A patent/CN107038074B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA849847A (en) * | 1970-08-25 | F. Foldes Gabriel | Start-up system for once-through boiler | |
EP1447756A1 (en) * | 2003-02-13 | 2004-08-18 | Ubs Ag | Network-based document management system |
CN103092700A (en) * | 2013-02-01 | 2013-05-08 | 华为终端有限公司 | Internal memory cleaning method and cleaning device and terminal device |
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 |
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 |
CN105843650A (en) * | 2016-03-31 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Application program management method and device in intelligent terminal |
CN106155790A (en) * | 2016-06-30 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | The management method of application program, managing device and terminal |
CN106371904A (en) * | 2016-08-29 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Application process clearing method and mobile terminal |
CN106502740A (en) * | 2016-10-31 | 2017-03-15 | 北京小米移动软件有限公司 | Application installation method and device |
Non-Patent Citations (2)
Title |
---|
YIHAN CHEN ET AL: "Interface engineering to enhance phase change memory programmability", 《2015 IEEE INTERNATIONAL CONFERENCE ON ELECTRON DEVICES AND SOLID-STATE CIRCUITS (EDSSC)》 * |
仲伟祎等: "基于改进Apriori算法的客户满意度评测研究及应用", 《万方硕士学位论文全文数据库》 * |
Cited By (9)
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 |
CN107943590A (en) * | 2017-11-30 | 2018-04-20 | 努比亚技术有限公司 | Start Memory Optimize Method, mobile terminal and the storage medium of application based on association |
CN108037997A (en) * | 2017-11-30 | 2018-05-15 | 努比亚技术有限公司 | Memory Optimize 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 |
CN110162396A (en) * | 2018-02-14 | 2019-08-23 | 阿里巴巴集团控股有限公司 | Method for recovering internal storage, device, system and storage medium |
CN110221756A (en) * | 2019-06-18 | 2019-09-10 | Oppo广东移动通信有限公司 | Method, apparatus, terminal and the storage medium of data are applied in processing |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN107038074B (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107038074A (en) | Internal memory optimization device and method based on associating policy | |
CN106055246B (en) | A kind of mobile terminal and its operating method | |
CN105242847B (en) | Mobile terminal and its quickly starting method of application | |
CN104915582B (en) | unlocking method and device | |
CN104618605B (en) | Mobile terminal locating method and device | |
CN106878464A (en) | A kind of document display method and device | |
CN106941443A (en) | One population historical record checks terminal and method | |
CN105897995B (en) | A kind of method and apparatus for adding contact information | |
CN105263195B (en) | Data transmission device and method | |
CN106959779A (en) | A kind of apparatus and method for reducing touch screen wrong report point | |
CN106653011A (en) | Voice control method, voice control device and terminal | |
CN106550124A (en) | It is a kind of to apply prepackage method and terminal | |
CN107066290A (en) | A kind of method and apparatus for starting application according to associating policy | |
CN105718356B (en) | Electricity uses the statistic device and method of duration | |
CN104793864B (en) | Method for controlling mobile terminal and device | |
CN104735254B (en) | terminal screen locking method and system | |
CN106547434A (en) | A kind of implementation method and terminal of terminal calculator | |
CN106406621B (en) | A kind of mobile terminal and its method for handling touch control operation | |
CN106488035A (en) | A kind of mobile terminal and control method | |
CN104915230B (en) | application control method and device | |
CN106547674A (en) | A kind of fingerprint input method, device and terminal | |
CN106487976B (en) | Mobile terminal dialing mechanism and method | |
CN106303012B (en) | Starting-up method and carry-on equipment based on carry-on equipment | |
CN104915021B (en) | A kind of one-handed performance false-touch prevention input method, device and mobile terminal | |
CN106951350A (en) | The inspection method and device of a kind of mobile terminal disk |
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 |