CN108073458A - Method for recovering internal storage, mobile terminal and computer readable storage medium - Google Patents

Method for recovering internal storage, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108073458A
CN108073458A CN201711472753.2A CN201711472753A CN108073458A CN 108073458 A CN108073458 A CN 108073458A CN 201711472753 A CN201711472753 A CN 201711472753A CN 108073458 A CN108073458 A CN 108073458A
Authority
CN
China
Prior art keywords
memory
allocation area
memory allocation
mobile terminal
recycling
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
Application number
CN201711472753.2A
Other languages
Chinese (zh)
Other versions
CN108073458B (en
Inventor
唐少卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711472753.2A priority Critical patent/CN108073458B/en
Publication of CN108073458A publication Critical patent/CN108073458A/en
Application granted granted Critical
Publication of CN108073458B publication Critical patent/CN108073458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of method for recovering internal storage,Mobile terminal and computer readable storage medium,It is detected by the memory usage amount to mobile terminal,And when memory usage amount is more than predetermined threshold value,Record current sensing time,And according to current sensing time and the definite memory field access-hours of preset time difference,Then obtain in mobile terminal and all run memory field access frequency of each Memory Allocation area of application in the memory field access-hours,And the recycling priority in each Memory Allocation area is determined according to memory field access frequency of each Memory Allocation area in the memory field access-hours,Memory Allocation area to be recycled is finally determined according to the recycling priority in each Memory Allocation area,And Memory recycle operation is performed to the Memory Allocation area to be recycled,It can accurately determine internal storage data to be recycled,It is effective to reduce disk read-write operation,Improve system performance.

Description

Method for recovering internal storage, mobile terminal and computer readable storage medium
Technical field
A kind of technical field more particularly to method for recovering internal storage, mobile terminal and calculating the present invention relates to mobile terminal Machine readable storage medium storing program for executing.
Background technology
With the fast development of mobile terminal, the hardware configuration of mobile terminal is also become better and better, the function that can be realized It is more and more, and integrated APP (Application, application program) is also more and more.When running of mobile terminal user uses frequency The higher APP of rate (the higher APP of user's frequency of use is generally Fat Client APP), the file data of generation is more, for example, Wechat and QQ applications etc. are, it is necessary to occupy more disk space, when the application of running background is more, occupy more memory money Source however, the memory of mobile terminal is limited, when memory is smaller, is susceptible to system interim card and other application can not be just Situation about often running.
At present, mobile terminal is when memory is smaller, it will usually perform Memory recycle operation, perform Memory recycle operation When, many internal storage datas cannot be simply discarded, it is necessary to which internal storage data is write disk and preserve, and again will when needing next time Internal storage data in disk reads back memory, due to being related to the read-write operation of disk, in order to reduce the read-write operation of disk, It needs, when performing Memory recycle operation, to determine to be not required to internal storage data to be used recently according to the access situation of internal storage data, And it is recycled to being not required to internal storage data to be used recently.However, it determines to be not required to recently according to the access situation of internal storage data During internal storage data to be used, it is to be not required to internal storage data to be used recently that can not accurately determine internal storage data to be recycled, is held The internal storage data that mobile terminal repeatedly reads recycling between disk and memory is easily led to, disk read-write number of operations is more, increases Add power consumption, reduce system performance.
Therefore, how accurately to determine internal storage data to be recycled, reduce disk read-write operation, it is current to improve system performance Urgent problem to be solved.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
The content of the invention
It is a primary object of the present invention to provide a kind of method for recovering internal storage, mobile terminal and computer-readable storage medium Matter, it is intended to solve how accurately to determine internal storage data to be recycled, reduce disk read-write operation, the technology for improving system performance is asked Topic.
To achieve the above object, the present invention provides a kind of method for recovering internal storage, and the method for recovering internal storage includes following step Suddenly:
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, current sensing time, and root are recorded According to the current sensing time and the definite memory field access-hours of preset time difference;
Each Memory Allocation area that application is all run in the mobile terminal is obtained in the memory field access-hours Memory field access frequency;
Each memory is determined according to memory field access frequency of each Memory Allocation area in the memory field access-hours Distribute the recycling priority in area;
Memory Allocation area to be recycled is determined according to the recycling priority in each Memory Allocation area, and to the memory to be recycled It distributes area and performs Memory recycle operation.
Optionally, memory field access frequency of each Memory Allocation area of the basis in the memory field access-hours is true The step of recycling priority in fixed each Memory Allocation area, includes:
Determine the frequency model residing for memory field access frequency of each Memory Allocation area in the memory field access-hours Enclose section;
The recycling priority in each Memory Allocation area is determined according to the frequency range section.
Optionally, after the step of determining the recycling priority in each Memory Allocation area according to the frequency range section, It further includes:
It obtains each to run in the mobile terminal and applies the application access frequency in the memory field access-hours;
Application access frequency in the memory field access-hours is applied to definite each memory according to each run The recycling priority in distribution area is adjusted.
Optionally, each operation applies application access frequency in the memory field access-hours to determining to the basis The recycling priority in each Memory Allocation area the step of being adjusted include:
High-frequency operation application of the application access frequency higher than the first predetermined threshold value is obtained, and will be with the high-frequency The recycling priority for running each Memory Allocation area of association turns down level-one;
Low frequency operation application of the application access frequency less than the second predetermined threshold value is obtained, and will be with the low frequency The recycling priority for running each Memory Allocation area of association heightens level-one.
Optionally, the step of recycling priority in each Memory Allocation area of the basis determines Memory Allocation area to be recycled is wrapped It includes:
By the recycling priority in each Memory Allocation area compared with pre-set priority, to obtain the recycling priority Higher than the Memory Allocation area of pre-set priority;
Using Memory Allocation area of the recycling priority higher than pre-set priority as Memory Allocation area to be recycled.
Optionally, the step of recycling priority in each Memory Allocation area of the basis determines Memory Allocation area to be recycled is also Including:
The memory field recycling order in each Memory Allocation area is determined according to the recycling priority in each Memory Allocation area;
It calculates the EMS memory occupation amount in corresponding Memory Allocation area successively according to memory field recycling order, and calculates the shifting Memory recycle amount between the memory usage amount and the predetermined threshold value of dynamic terminal;
Accumulation operations are carried out to the EMS memory occupation amount successively according to memory field recycling order, to obtain EMS memory occupation Accumulation amount, until the EMS memory occupation accumulation amount is than or equal to the Memory recycle amount;
Determine the Memory Allocation area of the participation accumulation operations, and using the Memory Allocation area as Memory Allocation to be recycled Area.
Optionally, the record current sensing time, and according to the current sensing time and preset time difference determine in Before the step of depositing area's access-hours, the method for recovering internal storage further includes:
When detect the mobile terminal be in put out screen holding state when, record puts out screen standby moment;
In default storage region putting out screen standby time table and described to put out the use time shielded residing for standby moment true The current of the fixed mobile terminal puts out screen standby time;
It is described it is current put out screen standby time and be more than predetermined threshold value when, detect the mobile terminal memory usage amount whether More than predetermined threshold value;
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, when performing the record current detection Between, and according to the step of the current sensing time and preset time difference definite memory field access-hours.
Optionally, the basis presets putting out screen standby time table and described put out residing for screen standby moment in storage region Use time determines that current the step of putting out screen standby time of the mobile terminal includes:
It is obtained from the default storage region and puts out screen standby time table, and determine that described put out makes residing for the screen standby moment Use the period;
It obtains in screen standby time table and the use time is associated puts out screen standby time from described put out, and is put out described Screen standby time is determined as the current of the mobile terminal and puts out screen standby time.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes:Memory, Processor and the Memory recycle program that can be run on the memory and on the processor is stored in, the Memory recycle journey The step of sequence realizes method for recovering internal storage as described above when being performed by the processor.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages Memory recycle program is stored on medium, the Memory recycle program realizes Memory recycle as described above when being executed by processor The step of method.
The present invention provides a kind of method for recovering internal storage, mobile terminal and computer readable storage medium, and the present invention is by right The memory usage amount of mobile terminal is detected, and when memory usage amount is more than predetermined threshold value, records current sensing time, and According to current sensing time and the definite memory field access-hours of preset time difference, all operation applications in mobile terminal are then obtained Memory field access frequency of each Memory Allocation area in the memory field access-hours, and according to each Memory Allocation area at this Memory field access frequency in memory field access-hours determines the recycling priority in each Memory Allocation area, last according to each interior The recycling priority for depositing distribution area determines Memory Allocation area to be recycled, and performs Memory recycle behaviour to the Memory Allocation area to be recycled Make, when this programme in the memory usage amount for detecting mobile terminal by being more than predetermined threshold value, determine memory field access-hours, and The recycling in each Memory Allocation area is determined in the memory field access frequency of the memory field access-hours based on each Memory Allocation area Priority so as to determine Memory Allocation area to be recycled based on the recycling priority, and performs Memory recycle operation, so as to standard True determines internal storage data to be recycled, and the effective disk read-write that reduces operates, and improves system performance.
Description of the drawings
A kind of hardware architecture diagram of Fig. 1 mobile terminals of each embodiment to realize the present invention;
Fig. 2 is the flow diagram of method for recovering internal storage method first embodiment of the present invention;
The refinement flow diagram that Fig. 3 is step S103 in method for recovering internal storage method first embodiment of the present invention;
The refinement flow diagram that Fig. 4 is step S104 in method for recovering internal storage method first embodiment of the present invention;
The refinement flow diagram that Fig. 5 is step S103 in method for recovering internal storage method second embodiment of the present invention;
The refinement flow diagram that Fig. 6 is step S104 in method for recovering internal storage method 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific 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.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special For moving outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components, Either combine some components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, handled to processor 110;In addition, by the data sending of uplink to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates Frequency unit 101 can also be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication Standard or agreement include but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can be according to need It to be omitted in the scope of essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 Formula, speech recognition mode, broadcast reception mode when under isotypes, by radio frequency unit 101 or WiFi module 102 it is receiving or The voice data stored in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103 The relevant audio output of specific function performed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio that treated (voice) data can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be employed Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for the number for receiving input or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can To realize touch panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc. One or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) be connected with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also be included to the power supply 111 (such as battery) of all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Based on above-mentioned mobile terminal hardware configuration, each embodiment of proposition mobile terminal of the present invention.
Fig. 1 is refer to, in the first embodiment of mobile terminal of the present invention, which includes:Memory, processor And the Memory recycle program that can be run on the memory and on the processor is stored in, the Memory recycle program quilt The processor realizes following steps when performing:
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, current sensing time, and root are recorded According to the current sensing time and the definite memory field access-hours of preset time difference;
Each Memory Allocation area that application is all run in the mobile terminal is obtained in the memory field access-hours Memory field access frequency;
Each memory is determined according to memory field access frequency of each Memory Allocation area in the memory field access-hours Distribute the recycling priority in area;
Memory Allocation area to be recycled is determined according to the recycling priority in each Memory Allocation area, and to the memory to be recycled It distributes area and performs Memory recycle operation.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
Determine the frequency model residing for memory field access frequency of each Memory Allocation area in the memory field access-hours Enclose section;
The recycling priority in each Memory Allocation area is determined according to the frequency range section.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
It obtains each to run in the mobile terminal and applies the application access frequency in the memory field access-hours;
Application access frequency in the memory field access-hours is applied to definite each memory according to each run The recycling priority in distribution area is adjusted.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
High-frequency operation application of the application access frequency higher than the first predetermined threshold value is obtained, and will be with the high-frequency The recycling priority for running each Memory Allocation area of association turns down level-one;
Low frequency operation application of the application access frequency less than the second predetermined threshold value is obtained, and will be with the low frequency The recycling priority for running each Memory Allocation area of association heightens level-one.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
By the recycling priority in each Memory Allocation area compared with pre-set priority, to obtain the recycling priority Higher than the Memory Allocation area of pre-set priority;
Using Memory Allocation area of the recycling priority higher than pre-set priority as Memory Allocation area to be recycled.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
The memory field recycling order in each Memory Allocation area is determined according to the recycling priority in each Memory Allocation area;
It calculates the EMS memory occupation amount in corresponding Memory Allocation area successively according to memory field recycling order, and calculates the shifting Memory recycle amount between the memory usage amount and the predetermined threshold value of dynamic terminal;
Accumulation operations are carried out to the EMS memory occupation amount successively according to memory field recycling order, to obtain EMS memory occupation Accumulation amount, until the EMS memory occupation accumulation amount is than or equal to the Memory recycle amount;
Determine the Memory Allocation area of the participation accumulation operations, and using the Memory Allocation area as Memory Allocation to be recycled Area.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
When detect the mobile terminal be in put out screen holding state when, record puts out screen standby moment;
In default storage region putting out screen standby time table and described to put out the use time shielded residing for standby moment true The current of the fixed mobile terminal puts out screen standby time;
It is described it is current put out screen standby time and be more than predetermined threshold value when, detect the mobile terminal memory usage amount whether More than predetermined threshold value;
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, when performing the record current detection Between, and according to the step of the current sensing time and preset time difference definite memory field access-hours.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
It is obtained from the default storage region and puts out screen standby time table, and determine that described put out makes residing for the screen standby moment Use the period;
It obtains in screen standby time table and the use time is associated puts out screen standby time from described put out, and is put out described Screen standby time is determined as the current of the mobile terminal and puts out screen standby time.
The specific embodiment of mobile terminal of the present invention and each specific embodiment of following method for recovering internal storage are essentially identical, This is not repeated.
Further, the present invention also provides a kind of method for recovering internal storage.
With reference to Fig. 2, Fig. 2 is the flow diagram of method for recovering internal storage first embodiment of the present invention.
In the present embodiment, which includes:
Step S101 when the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, records current detection Time, and according to the current sensing time and the definite memory field access-hours of preset time difference;
The method for recovering internal storage is applied to mobile terminal shown in FIG. 1, which includes smart mobile phone and tablet electricity Brain etc., the mobile terminal are equipped with multiple applications, when operation is in application, the corresponding application process of mobile terminal execution, and distribute Required memory headroom, i.e., there are Memory Allocation areas for the application each run.Mobile terminal timing detects memory in real time Whether usage amount is more than predetermined threshold value, i.e. timing or acquisition memory usage amount, and by the memory usage amount and predetermined threshold value in real time Be compared, with judge the memory usage amount whether be more than predetermined threshold value, when detect the memory usage amount be more than predetermined threshold value When, current sensing time is recorded, and according to the current sensing time and preset time difference definite internal storage access period, i.e., with current It is poor that detection time subtracts preset time, at the beginning of obtaining the internal storage access period, and is visited by memory of current sensing time Ask the end time of period, so that it is determined that the internal storage access period, for example, current sensing time is 11:25, preset time difference is 1 A hour, then the internal storage access period is 10:25 to 11:25.
Step S102 is obtained and each Memory Allocation area of application is all run in the mobile terminal is visited in the memory field Ask the memory field access frequency in the period;
After the mobile terminal distributes corresponding Memory Allocation area to operation application, the interior of the Memory Allocation area is recorded in real time Area's access times are deposited, and the memory field access times and corresponding record time are stored to default storage region.The movement is whole End obtains in mobile terminal after definite memory field access-hours and all runs each Memory Allocation area of application in the memory Memory field access frequency in area's access-hours, i.e., when the acquisition record time is in memory field access from default storage region Memory field access times in section, and calculate each Memory Allocation based on the memory field access times and the memory field access-hours Memory field access frequency of the area in the memory field access-hours.
Step S103 is determined according to memory field access frequency of each Memory Allocation area in the memory field access-hours The recycling priority in each Memory Allocation area;
The mobile terminal is getting memory field access frequency of each Memory Allocation area in the memory field access-hours Afterwards, each Memory Allocation area is determined according to memory field access frequency of each Memory Allocation area in the memory field access-hours Recycling priority.
Specifically, with reference to Fig. 3, Fig. 3 is the refinement flow diagram of step S103 described in Fig. 2, and step S103 includes:
Step S1031 determines memory field access frequency institute of each Memory Allocation area in the memory field access-hours The frequency range section at place;
Step S1032 determines the recycling priority in each Memory Allocation area according to the frequency range section.
The mobile terminal is getting memory field access frequency of each Memory Allocation area in the memory field access-hours Afterwards, the frequency range area residing for memory field access frequency of each Memory Allocation area in the memory field access-hours is determined Between, and determine according to the frequency range section recycling priority in each Memory Allocation area.The frequency range section includes first Frequency range section, second frequency range intervals, the 3rd frequency range section, the 4th frequency range section and the 5th frequency range Section etc., the first frequency range intervals are 0-2, and corresponding recycling priority is 5;The second frequency range intervals are 3-5, right The recycling priority answered is 4;3rd frequency range section is 6-9, and corresponding recycling priority is 3;4th frequency range Section is 10-12, and corresponding recycling priority is 2;5th frequency range section is 13-15, and corresponding recycling priority is 1.It should be noted that the frequency range section and corresponding recycling priority can be based on actual conditions by those skilled in the art It is configured, the present embodiment is not especially limited this.
Step S104 determines Memory Allocation area to be recycled according to the recycling priority in each Memory Allocation area, and to described Memory Allocation area to be recycled performs Memory recycle operation.
The mobile terminal is after the recycling priority in each Memory Allocation area is determined, according to returning for each Memory Allocation area It receives priority and determines Memory Allocation area to be recycled, and Memory recycle operation is performed to the Memory Allocation area to be recycled.
Specifically, with reference to Fig. 4, Fig. 4 is the refinement flow diagram of step S104 described in Fig. 2, and step S104 includes:
Step S1041, by the recycling priority in each Memory Allocation area compared with pre-set priority, to obtain State the Memory Allocation area that recycling priority is higher than pre-set priority;
Step S1042, using Memory Allocation area of the recycling priority higher than pre-set priority as memory to be recycled Distribute area.
The mobile terminal is after the recycling priority in each Memory Allocation area is determined, by the recycling in each Memory Allocation area Priority is compared with pre-set priority, to obtain the Memory Allocation area that the recycling priority is higher than pre-set priority, and will The recycling priority is higher than the Memory Allocation area of pre-set priority as Memory Allocation area to be recycled, then to memory to be recycled point Memory recycle operation is performed with area, internal storage data write-in disk that will be in the Memory Allocation area to be recycled, and empty this this is treated Recycle the internal storage data in Memory Allocation area.It should be noted that recycling priority is higher, then it represents that corresponding Memory Allocation area Recycling possibility it is bigger, conversely, recycling priority it is lower, then it represents that the recycling possibility in corresponding Memory Allocation area is smaller.
In the present embodiment, the present invention is detected by the memory usage amount to mobile terminal, and in memory usage amount During more than predetermined threshold value, current sensing time is recorded, and is accessed according to current sensing time and the definite memory field of preset time difference Then period obtains in mobile terminal and all runs memory of each Memory Allocation area of application in the memory field access-hours Area's access frequency, and determined according to memory field access frequency of each Memory Allocation area in the memory field access-hours in each The recycling priority in distribution area is deposited, Memory Allocation area to be recycled is finally determined according to the recycling priority in each Memory Allocation area, And Memory recycle operation is performed to the Memory Allocation area to be recycled, it can accurately determine internal storage data to be recycled, effectively subtract Few disk read-write operation, improves system performance.
Further, with reference to Fig. 5, the second of method for recovering internal storage method of the present invention is proposed based on above-mentioned first embodiment Embodiment, difference lies in after step S1032, step S103 is further included with previous embodiment:
Step S1033 is obtained each to run in the mobile terminal and is applied the application in the memory field access-hours Access frequency;
Step S1034 applies application access frequency in the memory field access-hours to determining according to each operation The recycling priority in each Memory Allocation area be adjusted.
It should be noted that the present invention is based on previous embodiments to propose a kind of recycling priority in definite Memory Allocation area Concrete mode, be only explained below, it is other to can refer to previous embodiment.
After the mobile terminal determines the recycling priority in each Memory Allocation area according to the frequency range section, obtain and move Each the application access frequency in the memory field access-hours is applied in operation in dynamic terminal, and is applied according to each operation at this Application access frequency in memory field access-hours is adjusted the recycling priority in definite each Memory Allocation area.
Specifically, in the present embodiment, step S1034 includes:
High-frequency operation application of the application access frequency higher than the first predetermined threshold value is obtained, and will be with the high-frequency The recycling priority for running each Memory Allocation area of association turns down level-one;
Low frequency operation application of the application access frequency less than the second predetermined threshold value is obtained, and will be with the low frequency The recycling priority for running each Memory Allocation area of association heightens level-one, wherein, the first predetermined threshold value is pre- higher than second If threshold value.
High-frequency operation of the acquisition for mobile terminal application access frequency higher than the first predetermined threshold value is applied, and will be with this The recycling priority in each Memory Allocation area of high-frequency operation association turns down level-one, while obtains the application access frequency Low frequency less than the second predetermined threshold value runs application, and each Memory Allocation area of association will be run with the low frequency Recycling priority heightens level-one.It should be noted that the first predetermined threshold value be higher than the second predetermined threshold value, and the first predetermined threshold value and Second predetermined threshold value can be configured by those skilled in the art based on actual conditions, and the present embodiment is not construed as limiting this.
In the present embodiment, the present invention combines the application access frequency of operation application and the memory field in Memory Allocation area accesses Frequency determines the recycling priority in Memory Allocation area, can effectively improve the accuracy of the recycling priority in Memory Allocation area.
Further, with reference to Fig. 6, method for recovering internal storage method of the present invention is proposed based on above-mentioned first or second embodiments 3rd embodiment, difference lies in step S104 is further included with previous embodiment:
Step S1043, the memory field for determining each Memory Allocation area according to the recycling priority in each Memory Allocation area return Receipts order;
Step S1044 calculates the EMS memory occupation amount in corresponding Memory Allocation area according to memory field recycling order successively, and Calculate the Memory recycle amount between the memory usage amount of the mobile terminal and the predetermined threshold value;
Step S1045 carries out accumulation operations, to obtain to the EMS memory occupation amount successively according to memory field recycling order EMS memory occupation accumulation amount is taken, until the EMS memory occupation accumulation amount is than or equal to the Memory recycle amount;
Step S1046, determines to participate in the Memory Allocation area of the accumulation operations, and using the Memory Allocation area as treating back Receive Memory Allocation area.
It should be noted that the present invention is based on previous embodiments to propose a kind of the specific of definite Memory Allocation area to be recycled Mode is only explained below, other to can refer to previous embodiment.
The mobile terminal is after the recycling priority in each Memory Allocation area is determined, according to returning for each Memory Allocation area Receive the memory field recycling order that priority determines each Memory Allocation area, i.e., according to the recycling priority in each Memory Allocation area Height is ranked up each Memory Allocation area, and obtained ranking results are that the memory field recycling in each Memory Allocation area is suitable Sequence;Then the EMS memory occupation amount in corresponding Memory Allocation area is calculated successively according to the memory field recycling order, and calculate movement end Memory recycle amount between the memory usage amount and predetermined threshold value at end, while according to the memory field recycling order successively to the memory Occupancy carries out accumulation operations, to obtain EMS memory occupation accumulation amount, until the EMS memory occupation accumulation amount is than or equal to the memory Yield finally determines the Memory Allocation area of the participation accumulation operations, and using the Memory Allocation area as Memory Allocation to be recycled Area.
In the present embodiment, the present invention is based on the memory field recycling order that recycling priority determines each Memory Allocation area, And calculate the EMS memory occupation amount in corresponding Memory Allocation area successively according to memory field recycling order, and add up, until obtained memory Accumulation amount is occupied than or equal to the Memory recycle amount between memory usage amount and predetermined threshold value, is fast and accurately determined to be recycled Memory Allocation area, and ensure that memory usage amount less than predetermined threshold value, reserves more free memory after recycling.
Further, method for recovering internal storage method of the present invention is proposed based on above-mentioned first, second or third embodiment Fourth embodiment, difference lies in before step S101, which further includes with previous embodiment:
When detect the mobile terminal be in put out screen holding state when, record puts out screen standby moment;
In default storage region putting out screen standby time table and described to put out the use time shielded residing for standby moment true The current of the fixed mobile terminal puts out screen standby time;
It is described it is current put out screen standby time and be more than predetermined threshold value when, detect the mobile terminal memory usage amount whether More than predetermined threshold value;
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, when performing the record current detection Between, and according to the step of the current sensing time and preset time difference definite memory field access-hours.
It should be noted that proposing a kind of be in mobile terminal the present invention is based on previous embodiment puts out screen holding state When, the mode of Memory recycle is performed, is only explained below, other can refer to previous embodiment.
The present invention puts out screen standby time by recording the mobile terminal in each default use time, to establish the shifting Dynamic terminal puts out screen standby time table, and this is put out screen standby time table and is stored to default storage region.Specially record movement Terminal puts out screen standby time in each default use time, and the screen standby time that puts out of record is stored to database, so The data storage capacity in the database is calculated with interval preset time afterwards, and judges whether the data storage capacity is more than preset data Amount of storage, finally when the data storage capacity is more than preset data amount of storage, mobile terminal is every according to the database Screen standby time table is put out in putting out screen standby time foundation in a default use time, the default use time include morning, morning, Noon, afternoon, night, midnight and corresponding period are respectively 02:00 to 06:00、6:00 to 10:00、10:00 to 14: 00、14:00 to 18:00、18:00 to 22:00 and 22:00 to 24:00.It should be noted that the default use time can be by this Field technology personnel are configured based on actual conditions, and the present embodiment is not especially limited this.
When detect mobile terminal be in put out screen holding state when, record puts out screen standby moment, and according to default memory block In domain putting out screen standby time table and this puts out and shields use time residing for standby moment and determine mobile terminal current to put out screen standby Duration, then when currently putting out screen standby time more than predetermined threshold value, whether the memory usage amount for detecting mobile terminal is more than pre- If threshold value, and detect mobile terminal memory usage amount be more than predetermined threshold value when, record current sensing time, and according to work as Preceding detection time and the definite memory field access-hours of preset time difference, subsequently obtain in mobile terminal and all run the every of application Memory field access frequency of a Memory Allocation area in the memory field access-hours, and according to each Memory Allocation area in the memory Memory field access frequency in area's access-hours determines the recycling priority in each Memory Allocation area, finally according to each memory point Recycling priority with area determines Memory Allocation area to be recycled, and performs Memory recycle operation to the Memory Allocation area to be recycled.
Specifically, in the present embodiment, in default storage region putting out screen standby time table and it is described put out screen it is standby Use time residing for moment determines that current the step of putting out screen standby time of the mobile terminal includes:
It is obtained from the default storage region and puts out screen standby time table, and determine that described put out makes residing for the screen standby moment Use the period;
It obtains in screen standby time table and the use time is associated puts out screen standby time from described put out, and is put out described Screen standby time is determined as the current of the mobile terminal and puts out screen standby time.
The mobile terminal is obtained from default storage region puts out screen standby time table, and determines that this was put out residing for the screen standby moment Use time, then put out and obtained in screen standby time table and the use time is associated puts out screen standby time from this, and should It puts out screen standby time and is determined as the current of the mobile terminal and put out screen standby time.
In the present embodiment, of the invention be in mobile terminal puts out when putting out screen standby time more than presetting of screen holding state It is long, and when the memory usage amount of mobile terminal is more than predetermined threshold value, internally deposits into row reclaimer operation, can be unaware of in user In the case of, memory is recycled, and Memory recycle efficiency can be improved.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with Memory recycle program, the Memory recycle program realizes following steps when being executed by processor:
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, current sensing time, and root are recorded According to the current sensing time and the definite memory field access-hours of preset time difference;
Each Memory Allocation area that application is all run in the mobile terminal is obtained in the memory field access-hours Memory field access frequency;
Each memory is determined according to memory field access frequency of each Memory Allocation area in the memory field access-hours Distribute the recycling priority in area;
Memory Allocation area to be recycled is determined according to the recycling priority in each Memory Allocation area, and to the memory to be recycled It distributes area and performs Memory recycle operation.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
Determine the frequency model residing for memory field access frequency of each Memory Allocation area in the memory field access-hours Enclose section;
The recycling priority in each Memory Allocation area is determined according to the frequency range section.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
It obtains each to run in the mobile terminal and applies the application access frequency in the memory field access-hours;
Application access frequency in the memory field access-hours is applied to definite each memory according to each run The recycling priority in distribution area is adjusted.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
High-frequency operation application of the application access frequency higher than the first predetermined threshold value is obtained, and will be with the high-frequency The recycling priority for running each Memory Allocation area of association turns down level-one;
Low frequency operation application of the application access frequency less than the second predetermined threshold value is obtained, and will be with the low frequency The recycling priority for running each Memory Allocation area of association heightens level-one, wherein, the first predetermined threshold value is pre- higher than second If threshold value.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
By the recycling priority in each Memory Allocation area compared with pre-set priority, to obtain the recycling priority Higher than the Memory Allocation area of pre-set priority;
Using Memory Allocation area of the recycling priority higher than pre-set priority as Memory Allocation area to be recycled.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
The memory field recycling order in each Memory Allocation area is determined according to the recycling priority in each Memory Allocation area;
It calculates the EMS memory occupation amount in corresponding Memory Allocation area successively according to memory field recycling order, and calculates the shifting Memory recycle amount between the memory usage amount and the predetermined threshold value of dynamic terminal;
Accumulation operations are carried out to the EMS memory occupation amount successively according to memory field recycling order, to obtain EMS memory occupation Accumulation amount, until the EMS memory occupation accumulation amount is than or equal to the Memory recycle amount;
Determine the Memory Allocation area of the participation accumulation operations, and using the Memory Allocation area as Memory Allocation to be recycled Area.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
When detect the mobile terminal be in put out screen holding state when, record puts out screen standby moment;
In default storage region putting out screen standby time table and described to put out the use time shielded residing for standby moment true The current of the fixed mobile terminal puts out screen standby time;
It is described it is current put out screen standby time and be more than predetermined threshold value when, detect the mobile terminal memory usage amount whether More than predetermined threshold value;
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, when performing the record current detection Between, and according to the step of the current sensing time and preset time difference definite memory field access-hours.
Further, following steps are also realized when the Memory recycle program is performed by the processor:
It is obtained from the default storage region and puts out screen standby time table, and determine that described put out makes residing for the screen standby moment Use the period;
It obtains in screen standby time table and the use time is associated puts out screen standby time from described put out, and is put out described Screen standby time is determined as the current of the mobile terminal and puts out screen standby time.
Each specific embodiment of the specific embodiment of computer readable storage medium of the present invention and above-mentioned method for recovering internal storage Essentially identical, therefore not to repeat here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or system institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method for recovering internal storage, which is characterized in that the method for recovering internal storage is applied to mobile terminal, the Memory recycle Method comprises the following steps:
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, current sensing time is recorded, and according to institute State current sensing time and the definite memory field access-hours of preset time difference;
Obtain each Memory Allocation area that application is all run in the mobile terminal in the memory field access-hours in Deposit area's access frequency;
Each Memory Allocation is determined according to memory field access frequency of each Memory Allocation area in the memory field access-hours The recycling priority in area;
Memory Allocation area to be recycled is determined according to the recycling priority in each Memory Allocation area, and to the Memory Allocation to be recycled Area performs Memory recycle operation.
2. method for recovering internal storage as described in claim 1, which is characterized in that each Memory Allocation area of basis is described interior Depositing the step of memory field access frequency in area's access-hours determines the recycling priority in each Memory Allocation area includes:
Determine the frequency range area residing for memory field access frequency of each Memory Allocation area in the memory field access-hours Between;
The recycling priority in each Memory Allocation area is determined according to the frequency range section.
3. method for recovering internal storage as claimed in claim 2, which is characterized in that determined according to the frequency range section in each After the step of depositing the recycling priority in distribution area, further include:
It obtains each to run in the mobile terminal and applies the application access frequency in the memory field access-hours;
Application access frequency in the memory field access-hours is applied to definite each Memory Allocation according to each run The recycling priority in area is adjusted.
4. method for recovering internal storage as claimed in claim 3, which is characterized in that the basis each apply in the memory by operation The step of application access frequency in area's access-hours is adjusted the recycling priority in definite each Memory Allocation area is wrapped It includes:
High-frequency operation application of the application access frequency higher than the first predetermined threshold value is obtained, and will be run with the high-frequency The recycling priority in each Memory Allocation area of association turns down level-one;
Low frequency operation application of the application access frequency less than the second predetermined threshold value is obtained, and will be run with the low frequency The recycling priority in each Memory Allocation area of association heightens level-one, wherein, the first predetermined threshold value is higher than the second default threshold Value.
5. method for recovering internal storage as described in claim 1, which is characterized in that the recycling in each Memory Allocation area of basis is excellent First grade determines that the step of Memory Allocation area to be recycled includes:
By the recycling priority in each Memory Allocation area compared with pre-set priority, it is higher than with obtaining the recycling priority The Memory Allocation area of pre-set priority;
Using Memory Allocation area of the recycling priority higher than pre-set priority as Memory Allocation area to be recycled.
6. method for recovering internal storage as described in claim 1, which is characterized in that the recycling in each Memory Allocation area of basis is excellent First grade determines that the step of Memory Allocation area to be recycled further includes:
The memory field recycling order in each Memory Allocation area is determined according to the recycling priority in each Memory Allocation area;
It calculates the EMS memory occupation amount in corresponding Memory Allocation area successively according to memory field recycling order, and calculates described mobile whole Memory recycle amount between the memory usage amount and the predetermined threshold value at end;
Accumulation operations are carried out to the EMS memory occupation amount successively according to memory field recycling order, are added up with obtaining EMS memory occupation Amount, until the EMS memory occupation accumulation amount is than or equal to the Memory recycle amount;
Determine the Memory Allocation area of the participation accumulation operations, and using the Memory Allocation area as Memory Allocation area to be recycled.
7. such as the method for recovering internal storage any one of claim 1-6, which is characterized in that during the record current detection Between, and according to the step of current sensing time and preset time difference definite memory field access-hours before, it is described in be stored back to Receiving method further includes:
When detect the mobile terminal be in put out screen holding state when, record puts out screen standby moment;
Putting out in default storage region shields standby time table and the use time shielded residing for the standby moment of putting out determines institute It states the current of mobile terminal and puts out screen standby time;
It is described it is current put out screen standby time and be more than predetermined threshold value when, detect the mobile terminal memory usage amount whether be more than Predetermined threshold value;
When the memory usage amount for detecting the mobile terminal is more than predetermined threshold value, the record current sensing time is performed, And the step of memory field access-hours are determined according to the current sensing time and preset time difference.
8. method for recovering internal storage as claimed in claim 7, which is characterized in that the screen that puts out that the basis is preset in storage region is treated Machine duration table and the use time put out residing for the screen standby moment determine that current put out of the mobile terminal shields standby time Step includes:
It is obtained from the default storage region and puts out screen standby time table, and determine described put out when shielding the use residing for the standby moment Section;
It is obtained from described put out in screen standby time table and the use time is associated puts out screen standby time, and the screen that puts out is treated Machine duration is determined as the current of the mobile terminal and puts out screen standby time.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes:Memory, processor and it is stored in the storage It is real when the Memory recycle program is performed by the processor on device and the Memory recycle program that can run on the processor Now such as the step of method for recovering internal storage described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored back in being stored on the computer readable storage medium Program is received, such as Memory recycle described in any item of the claim 1 to 8 is realized when the Memory recycle program is executed by processor The step of method.
CN201711472753.2A 2017-12-28 2017-12-28 Memory recovery method, mobile terminal and computer-readable storage medium Active CN108073458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711472753.2A CN108073458B (en) 2017-12-28 2017-12-28 Memory recovery method, mobile terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711472753.2A CN108073458B (en) 2017-12-28 2017-12-28 Memory recovery method, mobile terminal and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108073458A true CN108073458A (en) 2018-05-25
CN108073458B CN108073458B (en) 2022-03-18

Family

ID=62155916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711472753.2A Active CN108073458B (en) 2017-12-28 2017-12-28 Memory recovery method, mobile terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108073458B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083450A (en) * 2019-04-09 2019-08-02 Oppo广东移动通信有限公司 Method for recovering internal storage, device, electronic equipment and storage medium
CN111274039A (en) * 2020-02-14 2020-06-12 Oppo广东移动通信有限公司 Memory recovery method and device, storage medium and electronic equipment
CN111414254A (en) * 2020-03-19 2020-07-14 Oppo广东移动通信有限公司 Device management method, device, storage medium and electronic device
CN112835765A (en) * 2021-02-02 2021-05-25 中国工商银行股份有限公司 Java program memory use condition monitoring method and device
CN116185644A (en) * 2023-04-26 2023-05-30 阿里云计算有限公司 Memory recycling control method, storage medium, processor and terminal equipment
CN116521489A (en) * 2023-07-04 2023-08-01 深圳市同泰怡信息技术有限公司 Computer server fault early warning method
CN116775506A (en) * 2023-08-22 2023-09-19 腾讯科技(深圳)有限公司 Memory recycling method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063261A (en) * 2011-01-19 2011-05-18 宇龙计算机通信科技(深圳)有限公司 Starting method of application program and mobile terminal
CN105224335A (en) * 2015-10-22 2016-01-06 上海斐讯数据通信技术有限公司 A kind of control method of Automatic clearance terminal device, system and terminal device
CN105354093A (en) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 Memory management method and mobile terminal
CN106775809A (en) * 2016-11-15 2017-05-31 北京奇虎科技有限公司 A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN107402813A (en) * 2017-06-21 2017-11-28 努比亚技术有限公司 The method and mobile terminal of a kind of resource allocation, computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063261A (en) * 2011-01-19 2011-05-18 宇龙计算机通信科技(深圳)有限公司 Starting method of application program and mobile terminal
CN105224335A (en) * 2015-10-22 2016-01-06 上海斐讯数据通信技术有限公司 A kind of control method of Automatic clearance terminal device, system and terminal device
CN105354093A (en) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 Memory management method and mobile terminal
CN106775809A (en) * 2016-11-15 2017-05-31 北京奇虎科技有限公司 A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN107402813A (en) * 2017-06-21 2017-11-28 努比亚技术有限公司 The method and mobile terminal of a kind of resource allocation, computer-readable recording medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083450A (en) * 2019-04-09 2019-08-02 Oppo广东移动通信有限公司 Method for recovering internal storage, device, electronic equipment and storage medium
CN111274039A (en) * 2020-02-14 2020-06-12 Oppo广东移动通信有限公司 Memory recovery method and device, storage medium and electronic equipment
CN111274039B (en) * 2020-02-14 2023-12-08 Oppo广东移动通信有限公司 Memory recycling method and device, storage medium and electronic equipment
CN111414254A (en) * 2020-03-19 2020-07-14 Oppo广东移动通信有限公司 Device management method, device, storage medium and electronic device
CN112835765A (en) * 2021-02-02 2021-05-25 中国工商银行股份有限公司 Java program memory use condition monitoring method and device
CN116185644A (en) * 2023-04-26 2023-05-30 阿里云计算有限公司 Memory recycling control method, storage medium, processor and terminal equipment
CN116521489A (en) * 2023-07-04 2023-08-01 深圳市同泰怡信息技术有限公司 Computer server fault early warning method
CN116521489B (en) * 2023-07-04 2024-03-15 深圳市同泰怡信息技术有限公司 Computer server fault early warning method
CN116775506A (en) * 2023-08-22 2023-09-19 腾讯科技(深圳)有限公司 Memory recycling method, device, equipment and medium
CN116775506B (en) * 2023-08-22 2023-12-05 腾讯科技(深圳)有限公司 Memory recycling method, device, equipment and medium

Also Published As

Publication number Publication date
CN108073458B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN108073458A (en) Method for recovering internal storage, mobile terminal and computer readable storage medium
CN107728770A (en) Screen luminance of terminal method of adjustment, mobile terminal and computer-readable recording medium
CN109582821A (en) A kind of music object recommendation method, terminal and computer readable storage medium
CN107580143A (en) A kind of display methods and mobile terminal
CN110908513B (en) Data processing method and electronic equipment
CN109697088A (en) Application interface loading method, mobile terminal and computer readable storage medium
CN107797871A (en) EMS memory occupation method for releasing resource, mobile terminal and computer-readable recording medium
CN108898046A (en) Fingerprint power consumption control method, terminal and computer readable storage medium under a kind of screen
CN108227898A (en) Flexible screen terminal and its power consumption control method, computer readable storage medium
CN107577332A (en) A kind of power consumption control method, mobile terminal and computer-readable recording medium
CN108762926A (en) A kind of system optimization method, terminal and computer readable storage medium
CN108519847A (en) A kind of record screen method and terminal
CN110278481A (en) Picture-in-picture implementing method, terminal and computer readable storage medium
CN110096213A (en) Terminal operation method, mobile terminal and readable storage medium storing program for executing based on gesture
CN108744505A (en) A kind of method of rate control, terminal and computer readable storage medium
CN108259658A (en) Flexible screen terminal and its electricity based reminding method, computer readable storage medium
CN108366303A (en) A kind of video broadcasting method, mobile terminal and computer readable storage medium
CN107908348A (en) The method and mobile terminal of display
CN107332883A (en) Information updating method, device and computer-readable recording medium
CN108037997A (en) Memory Optimize Method, mobile terminal and computer-readable recording medium
CN110012155A (en) A kind of call recording method, terminal and computer readable storage medium
CN109522034A (en) A kind of optimizing application method, terminal and computer readable storage medium
CN109683741A (en) Function triggering method, device and computer readable storage medium
CN109753483A (en) file management application page display method and device, mobile terminal and storage medium
CN109508300A (en) A kind of disk fragments method for sorting, equipment and computer readable storage medium

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