CN104156414B - A kind of method for cleaning of garbage files, device and terminal - Google Patents

A kind of method for cleaning of garbage files, device and terminal Download PDF

Info

Publication number
CN104156414B
CN104156414B CN201410371217.3A CN201410371217A CN104156414B CN 104156414 B CN104156414 B CN 104156414B CN 201410371217 A CN201410371217 A CN 201410371217A CN 104156414 B CN104156414 B CN 104156414B
Authority
CN
China
Prior art keywords
application program
garbage files
pending application
cleaning
pending
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
CN201410371217.3A
Other languages
Chinese (zh)
Other versions
CN104156414A (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

The embodiment of the invention discloses a kind of method for cleaning of garbage files, including:When receiving the operational order to the progress garbage files scanning of pending application program, cleaning garbage files Rule Information corresponding to the pending application program is obtained;The installation directory of the pending application program is obtained, the file that scanning matches with the cleaning garbage files Rule Information under the installation directory;It is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described.The embodiment of the invention also discloses a kind of device and terminal.Using the present invention, can by specifying pending application program be scanned cleaning garbage files, can more accurate quick cleaning garbage files, discharge more memory spaces, improve user experience.

Description

A kind of method for cleaning of garbage files, device and terminal
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for cleaning of garbage files, device and terminal.
Background technology
With the development of science and technology, people become increasingly dependent on to intelligent terminals such as computer, mobile phones in daily life, right The requirement of terminal and the speed of service of application also more and more higher.But terminal often produces greatly in use for some time The garbage files of amount, and a large amount of memory spaces of these garbage files meeting occupied terminal, cause terminal card machine occur, ran slow Situation, have impact on normal use of the user to other useful files.
In order to effectively improve the speed of service of terminal, we need to be cleared up garbage files caused by terminal, released Put more memory spaces so that the not remaining garbage files of the memory space of terminal.In the prior art, garbage-cleaning application software is led to It is often that garbage files are identified by the system and popular software of end of scan, and is cleared up, and answers what some were of little use With software, or online game etc., garbage-cleaning application software is not scanned cleaning.It is but soft in the application that these are of little use In part, or online game, a large amount of garbage files can be generally also produced.Such as:Most online game all can be irregular It is updated, produces the substantial amounts of renewal garbage files such as patch and ephemeral data file, and with the quick hair of online game Exhibition, games volume is increasing, and caused renewal patch and temporary file are more and more, and this causes garbage files to take eventually The memory space at end is increasing, in the course of time, it will causes system operation slow, influences Consumer's Experience.Also, if user enters When row deletes garbage files described above manually, user may be caused due to can not accurately understand the position of garbage files storage Delete by mistake, cause program can not normal operation.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of method for cleaning of garbage files, device and Terminal.Can by specifying pending application program be scanned cleaning garbage files, can more accurate quick cleaning rubbish text Part, more memory spaces are discharged, improve user experience.
First aspect of the embodiment of the present invention provides a kind of method for cleaning of garbage files, including:
When receive to pending application program carry out garbage files scanning operational order when, obtain it is described it is pending should The cleaning garbage files Rule Information corresponding to program;
The installation directory of the pending application program is obtained, is scanned under the installation directory clear with the garbage files The file that reason Rule Information matches;
It is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described.
Wherein, include before cleaning garbage files Rule Information corresponding to the acquisition pending application program:
Judge whether terminal installs the pending application program;
If so, perform cleaning garbage files Rule Information step corresponding to the acquisition pending application program.
Wherein, it is described to judge whether terminal is installed the pending application program and included:
Preset application features storehouse is obtained, the application features storehouse includes the terminal and currently all installed The characteristic information of application program;
The characteristic information of the pending application program is obtained, whether inquired about in the application features storehouse has and institute State the characteristic information that the characteristic information of pending application program matches.
Wherein, the application features storehouse also includes each described having installed registration table corresponding to application program;
The installation directory for obtaining the pending application program includes:
Registration table corresponding to the pending application program is obtained in the application features storehouse;
The installation directory of the application program is obtained according to the registration table.
Wherein, the installation directory for obtaining the pending application program also includes:
Obtain the preset configuration file of the pending application program, according to the configuration file obtain it is described it is pending should With the installation directory of program.
Wherein, include before cleaning garbage files Rule Information corresponding to the acquisition pending application program:
When the pending application program launching, the startup path of the pending application program is recorded, according to described Start the configuration file of pending application program described in coordinates measurement.
Wherein, the cleaning garbage files Rule Information includes:
Store path, the last access time of application program and the files classes of garbage files of the garbage files of application program Type is at least one.
Wherein, it is described to be defined as the file to match with the cleaning garbage files Rule Information before garbage files also Including:
Obtain terminal current time;
Last access time of the pending application program included according to the cleaning garbage files Rule Information and described Terminal current time, calculate the time between the last access time of the pending application program and the terminal current time Spacing value;
Judge whether the time interval value is more than or equal to threshold value;
The file to match with the cleaning garbage files Rule Information is defined as garbage files step if so, performing.
Wherein, it is described to be defined as wrapping after garbage files by the file to match with the cleaning garbage files Rule Information Include:
When receiving the operational order that pair garbage files determined are deleted, the garbage files of the determination are deleted.
Wherein, the pending application program includes:Online game application program.
Second aspect of the embodiment of the present invention provides a kind of device, and described device includes:
First acquisition unit, the operational order that garbage files scanning is carried out to pending application program is received for working as When, obtain cleaning garbage files Rule Information corresponding to the pending application program;
Matching unit is obtained, for obtaining the installation directory of the pending application program, is swept under the installation directory Retouch the file to match with the cleaning garbage files Rule Information;
Determining unit, for being defined as rubbish text with the file that the cleaning garbage files Rule Information matches by described Part.
Wherein, described device includes:
First judging unit, whether the pending application program is installed for judgment means;
The first acquisition unit is specifically used for, when first judging unit judges that described device is waited to locate described in being provided with Application program is managed, obtains cleaning garbage files Rule Information corresponding to the pending application program
Wherein, first judging unit includes:
Subelement is obtained, for obtaining preset application features storehouse, the application features storehouse includes the dress Put the current characteristic information for all having installed application program;
Subelement is inquired about, for obtaining the characteristic information of the pending application program, in the application features storehouse Whether middle inquiry has the characteristic information that the characteristic information with the pending application program matches.
Wherein, the application features storehouse also includes each described having installed registration table corresponding to application program;
The acquisition matching unit is specifically used for,
Registration table corresponding to the pending application program is obtained in the application features storehouse;
The installation directory of the application program is obtained according to the registration table.
Wherein, it is described acquisition matching unit also particularly useful for,
Obtain the preset configuration file of the pending application program, according to the configuration file obtain it is described it is pending should With the installation directory of program.
Wherein, described device includes:
Recording unit, for when the pending application program launching, recording the startup of the pending application program Path, according to the configuration file of pending application program described in the startup coordinates measurement.
Wherein, the cleaning garbage files Rule Information includes:
Store path, the last access time of application program and the files classes of garbage files of the garbage files of application program Type is at least one.
Wherein, described device also includes:
Second acquisition unit, for acquisition device current time;
Computing unit, for the last visit of the pending application program included according to the cleaning garbage files Rule Information Ask time and described device current time, when calculating last access time and the current described device of the pending application program Between between time interval value;
Second judging unit, for judging whether the time interval value is more than or equal to threshold value;
The determining unit is specifically used for, when second judging unit judges that the time interval value is more than or equal to threshold During value, it is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described.
Wherein, described device includes:
Unit is deleted, for when receiving the operational order that pair garbage files determined are deleted, deleting described true Fixed garbage files.
Wherein, the pending application program includes:Online game application program.
The third aspect of the embodiment of the present invention provides a kind of terminal, includes the one of the offer of embodiments of the present invention second aspect Any one of kind device.
Implement the embodiment of the present invention, have the advantages that:
In the method for cleaning of the garbage files described by the embodiment of the present invention, pending application program is entered when receiving During the operational order of row garbage files scanning, cleaning garbage files Rule Information corresponding to the pending application program is obtained, The installation directory of the pending application program is obtained again, scanning and cleaning garbage files rule under the installation directory The file of information match, finally it is defined as rubbish text with the file that the cleaning garbage files Rule Information matches by described Part, this cause user can by specifying pending application program be scanned cleaning garbage files, can more accurate quick it is clear Garbage files are managed, discharge more memory spaces, improve terminal capabilities and user experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for cleaning for garbage files that first embodiment of the invention provides;
Fig. 2 is a kind of schematic flow sheet of the method for cleaning for garbage files that second embodiment of the invention provides;
Fig. 3 is a kind of structure chart for device that third embodiment of the invention provides;
Fig. 4 is a kind of structure chart for device that fourth embodiment of the invention provides.
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 carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
In the embodiment of the present invention, terminal can be the intelligent terminals such as computer, notebook mobile phone.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow sheet of the method for cleaning of garbage files provided in an embodiment of the present invention, In embodiments of the present invention, this method comprises the following steps:
S100, when receiving the operational order to the progress garbage files scanning of pending application program, treated described in acquisition Handle cleaning garbage files Rule Information corresponding to application program.
In embodiments of the present invention, the operating system of terminal can be the operating system of Windows series, or other behaviour Make system, such as Linux, Android and Ios etc..
In embodiments of the present invention, before the operation to the progress garbage files scanning of pending application program is received When, user can start the garbage files scan function of terminal, and after terminal, which receives, starts garbage files scan function, terminal can By the identifier of at least one application program for carrying out garbage files scanning of interface display, identifier can such as application program Icon, the words identification of application program or the ID etc. of application program.User can pass through the mark of the application program of interface display Symbol carries out selecting pending application program and by click or the identifier of the pending application program of touch-control, so as to be sent out to terminal Send the operational order that garbage files scanning is carried out to pending application program.Wherein, terminal passes through at least one of interface display It is preset that the identifier that the application program of garbage files scanning can be carried out can be that developer is carried out, and developer can will be existing The identifier that garbage-cleaning application program can not be scanned the software of cleaning is preset on interface.When user need to be to some application When program is scanned garbage files, it is pending that user can carry out selection confirmation according to the identifier of the application program of interface display Application program, so as to which terminal is to receive the operational order that garbage files scanning is carried out to pending application program.Certainly, develop Identifier corresponding to other conventional application software can be also arranged on interface by personnel, be not intended to be limited in any herein.Further , developer can carry out irregular renewal by the identifier that network is shown to terminal interface.
In embodiments of the present invention, refer to when terminal receives the operation to the progress garbage files scanning of pending application program When making, terminal can determine whether to have installed the pending application program selected by user.Wherein, terminal is by obtaining preset answer Judged whether to have installed the pending application program selected by user with performance of program storehouse.Preferably, preset application Performance of program storehouse can include the characteristic information of the current all mounted application program of terminal, and terminal can be in startup optimization The characteristic information of the current all mounted application program of application program can be obtained, and works as and detects that new software is installed Or during unloading, application features storehouse may be updated.Further, after terminal gets preset application features storehouse, eventually End can obtain the characteristic information of pending application program, and inquire about in application features storehouse whether with pending application program Characteristic information matching characteristic information, when the characteristic information not matched with the characteristic information of pending application program, end End stops being scanned the garbage files of pending application program.Wherein, characteristic information can be used for identification application, special Reference breath can be ID, application program description information of application program etc..
In embodiments of the present invention, inquire about to have in application features storehouse when terminal and believe with the pending feature using journey During the characteristic information of manner of breathing matching, terminal obtains cleaning garbage files Rule Information corresponding to pending application program.Wherein, rubbish Rubbish file clean-up Rule Information includes the store path of garbage files, the last access time of application program and the rubbish of application program The file type of rubbish file.Wherein, the file type of the store path of garbage files and garbage files can be carried out by developer It is preset and store in the terminal, and can irregularly it be updated by network, also, startup that terminal can be to application program and pass Close and be monitored, and record ShiShimonoseki after closing application program is monitored and close the time, then the pass for the application program that terminal is recorded Close the last access time that the time is application program.
Optionally, as one embodiment of the present invention, cleaning garbage files application program can be pre-set in terminal, The execution operating procedure of above terminal can be the execution operating procedure of cleaning garbage files application program.
S101, the installation directory of the pending application program is obtained, scanning and the rubbish under the installation directory The file that file clean-up Rule Information matches.
In embodiments of the present invention, when terminal installs application program, the registration table of application program can be created and be stored in In application features storehouse or in other storage locations of terminal.Terminal obtain pending application program installation directory it Before, pending applications registry can be obtained in application features storehouse.When terminal gets pending application program After registration table, the installation directory of pending application program can be obtained according to registration table, and in the installation mesh of pending application program The file that the lower scanning of record cleaning garbage files Rule Information corresponding with pending application file is matched.
In a particular application, can be such as:When " heroic alliance " online game is installed, the registration table of establishment can be such as:
[HKEY_LOCAL_MACHINE\SOFTWARE\Tencent\LOL]
" InstallPath "=" c:Game hero alliance "
Terminal can obtain installation directory by the InstallPath for the registration table for obtaining above-mentioned establishment, and then according to The installation directory of acquisition, the file matched with cleaning garbage files Rule Information is scanned under installation directory.Cleaning garbage files The garbage files path that Rule Information includes can be:Under installation directory TCLS patchs sub-folders, cleaning garbage files The garbage files type that Rule Information includes can be LOL_*.exe, thus when terminal under installation directory TCLS patchs When scanning is to renewal patch file LOL_*.exe files under file, it may be determined that LOL_*.exe files are to apply journey with pending The file that cleaning garbage files Rule Information corresponding to sequence matches.
Further, for being partly not required to install, it is only necessary to the application program that decompression can be run, due to these applications Program will not create the registry entry for including installation directory in registration table, and terminal can be actuated for these application programs Monitoring.When application program launching, terminal records the startup path of application program, the description information of application program and using journey Title of sequence etc..And configuration file is generated according to the information of acquisition, the application program that configuration file carried terminal is recorded opens The description information of dynamic path application program and the title of application program etc..Therefore when terminal is obtaining the installation of pending application program Before catalogue, the registration table of pending application program can be obtained in application features storehouse, when terminal gets pending answer During with but obtaining the installation directory less than pending application program after the registration table of program, terminal can obtain pending application program Corresponding configuration file, the installation directory of pending application program is obtained according to configuration file, and in pending application program Installation directory under the file that is matched of corresponding with the pending application file cleaning garbage files Rule Information of scanning.
In a particular application, can be such as:" dreamlike Journey to the West " game is green edition game, can be run after decompression, without peace Dress, the registry entry for including installation directory will not be created in re-registration table, therefore in " dreamlike Journey to the West " starts, under terminal is recordable The startup path of " dreamlike Journey to the West " and " dreamlike Journey to the West " title, such as:“c:Game illusion Journey to the West ", therefore installation directory can be “c:Game illusion Journey to the West ".Further, the file matched with cleaning garbage files Rule Information is scanned under installation directory.Rubbish The garbage files type that rubbish file clean-up Rule Information includes can be patch*_xy, therefore be arrived more when being scanned under installation directory During new patch file patch*_xy files, it may be determined that patch*_xy files are garbage files corresponding with pending application program The file of cleaning rule information matches.
S102, it is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described.
In embodiments of the present invention, after terminal scanning gets the file matched with cleaning garbage files rule, eventually End can also judge the text of scanning acquisition according to the last access time for the application program that cleaning garbage files Rule Information includes Whether part is garbage files.Specifically, terminal obtains the current time, it is clear according to garbage files corresponding to pending application program File last access time included by reason Rule Information works as to calculate the last access time of pending application program and terminal Time interval value between the preceding time, such as:Current time is T0, and the last access time of pending application program is T, then when Between spacing value f=T-T0.When time interval value is more than or equal to threshold value, confirm that the file that scanning obtains is garbage files.Its In, threshold value could be arranged to 7 days or other times section, not be limited herein.
Further, after the file that terminal check and cleaning garbage files Rule Information match is garbage files, eventually End can be shown, to remind user to be deleted the file of display, so as to discharge the more memory spaces of terminal.
In the method for cleaning of the garbage files described by the embodiment of the present invention, pending application program is entered when receiving During the operational order of row garbage files scanning, cleaning garbage files Rule Information corresponding to the pending application program is obtained, The installation directory of the pending application program is obtained again, scanning and cleaning garbage files rule under the installation directory The file of information match, the file to match with the cleaning garbage files Rule Information is finally defined as garbage files, This cause user can by specifying pending application program be scanned cleaning garbage files, can more accurate quick cleaning rubbish Rubbish file, more memory spaces are discharged, improve terminal capabilities and user experience.
Fig. 2 is referred to, Fig. 2 is a kind of schematic flow sheet of the method for cleaning of garbage files provided in an embodiment of the present invention, In embodiments of the present invention, this method comprises the following steps:
S200 waits to locate when receiving the operational order to the progress garbage files scanning of pending application program described in acquisition Manage cleaning garbage files Rule Information corresponding to application program.
S201, the installation directory of the pending application program is obtained, scanning and the rubbish under the installation directory The file of file clean-up Rule Information matching;
S202, the file matched with the cleaning garbage files Rule Information is defined as garbage files and shown Show.
S203, when receiving the operational order that pair garbage files determined are deleted, delete the rubbish of the determination File.
In embodiments of the present invention, after the garbage files that terminal is got by interface display scanning, terminal can be simultaneously Display whether the button deleted.When user, which clicks on, deletes button, terminal receives pair garbage files determined and deleted The operational order removed, the garbage files that terminal-pair determines are deleted.So as to release the memory space shared by garbage files.
Wherein, step S200, step S201 and step S202 may refer to the step S100 of above example, step S101 With step S102, no longer repeated herein.
In the method for cleaning of the garbage files described by the embodiment of the present invention, pending application program is entered when receiving During the operational order of row garbage files scanning, cleaning garbage files Rule Information corresponding to the pending application program is obtained, The installation directory of the pending application program is obtained again, scanning and cleaning garbage files rule under the installation directory The file of information match, the file to match with the cleaning garbage files Rule Information is finally defined as garbage files, This cause user can by specifying pending application program be scanned cleaning garbage files, can more accurate quick cleaning rubbish Rubbish file, more memory spaces are discharged, improve terminal capabilities and user experience.
For ease of preferably implementing the such scheme of the embodiment of the present invention, it is also provided below and implements such scheme for coordinating Relevant apparatus.
Fig. 3 is referred to, Fig. 3 is a kind of structure chart of device provided in an embodiment of the present invention, in embodiments of the present invention, should Device includes:
First acquisition unit 100, the operation for carrying out garbage files scanning to pending application program for that ought receive refer to When making, cleaning garbage files Rule Information corresponding to the pending application program is obtained.
Matching unit 200 is obtained, for obtaining the installation directory of the pending application program, under the installation directory The file that scanning matches with the cleaning garbage files Rule Information.
Determining unit 300, for being defined as rubbish with the file that the cleaning garbage files Rule Information matches by described Rubbish file.
Wherein, described device includes:
First judging unit 400, whether the pending application program is installed for judgment means;
The first acquisition unit 100 is specifically used for, and when first judging unit, to judge that described device is provided with described Pending application program, obtain cleaning garbage files Rule Information corresponding to the pending application program
Wherein, the acquisition matching unit 200 is specifically used for,
Registration table corresponding to the pending application program is obtained in the application features storehouse;
The installation directory of the application program is obtained according to the registration table.
Wherein, it is described acquisition matching unit 200 also particularly useful for,
Obtain the preset configuration file of the pending application program, according to the configuration file obtain it is described it is pending should With the installation directory of program.
Wherein, described device includes:
Recording unit 500, for when the pending application program launching, recording opening for the pending application program Dynamic path, according to the configuration file of pending application program described in the startup coordinates measurement.
Wherein, described device also includes:
Second acquisition unit 600, for acquisition device current time;
Computing unit 700, for the pending application program that is included according to the cleaning garbage files Rule Information most Access time and described device current time afterwards, the last access time and described device for calculating the pending application program work as Time interval value between the preceding time;
Second judging unit 800, for judging whether the time interval value is more than or equal to threshold value;
The determining unit 300 is specifically used for, when second judging unit 600 judge the time interval value be more than or During equal to threshold value, it is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described.
Wherein, described device includes:
Unit 900 is deleted, for when receiving pair the operational order that the garbage files determined are deleted, described in deletion The garbage files of determination.
It is understood that the function of each functional module of the device of the present embodiment can be according in above method embodiment Method implements, and its specific implementation process is referred to the associated description of above method embodiment, no longer repeated herein.
In the device described by the embodiment of the present invention, garbage files scanning is carried out to pending application program when receiving Operational order when, obtain cleaning garbage files Rule Information corresponding to the pending application program, then obtain and described wait to locate The installation directory of application program is managed, the text that scanning matches with the cleaning garbage files Rule Information under the installation directory Part, finally it is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described, this causes user Can by specifying pending application program be scanned cleaning garbage files, can more accurate quick cleaning garbage files, release More memory spaces are put, improve terminal capabilities and user experience.
Fig. 4 is referred to, Fig. 4 is a kind of structure chart of device provided in an embodiment of the present invention, in embodiments of the present invention, should Device includes:First acquisition unit 100, obtain matching unit 200, determining unit 300, the first judging unit 400, recording unit 500th, second acquisition unit 600, computing unit 700, the second judging unit 800 and deletion unit 900.
Wherein, first judging unit includes:
Subelement 10 is obtained, for obtaining preset application features storehouse, the application features storehouse includes described The current characteristic information for all having installed application program of device.
Subelement 20 is inquired about, for obtaining the characteristic information of the pending application program, in the application features The characteristic information for whether having the characteristic information with the pending application program to match is inquired about in storehouse.
It is understood that the function of each functional module of the device of the present embodiment can be according in above method embodiment Method implements, and its specific implementation process is referred to the associated description of above method embodiment, no longer repeated herein.
In the device described by the embodiment of the present invention, garbage files scanning is carried out to pending application program when receiving Operational order when, obtain cleaning garbage files Rule Information corresponding to the pending application program, then obtain and described wait to locate The installation directory of application program is managed, the text that scanning matches with the cleaning garbage files Rule Information under the installation directory Part, finally it is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described, this causes user Can by specifying pending application program be scanned cleaning garbage files, can more accurate quick cleaning garbage files, release More memory spaces are put, improve terminal capabilities and user experience.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (17)

  1. A kind of 1. cleaning garbage files method, it is characterised in that methods described includes:
    When pending application program launching, record the pending application program starts path, the description letter of application program The title of breath and application program, according to startup path, the description information of the application program and the name of the application program Claim the configuration file for generating the pending application program, wherein, the pending application program includes being not required to be installed, only The application program that can be run need to be decompressed;
    When receive the operational order of garbage files scanning is carried out to pending application program when, obtain and described pending apply journey Cleaning garbage files Rule Information corresponding to sequence;
    The installation directory of the pending application program is obtained, scanning and cleaning garbage files rule under the installation directory The then file of information match, wherein, the installation directory for obtaining the pending application program includes:In preset application The registration table of the pending application program is obtained in performance of program storehouse, when terminal gets the note of the pending application program When but obtaining the installation directory less than pending application program after volume table, the preset configuration text of the pending application program is obtained Part, the installation directory of the pending application program is obtained according to the configuration file, wherein, the application features storehouse bag Include the current characteristic information for all having installed application program of the terminal;
    It is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described.
  2. 2. the method as described in claim 1, it is characterised in that described to obtain rubbish text corresponding to the pending application program Include before part cleaning rule information:
    Judge whether terminal installs the pending application program;
    If so, perform cleaning garbage files Rule Information step corresponding to the acquisition pending application program.
  3. 3. method as claimed in claim 2, it is characterised in that described to judge whether terminal installs the pending application program Including:
    Obtain preset application features storehouse;
    The characteristic information of the pending application program is obtained, inquires about whether to have in the application features storehouse and is treated with described The characteristic information that the characteristic information of processing application program matches.
  4. 4. method as claimed in claim 3, it is characterised in that the application features storehouse also includes each described installed should The registration table corresponding to program;
    The installation directory for obtaining the pending application program includes:
    Registration table corresponding to the pending application program is obtained in the application features storehouse;
    The installation directory of the application program is obtained according to the registration table.
  5. 5. method as claimed in claim 4, it is characterised in that the cleaning garbage files Rule Information includes:
    The file type of the store path of the garbage files of application program, the last access time of application program and garbage files is extremely Few one kind.
  6. 6. method as claimed in claim 5, it is characterised in that described to match with the cleaning garbage files Rule Information File be defined as also including before garbage files:
    Obtain terminal current time;
    The last access time of the pending application program included according to the cleaning garbage files Rule Information and the terminal Current time, calculate the time interval between the last access time of the pending application program and the terminal current time Value;
    Judge whether the time interval value is more than or equal to threshold value;
    The file to match with the cleaning garbage files Rule Information is defined as garbage files step if so, performing.
  7. 7. method as claimed in claim 6, it is characterised in that described to match with the cleaning garbage files Rule Information File be defined as including after garbage files:
    When receiving the operational order that pair garbage files determined are deleted, the garbage files of the determination are deleted.
  8. 8. method as claimed in claim 7, it is characterised in that the pending application program includes:Online game application journey Sequence.
  9. 9. a kind of cleaning garbage files device, it is characterised in that described device includes:
    Recording unit, for when pending application program launching, recording startup path, the application of the pending application program The description information of program and the title of application program, according to the startup path, the description information of the application program and described The title of application program generates the configuration file of the pending application program, wherein, the pending application program is included not It need to be installed, it is only necessary to the application program that decompression can be run;
    First acquisition unit, for when receiving the operational order to the progress garbage files scanning of pending application program, obtaining Take cleaning garbage files Rule Information corresponding to the pending application program;
    Obtain matching unit, for obtaining the installation directory of the pending application program, under the installation directory scanning with The file that the cleaning garbage files Rule Information matches, wherein, the acquisition matching unit is additionally operable to:In preset application The registration table of the pending application program is obtained in performance of program storehouse, when terminal gets the note of the pending application program When but obtaining the installation directory less than pending application program after volume table, the preset configuration text of the pending application program is obtained Part, the installation directory of the pending application program is obtained according to the configuration file, wherein, the application features storehouse bag Include the current characteristic information for all having installed application program of the terminal;
    Determining unit, for being defined as garbage files with the file that the cleaning garbage files Rule Information matches by described.
  10. 10. device as claimed in claim 9, it is characterised in that described device includes:
    First judging unit, whether the pending application program is installed for judgment means;
    The first acquisition unit is specifically used for, when first judging unit judge described device be provided with it is described it is pending should With program, cleaning garbage files Rule Information corresponding to the pending application program is obtained.
  11. 11. device as claimed in claim 10, it is characterised in that first judging unit includes:
    Subelement is obtained, for obtaining preset application features storehouse;
    Subelement is inquired about, for obtaining the characteristic information of the pending application program, is looked into the application features storehouse Whether inquiry has the characteristic information that the characteristic information with the pending application program matches.
  12. 12. device as claimed in claim 11, it is characterised in that the application features storehouse also includes each described installed Registration table corresponding to application program;
    The acquisition matching unit is specifically used for,
    Registration table corresponding to the pending application program is obtained in the application features storehouse;
    The installation directory of the application program is obtained according to the registration table.
  13. 13. device as claimed in claim 12, it is characterised in that the cleaning garbage files Rule Information includes:
    The file type of the store path of the garbage files of application program, the last access time of application program and garbage files is extremely Few one kind.
  14. 14. device as claimed in claim 13, it is characterised in that described device also includes:
    Second acquisition unit, for acquisition device current time;
    Computing unit, during last access for the pending application program included according to the cleaning garbage files Rule Information Between and described device current time, calculate the pending application program last access time and described device current time it Between time interval value;
    Second judging unit, for judging whether the time interval value is more than or equal to threshold value;
    The determining unit is specifically used for, when second judging unit judges that the time interval value is more than or equal to threshold value When, it is defined as garbage files with the file that the cleaning garbage files Rule Information matches by described.
  15. 15. device as claimed in claim 14, it is characterised in that described device includes:
    Unit is deleted, for when receiving the operational order that pair garbage files determined are deleted, deleting the determination Garbage files.
  16. 16. device as claimed in claim 15, it is characterised in that the pending application program includes:Online game application Program.
  17. 17. a kind of terminal, it is characterised in that the terminal includes the device as described in claim 9-16 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 CN104156414A (en) 2014-11-19
CN104156414B true 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)

Families Citing this family (25)

* 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
CN106293783B (en) * 2015-05-15 2022-06-03 腾讯科技(深圳)有限公司 Installation package cleaning method and equipment
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
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
CN105262810B (en) * 2015-09-29 2019-04-26 北京金山安全软件有限公司 Cloud backup method and device for picture and electronic equipment
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
CN105426401B (en) * 2015-10-30 2019-06-04 成都狮之吼科技有限公司 A kind of method and system for the garbage files that cleaning application program generates
CN107203552B (en) 2016-03-17 2021-12-28 阿里巴巴集团控股有限公司 Garbage recovery method and device
CN105893600A (en) * 2016-04-20 2016-08-24 乐视控股(北京)有限公司 Method and device for cleaning up useless files based on mobile terminal
CN105975400B (en) * 2016-04-27 2019-06-04 北京金山安全软件有限公司 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
CN106874366B (en) * 2016-12-30 2020-06-02 腾讯科技(深圳)有限公司 Software information processing method and device
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
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
CN108052594B (en) * 2017-12-11 2021-09-24 深圳创维-Rgb电子有限公司 Android-based garbage processing method and device and computer-readable storage medium
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
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

Family Cites Families (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
CN103473163B (en) * 2013-09-11 2016-10-26 腾讯科技(深圳)有限公司 application program detection method and device
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103927198B (en) * 2014-03-19 2017-05-31 北京奇虎科技有限公司 A kind of software method for cleaning and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3.2.1配置文件;Stewart Fraser,Steven Livingstone著;毛尧飞,崔伟译;《C#XML入门经典》;清华大学出版社;20031130;第95页 *

Also Published As

Publication number Publication date
CN104156414A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104156414B (en) A kind of method for cleaning of garbage files, device and terminal
CN104461858B (en) software compatibility pre-testing method and system
CN104317649B (en) Processing method and device of terminal application program APP and terminal
CN107911487A (en) Information-pushing method, device, server and readable storage medium storing program for executing
CN106096425A (en) System permission starting method, device and equipment
CN104408201B (en) The method for cleaning and device of garbage files
CN103136027B (en) Immediate updating device and immediate updating method
CN104267980B (en) Software score display method, terminal, data server and system
CN106227494A (en) A kind of application operating method and terminal
CN106919427A (en) A kind of method to set up, setting device and electronic equipment
CN106095624A (en) Data recovery method and device, terminal equipment and server
CN110532059B (en) Quota management method and device for K8s cluster management software
CN108768821A (en) Information-pushing method, device, server and computer-readable medium
CN107391308A (en) Data processing method and device, terminal and computer-readable recording medium
CN107844352A (en) A kind of application interface collocation method and device
CN106127009A (en) The display packing of a kind of icon and terminal
CN106254404A (en) Application software authority recommends methods, devices and systems
CN105867962A (en) System upgrading method and device
CN103559098B (en) Smart card test number control, Apparatus and system
CN104063129A (en) APP (application tool) classification method and mobile terminal
CN108064038A (en) Method, electronic device and the readable storage medium storing program for executing of unified custom terminal software version
CN105893471A (en) Data processing method and electronic equipment
CN107357530A (en) A kind of method to set up and device for OpenStack cloud hard disks
CN108170550A (en) The method, apparatus and equipment of abnormality processing
CN107329763A (en) Application program interface display method and device, electronic equipment and storage medium

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.