A kind of intelligent terminal file clean-up method and device
Technical field
The invention belongs to field of mobile terminals, more particularly to a kind of intelligent terminal file clean-up method and device.
Background technology
With the popularization of smart mobile phone, the performance of smart mobile phone is become better and better, the network service matched with smart mobile phone
Constantly lifted, people especially carry out the chance of multimedia application also just using the frequency also more and more higher of smart mobile phone
It is increasing, under the frequent use of smart mobile phone, it is not possible to which the meeting avoided is in the excessive many matchmakers of smart mobile phone storage inside
Body application data, and the memory space of smart mobile phone is relatively limited, the usual scale of construction of multimedia application data is larger, works as smart mobile phone
After a period of time, internal memory space will be taken by more by multi-medium data, and with multi-medium data
The space of occupancy is increasing, and the phenomenon of interim card occurs all the more in smart mobile phone when in use, influences the usage experience of user.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of intelligent terminal file clean-up method and device, and user passes through setting
Cleaning object and trigger condition during automatic progress file clean-up, when reaching for set trigger condition, intelligent terminal
The cleaning object that user sets is cleared up, cache file and multimedia file inside automatic cleaning intelligent terminal.
The embodiment of the present invention is achieved in that a kind of intelligent terminal file clean-up method, and methods described includes following steps
Suddenly:
Object and the automatic trigger condition for carrying out file clean-up are cleared up when setting carries out file clean-up automatically;
When the trigger condition for detecting automatic progress file clean-up reaches, startup file clearing function, to the clear of setting
Reason object is scanned and carries out file clean-up to cleaning object according to scanning result.
Further, the setting is automatic when carrying out file clean-up cleaning object and automatic touching for file clean-up is carried out
The step of clockwork spring part, includes:
Target cleaning file and target when setting carries out file clean-up automatically clear up file type;
The automatic trigger condition for carrying out file clean-up of setting.
Further, the automatic trigger condition for carrying out file clean-up of the setting includes:
The automatic time interval for carrying out file clean-up of setting, progress is just triggered when reaching certain time interval once literary
Part is cleared up;
Setting is automatic to carry out memory space remaining proportion during file clean-up, when the ratio of residual memory space is less than necessarily
A file clean-up is just triggered during threshold value.
Further, it is described when the trigger condition for detecting automatic progress file clean-up reaches, startup file cleaning work(
Can, the cleaning object of setting is scanned and included the step of carrying out file clean-up to cleaning object according to scanning result:
When the trigger condition for detecting automatic progress file clean-up reaches, startup file clearing function;
File scan is carried out to the cleaning object of setting, cache file cleared up according to the result of scanning, while right
The multimedia file stored in cleaning object is deleted.
The another object of the embodiment of the present invention is to provide a kind of intelligent terminal file clean-up device, and described device includes:
Setup unit, for setting cleaning object during automatic progress file clean-up and carrying out touching for file clean-up automatically
Clockwork spring part;
Unit is cleared up, for when the trigger condition for detecting automatic progress file clean-up reaches, startup file to clear up work(
Can, the cleaning object of setting is scanned and file clean-up is carried out to cleaning object according to scanning result.
Further, the setup unit includes:
Target setting unit, for setting target cleaning file and target cleaning text during automatic progress file clean-up
Part type;
Setup unit is triggered, for setting the automatic trigger condition for carrying out file clean-up.
Further, the automatic trigger condition for carrying out file clean-up of triggering setup unit setting includes:
The automatic time interval for carrying out file clean-up of setting, progress is just triggered when reaching certain time interval once literary
Part is cleared up;
Setting is automatic to carry out memory space remaining proportion during file clean-up, when the ratio of residual memory space is less than necessarily
A file clean-up is just triggered during threshold value.
Further, the cleaning unit includes:
Start unit is cleared up, for when the trigger condition for detecting automatic progress file clean-up reaches, startup file to be clear
Manage function;
Execution unit is cleared up, file scan is carried out for the cleaning object to setting, according to the result of scanning to caching text
Part is cleared up, while deleting the multimedia file stored in cleaning object.
The embodiment of the present invention is right according to the use habit of user by a kind of intelligent terminal file clean-up method and device
The object and trigger condition that mobile terminal carries out file clean-up are configured, and user sets what is specifically cleared up during cleaning file
Object, sets trigger condition during cleaning file again afterwards, specifically includes and carries out triggering cleaning and according to intelligence according to time interval
Energy terminal residual memory space ratio is triggered, and after triggering is cleared up, is cleared up automatically data cached, to many matchmakers
Body file is cleared up, it is to avoid the hash of the storing excess in system so that intelligent terminal operation is more smooth.
Brief description of the drawings
Fig. 1 is a kind of implementation process figure for intelligent terminal file clean-up method that first embodiment of the invention is provided;
Fig. 2 is a kind of implementation process figure for intelligent terminal file clean-up method that second embodiment of the invention is provided;
Fig. 3 is a kind of structure chart for intelligent terminal file clean-up device that third embodiment of the invention is provided;And
Fig. 4 is a kind of structure chart for intelligent terminal file clean-up device that fourth embodiment of the invention is provided.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Implementing for the present invention is described in detail below in conjunction with specific embodiment:
Embodiment one:
Fig. 1 shows a kind of implementation process for intelligent terminal file clean-up method that first embodiment of the invention is provided, in detail
State as follows:
S101, object and the automatic trigger condition for carrying out file clean-up are cleared up when setting carries out file clean-up automatically.
User is according to oneself automatic object for carrying out file clean-up of custom setting using intelligent terminal, and such as user is frequent
Using multimedia files such as intelligent terminal viewing Online Videos, during due to multimedia files such as viewing videos, intelligent terminal is frequent
Meeting downloading video files by way of caching, user can just set the data cached of scanning multimedia file, regularly to many
Media buffer file is cleared up, and user can also set to be cleared up for other kinds of data file, or according to being
The mode of system acquiescence sets cleaning object, and user sets cleaning rule when carrying out file clean-up afterwards, and such as user can set
Once cleared up at regular intervals between fixed, or progress file is clear when the memory space of user is less than certain threshold value
Reason.
S102, when the trigger condition for detecting automatic progress file clean-up reaches, startup file clearing function, to setting
Cleaning object be scanned and according to scanning result to cleaning object carry out file clean-up.
Can be specifically the cleaning of user's setting when the cleaning trigger condition that intelligent terminal detects user's setting reaches
Time interval reach or the intelligent terminal of user in residual memory space ratio less than setting threshold value when, now start text
Part clearing function, intelligent terminal is scanned to whole file system automatically, and the removing of user's setting is scanned in file system
Object, specifically includes the data and the multi-medium data of download of the intelligent terminal automatic buffer of user's setting, afterwards to buffering
Data and the multi-medium data of download are cleared up, and treating buffered data can directly be deleted, to many matchmakers to be downloaded
The mode that volume data is stored according to multi-medium data is cleared up multimedia file, and for example multimedia file is used
Data, then do not perform cleanup action, if multi-medium data, which is user, clicks on the data downloaded, continues to keep user to be downloaded
Multi-medium data.
The embodiment of the present invention by the above-mentioned means, a kind of intelligent terminal file clean-up method, first user according to oneself
Use habit, the object and trigger condition that file clean-up is carried out to mobile terminal is configured, and user has when setting cleaning file
The object that body is cleared up, sets trigger condition during cleaning file, specifically includes and triggered according to time interval again afterwards
Cleaning and triggered according to intelligent terminal residual memory space ratio, trigger cleared up after, automatically to it is data cached enter
Row cleaning, is cleared up multimedia file, it is to avoid the hash of the storing excess in system so that intelligent terminal, which is run, is
It is more smooth.
Embodiment two:
Fig. 2 shows a kind of implementation process for intelligent terminal file clean-up method that second embodiment of the invention is provided, in detail
State as follows:
S201, target cleaning file and target when setting carries out file clean-up automatically clear up file type.
User is according to oneself automatic object for carrying out file clean-up of custom setting using intelligent terminal, such as user first
Commonly using the multimedia files such as intelligent terminal viewing Online Video, during due to multimedia files such as viewing videos, intelligent terminal
Often by way of caching downloading video files some or all of data, user can just set scanning multimedia text
Part it is data cached, wherein user sets target clear up file type when, it is necessary to hide set file be scanned,
Hiding setting occurs in multimedia file such as .nomedia files in some cases, now can be by being separately provided pair
.nomedia the scan setting clearing function of file.
S202, the automatic trigger condition for carrying out file clean-up of setting.
After user sets target cleaning file type, user continues to be set for cleaning rule during file clean-up,
User can set the automatic time interval for carrying out file clean-up, progress just be triggered when reaching certain time interval once literary
Part is cleared up, memory space remaining proportion when can also set automatic progress file clean-up, when the ratio of residual memory space is less than
Just trigger a file clean-up during certain threshold value, such as time every two days is once cleared up between user can set, or
Person carries out file clean-up when the memory space of user is less than 15% memory space.
S203, when the trigger condition for detecting automatic progress file clean-up reaches, startup file clearing function.
Intelligent terminal is checked automatically in start running, when the triggering bar for detecting automatic progress file clean-up
When part reaches, just start clearing function, specifically include the time for reaching setting, or intelligent terminal memory space reaches setting
During threshold value, now the automatic backstage in intelligent terminal carries out file clean-up work.
S204, carries out file scan to the cleaning object of setting, cache file is cleared up according to the result of scanning, together
When the multimedia file that stores in cleaning object is deleted.
The automatic cleaning object to setting of intelligent terminal carries out file scan, by scanning file system, file system
Multimedia file under system, which is scanned, to be come, and the multimedia file for hiding attribute is especially provided with, afterwards by differentiating file
The multimedia file that the multimedia file of temporal cache or user oneself download during multimedia file under system, specifically can be with
By the naming rule of file, the store path of file and the storage time of file etc. are judged, by multimedia
File is judged, multimedia file is cleared up, direct to be deleted to data cached in storage, is embodied as whole
System file is reduced weight, and reduces the redundant file of system so that intelligent terminal is operationally automatically deleted redundant file, and system is existed
What is produced during operation data cached is cleared up automatically, it is ensured that the stable long-play of system.
The embodiment of the present invention is by the above-mentioned means, a kind of intelligent terminal file clean-up method, user is using mobile terminal
When, object and the automatic trigger condition for carrying out file clean-up are cleared up when carrying out file clean-up by the way that setting is automatic, in triggering
When condition reaches, startup file clearing function is scanned to the cleaning object of setting and according to scanning result to cleaning object
File clean-up is carried out, by the way that the multimedia file that the redundant file in system is especially cached is scanned and cleared up automatically, is kept away
Exempt from the hash of storing excess in system, it is ensured that whole system running paper is good, while by being carried out automatically to file
Cleaning, can cause more smooth when intelligent terminal is used, it is ensured that intelligent terminal can be steady for a long time in the case where not shutting down
Surely use.
Embodiment three:
Fig. 3 shows a kind of structure chart for intelligent terminal file clean-up device that third embodiment of the invention is provided, in order to
It is easy to explanation, illustrate only the part related to the embodiment of the present invention.
Setup unit 31, for setting cleaning object during automatic progress file clean-up and carrying out file clean-up automatically
Trigger condition.
Setup unit is used for user according to oneself automatic object for carrying out file clean-up of custom setting using intelligent terminal,
The multimedia file such as user is commonly using intelligent terminal viewing Online Video, during due to multimedia files such as viewing videos,
Intelligent terminal often downloading video files by way of caching, user can just set the caching number of scanning multimedia file
According to, regularly multimedia cache file is cleared up, user can also set to be cleared up for other kinds of data file,
Or cleaning object is set according to the mode of system default, user sets cleaning rule when carrying out file clean-up afterwards, for example
User is once cleared up at regular intervals between can setting, or is entered when the memory space of user is less than certain threshold value
Row file clean-up.
Unit 32 is cleared up, for when the trigger condition for detecting automatic progress file clean-up reaches, startup file to be cleared up
Function, is scanned to the cleaning object of setting and carries out file clean-up to cleaning object according to scanning result.
Cleaning unit is used for when the cleaning trigger condition that intelligent terminal detects user's setting reaches, can be specifically to use
Family setting clearance time interval reach or the intelligent terminal of user in residual memory space ratio less than setting threshold value
When, now startup file clearing function, intelligent terminal is scanned to whole file system automatically, is scanned and is used in file system
The removing object of family setting, specifically includes the data and the multimedia number of download of the intelligent terminal automatic buffer of user's setting
According to clearing up afterwards buffered data and the multi-medium data of download, treating buffered data can directly be deleted, right
The mode that multi-medium data to be downloaded is stored according to multi-medium data is cleared up multimedia file, for example multimedia file
For the data used, then cleanup action is not performed, if multi-medium data, which is user, clicks on the data downloaded, continue to protect
Hold the multi-medium data that user is downloaded.
The embodiment of the present invention by the above-mentioned means, a kind of intelligent terminal file clean-up device, first user according to oneself
Use habit, the object and trigger condition that file clean-up is carried out to mobile terminal is configured, and user has when setting cleaning file
The object that body is cleared up, sets trigger condition during cleaning file, specifically includes and triggered according to time interval again afterwards
Cleaning and triggered according to intelligent terminal residual memory space ratio, trigger cleared up after, automatically to it is data cached enter
Row cleaning, is cleared up multimedia file, it is to avoid the hash of the storing excess in system so that intelligent terminal, which is run, is
It is more smooth.
Example IV:
Fig. 4 shows a kind of structure chart for intelligent terminal file clean-up device that fourth embodiment of the invention is provided, in order to
It is easy to explanation, illustrate only the part related to the embodiment of the present invention.
Target setting unit 41, for setting target cleaning file and target cleaning during automatic progress file clean-up
File type.
It is clear using the automatic progress file of custom setting of intelligent terminal according to oneself that target setting unit is used for user first
The object of reason, the multimedia file such as user is commonly using intelligent terminal viewing Online Video, due to many matchmakers such as viewing videos
During body file, intelligent terminal often by way of caching downloading video files some or all of data, user can
With set scanning multimedia file it is data cached, wherein user sets target clear up file type when, it is necessary to hide
The file of setting is scanned, and hiding setting occurs in multimedia file such as .nomedia files in some cases, now may be used
With by being separately provided the scan setting clearing function to .nomedia files.
Setup unit 42 is triggered, for setting the automatic trigger condition for carrying out file clean-up.
Triggering setup unit is used for after user sets target cleaning file type, and user continues to be set for file clear
Cleaning rule during reason, user can set the automatic time interval for carrying out file clean-up, when reaching certain time interval
File clean-up is carried out with regard to triggering, memory space remaining proportion when can also set automatic progress file clean-up, when residue is deposited
The ratio in storage space just triggers a file clean-up when being less than certain threshold value, such as time every two days between user can set
Once cleared up, or file clean-up is carried out when the memory space of user is less than 15% memory space.
Start unit 43 is cleared up, for when detecting the automatic trigger condition for carrying out file clean-up and reaching, startup file
Clearing function.
Cleaning start unit is used for intelligent terminal and checked automatically in start running, when detecting automatic progress
When the trigger condition of file clean-up reaches, just start clearing function, specifically include the time for reaching setting, or intelligent terminal is deposited
When storing up the threshold value of space arrival setting, now the automatic backstage in intelligent terminal carries out file clean-up work.
Execution unit 44 is cleared up, file scan is carried out for the cleaning object to setting, according to the result of scanning to caching
File is cleared up, while deleting the multimedia file stored in cleaning object.
Clearing up execution unit is used for the automatic cleaning object progress file scan to setting of intelligent terminal, passes through scanning file
System, scans the multimedia file under file system folder to come, and is especially provided with the multimedia file for hiding attribute, afterwards
Many matchmakers that the multimedia file of temporal cache or user oneself download during by differentiating the multimedia file under file system folder
Body file, specifically can be by the naming rule of file, and the store path of file and the storage time of file etc. are sentenced
It is disconnected, by judging multimedia file, multimedia file is cleared up, to the data cached then directly progress in storage
Delete, be embodied as the weight reducing of whole system file, reduce the redundant file of system so that intelligent terminal is operationally automatically deleted superfluous
Remaining file, what system was operationally produced data cached is cleared up automatically, it is ensured that the stable long-play of system.
The embodiment of the present invention is by the above-mentioned means, a kind of intelligent terminal file clean-up device, user is using mobile terminal
When, object and the automatic trigger condition for carrying out file clean-up are cleared up when carrying out file clean-up by the way that setting is automatic, in triggering
When condition reaches, startup file clearing function is scanned to the cleaning object of setting and according to scanning result to cleaning object
File clean-up is carried out, by the way that the multimedia file that the redundant file in system is especially cached is scanned and cleared up automatically, is kept away
Exempt from the hash of storing excess in system, it is ensured that whole system running paper is good, while by being carried out automatically to file
Cleaning, can cause more smooth when intelligent terminal is used, it is ensured that intelligent terminal can be steady for a long time in the case where not shutting down
Surely use.
Can be with one of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method is
The hardware of correlation is instructed to complete by program, described program can be stored in computer read/write memory medium, institute
The storage medium stated, such as ROM/RAM, disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.