CN106201601A - A kind of file clean-up method, electronic equipment and server - Google Patents

A kind of file clean-up method, electronic equipment and server Download PDF

Info

Publication number
CN106201601A
CN106201601A CN201610512757.8A CN201610512757A CN106201601A CN 106201601 A CN106201601 A CN 106201601A CN 201610512757 A CN201610512757 A CN 201610512757A CN 106201601 A CN106201601 A CN 106201601A
Authority
CN
China
Prior art keywords
application program
prune policies
information
electronic equipment
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610512757.8A
Other languages
Chinese (zh)
Other versions
CN106201601B (en
Inventor
陈耀攀
李富钦
朱江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hongxiang Technical Service Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610512757.8A priority Critical patent/CN106201601B/en
Publication of CN106201601A publication Critical patent/CN106201601A/en
Application granted granted Critical
Publication of CN106201601B publication Critical patent/CN106201601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Abstract

The present invention relates to computer realm, disclose a kind of file clean-up method, electronic equipment and server, thus solve the accurate not technical problem of Prune Policies control for application program in prior art, this the method includes: obtains from server and carries out, for the first application program, the first Prune Policies of clearing up, and described first Prune Policies determines based on described first application program installation site on an electronic device;Judge that whether the cleaning priority of described first Prune Policies is higher than the cleaning priority giving tacit consent to Prune Policies;If so, by described first Prune Policies, described first application program is cleared up;If it is not, described first application program is cleared up by described acquiescence Prune Policies.Reach Prune Policies controls more accurate technique effect.

Description

A kind of file clean-up method, electronic equipment and server
Technical field
The present invention relates to computer realm, particularly relate to a kind of file clean-up method, electronic equipment and server.
Background technology
Along with the development of science and technology, electronic technology have also been obtained development at full speed, and the kind of electronic product is also got over Coming the most, people have also enjoyed the various facilities that development in science and technology brings.People can be by various types of mobile whole now End, enjoys the comfortable life brought along with development in science and technology.Such as, the mobile terminal such as smart mobile phone, panel computer has become as people Live in an important ingredient, user can use the mobile terminal such as smart mobile phone, panel computer to listen music, object for appreciation Game etc., to alleviate the pressure that modern fast pace life is brought.
Under normal circumstances, electronic equipment can be installed multiple application program, and owing to the memory space of electronic equipment has Limit, so needing the application program to being installed on electronic equipment to clear up, is carried out clearly for application program in prior art The strategy of reason is often write extremely on application program, clears up application program only in single Prune Policies, so nothing Method realizes being accurately controlled.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on State file clean-up method, electronic equipment and the server of problem.
First aspect, the embodiment of the present invention provides a kind of file clean-up method, including:
Carry out the first Prune Policies cleared up, described first Prune Policies base for the first application program from server acquisition Determine in described first application program installation site on an electronic device;
Judge that whether the cleaning priority of described first Prune Policies is higher than the cleaning priority giving tacit consent to Prune Policies;
If so, by described first Prune Policies, described first application program is cleared up;
If it is not, described first application program is cleared up by described acquiescence Prune Policies.
Optionally, described method also includes:
Obtain described server and send the described cleaning priority of described first Prune Policies extremely, wherein, described service Device is based on the cleaning knot cleared up described first application program on each electronic equipment by described first Prune Policies Really report information determines described cleaning priority.
Optionally, described cleaning result report information includes: delete information by mistake and/or information is deleted in leakage.
Optionally, the described information of deleting by mistake includes: at least in the probabilistic information by mistake deleted and the file type information by mistake deleted The information of kind;
The described leakage information of deleting includes: quantity of documents that probabilistic information that leakage is deleted, leakage are deleted, there is the number of electronic devices deleted of leakage In at least one information.
Optionally, described before server obtains for the first Prune Policies of the first application program, described method Also include:
The installation site information of described first application program is sent to described server.
Optionally, described method also includes:
Detect the described first application program transplantable executable file of PE on described electronic equipment;
Transplantable for described PE executable file position is defined as described installation site.
Optionally, described by described first Prune Policies, described first application program is cleared up, including:
It is right that snapshot based on the file generated when installing described first application program on described electronic equipment is determined Described first application program carries out the file set for clearance cleared up;
Described file set for clearance is cleared up based on described first Prune Policies.
Optionally, described method also includes:
Obtaining server is the label information for being supplied to user that described first application program determines, described label is believed Breath is for determining based on described first application program related data information on M electronic equipment, and M is positive integer.
Second aspect, the embodiment of the present invention provides a kind of file clean-up method, including:
Obtain the first application program installation site on an electronic device;
On described electronic equipment, described first application program cleared up is determined by described installation site One Prune Policies;
Described first Prune Policies is sent to described electronic equipment, so that described electronic equipment is based on described first cleaning Described first application program is cleared up by the acquiescence Prune Policies of tactful and described first application program.
Optionally, described determine on described electronic equipment, described first application program to be entered by described installation site First Prune Policies of row cleaning, including:
The transplantable executable file of PE by described first application program determines the mark of described first application program Knowledge information;
Search to obtain described first cleaning in Prune Policies set by described identification information and described installation site Strategy.
Optionally, described determine on described electronic equipment, described first application program to be entered by described installation site First Prune Policies of row cleaning, including:
Judge whether described installation site is positioned at predetermined installation site;
If described installation site is positioned at described predetermined installation site, described first Prune Policies determined for for First kind file carries out the Prune Policies cleared up;
If described installation site is not positioned at described predetermined installation site, described first Prune Policies determined is pin The Prune Policies clearing up Equations of The Second Kind file, described first kind file is incomplete same with described Equations of The Second Kind file.
Optionally, described method also includes:
Obtain the related data information of described first application program respectively from M electronic equipment, M is positive integer;
Described first application program is determined based on the described related data information obtained from described M electronic equipment For being supplied to the label information of user.
Optionally, described described is determined based on the described related data information obtained from described M electronic equipment The label information for being supplied to user of one application program, including:
From the described related data information that described M electronic equipment is obtained, determine that described first application program is in institute State the user of the program behavior data on M electronic equipment and/or described M electronic equipment for described first application program institute The user behavior data produced;
Described label information is determined based on described program behavior data and/or described user behavior data.
Optionally, described method also includes:
Cleaning priority corresponding to described first Prune Policies is sent to described electronic equipment, so that described electronics sets Standby default priority based on described cleaning priority and described acquiescence Prune Policies is from described first Prune Policies and described silent Recognize and Prune Policies is selected the first application program described in a pair clear up.
Optionally, described method also includes:
Based on described first application program on each electronic equipment is cleared up by described first Prune Policies Cleaning result report information determines the cleaning priority of described first Prune Policies.
Optionally, described based on by described first Prune Policies to described first application program on each electronic equipment The cleaning result report information carrying out clearing up determines the cleaning priority of described first Prune Policies, including:
Obtain the pre-set priority of described first Prune Policies;
Based on described cleaning result report information, described pre-set priority is adjusted, thus obtains described first cleaning The described cleaning priority of strategy.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, including:
First acquisition module, for the first Prune Policies carrying out for the first application program clearing up from server acquisition, Described first Prune Policies determines based on described first application program installation site on an electronic device;
Judge module, for judging that whether the cleaning priority of described first Prune Policies is higher than giving tacit consent to the clear of Prune Policies Reason priority;
If so, first cleaning module, for clearing up described first application program by described first Prune Policies;
Second cleaning module, for if it is not, clear up described first application program by described acquiescence Prune Policies.
Optionally, described electronic equipment also includes:
First obtains module, preferential for obtaining the described cleaning of described server transmission described first Prune Policies extremely Level, wherein, described server based on by described first Prune Policies to described first application program on each electronic equipment The cleaning result report information carrying out clearing up determines described cleaning priority.
Optionally, described cleaning result report information includes: delete information by mistake and/or information is deleted in leakage.
Optionally, the described information of deleting by mistake includes: at least in the probabilistic information by mistake deleted and the file type information by mistake deleted The information of kind;
The described leakage information of deleting includes: quantity of documents that probabilistic information that leakage is deleted, leakage are deleted, there is the number of electronic devices deleted of leakage In at least one information.
Optionally, described electronic equipment also includes:
First sending module, for sending the installation site information of described first application program to described server.
Optionally, described electronic equipment also includes:
Detection module, for detecting, described first application program PE on described electronic equipment is transplantable performs literary composition Part;
First determines module, for transplantable for described PE executable file position is defined as described installation position Put.
Optionally, described first cleaning module, including:
First determines unit, for based on the literary composition generated when installing described first application program on described electronic equipment The snapshot of part determines the file set for clearance clearing up described first application program;
Cleaning unit, for clearing up based on described first Prune Policies described file set for clearance.
Optionally, described electronic equipment also includes:
Second obtains module, is the mark for being supplied to user that described first application program determines for obtaining server Label information, described label information for determining based on described first application program related data information on M electronic equipment, M is positive integer.
Fourth aspect, the embodiment of the present invention provides a kind of server, including:
Second acquisition module, for obtaining the first application program installation site on an electronic device;
Second determines module, for being determined on described electronic equipment described first application by described installation site Program carries out the first Prune Policies cleared up;
Second sending module, for sending described first Prune Policies to described electronic equipment, so that described electronics sets Described first application program is carried out by standby acquiescence Prune Policies based on described first Prune Policies and described first application program Cleaning.
Optionally, described second determines module, including:
Second determines unit, described for being determined by the transplantable executable file of PE of described first application program The identification information of the first application program;
Search unit, for searching to obtain in Prune Policies set by described identification information and described installation site Described first Prune Policies.
Optionally, described second determines module, including:
Judging unit, is used for judging whether described installation site is positioned at predetermined installation site;
3rd determines unit, if being positioned at described predetermined installation site for described installation site, that is determined is described First Prune Policies is to carry out, for first kind file, the Prune Policies cleared up;
4th determines unit, if not being positioned at described predetermined installation site, the institute determined for described installation site Stating the first Prune Policies is to carry out the Prune Policies cleared up, described first kind file and described Equations of The Second Kind literary composition for Equations of The Second Kind file Part is incomplete same.
Optionally, described server also includes:
3rd obtains module, for obtaining the related data information of described first application program respectively from M electronic equipment, M is positive integer;
3rd determines module, for determining based on the described related data information obtained from described M electronic equipment The label information for being supplied to user of described first application program.
Optionally, the described 3rd determines module, including:
5th determines unit, for determining institute from the described related data information that described M electronic equipment is obtained State the user of first application program program behavior data on described M electronic equipment and/or described M electronic equipment for User behavior data produced by described first application program;
6th determines unit, described for determining based on described program behavior data and/or described user behavior data Label information.
Optionally, described server also includes:
3rd sending module, sets for the cleaning priority corresponding to described first Prune Policies is sent extremely described electronics It is standby, so that described electronic equipment default priority based on described cleaning priority and described acquiescence Prune Policies is from described first Prune Policies and described acquiescence Prune Policies select the first application program described in a pair clear up.
Optionally, described server also includes:
4th determines module, for answering described first on each electronic equipment based on by described first Prune Policies The cleaning result report information carrying out clearing up by program determines the cleaning priority of described first Prune Policies.
Optionally, the described 4th determines module, including:
Obtain unit, for obtaining the pre-set priority of described first Prune Policies;
Adjustment unit, for being adjusted described pre-set priority based on described cleaning result report information, thus obtains Obtain the described cleaning priority of described first Prune Policies.
The technical scheme provided in the embodiment of the present application, at least has the following technical effect that or advantage:
Due in embodiments of the present invention, when the first application program is cleared up, it is possible to obtain two set Prune Policies, Be respectively as follows: the acquiescence Prune Policies of the first Prune Policies and the electronic equipment obtained from server, the first Prune Policies based on Described first application program installation site on an electronic device determines;The cleaning that may then based on the first Prune Policies is preferential Level and the cleaning priority of acquiescence Prune Policies, therefrom select a kind of Prune Policies and clear up the first application program, also I other words, by the acquiescence Prune Policies of the first application program, the first application program is cleared up the most merely, and be to provide Multiple Prune Policies selects, so having reached Prune Policies controls more accurate technique effect.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the flow chart of a kind of file clean-up method of first aspect present invention;
Fig. 2 shows the flow chart of a kind of file clean-up method of second aspect present invention;
Fig. 3 shows the structure chart of the electronic equipment of third aspect present invention;
Fig. 4 shows the structure chart of the server of fourth aspect present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Embodiments provide a kind of file clean-up method, electronic equipment and server, in order to solve prior art In control accurate not technical problem for the Prune Policies of application program.
Technical scheme in the embodiment of the present application is as follows for solving above-mentioned technical problem general thought:
When the first application program is cleared up, it is possible to obtain two set Prune Policies, it is respectively as follows: and obtains from server The acquiescence Prune Policies of the first Prune Policies and electronic equipment, the first Prune Policies based on described first application program at electronics Installation site on equipment determines;May then based on cleaning priority and the cleaning of acquiescence Prune Policies of the first Prune Policies Priority, therefrom selects a kind of Prune Policies and clears up the first application program, in other words, the most merely by first First application program is cleared up by the acquiescence Prune Policies of application program, and is to provide multiple Prune Policies and selects, therefore And reached Prune Policies controls more accurate technique effect.
First aspect, the embodiment of the present invention provides a kind of file clean-up method, refer to Fig. 1, including:
Step S101: obtain from server and carry out, for the first application program, the first Prune Policies of clearing up, described first Prune Policies determines based on described first application program installation site on an electronic device;
Step S102: judge that the cleaning priority of described first Prune Policies is the most excellent higher than the cleaning of acquiescence Prune Policies First level;
Step S103: if so, by described first Prune Policies, described first application program is cleared up;
Step S104: if it is not, described first application program is cleared up by described acquiescence Prune Policies.
For example, the program is applied in electronic equipment, this electronic equipment for example: mobile phone, panel computer, notebook Computer etc..
The program can apply in the scale removal process of single application program, such as: user wishes to unload on electronic equipment The browser A installed, then can first select browser A, then performs cleaning operation (such as: click on cleaning button, produce clearly Reason gesture etc.), then the first application program can be browser A, follow-up can be realized by step S101~step S104 right The cleaning of browser A;The program can also be applied in the scale removal process of multiple application program, such as: user passes through electronic equipment Entrained application program management software scans goes out the application program installed on electronic equipment, the most therefrom selects certain applications Program (such as: browser A, music player B, microblogging C etc.), then performs cleaning operation, then go out selected by user should Follow-up can be determined respectively by the scheme that step S101~S104 are provided respectively as the first application program by program Go out each application program for going out selected by user to clear up.
In step S101, the first application program installation site on an electronic device can be obtained by following steps: look into Look for described first application program PE on described electronic equipment (Portable Executable: transplantable perform) literary composition Part;Using described PE file position as the described installation site of described first application program.
For example, location lookup first application program such as registration table Uninstall item or starting up's item can be passed through PE file, and then obtain the installation site of the first application program and the PE file of correspondence;Or by desktop shortcuts, open The conventional entrances such as beginning menu shortcut mode, plan target, service entry search the PE file of the first application program, and then obtain first The installation site of application program and PE file etc., it is, of course, also possible to obtain the installation of the first application program by other means Position, the embodiment of the present invention no longer itemizes, and is not restricted.
PE file is usually the program file in operating system, such as: EXE (executable program: can perform) File, DLL (Dynamic Link Library: dynamic link library) file, OCX (Object Linking and Embedding: object type extension component) file, SYS (SYSTEM: system) file, COM (Component Object Model: The Component Object Model) file etc..
PE file can include one or more of information: message digest information (such as: MD5 information), icon information, Signing messages, file size, establishment time, access time, modification time, version number, whether bundle other application program, whether There is knavery (such as: locking homepage, pop-up advertisement, backstage perform various illegal operations etc.).Determining first After the installation site of application program, the installation site information of the first application program can be sent directly to server;Electronics Then journal file can also be sent to arriving by equipment by the installation site of the first application program and PE file generated journal file Server, server, after receiving this journal file, extracts the installation position of the first application program from this journal file Confidence ceases.
In specific implementation process, server can be previously stored with and carry out, for each application program, the cleaning plan cleared up Slightly gathering, this Prune Policies set can be data base, it is also possible to for corresponding relation list, include in this Prune Policies set At least one application program and the Prune Policies of its correspondence, can be by the program name of each application program or other parameters (such as: icon numbering, version number etc.) and the installation site of application program are finding correspondence in this Prune Policies set The Prune Policies of application program.
Or, the program name of each application program or other parameters can be first passed through (such as: icon numbering, version This number etc.) in this Prune Policies set, search all Prune Policies that the corresponding application program of acquisition is comprised, then by being somebody's turn to do The installation site of application program searches the Prune Policies obtaining corresponding application program in all Prune Policies of application program.
And as a kind of optional embodiment, server can be determined corresponding to the first application program in the following manner The first Prune Policies: by the transplantable executable file of PE of described first application program determine described first application journey The identification information of sequence;Search to obtain described first in Prune Policies set by described identification information and described installation site Prune Policies.
For example, when some application program may be installed on different electronic equipments, its program name or other ginsengs Number (such as: icon numbering, version number etc.) is it may happen that change, so cause possibly cannot be accurately in Prune Policies storehouse Searching and obtain corresponding Prune Policies, the PE file that therefore can first pass through the first application program determines that first should accurately With the identification information (this identification information is for unique mark the first application program) of program, the most again by this identification information and peace Holding position is searched in Prune Policies set and is obtained corresponding Prune Policies.Wherein it is possible to by identification information and installation site Mate in Prune Policies set simultaneously, and then obtain identification information and Prune Policies that installation site is all mated is as the The first Prune Policies corresponding to one application program;Identification information can also be first passed through make a look up in Prune Policies set and obtain Obtain all Prune Policies corresponding to this identification information, then by installation site in all cleanings corresponding to this identification information Strategy is searched and obtains first Prune Policies corresponding with installation site.
Wherein it is possible to by information such as the program name of the first application program, icon information, signing messages, file sizes Determining the identification information of the first application program, such as, its icon information of some application program will not change, the most permissible Icon home banking corresponding to one icon information is set;Its signing messages of some application program will not change, the most permissible Arranging a signature home banking corresponding to signing messages etc., its program name+file size of some application program can be unique Characterize this application program, then home banking corresponding to a program name+file size etc. can be set, then by first The parameters of application program makes a look up in each home banking, such as: by the icon information of the first application program at figure Mark home banking making a look up, if finding the identification information of correspondence, then the identification information found being applied as first The identification information of program, stops continuing to search for;If searching less than corresponding identification information, then by the label of the first application program Name information continues to search for, until finding the identification information position of the first application program in signature home banking.
Owing to, in such scheme, can uniquely identify the first application journey by the identification information of the first application program Sequence, therefore, it is possible to find the first Prune Policies corresponding to the first application program more accurately.
In step S102, for example, can arrange acquiescence Prune Policies cleaning priority be a fixed value (such as: 1,2 etc.), and for the first Prune Policies determined based on installation site, its cleaning priority is then in adjustable state. For example, server can based on by described first Prune Policies to described first application program on each electronic equipment The cleaning result report information carrying out clearing up determines described cleaning priority.
In specific implementation process, cleaning result report information can comprise much information, is set forth below two kinds therein It is introduced, certainly, in specific implementation process, is not limited to following two situation, it addition, in the case of not conflicting, below Two kinds of situations can be applied in combination.
The first, described cleaning result report information includes: delete information by mistake.
In specific implementation process, can first determine multiple stage experiment for electronic equipment, on these electronic equipments Being provided with the first application program, the first Prune Policies can be distributed to these electronic equipments, then by these electronics by server First application program is cleared up by equipment by the first Prune Policies, after cleaning terminates, is judged by professional When first application program is cleared up, if there is situation of by mistake deleting, if there is deleting situation by mistake, then report to server, by Server determines, based on the situation of deleting by mistake, information of by mistake deleting, this this delete information by mistake and such as include: the probabilistic information by mistake deleted and by mistake deleting At least one information in file type information, can there is, by cleaning, the number of electronic devices by mistake deleted in the probabilistic information by mistake deleted Obtain divided by total number of electronic devices;The file type by mistake deleted such as includes: system file, nonsystematic file etc., by by mistake The file type deleted can determine that the order of severity by mistake deleted, if the file type deleted includes system file by mistake, then and can be true Making its order of severity higher, if not comprising system file, then illustrating that the order of severity by mistake deleted is relatively low etc..
The second, described cleaning result report information includes: information is deleted in leakage.
For example, leakage is deleted information and is such as included: quantity of documents that probabilistic information that leakage is deleted, leakage are deleted, there is the electricity that leakage is deleted At least one information in subset quantity.The probabilistic information that leakage is deleted includes: there is the percent information of electronic equipment, leakage that leakage is deleted Percent information of file deleted etc., exist the electronic equipment that leakage deletes can by exist the number of electronic devices deleted of leakage divided by Electronic equipment total quantity obtains, and the quantity of documents that the percent information of file that leakage is deleted can be deleted by leakage is divided by general act quantity (such as: the quantity of documents sum that deleted file quantity is deleted with leakage) obtains.
As a kind of optional embodiment, it is clear that server can obtain corresponding to the first Prune Policies in the following manner Reason priority: obtain the pre-set priority of described first Prune Policies;Preset described based on described cleaning result report information Priority is adjusted, thus obtains the described cleaning priority of described first Prune Policies.
For example, for based on the first Prune Policies determined by installation site, can be that it arranges an acquiescence Pre-set priority (such as: 2,1.5 etc.), is then based on clearing up result report information and is adjusted pre-set priority, thus Obtain the cleaning priority of the first Prune Policies.
Such as, if there is no deleting information by mistake, then when pre-set priority being adjusted based on information of deleting by mistake, Ke Yibao Hold it constant;If there is deleting information by mistake, then depending on probabilistic information or the file type information deleted by mistake, it can be adjusted, Such as: if the probability deleted is higher by mistake, the cleaning priority of correspondence is reduced the most by a relatively large margin, if the probability deleted is relatively low, then by mistake The cleaning priority reducing correspondence more by a small margin;If the file deleted comprises system file by mistake, reduction the most by a relatively large margin its Corresponding cleaning priority, if the file deleted does not comprises system file by mistake, its corresponding cleaning of reduction the most by a small margin is preferential Level etc..
Information is deleted similar to its mode adjusted with based on information of deleting by mistake to the adjustment mode of cleaning priority based on leakage.Example As: if the probabilistic information that leakage is deleted is 0%, the most do not change this cleaning priority;If the probabilistic information that 0% < leakage is deleted≤ 10%, then this pre-set priority can be reduced a gradient (such as: reduce by 0.5);If the 10% < comprehensive rate of cleaning≤ 20%, then this pre-set priority can be reduced by two gradients (such as: reduce 2*0.5) by that analogy.
In step S103, if the cleaning priority comparing the first Prune Policies is excellent higher than the cleaning of acquiescence Prune Policies If first level, the cleaning to the first application program on electronic equipment can be realized by following steps: based at described electronics The snapshot of the file generated when installing described first application program on equipment is determined and is carried out described first application program clearly File set for clearance during reason;To in described file set for clearance with the file type corresponding to described first Prune Policies Clear up.
For example, it is generally the case that when the first application program is installed, can be right by the instrument generation of electronic equipment The snapshot answered, generates which file, and the position at these file places when comprising installation the first application program in snapshot, from Can go out generated file with extracting directly in snapshot, these files generated i.e. constitute file set for clearance, wherein it is possible to Just corresponding file for clearance is obtained by snapshot, it is also possible to the first application program is being entered after the first application program is installed During row cleaning, obtaining corresponding file for clearance based on snapshot, the embodiment of the present invention is not restricted.Such as, 360 safety are installed clear Looking at device, it can be producing following file:
%AppData% 360se6
%Desktop% 360 secure browser .lnk
HKEY_CURRENT_USER\Software\360\360se6
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uni nstall\360se6
Deng.
After obtaining file for clearance, it is possible to by the first Prune Policies, the first application program is cleared up.
For 360 secure browsers above, we can determine needs based on its snapshot and the first Prune Policies Delete content:
Delete Folder: %AppData% 360se6
Delete file: %Desktop% 360 secure browser .lnk
Deletion registration table:
HKEY_CURRENT_USER\Software\360\360se6
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uni nstall\360se6
Deng.
As a kind of optional embodiment, after the first application program having been cleared up based on the first Prune Policies, it is also possible to Increase and counter look into mechanism, according to the file deleted and file on an electronic device some conventional position is counter looks into.Such as: to electricity Service entry in desktop shortcuts on subset, start menu shortcut, registration table, starting up's item, CLSID, AppPath, Uninstall items etc. are counter to be looked into, if the PE file position that its these position is pointed to, is that we to delete File or file, then the shortcut of these positions and registry entry are deleted, return one clean system of user.
In step S104, if the cleaning priority of the first Prune Policies not higher than gives tacit consent to the cleaning priority of Prune Policies If, then by acquiescence Prune Policies, the first application program can be cleared up.Acquiescence Prune Policies refer in early days for The cleaning rule (such as: the cleaning rule generated when set up applications) that application program generates, installs according to application program With time the file that generates generates with registration table file corresponding to deletion, file, registration table, service entry etc. write dead this locality Storehouse rule.The corresponding corresponding storehouse of each software.Each software has unique software I D, and each software I D is corresponding Unique cleaning rule.I.e. one the corresponding locally-unique cleaning rule of software.It is general and software is arranged on normally Under path, difference is little, simply rule write more complicated, all of file and sub-folder and registry entry are included in In, and under normal circumstances, Prune Policies is the most counter looks into mechanism for acquiescence.
As a kind of optional embodiment, described method also includes: obtaining server is that described first application program determines For being supplied to the label information of user, described label information for based on described first application program at M electronic equipment On the transplantable executable file of described PE determine, M is positive integer.
In such scheme, can be that the first application program is determined label information rather than uses silent by PE file The label information recognized, so having reached the more accurate technique effect of label information of the first application program determined.
In specific implementation process, when being determined the label information of the first application program by PE file, can use Many kinds of parameters, is set forth below two kinds therein and is introduced, certainly, in specific implementation process, be not limited to following two situation, It addition, in the case of not conflicting, following two situation can be applied in combination.
The first, described label information obtains in the following manner: from described first application program on M electronic equipment The transplantable executable file of described PE in determine described first application program program line on described M electronic equipment For data;Described label information is determined by program behavior data.
For example, server can be determined by analyzing first application program PE file on each electronic equipment First application program program behavior data on each electronic equipment, these program behavior data such as include: whether to be bundled with Other application programs, whether stealthily run on backstage, whether exist other knaverys (such as: software from opening, flow etc. of escaping Deng), for each program behavior can corresponding different label information, such as: if the first application program binding should by other By program, then the label information of its correspondence is for example: binding plug-in unit;If the first application program stealthily runs on backstage, the most right The label information answered is for example: running background;If the first application program exists from opening situation, then its label information is for example: Software is from opening, if the first application program exists traffic conditions of escaping, then its label information is for example: flow etc. of escaping.Its In, the label information of its correspondence can be obtained for each program behavior server, be then sent to electronic equipment; Because the region of display tag information is limited, so the program behavior appearance of its correspondence can also be added up for every kind of label information Number of times, is then based on occurrence number and is ranked up each label information from high to low, finally obtains sequence and is positioned at former positions (example As: 2,3 etc.) label information, and provide it to electronic equipment.
Based on such scheme, reach program behavior data based on the first application program to determine the first application journey The technique effect of the label information of sequence, therefore can by the label information of the first application program to the first application program at electronics Behavior on equipment is pointed out.
The second, from the described first application program transplantable executable file of described PE on M electronic equipment Determine that the user of described M electronic equipment is for user behavior data produced by described first application program;Based on described User behavior data determines described label information.
For example, user behavior data such as includes: finally use time, access times, set-up time etc..This mark Label information can be directly user behavior data, such as: finally uses that the time was before 3 days, user uses 5 times, set-up time altogether It is before 1 month etc.;This label information can also be for based on other label informations determined by user behavior data, such as: as Fruit is last uses time gap current time more than preset time value (such as: two weeks, 1 month etc.), then can determine that Label information is " user does not the most use ", the most such as, if user's access times are less than preset times (such as: 3 times, 5 times Etc.), then can determine that label information is " user is rarely employed " etc..
Based on such scheme, reach to determine based on user for the user behavior data of the first application program The technique effect of the label information of one application program, therefore can by the label information of the first application program to user to its Service condition is pointed out.
It addition, in specific implementation process, it is also possible to produce for whether the first application program being carried out based on PE file By PE file, the information of cleaning, for example, it is possible to judge whether the first application program exists knavery (such as: binding Software, software from opening, pop-up advertisement, flow etc. of escaping), if these knaverys, then can produce suggestion Clearing up the information of the first application program, for example, " there is adverse effect to equipment in the first application program to this information, builds View unloading at once ";Or, can judge whether to clear up the first application journey for the situation of the first application program by user Sequence, such as: may determine that user used the use time gap current time of the first application program whether more than when presetting last time Between be worth (such as: two weeks, 1 month etc.), if greater than preset time value, then produce suggestion and delete carrying of the first application program Show information, this information for example, " user does not the most use this application program, it is proposed that delete ", the most such as, it is judged that user Use the access times of the first application program whether less than preset times (such as: 3 times, 5 times etc.), if it is less, produce The information of suggestion cleaning the first application program, for example, " user is rarely employed this application program to this information, it is proposed that clear Manage this application program " etc., certainly, this information can also be other informations, it is also possible to produces based on other principles, The embodiment of the present invention no longer itemizes, and is not restricted.
Second aspect, based on same inventive concept, the embodiment of the present invention provides a kind of file clean-up method, refer to Fig. 2, Including:
Step S201: obtain the first application program installation site on an electronic device;
Step S202: determined by described installation site and on described electronic equipment, described first application program is carried out First Prune Policies of cleaning;
Step S203: described first Prune Policies is sent to described electronic equipment, so that described electronic equipment is based on institute Described first application program is cleared up by the acquiescence Prune Policies stating the first Prune Policies and described first application program.
In step S201, described being determined by described installation site applies journey to described first on described electronic equipment Sequence carries out the first Prune Policies cleared up, including: determined by the transplantable executable file of PE of described first application program Go out the identification information of described first application program;Looked in Prune Policies set by described identification information and described installation site Look for obtaining described first Prune Policies.
In step S202, when determining the first Prune Policies based on installation site, various ways, below row can be used Lift two kinds therein to be introduced, certainly, in specific implementation process, be not limited to following two situation.
The first, described lookup from described Prune Policies set based on described installation site obtains described first cleaning plan Omit, including: judge whether described installation site is positioned at predetermined installation site;If described installation site is positioned at described predetermined installation Position, described first Prune Policies determined is to carry out, for first kind file, the Prune Policies cleared up;If described peace Holding position is not positioned at described predetermined installation site, and described first Prune Policies determined is for carry out clearly for Equations of The Second Kind file The Prune Policies of reason, described first kind file is incomplete same with described Equations of The Second Kind file.
For example, this predetermined installation site such as includes: the installation site of system core, such as: system root directory, Program Files root, Programs Files (x86) root etc..It is arranged on the file under these catalogues, if If Prune Policies is improper, frequently can lead to deletion system file, cause system malfunctions, so in order to prevent this feelings Whether condition, can be installed on predetermined installation site for the first application program, takes the first different Prune Policies.
Wherein, when clearing up for application program, its Prune Policies such as includes: delete specified folder, deletion Specified file, deletion registration table, deletion drive, delete service entry, delete input method etc..And then in specific implementation process, First kind file such as includes: single file, file, registration table, driving, service entry, input method etc.;Equations of The Second Kind file example As included: driving, service entry, input method etc., wherein, in first kind file and Equations of The Second Kind file, at least partial document is not With, such as: the file that comprised is different, the file that comprised is different etc..
For example, if the catalogue being installed on oneself when application program is installed (is not the most installed on pre-Dingan County Holding position), such as: browser A be arranged on %ProgramFiles% BrowserA under catalogue, what this belonged to normal mounting should By program, then may determine that Equations of The Second Kind file includes: file and file in BrowserA catalogue and subdirectory thereof and refer to To registry entry and the shortcut of this installation site, thus by the first Prune Policies, the first application program is being carried out clearly File in BrowserA catalogue and subdirectory thereof and file etc. all can be deleted during reason, then will point to this and install The registry entry of position and shortcut etc. are deleted.
And if application program is installed on predetermined installation site, such as: if browser A has been arranged on disk root (as C:), does not generate one's own proprietary catalogue, and all of file has all been put under C dish catalogue, thus can not be according to Installation site deletes, and otherwise system folder and other programs can be deleted, and causes system and other programs literary composition Part is lost, and the first kind file corresponding to the first Prune Policies now such as includes: the file of this application program oneself and son File, will specify each concrete file in the first Prune Policies, prevents from deleting by mistake, then deletes the registration table of correspondence With shortcut etc..
The second, described lookup from described Prune Policies set based on described installation site obtains described first cleaning plan Slightly, the installation site of the first application program and the corresponding relation of Prune Policies are comprised determining that;By current the first application obtained The installation site of program is searched in corresponding relation and is obtained the first corresponding Prune Policies.
For example, the memory space of electronic equipment can be divided into multiple region, such as: system disk Program Files root, system disk non-Program Files root, non-system disk etc., then can be arranged for each region Different Prune Policies, as shown in table 1:
And then after determining the first application program installation site on an electronic device, it may be determined that this installation site Belong to that installation region, then searched by installation region and obtain the first corresponding Prune Policies.
In step S203, for example, electronic equipment can use the first Prune Policies and acquiescence Prune Policies the most right First application program is cleared up, such as: first passes through the first Prune Policies and clears up the first application program, then by silent Recognize Prune Policies the first application program is cleared up or is first passed through acquiescence Prune Policies the first application program is carried out clearly Manage, then by acquiescence Prune Policies, the first application program carried out cleaning etc.;Electronic equipment can also be from the first cleaning plan Slightly and acquiescence Prune Policies selects a pair first application programs to clear up, such as: server is it is also possible that state the first cleaning Cleaning priority corresponding to strategy sends to described electronic equipment so that described electronic equipment based on described cleaning priority and The cleaning priority of described acquiescence Prune Policies is selected described in a pair from described first Prune Policies and described acquiescence Prune Policies First application program is cleared up.
In this case, described method also includes: based on by described first Prune Policies on each electronic equipment The described first application program cleaning result report information that carries out clearing up determine that the cleaning of described first Prune Policies is preferential Level.
As a kind of optional embodiment, described based on by described first Prune Policies to the institute on each electronic equipment State the cleaning result report information that the first application program carries out clearing up and determine the cleaning priority of described first Prune Policies, bag Include: obtain the pre-set priority of described first Prune Policies;Based on described cleaning result report information to described pre-set priority It is adjusted, thus obtains described first Prune Policies.
As a kind of optional embodiment, described method also includes: obtain described first application respectively from M electronic equipment The related data information of program, M is positive integer;True based on the described related data information obtained from described M electronic equipment Make the label information for being supplied to user of described first application program.
As a kind of optional embodiment, described it is believed that based on the described dependency number obtained from described M electronic equipment Breath determines the label information for being supplied to user of described first application program, including: obtained from described M electronic equipment The described related data information obtained determines described first application program program behavior data on described M electronic equipment And/or the user of described M electronic equipment is for user behavior data produced by described first application program;Based on described journey Sequence behavioral data and/or described user behavior data determine described label information.
The file clean-up method introduced due to embodiment of the present invention second aspect and embodiment of the present invention first aspect institute The file clean-up method introduced is corresponding, the file clean-up method introduced based on first aspect present invention, technology belonging to this area Personnel will appreciate that the specific implementation process of the file clean-up method that embodiment of the present invention second aspect introduced, so at this not Repeat again.
Second aspect, based on same inventive concept, the embodiment of the present invention provides a kind of electronic equipment, refer to Fig. 3, bag Include:
First acquisition module 30, for the first cleaning plan carrying out for the first application program clearing up from server acquisition Slightly, described first Prune Policies determines based on described first application program installation site on an electronic device;
Judge module 31, for judging that whether the cleaning priority of described first Prune Policies is higher than acquiescence Prune Policies Cleaning priority;
If so, first cleaning module 32, for carrying out clearly described first application program by described first Prune Policies Reason;
Second cleaning module 33, for if it is not, carry out clearly described first application program by described acquiescence Prune Policies Reason.
Optionally, described electronic equipment also includes: first obtains module, sends extremely described for obtaining described server The described cleaning priority of the first Prune Policies, wherein, described server is based on electric to each by described first Prune Policies The cleaning result report information that described first application program on subset carries out clearing up determines described cleaning priority.
Optionally, described cleaning result report information includes: delete information by mistake and/or information is deleted in leakage.
Optionally, the described information of deleting by mistake includes: at least in the probabilistic information by mistake deleted and the file type information by mistake deleted The information of kind;The described leakage information of deleting includes: quantity of documents that probabilistic information that leakage is deleted, leakage are deleted, there is the number of electronic devices deleted of leakage In at least one information.
Optionally, described electronic equipment also includes: the first sending module, for by the installation position of described first application program Confidence breath sends to described server.
Optionally, described electronic equipment also includes: detection module, is used for detecting described first application program at described electronics The transplantable executable file of PE on equipment;First determines module, for by transplantable for described PE executable file place Position is defined as described installation site.
Optionally, described first cleaning module 32, including: first determines unit, for based at described electronic equipment The snapshot of the file generated when installing described first application program is determined treating that described first application program is cleared up Cleaning file set;Cleaning unit, for clearing up based on described first Prune Policies described file set for clearance.
Optionally, described electronic equipment also includes: second obtains module, and being used for obtaining server is described first application journey The label information for being supplied to user that sequence determines, described label information is for electric at M based on described first application program Related data information on subset determines, M is positive integer.
Fourth aspect, based on same inventive concept, the embodiment of the present invention provides a kind of server, refer to Fig. 4, including:
Second acquisition module 40, for obtaining the first application program installation site on an electronic device;
Second determines module 41, should to described first on described electronic equipment for being determined by described installation site The first Prune Policies cleared up is carried out by program;
Second sending module 42, for described first Prune Policies is sent to described electronic equipment, so that described electronics Described first application program is entered by equipment acquiescence Prune Policies based on described first Prune Policies and described first application program Row cleaning.
Optionally, described second determines module 41, including: second determines unit, for by described first application program The transplantable executable file of PE determine the identification information of described first application program;Search unit, for by described Identification information and described installation site search to obtain described first Prune Policies in Prune Policies set.
Optionally, described second determines module 41, including: judging unit, it is used for judging whether described installation site is positioned at Predetermined installation site;3rd determines unit, if being positioned at described predetermined installation site for described installation site, is determined Described first Prune Policies is to carry out, for first kind file, the Prune Policies cleared up;4th determines unit, if for described Installation site is not positioned at described predetermined installation site, and described first Prune Policies determined is for carry out for Equations of The Second Kind file The Prune Policies of cleaning, described first kind file is incomplete same with described Equations of The Second Kind file.
Optionally, described server also includes: the 3rd obtains module, for obtaining described the respectively from M electronic equipment The related data information of one application program, M is positive integer;3rd determines module, for being obtained based on from described M electronic equipment The described related data information obtained determines the label information for being supplied to user of described first application program.
Optionally, the described 3rd determines module, including: the 5th determines unit, for being obtained from described M electronic equipment Described related data information in determine described first application program program behavior data on described M electronic equipment And/or the user of described M electronic equipment is for user behavior data produced by described first application program;6th determines list Unit, for determining described label information based on described program behavior data and/or described user behavior data.
Optionally, described server also includes: the 3rd sending module, clear for by corresponding to described first Prune Policies Reason priority sends to described electronic equipment, so that described electronic equipment clears up plan based on described cleaning priority and described acquiescence Default priority slightly is selected the first application program described in a pair from described first Prune Policies and described acquiescence Prune Policies and is entered Row cleaning.
Optionally, described server also includes: the 4th determines module, for based on by described first Prune Policies to respectively The cleaning result report information that described first application program on individual electronic equipment carries out clearing up determines described first cleaning plan Cleaning priority slightly.
Optionally, the described 4th determines module, including: obtain unit, for obtaining presetting of described first Prune Policies Priority;Adjustment unit, for being adjusted described pre-set priority based on described cleaning result report information, thus obtains The described cleaning priority of described first Prune Policies.
The technical scheme provided in the embodiment of the present application, at least has the following technical effect that or advantage:
Due in embodiments of the present invention, when the first application program is cleared up, it is possible to obtain two set Prune Policies, Be respectively as follows: the acquiescence Prune Policies of the first Prune Policies and the electronic equipment obtained from server, the first Prune Policies based on Described first application program installation site on an electronic device determines;The cleaning that may then based on the first Prune Policies is preferential Level and the cleaning priority of acquiescence Prune Policies, therefrom select a kind of Prune Policies and clear up the first application program, also I other words, by the acquiescence Prune Policies of the first application program, the first application program is cleared up the most merely, and be to provide Multiple Prune Policies selects, so having reached Prune Policies controls more accurate technique effect.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more in this include institute in other embodiments Including some feature rather than further feature, but the combination of the feature of different embodiment means to be in the scope of the present invention Within and form different embodiments.Such as, in the following claims, embodiment required for protection any it One can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice Microprocessor or digital signal processor (DSP) realize in gateway according to embodiments of the present invention, proxy server, system The some or all functions of some or all parts.The present invention is also implemented as performing side as described herein Part or all equipment of method or device program (such as, computer program and computer program).Such The program realizing the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other shape Formula provides.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame Claim.
The invention discloses, A1, a kind of file clean-up method, including:
Carry out the first Prune Policies cleared up, described first Prune Policies base for the first application program from server acquisition Determine in described first application program installation site on an electronic device;
Judge that whether the cleaning priority of described first Prune Policies is higher than the cleaning priority giving tacit consent to Prune Policies;
If so, by described first Prune Policies, described first application program is cleared up;
If it is not, described first application program is cleared up by described acquiescence Prune Policies.
A2, method as described in A1, it is characterised in that described method also includes:
Obtain described server and send the described cleaning priority of described first Prune Policies extremely, wherein, described service Device is based on the cleaning knot cleared up described first application program on each electronic equipment by described first Prune Policies Really report information determines described cleaning priority.
A3, method as described in A2, it is characterised in that described cleaning result report information includes: delete information and/or leakage by mistake Delete information.
A4, method as described in A3, it is characterised in that the described information of deleting by mistake includes: the probabilistic information by mistake deleted and by mistake deleting At least one information in file type information;
The described leakage information of deleting includes: quantity of documents that probabilistic information that leakage is deleted, leakage are deleted, there is the number of electronic devices deleted of leakage In at least one information.
A5, method as described in A1-A4 is arbitrary, it is characterised in that obtain for the first application journey from server described Before first Prune Policies of sequence, described method also includes:
The installation site information of described first application program is sent to described server.
A6, method as described in A5, it is characterised in that described method also includes:
Detect the described first application program transplantable executable file of PE on described electronic equipment;
Transplantable for described PE executable file position is defined as described installation site.
A7, method as described in A1-A4 is arbitrary, it is characterised in that described by described first Prune Policies to described One application program is cleared up, including:
It is right that snapshot based on the file generated when installing described first application program on described electronic equipment is determined Described first application program carries out the file set for clearance cleared up;
Described file set for clearance is cleared up based on described first Prune Policies.
A8, method as described in A1-A4 is arbitrary, it is characterised in that described method also includes:
Obtaining server is the label information for being supplied to user that described first application program determines, described label is believed Breath is for determining based on described first application program related data information on M electronic equipment, and M is positive integer.
B9, a kind of file clean-up method, including:
Obtain the first application program installation site on an electronic device;
On described electronic equipment, described first application program cleared up is determined by described installation site One Prune Policies;
Described first Prune Policies is sent to described electronic equipment, so that described electronic equipment is based on described first cleaning Described first application program is cleared up by the acquiescence Prune Policies of tactful and described first application program.
B10, method as described in B9, it is characterised in that described being determined by described installation site is set at described electronics The first Prune Policies on Bei, described first application program cleared up, including:
The transplantable executable file of PE by described first application program determines the mark of described first application program Knowledge information;
Search to obtain described first cleaning in Prune Policies set by described identification information and described installation site Strategy.
B11, method as described in B9, it is characterised in that described being determined by described installation site is set at described electronics The first Prune Policies on Bei, described first application program cleared up, including:
Judge whether described installation site is positioned at predetermined installation site;
If described installation site is positioned at described predetermined installation site, described first Prune Policies determined for for First kind file carries out the Prune Policies cleared up;
If described installation site is not positioned at described predetermined installation site, described first Prune Policies determined is pin The Prune Policies clearing up Equations of The Second Kind file, described first kind file is incomplete same with described Equations of The Second Kind file.
B12, method as described in B9-B11 is arbitrary, it is characterised in that described method also includes:
Obtain the related data information of described first application program respectively from M electronic equipment, M is positive integer;
Described first application program is determined based on the described related data information obtained from described M electronic equipment For being supplied to the label information of user.
B13, method as described in B12, it is characterised in that described based on described in being obtained from described M electronic equipment Related data information determines the label information for being supplied to user of described first application program, including:
From the described related data information that described M electronic equipment is obtained, determine that described first application program is in institute State the user of the program behavior data on M electronic equipment and/or described M electronic equipment for described first application program institute The user behavior data produced;
Described label information is determined based on described program behavior data and/or described user behavior data.
B14, method as described in B9-B11 is arbitrary, it is characterised in that described method also includes:
Cleaning priority corresponding to described first Prune Policies is sent to described electronic equipment, so that described electronics sets Standby default priority based on described cleaning priority and described acquiescence Prune Policies is from described first Prune Policies and described silent Recognize and Prune Policies is selected the first application program described in a pair clear up.
B15, method as described in B14, it is characterised in that described method also includes:
Based on described first application program on each electronic equipment is cleared up by described first Prune Policies Cleaning result report information determines the cleaning priority of described first Prune Policies.
B16, method as described in B15, it is characterised in that described based on by described first Prune Policies to each electronics The cleaning result report information that described first application program on equipment carries out clearing up determines the clear of described first Prune Policies Reason priority, including:
Obtain the pre-set priority of described first Prune Policies;
Based on described cleaning result report information, described pre-set priority is adjusted, thus obtains described first cleaning The described cleaning priority of strategy.
C17, a kind of electronic equipment, including:
First acquisition module, for the first Prune Policies carrying out for the first application program clearing up from server acquisition, Described first Prune Policies determines based on described first application program installation site on an electronic device;
Judge module, for judging that whether the cleaning priority of described first Prune Policies is higher than giving tacit consent to the clear of Prune Policies Reason priority;
If so, first cleaning module, for clearing up described first application program by described first Prune Policies;
Second cleaning module, for if it is not, clear up described first application program by described acquiescence Prune Policies.
C18, electronic equipment as described in C17, it is characterised in that described electronic equipment also includes:
First obtains module, preferential for obtaining the described cleaning of described server transmission described first Prune Policies extremely Level, wherein, described server based on by described first Prune Policies to described first application program on each electronic equipment The cleaning result report information carrying out clearing up determines described cleaning priority.
C19, electronic equipment as described in C18, it is characterised in that described cleaning result report information includes: delete information by mistake And/or leakage delete information.
C20, electronic equipment as described in C19, it is characterised in that the described information of deleting by mistake includes: the probabilistic information by mistake deleted and At least one information in the file type information by mistake deleted;
The described leakage information of deleting includes: quantity of documents that probabilistic information that leakage is deleted, leakage are deleted, there is the number of electronic devices deleted of leakage In at least one information.
C21, electronic equipment as described in C17-C20 is arbitrary, it is characterised in that described electronic equipment also includes:
First sending module, for sending the installation site information of described first application program to described server.
C22, electronic equipment as described in C21, it is characterised in that described electronic equipment also includes:
Detection module, for detecting, described first application program PE on described electronic equipment is transplantable performs literary composition Part;
First determines module, for transplantable for described PE executable file position is defined as described installation position Put.
C23, electronic equipment as described in C17-C20 is arbitrary, it is characterised in that described first cleaning module, including:
First determines unit, for based on the literary composition generated when installing described first application program on described electronic equipment The snapshot of part determines the file set for clearance clearing up described first application program;
Cleaning unit, for clearing up based on described first Prune Policies described file set for clearance.
C24, electronic equipment as described in C17-C20 is arbitrary, it is characterised in that described electronic equipment also includes:
Second obtains module, is the mark for being supplied to user that described first application program determines for obtaining server Label information, described label information for determining based on described first application program related data information on M electronic equipment, M is positive integer.
D25, a kind of server, including:
Second acquisition module, for obtaining the first application program installation site on an electronic device;
Second determines module, for being determined on described electronic equipment described first application by described installation site Program carries out the first Prune Policies cleared up;
Second sending module, for sending described first Prune Policies to described electronic equipment, so that described electronics sets Described first application program is carried out by standby acquiescence Prune Policies based on described first Prune Policies and described first application program Cleaning.
D26, server as described in D25, it is characterised in that described second determines module, including:
Second determines unit, described for being determined by the transplantable executable file of PE of described first application program The identification information of the first application program;
Search unit, for searching to obtain in Prune Policies set by described identification information and described installation site Described first Prune Policies.
D27, server as described in D25, it is characterised in that described second determines module, including:
Judging unit, is used for judging whether described installation site is positioned at predetermined installation site;
3rd determines unit, if being positioned at described predetermined installation site for described installation site, that is determined is described First Prune Policies is to carry out, for first kind file, the Prune Policies cleared up;
4th determines unit, if not being positioned at described predetermined installation site, the institute determined for described installation site Stating the first Prune Policies is to carry out the Prune Policies cleared up, described first kind file and described Equations of The Second Kind literary composition for Equations of The Second Kind file Part is incomplete same.
D28, server as described in D25-D27 is arbitrary, it is characterised in that described server also includes:
3rd obtains module, for obtaining the related data information of described first application program respectively from M electronic equipment, M is positive integer;
3rd determines module, for determining based on the described related data information obtained from described M electronic equipment The label information for being supplied to user of described first application program.
D29, server as described in D28, it is characterised in that the described 3rd determines module, including:
5th determines unit, for determining institute from the described related data information that described M electronic equipment is obtained State the user of first application program program behavior data on described M electronic equipment and/or described M electronic equipment for User behavior data produced by described first application program;
6th determines unit, described for determining based on described program behavior data and/or described user behavior data Label information.
D30, server as described in D25-D27 is arbitrary, it is characterised in that described server also includes:
3rd sending module, sets for the cleaning priority corresponding to described first Prune Policies is sent extremely described electronics It is standby, so that described electronic equipment default priority based on described cleaning priority and described acquiescence Prune Policies is from described first Prune Policies and described acquiescence Prune Policies select the first application program described in a pair clear up.
D31, server as described in D30, it is characterised in that described server also includes:
4th determines module, for answering described first on each electronic equipment based on by described first Prune Policies The cleaning result report information carrying out clearing up by program determines the cleaning priority of described first Prune Policies.
D32, server as described in D31, it is characterised in that the described 4th determines module, including:
Obtain unit, for obtaining the pre-set priority of described first Prune Policies;
Adjustment unit, for being adjusted described pre-set priority based on described cleaning result report information, thus obtains Obtain the described cleaning priority of described first Prune Policies.

Claims (10)

1. a file clean-up method, it is characterised in that including:
Carry out the first Prune Policies cleared up for the first application program from server acquisition, described first Prune Policies is based on institute State the first application program installation site on an electronic device to determine;
Judge that whether the cleaning priority of described first Prune Policies is higher than the cleaning priority giving tacit consent to Prune Policies;
If so, by described first Prune Policies, described first application program is cleared up;
If it is not, described first application program is cleared up by described acquiescence Prune Policies.
2. the method for claim 1, it is characterised in that described method also includes:
Obtain described server and send the described cleaning priority of described first Prune Policies extremely, wherein, described server base In the cleaning result report described first application program on each electronic equipment cleared up by described first Prune Policies Announcement information determines described cleaning priority.
3. method as claimed in claim 2, it is characterised in that described cleaning result report information includes: delete by mistake information and/or Information is deleted in leakage.
4. method as claimed in claim 3, it is characterised in that the described information of deleting by mistake includes: the probabilistic information by mistake deleted and by mistake deleting File type information at least one information;
The described leakage information of deleting includes: quantity of documents that probabilistic information that leakage is deleted, leakage are deleted, exist in the number of electronic devices deleted of leakage At least one information.
5. the method as described in claim 1-4 is arbitrary, it is characterised in that obtain for the first application journey from server described Before first Prune Policies of sequence, described method also includes:
The installation site information of described first application program is sent to described server.
6. method as claimed in claim 5, it is characterised in that described method also includes:
Detect the described first application program transplantable executable file of PE on described electronic equipment;
Transplantable for described PE executable file position is defined as described installation site.
7. the method as described in claim 1-4 is arbitrary, it is characterised in that described by described first Prune Policies to described One application program is cleared up, including:
Snapshot based on the file generated when installing described first application program on described electronic equipment is determined described First application program carries out the file set for clearance cleared up;
Described file set for clearance is cleared up based on described first Prune Policies.
8. a file clean-up method, it is characterised in that including:
Obtain the first application program installation site on an electronic device;
Determine that first cleared up described first application program on described electronic equipment is clear by described installation site Reason strategy;
Described first Prune Policies is sent to described electronic equipment, so that described electronic equipment is based on described first Prune Policies With the acquiescence Prune Policies of described first application program, described first application program is cleared up.
9. an electronic equipment, it is characterised in that including:
First acquisition module, for the first Prune Policies carrying out for the first application program clearing up from server acquisition, described First Prune Policies determines based on described first application program installation site on an electronic device;
Judge module, the most excellent higher than the cleaning of acquiescence Prune Policies for judging the cleaning priority of described first Prune Policies First level;
If so, first cleaning module, for clearing up described first application program by described first Prune Policies;
Second cleaning module, for if it is not, clear up described first application program by described acquiescence Prune Policies.
10. a server, it is characterised in that including:
Second acquisition module, for obtaining the first application program installation site on an electronic device;
Second determines module, for being determined on described electronic equipment described first application program by described installation site Carry out the first Prune Policies cleared up;
Second sending module, for described first Prune Policies is sent to described electronic equipment, so that described electronic equipment base Described first application program is cleared up by the acquiescence Prune Policies in described first Prune Policies and described first application program.
CN201610512757.8A 2016-06-30 2016-06-30 A kind of file clean-up method, electronic equipment and server Active CN106201601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610512757.8A CN106201601B (en) 2016-06-30 2016-06-30 A kind of file clean-up method, electronic equipment and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610512757.8A CN106201601B (en) 2016-06-30 2016-06-30 A kind of file clean-up method, electronic equipment and server

Publications (2)

Publication Number Publication Date
CN106201601A true CN106201601A (en) 2016-12-07
CN106201601B CN106201601B (en) 2019-11-26

Family

ID=57463999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610512757.8A Active CN106201601B (en) 2016-06-30 2016-06-30 A kind of file clean-up method, electronic equipment and server

Country Status (1)

Country Link
CN (1) CN106201601B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669779A (en) * 2018-12-25 2019-04-23 上海碳蓝网络科技有限公司 For determining the cleaning path of data, the method and apparatus of cleaning data
CN110018985A (en) * 2017-11-08 2019-07-16 阿里巴巴集团控股有限公司 Snapshot delet method, apparatus and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876914A (en) * 2010-04-23 2010-11-03 中兴通讯股份有限公司 Method for deleting files and mobile terminal
CN103645922A (en) * 2013-12-25 2014-03-19 北京奇虎科技有限公司 Software cleaning method based on cloud query
CN104317956A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Query and memory space cleaning method and system based on cloud server
CN104754002A (en) * 2013-12-30 2015-07-01 北京金山网络科技有限公司 File cleaning method and device, mobile terminal and cloud-side server
CN105159913A (en) * 2015-07-06 2015-12-16 北京金山安全软件有限公司 Method and device for determining file to be cleaned

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876914A (en) * 2010-04-23 2010-11-03 中兴通讯股份有限公司 Method for deleting files and mobile terminal
CN103645922A (en) * 2013-12-25 2014-03-19 北京奇虎科技有限公司 Software cleaning method based on cloud query
CN104754002A (en) * 2013-12-30 2015-07-01 北京金山网络科技有限公司 File cleaning method and device, mobile terminal and cloud-side server
CN104317956A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Query and memory space cleaning method and system based on cloud server
CN105159913A (en) * 2015-07-06 2015-12-16 北京金山安全软件有限公司 Method and device for determining file to be cleaned

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018985A (en) * 2017-11-08 2019-07-16 阿里巴巴集团控股有限公司 Snapshot delet method, apparatus and system
CN110018985B (en) * 2017-11-08 2022-10-28 阿里巴巴集团控股有限公司 Snapshot deleting method, device and system
CN109669779A (en) * 2018-12-25 2019-04-23 上海碳蓝网络科技有限公司 For determining the cleaning path of data, the method and apparatus of cleaning data

Also Published As

Publication number Publication date
CN106201601B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN103019687B (en) Methods of exhibiting and device for pop window information
CN102736978B (en) A kind of method and device detecting the installment state of application program
US10216510B2 (en) Silent upgrade of software with dependencies
US20110258216A1 (en) Usability enhancements for bookmarks of browsers
CN102981915B (en) A kind of inter-application communication method and device
CN103164654B (en) A kind of method carrying out information alert in pop-up and user interface display device
WO2018129509A1 (en) Managing, using, and updating application resources
CN102831351B (en) A kind of method and apparatus for representing computer graphic target security attribute
US7793223B2 (en) Methods, systems, and computer program products for managing user focus change between applications
CN107665306B (en) A kind of method, apparatus, client and the server of the injection of detection illegal file
CN106201602A (en) A kind of tag providing method, acquisition methods, server and electronic equipment
CN103559065B (en) Method and system for OTA (Over-the-Air Technology) upgrade
US20120311709A1 (en) Automatic management system for group and mutant information of malicious codes
CN103077353A (en) Method and device for actively defending rogue program
CN104536792A (en) Method and device for eliminating application program residual files
CN105335435B (en) File management method and information processing equipment
CN103034546B (en) The method and device of inter-application communication in iOS system
US20150242470A1 (en) Systems and methods for recommending software applications
CN104598806A (en) Method and device for registering detecting
CN105512294A (en) Multi-media file update prompting method and device
CN101000552A (en) Java kind loading method and loader
CN102938037B (en) A kind of plug-in unit call method for browser and plugin manager
CN105631312A (en) Method and system for processing rogue programs
CN106372507A (en) Method and device for detecting malicious document
US11928206B2 (en) Selective import/export address table filtering

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

Effective date of registration: 20220728

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230710

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.

TR01 Transfer of patent right