CN104156414A - Terminal, device and method for clearing junk files - Google Patents

Terminal, device and method for clearing junk files Download PDF

Info

Publication number
CN104156414A
CN104156414A CN201410371217.3A CN201410371217A CN104156414A CN 104156414 A CN104156414 A CN 104156414A CN 201410371217 A CN201410371217 A CN 201410371217A CN 104156414 A CN104156414 A CN 104156414A
Authority
CN
China
Prior art keywords
application program
garbage files
pending application
rule information
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
CN201410371217.3A
Other languages
Chinese (zh)
Other versions
CN104156414B (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.)
Zhuhai Seal Interest Technology Co Ltd
Original Assignee
Zhuhai Juntian Electronic 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 Zhuhai Juntian Electronic Technology Co Ltd filed Critical Zhuhai Juntian Electronic Technology Co Ltd
Priority to CN201410371217.3A priority Critical patent/CN104156414B/en
Publication of CN104156414A publication Critical patent/CN104156414A/en
Application granted granted Critical
Publication of CN104156414B publication Critical patent/CN104156414B/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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

An embodiment of the invention discloses a method for clearing junk files. The method includes: when an operational order of carrying out junk file scanning on a to-be-processed application program is received, acquiring junk file clearing rule information corresponding to the to-be-processed application program; acquiring an installation directory of the to-be-processed application program, scanning files matched with the junk file clearing rule information under the installation directory; determining files matched with the junk file clearing rule information as junk files. The embodiment of the invention further discloses a device and a terminal. By adoption of the terminal, the device and the method for clearing the junk files, the junk files can be scanned and cleared by the appointed to-be-processed application program, the junk files can be cleared accurately and quickly to release more storage space, and consequently user experience is improved.

Description

A kind of method for cleaning, device and terminal of garbage files
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method for cleaning, device and terminal of garbage files.
Background technology
Along with scientific and technical development, people more and more rely on the intelligent terminal such as computer, mobile phone in daily life, and the requirement of the travelling speed to terminal and application is also more and more higher.But terminal tends to produce a large amount of garbage files in use for some time, and a large amount of storage spaces of these garbage files meeting occupied terminals cause terminal to occur card machine, move slow situation, have affected the normal use of user to other useful files.
In order effectively to improve the travelling speed of terminal, the garbage files that we need produce terminal is cleared up, and discharges more storage spaces, makes the not remaining garbage files of storage space of terminal.In prior art, garbage-cleaning application software is normally identified garbage files by system and the popular software of end of scan, and clears up, and the application software that some are of little use, or online game etc., garbage-cleaning application software does not scan cleaning.But the application software being of little use at these, or in online game, conventionally also can produce a large amount of garbage files.For example: most online game all can irregularly be upgraded, produce a large amount of garbage files such as renewal patch and ephemeral data file, and along with the fast development of online game, games volume is increasing, the renewal patch producing and temporary file are more and more, and this makes the storage space of garbage files occupied terminal increasing, in the course of time, will cause system operation slowly, affect user and experience.And if when user manually deletes the above garbage files, user may cause deleting owing to cannot accurately understanding the position that garbage files deposits, and causes program normally to move by mistake.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, a kind of method for cleaning, device and terminal of garbage files is provided.Can be by specifying pending application program to scan cleaning garbage files, the more cleaning garbage files of accurate quick, discharges more storage spaces, improves user experience.
Embodiment of the present invention first aspect provides a kind of method for cleaning of garbage files, comprising:
When receiving when pending application program is carried out to the operational order of garbage files scanning, obtain cleaning garbage files Rule Information corresponding to described pending application program;
Obtain the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory;
The file that described and described cleaning garbage files Rule Information is matched is defined as garbage files.
Wherein, before obtaining cleaning garbage files Rule Information corresponding to described pending application program described in, comprise:
Judge whether terminal installs described pending application program;
If so, described in carrying out, obtain cleaning garbage files Rule Information step corresponding to described pending application program.
Wherein, describedly judge whether terminal is installed described pending application program and comprised:
Obtain preset application features storehouse, described application features storehouse comprises the current whole characteristic informations of set up applications of described terminal;
Obtain the characteristic information of described pending application program, in described application features storehouse, whether inquiry has the characteristic information matching with the characteristic information of described pending application program.
Wherein, described application features storehouse also comprise each described in registration table corresponding to set up applications;
The described installation directory that obtains described pending application program comprises:
In described application features storehouse, obtain registration table corresponding to described pending application program;
Obtain the installation directory of described application program according to described registration table.
Wherein, the installation directory that obtains described pending application program described in also comprises:
Obtain the preset configuration file of described pending application program, obtain the installation directory of described pending application program according to described configuration file.
Wherein, before obtaining cleaning garbage files Rule Information corresponding to described pending application program described in, comprise:
In the time of described pending application program launching, record the startup path of described pending application program, generate the configuration file of described pending application program according to described startup path.
Wherein, described cleaning garbage files Rule Information comprises:
The file type of the store path of the garbage files of application program, the last access time of application program and garbage files at least one.
Wherein, described the file matching with described cleaning garbage files Rule Information is defined as also comprising before garbage files:
Obtain terminal current time;
The last access time of the pending application program comprising according to described cleaning garbage files Rule Information and described terminal current time, calculate the time interval value between last access time and the described terminal current time of described pending application program;
Judge whether described time interval value is more than or equal to threshold value;
If so, carry out the file matching with described cleaning garbage files Rule Information is defined as to garbage files step.
Wherein, described the file matching with described cleaning garbage files Rule Information is defined as comprising after garbage files:
In the time receiving the operational order that definite garbage files is deleted, delete described definite garbage files.
Wherein, described pending application program comprises: online game application program.
Embodiment of the present invention second aspect provides a kind of device, and described device comprises:
The first acquiring unit, for when receiving when pending application program is carried out to the operational order of garbage files scanning, obtains cleaning garbage files Rule Information corresponding to described pending application program;
Obtain matching unit, for obtaining the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory;
Determining unit, is defined as garbage files for the file that described and described cleaning garbage files Rule Information is matched.
Wherein, described device comprises:
Whether the first judging unit, install described pending application program for judgment means;
Described the first acquiring unit specifically for, when described the first judging unit judges described device, described pending application program is installed, obtain cleaning garbage files Rule Information corresponding to described pending application program
Wherein, described the first judging unit comprises:
Obtain subelement, for obtaining preset application features storehouse, described application features storehouse comprises the current whole characteristic informations of set up applications of described device;
Inquiry subelement, for obtaining the characteristic information of described pending application program, in described application features storehouse, whether inquiry has the characteristic information matching with the characteristic information of described pending application program.
Wherein, described application features storehouse also comprise each described in registration table corresponding to set up applications;
Described obtain matching unit specifically for,
In described application features storehouse, obtain registration table corresponding to described pending application program;
Obtain the installation directory of described application program according to described registration table.
Wherein, described in obtain matching unit also specifically for,
Obtain the preset configuration file of described pending application program, obtain the installation directory of described pending application program according to described configuration file.
Wherein, described device comprises:
Record cell, for when the described pending application program launching, the startup path of recording described pending application program, generates the configuration file of described pending application program according to described startup path.
Wherein, described cleaning garbage files Rule Information comprises:
The file type of the store path of the garbage files of application program, the last access time of application program and garbage files at least one.
Wherein, described device also comprises:
Second acquisition unit, for acquisition device current time;
Computing unit, for last access time and the described device current time of the pending application program that comprises according to described cleaning garbage files Rule Information, calculate the time interval value between last access time and the described device current time of described pending application program;
The second judging unit, for judging whether described time interval value is more than or equal to threshold value;
Described determining unit specifically for, in the time that described the second judging unit judges that described time interval value is more than or equal to threshold value, the file that described and described cleaning garbage files Rule Information is matched is defined as garbage files.
Wherein, described device comprises:
Delete cells, in the time receiving the operational order that definite garbage files is deleted, deletes described definite garbage files.
Wherein, described pending application program comprises: online game application program.
The embodiment of the present invention third aspect provides a kind of terminal, comprises any one in a kind of device that the invention described above embodiment second aspect provides.
Implement the embodiment of the present invention, there is following beneficial effect:
In the method for cleaning of the described garbage files of the embodiment of the present invention, when receiving when pending application program is carried out to the operational order of garbage files scanning, obtain cleaning garbage files Rule Information corresponding to described pending application program, obtain again the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory, the file finally described and described cleaning garbage files Rule Information being matched is defined as garbage files, this makes user to clear up garbage files by specifying pending application program to scan, the more cleaning garbage files of accurate quick, discharge more storage spaces, improve terminal capabilities and user experience.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of the method for cleaning of a kind of garbage files of providing of first embodiment of the invention;
Fig. 2 is the schematic flow sheet of the method for cleaning of a kind of garbage files of providing of second embodiment of the invention;
Fig. 3 is the structural drawing of a kind of device of providing of third embodiment of the invention;
Fig. 4 is the structural drawing of a kind of device of providing of fourth embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, terminal can be the intelligent terminal such as computer, notebook mobile phone.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the method for cleaning of a kind of garbage files of providing of the embodiment of the present invention, and in embodiments of the present invention, the method comprises the following steps:
S100, when receiving when pending application program is carried out to the operational order of garbage files scanning, obtains cleaning garbage files Rule Information corresponding to described pending application program.
In embodiments of the present invention, the operating system of terminal can be the operating system of Windows series, or other operating system, such as Linux, Android and Ios etc.
In embodiments of the present invention, before receiving the operation of pending application program being carried out to garbage files scanning time, user can start the garbage files scan function of terminal, when receiving, terminal starts after garbage files scan function, terminal can at least one can be carried out the identifier of the application program of garbage files scanning by interface display, icon, the words identification of application program or the ID of application program etc. of such as application program of identifier.User can select pending application program also by the identifier of click or the pending application program of touch-control by the identifier of the application program of interface display, thereby sends the operational order that pending application program is carried out to garbage files scanning to terminal.Wherein, it is preset that terminal can be by the identifier of the application program of at least one carried out garbage files scanning of interface display that developer carries out, and the identifier that developer can not be scanned existing garbage-cleaning application program the software of cleaning is preset on interface.In the time that user need be scanned garbage files to certain application program, user can select to confirm pending application program according to the identifier of the application program of interface display, thereby terminal receives the operational order that pending application program is carried out to garbage files scanning.Certainly, developer also can be arranged on identifier corresponding other conventional application software on interface, does not impose any restrictions at this.Further, the identifier that developer can show terminal interface by network carries out irregular renewal.
In embodiments of the present invention, when terminal receives when pending application program is carried out to the operational order of garbage files scanning, terminal can judge whether to have installed user-selected pending application program.Wherein, terminal judges whether to install user-selected pending application program by obtaining preset application features storehouse.Preferably, preset application features storehouse can comprise the characteristic information of the current whole mounted application programs of terminal, terminal can be obtained the characteristic information of the current whole mounted application programs of application program in the time starting operation, and in the time detecting that new software is installed or unloaded, renewable application features storehouse.Further, when terminal gets behind preset application features storehouse, terminal can be obtained the characteristic information of pending application program, and the characteristic information that whether inquiry mates with the characteristic information of pending application program in application features storehouse, in the time the characteristic information not mating with the characteristic information of pending application program, terminal stops the garbage files of pending application program to scan.Wherein, characteristic information can be used for identification application, and characteristic information can be ID, the application program descriptor etc. of application program.
In embodiments of the present invention, inquire about while having the characteristic information matching with the characteristic information of pending application journey when terminal in application features storehouse, terminal is obtained cleaning garbage files Rule Information corresponding to pending application program.Wherein, cleaning garbage files Rule Information comprises the store path of the garbage files of application program, the last access time of application program and the file type of garbage files.Wherein, the store path of garbage files and the file type of garbage files can be undertaken preset and are stored in terminal by developer, and can irregularly upgrade by network, and, terminal can application programs startup and close and monitor, and after closing application program, record ShiShimonoseki and close the time, the last access time that the shut-in time of the application program that terminal is recorded is application program when monitoring.
Optionally, as one embodiment of the present invention, can set in advance cleaning garbage files application program in terminal, the executable operations step of above terminal can be the executable operations step of cleaning garbage files application program.
S101, obtains the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory.
In embodiments of the present invention, in the time of terminal set up applications, can create the registration table of application program and be kept in application features storehouse or other memory locations of terminal in.Terminal, before obtaining the installation directory of pending application program, can be obtained pending applications registry in application features storehouse.When terminal gets after the registration table of pending application program, can obtain according to registration table the installation directory of pending application program, and the file that the scanning cleaning garbage files Rule Information corresponding with pending application file mates under the installation directory of pending application program.
In concrete application, can be for example: in the time that " heroic alliance " online game is installed, the registration table of establishment can be for example:
[HKEY_LOCAL_MACHINE\SOFTWARE\Tencent\LOL]
" InstallPath "=" c: game hero alliance "
Terminal can be by obtaining above-mentioned establishment the InstallPath of registration table obtain installation directory, and then according to the installation directory obtaining, the file that scanning is mated with cleaning garbage files Rule Information under installation directory.The garbage files path that cleaning garbage files Rule Information comprises can be: under installation directory TCLS patchs sub-folder, the garbage files type that cleaning garbage files Rule Information comprises can be LOL_*.exe, therefore when terminal under installation directory TCLS scan under patchs sub-folder while upgrading patch file LOL_*.exe file, can determine that LOL_*.exe file is the file of the cleaning garbage files Rule Information coupling corresponding with pending application program.
Further, do not need to install for part, the application program that only needs decompress(ion) to move, because these application programs can not create the registry entry that comprises installation directory in registration table, terminal can be monitored the startup of these application programs.In the time of application program launching, terminal is recorded startup path, the descriptor of application program and the title of application program etc. of application program.And according to the Information generation configuration file obtaining, descriptor and the title of application program etc. of the startup path application program of the application program that configuration file carried terminal is recorded.Therefore when terminal is before obtaining the installation directory of pending application program, can in application features storehouse, obtain the registration table of pending application program, but obtain the installation directory less than pending application program after terminal gets the registration table of pending application program time, terminal can be obtained configuration file corresponding to pending application program, obtain the installation directory of pending application program according to configuration file, and the file that the scanning cleaning garbage files Rule Information corresponding with pending application file mates under the installation directory of pending application program.
In concrete application, can be for example: " dreamlike Journey to the West " game is green edition game, after decompress(ion), can move, without installation, terminal in registration table, do not create the registry entry that comprises installation directory again, therefore in " dreamlike Journey to the West " starts, can be recorded startup path and " dreamlike Journey to the West " title of " dreamlike Journey to the West ", as " c: game illusion Journey to the West ", therefore installation directory can be " c: game illusion Journey to the West ".Further, the file that scanning is mated with cleaning garbage files Rule Information under installation directory.The garbage files type that cleaning garbage files Rule Information comprises can be patch*_xy, therefore when scan renewal patch file patch*_xy file under installation directory time, can determine that patch*_xy file is the file that the cleaning garbage files Rule Information corresponding with pending application program mates.
S102, the file that described and described cleaning garbage files Rule Information is matched is defined as garbage files.
In embodiments of the present invention, when terminal scanning gets after the file mating with cleaning garbage files rule, the last access time of the application program that terminal also can comprise according to cleaning garbage files Rule Information judges whether the file that scanning obtains is garbage files.Concrete, terminal is obtained the current time, calculate the time interval value between last access time and the terminal current time of pending application program according to the included last access time of file of cleaning garbage files Rule Information corresponding to pending application program, for example: current time is T0, the last access time of pending application program is T, time interval value f=T-T0.In the time that time interval value is more than or equal to threshold value, confirm that the file that scanning obtains is garbage files.Wherein, threshold value can be set to 7 days or other times section, is not limited at this.
Further, after the file that terminal check and cleaning garbage files Rule Information match is garbage files, terminal can show, the file of demonstration can be deleted, thereby discharge the more storage space of terminal with reminding user.
In the method for cleaning of the described garbage files of the embodiment of the present invention, when receiving when pending application program is carried out to the operational order of garbage files scanning, obtain cleaning garbage files Rule Information corresponding to described pending application program, obtain again the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory, finally the file matching with described cleaning garbage files Rule Information is defined as to garbage files, this makes user to clear up garbage files by specifying pending application program to scan, the more cleaning garbage files of accurate quick, discharge more storage spaces, improve terminal capabilities and user experience.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the method for cleaning of a kind of garbage files of providing of the embodiment of the present invention, and in embodiments of the present invention, the method comprises the following steps:
S200, when receiving when pending application program is carried out to the operational order of garbage files scanning, obtains cleaning garbage files Rule Information corresponding to described pending application program.
S201, obtains the installation directory of described pending application program, the file that scanning is mated with described cleaning garbage files Rule Information under described installation directory;
S202, the file that described and described cleaning garbage files Rule Information is mated is defined as garbage files and shows.
S203, in the time receiving the operational order that definite garbage files is deleted, deletes described definite garbage files.
In embodiments of the present invention, when terminal scans by interface display after the garbage files getting, terminal can show the button of whether deleting simultaneously.In the time that user clicks delete button, terminal receives the operational order that definite garbage files is deleted, and terminal is deleted definite garbage files.Thereby discharge the shared storage space of garbage files.
Wherein, step S200, step S201 and step S202 can, referring to the step S100 of above embodiment, step S101 and step S102, no longer repeat at this.
In the method for cleaning of the described garbage files of the embodiment of the present invention, when receiving when pending application program is carried out to the operational order of garbage files scanning, obtain cleaning garbage files Rule Information corresponding to described pending application program, obtain again the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory, finally the file matching with described cleaning garbage files Rule Information is defined as to garbage files, this makes user to clear up garbage files by specifying pending application program to scan, the more cleaning garbage files of accurate quick, discharge more storage spaces, improve terminal capabilities and user experience.
For ease of better implementing the such scheme of the embodiment of the present invention, be also provided for coordinating the relevant apparatus of implementing such scheme below.
Refer to Fig. 3, Fig. 3 is the structural drawing of a kind of device of providing of the embodiment of the present invention, and in embodiments of the present invention, this device comprises:
The first acquiring unit 100, for when receiving when pending application program is carried out to the operational order of garbage files scanning, obtains cleaning garbage files Rule Information corresponding to described pending application program.
Obtain matching unit 200, for obtaining the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory.
Determining unit 300, is defined as garbage files for the file that described and described cleaning garbage files Rule Information is matched.
Wherein, described device comprises:
Whether the first judging unit 400, install described pending application program for judgment means;
Described the first acquiring unit 100 specifically for, when described the first judging unit judges described device, described pending application program is installed, obtain cleaning garbage files Rule Information corresponding to described pending application program
Wherein, described in obtain matching unit 200 specifically for,
In described application features storehouse, obtain registration table corresponding to described pending application program;
Obtain the installation directory of described application program according to described registration table.
Wherein, described in obtain matching unit 200 also specifically for,
Obtain the preset configuration file of described pending application program, obtain the installation directory of described pending application program according to described configuration file.
Wherein, described device comprises:
Record cell 500, for when the described pending application program launching, the startup path of recording described pending application program, generates the configuration file of described pending application program according to described startup path.
Wherein, described device also comprises:
Second acquisition unit 600, for acquisition device current time;
Computing unit 700, for last access time and the described device current time of the pending application program that comprises according to described cleaning garbage files Rule Information, calculate the time interval value between last access time and the described device current time of described pending application program;
The second judging unit 800, for judging whether described time interval value is more than or equal to threshold value;
Described determining unit 300 specifically for, in the time that described the second judging unit 600 judges that described time interval value is more than or equal to threshold value, the file that described and described cleaning garbage files Rule Information is matched is defined as garbage files.
Wherein, described device comprises:
Delete cells 900, in the time receiving the operational order that definite garbage files is deleted, deletes described definite garbage files.
Be understandable that, the function of each functional module of the device of the present embodiment can be according to the method specific implementation in said method embodiment, and its specific implementation process can, with reference to the associated description of said method embodiment, no longer repeat herein.
In the described device of the embodiment of the present invention, when receiving when pending application program is carried out to the operational order of garbage files scanning, obtain cleaning garbage files Rule Information corresponding to described pending application program, obtain again the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory, the file finally described and described cleaning garbage files Rule Information being matched is defined as garbage files, this makes user to clear up garbage files by specifying pending application program to scan, the more cleaning garbage files of accurate quick, discharge more storage spaces, improve terminal capabilities and user experience.
Refer to Fig. 4, the structural drawing of a kind of device that Fig. 4 provides for the embodiment of the present invention, in embodiments of the present invention, this device comprises: the first acquiring unit 100, obtain matching unit 200, determining unit 300, the first judging unit 400, record cell 500, second acquisition unit 600, computing unit 700, the second judging unit 800 and delete cells 900.
Wherein, described the first judging unit comprises:
Obtain subelement 10, for obtaining preset application features storehouse, described application features storehouse comprises the current whole characteristic informations of set up applications of described device.
Inquiry subelement 20, for obtaining the characteristic information of described pending application program, in described application features storehouse, whether inquiry has the characteristic information matching with the characteristic information of described pending application program.
Be understandable that, the function of each functional module of the device of the present embodiment can be according to the method specific implementation in said method embodiment, and its specific implementation process can, with reference to the associated description of said method embodiment, no longer repeat herein.
In the described device of the embodiment of the present invention, when receiving when pending application program is carried out to the operational order of garbage files scanning, obtain cleaning garbage files Rule Information corresponding to described pending application program, obtain again the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory, the file finally described and described cleaning garbage files Rule Information being matched is defined as garbage files, this makes user to clear up garbage files by specifying pending application program to scan, the more cleaning garbage files of accurate quick, discharge more storage spaces, improve terminal capabilities and user experience.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, to the schematic statement of above-mentioned term not must for be identical embodiment or example.And, specific features, structure, material or the feature of description can one or more embodiment in office or example in suitable mode combination.In addition,, not conflicting in the situation that, those skilled in the art can carry out combination and combination by the feature of the different embodiment that describe in this instructions or example and different embodiment or example.
In addition, term " first ", " second " be only for describing object, and can not be interpreted as instruction or hint relative importance or the implicit quantity that indicates indicated technical characterictic.Thus, at least one this feature can be expressed or impliedly be comprised to the feature that is limited with " first ", " second ".In description of the invention, the implication of " multiple " is at least two, for example two, and three etc., unless otherwise expressly limited specifically.
Any process of otherwise describing in process flow diagram or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
The logic and/or the step that in process flow diagram, represent or otherwise describe at this, for example, can be considered to the sequencing list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (as computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), or use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can comprise, device that storage, communication, propagation or transmission procedure use for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), the erasable ROM (read-only memory) (EPROM or flash memory) of editing, fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other the suitable medium that can print described program thereon, because can be for example by paper or other media be carried out to optical scanning, then edit, decipher or process in electronics mode and obtain described program with other suitable methods if desired, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in storer and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computer-readable recording medium, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.
The above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, amendment, replacement and modification.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (21)

1. a cleaning garbage files method, is characterized in that, described method comprises:
When receiving when pending application program is carried out to the operational order of garbage files scanning, obtain cleaning garbage files Rule Information corresponding to described pending application program;
Obtain the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory;
The file that described and described cleaning garbage files Rule Information is matched is defined as garbage files.
2. the method for claim 1, is characterized in that, described in obtain before cleaning garbage files Rule Information corresponding to described pending application program and comprise:
Judge whether terminal installs described pending application program;
If so, described in carrying out, obtain cleaning garbage files Rule Information step corresponding to described pending application program.
3. method as claimed in claim 2, is characterized in that, describedly judges whether terminal is installed described pending application program and comprised:
Obtain preset application features storehouse, described application features storehouse comprises the current whole characteristic informations of set up applications of described terminal;
Obtain the characteristic information of described pending application program, in described application features storehouse, whether inquiry has the characteristic information matching with the characteristic information of described pending application program.
4. method as claimed in claim 3, is characterized in that, described application features storehouse also comprise each described in registration table corresponding to set up applications;
The described installation directory that obtains described pending application program comprises:
In described application features storehouse, obtain registration table corresponding to described pending application program;
Obtain the installation directory of described application program according to described registration table.
5. method as claimed in claim 3, is characterized in that, described in obtain described pending application program installation directory also comprise:
Obtain the preset configuration file of described pending application program, obtain the installation directory of described pending application program according to described configuration file.
6. method as claimed in claim 5, is characterized in that, described in obtain before cleaning garbage files Rule Information corresponding to described pending application program and comprise:
In the time of described pending application program launching, record the startup path of described pending application program, generate the configuration file of described pending application program according to described startup path.
7. method as claimed in claim 6, is characterized in that, described cleaning garbage files Rule Information comprises:
The file type of the store path of the garbage files of application program, the last access time of application program and garbage files at least one.
8. method as claimed in claim 7, is characterized in that, described the file matching with described cleaning garbage files Rule Information is defined as also comprising before garbage files:
Obtain terminal current time;
The last access time of the pending application program comprising according to described cleaning garbage files Rule Information and described terminal current time, calculate the time interval value between last access time and the described terminal current time of described pending application program;
Judge whether described time interval value is more than or equal to threshold value;
If so, carry out the file matching with described cleaning garbage files Rule Information is defined as to garbage files step.
9. method as claimed in claim 8, is characterized in that, described the file matching with described cleaning garbage files Rule Information is defined as comprising after garbage files:
In the time receiving the operational order that definite garbage files is deleted, delete described definite garbage files.
10. method as claimed in claim 9, is characterized in that, described pending application program comprises: online game application program.
11. 1 kinds of cleaning garbage files devices, is characterized in that, described device comprises:
The first acquiring unit, for when receiving when pending application program is carried out to the operational order of garbage files scanning, obtains cleaning garbage files Rule Information corresponding to described pending application program;
Obtain matching unit, for obtaining the installation directory of described pending application program, the file that scanning and described cleaning garbage files Rule Information match under described installation directory;
Determining unit, is defined as garbage files for the file that described and described cleaning garbage files Rule Information is matched.
12. devices as claimed in claim 1, is characterized in that, described device comprises:
Whether the first judging unit, install described pending application program for judgment means;
Described the first acquiring unit specifically for, when described the first judging unit judges described device, described pending application program is installed, obtain cleaning garbage files Rule Information corresponding to described pending application program.
13. devices as claimed in claim 12, is characterized in that, described the first judging unit comprises:
Obtain subelement, for obtaining preset application features storehouse, described application features storehouse comprises the current whole characteristic informations of set up applications of described device;
Inquiry subelement, for obtaining the characteristic information of described pending application program, in described application features storehouse, whether inquiry has the characteristic information matching with the characteristic information of described pending application program.
14. devices as claimed in claim 13, is characterized in that, described application features storehouse also comprise each described in registration table corresponding to set up applications;
Described obtain matching unit specifically for,
In described application features storehouse, obtain registration table corresponding to described pending application program;
Obtain the installation directory of described application program according to described registration table.
15. devices as claimed in claim 14, is characterized in that, described in obtain matching unit also specifically for,
Obtain the preset configuration file of described pending application program, obtain the installation directory of described pending application program according to described configuration file.
16. devices as claimed in claim 15, is characterized in that, described device comprises:
Record cell, for when the described pending application program launching, the startup path of recording described pending application program, generates the configuration file of described pending application program according to described startup path.
17. devices as claimed in claim 16, is characterized in that, described cleaning garbage files Rule Information comprises:
The file type of the store path of the garbage files of application program, the last access time of application program and garbage files at least one.
18. devices as claimed in claim 17, is characterized in that, described device also comprises:
Second acquisition unit, for acquisition device current time;
Computing unit, for last access time and the described device current time of the pending application program that comprises according to described cleaning garbage files Rule Information, calculate the time interval value between last access time and the described device current time of described pending application program;
The second judging unit, for judging whether described time interval value is more than or equal to threshold value;
Described determining unit specifically for, in the time that described the second judging unit judges that described time interval value is more than or equal to threshold value, the file that described and described cleaning garbage files Rule Information is matched is defined as garbage files.
19. devices as claimed in claim 18, is characterized in that, described device comprises:
Delete cells, in the time receiving the operational order that definite garbage files is deleted, deletes described definite garbage files.
20. devices as claimed in claim 19, is characterized in that, described pending application program comprises: online game application program.
21. 1 kinds of terminals, is characterized in that, described terminal comprises the device as described in claim 11-20 any one.
CN201410371217.3A 2014-07-30 2014-07-30 A kind of method for cleaning of garbage files, device and terminal Active CN104156414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410371217.3A CN104156414B (en) 2014-07-30 2014-07-30 A kind of method for cleaning of garbage files, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410371217.3A CN104156414B (en) 2014-07-30 2014-07-30 A kind of method for cleaning of garbage files, device and terminal

Publications (2)

Publication Number Publication Date
CN104156414A true CN104156414A (en) 2014-11-19
CN104156414B CN104156414B (en) 2018-01-23

Family

ID=51881913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410371217.3A Active CN104156414B (en) 2014-07-30 2014-07-30 A kind of method for cleaning of garbage files, device and terminal

Country Status (1)

Country Link
CN (1) CN104156414B (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657182A (en) * 2015-03-05 2015-05-27 北京畅游天下网络技术有限公司 Method and device for cleaning system junk of mobile equipment
CN104951507A (en) * 2015-05-21 2015-09-30 北京奇虎科技有限公司 Method and device for clearing up files in mobile terminal applications
CN105068844A (en) * 2015-08-26 2015-11-18 广东欧珀移动通信有限公司 Method and apparatus for solving problem of no startup of Android terminal
CN105262810A (en) * 2015-09-29 2016-01-20 北京金山安全软件有限公司 Cloud backup method and device for picture and electronic equipment
CN105426401A (en) * 2015-10-30 2016-03-23 成都狮之吼科技有限公司 Method and system for cleaning junk file generated by application
CN105893600A (en) * 2016-04-20 2016-08-24 乐视控股(北京)有限公司 Method and device for cleaning up useless files based on mobile terminal
CN105975400A (en) * 2016-04-27 2016-09-28 北京金山安全软件有限公司 Space management method and device and electronic equipment
CN106227744A (en) * 2016-07-12 2016-12-14 努比亚技术有限公司 Terminal document managing device, terminal and terminal document management method
CN106293783A (en) * 2015-05-15 2017-01-04 腾讯科技(深圳)有限公司 The method for cleaning of a kind of installation kit and equipment
CN106294488A (en) * 2015-06-05 2017-01-04 腾讯科技(深圳)有限公司 Garbage files scan method and device
CN106407433A (en) * 2016-09-28 2017-02-15 上海传英信息技术有限公司 Junk file cleaning method and mobile terminal
CN106557519A (en) * 2015-09-29 2017-04-05 北京国双科技有限公司 File delet method and device
CN106570005A (en) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 Database cleaning method and device
CN106874366A (en) * 2016-12-30 2017-06-20 腾讯科技(深圳)有限公司 The processing method and processing device of software information
CN107066604A (en) * 2017-04-25 2017-08-18 努比亚技术有限公司 A kind of cleaning garbage files method and terminal
WO2017157199A1 (en) * 2016-03-17 2017-09-21 阿里巴巴集团控股有限公司 Garbage collection method and device
CN107977566A (en) * 2017-11-27 2018-05-01 珠海市君天电子科技有限公司 A kind of function triggering method, device and electronic equipment
CN108052594A (en) * 2017-12-11 2018-05-18 深圳创维-Rgb电子有限公司 Waste disposal method, device and computer readable storage medium based on Android
CN108255930A (en) * 2017-11-30 2018-07-06 维沃移动通信有限公司 The data clearing method and mobile terminal of a kind of mobile terminal
CN108363546A (en) * 2017-07-14 2018-08-03 北京安天网络安全技术有限公司 A kind of Linux platform rubbish cleaning trustship method and system
CN109344128A (en) * 2018-10-31 2019-02-15 中国银行股份有限公司 A kind of history file method for cleaning and device based on ZOS platform
CN110543451A (en) * 2019-07-30 2019-12-06 华为技术有限公司 Method and device for efficiently cleaning equipment files
CN111752896A (en) * 2019-03-26 2020-10-09 青岛海信移动通信技术股份有限公司 Method and device for cleaning junk files in mobile terminal and mobile terminal
CN112199336A (en) * 2020-09-29 2021-01-08 珠海豹好玩科技有限公司 Method and device for cleaning junk files in Linux system
CN112241395A (en) * 2019-07-17 2021-01-19 腾讯科技(深圳)有限公司 Method and device for cleaning application program file, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288531A1 (en) * 2006-06-07 2007-12-13 Giovanni Motta Mobile device with an embedded file system capable of updating file system components
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103473163A (en) * 2013-09-11 2013-12-25 腾讯科技(深圳)有限公司 Application program detection method and device
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103927198A (en) * 2014-03-19 2014-07-16 北京奇虎科技有限公司 Software clearing method and software clearing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288531A1 (en) * 2006-06-07 2007-12-13 Giovanni Motta Mobile device with an embedded file system capable of updating file system components
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103473163A (en) * 2013-09-11 2013-12-25 腾讯科技(深圳)有限公司 Application program detection method and device
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103927198A (en) * 2014-03-19 2014-07-16 北京奇虎科技有限公司 Software clearing method and software clearing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
STEWART FRASER,STEVEN LIVINGSTONE著;毛尧飞,崔伟译: "3.2.1配置文件", 《C#XML入门经典》 *

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657182B (en) * 2015-03-05 2018-08-07 北京畅游天下网络技术有限公司 System rubbish method for cleaning and device for mobile device
CN104657182A (en) * 2015-03-05 2015-05-27 北京畅游天下网络技术有限公司 Method and device for cleaning system junk of mobile equipment
CN106293783A (en) * 2015-05-15 2017-01-04 腾讯科技(深圳)有限公司 The method for cleaning of a kind of installation kit and equipment
CN104951507A (en) * 2015-05-21 2015-09-30 北京奇虎科技有限公司 Method and device for clearing up files in mobile terminal applications
CN104951507B (en) * 2015-05-21 2017-05-10 北京奇虎科技有限公司 Method and device for clearing up files in mobile terminal applications
CN106294488A (en) * 2015-06-05 2017-01-04 腾讯科技(深圳)有限公司 Garbage files scan method and device
CN105068844A (en) * 2015-08-26 2015-11-18 广东欧珀移动通信有限公司 Method and apparatus for solving problem of no startup of Android terminal
CN105068844B (en) * 2015-08-26 2017-11-07 广东欧珀移动通信有限公司 It is a kind of to solve the method and device that Android terminal is not started shooting
CN106557519A (en) * 2015-09-29 2017-04-05 北京国双科技有限公司 File delet method and device
CN105262810A (en) * 2015-09-29 2016-01-20 北京金山安全软件有限公司 Cloud backup method and device for picture and electronic equipment
CN105262810B (en) * 2015-09-29 2019-04-26 北京金山安全软件有限公司 Cloud backup method and device for picture and electronic equipment
CN106570005A (en) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 Database cleaning method and device
CN105426401B (en) * 2015-10-30 2019-06-04 成都狮之吼科技有限公司 A kind of method and system for the garbage files that cleaning application program generates
CN105426401A (en) * 2015-10-30 2016-03-23 成都狮之吼科技有限公司 Method and system for cleaning junk file generated by application
TWI794158B (en) * 2016-03-17 2023-03-01 香港商阿里巴巴集團服務有限公司 Garbage collection method and device
US11119911B2 (en) 2016-03-17 2021-09-14 Alibaba Group Holding Limited Garbage collection method and device
CN107203552B (en) * 2016-03-17 2021-12-28 阿里巴巴集团控股有限公司 Garbage recovery method and device
WO2017157199A1 (en) * 2016-03-17 2017-09-21 阿里巴巴集团控股有限公司 Garbage collection method and device
CN107203552A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 Rubbish recovering method and device
CN105893600A (en) * 2016-04-20 2016-08-24 乐视控股(北京)有限公司 Method and device for cleaning up useless files based on mobile terminal
CN105975400A (en) * 2016-04-27 2016-09-28 北京金山安全软件有限公司 Space management method and device and electronic equipment
CN106227744A (en) * 2016-07-12 2016-12-14 努比亚技术有限公司 Terminal document managing device, terminal and terminal document management method
CN106407433A (en) * 2016-09-28 2017-02-15 上海传英信息技术有限公司 Junk file cleaning method and mobile terminal
CN106874366A (en) * 2016-12-30 2017-06-20 腾讯科技(深圳)有限公司 The processing method and processing device of software information
WO2018121442A1 (en) * 2016-12-30 2018-07-05 腾讯科技(深圳)有限公司 Method and device for processing software information, storage medium, and electronic device
CN106874366B (en) * 2016-12-30 2020-06-02 腾讯科技(深圳)有限公司 Software information processing method and device
CN107066604A (en) * 2017-04-25 2017-08-18 努比亚技术有限公司 A kind of cleaning garbage files method and terminal
CN107066604B (en) * 2017-04-25 2020-12-01 西安阳易信息技术有限公司 Junk file cleaning method and terminal
CN108363546A (en) * 2017-07-14 2018-08-03 北京安天网络安全技术有限公司 A kind of Linux platform rubbish cleaning trustship method and system
CN107977566A (en) * 2017-11-27 2018-05-01 珠海市君天电子科技有限公司 A kind of function triggering method, device and electronic equipment
CN107977566B (en) * 2017-11-27 2021-03-19 珠海市君天电子科技有限公司 Function triggering method and device and electronic equipment
CN108255930B (en) * 2017-11-30 2020-06-05 维沃移动通信有限公司 Data cleaning method of mobile terminal and mobile terminal
CN108255930A (en) * 2017-11-30 2018-07-06 维沃移动通信有限公司 The data clearing method and mobile terminal of a kind of mobile terminal
CN108052594B (en) * 2017-12-11 2021-09-24 深圳创维-Rgb电子有限公司 Android-based garbage processing method and device and computer-readable storage medium
CN108052594A (en) * 2017-12-11 2018-05-18 深圳创维-Rgb电子有限公司 Waste disposal method, device and computer readable storage medium based on Android
CN109344128A (en) * 2018-10-31 2019-02-15 中国银行股份有限公司 A kind of history file method for cleaning and device based on ZOS platform
CN111752896A (en) * 2019-03-26 2020-10-09 青岛海信移动通信技术股份有限公司 Method and device for cleaning junk files in mobile terminal and mobile terminal
CN112241395A (en) * 2019-07-17 2021-01-19 腾讯科技(深圳)有限公司 Method and device for cleaning application program file, terminal equipment and storage medium
CN112241395B (en) * 2019-07-17 2024-04-23 腾讯科技(深圳)有限公司 Application program file cleaning method and device, terminal equipment and storage medium
CN110543451A (en) * 2019-07-30 2019-12-06 华为技术有限公司 Method and device for efficiently cleaning equipment files
CN112199336A (en) * 2020-09-29 2021-01-08 珠海豹好玩科技有限公司 Method and device for cleaning junk files in Linux system

Also Published As

Publication number Publication date
CN104156414B (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN104156414A (en) Terminal, device and method for clearing junk files
CN102521031B (en) Management method of preset application programs of mobile terminal and mobile terminal
CN105676993A (en) Method and device for saving electric quantity and electronic equipment
CN103518191A (en) Upgrade method, intelligent terminal and upgrade system
CN103886059A (en) Method and device for cleaning up files
CN104267980A (en) Software score display method, terminal, data server and system
CN104199706A (en) Firmware upgrade method and device for eMMC
CN104035800A (en) Incremental packet generation method and device, version upgrade method and device, and version upgrade system
CN104123199A (en) Method and device for recovering application program and mobile terminal
CN104317623B (en) The management method of the preset application program of mobile terminal and mobile terminal
CN105224574A (en) Method and device for automatically identifying junk files
CN105068819A (en) Application calling method and device and terminal
CN104346202A (en) Setting method and device of terminal application program and terminal
CN104182330A (en) Application recommendation method and device and terminal
CN104021159A (en) Client file cleaning method and device
CN104216719A (en) Method and device for updating android system
CN103838843A (en) File processing method and electronic equipment
CN105117265A (en) File upgrading method and device and terminal
CN105550007A (en) Control method and device for mobile terminal and mobile terminal
CN104133701A (en) Application installation method and device
CN105472118A (en) Method and device for delaying information sending of terminal and mobile terminal
CN104077053A (en) Terminal information operating method and device and mobile terminal
CN104182532A (en) Terminal file cleaning method and device and terminal
CN104166609A (en) Computer hardware device repairing method and device
CN104965733A (en) Method and system for disabling/stopping applications in batches

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181205

Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Seal Interest Technology Co., Ltd.

Address before: 519070, six level 601F, 10 main building, science and technology road, Tangjia Bay Town, Zhuhai, Guangdong.

Patentee before: Zhuhai Juntian Electronic Technology Co.,Ltd.