CN107330067B - Software Garbage Scanning Method and Device - Google Patents

Software Garbage Scanning Method and Device Download PDF

Info

Publication number
CN107330067B
CN107330067B CN201710521389.8A CN201710521389A CN107330067B CN 107330067 B CN107330067 B CN 107330067B CN 201710521389 A CN201710521389 A CN 201710521389A CN 107330067 B CN107330067 B CN 107330067B
Authority
CN
China
Prior art keywords
software
terminal
scanning
garbage
scanned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710521389.8A
Other languages
Chinese (zh)
Other versions
CN107330067A (en
Inventor
刘艳楠
杜学仕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710521389.8A priority Critical patent/CN107330067B/en
Publication of CN107330067A publication Critical patent/CN107330067A/en
Application granted granted Critical
Publication of CN107330067B publication Critical patent/CN107330067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1724Details of de-fragmentation performed by the file system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements

Abstract

The invention provides a software garbage scanning method and a device, wherein the method comprises the following steps: when software garbage scanning is performed for the first time aiming at a terminal, sequentially scanning each software on the terminal according to the sequence mark of each software in a preset first scanning rule base to obtain the garbage of each software on the terminal; the first-scanning rule base stores names and sequence marks of a plurality of software sorted according to the size of generated garbage in a descending order; therefore, most software garbage can be scanned as fast as possible, most software garbage can be scanned when the overtime is reached, the scanning efficiency is improved, the terminal user does not need to wait for a long time on a garbage scanning interface, the time consumed is short, and the user scanning experience is improved.

Description

Software garbage scan method and device
Technical field
The present invention relates to field of communication technology more particularly to a kind of software garbage scan method and devices.
Background technique
Scanning software or antivirus software currently on the market, when carrying out software garbage scanning for the first time for terminal, use Method is random scanning, is difficult to scan the software garbage of the overwhelming majority when time-out time reaches using this scanning mode, Scan efficiency is poor, to scan the software garbage of the overwhelming majority, then needs terminal user to wait at rubbish scanning interface longer Time, short time consumption is long, influences scanning experience.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of software garbage scan method, for solving the prior art Middle scan efficiency is poor, the long problem of short time consumption.
Second object of the present invention is to propose a kind of software garbage scanning means.
Third object of the present invention is to propose another software garbage scanning means.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
5th purpose of the invention is to propose a kind of computer program product.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of software garbage scan method, comprising:
The software garbage scan request of terminal user is received, is carried in the software garbage scan request: the mark of terminal;
The scanning of software garbage for the first time for the terminal is judged whether it is according to the mark of the terminal;
If the software garbage for the first time for the terminal scans, then obtains preset head and sweep rule base;
Each software in the terminal is swept in order according to the sequence notation that the head sweeps each software in rule base It retouches, obtains the rubbish of each software in the terminal;The head, which is swept, to be preserved in rule base according to generation rubbish size descending sort Multiple softwares title and sequence notation.
The software garbage scan method of the embodiment of the present invention, by for terminal carry out for the first time software garbage scan when, Each software in terminal is scanned in order according to the sequence notation that preset head sweeps each software in rule base, obtains terminal The rubbish of upper each software;Head sweep preserved in rule base according to generate the descending sort of rubbish size multiple softwares title and Sequence notation;So as to scan the software garbage of the overwhelming majority as quickly as possible, can be scanned when time-out time reaches Most software garbage out improves scan efficiency, does not need terminal user at rubbish scanning interface and waits long period, consumption When the time it is short, improve scanning input experience.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of software garbage scanning means, comprising:
Receiving module is taken in the software garbage scan request for receiving the software garbage scan request of terminal user Band: the mark of terminal;
First judgment module judges whether it is the software rubbish for the first time for the terminal for the mark according to the terminal Rubbish scanning;
First obtains module, for obtaining preset head and sweeping rule in the scanning of software garbage for the first time for the terminal Then library;
First scan module, for sweeping the sequence notation of each software in rule base according to the head to each in the terminal Software is scanned in order, obtains the rubbish of each software in the terminal;The head, which is swept in rule base, to be preserved according to generation The title and sequence notation of multiple softwares of rubbish size descending sort.
The software garbage scanning means of the embodiment of the present invention, by for terminal carry out for the first time software garbage scan when, Each software in terminal is scanned in order according to the sequence notation that preset head sweeps each software in rule base, obtains terminal The rubbish of upper each software;Head sweep preserved in rule base according to generate the descending sort of rubbish size multiple softwares title and Sequence notation;So as to scan the software garbage of the overwhelming majority as quickly as possible, can be scanned when time-out time reaches Most software garbage out improves scan efficiency, does not need terminal user at rubbish scanning interface and waits long period, consumption When the time it is short, improve scanning input experience.
In order to achieve the above object, third aspect present invention embodiment proposes another software garbage scanning means, including deposit Reservoir, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that the processing Device realizes software garbage scan method as described above when executing described program.
To achieve the goals above, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory Medium realizes method as described above when the instruction in the storage medium is executed by processor.
In order to achieve the above object, fifth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction processing unit in machine program product executes, a kind of software garbage scan method is executed, which comprises
The software garbage scan request of terminal user is received, is carried in the software garbage scan request: the mark of terminal;
The scanning of software garbage for the first time for the terminal is judged whether it is according to the mark of the terminal;
If the software garbage for the first time for the terminal scans, then obtains preset head and sweep rule base;
Each software in the terminal is swept in order according to the sequence notation that the head sweeps each software in rule base It retouches, obtains the rubbish of each software in the terminal;The head, which is swept, to be preserved in rule base according to generation rubbish size descending sort Multiple softwares title and sequence notation.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of software garbage scan method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another software garbage scan method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of software garbage scanning means provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another software garbage scanning means provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another software garbage scanning means provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another software garbage scanning means provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another software garbage scanning means provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another software garbage scanning means provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the software garbage scan method and device of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram of software garbage scan method provided in an embodiment of the present invention.As shown in Figure 1, should Software garbage scan method the following steps are included:
S101, the software garbage scan request for receiving terminal user, carry in software garbage scan request: the mark of terminal Know.
The executing subject of software garbage scan method provided by the invention is software garbage scanning means, software garbage scanning Device, which is specifically as follows, installs antivirus software at the terminal or other software with rubbish scanning function etc..Terminal is for example It can be the mobile terminals such as mobile phone, PAD.Wherein, the mark of terminal can be the International Mobile Equipment Identity code IMEI etc. of terminal It can be with the number etc. of unique identification terminal.
In the present embodiment, software garbage scanning means specifically can receive the rubbish scan request or software of terminal user Rubbish scan request etc., software garbage are the one of which in rubbish, when software garbage is arrived in scanning, are sentenced according to the mark of terminal Whether disconnected be the scanning of software garbage for the first time for terminal.
S102, the scanning of software garbage for the first time for terminal is judged whether it is according to the mark of terminal.
In the present embodiment, software garbage scanning means can be set scanning record sheet, scan be stored in record sheet into The mark of the terminal of software garbage of going scanning.Corresponding, the process that software garbage scanning means executes step 102 specifically can be with To judge the mark for whether being stored with terminal in record sheet scanned according to the mark inquiry scan record sheet of terminal;If scanning note The not stored mark for having terminal of record table, it is determined that be the scanning of software garbage for the first time for terminal.
If S103, the scanning of software garbage for the first time for terminal, then obtain preset head and sweep rule base.
In the present embodiment, head sweeps the title that all softwares that can be scanned are stored in rule base and corresponding suitable Sequence label.The sequence notation of software is specifically as follows sequence number etc. can be with the symbol of order of representation.
In the present embodiment, head sweeps rule base and can obtain in advance from downloadings such as corresponding servers, is then store in terminal Predeterminated position, so as to software garbage scanning means acquisition.
In the present embodiment, software garbage scanning means sweeps the sequence notation of each software in rule base in terminal according to head Each software is scanned in order, in acquisition terminal after the rubbish of each software, can save software garbage scanning result.Software In rubbish scanning result include: the title of each software, and the quantity of refuse of each software scanned.
Corresponding, in the case where not being the scanning of software garbage for the first time for terminal, the software garbage in this implementation is swept The method of retouching can also include: if not the software garbage for the first time for terminal scans, then the software garbage for obtaining the last time is swept Retouch result;The scanning sequency of each software in terminal is determined according to the last software garbage scanning result;According to each in terminal The scanning sequency of software is scanned software each in terminal, obtains the rubbish of each software.
Specifically, in the present embodiment, in the case where not being the scanning of software garbage for the first time for terminal, software garbage is swept Imaging apparatus specifically can determine this each software according to the quantity of refuse of each software in the last software garbage scanning result Scanning sequency is scanned software each in terminal according to the scanning sequency of this each software, obtains the rubbish of each software.
Further, in this embodiment in the case where not being the scanning of software garbage for the first time for terminal, if in terminal In the presence of the new software scanned without software garbage newly installed, then software garbage scanning means can first carry out the new software Scanning, is then scanned software each in terminal according still further to the scanning sequency of this each software, obtains the rubbish of each software.Or Person, software garbage scanning means determine that the new software had not been used according to the usage record of new software, then can not be to new soft Part is scanned, and is directly scanned according to the scanning sequency of this each software to software each in terminal, is obtained the rubbish of each software Rubbish.
S104, each software in terminal is scanned in order according to the sequence notation that head sweeps each software in rule base, Obtain the rubbish of each software in terminal;Head, which is swept, to be preserved in rule base according to the multiple softwares for generating the descending sort of rubbish size Title and sequence notation.
In the present embodiment, since the software being commonly used in terminal is usually software that is more fixed, and being commonly used The rubbish that the software for being more prone to produce rubbish, and being commonly used generates is generally the overwhelming majority of total rubbish.Therefore, according to frequent Using and the biggish multiple softwares of quantity of refuse that generate sweep rule base to make head, and rule base is swept to carry out software according to the head Rubbish scanning, can effectively scan rubbish most in terminal within the shortest time, improve in the unit time Scanning speed.
It further, on the basis of the above embodiments, can also include: to judge whether to reach to preset after step 104 Time-out time or scanning whether complete;If reaching preset time-out time or scanning being completed, to the software scanned Rubbish is purged operation.
In the present embodiment, if being all scanned to the rubbish of all softwares in terminal, the general used time is longer, therefore needs Time-out time is set, so that after the completion of reaching preset time-out time or scanning, software garbage scanning means exits rubbish Rubbish scans interface, into rubbish result interface, carries out rubbish clear operation so that terminal user clicks corresponding button.
The software garbage scan method of the embodiment of the present invention, by for terminal carry out for the first time software garbage scan when, Each software in terminal is scanned in order according to the sequence notation that preset head sweeps each software in rule base, obtains terminal The rubbish of upper each software;Head sweep preserved in rule base according to generate the descending sort of rubbish size multiple softwares title and Sequence notation;So as to scan the software garbage of the overwhelming majority as quickly as possible, can be scanned when time-out time reaches Most software garbage out improves scan efficiency, does not need terminal user at rubbish scanning interface and waits long period, consumption When the time it is short, improve scanning input experience.
Fig. 2 is the flow diagram of another software garbage scan method provided in an embodiment of the present invention, as shown in Fig. 2, On the basis of embodiment shown in Fig. 1, step 104 can specifically include following steps:
S1041, each software to be scanned in terminal is obtained.
Specifically, the title of each software to be scanned in the available terminal of software garbage scanning means and position Deng.
S1042, the sequence notation that each software in rule base is swept according to head, determine that the scanning of each software to be scanned is suitable Sequence.
In the present embodiment, software garbage scanning means can be according to the title of each software to be scanned, and inquiry is first one by one Rule base is swept, determines the sequence notation of each software to be scanned, so that it is determined that the scanning sequency of each software to be scanned.
S1043, each software in terminal is scanned according to the scanning sequency of each software to be scanned, obtains terminal The rubbish of upper each software.
In the present embodiment, software garbage scanning means can successively be swept according to the scanning sequency of each software to be scanned Retouch the storage positions, data cached storage position such as installation site, rubbish storage placement, the registration table of each software in terminal Deng the rubbish of each software in acquisition terminal.
The software garbage scan method of the embodiment of the present invention, by for terminal carry out for the first time software garbage scan when, Obtain each software to be scanned in terminal;The sequence notation of each software in rule base is swept according to head, is determined to be scanned each The scanning sequency of software;Each software in terminal is scanned according to the scanning sequency of each software to be scanned, is obtained eventually The rubbish of each software on end;Head sweep preserved in rule base according to generate the descending sort of rubbish size multiple softwares title with And sequence notation;So as to scan the software garbage of the overwhelming majority as quickly as possible, can be swept when time-out time reaches The software garbage of the overwhelming majority is described, scan efficiency is improved, terminal user is not needed at rubbish scanning interface and waits the long period, Short time consumption is short, improves scanning input experience.
Fig. 3 is a kind of structural schematic diagram of software garbage scanning means provided in an embodiment of the present invention.As shown in figure 3, packet Include: receiving module 31, first judgment module 32, first obtain module 33 and the first scan module 34.
Wherein, receiving module 31, for receiving the software garbage scan request of terminal user, the software garbage scanning is asked Ask middle carrying: the mark of terminal;
First judgment module 32 judges whether it is the software for the first time for the terminal for the mark according to the terminal Rubbish scanning;
First obtains module 33, for obtaining preset head and sweeping in the scanning of software garbage for the first time for the terminal Rule base;
First scan module 34, for sweeping the sequence notation of each software in rule base according to the head in the terminal Each software is scanned in order, obtains the rubbish of each software in the terminal;The head, which is swept in rule base, to be preserved according to production The title and sequence notation of multiple softwares of raw rubbish size descending sort.
Software garbage scanning means provided by the invention is specifically as follows the antivirus software installed at the terminal or has The other software etc. of rubbish scanning function.Terminal can be for example mobile phone, PAD, computer etc..
In the present embodiment, software garbage scanning means is specifically as follows the antivirus software installed at the terminal or has rubbish The other software etc. of rubbish scanning function.Terminal can be for example the mobile terminals such as mobile phone, PAD.Wherein, the mark of terminal can be International Mobile Equipment Identity code IMEI of terminal etc. can be with the number etc. of unique identification terminal.
In the present embodiment, head sweeps the title that all softwares that can be scanned are stored in rule base and corresponding suitable Sequence label.The sequence notation of software is specifically as follows sequence number etc. can be with the symbol of order of representation.
In the present embodiment, head sweeps rule base and can obtain in advance from downloadings such as corresponding servers, is then store in terminal Predeterminated position, so as to software garbage scanning means acquisition.
In the present embodiment, since the software being commonly used in terminal is usually software that is more fixed, and being commonly used The rubbish that the software for being more prone to produce rubbish, and being commonly used generates is generally the overwhelming majority of total rubbish.Therefore, according to frequent Using and the biggish multiple softwares of quantity of refuse that generate sweep rule base to make head, and rule base is swept to carry out software according to the head Rubbish scanning, can effectively scan rubbish most in terminal within the shortest time, improve in the unit time Scanning speed.
The software garbage scanning means of the embodiment of the present invention, by for terminal carry out for the first time software garbage scan when, Each software in terminal is scanned in order according to the sequence notation that preset head sweeps each software in rule base, obtains terminal The rubbish of upper each software;Head sweep preserved in rule base according to generate the descending sort of rubbish size multiple softwares title and Sequence notation;So as to scan the software garbage of the overwhelming majority as quickly as possible, can be scanned when time-out time reaches Most software garbage out improves scan efficiency, does not need terminal user at rubbish scanning interface and waits long period, consumption When the time it is short, improve scanning input experience.
Further, in conjunction with reference Fig. 4, on the basis of embodiment shown in Fig. 3, first scan module 34 be can wrap It includes:
Acquiring unit 341, the first determination unit 342 and scanning element 343.
Wherein, acquiring unit 341, for obtaining each software to be scanned in the terminal;
First determination unit 342 determines described wait sweep for sweeping the sequence notation of each software in rule base according to the head The scanning sequency for each software retouched;
Scanning element 343, for according to the scanning sequency of each software to be scanned to each soft in the terminal Part is scanned, and obtains the rubbish of each software in the terminal.
In the present embodiment, software garbage scanning means can be according to the title of each software to be scanned, and inquiry is first one by one Rule base is swept, determines the sequence notation of each software to be scanned, so that it is determined that the scanning sequency of each software to be scanned.
In the present embodiment, software garbage scanning means can successively be swept according to the scanning sequency of each software to be scanned Retouch the storage positions, data cached storage position such as installation site, rubbish storage placement, the registration table of each software in terminal Deng the rubbish of each software in acquisition terminal.
The software garbage scanning means of the embodiment of the present invention, by for terminal carry out for the first time software garbage scan when, Obtain each software to be scanned in terminal;The sequence notation of each software in rule base is swept according to head, is determined to be scanned each The scanning sequency of software;Each software in terminal is scanned according to the scanning sequency of each software to be scanned, is obtained eventually The rubbish of each software on end;Head sweep preserved in rule base according to generate the descending sort of rubbish size multiple softwares title with And sequence notation;So as to scan the software garbage of the overwhelming majority as quickly as possible, can be swept when time-out time reaches The software garbage of the overwhelming majority is described, scan efficiency is improved, terminal user is not needed at rubbish scanning interface and waits the long period, Short time consumption is short, improves scanning input experience.
Further, in conjunction with reference Fig. 5, on the basis of embodiment shown in Fig. 3, the software garbage scanning means is also It may include: the second judgment module 35 and removing module 36.
Wherein, the second judgment module 35, for judging whether reach preset time-out time or scanning completes;
Module 36 is removed, is used for when reaching preset time-out time or scanning is completed, to the software garbage scanned It is purged operation.
In the present embodiment, if being all scanned to the rubbish of all softwares in terminal, the general used time is longer, therefore needs Time-out time is set, so that after the completion of reaching preset time-out time or scanning, software garbage scanning means exits rubbish Rubbish scans interface, into rubbish result interface, carries out rubbish clear operation so that terminal user clicks corresponding button.
Further, in conjunction with reference Fig. 6, on the basis of embodiment shown in Fig. 3, the first judgment module 32 be can wrap It includes: judging unit 321 and the second determination unit 322.
Wherein, judging unit 321, for inquiring preset scanning record sheet according to the mark of the terminal, described in judgement Whether the mark of the terminal is stored in scanning record sheet;It is stored in the scanning record sheet and carried out software garbage scanning Terminal mark;
Second determination unit 322, in the not stored mark for having the terminal of the scanning record sheet, determination to be needle The scanning of software garbage for the first time to the terminal.
Corresponding, the device can also include: memory module 37, for storing the mark of the terminal to described It scans in record sheet.
In the present embodiment, software garbage scanning means sweeps the sequence notation of each software in rule base in terminal according to head Each software is scanned in order, in acquisition terminal after the rubbish of each software, can save software garbage scanning result.Software In rubbish scanning result include: the title of each software, and the quantity of refuse of each software scanned.
Further, in conjunction with reference Fig. 7, on the basis of embodiment shown in Fig. 3, the software garbage scanning means is also It may include: the second acquisition module 38, determining module 39 and the second scan module 40.
Wherein, second module 38 is obtained, for obtaining most when not being the scanning of software garbage for the first time for the terminal Nearly primary software garbage scanning result;
Determining module 39, for determining each software in the terminal according to the software garbage scanning result of described the last time Scanning sequency;
Second scan module 40, for according to the scanning sequency of software each in the terminal to each software in the terminal into Row scanning, obtains the rubbish of each software.
In the case where not being the scanning of software garbage for the first time for terminal, the software garbage scan method in this implementation is also It may include: the scanning of software garbage for the first time if not for terminal, then obtain the last software garbage scanning result;Root The scanning sequency of each software in terminal is determined according to the last software garbage scanning result;According to the scanning of software each in terminal Sequence is scanned software each in terminal, obtains the rubbish of each software.
In the present embodiment, in the case where not being the scanning of software garbage for the first time for terminal, software garbage scanning means Specifically it can determine that the scanning of this each software is suitable according to the quantity of refuse of each software in the last software garbage scanning result Sequence is scanned software each in terminal according to the scanning sequency of this each software, obtains the rubbish of each software.
Further, in this embodiment in the case where not being the scanning of software garbage for the first time for terminal, if in terminal In the presence of the new software scanned without software garbage newly installed, then software garbage scanning means can first carry out the new software Scanning, is then scanned software each in terminal according still further to the scanning sequency of this each software, obtains the rubbish of each software.Or Person, software garbage scanning means determine that the new software had not been used according to the usage record of new software, then can not be to new soft Part is scanned, and is directly scanned according to the scanning sequency of this each software to software each in terminal, is obtained the rubbish of each software Rubbish.
In above-described embodiment, the concrete function description of each module can be referring to figs. 1 to embodiment illustrated in fig. 2, herein no longer It is described in detail.
Fig. 8 is the structural schematic diagram of another software garbage scanning means provided in an embodiment of the present invention.The software garbage Scanning means includes:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002 Machine program.
Processor 1002 realizes the software garbage scan method provided in above-described embodiment when executing described program.
Further, software garbage scanning means further include:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
Processor 1002 realizes software garbage scan method described in above-described embodiment when for executing described program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory 1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in Fig. 8, it is not intended that an only bus or a type of convenient for indicating Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present embodiment also provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, It is characterized in that, which realizes software garbage scan method as described above when being executed by processor.
The present embodiment also provides a kind of computer program product, when the instruction processing unit in the computer program product is held When row, a kind of software garbage scan method is executed, which comprises
The software garbage scan request of terminal user is received, is carried in the software garbage scan request: the mark of terminal;
The scanning of software garbage for the first time for the terminal is judged whether it is according to the mark of the terminal;
If the software garbage for the first time for the terminal scans, then obtains preset head and sweep rule base;
Each software in the terminal is swept in order according to the sequence notation that the head sweeps each software in rule base It retouches, obtains the rubbish of each software in the terminal;The head, which is swept, to be preserved in rule base according to generation rubbish size descending sort Multiple softwares title and sequence notation.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (12)

1. a kind of software garbage scan method characterized by comprising
The software garbage scan request of terminal user is received, is carried in the software garbage scan request: the mark of terminal;
The scanning of software garbage for the first time for the terminal is judged whether it is according to the mark of the terminal;
If the software garbage for the first time for the terminal scans, then obtains preset head and sweep rule base;
Each software in the terminal is scanned in order according to the sequence notation that the head sweeps each software in rule base, is obtained Take the rubbish of each software in the terminal;The head, which is swept, to be preserved in rule base according to the multiple of generation rubbish size descending sort The title and sequence notation of software;
The mark according to the terminal judges whether it is the scanning of software garbage for the first time for the terminal, comprising:
Preset scanning record sheet is inquired according to the mark of the terminal, judges whether to be stored in the scanning record sheet described The mark of terminal;The mark for carrying out the terminal of software garbage scanning is stored in the scanning record sheet;
If the not stored mark for having the terminal of the scanning record sheet, it is determined that be the software garbage for the first time for the terminal Scanning.
2. the method according to claim 1, wherein the sequence for sweeping each software in rule base according to the head Label is scanned each software in the terminal in order, obtains the rubbish of each software in the terminal, comprising:
Obtain each software to be scanned in the terminal;
The sequence notation that each software in rule base is swept according to the head determines the scanning sequency of each software to be scanned;
Each software in the terminal is scanned according to the scanning sequency of each software to be scanned, obtains the end The rubbish of each software on end.
3. the method according to claim 1, wherein the sequence notation for sweeping each software in rule base according to head Each software in the terminal is scanned in order, is obtained in the terminal after the rubbish of each software, further includes:
Judge whether reach preset time-out time or scanning completes;
If reaching preset time-out time or scanning being completed, operation is purged to the software garbage scanned.
4. the method according to claim 1, wherein the sequence notation for sweeping each software in rule base according to head Each software in the terminal is scanned in order, is obtained in the terminal after the rubbish of each software, further includes:
The mark of the terminal is stored to the scanning record sheet.
5. the method according to claim 1, wherein further include:
If not the software garbage for the first time for the terminal scans, then the last software garbage scanning result is obtained;
The scanning sequency of each software in the terminal is determined according to the software garbage scanning result of described the last time;
Each software in the terminal is scanned according to the scanning sequency of software each in the terminal, obtains the rubbish of each software Rubbish.
6. a kind of software garbage scanning means characterized by comprising
Receiving module carries: eventually for receiving the software garbage scan request of terminal user in the software garbage scan request The mark at end;
First judgment module judges whether it is the software garbage for the first time for the terminal for the mark according to the terminal and sweeps It retouches;
First obtains module, for obtaining preset head and sweeping rule base in the scanning of software garbage for the first time for the terminal;
First scan module, for sweeping the sequence notation of each software in rule base according to the head to each software in the terminal It is scanned in order, obtains the rubbish of each software in the terminal;The head, which is swept, to be preserved in rule base according to generation rubbish The title and sequence notation of multiple softwares of size descending sort;
The first judgment module includes:
Judging unit judges in the scanning record sheet for inquiring preset scanning record sheet according to the mark of the terminal Whether the mark of the terminal is stored with;The mark for carrying out the terminal of software garbage scanning is stored in the scanning record sheet Know;
Second determination unit, in the not stored mark for having the terminal of the scanning record sheet, determination to be for described The software garbage for the first time of terminal scans.
7. device according to claim 6, which is characterized in that first scan module includes:
Acquiring unit, for obtaining each software to be scanned in the terminal;
First determination unit determines described to be scanned each for sweeping the sequence notation of each software in rule base according to the head The scanning sequency of a software;
Scanning element, for being swept according to the scanning sequency of each software to be scanned to each software in the terminal It retouches, obtains the rubbish of each software in the terminal.
8. device according to claim 6, which is characterized in that further include:
Second judgment module, for judging whether reach preset time-out time or scanning completes;
Module is removed, for carrying out to the software garbage scanned clear when reaching preset time-out time or scanning is completed Except operation.
9. device according to claim 6, which is characterized in that further include:
Memory module, for storing the mark of the terminal to the scanning record sheet.
10. device according to claim 6, which is characterized in that further include:
Second obtains module, for obtaining the soft of the last time when not being the scanning of software garbage for the first time for the terminal Part rubbish scanning result;
Determining module, for determining the scanning of each software in the terminal according to the software garbage scanning result of described the last time Sequentially;
Second scan module, for being swept according to the scanning sequency of software each in the terminal to each software in the terminal It retouches, obtains the rubbish of each software.
11. a kind of software garbage scanning means characterized by comprising
Memory, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that institute It states when processor executes described program and realizes such as software garbage scan method as claimed in any one of claims 1 to 5.
12. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program Such as software garbage scan method as claimed in any one of claims 1 to 5 is realized when being executed by processor.
CN201710521389.8A 2017-06-30 2017-06-30 Software Garbage Scanning Method and Device Active CN107330067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710521389.8A CN107330067B (en) 2017-06-30 2017-06-30 Software Garbage Scanning Method and Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710521389.8A CN107330067B (en) 2017-06-30 2017-06-30 Software Garbage Scanning Method and Device

Publications (2)

Publication Number Publication Date
CN107330067A CN107330067A (en) 2017-11-07
CN107330067B true CN107330067B (en) 2019-11-26

Family

ID=60199402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710521389.8A Active CN107330067B (en) 2017-06-30 2017-06-30 Software Garbage Scanning Method and Device

Country Status (1)

Country Link
CN (1) CN107330067B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052594B (en) * 2017-12-11 2021-09-24 深圳创维-Rgb电子有限公司 Android-based garbage processing method and device and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577240A (en) * 2012-07-25 2014-02-12 腾讯科技(深圳)有限公司 Automatic system cleaning method and device and memory medium
CN104298549A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning application programs in mobile terminal and mobile terminal
CN105335191A (en) * 2015-10-16 2016-02-17 北京金山安全软件有限公司 Method and device for scanning terminal equipment and terminal
CN106095587A (en) * 2016-06-24 2016-11-09 北京金山安全软件有限公司 Cache scanning method and device of application program and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577240A (en) * 2012-07-25 2014-02-12 腾讯科技(深圳)有限公司 Automatic system cleaning method and device and memory medium
CN104298549A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning application programs in mobile terminal and mobile terminal
CN105335191A (en) * 2015-10-16 2016-02-17 北京金山安全软件有限公司 Method and device for scanning terminal equipment and terminal
CN106095587A (en) * 2016-06-24 2016-11-09 北京金山安全软件有限公司 Cache scanning method and device of application program and electronic equipment

Also Published As

Publication number Publication date
CN107330067A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN110711946B (en) Control method and device of marking machine and marking machine
CN104837179B (en) A kind of method and device showing hotspot equipment manufacturer information
CN104683458A (en) Wallpaper recommendation method and server
CN106408628B (en) A kind of image processing method and device
CN107330067B (en) Software Garbage Scanning Method and Device
CN106682917A (en) Artwork authentication and transaction method and system based on digital signature
CN109829803A (en) Financial filing apparatus and financial archiving method
CN109214229A (en) A kind of bar code scanning method, device and electronic equipment
CN110392414B (en) Wireless network connection method and device, terminal equipment and readable storage medium
CN105323079A (en) Method for managing Internet-of-Things system, and intelligent terminal
CN109086289A (en) A kind of media data processing method, client, medium and equipment
CN107820298A (en) Wireless network management method, wireless network management device and intelligent terminal
CN113123064A (en) Washing machine control method, system and terminal based on user feedback and washing machine
CN109640345A (en) Network dialing method, device and electronic equipment
CN108733440A (en) interface icon configuration method, device and terminal device
CN108874676A (en) Method and device for distributing test resources
CN107633462A (en) Power marketing checking method and terminal device
CN112306471A (en) Task scheduling method and device
CN109213915A (en) weather forecast method, terminal device and computer readable storage medium
CN104144270B (en) A kind of mobile terminal receives reminding method, Fax Server and the system of fax
CN105847506A (en) Communication method and device for mobile terminal and mobile terminal
CN111045529A (en) Data input method, system and related equipment
CN109829526A (en) A kind of barcode management method, device and electronic equipment
CN108259698A (en) Image scan method, system, device and computer readable storage medium
JP2008165603A (en) Accounting system, image processing apparatus, and accounting program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant