CN108228357A - A kind of memory method for cleaning and mobile terminal - Google Patents

A kind of memory method for cleaning and mobile terminal Download PDF

Info

Publication number
CN108228357A
CN108228357A CN201810060362.8A CN201810060362A CN108228357A CN 108228357 A CN108228357 A CN 108228357A CN 201810060362 A CN201810060362 A CN 201810060362A CN 108228357 A CN108228357 A CN 108228357A
Authority
CN
China
Prior art keywords
file
mobile terminal
frequency
subfile
cleaning
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
CN201810060362.8A
Other languages
Chinese (zh)
Other versions
CN108228357B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810060362.8A priority Critical patent/CN108228357B/en
Publication of CN108228357A publication Critical patent/CN108228357A/en
Application granted granted Critical
Publication of CN108228357B publication Critical patent/CN108228357B/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

Abstract

The invention discloses a kind of memory method for cleaning and mobile terminal, this method to include:The fileinfo in mobile terminal is obtained, the fileinfo includes at least one of the type of file, frequency of use;According to the fileinfo, determine the manner of cleaning up to the file, it can be according to the type and/or frequency of use of the file filtered out, determine the manner of cleaning up to this document, targetedly file can be cleared up, memory cleaning speed is improved, simplifies cleaning difficulty, and then improve the speed of service of mobile terminal.

Description

A kind of memory method for cleaning and mobile terminal
Technical field
The present invention relates to field of mobile terminals more particularly to a kind of memory method for cleaning and mobile terminal.
Background technology
With the rapid development of science and technology, the improvement of people's living standards.Mobile terminal be commonly utilized in people's daily life, In working and learning.With popularizing for mobile terminal, the application program on various mobile terminals emerges in an endless stream, abundant mobile whole While holding function, a large amount of memories of mobile terminal are also occupied, the processing speed for leading to mobile terminal is slower and slower.
In order to save the memory of mobile terminal, the processing speed of mobile terminal is improved, is needed to long-time on mobile terminal The a large amount of recording data files and the occupied memory of not used data file carries out for a long time that the application program used generates Cleaning.
In the prior art, typically people start memory liquidation procedures on mobile terminals manually, and journey is cleared up by memory The data file of ordered pair application program is cleared up.But people manually boot memory liquidation procedures, and it is complicated for operation, cause interior It is slower to deposit cleaning speed.
Invention content
The embodiment of the present invention provides a kind of memory method for cleaning and mobile terminal, to solve memory cleaning speed in the prior art The problem of degree is slower.
In order to solve the above-mentioned technical problem, the invention is realized in this way:A kind of memory method for cleaning, this method include:
The fileinfo in mobile terminal is obtained, the fileinfo is included in the type of file, frequency of use at least It is a kind of;
According to the fileinfo, the manner of cleaning up to the file is determined.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:
Acquisition module, for obtaining the fileinfo in mobile terminal, the fileinfo includes the type of file, uses At least one of frequency;
First determining module, for according to the fileinfo, determining the manner of cleaning up to the file.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:Memory, processor and it is stored in institute The computer program that can be run on memory and on the processor is stated, when the computer program is performed by the processor The step of realizing memory method for cleaning described above.
Fourth aspect, the embodiment of the present invention also provide a kind of readable storage medium storing program for executing, on the computer readable storage medium Computer program is stored with, the computer program realizes the step of memory method for cleaning described above when being executed by processor Suddenly.
It in embodiments of the present invention, can be in automatic screening mobile terminal by obtaining the fileinfo in mobile terminal File.This document information includes at least one of the type of file, frequency of use.According to this document information, determine to this The manner of cleaning up of file can determine the cleaning side to this document according to the type and/or frequency of use of the file filtered out Formula can targetedly clear up file, improve memory cleaning speed, simplify cleaning difficulty, and then improve movement eventually The speed of service at end.
Description of the drawings
Fig. 1 is the flow chart of memory method for cleaning provided in an embodiment of the present invention;
Fig. 2 is schematic diagram of the memory method for cleaning provided in an embodiment of the present invention in practical application scene;
Fig. 3 is one of structure diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is the second structural representation of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.The technical solution provided below in conjunction with attached drawing, each embodiment that the present invention will be described in detail.
To solve the problems, such as that memory cleaning is slow in the prior art, the present invention provides a kind of memory method for cleaning, should The executive agent of method can be, but not limited to mobile terminal (e.g., mobile phone, tablet computer etc.) or can be configured as performing this hair The device of this method that bright embodiment provides.
For ease of description, hereafter executive agent in this way is to be able to carry out for the mobile terminal of this method, to this The embodiment of method is introduced.It is appreciated that the executive agent of this method is that one kind is illustratively said for mobile terminal It is bright, it is not construed as the restriction to this method.
Fig. 1 is the flow chart of memory method for cleaning provided in an embodiment of the present invention, and the method for Fig. 1 can be held by mobile terminal Row, as shown in Figure 1, this method can include:
Fileinfo in step 101, acquisition mobile terminal.
This document information can include at least one of type, frequency of use of file.
The type of this document can include nonsystematic file, application program installation package file etc..
The frequency of use can be to use primary using primary, every two days daily or use within every seven days primary.
Certainly, the restriction of the frequency of use is not limited to above-mentioned cited, and when specific implementation is needed according to practical need Setting is asked, the embodiment of the present invention is not specifically limited.
Step 102, according to the fileinfo, determine the manner of cleaning up to the file.
It should be understood that in the present embodiment, according to the type and/or frequency of use of file, the manner of cleaning up to file is determined.
The manner of cleaning up can be to delete, mark and wouldn't delete.
It in embodiments of the present invention, can be in automatic screening mobile terminal by obtaining the fileinfo in mobile terminal File, can effectively avoid and subsequently system file is cleared up to influence the normal operation of mobile terminal.Believed according to this document Breath determines the manner of cleaning up to this document, can be determined according to the type and/or frequency of use of the file filtered out to this article The manner of cleaning up of part can targetedly clear up file, improve memory cleaning speed, simplify cleaning difficulty, and then Improve the speed of service of mobile terminal.
Optionally, as one embodiment, step 102 specifically can be achieved be:
If the type of the file is nonsystematic file, and the frequency of use of the file is less than or equal to the first predetermined frequency Rate then deletes the file.
The nonsystematic file can be data file.
First preset frequency can be that access times are 0 or 1 time in 15 days.Certainly, which can root It is set according to actual demand, the embodiment of the present invention is not specifically limited.
The embodiment of the present invention, by being scanned for the nonsystematic file on mobile terminal, if the nonsystematic file makes Be less than or equal to the first preset frequency with frequency, then delete the nonsystematic file, so as to fulfill to long-term not used file into Row cleaning, reduces the occupancy to the memory of mobile terminal, improves the speed of service of mobile terminal.Furthermore it is possible to mobile terminal In application program installation package file, file scan for, and cleared up according to its corresponding manner of cleaning up respectively, improve To the cleaning efficiency of long-term not used file.
Optionally, as one embodiment, memory method for cleaning provided by the invention further includes:
Search for the destination folder in mobile terminal;
Step 101 specifically can be achieved:
When the size of the destination folder is non-zero KB, the information of the subfile under the destination folder, institute are obtained State at least one of type, frequency of use of subfile packet enclosed tool file;
Step 102 specifically can be achieved:
According to the subfile information, the manner of cleaning up to the subfile is determined.
It should be understood that during the present invention is implemented, if the size of destination folder is non-zero KB, obtain under the destination folder The information of subfile;It can be according to the type and/or frequency of use of subfile to the manner of cleaning up of subfile.
The embodiment of the present invention, by being scanned for the destination folder on mobile terminal, if the size of destination folder For non-zero KB, then obtain the information of the subfile under the destination folder, according in the type of subfile, frequency of use at least One kind determines the manner of cleaning up to subfile, is cleared up so as to fulfill to long-term not used file, reduces to mobile whole The occupancy of the memory at end improves the speed of service of mobile terminal.Furthermore it is possible to in mobile terminal nonsystematic file, application Program installation package file scans for respectively, and is cleared up according to its corresponding manner of cleaning up, improves to long-term not used The cleaning efficiency of file.
When it is implemented, if the committed memory size of destination folder is non-zero KB, that is, in the occupancy of destination folder Size is deposited more than 0KB, then obtains the information of the subfile under the destination folder;If the frequency of use of the subfile is less than or waits In the second preset frequency, then the subfile is deleted.
It should be understood that in the embodiment of the present invention, if the frequency of use of subfile is less than or equal to the second preset frequency, you can really The fixed subfile is the file hardly used, then directly deletes the subfile.
Second preset frequency can be that access times are 0 or 1 time in 7 days.
Certainly, the restriction of the frequency of use is not limited to above-mentioned cited, and when specific implementation is needed according to practical need Setting is asked, the embodiment of the present invention is not specifically limited.
If when it is implemented, the frequency of use of the subfile makes a reservation for more than second preset frequency less than or equal to third Frequency then marks the subfile not deleted within the first predetermined time.
It should be understood that the embodiment of the present invention in, if the frequency of use of the subfile be less than more than second preset frequency or Equal to third preset frequency, you can determine the subfile as rarely needed file, be then labeled as the subfile pre- first It is not deleted in fixing time.
The third preset frequency can be that access times are more than 1 time but are not more than 5 times in 7 days.Certainly, which makes a reservation for frequency Rate can be set according to actual demand, and the embodiment of the present invention is not specifically limited.
First predetermined time can be 2 days, 3 days etc., which is not limited to above-mentioned cited, tool It needs to be set according to actual demand when body is implemented, the embodiment of the present invention is not specifically limited.
If when it is implemented, the frequency of use of the subfile is more than the third preset frequency, the Ziwen is marked Part is not deleted within second scheduled time.
It should be understood that in the embodiment of the present invention, if the frequency of use of the subfile is more than third preset frequency, you can determining should Subfile is the file often used, then is labeled as not deleting within second scheduled time by the subfile.
Wherein, second preset frequency is less than the third preset frequency, and first predetermined time is less than described the Two predetermined times.
Second predetermined time can be 5 days, 7 days etc., which is not limited to above-mentioned cited, tool It needs to be set according to actual demand when body is implemented, the embodiment of the present invention is not specifically limited.
If when it is implemented, the frequency of use of the subfile is more than the 4th preset frequency, the subfile is marked to exist Third is not deleted in the predetermined time.
It should be understood that in the embodiment of the present invention, if the frequency of use of the subfile is more than the 4th preset frequency, you can determining should Subfile is the extraordinary file used, then is labeled as not deleting within the third predetermined time by the subfile.
4th preset frequency can be access times in 7 days more than 20 times.Certainly, the 4th preset frequency can basis Actual demand is set, and the embodiment of the present invention is not specifically limited.
The third predetermined time can be 10 days, 15 days etc., the third predetermined time be not limited to it is above-mentioned cited, It needs to be set according to actual demand during specific implementation, the embodiment of the present invention is not specifically limited.
The embodiment of the present invention by the committed memory size and/or frequency of use according to destination folder, is determined to target The manner of cleaning up of file so that there is specific aim to the cleaning of destination folder, avoid unnecessary repetition cleaning operation, And then the efficiency that destination folder is cleared up automatically is improved, effectively delete the not long file used in mobile terminal.
Optionally, as one embodiment, step 101 specifically can be achieved be:
When the destination folder size be 0KB when or the destination folder subfile it is big after cleaning It is small be 0KB when, delete the destination folder.
Wherein, size of the subfile of the destination folder after cleaning, that is to say, that by the son in destination folder After file is cleared up, the size of the destination folder.
The embodiment of the present invention is deleting destination folder for 0KB by size, so as to fulfill to being not used for a long time Destination folder cleared up, reduce the occupancy to the memory of mobile terminal, improve the speed of service of mobile terminal.
Optionally, as one embodiment, step 102 specifically can be achieved be:
If step 11, the type of the file are application program installation package file, to having been downloaded in the mobile terminal Into the application program installation package file positioned, and generate position tracking information.
For example, as shown in Fig. 2, when downloading new application program installation package file in mobile terminal, in mobile terminal Download information receiving unit 201 receives message, and the save location of application program installation package file is positioned, and generates position Put tracking information.
Step 12 decompresses the application program installation package file, is installed, and generate installation is complete instruction.
For example, journey is applied on mobile terminal as shown in Fig. 2, decompressing signal receiving unit 205 in mobile terminal and can receive Sequence installation package file starts the message for decompressing, installing, and when application program installation package file decompression, installation is complete, and backward decompression is completed 204 PUSH message of signal sending unit, decompression complete signal sending unit 204 and are sending installation to identification installation kit unit 203 The instruction of completion.
Step 13, according to installation is complete instruction and the position tracking information, identification completed to decompress, answering of install With the save location of program installation package file.
For example, as shown in Fig. 2, the identification installation kit unit 203 in mobile terminal is stored according to path in tracking cell 202 The positioning of installation kit find decompressed, the position for the installation kit that installation is complete, and push to file delete unit 206.
Step 14 determines to perform delete operation to the application program installation package file at the save location.
For example, as shown in Fig. 2, the file in mobile terminal, which deletes unit 206, will delete the application program installation kit text Part.
The embodiment of the present invention, by being scanned for the application program installation package file on mobile terminal, when this applies journey Sequence installation package file has decompressed, installation is complete, will search the store path of the application program installation package file, should be answered with deleting With program installation package file, the application program installation kit text that installation is complete can be quickly found out by the way of positioning, tracking Part improves the cleaning speed of application program installation package file, reduces the occupancy to the memory of mobile terminal, improves mobile terminal The speed of service.
Furthermore it is possible to nonsystematic file, the file in mobile terminal are scanned for respectively, and corresponding clear according to its Reason mode is cleared up, and improves the cleaning efficiency to long-term not used file.
Optionally, as one embodiment, memory method for cleaning provided by the invention further includes:
When determining to the manner of cleaning up of the file as delete operation, the file is uploaded to the mobile terminal Far-end server is backed up.
The embodiment of the present invention is carried out by the far-end server that the file of pending delete operation is uploaded to mobile terminal The phenomenon that backup can find the file accidentally deleted, effectively prevent file that can not be reacquired after accidentally being deleted.
More than, the memory method for cleaning of the embodiment of the present invention is described in detail with reference to Fig. 1, in the following, with reference to Fig. 3, specifically The mobile terminal of the bright embodiment of the present invention.
Fig. 3 shows the structure diagram of mobile terminal provided in an embodiment of the present invention, as shown in figure 3, the mobile terminal Based on the memory method for cleaning that one embodiment of the invention provides, which can include:
Acquisition module 301, for obtaining the fileinfo in mobile terminal, the fileinfo include file type, At least one of frequency of use;
First determining module 302, for according to the fileinfo, determining the manner of cleaning up to the file.
In one embodiment, first determining module 302 includes:
First deletes unit, if the type for the file is nonsystematic file, and the frequency of use of the file is small In or equal to the first preset frequency, then the file is deleted.
In one embodiment, mobile terminal 300 further includes:
Search module 303, for searching for the destination folder in mobile terminal;
The acquisition module 301 includes:
Acquiring unit, for when the size of the destination folder is non-zero KB, obtaining the son under the destination folder At least one of fileinfo, the type of the subfile packet enclosed tool file, frequency of use;
First determining module 302 includes:
First determination unit for type, at least one of the frequency of use according to the subfile, is determined to described The manner of cleaning up of subfile.
In one embodiment, first determining module 302 includes:
Second delete unit, for when the size of the destination folder be 0KB when or the destination folder son When size of the file after cleaning is 0K, the destination folder is deleted.
In one embodiment, second determining module 304 further includes:
First indexing unit, if the frequency of use for the subfile is less than or equal to more than second preset frequency Third preset frequency then marks the subfile not deleted within the first predetermined time;
Second indexing unit if the frequency of use for the subfile is more than the third preset frequency, marks institute Subfile is stated not delete within second scheduled time;
Wherein, second preset frequency is less than the third preset frequency, and first predetermined time is less than described the Two predetermined times.
In one embodiment, first determining module 302 includes:
First generation unit, if the type for the file is application program installation package file, to described mobile whole The application program installation package file that completion is downloaded in end is positioned, and generate position tracking information;
Second generation unit, for being decompressed, being installed to the application program installation package file, and installation is complete for generation Instruction;
Recognition unit, instructs for installation is complete according to and the position tracking information, identification have been completed to decompress, pacified The save location of the application program installation package file of dress;
Second determination unit, for determining to perform deletion to the application program installation package file at the save location Operation.
In one embodiment, mobile terminal 300 further includes:
Uploading module 304, for when determining to the manner of cleaning up of the file as delete operation, the file to be uploaded Far-end server to the mobile terminal is backed up.
It in embodiments of the present invention, can be in automatic screening mobile terminal by obtaining the fileinfo in mobile terminal File.This document information includes at least one of the type of file, frequency of use.According to the type of this document, use frequency At least one of rate determines the manner of cleaning up to this document, can be according to the type of the file filtered out and/or using frequently Rate determines the manner of cleaning up to this document, targetedly file can be cleared up, and improves memory cleaning speed, simplifies Difficulty is cleared up, and then improves the speed of service of mobile terminal.
The mobile terminal can also carry out the method for Fig. 1, and realize the function of mobile terminal embodiment shown in Fig. 1, no longer It repeats.
A kind of hardware architecture diagram of Fig. 4 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 400 includes but not limited to:It is radio frequency unit 401, network module 402, audio output unit 403, defeated Enter unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor The components such as 410 and power supply 411.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 4 is not formed Restriction to mobile terminal, mobile terminal can include than illustrate more or fewer components either combine certain components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 410, for obtaining the fileinfo in mobile terminal, the fileinfo includes the class of file At least one of type, frequency of use;
According to the fileinfo, the manner of cleaning up to the file is determined.
It in embodiments of the present invention, can be in automatic screening mobile terminal by obtaining the fileinfo in mobile terminal File.This document information includes at least one of the type of file, frequency of use.According to the type of this document, use frequency At least one of rate determines the manner of cleaning up to this document, can be according to the type of the file filtered out and/or using frequently Rate determines the manner of cleaning up to this document, targetedly file can be cleared up, and improves memory cleaning speed, simplifies Difficulty is cleared up, and then improves the speed of service of mobile terminal.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 can be used for receive and send messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, handled to processor 410;In addition, by uplink Data are sent to base station.In general, radio frequency unit 401 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by radio communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 402 and has accessed, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
It is that audio output unit 403 can receive radio frequency unit 401 or network module 402 or in memory 409 The audio data of storage is converted into audio signal and exports as sound.Moreover, audio output unit 403 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 400 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 403 includes loud speaker, buzzer and receiver etc..
Input unit 404 is used to receive audio or video signal.Input unit 404 can include graphics processor (Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 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 406.Through graphics processor 4041, treated that picture frame can be deposited Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike Wind 4042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The form output of mobile communication base station can be sent to via radio frequency unit 401 by being converted in the case of telephone calling model.
Mobile terminal 400 further includes at least one sensor 405, 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 4061, and proximity sensor can close when mobile terminal 400 is moved in one's ear Display panel 4061 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, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 406 is used to show by information input by user or be supplied to the information of user.Display unit 406 can wrap Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Display panel 4061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 407 can be used for receiving the number inputted 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 407 include touch panel 4071 and Other input equipments 4072.Touch panel 4071, 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 4071 or in touch panel 4071 Neighbouring operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 140, receiving area It manages the order that device 410 is sent and is performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 4071.In addition to touch panel 4071, user input unit 407 can also include other input equipments 4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it On or near touch operation after, send to processor 410 with determine touch event type, be followed by subsequent processing device 410 according to touch The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 4, touch panel 4071 and display Panel 4061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments In, can be integrated by touch panel 4071 and display panel 4061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 408 is the interface that external device (ED) is connect with mobile terminal 400.For example, external device (ED) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 408 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 400 can be used in 400 He of mobile terminal Data are transmitted between external device (ED).
Memory 409 can be used for storage software program and various data.Memory 409 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 Audio data, phone directory etc.) etc..In addition, memory 409 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 410 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 409 and/or module and call Data in device 409 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 410 may include one or more processing units;Preferably, processor 410 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 Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Mobile terminal 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411 Can be logically contiguous by power-supply management system and processor 410, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 400 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, and including processor 410, memory 409 is stored in On memory 409 and the computer program that can be run on the processor 410, the computer program are performed by processor 410 Each process of the above-mentioned memory method for cleaning embodiments of Shi Shixian, and identical technique effect can be reached, it is repeated to avoid, here It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned memory method for cleaning embodiment, and energy when being executed by processor Reach identical technique effect, repeated to avoid, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
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 device 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 intrinsic for this process, method, article or device institute 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 device.
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 of the present invention 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 a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much Form is belonged within the protection of the present invention.

Claims (11)

1. a kind of memory method for cleaning, which is characterized in that including:
The fileinfo in mobile terminal is obtained, the fileinfo includes at least one of the type of file, frequency of use;
According to the fileinfo, the manner of cleaning up to the file is determined.
2. according to the method described in claim 1, it is characterized in that, described according to the fileinfo, determine to the file Manner of cleaning up, including:
If the type of the file is nonsystematic file, and the frequency of use of the file is less than or equal to the first preset frequency, Then delete the file.
3. it according to the method described in claim 1, it is characterized in that, further includes:
Search for the destination folder in mobile terminal;
Destination folder in described search mobile terminal to obtain fileinfo, including:
When the size of the destination folder is non-zero KB, the subfile information under the destination folder, the Ziwen are obtained At least one of the type of part packet enclosed tool file, frequency of use;
It is described that the manner of cleaning up to the file is determined according to the fileinfo, including:
According to the subfile information, the manner of cleaning up to the subfile is determined.
4. it according to the method described in claim 3, it is characterized in that, further includes:
If the frequency of use of the subfile is more than second preset frequency and is less than or equal to third preset frequency, institute is marked Subfile is stated not delete within the first predetermined time;
If the frequency of use of the subfile is more than the third preset frequency, the subfile is marked in the second predetermined time It does not delete inside;
Wherein, second preset frequency is less than the third preset frequency, and it is pre- that first predetermined time is less than described second It fixes time.
5. according to the method described in claim 1, it is characterized in that, described according to the fileinfo, determine to the file Manner of cleaning up, including:
If the type of the file is application program installation package file, to downloading the application of completion in the mobile terminal Program installation package file is positioned, and generates position tracking information;
The application program installation package file is decompressed, is installed, and generate installation is complete instruction;
According to installation is complete instruction and the position tracking information, identification completed to decompress, application program install is installed The save location of APMB package;
It determines to perform delete operation to the application program installation package file at the save location.
6. a kind of mobile terminal, which is characterized in that including:
Acquisition module, for obtaining the fileinfo in mobile terminal, the fileinfo includes type, the frequency of use of file At least one of;
First determining module, for according to the fileinfo, determining the manner of cleaning up to the file.
7. mobile terminal according to claim 6, which is characterized in that first determining module includes:
First deletes unit, if for the file type for nonsystematic file, and the frequency of use of the file be less than or Equal to the first preset frequency, then the file is deleted.
8. mobile terminal according to claim 6, which is characterized in that further include:
Search module, for searching for the destination folder in mobile terminal;
The acquisition module includes:
Acquiring unit, for when the size of the destination folder is non-zero KB, obtaining the subfile under the destination folder At least one of information, the type of the subfile packet enclosed tool file, frequency of use;
First determining module includes:
First determination unit, for according to the subfile information, determining the manner of cleaning up to the subfile.
9. mobile terminal according to claim 8, which is characterized in that further include:
First indexing unit, if the frequency of use for the subfile is more than second preset frequency less than or equal to third Preset frequency then marks the subfile not deleted within the first predetermined time;
Second indexing unit if the frequency of use for the subfile is more than the third preset frequency, marks the son File is not deleted within second scheduled time;
Wherein, second preset frequency is less than the third preset frequency, and it is pre- that first predetermined time is less than described second It fixes time.
10. mobile terminal according to claim 6, which is characterized in that first determining module includes:
First generation unit, if the type for the file is application program installation package file, in the mobile terminal The application program installation package file completed is downloaded to be positioned, and generate position tracking information;
Second generation unit, for being decompressed, being installed to the application program installation package file, and generate installation is complete refer to It enables;
Recognition unit, for according to installation is complete instruction and the position tracking information, identification completed to decompress, installs The save location of application program installation package file;
Second determination unit deletes behaviour for determining to perform the application program installation package file at the save location Make.
11. a kind of mobile terminal, which is characterized in that including:It memory, processor and is stored on the memory and can be in institute The computer program run on processor is stated, is realized when the computer program is performed by the processor according to claim 1 The step of to memory method for cleaning described in any one of 5.
CN201810060362.8A 2018-01-22 2018-01-22 Memory cleaning method and mobile terminal Active CN108228357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810060362.8A CN108228357B (en) 2018-01-22 2018-01-22 Memory cleaning method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810060362.8A CN108228357B (en) 2018-01-22 2018-01-22 Memory cleaning method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108228357A true CN108228357A (en) 2018-06-29
CN108228357B CN108228357B (en) 2021-04-02

Family

ID=62668382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810060362.8A Active CN108228357B (en) 2018-01-22 2018-01-22 Memory cleaning method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108228357B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535644A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Device memory management method and device, terminal device and storage medium
CN114792450A (en) * 2022-05-09 2022-07-26 广东好太太智能家居有限公司 Electronic lock virtual key management method and system and electronic lock system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473343A (en) * 2013-09-23 2013-12-25 深圳市金立通信设备有限公司 File management method, device and terminal
CN104572891A (en) * 2014-12-24 2015-04-29 北京大学深圳研究生院 File updating method for separately storing network information
CN105183902A (en) * 2015-09-30 2015-12-23 北京金山安全软件有限公司 File cleaning method and device and terminal
CN105677240A (en) * 2015-12-30 2016-06-15 上海联影医疗科技有限公司 Data deleting method and system
CN105843853A (en) * 2016-03-16 2016-08-10 北京小米移动软件有限公司 Clearing method and apparatus for intelligent device
CN105898077A (en) * 2016-06-21 2016-08-24 韩文杰 Smartphone capable of automatically cleaning memory
CN105893152A (en) * 2016-03-31 2016-08-24 广东欧珀移动通信有限公司 Memory management method and device and mobile terminal
CN105975484A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 File management method and apparatus
US20170132416A1 (en) * 2014-01-21 2017-05-11 Operation and Data integrity Ltd. Technologies for protecting systems and data to prevent cyber-attacks

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473343A (en) * 2013-09-23 2013-12-25 深圳市金立通信设备有限公司 File management method, device and terminal
US20170132416A1 (en) * 2014-01-21 2017-05-11 Operation and Data integrity Ltd. Technologies for protecting systems and data to prevent cyber-attacks
CN104572891A (en) * 2014-12-24 2015-04-29 北京大学深圳研究生院 File updating method for separately storing network information
CN105183902A (en) * 2015-09-30 2015-12-23 北京金山安全软件有限公司 File cleaning method and device and terminal
CN105677240A (en) * 2015-12-30 2016-06-15 上海联影医疗科技有限公司 Data deleting method and system
CN105843853A (en) * 2016-03-16 2016-08-10 北京小米移动软件有限公司 Clearing method and apparatus for intelligent device
CN105893152A (en) * 2016-03-31 2016-08-24 广东欧珀移动通信有限公司 Memory management method and device and mobile terminal
CN105975484A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 File management method and apparatus
CN105898077A (en) * 2016-06-21 2016-08-24 韩文杰 Smartphone capable of automatically cleaning memory

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535644A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Device memory management method and device, terminal device and storage medium
CN114792450A (en) * 2022-05-09 2022-07-26 广东好太太智能家居有限公司 Electronic lock virtual key management method and system and electronic lock system
CN114792450B (en) * 2022-05-09 2023-12-26 广东好太太智能家居有限公司 Electronic lock virtual key management method and system and electronic lock system

Also Published As

Publication number Publication date
CN108228357B (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN108255378A (en) A kind of display control method and mobile terminal
CN109445894A (en) A kind of screenshot method and electronic equipment
CN109388304A (en) A kind of screenshotss method and terminal device
CN103488403A (en) Switching method and device for interface layout and mobile terminal
CN108132752A (en) A kind of method for editing text and mobile terminal
CN109819168B (en) Camera starting method and mobile terminal
CN108279948A (en) A kind of application program launching method and mobile terminal
CN108052251A (en) A kind of screenshotss method for information display and mobile terminal
CN108135033A (en) A kind of Bluetooth connecting method and mobile terminal
CN108334272A (en) A kind of control method and mobile terminal
CN108469968A (en) A kind of applied program processing method and mobile terminal
CN108762869A (en) A kind of information processing method and mobile terminal
CN110109593A (en) A kind of screenshotss method and terminal device
CN108334265A (en) A kind of document handling method and mobile terminal
CN107888765A (en) A kind of method of handoff scenario pattern, mobile terminal
CN108124059A (en) A kind of way of recording and mobile terminal
CN104122981A (en) Photographing method and device applied to mobile terminal and mobile terminal
CN108037934A (en) A kind of method and apparatus of application program update
CN108174109A (en) A kind of photographic method and mobile terminal
CN108536349A (en) A kind of icon management method and mobile terminal
CN107992378B (en) A kind of document handling method and mobile terminal
CN110045943A (en) A kind of data recording method and terminal device
CN109814974A (en) Application Program Interface method of adjustment and mobile terminal
CN109063076A (en) A kind of Picture Generation Method and mobile terminal
CN109348035A (en) A kind of recognition methods of telephone number and terminal device

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