CN103559276B - A kind of method and its device for clearing up garbage files - Google Patents
A kind of method and its device for clearing up garbage files Download PDFInfo
- Publication number
- CN103559276B CN103559276B CN201310545503.2A CN201310545503A CN103559276B CN 103559276 B CN103559276 B CN 103559276B CN 201310545503 A CN201310545503 A CN 201310545503A CN 103559276 B CN103559276 B CN 103559276B
- Authority
- CN
- China
- Prior art keywords
- relevant information
- catalogue
- file
- application
- unloaded
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1727—Details of free space management performed by the file system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to a kind of method and its device for clearing up garbage files, the catalogue and relevant information of the Stub File of all unloaded applications are obtained by scanning, for user's selectively removing.Scale removal process is convenient and reliable, simple and easy to apply, due to devising root scanning, therefore can find out whole residual garbage files, is not in the incomplete problem of cleaning of the prior art, thus can preferably improve the utilization rate of the memory space of equipment.
Description
Technical field
The present invention relates to moving communicating field, more specifically to a kind of method and its device for clearing up garbage files.
Background technology
Increasing mobile phone application can all set corresponding folder content in memory at present, be easy to preserve and apply
The relevant information of program, if some application programs go wrong in operation, after these applications are unloaded, its corresponding text
Part folder is not eliminated typically, and the title of many files is English or abbreviation, causes user to be not easy to understand these
The effect of file, dare not be deleted easily.After mobile phone permanent use, it may appear that the space that this kind of garbage files occupy is increasingly
Big situation, is unfavorable for phone memory and effectively utilizes, and the efficiency of influence mobile phone file system.In order to solve above-mentioned ask
Topic, present in the market has had some to clear up the software of the garbage files in mobile phone.But, these are existing soft
Part is usually to judge whether it is garbage files according to the size and type of file, therefore is often difficult to fully erased all rubbish
File, and also be difficult to remove the Stub File after application unloading.Therefore, it is necessary to invent a kind of thoroughly remove using unloading
The method of Stub File afterwards.
The content of the invention
The technical problem to be solved in the present invention is, in view of the shortcomings of the prior art, designs a kind of cleaning garbage files
Method and its device, by the Stub File catalogue and relevant information of all unloaded applications of root scanning recognition, for
Family selectively removing.
The technical solution adopted for the present invention to solve the technical problems is:Construction it is a kind of clear up garbage files method and its
Device.
Preferably, the method for being used to clear up garbage files of the invention comprises the following steps:
S1:Storage device is scanned, all root paths of the storage device are obtained, and by the target storage of acquisition
All root path numbers, in subsequent step according to it is described numbering extract all root paths successively.
S2:Any one in the root path obtained in extraction step S1, inquire about matching somebody with somebody pointed by the path
Put the specific data in file or database, obtain application pointed by the specific data in the configuration file or database
Relevant information;
S3:Judge whether the application is unloaded according to the relevant information of the application of acquisition, should by this if unloaded
All associated documents add garbage files list, if not unloading, into step S4;
S4:Repeat step S2 and step S3;All root paths described in S1 were extracted at least
After once, into step S5;
S5:According to the catalogue and relevant information of the Stub File of all unloaded applications of the garbage files list display;
S6:Optionally remove the Stub File and relevant information of the unloaded application;
S7:Record and show cleaning result.
Preferably, the step S1 also includes following sub-step:By all mesh of the target storage of acquisition
Path number is recorded, all root paths are extracted successively according to the numbering for subsequent step.
Preferably, the numbering is ordered as foundation with the alphabet in the root path.
Preferably, the root in the step S1 is first grade file catalogue seen by user.
Preferably, in the step S5, the catalogue and relevant information of the Stub File of all unloaded applications of display,
Operation for user's selective clearing includes following sub-step:In the form of pop-up or list, show on a user interface all
The catalogue and relevant information of the Stub File of unloaded application.
Preferably, deletion option is provided after the Stub File and relevant information of every unloaded application, supplied
User's selectively removing.
Preferably, it is described to record and show that cleaning result includes recording and showing this scale removal process in the step S7
The Stub File deleted in the catalogue and relevant information and this scale removal process of the middle all Stub Files scanned
Catalogue and relevant information.
Preferably, the device of cleaning garbage files of the invention includes:
Scan module, all root paths of target storage are obtained for scanning;
Information extraction modules, for according to the root path in the target storage, inquiring about pointed by the path
Configuration file or database in specific data, and obtain pointed by the specific data in the configuration file or database
The relevant information of application;
Judge module, the relevant information for the application according to acquisition judges whether the application is unloaded;
Memory module, for the catalogue and relevant information of the Stub File for storing unloaded application;
Display module, the catalogue and relevant information of the Stub File for showing all unloaded applications;
Remove module, the Stub File for removing unloaded application;
Display module is recorded, for recording and showing cleaning result, including records and shows in this scale removal process and swept
The catalogue for the Stub File deleted in the catalogue and relevant information of all Stub Files retouched and this scale removal process and
Relevant information.
Stub File and cleaning of the present invention by the unloaded application of root scanning recognition, compared with prior art, clearly
Reason process is convenient and reliable, simple and easy to apply, and file type is independently judged without user, thus is not in because user is unfamiliar with text
Whether part belongs to garbage files and causes the situation of deleting useful file by mistake, due to devising all this flows of root of scanning,
Therefore whole residual garbage files can be found out, is not in the incomplete problem of cleaning of the prior art, thus energy
Preferably improve the utilization rate of the memory space of equipment.
Brief description of the drawings
Fig. 1 is the functional block diagram for being used to clear up the device of garbage files of present pre-ferred embodiments;
Fig. 2 is the flow chart for being used to clear up the method for garbage files of present pre-ferred embodiments.
Embodiment
Below in conjunction with the accompanying drawings and embodiment the invention will be further described:
As shown in figure 1, a kind of function mould for being used to clear up the device 1 of garbage files provided for present pre-ferred embodiments
Block figure.The device may be integrally incorporated in electronic installation such as smart mobile phone or tablet personal computer, for clearing up the rubbish in storage device
Rubbish file.
The device 1 for being used to clear up garbage files of present pre-ferred embodiments is specifically included:
Scan module 11, can be the processor in electronic installation, all for scanning acquisition target storage
Directory path.Preferably, root can be first grade file catalogue seen by user.For example, for using
Machine more than android4.0 systems, if user's finding catalogue is:XXX, then physical directory path be:/storage/
sdcard()/XXX;Compare traditional Stub File and search mode, Stub File is searched by the way of root is scanned can be by
All Stub Files in storage device are found out, and are not in omit.
Information extraction modules 12, can be the processors in electronic installation, for the root according to the target storage
Directory path, inquires about the configuration file or database pointed by the path, and obtains specific in the configuration file or database
The relevant information of the pointed application of data;Preferably, the relevant information of acquired application may include:Application program
Bag name and the corresponding file of bag name positional information.The acquisition of the relevant information of application is conducive to basis in subsequent step to obtain
The information taken judges whether the application unloads, and the selected deletion to the Stub File of unloaded application afterwards.
Judge module 13, can be the processor in electronic installation, and the information for the related application according to acquisition judges
Whether the application is unloaded.
Memory module 14, can be the memory in electronic installation, all associated documents for storing unloaded application
Catalogue;Preferably, the associated documents catalogue of unloaded application program can be by information extraction modules 12 from obtaining
Extract and obtain in the information of the application taken.
Display module 15, can be the display in electronic installation, the Stub File for showing all unloaded applications
Catalogue and relevant information;Preferably, display module 15 can show unloaded using various ways to user
The Stub File catalogue and relevant information of application, show such as pop-up, list display.
Remove module 16, the Stub File for removing unloaded application;Specifically, removing module 16 can call file to delete
Except program, garbage files are deleted according to the deletion of user instruction.
Display module 17 is recorded, for recording and showing cleaning result, including records and shows institute in this scale removal process
The catalogue for the Stub File deleted in the catalogue and relevant information of all Stub Files scanned and this scale removal process
And relevant information.
As shown in Fig. 2 being the flow chart for being used to clear up the method for garbage files of present pre-ferred embodiments.
Step 21, target disk is scanned using scan module 11 as shown in Figure 1, obtains all roots on the disk
Path;Preferably, the root can be first grade file catalogue seen by user.For using android4.0 systems
The machine for the above of uniting, if user's finding catalogue is:XXX, then physical directory path be:/storage/sdcard()/XXX.Tool
Body, all root path numbers on the disk of acquisition can be extracted described successively for subsequent step according to the numbering
All root paths.Numbering can be ordered as standard progress according to the alphabet in root path, can also be according to root path
Default sort in the storage device is carried out, and the purpose of numbering is to ensure that each root path has uniquely corresponding one
Sequence number, it is ensured that subsequent step is neither repeated to extract when extracting root path, and any root is not omitted yet.
Step 22, using information extraction modules 12 as shown in Figure 1 root described in order extraction step 21 by number
One in path, the configuration file or database pointed by the path are inquired about, the spy in the configuration file or database is obtained
Fixed number is according to the information of pointed application, and the information of acquired related application may include:The bag name and bag name of application program
The positional information of corresponding file.
Step 23, judge that the application is according to the information of the related application of acquisition using judge module 13 as shown in Figure 1
It is no unloaded, if not unloading, into step 24, if unloaded, into step 25;
Step 24, using information extraction modules 12 as shown in Figure 1 root described in order extraction step S1 by number
Next in path, repeat step 22 and step 23;After being extracted until all root paths, into step
26;
Step 25, all associated documents of the application are added to the rubbish text stored in memory module 14 as shown in Figure 1
In part list;
Step 26, using display module 15 as shown in Figure 1 according to all unloaded applications of garbage files list display
The catalogue and relevant information of Stub File, for user's selective clearing;Preferably, can be with the shape of pop-up or list
Formula, shows the catalogue and relevant information of the Stub File of all unloaded applications on a user interface, specifically, can use a variety of
Form sets Stub File to delete option, chooses item for example, can be respectively provided with after every Stub File catalogue, is chosen for user,
So as to delete the Stub File of the entry, while an option for being used to select all Stub Files also can be set, hooked for user
Choosing, after this option is selected, the Stub File of all entries is selected, if user wants to retain a few Stub File entries,
The option after the entry to be retained can be clicked in the case where all Stub Files are selected, cancel and select the entry.So
Both it can realize that a key deleted all Stub Files, some Stub Files for being not desired to delete can be easily retained again.
Step 27, using the Stub File of unloaded application described in the selective clearing of removing module 16 as shown in Figure 1
Catalogue and relevant information.
Step 28, after the completion of this cleaning, recorded using record display module 17 as shown in Figure 1 and show cleaning knot
Really;Preferably, record and show that cleaning result specifically includes to record and show in this scale removal process and scanned
To all Stub Files catalogue and relevant information and this scale removal process in the catalogue and phase of Stub File deleted
Close information.As preferred embodiment, it can also count and show the type of residual garbage file scanned and deleted, number
Amount, size of space-consuming etc., can be set user option, these information whether are shown for user's sets itself as needed.
The foregoing is merely illustrative of the preferred embodiments of the present invention, and those skilled in the art know, is not departing from the present invention
Spirit and scope in the case of, various changes or equivalent substitution can be carried out to these features and embodiment.For example, removing
When the Stub File and relevant information of all unloaded applications of garbage files list display, acquiescence can be provided by system
Reason pattern, specifically, default processing mode can be directly to delete all Stub Files, and user can voluntarily choose whether as needed
Open default processing mode.
The device for being used to clear up garbage files of the present invention is mainly the smart mobile phone for using Android operation system, flat board electricity
Residual garbage file in the terminal devices such as brain, the method that user can use the present invention, manual cleaning equipment, may also set up and set
It is standby, make its periodically automatic cleaning residual garbage file, for example, specific time point can be set, equipment is opened automatically at the time point
Dynamic cleaning garbage files process.
Stub File and cleaning of the present invention by the unloaded application of root scanning recognition, compared with prior art, clearly
Reason process is convenient and reliable, simple and easy to apply, and file type is independently judged without user, thus is not in because user is unfamiliar with text
Whether part belongs to garbage files and causes the situation of deleting useful file by mistake, due to devising all this flows of root of scanning,
Therefore whole residual garbage files can be found out, is not in the incomplete problem of cleaning of the prior art, thus energy
Preferably improve the utilization rate of the memory space of equipment.
Claims (6)
1. a kind of method for clearing up garbage files, it is characterised in that comprise the following steps:
S1:Storage device is scanned, all root paths of the storage device are obtained, by all of the directory storage device of acquisition
Root path number, each root path has a unique corresponding sequence number;Wherein, root is seen by user
First grade file catalogue;
S2:Extract any one in the root path successively according to the numbering, inquire about the configuration pointed by the path
Specific data in file or database, are obtained corresponding to the specific data in the configuration file or database pointed by the path
Application relevant information;The relevant information of acquired application may include:The bag name and the corresponding file of bag name of application program
Positional information;
S3:Judge whether the application is unloaded according to the relevant information of the application of acquisition, if unloaded, by the application
All associated documents add garbage files list, if not unloading, into step S4;
S4:Repeat step S2 and step S3:All root paths described in S1 were extracted at least one times
Afterwards, into step S5;
S5:According to the catalogue and relevant information of the Stub File of all unloaded applications of the garbage files list display, every
Set after bar Stub File catalogue and choose item, chosen for user;
S6:Optionally remove the Stub File and relevant information of the unloaded application;
S7:Record and show cleaning result, including record and show all Stub Files scanned in this scale removal process
Catalogue and relevant information and this scale removal process in the catalogue and relevant information of Stub File deleted.
2. the method for cleaning garbage files according to claim 1, it is characterised in that:The numbering is the root road
The alphabetical list sorting of footpath title.
3. the method for cleaning garbage files according to claim 1, it is characterised in that:In the step S5, the display
The catalogue and relevant information of the Stub File of all unloaded applications, the operation for user's selective clearing include following sub-step
Suddenly:In the form of pop-up or list, the catalogue and related letter of the Stub File of all unloaded applications are shown on a user interface
Breath.
4. the method for cleaning garbage files according to claim 3, it is characterised in that:In every unloaded application
Deletion option is provided after Stub File and relevant information, for user's selectively removing.
5. the method for cleaning garbage files according to claim 1, it is characterised in that:In the step S7, the record
And show that the operation of cleaning result includes:Record and show the catalogue of all Stub Files scanned in this scale removal process
And the catalogue and relevant information for the Stub File deleted in relevant information and this scale removal process.
6. a kind of device for clearing up garbage files, it is characterised in that including:
Scan module, all root paths of target storage are obtained for scanning, wherein, root is seen by user
First grade file catalogue;
Numbering module, for by all root path numbers of the target storage of acquisition, each root path to have
There is a unique corresponding sequence number;
Information extraction modules, for extracting any one in the root path successively according to the numbering, inquire about the road
The specific data in configuration file or database pointed by footpath, are obtained in the configuration file or database pointed by the path
The relevant information of application corresponding to specific data;The relevant information of acquired application may include:Bag name and this of application program
The positional information of the corresponding file of bag name;
Judge module, the relevant information for the application according to acquisition judges whether the application is unloaded;
Memory module, for the catalogue and relevant information of the Stub File for storing unloaded application;
Display module, the catalogue and relevant information of the Stub File for showing all unloaded applications, in every Stub File
Set after catalogue and choose item, chosen for user;
Understand module, the Stub File for removing unloaded application;
Display module is recorded, for recording and showing cleaning result, including records and shows in this scale removal process and scan
All Stub Files catalogue and relevant information and this scale removal process in the catalogue and correlation of Stub File deleted
Information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310545503.2A CN103559276B (en) | 2013-11-05 | 2013-11-05 | A kind of method and its device for clearing up garbage files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310545503.2A CN103559276B (en) | 2013-11-05 | 2013-11-05 | A kind of method and its device for clearing up garbage files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103559276A CN103559276A (en) | 2014-02-05 |
CN103559276B true CN103559276B (en) | 2017-11-07 |
Family
ID=50013522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310545503.2A Active CN103559276B (en) | 2013-11-05 | 2013-11-05 | A kind of method and its device for clearing up garbage files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103559276B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105260367B (en) * | 2014-06-11 | 2019-08-30 | 腾讯科技(深圳)有限公司 | A kind of determination method and device for downloading file address |
CN104090793A (en) * | 2014-07-07 | 2014-10-08 | 四川效率源信息安全技术有限责任公司 | Device and method for destroying Android mobile phone body data |
CN104063324B (en) * | 2014-07-10 | 2017-11-24 | 上海斐讯数据通信技术有限公司 | A kind of Monkey method of testings and system |
CN104102516A (en) | 2014-07-21 | 2014-10-15 | 北京金山安全软件有限公司 | Application program unloading method and device |
CN104268204A (en) * | 2014-09-23 | 2015-01-07 | 珠海市君天电子科技有限公司 | Garbage clearing method and device |
CN104317740B (en) * | 2014-11-13 | 2017-07-07 | 北京奇虎科技有限公司 | The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology |
CN104317956A (en) * | 2014-11-13 | 2015-01-28 | 北京奇虎科技有限公司 | Query and memory space cleaning method and system based on cloud server |
CN106156032B (en) * | 2015-03-25 | 2020-01-17 | 北京奇虎科技有限公司 | Method and device for identifying cleaning files |
CN105069085A (en) * | 2015-07-31 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | Method and system for clearing environmental variable path |
CN105224356B (en) * | 2015-08-28 | 2018-09-14 | 北京金山安全软件有限公司 | Directory clearing method and device and mobile terminal |
CN106557500B (en) * | 2015-09-28 | 2020-08-25 | 北京金山安全软件有限公司 | Method and device for cleaning uninstalled residual file and terminal |
CN106557525B (en) * | 2015-09-30 | 2020-07-28 | 北京金山安全软件有限公司 | Method and device for cleaning application program residual file and electronic equipment |
CN105868367B (en) * | 2016-03-30 | 2019-06-18 | 北京奇虎科技有限公司 | Method, server and the system of a kind of root path in cleaning Android device |
WO2019056237A1 (en) * | 2017-09-21 | 2019-03-28 | 深圳传音通讯有限公司 | Method for clearing residual files, device, and readable storage medium |
CN111752896A (en) * | 2019-03-26 | 2020-10-09 | 青岛海信移动通信技术股份有限公司 | Method and device for cleaning junk files in mobile terminal and mobile terminal |
CN112632126A (en) * | 2020-12-28 | 2021-04-09 | 厦门市美亚柏科信息股份有限公司 | Deleted application list extraction method, terminal device and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8402069B2 (en) * | 2009-05-04 | 2013-03-19 | Microsoft Corporation | Use of delete notifications by file systems and applications to release storage space |
CN102654872A (en) * | 2011-03-03 | 2012-09-05 | 腾讯科技(深圳)有限公司 | Method and device for cleaning junk files generated by application programs |
WO2012167392A2 (en) * | 2011-06-06 | 2012-12-13 | ETH Zürich | Method and devices for secure deletion of data in a log structured file system |
CN103365882A (en) * | 2012-03-30 | 2013-10-23 | 网秦无限(北京)科技有限公司 | Method and system for cleaning junk files on mobile terminal |
CN102937990B (en) * | 2012-10-30 | 2018-07-06 | 小米科技有限责任公司 | A kind of method and apparatus for removing file |
CN103092938A (en) * | 2013-01-07 | 2013-05-08 | 浙江鸿程计算机***有限公司 | Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone |
-
2013
- 2013-11-05 CN CN201310545503.2A patent/CN103559276B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103559276A (en) | 2014-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103559276B (en) | A kind of method and its device for clearing up garbage files | |
CN104133822B (en) | A kind of method and device that file on memorizer is scanned | |
CN102543078B (en) | The voice input method of electronic business card system and electronic business card, speech retrieval method | |
CN101676907A (en) | Method and system of directionally acquiring Internet resources | |
CN102905002A (en) | Method and system for automatically combining contact items | |
CN105760483B (en) | The preservation of multimedia file and its search method and system | |
CN104199967A (en) | Cellphone file recovery method and device | |
CN102945377B (en) | Obtain method and the device of content in papery notebook | |
US20070055699A1 (en) | Photo image retrieval system and program | |
CN104090922B (en) | A kind of method and apparatus for clearing up private data | |
CN103092847A (en) | Two-dimensional bar code based electronic document set retrieval realization | |
US6694302B2 (en) | System, method and article of manufacture for personal catalog and knowledge management | |
CN104298736A (en) | Method and device for aggregating and connecting data as well as database system | |
CN102622384A (en) | File management method | |
CN109522405A (en) | File information processing method, electronic equipment and computer-readable deposit medium | |
CN106953913A (en) | A kind of information-pushing method and mobile terminal | |
CN109710571A (en) | A kind of document analysis method, equipment and storage medium | |
CN102693233A (en) | Method and device for realizing electronic bookmark | |
CN101246440A (en) | Java card system rubbish recovering method | |
CN103123651A (en) | Method of rapidly searching multiple same-kind paper, device and mobile equipment | |
CN104090924B (en) | The method for cleaning and device of a kind of private data | |
CN107784055A (en) | Transaction methods and device based on non-relational database | |
CN106909542A (en) | The method and device of information erasing is carried out on the terminal device | |
CN104182479A (en) | Method and device for processing information | |
CN103841253A (en) | Method and terminal for adding contact persons |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |
|
CP01 | Change in the name or title of a patent holder |