CN104267986B - Method and device for cleaning junk files of game applications - Google Patents

Method and device for cleaning junk files of game applications Download PDF

Info

Publication number
CN104267986B
CN104267986B CN201410498021.0A CN201410498021A CN104267986B CN 104267986 B CN104267986 B CN 104267986B CN 201410498021 A CN201410498021 A CN 201410498021A CN 104267986 B CN104267986 B CN 104267986B
Authority
CN
China
Prior art keywords
class application
game class
file
garbage files
application 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.)
Active
Application number
CN201410498021.0A
Other languages
Chinese (zh)
Other versions
CN104267986A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201410498021.0A priority Critical patent/CN104267986B/en
Publication of CN104267986A publication Critical patent/CN104267986A/en
Application granted granted Critical
Publication of CN104267986B publication Critical patent/CN104267986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and a device for clearing game application junk files, relates to the technical field of computer application, and solves the problem that in the prior art, the game application junk files occupy a large amount of storage space of a mobile terminal to slow down the running speed of the mobile terminal. The method for clearing the junk files of the game applications comprises the following steps: reading a game application file; judging whether the game application files comprise junk files or not according to a game application junk file identification rule; and clearing the junk files in the game application files according to the judgment result. The embodiment of the invention is mainly used for rapidly identifying and cleaning the game application junk files on the mobile terminal.

Description

The method for cleaning and device of game class application garbage files
Technical field
The present invention relates to computer application technology more particularly to a kind of method for cleaning of game class application garbage files And device.
Background technology
Currently, with the rapid development of mobile communication technology, people need the function of the mobile terminals such as mobile phone, tablet computer Ask and be on the increase, the various applications based on mobile terminal are also more and more, mobile terminal be increasingly becoming people's routine work and Essential tool in life.Then, storage and editing files, object for appreciation game, the webpage that surfs the web, chat in the terminal Equal activities become more and more frequently, and various application programs and record file are constantly imported and exported from mobile terminal, in this way, The generation of garbage files is just at inevitable thing.
A large amount of garbage files are mingled among useful file, occupy a large amount of memory space of mobile terminal, in the course of time, The speed of service of mobile terminal slows down, and influences normal use of the user to other useful files.Especially game class application rubbish The memory space of file, occupancy is larger, can seriously affect the speed of service of mobile terminal.
In the implementation of the present invention, inventor has found at least to have the following technical problems in the prior art:
Game class application garbage files present in mobile terminal occupy a large amount of memory spaces of mobile terminal so that The speed of service of mobile terminal slows down.
Invention content
In view of this, the method for cleaning and device of game class application garbage files provided in an embodiment of the present invention, it can be fast Speed identifies and clears up the game class application garbage files in mobile terminal, discharges memory space, improves the operation speed of mobile terminal Degree.
On the one hand, the embodiment of the present invention provides a kind of method for cleaning of game class application garbage files, including:
Read game class application file;
Judge in the game class application file whether to include rubbish text according to game class application garbage files recognition rule Part;
The garbage files in the game class application file are cleared up according to judging result.
On the other hand, the embodiment of the present invention provides a kind of cleaning plant of game class application garbage files, including:
Reading unit, for reading game class application file;
Recognition unit is in the game class application file for being judged according to game class application garbage files recognition rule No includes garbage files;
Unit is cleared up, for literary to the rubbish in the game class application file according to the judging result of the recognition unit Part is cleared up.
The method for cleaning and device of game class application garbage files provided in an embodiment of the present invention, according to game class application rubbish Whether rubbish file identification rule judges including garbage files in the game class application file, and according to judging result to the trip Garbage files in play class application file are cleared up.Compared with prior art, the present invention can be according to game class application rubbish File identification rule quickly identifies and clears up the game class application garbage files in mobile terminal, and the storage for discharging mobile terminal is empty Between, improve the speed of service of mobile terminal.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the flow diagram of one embodiment of method for cleaning of game class application garbage files of the present invention;
Fig. 2 is the flow diagram of another embodiment of method for cleaning of game class application garbage files of the present invention;
Fig. 3 is the flow diagram of S12 in Fig. 1;
Fig. 4 is the flow diagram of S123 in Fig. 3;
Fig. 5 is the flow diagram of S13 in Fig. 1;
Fig. 6 is the structural schematic diagram of one embodiment of cleaning plant of game class application garbage files of the present invention;
Fig. 7 is the structural schematic diagram of another embodiment of cleaning plant of game class application garbage files of the present invention;
Fig. 8 is the structural schematic diagram of recognition unit 12 in Fig. 6;
Fig. 9 is the structural schematic diagram of third judgment module 123 in Fig. 8;
Figure 10 is the structural schematic diagram that unit 13 is cleared up in Fig. 6.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, the embodiment of the present invention provides a kind of method for cleaning of game class application garbage files, including:
S11, game class application file is read;
S12, judge in the game class application file whether to include rubbish according to game class application garbage files recognition rule Rubbish file;
S13, the garbage files in the game class application file are cleared up according to judging result.
The method for cleaning of game class application garbage files provided in an embodiment of the present invention, according to game class application garbage files Whether recognition rule judges in the game class application file to include garbage files, and is answered the game class according to judging result It is cleared up with the garbage files in file.Compared with prior art, the present invention can know according to game class application garbage files Rule does not quickly identify and clears up the game class application garbage files in mobile terminal, discharges the memory space of mobile terminal, carries The speed of service of high mobile terminal.
Referring to Fig. 2, optionally, in one embodiment of method for cleaning of game class application garbage files of the present invention, described Before reading game class application file (S11), it may also include:
S10, game class application garbage files recognition rule is generated.
Optionally, in one embodiment of method for cleaning of game class application garbage files of the present invention, the generation game class It may include using garbage files recognition rule (S10):The general character rule for extracting the game class application garbage files cleared up, as Game class application garbage files recognition rule.
Referring to Fig. 3, optionally, in one embodiment of method for cleaning of game class application garbage files of the present invention, described Judge whether the game class application file is that garbage files (S12) may include according to game class application garbage files recognition rule:
S121, judge whether there is game data packet in the game class application file;
If S122, having game data packet, judge whether wrapped in the game class application file according to the first recognition rule Include garbage files;
If S123, without game data packet, judge whether wrapped in the game class application file according to the second recognition rule Include garbage files.
Optionally, described to know according to first in one embodiment of method for cleaning of game class application garbage files of the present invention Rule does not judge whether may include including garbage files (S122) in the game class application file:Judge the game class application Whether promotional literature and journal file in file belong to promotional literature and journal file blacklist.
Optionally, described to be tied according to judgement in one embodiment of method for cleaning of game class application garbage files of the present invention Fruit is cleared up (S13) to the garbage files in the game class application file and may include:If in the game class application file Promotional literature and journal file belong to promotional literature and journal file blacklist, then to wide in the game class application file It accuses file and journal file is cleared up.
Referring to Fig. 4, optionally, in one embodiment of method for cleaning of game class application garbage files of the present invention, described Judge in the game class application file whether may include including garbage files (S123) according to the second recognition rule:
S1231, judge promotional literature in the game class application file and journal file whether belong to promotional literature and Journal file blacklist;
S1232, judge whether the path of the alternative document in the game class application file includes in keyword blacklist One of or the game class application file in alternative document whether be thumbnail.
Referring to Fig. 5, optionally, in one embodiment of method for cleaning of game class application garbage files of the present invention, described It may include it is judged that result is cleared up (S13) to the garbage files in the game class application file:
If S131, the promotional literature in the game class application file and journal file belong to promotional literature and journal file Blacklist, then in the game class application file promotional literature and journal file clear up;
If the path of S132, alternative document in the game class application file includes wherein one in keyword blacklist Alternative document in a or described game class application file is thumbnail, then to other in the game class application file File is cleared up.
In the present embodiment, optionally, the keyword blacklist may include icon and temp.But it is not limited only to this.
Optionally, described to know according to second in one embodiment of method for cleaning of game class application garbage files of the present invention Rule does not judge whether may include including garbage files (S122) in the game class application file:Judge the game class application Whether the path of the alternative document in file is including one of in keyword white list;
It is then described (S13) is cleared up to the garbage files in the game class application file according to judging result to wrap It includes:If the path of the alternative document in the game class application file includes one of in keyword white list, to removing File other than alternative document in the game class application file carries out selective cleaning.
Referring to Fig. 6, the embodiment of the present invention provides a kind of cleaning plant of game class application garbage files, and the game class is answered Include with the cleaning plant of garbage files:Reading unit 11, for reading game class application file;Recognition unit 12 is used for root Judge in the game class application file whether to include garbage files according to game class application garbage files recognition rule;Clear up unit 13, for being cleared up the garbage files in the game class application file according to the judging result of the recognition unit 12.
The cleaning plant of game class application garbage files provided in an embodiment of the present invention, according to game class application garbage files Recognition rule judges whether read game class application file is garbage files, if garbage files, then clears up the game Class application file.Compared with prior art, the present invention can quickly identify simultaneously according to game class application garbage files recognition rule The game class application garbage files in mobile terminal are cleared up, the memory space of mobile terminal is discharged, improves the operation of mobile terminal Speed.
Referring to Fig. 7, optionally, in one embodiment of cleaning plant of game class application garbage files of the present invention, the trip The cleaning plant of play class application garbage files may also include:
Generation unit 10, for generating game class application garbage files recognition rule.
Optionally, in one embodiment of cleaning plant of game class application garbage files of the present invention, the generation unit 10, The general character rule that can be used for extracting the game class application garbage files cleared up, identifies as game class application garbage files and advises Then.
Referring to Fig. 8, optionally, in one embodiment of cleaning plant of game class application garbage files of the present invention, the knowledge Other unit 12 may include:
First judgment module 121, for judging whether there is game data packet in the game class application file;
Second judgment module 122 judges there is trip in the game class application file for working as first judgment module 121 When data packet of playing, judge in the game class application file whether to include garbage files according to the first recognition rule;
Third judgment module 123 judges in the game class application file for working as first judgment module 121 without trip When data packet of playing, judge in the game class application file whether to include garbage files according to the second recognition rule.
Optionally, in one embodiment of cleaning plant of game class application garbage files of the present invention, described second judges mould Block 122, for judging whether promotional literature in the game class application file and journal file belong to promotional literature and daily record File blacklist.
Optionally, in one embodiment of cleaning plant of game class application garbage files of the present invention, the cleaning unit 13, For judging that promotional literature in the game class application file and journal file belong to advertisement when second judgment module 122 When file and journal file blacklist, in the game class application file promotional literature and journal file clear up.
Referring to Fig. 9, optionally, in one embodiment of cleaning plant of game class application garbage files of the present invention, described Three judgment modules 123 may include:
First judging submodule 1231, for judging that promotional literature in the game class application file and journal file be It is no to belong to promotional literature and journal file blacklist;
Second judgment submodule 1232, for judging whether the path of the alternative document in the game class application file wraps One of include in keyword blacklist or the game class application file in alternative document whether be thumbnail.
It is optionally, described clear in one embodiment of cleaning plant of game class application garbage files of the present invention referring to Figure 10 Reason unit 13 may include:
First cleaning modul 131 judges for working as first judging submodule 1231 in the game class application file Promotional literature and journal file when belonging to promotional literature and journal file blacklist, to wide in the game class application file It accuses file and journal file is cleared up;
Second cleaning modul 132 judges for working as the second judgment submodule 1232 in the game class application file Alternative document path include one of in keyword blacklist or the game class application file in other texts When part is thumbnail, the alternative document in the game class application file is cleared up.
In the present embodiment, optionally, the keyword blacklist may include icon and temp.But it is not limited only to This.
Optionally, in one embodiment of cleaning plant of game class application garbage files of the present invention, the third judges mould Block 123 can be used for judging whether the path of the alternative document in the game class application file includes in keyword white list One of them;
The cleaning unit 13, for judging its in the game class application file when the third judgment module 123 When the path of his file includes one of in keyword white list, to except the alternative document in the game class application file File in addition carries out selective cleaning.
The method for cleaning and device of game class application garbage files of the embodiment of the present invention, can be adapted for on mobile terminal Game class application garbage files carry out quickly identify and clear up, discharge the memory space of mobile terminal, improve mobile terminal The speed of service.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (RandomAccess Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, all answer by the change or replacement that can be readily occurred in It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (14)

1. a kind of method for cleaning of game class application garbage files, which is characterized in that be applied in mobile terminal, the cleaning side Method includes:
Read game class application file;
Judge in the game class application file whether to include garbage files according to game class application garbage files recognition rule;
The garbage files in the game class application file are cleared up according to judging result;Wherein,
It is described to judge in the game class application file whether to include rubbish text according to game class application garbage files recognition rule Part includes:
Judge whether there is game data packet in the game class application file;
If there is game data packet, judge in the game class application file whether to include rubbish text according to the first recognition rule Part;
If without game data packet, judge in the game class application file whether to include rubbish text according to the second recognition rule Part;
Wherein, it is described according to the second recognition rule judge in the game class application file whether including garbage files include:
Judge whether promotional literature and journal file in the game class application file belong to promotional literature and journal file is black List;
Judge the alternative document in the game class application file path whether include keyword blacklist in one of, Or whether the alternative document in the game class application file is thumbnail;
It is described according to judging result to the garbage files in the game class application file carry out cleaning include:
If the promotional literature and journal file in the game class application file belong to promotional literature and journal file blacklist, To in the game class application file promotional literature and journal file clear up;
If the path of the alternative document in the game class application file includes Huo Zhesuo one of in keyword blacklist It is thumbnail to state the alternative document in game class application file, then is carried out to the alternative document in the game class application file clear Reason.
2. the method for cleaning of game class application garbage files according to claim 1, which is characterized in that swum in the reading It plays before class application file, further includes:
Generate game class application garbage files recognition rule.
3. the method for cleaning of game class application garbage files according to claim 2, which is characterized in that the generation game Class application garbage files recognition rule includes:
The general character rule for extracting the game class application garbage files cleared up, as game class application garbage files recognition rule.
4. the method for cleaning of game class application garbage files according to claim 1, which is characterized in that described according to first Recognition rule judge in the game class application file whether including garbage files include:
Judge whether promotional literature and journal file in the game class application file belong to promotional literature and journal file is black List.
5. the method for cleaning of game class application garbage files according to claim 4, which is characterized in that described according to judgement As a result carrying out cleaning to the garbage files in the game class application file includes:
If the promotional literature and journal file in the game class application file belong to promotional literature and journal file blacklist, To in the game class application file promotional literature and journal file clear up.
6. the method for cleaning of game class application garbage files according to claim 1, which is characterized in that the keyword is black List includes icon and temp.
7. the method for cleaning of game class application garbage files according to claim 1, which is characterized in that described according to second Recognition rule judge in the game class application file whether including garbage files include:
Judge the path of the alternative document in the game class application file whether including one of in keyword white list;
Then it is described according to judging result to the garbage files in the game class application file carry out cleaning include:
If the path of the alternative document in the game class application file includes one of in keyword white list, to removing File other than alternative document in the game class application file carries out selective cleaning.
8. a kind of cleaning plant of game class application garbage files, which is characterized in that be applied in mobile terminal, the cleaning dress Set including:
Reading unit, for reading game class application file;
Recognition unit, for judging whether wrapped in the game class application file according to game class application garbage files recognition rule Include garbage files;
Clear up unit, for according to the judging result of the recognition unit to the garbage files in the game class application file into Row cleaning;
Wherein, the recognition unit includes:
First judgment module, for judging whether there is game data packet in the game class application file;
Second judgment module judges there is game data packet in the game class application file for working as first judgment module When, judge in the game class application file whether to include garbage files according to the first recognition rule;
Third judgment module, for judging in the game class application file without game data packet when first judgment module When, judge in the game class application file whether to include garbage files according to the second recognition rule;
Wherein, the third judgment module includes:
First judging submodule, for judging whether promotional literature in the game class application file and journal file belong to wide Accuse file and journal file blacklist;
Second judgment submodule, for judging whether the path of the alternative document in the game class application file includes keyword Whether the alternative document one of in blacklist or in the game class application file is thumbnail;
The cleaning unit includes:
First cleaning modul, for judge when first judging submodule promotional literature in the game class application file and When journal file belongs to promotional literature and journal file blacklist, in the game class application file promotional literature and daily record File is cleared up;
Second cleaning modul, for judging the alternative document in the game class application file when the second judgment submodule Alternative document during path includes one of in keyword blacklist or the game class application file is thumbnail When, the alternative document in the game class application file is cleared up.
9. the cleaning plant of game class application garbage files according to claim 8, which is characterized in that further include:
Generation unit, for generating game class application garbage files recognition rule.
10. the cleaning plant of game class application garbage files according to claim 9, which is characterized in that the generation is single Member, the general character rule for extracting the game class application garbage files cleared up, identifies as game class application garbage files and advises Then.
11. the cleaning plant of game class application garbage files according to claim 8, which is characterized in that described second sentences Disconnected module, for judging whether promotional literature in the game class application file and journal file belong to promotional literature and daily record File blacklist.
12. the cleaning plant of game class application garbage files according to claim 11, which is characterized in that the cleaning is single Member, for judging that promotional literature in the game class application file and journal file belong to advertisement when second judgment module When file and journal file blacklist, in the game class application file promotional literature and journal file clear up.
13. the cleaning plant of game class application garbage files according to claim 8, which is characterized in that the keyword Blacklist includes icon and temp.
14. the cleaning plant of game class application garbage files according to claim 8, which is characterized in that the third is sentenced Disconnected module, for judging whether the path of the alternative document in the game class application file includes its in keyword white list In one;
The cleaning unit, the road for judging the alternative document in the game class application file when the third judgment module When diameter includes one of in keyword white list, to the file in addition to the alternative document in the game class application file Carry out selective cleaning.
CN201410498021.0A 2014-09-25 2014-09-25 Method and device for cleaning junk files of game applications Active CN104267986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410498021.0A CN104267986B (en) 2014-09-25 2014-09-25 Method and device for cleaning junk files of game applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410498021.0A CN104267986B (en) 2014-09-25 2014-09-25 Method and device for cleaning junk files of game applications

Publications (2)

Publication Number Publication Date
CN104267986A CN104267986A (en) 2015-01-07
CN104267986B true CN104267986B (en) 2018-07-31

Family

ID=52159510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410498021.0A Active CN104267986B (en) 2014-09-25 2014-09-25 Method and device for cleaning junk files of game applications

Country Status (1)

Country Link
CN (1) CN104267986B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224574B (en) * 2014-06-30 2019-02-19 北京金山安全软件有限公司 Method and device for automatically identifying junk files
CN104991775B (en) * 2015-07-03 2019-02-12 北京奇虎科技有限公司 A kind of game acceleration method and device
CN105159913B (en) * 2015-07-06 2020-08-07 北京金山安全软件有限公司 Method and device for determining file to be cleaned
CN105426401B (en) * 2015-10-30 2019-06-04 成都狮之吼科技有限公司 A kind of method and system for the garbage files that cleaning application program generates

Family Cites Families (6)

* 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
CN103164268B (en) * 2013-04-02 2016-04-20 北京奇虎科技有限公司 System optimization method and device
CN103530235B (en) * 2013-10-18 2017-04-12 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
CN103646057B (en) * 2013-11-29 2017-10-13 北京奇虎科技有限公司 Garbage files analysis method, equipment and cleaning garbage files method
CN103646086B (en) * 2013-12-13 2017-01-25 北京奇虎科技有限公司 Junk file cleaning method and device

Also Published As

Publication number Publication date
CN104267986A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN104267986B (en) Method and device for cleaning junk files of game applications
CN103810020B (en) Virtual machine elastic telescopic method and device
CN107678819A (en) A kind of information processing method and device, terminal and readable storage medium storing program for executing
CN103577989B (en) A kind of information classification approach and information classifying system based on product identification
CN107678800B (en) Background application cleaning method and device, storage medium and electronic equipment
CN103235686A (en) Application management method and device
CN106874520A (en) Webpage loading method, device and electronic equipment
CN103984743B (en) A kind of method and device of managing internal memory resource
CN103873273B (en) A kind of method and apparatus that network application is limited
CN103220435A (en) Method and device for outputting information of terminal
CN104159299A (en) Transmission method and device for service bulletin message
WO2005003964A3 (en) Evaluating storage options
CN105991415A (en) Message pushing method and mobile terminal
CN107959965A (en) Frame dropping method, device, mobile terminal and the readable storage medium storing program for executing of application program
JP2004252946A5 (en)
CN108153764A (en) A kind of public sentiment processing method and processing device
CN110209768B (en) Question processing method and device for automatic question answering
CN104268220B (en) Method and device for cleaning junk files of audio and video applications
CN106020958A (en) Method and device for acquiring file occupation process and electronic equipment
CN105959472A (en) Mobile terminal control method and mobile terminal
CN108009036A (en) A kind of method and server for positioning the operation for causing data exception
CN102750185B (en) A kind of data adaptive output method and system
CN114553765B (en) OSPF neighbor oscillation processing method, device and medium
CN105049520A (en) Method and device for pushing information
CN105551500B (en) A kind of acoustic signal processing method and device

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