A kind of garbage data cleaning method and system thereof
Technical field
The present invention relates to garbage data cleaning technical field, be specifically related to a kind of garbage data cleaning method and system thereof.
Background technology
Generally, user cannot be carried out for junk data newly-increased after a certain function on of single application program accordingly
Cleaning, it is impossible to meet the individual demand of user.
Summary of the invention
The purpose of the present invention, it is simply that overcome the deficiencies in the prior art, it is provided that a kind of clear for instant messaging application program junk data
The method of reason and system thereof, meet users ' individualized requirement.
In order to achieve the above object, adopt the following technical scheme that a kind of garbage data cleaning method, be under cleaning application program
Realizing, described cleaning application program is connected with instant messaging application program, said method comprising the steps of:
S1, obtain all data paths record that the initial each function of instant messaging application program installed creates at SD card;
S2, when monitoring instant messaging application program and enabling arbitrary function, obtain all data roads that this function creates at SD card
Footpath record;
S3, all data paths and this function initial creation number in step sl that this function in step S2 is created at SD card
Compare according to path, draw the file data path that this function increases newly after enabling;
S4, file data path information newly-increased after this function enables in step S3 is built in cleaning application program, when immediately
When messaging application starts, it is judged that whether file data path newly-increased after this function enables in step S3 exists, if existing,
Then the All Files under scanning pattern list show detailed data message to user;
S5, the subsidiary tick boxes of list select to choose for user, and choose option according to user, delete corresponding literary composition in background thread
Part, to realize the special cleaning of produced junk data after the arbitrary function of instant messaging application program enables.
For realizing another object of the present invention, the present invention also adopts the following technical scheme that a kind of garbage data cleaning system, be
Realizing under cleaning application program, described cleaning application program is connected with instant messaging application program, and described system includes:
Primary data acquisition module, obtains all data roads that the initial each function of instant messaging application program installed creates at SD card
Footpath record;
New data acquisition module, when monitoring instant messaging application program and enabling arbitrary function, obtains this function and creates at SD card
All data paths and record;
Data comparison module, all data paths that this function in new data acquisition module is created at new data acquisition module with should
Function initial creation data path in primary data acquisition module compares, and draws the number of files that this function increases newly after enabling
According to path;
Data Integration display module, is built into file data path information newly-increased after this function enables in data comparison module clearly
In reason application program, when instant messaging application starts, it is judged that file newly-increased after this function enables in data comparison module
Whether data path exists, if existing, then the All Files under scanning pattern list show detailed data message to user;
The subsidiary tick boxes of described list selects to choose for user;
Garbage data cleaning module, chooses option according to user, deletes corresponding file in background thread, to realize instant messaging
The special cleaning of application program junk data.
Compared with prior art, the beneficial effects of the present invention is: the present invention obtains instant messaging application program by gathering statistics
Each function use during the file path that produces, help scanning input to go out the rubbish that instant messaging application program in mobile phone produces
Rubbish data file is also cleared up.
Accompanying drawing explanation
Fig. 1 is the structural representation of garbage data cleaning system of the present invention;
Fig. 2 is the flow chart of garbage data cleaning method of the present invention.
Detailed description of the invention
Describing the present invention in detail below in conjunction with accompanying drawing and specific implementation method, the exemplary embodiment and description in the present invention are used
Explain the present invention, but not as a limitation of the invention.
Embodiment
As it is shown in figure 1, a kind of garbage data cleaning system, be to realize under cleaning application program, described cleaning application program with
Instant messaging application program connects, and described system includes:
Primary data acquisition module, obtains all data roads that the initial each function of instant messaging application program installed creates at SD card
Footpath record;
New data acquisition module, when monitoring instant messaging application program and enabling arbitrary function, such as voice, picture transmitting-receiving, regards
The frequency function such as transmitting-receiving, document, backup, obtains all data paths record that this function creates at SD card;
Data comparison module, all data paths that this function in new data acquisition module is created at new data acquisition module with should
Function initial creation data path in primary data acquisition module compares, and draws the number of files that this function increases newly after enabling
According to path;
Data Integration display module, is built into file data path information newly-increased after this function enables in data comparison module clearly
In reason application program, when instant messaging application starts, it is judged that file newly-increased after this function enables in data comparison module
Whether data path exists, if existing, then the All Files under scanning pattern list show detailed data message to user;
The subsidiary tick boxes of described list selects to choose for user;
Garbage data cleaning module, chooses option according to user, deletes corresponding file in background thread, to realize instant messaging
The special cleaning of application program junk data.
As in figure 2 it is shown, a kind of garbage data cleaning method, be to realize under cleaning application program, described cleaning application program with
Instant messaging application program connects, and said method comprising the steps of:
S101: obtain all data paths record that the initial each function of instant messaging application program installed creates at SD card;
S102: when monitoring instant messaging application program and enabling arbitrary function, obtains all data that this function creates at SD card
Path record;
Initial in step S101 of S103: all data paths that this function in step S102 is created at SD card and this function
Establishment data path compares, and draws the file data path that this function increases newly after enabling;
S104: file data path information newly-increased after this function enables in step S103 is built in cleaning application program, when
During instant messaging application program launching, it is judged that whether file data path newly-increased after this function enables in step S103 exists, if
Exist, then the All Files under scanning pattern list show detailed data message to user;
The subsidiary tick boxes of S105: list selects to choose for user, and chooses option according to user, deletes corresponding in background thread
File, to realize the special cleaning of produced junk data after the arbitrary function of instant messaging application program enables.
The present invention obtains the file path produced during each function use of instant messaging application program, side by collection statistics
Scanning input is helped to go out the junk data file of instant messaging application program generation in mobile phone and clear up.
If the function described in the present embodiment is using the form realization of SFU software functional unit and as independent production marketing or use,
A calculating device-readable can be stored in take in storage medium.Based on such understanding, prior art is done by the embodiment of the present invention
The part of the part or this technical scheme that go out contribution can embody with the form of software product, and this software product is stored in one
In individual storage medium, including some instructions with so that calculating equipment (can be personal computer, server, mobile count
Calculation equipment or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage
Medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), the various media that can store program code such as magnetic disc or CD.In this specification each
Embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, and each is real
Execute same or similar part between example to see mutually.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.To these
The multiple amendment of embodiment will be apparent from for those skilled in the art, generic principles defined herein
Can realize in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention will not be by
It is limited to the embodiments shown herein, and is to fit to consistent with principles disclosed herein and features of novelty the widest
Scope.