CN104536792A - Method and device for eliminating application program residual files - Google Patents
Method and device for eliminating application program residual files Download PDFInfo
- Publication number
- CN104536792A CN104536792A CN201410850918.5A CN201410850918A CN104536792A CN 104536792 A CN104536792 A CN 104536792A CN 201410850918 A CN201410850918 A CN 201410850918A CN 104536792 A CN104536792 A CN 104536792A
- Authority
- CN
- China
- Prior art keywords
- file
- target directory
- application program
- described target
- directory
- 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.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and device for eliminating application program residual files. The method comprises the steps that the corresponding relation of an application program and an application program installing directory is obtained; a target directory is scanned, and an application program corresponding to the target directory does not exist in the corresponding relation; according to the directory structure of the target directory and the file attributes of files included in the target directory, whether the target directory is the application program residual files is judged; and if yes, the target directory is eliminated. According to the method, by obtaining the target directory, whether the target directory is the application program residual files is judged through the directory structure of the direct directory and the file attributes of the files included in the target directory, and if yes, the target directory is eliminated. The residual files of uninstalled application programs are eliminated, the occupied equipment storing space is greatly reduced, and user experience is improved.
Description
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of method and the device of removing application program Stub File.
Background technology
At present, user in order to meet oneself the demand such as social activity, amusement can some terminal devices such as computer, mobile phone etc. install some application programs.Under normal circumstances, when those programs no longer need, user can unload according to the demand of oneself.
Under normal circumstances, when having the unloading item of this application program in registration table, uninstall or the self-contained Uninstaller of program is adopted to unload.But when being unloaded by uninstall or the self-contained Uninstaller of program, often some installation files, shortcut and other guide etc. can be remained after unloading.The disk space of residual file wastes both user and affect the reaction velocity etc. of the system of user.Therefore, user must uninstall those and carry out unloading cleaning, to guarantee the storage space that can not take too many terminal device without the Stub File of the application program of unloading item in registration table.
Summary of the invention
For defect of the prior art, the invention provides a kind of method and the device of removing application program Stub File, achieving the cleaning to uninstalling without the Stub File of the application program of unloading item in registration table, decreasing taking of device memory.
First aspect, the invention provides a kind of device removing application program Stub File, comprising:
First acquisition module, for obtaining the corresponding relation of application program and application program installation directory;
, for scanning target directory, in described corresponding relation, there is not the application program corresponding with described target directory in scan module;
First judge module, for according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file, judges whether described target directory is application program Stub File;
Remove module, for when described first judge module judges that described target directory is application program Stub File, remove described target directory.
Optionally, described first judge module, specifically for:
The file attribute of the bibliographic structure of described target directory and described target directory institute include file is sent server, determines whether described target directory is application program Stub File to make described server according to the file attribute of the bibliographic structure of described target directory and described target directory institute include file.
Optionally, described first judge module, specifically for:
The mark of the application program that described target directory is corresponding is determined according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file;
First bibliographic structure corresponding with the mark of described application program and the first file attribute is searched in the program listing preset; Described program listing is the program listing obtained in advance to server;
The bibliographic structure of target directory and the similarity of described first bibliographic structure in acquisition equipment;
When described similarity is greater than predetermined threshold value, judge whether the file attribute of described target directory institute include file mates with described first file attribute;
When the file attribute of described target directory institute include file mates with described first file attribute, then determine that described target directory is application program Stub File.
Optionally, described device also comprises:
Whether the second judge module, before removing described target directory in described removing module, belong to according to the filename that preset rules judges in described file attribute the file retained in equipment;
Whether display module, when the filename for judging in described file attribute at described second judge module belongs to the file retained in equipment, delete the information of described target directory at the showing interface of described equipment;
Described removing module, specifically for:
Described target directory is removed according to the triggering of clear operation interface in the information that described display module is shown.
Optionally, described device also comprises:
Cleaning module, before obtaining the corresponding relation of application program and described application program installation directory at described first acquisition module, the registry entry of redundancy in cleaning registration table;
Second acquisition module, after the registry entry for redundancy in described cleaning module cleaning registration table, obtains the first registration table;
Described first acquisition module, specifically for:
According to described first registration table that described second acquisition module obtains, obtain the corresponding relation of application program and described application program installation directory;
Second aspect, present invention also offers a kind of method removing application program Stub File, comprising:
Obtain the corresponding relation of application program and application program installation directory;
, in described corresponding relation, there is not the application program corresponding with described target directory in scanning target directory;
According to the bibliographic structure of described target directory and the file attribute of described target directory institute include file, judge whether described target directory is application program Stub File;
If so, then described target directory is removed.
Optionally, the file attribute of the described bibliographic structure according to described target directory and described target directory institute include file, judges whether described target directory is application program Stub File, comprising:
The file attribute of the bibliographic structure of described target directory and described target directory institute include file is sent server, determines whether described target directory is application program Stub File to make described server according to the file attribute of the bibliographic structure of described target directory and described target directory institute include file.
Optionally, the file attribute of the described bibliographic structure according to described target directory and described target directory institute include file, judges whether described target directory is application program Stub File, comprising:
The mark of the application program that described target directory is corresponding is determined according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file;
First bibliographic structure corresponding with the mark of described application program and the first file attribute is searched in the program listing preset; Described program listing is the program listing obtained in advance to server;
The bibliographic structure of target directory and the similarity of described first bibliographic structure in acquisition equipment;
When described similarity is greater than predetermined threshold value, judge whether the file attribute of described target directory institute include file mates with described first file attribute;
When the file attribute of described target directory institute include file mates with described first file attribute, then determine that described target directory is application program Stub File.
Optionally, before the described target directory of described removing, described method also comprises:
The file retained in equipment whether is belonged to according to the filename that preset rules judges in described file attribute;
If so, then the information of described target directory whether is deleted at the showing interface of described equipment;
Correspondingly, remove described target directory, be specially:
Described target directory is removed according to the triggering of clear operation interface in information.
Optionally, before the corresponding relation of described acquisition application program and described application program installation directory, described method also comprises:
In cleaning registration table, the registry entry of redundancy, obtains the first registration table;
Accordingly, according to described first registration table, obtain the corresponding relation of application program and described application program installation directory.
As shown from the above technical solution, a kind of method and device removing application program Stub File provided by the invention, the method is by obtaining target directory, and then the file attribute of the file to be comprised by the bibliographic structure of this target directory and this target directory, judge whether this target directory is application program Stub File, if so, then this target directory is cleared up.The method is removed the application file that the application program unloaded remains, and greatly reduces taking of device memory, promotes Consumer's Experience.
In instructions of the present invention, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, to disclose and to help to understand in each inventive aspect one or more to simplify the present invention, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should not explained the following intention in reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
It will be understood by those skilled in the art that adaptively to change the module in the equipment in embodiment and they are arranged and be in one or more equipment that this embodiment is different.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit is mutually exclusive part, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the equipment of a kind of browser terminal of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme, it all should be encompassed in the middle of the scope of claim of the present invention and instructions.
Accompanying drawing explanation
The schematic flow sheet of the method for the removing application program Stub File that Fig. 1 provides for one embodiment of the invention;
The schematic flow sheet of the method for the removing application program Stub File that Fig. 2 provides for another embodiment of the present invention;
Fig. 3 is the schematic diagram that one embodiment of the invention provides the information of no removing application file;
The structural representation of the device of the removing application program Stub File that Fig. 4 provides for one embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of invention is further described.Following examples only for technical scheme of the present invention is clearly described, and can not limit the scope of the invention with this.
When installing an application program in a device, usually can carry out following operation, discharging some files, edit the registry to the catalogue of specifying, or add new registry entry etc. in registration table.The file wherein discharged is generally the file relied in application program operational process, comprises executable file, database file etc.
In the ideal case, when to an application program unloading, the All Files that this application program discharges in installation process and in use procedure all should be deleted, the registry entry added in installation process is all deleted, but when using conventional unloading manner application programs to perform unloading, residual file may be produced.
Therefore, in embodiments of the present invention, achieve the associated documents to the application program that the unloading manner of routine cannot thoroughly be disposed, remove thoroughly further, realize being described in detail to concrete technology below.
Fig. 1 shows a kind of schematic flow sheet removing the method for application program Stub File that the embodiment of the present invention provides, and as shown in Figure 1, the method for this removing application program Stub File comprises the following steps:
101, the corresponding relation of application program and described application program installation directory is obtained.
For example, according to the information of registry entry in registration table in current device, the corresponding relation of application program and application program installation directory can be obtained.
Will be understood that, application program installation directory specifically refers to that registry program installs record.
Preferably, before obtaining above-mentioned corresponding relation, can the registry entry of redundancy in registration table in cleaning equipment, obtain the first registration table; And then according to described first registration table, obtain the corresponding relation of application program in the first registration table and described application program installation directory.
102, scan target directory, in described corresponding relation, there is not the application program corresponding with described target directory;
Will be understood that, sequentially scan for the file in each region of set up applications in equipment, determine whether the file directory scanned is target directory, then can search in corresponding relation and whether have corresponding application program, if had, then can think that this file directory is not target directory, contrary, when this file directory does not exist corresponding application program in corresponding relation, can think that this file directory is target directory.
The said equipment can comprise: mobile electronic device, and as mobile phone, be certainly applicable to personal computer and other intelligent electronic devices, the present invention does not do concrete restriction to this yet.
103, according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file, judge whether described target directory is application program Stub File.
Concrete, in above-mentioned steps 102, scan target directory, in described corresponding relation, there is not the application program corresponding with described target directory; Obtain the bibliographic structure of target directory and the file attribute of described target directory institute include file.
The bibliographic structure of above-mentioned target directory can be understood as the file which type this application file exists, i.e. the structure of file, and the file attribute of this target directory institute include file can be understood as signature or the filename of Single document in this file.
For example, if the application program of A is unloaded, namely in registration table without the registry entry of the correspondence of this application program, but found in the address of this application file by the application file of this scanning: the bibliographic structure under A Gaming Zone Windows can be the type of the file under this address, such as conf file, temp file, bin file, also can be the .dll file under certain file, or be .exe file, or be the file etc. of .dll and .exe, file attribute can be understood as the address of this application file: A Gaming Zone the filename of the file file of the bottom or file signature in bibliographic structure in Windows, such as xx.exe etc.
The corresponding relation of the application program that this step can be stored by local in equipment or cloud server and this application program installation directory, according to the bibliographic structure in the bibliographic structure of this target directory and the corresponding relation of application program installation directory
Similarity judges, when similarity exceedes predetermined threshold value, the file attribute of the file comprised by this target directory again mates with the file attribute in the corresponding relation of application program installation directory, thus judges whether this target directory is application program Stub File.
104 if then remove described target directory.
Will be understood that, the object of the present embodiment removing application program Stub File mainly comprises the Stub File of the application program unloaded, because the application program unloaded is there is not registry entry in registration table, therefore carry out regular or irregular removing, to reduce taking of device memory in order to the relevant Stub File of the application program that unloaded some.
Concrete, in above-mentioned steps 103, when judging the application file remained do not removed when determining that this application file is the unloading of this application program, this residual application file is removed, to decrease taking of device memory.
Fig. 2 shows a kind of schematic flow sheet removing the method for application program Stub File that the embodiment of the present invention provides, and as shown in Figure 2, the method for this removing application program Stub File comprises the following steps:
201, clear up the registry entry of redundancy in registration table, obtain the first registration table.
Registration table is very important database in device systems, stores the information such as application program.A lot of information can be loaded in registration table when set up applications software, but all cannot delete redundancy to the information in registration table when unloading these application softwares, such as, some registry entries had nothing to do with the application program do not unloaded or some are with the file etc. of the registry entry of the sky of any fileinfo, therefore, before the application file in equipment is scanned, first clear up the registry entry of redundancy in registration table.
The methods such as the REGEDIT cleaning that in above-mentioned cleaning registration table, the registry entry of redundancy can be carried by use third party software cleaning registry entry, utilization, the present embodiment does not limit it.
202, according to described first registration table, the corresponding relation of application program and described application program installation directory is obtained.
203, scan target directory, in described corresponding relation, there is not the application program corresponding with described target directory.
Concrete above-mentioned steps also can be understood as only for the application program unloaded, and this application program is non-existent any application file in registry entry, such as the files such as installation file, shortcut, registry information.
In the present embodiment, can be regular or irregular target directory in current device to be scanned, such as: every 3 months run-downs or in the recent period unloading application program is more time run-down etc., the present embodiment does not limit the time of above-mentioned scanning.
204, the bibliographic structure of described target directory and the file attribute of described target directory institute include file is obtained.
In a particular application, when scanning this equipment file catalogue and there is not corresponding application program in corresponding relation, then think that this file directory is target directory, obtain the bibliographic structure of this target directory and the file attribute of this target directory institute include file;
Such as this application file is xx, obtain the address at this application file place: " C: Program Files new folder I download xxDownload ", can learn that the bibliographic structure of this application file is the file containing .dll and .exe unitized construction thus, above-mentioned file attribute is the file attribute of the file of this address lowermost layer, this file attribute can comprise file signature or filename, if this file attribute can be xx.exe, xx.dll etc.
205, according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file, judge whether described target directory is application program Stub File.
Concrete, above-mentioned steps 205 can comprise:
The file attribute of the bibliographic structure of described target directory and described target directory institute include file is sent server, determines whether described target directory belongs to application program Stub File to make described server according to described bibliographic structure and file attribute.
Above-mentioned server can be understood as cloud server, has the bibliographic structure corresponding about application program installation directory of magnanimity and the information of file attribute in this cloud server, and these information can be add up after user uploads when set up applications.The carrying out how obtained during the information of the present embodiment not to bibliographic structure corresponding to the application program installation directory in cloud server and file attribute limits.
Cloud server is receiving the information such as bibliographic structure corresponding to above-mentioned target directory and file attribute, undertaken mating or similarity by the information of the bibliographic structure corresponding with the application program installation directory that self stores and file attribute, determine whether target directory belongs to application program Stub File.
In another attainable mode, above-mentioned steps 205 judges whether this application file is residual application file, can also determine according to pre-set programs list in bibliographic structure corresponding to application file and file attribute and this equipment, specifically comprise not shown following steps 2051 to step 2055 in Fig. 2.
2051, the mark of the application program that described target directory is corresponding is determined according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file.
Will be understood that, determine the mark of the application program that described target directory is corresponding according to the bibliographic structure of described target directory and the file attribute of this target directory institute include file.Such as, the address at target directory place: " C: Program Files new folder I download xxDownload ", the bibliographic structure of this target directory is the file that there is which type under this address, such as: conf file, temp file, bin file, according to above-mentioned ask lower file attribute such as xx.exe, the xx.dll etc. of valency folder can determine this target directory doubtful be Stub File after xx application program unloads.
2052, in the program listing preset, first bibliographic structure corresponding with the mark of described application program and the first file attribute is searched; Described program listing is the program listing obtained in advance to server.
Concrete, this server can be understood as cloud server, cloud server can be real-time reception subscriber equipment install certain application program time bibliographic structure and file attribute, so server just defines a default program listing beyond the clouds, the bibliographic structure of application program and the information of file attribute is included in this program listing preset, in this concrete list, the bibliographic structure of application program and the information of file attribute are to which application program, can be marked with application program identification.Such as: the address at file place: " C: Program Files new folder I download xxDownload ", containing files such as conf file, temp file, bin files in the bibliographic structure of this file, file attribute is xx.exe, xx.dll, then some information relevant to this application program such as key word, Feature Words of the mark of this application file can be xx, xx can be certain application program.
Cloud server in real time or regularly can issue this program listing to equipment, and cloud server can also in real time or regularly upgrade this program listing.
The bibliographic structure of the file in this program listing, and/or the information of file attribute can be according to multiple same application domain file acquisition, choose the bibliographic structure of the maximum file of ratio, and/or file attribute is as bibliographic structure corresponding to this application file, and/or file attribute; Also can be the bibliographic structure corresponding according to multiple same application domain file, and/or the bibliographic structure that this application file determined after file attribute training is corresponding, and/or file attribute, the present embodiment is not to the bibliographic structure of the file in this program listing, and/or the acquisition of the information of file attribute limits.
2053, the bibliographic structure of target directory and the similarity of described first bibliographic structure in acquisition equipment.
First bibliographic structure of this target directory is searched by being identified in default program listing of this application file.
For example, the address at this target directory place is: " C: Program Files new folder I download xxDownload ", and the address being identified at this bibliographic structure place obtained in default program listing by xx is: " C: Program Files CommonFiles Tencent xxDownload ", obtain this address in the program listing preset: " C: Program Files Common Files Tencent xxDownload " under the structure of file, according to the address at this bibliographic structure place C: Program Files new folder I download xxDownload " under the structure of file compare.
Such as: this address in the program listing preset: " C: Program Files CommonFiles Tencent xxDownload " under comprise the files such as conf file, temp file, bin file containing the first bibliographic structure, and the address at this bibliographic structure place C: Program Files new folder I download xxDownload " under be the file of temp file and conf file containing bibliographic structure, then determine that the similarity of the bibliographic structure that this application file is corresponding and described first bibliographic structure is 70%.
The acquisition of above-mentioned bibliographic structure similarity mainly carries out word segmentation processing by folder structure or to the title of each file, and COMPREHENSIVE CALCULATING obtains.The present embodiment is not described in detail to the acquisition of this similarity, and the acquisition methods of similarity of the prior art also can be adopted to obtain.
2054, when described similarity is greater than predetermined threshold value, judge whether the file attribute of described target directory institute include file mates with described first file attribute.
The similarity of the bibliographic structure that in acquisition equipment, target directory is corresponding in above-mentioned steps 2053 and described first bibliographic structure, judge whether this similarity is greater than predetermined threshold value, this predetermined threshold value can the some values of sets itself, and the size of the similarity of this value and acquisition are judged.
Will be understood that, predetermined threshold value is less than in above-mentioned similarity, such as, the bibliographic structure that in equipment, target directory is corresponding is only containing Download file, and without this file in the bibliographic structure that in the program listing intermediate value preset, this target directory is corresponding, then think that this similarity is 0, when predetermined threshold value is 60%, then can think that this target directory is not corresponding with the file in the program listing preset, in order to avoid deleting by mistake, therefore this application file is retained, and the information that there is this target directory is sent to this equipment, determine whether to make user to retain this application file.
Contrary, determine that the similarity of the bibliographic structure that this target directory is corresponding and described first bibliographic structure is 70% above-mentioned, then this similarity is greater than predetermined threshold value 60%, therefore the file attribute of the file at this target directory place is mated with the first file attribute in the program listing preset, if be greater than the document directory structure of predetermined threshold value in this similarity under, obtain filename or the signature of Single document in the file under this bibliographic structure, such as .exe file, .dll file, .dat file etc., by the filename in the first file attribute in the filename in file attribute corresponding for the file at this target directory place or signature and default program listing or signatures match.
2055, when the file attribute of described target directory institute include file mates with described first file attribute, then determine that described target directory is application program Stub File.
Will be understood that, in above-mentioned steps 2054, if the filename in the file attribute of this target directory institute include file or signature and the filename in the first file attribute in the program listing preset or signatures match are successfully, then can determine that this target directory is application program Stub File.
If 206 described target directories are application program Stub File, then this target directory is removed.
Under special circumstances, the software of such as some chats, in use can generate the data file of some chats, some user, in order to the needs of oneself, during in order to again install this software, reduces these data files, therefore, those data files are the application file needing to retain.Therefore before above-mentioned steps 206 removes target directory, described method also comprises unshowned step 207 and step 208 in Fig. 2.
Whether the filename 207, judged in described file attribute according to preset rules belongs to the file retained in equipment.
Whether above-mentioned preset rules can for existing the file irrelevant with this application program under each application program, and/or whether the filename in file attribute described in the naming rule comprehensive descision of the filename arranged according to data file etc. belongs to the file of user's reservation.
Such as, the data file existed under playout software program can directly be deleted.But whether the filename in the data file existed in chat software program then file attribute according to the naming rule comprehensive descision of filename is belonged to the file of user's reservation.
The naming rule of above-mentioned filename can comprise by the filename of 7 ~ 10 character strings names, with the filename of special sensitive word name or .dat file etc.
Will be understood that, if there is the above-mentioned file meeting the naming rule of filename in certain chat software program, then can determine the file belonging to user's reservation.
Whether 208 if then delete the information of described target directory at the showing interface of described equipment.
As shown in Figure 3, when the filename determining in file attribute in above-mentioned steps 207 belongs to the file that user retains, to the showing interface information as shown in the figure of this equipment.
Will be understood that, when user's click is, then remove described target directory according to the triggering of "Yes" operation-interface in information.Contrary, then this target directory is not removed.
Fig. 4 shows a kind of structural representation removing the device of application program Stub File that the embodiment of the present invention provides, as shown in Figure 4, the device of this removing application program Stub File comprises: the first acquisition module 41, scan module 42, first judge module 43 and removing module 44.
Wherein, the first acquisition module 41, for obtaining the corresponding relation of application program and application program installation directory;
, for scanning target directory, in described corresponding relation, there is not the application program corresponding with described target directory in scan module 42;
First judge module 43, for according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file, judges whether described target directory is application program Stub File;
Remove module 44, for when described first judge module judges that described target directory is application program Stub File, remove described target directory.
Will be understood that, the present embodiment removes the Stub File that target directory comprises the application program unloaded, because the application program unloaded is there is not registry entry in registration table, therefore carry out regular or irregular removing, to reduce taking of device memory in order to the relevant Stub File of the application program that unloaded some.
In another attainable mode, described first judge module 43, specifically for:
The file attribute of the bibliographic structure of described target directory and described target directory institute include file is sent server, determines whether described target directory is application program Stub File to make described server according to the file attribute of the bibliographic structure of described target directory and described target directory institute include file.
In the third attainable mode, described first judge module 43, specifically for:
The mark of the application program that described target directory is corresponding is determined according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file;
First bibliographic structure corresponding with the mark of described application program and the first file attribute is searched in the program listing preset; Described program listing is the program listing obtained in advance to server;
The bibliographic structure of target directory and the similarity of described first bibliographic structure in acquisition equipment;
When described similarity is greater than predetermined threshold value, judge whether the file attribute of described target directory institute include file mates with described first file attribute;
When the file attribute of described target directory institute include file mates with described first file attribute, then determine that described target directory is application program Stub File.
In the example that another is concrete, described device also comprises in Fig. 4 unshowned: the second judge module 45 and display module 46.
Whether the second judge module 45, before removing described target directory in described removing module 44, belong to according to the filename that preset rules judges in described file attribute the file retained in equipment;
Whether display module 46, when the filename for judging in described file attribute at described second judge module belongs to the file retained in equipment, delete the information of described target directory at the showing interface of described equipment;
Described removing module 44, specifically for:
Described target directory is removed according to the triggering of clear operation interface in the information that described display module is shown.
Described device also to comprise in Fig. 4 for illustrating: cleaning module 47 and the second acquisition module 48.
Cleaning module 47, before obtaining the corresponding relation of application program and described application program installation directory at described first acquisition module, the registry entry of redundancy in cleaning registration table;
Second acquisition module 48, after the registry entry for redundancy in described cleaning module cleaning registration table, obtains the first registration table;
Described first acquisition module, specifically for:
According to described first registration table that described second acquisition module obtains, obtain the corresponding relation of application program and described application program installation directory.The above-mentioned flow process performed in the embodiment of the method shown in earlier figures 1 to Fig. 2, the present embodiment does not describe in detail at this.
The target directory that the device of the removing application program Stub File of the present embodiment is effectively residual in removing equipment, reduces the occupancy of device resource.
Claims (10)
1. remove a device for application program Stub File, it is characterized in that, comprising:
First acquisition module, for obtaining the corresponding relation of application program and application program installation directory;
, for scanning target directory, in described corresponding relation, there is not the application program corresponding with described target directory in scan module;
First judge module, for according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file, judges whether described target directory is application program Stub File;
Remove module, for when described first judge module judges that described target directory is application program Stub File, remove described target directory.
2. device according to claim 1, is characterized in that, described first judge module, specifically for:
The file attribute of the bibliographic structure of described target directory and described target directory institute include file is sent server, determines whether described target directory is application program Stub File to make described server according to the file attribute of the bibliographic structure of described target directory and described target directory institute include file.
3. device according to claim 1, is characterized in that, described first judge module, specifically for:
The mark of the application program that described target directory is corresponding is determined according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file;
First bibliographic structure corresponding with the mark of described application program and the first file attribute is searched in the program listing preset; Described program listing is the program listing obtained in advance to server;
The bibliographic structure of target directory and the similarity of described first bibliographic structure in acquisition equipment;
When described similarity is greater than predetermined threshold value, judge whether the file attribute of described target directory institute include file mates with described first file attribute;
When the file attribute of described target directory institute include file mates with described first file attribute, then determine that described target directory is application program Stub File.
4. device according to claim 1, is characterized in that, described device also comprises:
Whether the second judge module, before removing described target directory in described removing module, belong to according to the filename that preset rules judges in described file attribute the file retained in equipment;
Whether display module, when the filename for judging in described file attribute at described second judge module belongs to the file retained in equipment, delete the information of described target directory at the showing interface of described equipment;
Described removing module, specifically for:
Described target directory is removed according to the triggering of clear operation interface in the information that described display module is shown.
5. device according to any one of claim 1 to 4, is characterized in that, described device also comprises:
Cleaning module, before obtaining the corresponding relation of application program and described application program installation directory at described first acquisition module, the registry entry of redundancy in cleaning registration table;
Second acquisition module, after the registry entry for redundancy in described cleaning module cleaning registration table, obtains the first registration table;
Described first acquisition module, specifically for:
According to described first registration table that described second acquisition module obtains, obtain the corresponding relation of application program and described application program installation directory.
6. remove a method for application program Stub File, it is characterized in that, comprising:
Obtain the corresponding relation of application program and application program installation directory;
, in described corresponding relation, there is not the application program corresponding with described target directory in scanning target directory;
According to the bibliographic structure of described target directory and the file attribute of described target directory institute include file, judge whether described target directory is application program Stub File;
If so, then described target directory is removed.
7. method according to claim 6, is characterized in that, the file attribute of the described bibliographic structure according to described target directory and described target directory institute include file, judges whether described target directory is application program Stub File, comprising:
The file attribute of the bibliographic structure of described target directory and described target directory institute include file is sent server, determines whether described target directory is application program Stub File to make described server according to the file attribute of the bibliographic structure of described target directory and described target directory institute include file.
8. method according to claim 6, is characterized in that, the file attribute of the described bibliographic structure according to described target directory and described target directory institute include file, judges whether described target directory is application program Stub File, comprising:
The mark of the application program that described target directory is corresponding is determined according to the bibliographic structure of described target directory and the file attribute of described target directory institute include file;
First bibliographic structure corresponding with the mark of described application program and the first file attribute is searched in the program listing preset; Described program listing is the program listing obtained in advance to server;
The bibliographic structure of target directory and the similarity of described first bibliographic structure in acquisition equipment;
When described similarity is greater than predetermined threshold value, judge whether the file attribute of described target directory institute include file mates with described first file attribute;
When the file attribute of described target directory institute include file mates with described first file attribute, then determine that described target directory is application program Stub File.
9. method according to claim 6, is characterized in that, before the described target directory of described removing, described method also comprises:
The file retained in equipment whether is belonged to according to the filename that preset rules judges in described file attribute;
If so, then the information of described target directory whether is deleted at the showing interface of described equipment;
Correspondingly, remove described target directory, be specially:
Described target directory is removed according to the triggering of clear operation interface in information.
10. the method according to any one of claim 6 to 9, is characterized in that, before the corresponding relation of described acquisition application program and described application program installation directory, described method also comprises:
In cleaning registration table, the registry entry of redundancy, obtains the first registration table;
Accordingly, according to described first registration table, obtain the corresponding relation of application program and described application program installation directory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410850918.5A CN104536792A (en) | 2014-12-30 | 2014-12-30 | Method and device for eliminating application program residual files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410850918.5A CN104536792A (en) | 2014-12-30 | 2014-12-30 | Method and device for eliminating application program residual files |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104536792A true CN104536792A (en) | 2015-04-22 |
Family
ID=52852324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410850918.5A Pending CN104536792A (en) | 2014-12-30 | 2014-12-30 | Method and device for eliminating application program residual files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104536792A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965916A (en) * | 2015-07-06 | 2015-10-07 | 北京金山安全软件有限公司 | Method and device for determining file to be cleaned |
CN105224356A (en) * | 2015-08-28 | 2016-01-06 | 北京金山安全软件有限公司 | Directory clearing method and device and mobile terminal |
CN105243102A (en) * | 2015-09-17 | 2016-01-13 | 北京金山安全软件有限公司 | Processing method and device for unloading residual file and terminal |
CN105574163A (en) * | 2015-12-16 | 2016-05-11 | 北京金山安全软件有限公司 | File processing method and device and electronic equipment |
CN105653663A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | File cleaning method and device |
CN106201595A (en) * | 2016-06-30 | 2016-12-07 | 北京奇虎科技有限公司 | The cleaning control method of a kind of application program and device |
CN106557525A (en) * | 2015-09-30 | 2017-04-05 | 北京金山安全软件有限公司 | Method and device for cleaning application program residual file and electronic equipment |
CN106557500A (en) * | 2015-09-28 | 2017-04-05 | 北京金山安全软件有限公司 | Method and device for cleaning uninstalled residual file and terminal |
CN106648720A (en) * | 2015-11-02 | 2017-05-10 | 北京金山安全软件有限公司 | Method, device and terminal for determining cleaning type of residual directory |
CN107766523A (en) * | 2017-10-25 | 2018-03-06 | 努比亚技术有限公司 | A kind of file management method, mobile terminal and computer-readable recording medium |
CN111263936A (en) * | 2017-08-22 | 2020-06-09 | 深圳传音通讯有限公司 | Electronic terminal and junk file processing method thereof |
CN112217940A (en) * | 2020-08-28 | 2021-01-12 | 深圳市修远文化创意有限公司 | Memory release method and related device |
CN112241395A (en) * | 2019-07-17 | 2021-01-19 | 腾讯科技(深圳)有限公司 | Method and device for cleaning application program file, terminal equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043655A (en) * | 2011-01-04 | 2011-05-04 | 奇智软件(北京)有限公司 | Method and system for carrying out advanced uninstall on software |
CN102663059A (en) * | 2012-03-30 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and system for automatically cleaning redundant items in computer terminal |
CN103176828A (en) * | 2013-03-29 | 2013-06-26 | 北京奇虎科技有限公司 | Method and device of deleting application program residual files |
CN103345411A (en) * | 2013-07-09 | 2013-10-09 | 北京奇虎科技有限公司 | Method and device for uninstalling application program |
CN103365882A (en) * | 2012-03-30 | 2013-10-23 | 网秦无限(北京)科技有限公司 | Method and system for cleaning junk files on mobile terminal |
-
2014
- 2014-12-30 CN CN201410850918.5A patent/CN104536792A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043655A (en) * | 2011-01-04 | 2011-05-04 | 奇智软件(北京)有限公司 | Method and system for carrying out advanced uninstall on software |
CN102663059A (en) * | 2012-03-30 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and system for automatically cleaning redundant items in computer terminal |
CN103365882A (en) * | 2012-03-30 | 2013-10-23 | 网秦无限(北京)科技有限公司 | Method and system for cleaning junk files on mobile terminal |
CN103176828A (en) * | 2013-03-29 | 2013-06-26 | 北京奇虎科技有限公司 | Method and device of deleting application program residual files |
CN103345411A (en) * | 2013-07-09 | 2013-10-09 | 北京奇虎科技有限公司 | Method and device for uninstalling application program |
Non-Patent Citations (1)
Title |
---|
杨先凤: "《实用操作系统及工具软件》", 31 March 2013 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965916A (en) * | 2015-07-06 | 2015-10-07 | 北京金山安全软件有限公司 | Method and device for determining file to be cleaned |
CN105224356B (en) * | 2015-08-28 | 2018-09-14 | 北京金山安全软件有限公司 | Directory clearing method and device and mobile terminal |
CN105224356A (en) * | 2015-08-28 | 2016-01-06 | 北京金山安全软件有限公司 | Directory clearing method and device and mobile terminal |
CN105243102A (en) * | 2015-09-17 | 2016-01-13 | 北京金山安全软件有限公司 | Processing method and device for unloading residual file and terminal |
CN105243102B (en) * | 2015-09-17 | 2018-11-23 | 北京金山安全软件有限公司 | Processing method and device for unloading residual file and terminal |
CN106557500A (en) * | 2015-09-28 | 2017-04-05 | 北京金山安全软件有限公司 | Method and device for cleaning uninstalled residual file and terminal |
CN106557525A (en) * | 2015-09-30 | 2017-04-05 | 北京金山安全软件有限公司 | Method and device for cleaning application program residual file and electronic equipment |
CN106648720A (en) * | 2015-11-02 | 2017-05-10 | 北京金山安全软件有限公司 | Method, device and terminal for determining cleaning type of residual directory |
CN105574163A (en) * | 2015-12-16 | 2016-05-11 | 北京金山安全软件有限公司 | File processing method and device and electronic equipment |
CN105653663A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | File cleaning method and device |
CN105653663B (en) * | 2015-12-29 | 2019-05-10 | 珠海豹趣科技有限公司 | A kind of file clean-up method and device |
CN106201595A (en) * | 2016-06-30 | 2016-12-07 | 北京奇虎科技有限公司 | The cleaning control method of a kind of application program and device |
CN111263936A (en) * | 2017-08-22 | 2020-06-09 | 深圳传音通讯有限公司 | Electronic terminal and junk file processing method thereof |
CN107766523A (en) * | 2017-10-25 | 2018-03-06 | 努比亚技术有限公司 | A kind of file management method, mobile terminal and computer-readable recording medium |
CN112241395A (en) * | 2019-07-17 | 2021-01-19 | 腾讯科技(深圳)有限公司 | Method and device for cleaning application program file, terminal equipment and storage medium |
CN112217940A (en) * | 2020-08-28 | 2021-01-12 | 深圳市修远文化创意有限公司 | Memory release method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104536792A (en) | Method and device for eliminating application program residual files | |
CN102043655B (en) | Method and system for carrying out advanced uninstall on software | |
CN102520987B (en) | Online experience and installation method, device, server and management system of application program | |
CN103645914B (en) | Software cleaning method and device | |
CN106874366B (en) | Software information processing method and device | |
US20070079377A1 (en) | Virus scanning in a computer system | |
US11120147B2 (en) | Operating system garbage-collection with integrated clearing of sensitive data | |
CN103369003A (en) | A method and a system for scanning redundancy files in a mobile device by using cloud computing | |
CN103365882A (en) | Method and system for cleaning junk files on mobile terminal | |
CN103631617A (en) | Method and device for unloading system application on terminal equipment | |
CN102867147B (en) | A kind of method and apparatus of file scan | |
US20140222761A1 (en) | Terminal Backup and Recovery Method | |
CN112579202B (en) | Method, device, equipment and storage medium for editing server program of Windows system | |
CN104035842A (en) | Method for deleting and recovering built-in application program | |
CN103699624A (en) | Browser data processing method and device | |
CN109472540B (en) | Service processing method and device | |
CN103679027A (en) | Searching and killing method and device for kernel level malware | |
CN106886422A (en) | Method for upgrading software and device, electronic equipment | |
CN106201602B (en) | Label providing method, label obtaining method, server and electronic equipment | |
CN104965731A (en) | Data processing method and electronic terminal | |
CN102968321A (en) | Application program installation device and application program installation method | |
CN106201595A (en) | The cleaning control method of a kind of application program and device | |
CN115964061A (en) | Plug-in updating method and device, electronic equipment and computer readable storage medium | |
CN104572943B (en) | Exempt from installation procedure method for cleaning and device | |
CN104346460A (en) | Method and device for downloading file and browser client |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150422 |
|
RJ01 | Rejection of invention patent application after publication |