CN105426401A - Method and system for cleaning junk file generated by application - Google Patents

Method and system for cleaning junk file generated by application Download PDF

Info

Publication number
CN105426401A
CN105426401A CN201510719647.4A CN201510719647A CN105426401A CN 105426401 A CN105426401 A CN 105426401A CN 201510719647 A CN201510719647 A CN 201510719647A CN 105426401 A CN105426401 A CN 105426401A
Authority
CN
China
Prior art keywords
rule
cleaning
garbage files
application program
file
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
CN201510719647.4A
Other languages
Chinese (zh)
Other versions
CN105426401B (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.)
Chengdu Shizhihou Technology Co Ltd
Original Assignee
Chengdu Shizhihou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Shizhihou Technology Co Ltd filed Critical Chengdu Shizhihou Technology Co Ltd
Priority to CN201510719647.4A priority Critical patent/CN105426401B/en
Publication of CN105426401A publication Critical patent/CN105426401A/en
Application granted granted Critical
Publication of CN105426401B publication Critical patent/CN105426401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Abstract

The present invention relates to the technical field of junk file cleaning, and discloses a method for cleaning a junk file generated by an application. The method specifically comprises the following steps: analyzing junk file storage rules of different application development companies, and defining a junk file cleaning rule for all applications of each company so as to form a general rule base for cleaning junk files; and cleaning a junk cache file and an unloading residual file separately under an SD card according to the junk file cleaning rule for the applications of each company defined in the general rule base. For example, general rules exist in games developed by the Gameloft Company, a package naming manner of the rules is regular, and the generated junk files are stored under the Gameloft directory of the SD card, and a subdirectory is established according to a package name, so that the junk file cleaning rule can be defined in accordance with the junk file storage rule of the game. The presentation invention further discloses a system for implementing the method.

Description

A kind of method and system of clearing up the garbage files that application program produces
Technical field
The present invention relates to garbage files processing technology field, particularly relate to a kind of method and system of clearing up the garbage files that application program produces.
Background technology
User is at equipment such as use mobile phone or computing machine etc., and especially after Android mobile phone a period of time, each application can produce a large amount of garbage files and temporary file, these files take device memory, drag slow equipment travelling speed, reduce performance, allow user produce card pause sensation.For this problem, need a kind of efficient cleaning tool fast and accurately and should be used for removing the garbage files on subscriber equipment, release free space, improves equipment performance.
The most frequently used mode of cleaning garbage files is that scanning storage system fixes catalogue, such as directory A dData, has been clearly rubbish catalogue, if this catalogue exists, has been added to a scanning result.The shortcoming of existence can be found out: this general rubbish catalogue is fewer from this mode, poor concerning cleaning result user, user can not be helped to discharge more free spaces.
Also some rule-based scan modes are had in prior art, but need to analyze separately the application of each support to make rule, such method causes rule base and installation kit size greatly, can not scan the application do not supported, there is the possibility of by mistake deleting value documents.
CN201310007968.2 also discloses a kind of method of intelligence cleaning Android phone SD card garbage files, comprise the following steps: the SD card catalogue on initialization mobile phone, application message and the corresponding fileinfo of this application, the peace loading, unloading change of application program on system monitoring mobile phone, when application program is unloaded, reminding user carries out garbage-cleaning.Beneficial effect of the present invention is: find the catalogue that remains and file when application program unloads, reminding user is deleted in time, more intelligent, hommization, facilitates user to clear up SD card rubbish in time, release mobile phone space; Meanwhile, by server construction comparison database beyond the clouds, take cell phone system internal memory so that cloud computing mode is less, easy to be easy-to-use, make it that there is good Consumer's Experience.But this method is just reminded user when unloading, cannot realize the cleaning of garbage files.
CN201110051216.7 discloses a kind of method and system of clearing up the garbage files that application program produces.The method comprises: obtain application information; According to the application information obtained, scanning registration table or configuration file, obtain the temporary folder routing information that corresponding application program creates; According to the garbage files scanning strategy corresponding with described application program pre-set, the temporary folder corresponding to the temporary folder routing information obtained scans, and obtains the garbage files needing cleaning; According to the cleaning garbage files strategy corresponding with described application program pre-set, clear up the described garbage files needing cleaning.Application the present invention, can reduce user and clear up the Operating Complexity of garbage files, improve the utilization ratio of disk storage space.Such method needs to analyze separately for an application program to make rule, and rule base and installation kit size greatly, can not scan the application do not supported simultaneously, also there is the possibility of by mistake deleting value documents.
Summary of the invention
The object of the invention is the above-mentioned technical matters existed for cleaning garbage files method of the prior art, disclose a kind of method of clearing up the garbage files that application program produces, the invention also discloses a kind of system of clearing up the garbage files that application program produces.
Technical scheme of the present invention is as follows:
The invention discloses a kind of method of clearing up the garbage files that application program produces, it specifically comprises the following steps: that the garbage files analyzing different application development company deposits rule, all application programs for each company define a cleaning garbage files rule, form cleaning garbage files general rule storehouse; According to the cleaning garbage files rule of the application program of each company defined in general rule storehouse, clear up Trash cache file and the unloading Stub File of storage respectively.
Further, said method also comprises the recognition methods of Trash cache file, it specifically comprises the following steps: first to load a cleaning garbage files rule, judge whether the bag name that this rule defines exists a mounted list of application, if at least have one, then continue to judge whether the catalogue of this rule correspondence exists, if one does not exist, then return and load next cleaning garbage files rule; When judging that the catalogue of this rule correspondence exists, this catalogue is judged as Trash cache.
Further, said method also comprises the recognition methods of unloading Stub File, it specifically comprises the following steps: first to load a cleaning garbage files rule, judge whether the catalogue of this rule correspondence exists, exist and then continue to judge whether mounted Bao Mingzhong exists the bag name of this rule condition, do not exist and then continue to load next cleaning garbage files rule; When mounted Bao Mingzhong does not exist the bag name of this rule condition, this file is a unloading residual garbage.
Further, whether said method also comprises detecting specifies bag name to install, if installed, then performs the application program cleaning garbage files rule to wrapping name.
Further, whether said method also comprises and detects the garbage files catalogue of specifying and exist, and exists, then clears up.
The invention also discloses a kind of system of clearing up the garbage files that application program produces, it specifically comprises rule base and sets up module, garbage files identification module and cleaning garbage files module; Described rule base is set up module and is deposited rule for the garbage files analyzing different application development company, and all application programs for each company define a cleaning garbage files rule, forms cleaning garbage files general rule storehouse; Described garbage files identification module is for identifying Trash cache file and the unloading Stub File of storage; Described cleaning garbage files module is used for the cleaning garbage files rule according to each company application program defined in general rule storehouse, clears up Trash cache file and unloading Stub File.
Further, said system also comprises the garbage-cleaning module for application-specific, the described garbage-cleaning module for application-specific is for the application program of specifying, set up the cleaning garbage files rule for this application program, and carry out the cleaning of designated program garbage files according to this rule.
Further, said system also comprises particular category scanning element, and described particular category scanning element for scanning the particular category in storer, and is cleared up.
By adopting above technical scheme, beneficial effect of the present invention is: do not need to analyze separately for each game of each company and application to support all game of this current and following company and the garbage-cleaning of application.Meanwhile, only employ a rule to define, can reduce rule base and installation kit size relative to other each application needs definition one rule, by analysis, many developers can develop tens to hundreds of money application and game with same mode.Shorter download time is meaned for the installation kit of smaller szie user, less flow expends and take less storage space after installing.Especially for cleaning tool application, be inherently used for clearing up garbage files, release storage space, so more should keep flexibly small and exquisite.For application tool developer, use general rule to define garbage files scanning, the applied analysis time can be reduced, support the scanning of more application, reduce rate of accidental deletion.The garbage files of the residual type of unloading, only could clear up after determining not to be applied in this file of use.For Gameloft, suppose that current Gameloft has gone out 10 sections of game, classic method, by analysis after these 10 sections game, defines the Gameloft catalogue under the corresponding SD card of 10 bag names, when detecting that these 10 bag names are not all installed, namely think that this catalogue can be deleted.If but the 11th item game that user installation Gameloft newly goes out, so just in time also using this catalogue.But classic method is not because analyze this game, causes this catalogue to be mistaken as and be that unloading is residual, should delete, just cause the result of by mistake deleting.Use method of the present invention then this catalogue can not be defined as the residual catalogue of unloading, ensure that user's value documents is not deleted by mistake.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of cleaning Trash cache of the present invention.
Fig. 2 is the realization flow figure that cleaning unloading of the present invention remains.
Embodiment
Below in conjunction with Figure of description, describe specific embodiments of the invention in detail.
The invention discloses a kind of method of clearing up the garbage files that application program produces, it specifically comprises the following steps: that the garbage files analyzing different application development company deposits rule, for all application definitions cleaning garbage files rule of each company, form cleaning garbage files general rule storehouse; According to the cleaning garbage files rule of each company application program defined in general rule storehouse, clear up the Trash cache file under SD card and unloading Stub File respectively.There is general rule in the such as game of Gameloft company exploitation, their bag name naming method is regular, and under the garbage files generated all leaves the Gameloft catalogue of SD card in, and according to bag name md, garbage files for this game deposits rule, can define its cleaning garbage files rule.
Further, said method also comprises the recognition methods of Trash cache file, and it specifically comprises the following steps: the list according to mounted all application programs, checks whether the application of installation that there is the company defined in general rule storehouse; If existed, continue to judge whether the catalogue of this rule correspondence exists, whether there is the catalogue of the temporary file tmp of corresponding exabyte under such as checking SD card, is then judge that this tmp catalogue is Trash cache, cleared up.Such as Gameloft company, check whether the application of installation existing and meet * * * * .gameloft.com bag name, if existed, then check whether there is/Gameloft/****/tmp catalogue under SD card, if existed, illustrate/Gameloft/****/tmp is a Trash cache result, should give removing.Wherein * * * * is an adopted name, and the character string appearing at Bao Mingli can as sub-folder title.
Fig. 1 is the realization flow figure of cleaning Trash cache of the present invention, first it load a cleaning garbage files rule, judge whether the bag name that this rule defines exists a mounted list of application, if at least have one, then continue to judge whether the catalogue of this rule correspondence exists, if one does not exist, then return and load next cleaning garbage files rule; When judging that the catalogue of this rule correspondence exists, this catalogue is judged as Trash cache.
Further, said method also comprises the recognition methods of unloading Stub File, it specifically comprises the following steps: first to load a cleaning garbage files rule, judge whether this regular corresponding catalogue exists, exist and then continue to judge whether mounted Bao Mingzhong exists the bag name of this rule condition, do not exist and then continue to load next cleaning garbage files rule; When mounted Bao Mingzhong does not exist the bag name of this rule condition, this file is a unloading residual garbage.
According to the list of mounted all application programs, check whether the application of installation that there is the company defined in general rule storehouse; If one does not all have, then whether there is the file that title comprises "/company domain " under checking SD card, if existed, then the file comprising "/company domain " is cleared up.Such as still for gameloft, first check whether and existence meet * * * * .gameloft.com (Gameloft is Business Name, general each application can have a unique ID, Naming conventions is * * * *. company domain .com) installation application, if one does not all have, then check whether there is/Gameloft file under SD card, illustrate that active user once installed the game of Gameloft if existed, but unloaded at present, cleaning be should give by so residual/Gameloft file.
Fig. 2 is the realization flow figure that cleaning unloading of the present invention remains, first it load a cleaning garbage files rule, judge whether this regular corresponding catalogue exists, exist and then continue to judge whether mounted Bao Mingzhong exists the bag name of this rule condition, do not exist and then continue to load next cleaning garbage files rule; When mounted Bao Mingzhong does not exist the bag name of this rule condition, this file is a unloading residual garbage.
Further, whether said method also comprises detecting specifies bag name to install, if installed, then performs the application program cleaning garbage files rule to wrapping name.For special application program, set specific cleaning garbage files rule and perform, at utmost to realize the cleaning of garbage files, discharging more storage space.
Further, whether said method also comprises and regularly detects the garbage files catalogue of specifying and exist, and exists, then clears up.Such as directory A dData has been clearly rubbish catalogue, if this catalogue exists, is added to a scanning result.
The invention also discloses a kind of system of clearing up the garbage files that application program produces, it specifically comprises rule base and sets up module, garbage files identification module and cleaning garbage files module; Described rule base is set up module and is deposited rule for the garbage files analyzing different application development company, for all application definitions cleaning garbage files rule of each company, forms cleaning garbage files general rule storehouse; Described garbage files identification module is for identifying Trash cache file and the unloading Stub File of storage; Described cleaning garbage files module is used for the cleaning garbage files rule according to each company application program defined in general rule storehouse, clears up Trash cache file and unloading Stub File.
Further, the system of the garbage files that above-mentioned cleaning application program produces also comprises the garbage-cleaning module for application-specific, the described garbage-cleaning module for application-specific is for the application program of specifying, set up the cleaning garbage files rule for this application program, and carry out the cleaning of designated program garbage files according to this rule.
Further, the system of the garbage files that above-mentioned cleaning application program produces also comprises particular category scanning element, and described particular category scanning element for scanning the particular category in storer, and is cleared up.
All features disclosed in this instructions, or the step in disclosed all methods or process, except mutually exclusive feature and/or step, all can combine by any way.
Arbitrary feature disclosed in this instructions (comprising any accessory claim, summary and accompanying drawing), unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature of disclosing in this manual or any combination newly, and the step of the arbitrary new method disclosed or process or any combination newly.

Claims (8)

1. clear up the method for the garbage files that application program produces for one kind, it specifically comprises the following steps: that the garbage files analyzing different application development company deposits rule, all application programs for each company define a cleaning garbage files rule, form cleaning garbage files general rule storehouse; According to the cleaning garbage files rule of the application program of each company defined in general rule storehouse, clear up Trash cache file and the unloading Stub File of storage respectively.
2. the method for the garbage files of cleaning application program as claimed in claim 1 generation, it is characterized in that described method also comprises the recognition methods of Trash cache file, it specifically comprises the following steps: first to load a cleaning garbage files rule, judge whether the bag name that this rule defines exists a mounted list of application, if at least have one, then continue to judge whether the catalogue of this rule correspondence exists, if one does not exist, then return and load next cleaning garbage files rule; When judging that the catalogue of this rule correspondence exists, this catalogue is judged as Trash cache.
3. the method for the garbage files of cleaning application program generation as described in claim 1 or 2, it is characterized in that described method also comprises the recognition methods of unloading Stub File, it specifically comprises the following steps: first to load a cleaning garbage files rule, judge whether the catalogue of this rule correspondence exists, exist and then continue to judge whether mounted Bao Mingzhong exists the bag name of this rule condition, do not exist and then continue to load next cleaning garbage files rule; When mounted Bao Mingzhong does not exist the bag name of this rule condition, this file is a unloading residual garbage.
4. whether the method for the garbage files of cleaning application program as claimed in claim 1 generation, is characterized in that described method also comprises detecting and specify bag name to install, if installed, then perform the application program cleaning garbage files rule to wrapping name.
5. whether the method for garbage files that produces of cleaning application program as claimed in claim 1, is characterized in that described method also comprises and detect the garbage files catalogue of specifying and exist, exist, then clear up.
6. clear up a system for the garbage files that application program produces, it is characterized in that specifically comprising rule base sets up module, garbage files identification module and cleaning garbage files module; Described rule base is set up module and is deposited rule for the garbage files analyzing different application development company, and all application programs for each company define a cleaning garbage files rule, forms cleaning garbage files general rule storehouse; Described garbage files identification module is for identifying Trash cache file and the unloading Stub File of storage; Described cleaning garbage files module is used for the cleaning garbage files rule according to each company application program defined in general rule storehouse, clears up Trash cache file and unloading Stub File.
7. the system of the garbage files of cleaning application program as claimed in claim 6 generation, it is characterized in that described system also comprises the garbage-cleaning module for application-specific, the described garbage-cleaning module for application-specific is for the application program of specifying, set up the cleaning garbage files rule for this application program, and carry out the cleaning of designated program garbage files according to this rule.
8. the system of the garbage files of cleaning application program as claimed in claim 6 generation, it is characterized in that described system also comprises particular category scanning element, described particular category scanning element for scanning the particular category in storer, and is cleared up.
CN201510719647.4A 2015-10-30 2015-10-30 A kind of method and system for the garbage files that cleaning application program generates Active CN105426401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510719647.4A CN105426401B (en) 2015-10-30 2015-10-30 A kind of method and system for the garbage files that cleaning application program generates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510719647.4A CN105426401B (en) 2015-10-30 2015-10-30 A kind of method and system for the garbage files that cleaning application program generates

Publications (2)

Publication Number Publication Date
CN105426401A true CN105426401A (en) 2016-03-23
CN105426401B CN105426401B (en) 2019-06-04

Family

ID=55504613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510719647.4A Active CN105426401B (en) 2015-10-30 2015-10-30 A kind of method and system for the garbage files that cleaning application program generates

Country Status (1)

Country Link
CN (1) CN105426401B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407433A (en) * 2016-09-28 2017-02-15 上海传英信息技术有限公司 Junk file cleaning method and mobile terminal
CN110083576A (en) * 2019-05-06 2019-08-02 珠海天燕科技有限公司 A kind of recognition methods of CACHE DIRECTORY and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN102663059A (en) * 2012-03-30 2012-09-12 奇智软件(北京)有限公司 Method and system for automatically cleaning redundant items in computer terminal
CN102937990A (en) * 2012-10-30 2013-02-20 北京小米科技有限责任公司 Method and device for cleaning files
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN104156414A (en) * 2014-07-30 2014-11-19 珠海市君天电子科技有限公司 Terminal, device and method for clearing junk files
CN104267986A (en) * 2014-09-25 2015-01-07 北京金山安全软件有限公司 Method and device for cleaning junk files of game applications
CN104317574A (en) * 2014-09-30 2015-01-28 北京金山安全软件有限公司 Method and device for identifying application program type
CN104331376A (en) * 2014-11-14 2015-02-04 北京奇虎科技有限公司 Method and device for clearing installation package stored in mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN102663059A (en) * 2012-03-30 2012-09-12 奇智软件(北京)有限公司 Method and system for automatically cleaning redundant items in computer terminal
CN102937990A (en) * 2012-10-30 2013-02-20 北京小米科技有限责任公司 Method and device for cleaning files
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN104156414A (en) * 2014-07-30 2014-11-19 珠海市君天电子科技有限公司 Terminal, device and method for clearing junk files
CN104267986A (en) * 2014-09-25 2015-01-07 北京金山安全软件有限公司 Method and device for cleaning junk files of game applications
CN104317574A (en) * 2014-09-30 2015-01-28 北京金山安全软件有限公司 Method and device for identifying application program type
CN104331376A (en) * 2014-11-14 2015-02-04 北京奇虎科技有限公司 Method and device for clearing installation package stored in mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407433A (en) * 2016-09-28 2017-02-15 上海传英信息技术有限公司 Junk file cleaning method and mobile terminal
CN110083576A (en) * 2019-05-06 2019-08-02 珠海天燕科技有限公司 A kind of recognition methods of CACHE DIRECTORY and device
CN110083576B (en) * 2019-05-06 2021-07-23 珠海天燕科技有限公司 Cache directory identification method and device

Also Published As

Publication number Publication date
CN105426401B (en) 2019-06-04

Similar Documents

Publication Publication Date Title
CN104866510B (en) Method and device for removing residual file and method and device for establishing feature library of residual file
CN103246595B (en) Application management method, device, server and terminating unit
CN105487980B (en) The method and device that repairing applications are operating abnormally
CN108021590B (en) Target object attribute determining method, attribute updating method and device
US8417744B2 (en) Techniques to manage a collection of objects in heterogeneous environments
CN104185840A (en) Prioritization of continuous deployment pipeline tests
CN104461504A (en) Managing method of terminal application program
CN102298614A (en) Method for determining collection category of page collection information and device and equipment
CN112311612B (en) Information construction method and device and storage medium
CN103530424A (en) Useless file detection method and device
CN103955536A (en) Classification method and device of applications
CN104536792A (en) Method and device for eliminating application program residual files
CN112114849B (en) Resource updating method and device
CN110460509A (en) The creation method and device of mail group
CN102360410A (en) User operation discovery method of file system and synchronous system utilizing the same
CN105446975A (en) File packing method and device
CN104636240A (en) Method for acquiring information report and terminal
CN101183975B (en) Distributed heat dispositions method of cluster application server
CN103019891A (en) Method and system for restoring deleted file
CN104461505A (en) Terminal
CN101582039A (en) Plug-in loading method for saving memory cost
CN104331376A (en) Method and device for clearing installation package stored in mobile terminal
CN102479355A (en) Method and device for loading business documents and mobile terminal
CN105426401A (en) Method and system for cleaning junk file generated by application
CN103593233A (en) Method and system for pushing software information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant