CN104317741B - Recognition and cleaning method and system of cache directories - Google Patents

Recognition and cleaning method and system of cache directories Download PDF

Info

Publication number
CN104317741B
CN104317741B CN201410641619.0A CN201410641619A CN104317741B CN 104317741 B CN104317741 B CN 104317741B CN 201410641619 A CN201410641619 A CN 201410641619A CN 104317741 B CN104317741 B CN 104317741B
Authority
CN
China
Prior art keywords
catalogue
cleaning
interface
cache directory
data
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
CN201410641619.0A
Other languages
Chinese (zh)
Other versions
CN104317741A (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 Qihoo Technology 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 CN201410641619.0A priority Critical patent/CN104317741B/en
Publication of CN104317741A publication Critical patent/CN104317741A/en
Application granted granted Critical
Publication of CN104317741B publication Critical patent/CN104317741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a recognition and cleaning method and a recognition and cleaning system of cache directories. The recognition and cleaning method of the cache directories includes that mobile terminals confirm directories matched with the cache directories recorded in a local database during scanning processes of the mobile terminals for storage space; the mobile terminals recognize brother directories of the confirmed directories, and upload directory information of directories which are not recognized into a server; the server recognizes the cache directories from the directory information uploaded by all the mobile terminals. By adopting the technical scheme, the recognition and cleaning method and the recognition and cleaning system of the cache directories replace manual work with a huge quantity of the mobile terminals to collect the directories which are not recognized into the cloud server, recognize the cache directories through the server, greatly improve collection efficiency of the cache directories, overall improve recognition efficiency of the cache directories, reduce workloads of technical staff, conveniently and automatically recognize a large number of the cache directories, and thereby clean the cache directories according to the cache directories which are automatically and efficiently recognized, and can improve use efficiency of the storage space.

Description

The identification of CACHE DIRECTORY, method for cleaning and system
Technical field
The present invention relates to computer technology, specifically, the present invention relates to the identification of CACHE DIRECTORY, method for cleaning and be System.
Background technology
Mobile terminal refers to computer equipment that can be used in movement, including mobile phone, panel computer etc..With movement The popularization of terminal, the program being installed on mobile terminal is more and more.Program generally all can when installing on mobile terminals, running Produce and realize the cache file of some functions and delaying for storage cache file to lift program operating rate or helper Deposit catalogue.If CACHE DIRECTORY and its under file cannot clear up in time, will take mobile terminal in substantial amounts of memory space; It is therefore desirable to clearing up the CACHE DIRECTORY and cache file in memory space, the memory space of mobile terminal is discharged.
At present the method for cleaning memory space, generally includes:Memory space is scanned;From the memory space for scanning Catalogue in, the catalogue that the CACHE DIRECTORY determined and prestore matches, and the catalogue to determining and the file under the catalogue Cleared up.
However, what the existing CACHE DIRECTORY for prestoring typically was artificially collected.For example, technical staff's server beyond the clouds On end, using the various functions of program, to program, produced CACHE DIRECTORY in running is recorded, and with the program Correspondence storage.The efficiency for artificially collecting CACHE DIRECTORY is very low, causes the negligible amounts of the CACHE DIRECTORY of collection, so as to easy The substantial amounts of CACHE DIRECTORY for causing the memory space of mobile terminal is leaked identification and is not cleared up, and causes memory space utilization ratio low Under.
Therefore, it is necessary to a kind of recognition methods and the system of CACHE DIRECTORY of mobile terminal is provided, to improve CACHE DIRECTORY Recognition efficiency, reduce the workload of technical staff, be easy to automatically identify more CACHE DIRECTORYs, and then according to automatical and efficient The CACHE DIRECTORY for identifying is cleared up CACHE DIRECTORY, so as to improve the service efficiency of memory space, improves the experience of user.
The content of the invention
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Technical scheme is according on one side, there is provided a kind of recognition methods of CACHE DIRECTORY, including:
Mobile terminal is determined and the CACHE DIRECTORY phase described in local data base in the scanning process to memory space The catalogue of matching;
The fraternal catalogue of catalogue of the mobile terminal to determining is identified, and by it is unidentified go out catalogue catalogue Information reporting is to server;
The server identifies CACHE DIRECTORY from the directory information of each mobile terminal reporting.
It is preferred that correspondence CACHE DIRECTORY also records the program of the program for producing the CACHE DIRECTORY in the local data base Title.
Further, it is described by it is unidentified go out catalogue directory information report to server before, also include:
The mobile terminal finds out relative with the catalogue for each catalogue determined from the local data base The program name answered;And
It is described by it is unidentified go out the directory information of catalogue report to server when, also include:
By the program name for finding out correspondence it is described it is unidentified go out the directory information of catalogue report in the lump.
It is preferred that the server identifies CACHE DIRECTORY from the directory information of each mobile terminal reporting, concrete bag Include:
The server by the program name of each mobile terminal reporting, and it is corresponding it is unidentified go out catalogue catalogue letter Breath is stored;
The server to each it is unidentified go out catalogue directory information, count the number of times that the directory information is reported, It is that the catalogue arranges priority according to the number of times of statistics;
The server by the high catalog recognition of priority be CACHE DIRECTORY, and by should catalogue directory information journey Sequence title, be identified as produce the CACHE DIRECTORY program program name.
Further, it is described identify CACHE DIRECTORY after, also include:
The CACHE DIRECTORY that the server will identify that, and to should CACHE DIRECTORY program name storage to caching mesh In record database.
It is preferred that the fraternal catalogue of the described pair of catalogue determined is identified, specifically include:
For each fraternal catalogue of the catalogue, in the local data base, and record is searched whether in blacklist There is the catalogue matched with the fraternal catalogue;If having, confirmation identifies the fraternal catalogue;Otherwise, as it is unidentified go out Catalogue;
Wherein, the catalogue in the blacklist includes:The catalogue that system directory, user create.
It is preferred that after the catalogue determined and match with the CACHE DIRECTORY described in local data base, also including:
The catalogue is designated into catalogue for clearance;And
The summation of space size shared by all catalogues for clearance is shown in rubbish scans display interface.
Technical scheme additionally provides a kind of method for cleaning of CACHE DIRECTORY according on the other hand, including:
Mobile terminal is determined and the caching mesh in CACHE DIRECTORY database during being scanned to memory space The catalogue of picture recording matching;CACHE DIRECTORY in wherein described CACHE DIRECTORY database is CACHE DIRECTORY according to embodiments of the present invention Recognition methods identify;
The mobile terminal, to the catalogue determined, carries out garbage-cleaning after cleaning instruction is received.
Further, also include during being scanned to memory space in the mobile terminal:
After receiving scan instruction, while carrying out the cleaning data scanning of internal memory, nonvolatile storage space;
Periodically swept according to the progress for clearing up data scanning of internal memory, and the cleaning data of nonvolatile storage space The progress retouched, calculates overall progress;
On display interface, shown according to the progress that the overall progress carries out progress announcer, and according to described non-easy During the cleaning data scanning of the property lost memory space, the size of the cleaning data for currently having scanned shows that the progress is represented The color of device.
Further, the method for cleaning of the CACHE DIRECTORY, also includes:
After the completion of the internal memory, the cleaning data scanning of nonvolatile storage space, in the display interface " one is shown Key is cleared up " button, and " cleaning data details are checked " button.
Further, the method for cleaning of the CACHE DIRECTORY, also includes:
Receiving after the click event of " cleaning data details are checked " button, show in the display interface such as down to A kind of few data of classification:
Internal storage data, data cached, system disk junk data, ad data, bag data, unloading residual data, big is installed File data;And, methods described also includes:
The data of the every kind of classification of correspondence, also show the size of the cleaning data of the suggestion cleaning of the data of the category, with And " expansion " button.
Further, the method for cleaning of the CACHE DIRECTORY, also includes:
After the click event of " expansion " button for receiving a kind of data of classification, in the display interface such is shown The relevant information of each subitem under other data;
Wherein, the relevant information of the subitem includes:The title of the subitem, take size and choose state.
It is preferred that the equal default setting of state of choosing of each subitem is under the system disk junk data and ad data Choose.
Further, the method for cleaning of the CACHE DIRECTORY, also includes:
After the click event for receiving " key cleaning " button, the data of the subitem to having chosen are purged.
Further, also include during being scanned to memory space in the mobile terminal:
According to the call instruction produced by the operation of the first suspended window, the second suspended window is called;
Receive to the cleaning instruction produced by second suspended window operation;
According to the cleaning instruction, file is cleared up.
It is preferred that the content that first suspended window shows is:
Current memory occupancy;Or
The cleaning of file clean-up that needs of current memory occupancy and detection is pointed out.
It is preferred that the dispaly state of the second suspended window for calling for it is following any one:
When first suspended window shows for memory usage, the second suspended window shows conventional interface;
When first suspended window shows for memory usage and cleaning prompting, the second suspended window display conventional interface, And increase cleaning prompting region on conventional interface.
It is preferred that second suspended window includes that internal memory accelerates interface, cleaning interface and conventional interface;
Wherein, the internal memory accelerates interface to include initial sub-interface and complete sub-interface, and initial sub-interface is used to show to be worked as Front memory usage, which is provided with click and accelerates functionality controls, the control to be used to call to complete sub-interface;
The cleaning interface includes scanning sub-interface, stops scanning sub-interface, cleaning sub-interface and cleared up sub-interface, sweeps Retouch sub-interface, stop scanning sub-interface, cleaning sub-interface on be respectively equipped with scan function control, stop scan function control, one Key clearing function control, scan function control is used to call stopping scanning sub-interface, and it is clear for calling to stop scan function control Reason sub-interface, a key clearing function control is used to call clear up sub-interface;
The conventional interface includes opening management function control, unloading prepackage functionality controls, privacy clearing function control, trip certainly Play/video accelerates functionality controls, software offloading functions control and timing clearing function control;
The internal memory accelerates the conventional interface that interface is the second suspended window, and the cleaning prompting region is control regions, and It is provided with corresponding prompting official documents and correspondence.
Technical scheme additionally provides a kind of identifying system of CACHE DIRECTORY according on the other hand, including:
Multiple mobile terminals, in the scanning process for carrying out this mobile terminal memory space, determining and local data The catalogue that CACHE DIRECTORY described in storehouse matches;And the fraternal catalogue of the catalogue to determining is identified;By it is unidentified go out The directory information of catalogue reported;
Server, for from the directory information of each mobile terminal reporting, identifying CACHE DIRECTORY.
It is preferred that correspondence CACHE DIRECTORY also records the program of the program for producing the CACHE DIRECTORY in the local data base Title.
Further, the mobile terminal is additionally operable to for each catalogue determined, is searched from the local data base Go out the program name corresponding with the catalogue;And by the program name for finding out with it is corresponding it is unidentified go out catalogue catalogue letter Breath is reported in the lump.
It is preferred that the server is specifically for by the program name of mobile terminal reporting, and it is corresponding it is unidentified go out The directory information of catalogue stored;And to each it is unidentified go out catalogue directory information, count on the directory information The number of times of report, is that the catalogue arranges priority according to the number of times of statistics;It is CACHE DIRECTORY by the high catalog recognition of priority, and By to should catalogue directory information program name, be identified as produce the CACHE DIRECTORY program program name.
Further, the server is additionally operable to the CACHE DIRECTORY that will identify that, and to should CACHE DIRECTORY program name Claim to store in CACHE DIRECTORY database.
Further, the mobile terminal is additionally operable to match with CACHE DIRECTORY described in local data base determining After catalogue, the catalogue to determining carries out garbage-cleaning.
Technical scheme additionally provides a kind of cleaning system of CACHE DIRECTORY according on the other hand, including:
Scan module, during being scanned to memory space, determines and delaying in CACHE DIRECTORY database Deposit the catalogue that catalogue matches;CACHE DIRECTORY in wherein described CACHE DIRECTORY database is by provided in an embodiment of the present invention slow The identifying system for depositing catalogue is identified, and downloads what is obtained from the server;
Cleaning modul, clears up after instruction for receiving, and the catalogue determined to the scan module carries out rubbish clear Reason.
Technical scheme additionally provides a kind of mobile terminal according on the other hand, including:The embodiment of the present invention The cleaning system of the CACHE DIRECTORY of offer.
In technical scheme, by enormous amount mobile terminal replace manually by it is unidentified go out catalogue collect to In the server in high in the clouds, and CACHE DIRECTORY is identified by server;The collection efficiency of CACHE DIRECTORY is substantially increased, on the whole The recognition efficiency of CACHE DIRECTORY is improve, the workload of technical staff is reduced, is easy to automatically identify more CACHE DIRECTORYs; So as to clear up CACHE DIRECTORY according to the automatical and efficient CACHE DIRECTORY for identifying, can improve memory space uses effect Rate, improves the experience of user.
And, in the technical scheme, the process for filtering out Unidentified catalogue is completed by numerous mobile terminals, without the need for clothes Business device is participated in, and greatly reduces the burden of server, further increases the recognition efficiency of CACHE DIRECTORY.
Further, in the technical scheme, server can will report the more catalogue of number of times to be automatically recognized as CACHE DIRECTORY, from And improve the recognition efficiency of CACHE DIRECTORY.
Description of the drawings
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments It is substantially and easy to understand, wherein:
Fig. 1 is the configuration diagram of the identifying system of the CACHE DIRECTORY of the embodiment of the present invention;
Fig. 2 a are the schematic flow sheet of the recognition methods of the CACHE DIRECTORY of the embodiment of the present invention;
Fig. 2 b scan display interface schematic diagram for the rubbish of the embodiment of the present invention;
Fig. 3 identifies CACHE DIRECTORY for the server of the embodiment of the present invention from the directory information of each mobile terminal reporting The schematic flow sheet of method;
Fig. 4 is the schematic flow sheet of the method for cleaning of the CACHE DIRECTORY of the embodiment of the present invention;
Fig. 5 is the block schematic illustration of the internal structure of the cleaning system of the CACHE DIRECTORY of the embodiment of the present invention;
Fig. 6 a are the schematic flow sheet of the cleaning data one-key scan method of the memory space of the embodiment of the present invention;
Fig. 6 b to Fig. 6 e, Fig. 7 a to Fig. 7 d are respectively the display in the cleaning data one-key scan method of the embodiment of the present invention The schematic diagram at interface;
Fig. 8, Fig. 9 are respectively two kinds of schematic flow sheets based on the file clean-up method of suspended window of the embodiment of the present invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that arranging used in the specification of the present invention Diction " including " refers to there is the feature, integer, step, operation, element and/or component, but it is not excluded that existing or adding One or more other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange Diction "and/or" includes the one or more associated wholes or any cell of listing item and all combination.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also It is understood by, those terms defined in such as general dictionary, it should be understood that with the context with prior art The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " mobile terminal " had both included wireless communication The equipment of number receiver, it only possesses the equipment of the wireless signal receiver of non-emissive ability, and including receiving and launch hardware Equipment, its equipment with reception that two-way communication on bidirectional communication link, can be carried out and transmitting hardware.This equipment Can include:Honeycomb or other communication equipments, it has single line display or multi-line display or shows without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can With combine voice, data processing, fax and/or its communication ability;PDA (Personal Digital Assistant, it is personal Digital assistants), it can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day Go through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, its have and/or conventional laptop and/or palmtop computer including radio frequency receiver or its His equipment." terminal " used herein above, " mobile terminal " they can be portable, can transport, installed in the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " mobile terminal " can also be communication terminal, on Network termination, music/video playback terminal, for example, can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or the equipment such as mobile phone, or intelligent television, Set Top Box with music/video playing function.
The present inventor, can be by multiple mobile terminals by respective nothing it is considered that due to mobile terminal enormous amount The catalogue of method identification reports server;Equivalent to being replaced manually entering the screening and collection of column catalogue by mobile terminal;Afterwards, CACHE DIRECTORY is identified by server from the catalogue for reporting.Such that it is able to greatly reduce the workload of technical staff, on the whole The recognition efficiency of CACHE DIRECTORY is improve, is easy to automatically identify more CACHE DIRECTORYs, and then identified according to automatical and efficient CACHE DIRECTORY to CACHE DIRECTORY and its under cache file clear up, so as to improve the service efficiency of memory space, improve The experience of user.
And, it was found by the inventors of the present invention that directory information (the catalogic road of example of the catalogue of different user active establishment Footpath and title) it is typically different, therefore the number of times that each catalogue of user's active establishment is each reported is generally less;And by The directory information of the CACHE DIRECTORY that the same program being installed in different mobile terminal is created in running is typically one Cause, therefore the number of times that CACHE DIRECTORY is reported is generally all larger.The server in high in the clouds can be reported number of times according to catalogue How much, and whether be CACHE DIRECTORY, so as to further reduce the workload of technical staff, improve caching if automatically identifying the catalogue The recognition efficiency of catalogue.
A kind of technical scheme, there is provided identifying system of CACHE DIRECTORY, configuration diagram such as Fig. 1 of the system It is shown, including:The server 102 in multiple mobile terminal 1s 01 and high in the clouds.Mobile terminal 1 01 is by the networks such as internet and service Device 102 is communicated.
The memory space of mobile terminal 1 01 can be SD (Secure Digital memory, the data accumulating body of safety) Memory space, or the spatial cache in mobile terminal 1 01 in the storage devices such as card, micro SD cards.
It is pre-created the kind specific item comprising the CACHE DIRECTORY for having identified beyond the clouds in the server 102 that technical staff can be Record database.CACHE DIRECTORY in seed catalog data base can be obtained by various methods.
For example, technical staff is for artificial accumulative each CACHE DIRECTORY collected, by the CACHE DIRECTORY with produce the caching The program name of the program of catalogue, correspondence storage is in the seed catalog data base of server 102.
For another example, technical staff creates sandbox in server 102, runs under the program execution environments that sandbox is produced various Program, the various functions of trigger;And the catalogue produced in running by the logging program of server 102, from record Identify CACHE DIRECTORY, and storage corresponding with the program name of the program to the seed catalog data base of book server in catalogue In.
More preferably, the Prune Policies that CACHE DIRECTORY records the CACHE DIRECTORY can be also corresponded in seed catalog data base.Than Such as, the Prune Policies of a CACHE DIRECTORY can be " complete liquidation ", and All Files that will be under the catalogue, and the catalogue is all Carry out cleaning deletion;Or, the Prune Policies of a CACHE DIRECTORY can be " timeliness 3 days ", i.e., under the catalogue more than 3 days File carries out cleaning deletion.
Mobile terminal 1 01 in the identifying system of the CACHE DIRECTORY of the embodiment of the present invention, can be according under server 102 As local data base after the seed catalog data base of load, and directory information is reported to server 102 according to local data base;Mesh Record information can include:The path of catalogue and title;Additionally, directory information can also include:The version number of catalogue, timestamp and The size of shared memory space.
Server 102 collects the directory information that mobile terminal 1 01 is reported, and therefrom identifies CACHE DIRECTORY.
Fig. 2 a show that the identifying system of above-mentioned CACHE DIRECTORY carries out the concrete grammar flow process of CACHE DIRECTORY identification, including such as Lower step:
S201:Mobile terminal 1 01 is determined and delaying described in local data base in the scanning process to memory space Deposit the catalogue that catalogue matches.
Specifically, when user clicks on the scanning button on display interface, mobile terminal 1 01 confirms that receiving scanning refers to Order, the operation that triggering is scanned to memory space simultaneously scans display interface into rubbish.
Mobile terminal 1 01 according to scan instruction, during being scanned to the memory space of this mobile terminal, for working as The front catalogue for scanning, if judging that the catalogue can be found from the CACHE DIRECTORY described in local data base, ought The catalogue of front scanning is defined as the catalogue matched with the CACHE DIRECTORY in local data base, and the catalogue of Current Scan is designated Catalogue for clearance, the catalogue of Current Scan is not reported;And show all for clearance in rubbish scanning display interface Catalogue shared by space size summation.
For example, mobile terminal 1 01 is to memory space during being scanned, by with local data base in caching mesh The catalogue of picture recording matching is designated CACHE DIRECTORY for clearance, and shows in rubbish scanning display interface as shown in Figure 2 b The summation of space size shared by the CACHE DIRECTORY all for clearance for scanning, such as " 762MB ";It is for clearance with what is scanned The increase of the space size summation shared by CACHE DIRECTORY, the numeral of the display can gradually increase, rubbish scanning display interface Background color can be from green gradually to red change;The progress bar of scanning is also shown in rubbish scans display interface, and To " stopping " button for stopping scanning process.
Additionally, mobile terminal 1 01 can be so that this mobile terminal is detected, in idle condition, (such as mobile terminal is returned Exceed Preset Time to system desktop or blank screen) when, trigger the operation being scanned to memory space.
S202:The fraternal catalogue of 01 pair of catalogue determined of mobile terminal 1 is identified.
Specifically, mobile terminal 1 01 in step S201 for determining and the CACHE DIRECTORY phase in local data base The catalogue matched somebody with somebody, in this step, for each fraternal catalogue (i.e. with the catalogue of same parent directory) of the catalogue, judges whether The fraternal catalogue can be found from local data base and blacklist:If so, then confirm to identify the fraternal catalogue, no The directory information of the fraternal catalogue is reported to server 102;Otherwise, by the fraternal catalogue be defined as it is unidentified go out catalogue. Wherein, specifically can include in blacklist:The directory information of the catalogue that the directory information of system directory, user create.
S203:Mobile terminal 1 01 by it is unidentified go out the directory information of catalogue report to server 102.
Specifically, mobile terminal 1 01 by be defined as in above-mentioned steps S202 it is unidentified go out the directory information of catalogue report To server 102.
S204:In the directory information that server 102 is reported from each mobile terminal 1 01, CACHE DIRECTORY is identified.
More preferably, above-mentioned steps S203 mobile terminal 1 01 by it is unidentified go out the directory information of catalogue report to service Before device 102, can with find out from local data base with it is unidentified go out the corresponding program name of catalogue;To find out Program name correspondence it is unidentified go out the directory information of catalogue report to server 102 in the lump.
In above-mentioned steps S204 server 102 from each terminal device 101 report it is unidentified go out catalogue directory information In, the flow process of the method for CACHE DIRECTORY is identified as shown in figure 3, specifically including following steps:
S301:Server 102 by each mobile terminal 1 01 report it is unidentified go out the directory information of catalogue stored.
It is preferred that the program name that server 102 reports each mobile terminal 1 01, and it is corresponding it is unidentified go out mesh The directory information of record is stored.
S302:Server 102 to each it is unidentified go out catalogue directory information, count on the directory information of the catalogue The number of times of report, is that the catalogue arranges priority according to the number of times of statistics.
Specifically, server 102 to each it is unidentified go out catalogue directory information, count the directory information quilt of the catalogue The number of times for reporting.
Afterwards, server 102 for each it is unidentified go out catalogue, according to the system that the directory information of the catalogue is reported Metering number, is that the catalogue arranges priority.
For example, server 102 for it is unidentified go out catalogue, judge the statistics number that the directory information of the catalogue is reported Whether setting value is exceeded:If so, then the priority of the catalogue is set to into height.Setting value is by those skilled in the art according to Jing Test, historical data or experimental data set, such as can arrange setting value for 100.
For another example, the statistics number that server 102 can be reported according to each directory information from more to few order, to respectively not The catalogue for identifying is ranked up;The priority of the catalogue of setting number most forward in ranking results is set to into height.
S303:Priority in step S302 is set to high catalog recognition for CACHE DIRECTORY by server 102.
It is preferred that server 102 in step S302 priority be set to high catalogue, by the catalog recognition for caching Catalogue, and by should catalogue directory information program name, be identified as produce the CACHE DIRECTORY program program name.
S304:Server 102 stores the CACHE DIRECTORY identified from step S303 in CACHE DIRECTORY database.
It is preferred that server 102 can be by the directory information reported from each mobile terminal 1 01 being related in step S303 The CACHE DIRECTORY for identifying, and to should CACHE DIRECTORY program name store in CACHE DIRECTORY database.
More preferably, server 102 also correspondence CACHE DIRECTORY can record the clear of the CACHE DIRECTORY in CACHE DIRECTORY database Reason strategy.
Further, server 102 can be carried out more according to the data in CACHE DIRECTORY database to local data base Newly.For example, by the CACHE DIRECTORY increased newly in CACHE DIRECTORY database and program name corresponding with the CACHE DIRECTORY and cleaning Strategy, correspondence increases in local data base.
In actual applications, mobile terminal 1 01 can by it is unidentified go out catalogue directory information it is corresponding with the catalogue After the program name of program is encrypted in the lump, report to server 102.And server 102 can be carried out to the information for reporting Password authentification, confirms to receive directory information and the program name that mobile terminal 1 01 is reported after being verified.AES has Body can include MD (Message-Digest Algorithm, md5-challenge) 5.
The embodiment of the present invention additionally provides the side that the CACHE DIRECTORY in a kind of memory space to mobile terminal 1 01 is cleared up Method.
In actual applications, mobile terminal 1 01 can be downloaded based on the identification side of above-mentioned CACHE DIRECTORY from server 102 The CACHE DIRECTORY database that method is obtained, as local data base, and then using flow and method as shown in Figure 4 to this mobile terminal Memory space in CACHE DIRECTORY cleared up, specifically include following steps:
S401:During being scanned to memory space, the catalogue arrived to Current Scan judges mobile terminal 1 01 Whether matched catalogue can be found in CACHE DIRECTORY database;If so, following steps S402 are performed;Otherwise, The catalogue of Current Scan is not cleared up.
Specifically, mobile terminal 1 01 is during the memory space to this mobile terminal is scanned, for currently sweeping The catalogue retouched, judges whether to be searched in the CACHE DIRECTORY described in the CACHE DIRECTORY database that can be downloaded from server 102 To the catalogue:If so, then the catalogue of Current Scan is defined as into the mesh that matches with the CACHE DIRECTORY in CACHE DIRECTORY database Record, and perform following steps S402;If it is not, then not clearing up the catalogue of Current Scan.
S402:01 pair of catalogue determined of mobile terminal 1, carries out garbage-cleaning.
Mobile terminal 1 01 is for CACHE DIRECTORY described in determine in step S401 and CACHE DIRECTORY database The catalogue for matching, in this step, by the catalogue CACHE DIRECTORY for clearance is designated, and in rubbish scanning display interface Show the summation and cleaning button of all CACHE DIRECTORYs for clearance and its shared space size.When user clicks on the cleaning During button, mobile terminal 1 01 confirms to receive cleaning instruction, can enter according to corresponding Prune Policies in CACHE DIRECTORY database Row garbage-cleaning.
Based on the method for cleaning of the CACHE DIRECTORY in the above-mentioned memory space of mobile terminal 1 01, the embodiment of the present invention is provided A kind of CACHE DIRECTORY being arranged in mobile terminal 1 01 cleaning plant, block schematic illustration such as Fig. 5 institutes of its internal structure Show, including:Scan module 501 and cleaning modul 502.
Scan module 501 be used for memory space is scanned during, determine with CACHE DIRECTORY database The catalogue that CACHE DIRECTORY matches;Wherein, the CACHE DIRECTORY in CACHE DIRECTORY database is by provided in an embodiment of the present invention slow The identifying system for depositing catalogue is identified, and downloads what is obtained from server 102.
Cleaning modul 502 is used to receive after cleaning instruction, and the catalogue determined to scan module 501 carries out rubbish clear Reason;More preferably, cleaning modul 502 is used for the catalogue determined to scan module 501, according to CACHE DIRECTORY database or kind specific item Corresponding Prune Policies carry out garbage-cleaning in record data road.
The concrete methods of realizing of above-mentioned scan module 501, the function of cleaning modul 502, may be referred to above-mentioned as shown in Figure 4 Method flow step particular content, here is omitted.
More excellent, in order to reduce the operation of mobile phone users, present invention also offers a kind of cleaning number of memory space According to a key scanning method, as shown in Figure 6 a, its flow process specifically may include steps of:
S601:After scan instruction is received, while carrying out the cleaning data scanning of internal memory, nonvolatile storage space.
Specifically, before cleaning data scanning is carried out, user can send scan instruction to mobile terminal.For example, may be used To clear up data scanning button, or preassembled of opening by set in advance in the display screen for clicking on mobile terminal The software of the key scanning cleaning of cleaning data is held, carrys out the transmission of driver sweep instruction.Mobile terminal receives user's transmission After scan instruction, while carrying out the cleaning data scanning of internal memory, nonvolatile storage space.
In this step, internal memory, the cleaning data scanning of nonvolatile storage space specifically can be performed by same process, Can respectively be performed by two processes.For example, the cleaning data of internal memory can be performed by internal memory scan procedure set in advance;It is non- The cleaning data scanning of volatile memory can be performed by nonvolatile storage space scan procedure.It is interior in practical application Deposit, the cleaning data scanning of nonvolatile storage space is either performed by a process or two processes, internal memory and non- Volatile memory is separate scanning, and internal memory can start a thread and be scanned;Nonvolatile storage space can basis The state of mobile terminal is distributing thread.For example, on the mobile terminal of CPU multinuclears, can be distributed according to CPU and check figure and be swept Thread is retouched, at most 4 threads of distribution carry out the scanning of nonvolatile storage space.
In practical application, during scanning cleaning data, can be by the relevant information (ratio of the catalogue of Current Scan Such as, the information such as path, bag name) with advance from cloud server download or locally stored Clean Up Database in catalogue information Matched, the information such as Prune Policies and generic according to corresponding to the catalogue for matching identifies the mesh of Current Scan Record to clear up data, it is possible to further determine that out the cleaning data generic, and for clearing up the clear of the cleaning data Reason strategy.Further, cloud server periodically can be updated upgrading to local Clean Up Database, to Clean Up Database The catalogue of middle record and corresponding Prune Policies etc. are upgraded in time.
Wherein, the Prune Policies for recording in Clean Up Database can include following several:
Clear up completely, all subdirectories and file that will be in the catalogue, and the catalogue all carry out cleaning deletion.
Validity is cleared up, i.e., to the file in the catalogue more than effective time, i.e., stale file carries out cleaning and deletes Remove.
With caution cleaning, that is, prompt the user with the risk that performs cleaning and after the instruction that the determination for receiving user is cleared up, All subdirectories and file in the catalogue carry out choosing cleaning.
Part is cleared up, i.e., the catalogue or file to being designated suggestion cleaning in the catalogue carries out cleaning deletion;To the catalogue In be designated the catalogue or file of careful cleaning, carry out cleaning deletion after the instruction that the determination for receiving user is cleared up;To this Suggestion cleaning or the with caution catalogue or file of cleaning are not designated in catalogue, do not carry out choosing cleaning.
Wherein, the generic of the cleaning data for recording in Clean Up Database specifically can include:Internal storage data, caching number According to, system disk junk data, ad data, bag data, unloading residual data, large file etc. are installed.
S602:Periodically according to the progress for clearing up data scanning of internal memory, and the cleaning of nonvolatile storage space The progress of data scanning, calculates overall progress.
Specifically, can be in the scanning process of cleaning data, when calculating i-th cycle arrival according to equation below 1 Overall progress Ji
Ji=jciwc+jfiwf(formula 1)
In formula, jciThe progress of the cleaning data scanning of internal memory, j when reaching for i-th cyclefiWhen reaching for i-th cycle The progress of the cleaning data scanning of nonvolatile storage space;wcFor the accounting weight that internal memory scanning accounts for overall progress, wfFor it is non-easily The property lost memory space scanning accounts for the accounting weight of overall progress;I is natural number.
Wherein, internal memory scanning account for overall progress accounting weight and nonvolatile storage space scanning account for overall progress Accounting weight be set in advance.For example, if after the completion of the cleaning data scanning of internal memory, its progress accounts for overall progress 50%;Correspondingly, after the cleaning data scanning of nonvolatile storage space, its progress accounts for the 50% of overall progress, then can be by It is 0.5 that internal memory scanning accounts for the accounting weight setting of overall progress, and nonvolatile storage space scanning is accounted for into the accounting of overall progress Weight setting is 0.5.So, the progress in the cleaning data of the internal memory of Current Scan is 50%, nonvolatile storage space When the progress of cleaning data is 20%, according to above-mentioned formula 1 and accounting weight set in advance, calculating overall progress is 35%.
Certainly, in practical application, it would however also be possible to employ method for distinguishing calculating overall progress, for example, can be according to internal memory The progress of cleaning data scanning, the progress of the cleaning data scanning of nonvolatile storage space, internal memory and non-volatile memories are empty Between respective size calculating overall progress.
S603:On display interface, shown according to the progress that overall progress carries out progress announcer.
In this step, on display interface, according to the overall progress that step S602 is periodically calculated, can be by as schemed Progress bar shown in 6b periodically carries out progress and shows.
Certainly, in practical application, progress announcer can also be specially circular progress except being specially progress bar Percentages show device.
S604:On display interface, according to the cleaning data scanning of nonvolatile storage space during, currently scan Cleaning data size, show progress announcer color.
In the embodiment of the present invention, step S603, step S604 do not have the execution sequence of priority, i.e. step S604 can be first Perform simultaneously in step S603 or with step S603.
Specifically, mobile terminal is carried out to the cleaning data of the internal memory in memory space and nonvolatile storage space Scanning, in the scanning process, can in real time obtain the size of the cleaning data for currently having scanned;For some of advance division Number range, it is determined that the number range belonging to the size of the cleaning data of the nonvolatile storage space for currently having scanned;Then, For the number range determined, according in advance to should number range setting color value, show the color of progress announcer.
Certainly, in practical application, in scanning process, progress announcer can also be according to the non-volatile memories for scanning The size discoloration of the cleaning data in space.Such as, interface is the blue gradual change to yellow during 0-20M, is arrived for yellow during 20-100M Orange gradual change, more than 100M is orange to redness.When the scan is complete, the data for having scanned when a certain interval, final state It is shown as the corresponding color of the interval maximum.When such as scanning 50M rubbish, final state is shown as orange.
More preferably, totality is checked in display except the differentiation to internal memory and nonvolatile storage space for the ease of user While progress, the size of the cleaning data that internal memory is each scanned with nonvolatile storage space can also be accurately understood, Can be the size of the cleaning data of the internal memory for currently having scanned, non-with the cleaning data procedures of display memory on display interface During the cleaning data scanning of volatile memory, the cleaning data of the nonvolatile storage space for currently having scanned it is big It is little.
In practical application, after the completion of internal memory, the cleaning data scanning of nonvolatile storage space, will can also scan The size of cleaning data of internal memory, the size of the cleaning data of nonvolatile storage space shown respectively on display interface Show.For example, on display interface as fig. 6 c, " internal memory rubbish " represents the cleaning data of internal memory, and " 204MB " represents scanning The size of the cleaning data of the internal memory for going out;" caching rubbish " represents the cleaning data of nonvolatile storage space, " 91.4MB " table Show the size of the cleaning data of the nonvolatile storage space for scanning.
In practical application, the Prune Policies of cleaning data can be often obtained while scanning cleaning data.Therefore, more Excellently, in the embodiment of the present invention, after internal memory, the scanning of the cleaning data of nonvolatile storage space is completed, can also count Go out the institute that internal memory, the size summation of the cleaning data of nonvolatile storage space and corresponding Prune Policies are suggestion cleaning There is the size of cleaning data, and shown on display interface.
For example, on display interface as shown in fig 6d, what " 135MB " was represented is that the corresponding Prune Policies for scanning are The size of all cleaning data of suggestion cleaning;What " finding 326MB altogether " represented is the cleaning of internal memory, nonvolatile storage space The size summation of data.
More preferably, during the cleaning data scanning for carrying out internal memory, nonvolatile storage space, can also be simultaneously complete Disk carries out that the scanning of item can be forbidden, and after the end of scan, on display interface, as shown in fig 6e, to forbidding for scanning Enter together with the size of item size and the cleaning data of the internal memory for scanning, the size of the cleaning data of nonvolatile storage space Row shows.
In the present embodiment, be to the purpose that the cleaning data of internal memory, nonvolatile storage space are scanned to internal memory, The cleaning data of nonvolatile storage space are cleared up.Therefore, more preferably, in internal memory, the cleaning of nonvolatile storage space After the completion of data scanning, " key cleaning " button in order to reduce the operation of user, can be shown on display interface;Receive After the click event of " key cleaning " button, mobile terminal can be by the internal memory for scanning, the cleaning of nonvolatile storage space Data carry out a key cleaning;And need not be by different trigger actions respectively to internal memory, the cleaning number of nonvolatile storage space According to being cleared up, it is easy to the operation of user.
More preferably, in practical application, the cleaning data for scanning are checked for the ease of user, can be with display interface Show " cleaning data details are checked " button.
Correspondingly, after the click event for receiving " cleaning data details are checked " button, as shown in Figure 7a, boundary is being shown The data of following at least one classification are shown in face:Internal storage data, data cached, system disk junk data, ad data, installation Bag data, unloading residual data, large file etc..Wherein, the generic of the cleaning data for scanning specifically can lead to Cross in scanning process, be determined with the matching result of the Clean Up Database downloaded in advance or store.So, in display interface Middle to show data of all categories, the cleaning data that can clearly distinguish internal memory in order to user are clear with nonvolatile storage space Reason data, and the understanding of the concrete generic to the cleaning data of nonvolatile storage space, raising Consumer's Experience.
It is preferred that " cleaning data details are checked " button can also be specifically included:" the cleaning data details of internal memory are checked " Button, " the cleaning data details of nonvolatile storage space are checked " button.
For example, on display interface as fig. 6 c, be correspondingly arranged under " 204MB ", " 91.4MB " " internal memory it is clear Reason data details are checked " link, the link of " the cleaning data details of nonvolatile storage space are checked " button of button.
After the click event for receiving " the cleaning data details of internal memory are checked " button, can show on display interface The cleaning data details of internal memory as shown in Figure 7b;Press " the cleaning data details of nonvolatile storage space are checked " is received After the click event of key, can show on display interface nonvolatile storage space as shown in Figure 7 c cleaning data it is detailed Feelings.
Further, it is contemplated that the cleaning data for scanning often both had had the cleaning data of suggestion cleaning, there is also careful The cleaning data of careful cleaning.Therefore, the Prune Policies of cleaning data are understood for the ease of user, more preferably, such as Fig. 7 a, 7c institute Show, on display interface, the data of the every kind of classification of correspondence can also show the cleaning number of the suggestion cleaning of the data of the category According to size, and " expansion " button.
Correspondingly, after the click event of " expansion " button for receiving a kind of data of classification, on display interface, such as Shown in Fig. 7 c or Fig. 7 d, the relevant information of each subitem under the data of the category is shown;Wherein, the relevant information of subitem includes:Son Title, take and size and choose state.
In the present embodiment, for the cleaning data for being defined as suggestion cleaning, it generally gives tacit consent under the data of generic It is set to choose.For example, it is contemplated that usually advise the cleaning data of cleaning to system disk junk data and ad data, Therefore, in order to reduce the operation of user, the state of choosing of each subitem is given tacit consent to and is set under system disk junk data and ad data It is set to and chooses.
So, by clicking on " expansions " button, state can be chosen according to each subitem under the data of the category of display, Understand the Prune Policies of cleaning data.And the size of the cleaning data of the suggestion cleaning of the data of a classification typically refers to such The each subitem chosen under other data takes the summation of size;After the click event for receiving " key cleaning " button, can It is purged with the data to the subitem chosen.
In fact, for the cleaning data of some suggestion cleanings, user may be not intended to cleaning;And for some cleaning numbers According to user can determine to can be deletion.Therefore, in order to consider the independence of user, user can also choose to subitem State is adjusted, so as to effective releasing memory and nonvolatile storage space.
In fact, the inventive method additionally provides the several file clean-up method based on suspended window, one of which is based on The schematic flow sheet of the file clean-up method of suspended window, as shown in figure 8, comprising the following steps:
S801, according to the call instruction produced by the operation of the first suspended window, calls the second suspended window.
During file clean-up, the first suspended window shows all the time, and predominantly user shows the current memory of mobile terminal Occupancy, when detecting mobile terminal and having file to clear up, also shows that cleaning prompting.
In the method, the first suspended window is smaller, including characterizes the ball of memory usage and characterize cleaning prompting Balloon dialog box;For memory usage, refresh once per 10s;When memory usage is below 85%, show blue;When interior Deposit occupancy 85% and more than, show red;During triggering balloon dialog box, balloon dialog box is deployable, and display is carried accordingly Show official documents and correspondence.
In the method, the second suspended window is larger, including internal memory accelerates interface, cleaning interface and conventional interface.Each interface Function it is as follows:
A. internal memory accelerates interface to include initial sub-interface and complete sub-interface, and initial sub-interface is used to show that current memory is accounted for With rate, which is provided with click and accelerate functionality controls, the control to be used to call to complete sub-interface.
Internal memory accelerate detailed process be:Before acceleration, initial sub-interface shows current memory occupancy, works as memory usage During less than 85%, initial sub-interface shows blue, and when memory usage is 85% and the above, initial sub-interface shows red; Click on and accelerate after functionality controls, memory usage drops to 0% and gos up again the memory usage to acceleration from initial value, interface Also there is corresponding change in color, ultimately generate and complete sub-interface.
Wherein, complete sub-interface and also show raised speed how many, how many computational methods that raise speed are:Current memory before acceleration Occupancy deducts the current memory occupancy after accelerating, if the difference of the two is less than 1%, completes sub-interface and then shows " up to most It is good ".
Wherein, the current memory occupancy that initial sub-interface shows reads from the first suspended window, shows with the first suspended window Memory usage it is identical.
B. clearing up interface includes scanning sub-interface, stops scanning sub-interface, cleaning sub-interface and cleared up sub-interface.Scanning Scan function control is respectively equipped with sub-interface, the scanning sub-interface that stops, cleaning sub-interface, stop scan function control, a key Clearing function control, scan function control is used to call stopping scanning sub-interface, and stopping scan function control is used to call cleaning Sub-interface, a key clearing function control is used to call clear up sub-interface.
The detailed process of cleaning is:Before cleaning, scanning sub-interface shows current stored value;After click scan functionality controls, Stop scanning sub-interface and show the rubbish value for scanning;Click on and stop after scan function control, if having scanned rubbish, go to clear Reason sub-interface, if not scanning rubbish, goes to scanning sub-interface;Cleaning sub-interface shows the rubbish for having scanned, this interface On be additionally provided with details control, for inquiring about rubbish details;After clicking on a key clearing function control, sub-interface has been cleared up and has shown clear The rubbish of reason.
Wherein, if the rubbish for scanning is less than or equal to 50M, scanning sub-interface, cleaning sub-interface are stopped for blueness;If sweeping The rubbish for describing is more than 50M, then stop scanning sub-interface, cleaning sub-interface for redness.
C. commonly using interface includes opening management function control, unloading prepackage functionality controls, privacy clearing function control, trip certainly Play/video accelerates functionality controls, software offloading functions control and timing clearing function control.Above-mentioned functions control is corresponding work( The entrance of energy.
Above-mentioned each interface is equipped with setting control and the control into system interface, wherein, arranging control is used for second Suspended window is configured.
According to the content that the first suspended window shows, the dispaly state of the second suspended window for calling includes following two situations:
A. when the first suspended window shows for memory usage, the second suspended window shows conventional interface, the conventional interface tool Body is that internal memory accelerates interface.
B. when the first suspended window be memory usage and cleaning prompting show when, the second suspended window show conventional interface and Increase cleaning prompting region on conventional interface.Wherein, cleaning prompting region is control regions.
Wherein, cleaning prompting region is provided with the prompting official documents and correspondence corresponding with the cleaning prompting of the first suspended window.
In additive method, when cleaning prompting is corresponding with the function at the second suspended window interface, the second suspended window is direct Show the interface needed for cleaning prompting.
S802, receives to the cleaning instruction produced by the operation of the second suspended window.
Because this method is cleared up based on the second suspended window, it is therefore desirable to which the second suspended window is operated, tool Body is that the functionality controls to the second suspended window or cleaning prompting region operate.
S803, according to cleaning instruction, clears up file.
A. according to the cleaning instruction produced by functionality controls operation, file is cleared up.
When the first suspended window does not clear up prompting, user voluntarily can be cleared up selection function control.
It is pointed out that when the first suspended window has cleaning prompting, user also can voluntarily select the second suspended window Functionality controls are cleared up.
B. according to the cleaning instruction produced by cleaning prompting region operation, interface or system circle of the second suspended window are called Face, clears up file.
B kind manner of cleaning up is described in detail below by concrete grammar.
A. after user mobile phone newly installs software, start/backstage whether opens authority certainly in the new software installed of detection, if Have and obtained Root authority, then the first suspended window is pointed out.
The first suspended window is clicked on, calls the second suspended window, the second suspended window cleaning prompting region to show that official documents and correspondence is " newly-increased to open certainly Software, puts this process.", after clicking on cleaning prompting region, jump to the conventional interface of the second suspended window, by conventional interface from Open management function control to enter from management system interface is opened, carry out opening management certainly.
B. after the screen locking of mobile phone solution, memory headroom is detected, if memory headroom is less than 20%, the first suspended window is pointed out, this Detect that can be spaced the scheduled time is detected.
The first suspended window is clicked on, calls the second suspended window, the second suspended window cleaning prompting region to show official documents and correspondence " memory headroom Less than 20%, this Free up Memory is put ", after clicking on cleaning prompting region, into system drive assay surface, and then carry out further Cleaning.
C. after the screen locking of mobile phone solution, memory space is detected, if memory space inadequate 20%, the first suspended window is pointed out, this Detect that can be spaced the scheduled time is detected.
The first suspended window is clicked on, calls the second suspended window, the second suspended window cleaning prompting region to show official documents and correspondence " memory space Less than 20%, this Free up Memory is put ", after clicking on cleaning prompting region, into system drive assay surface, and then carry out further Cleaning.
D. after the screen locking of mobile phone solution, whether detection can normally unload pre-installed software more than 5 sections, if exceeding and having obtained Root power Limit, the first suspended window is pointed out, and this detects that can be spaced the scheduled time is detected, in the given time, points out number of times also may be used It is defined as needed.
The first suspended window is clicked on, calls the second suspended window, the second suspended window cleaning prompting region to show official documents and correspondence " 5 sections of prepackages Software is off-loadable, puts this Free up Memory ", after clicking on cleaning prompting region, the conventional interface of the second suspended window is jumped to, by commonly using The unloading prepackage functionality controls at interface enter unloading preloaded system interface, are unloaded.
After mobile phone solution screen locking, whether detection can normally unload pre-installed software more than 5 sections, if exceeding but there is no Root power Limit, the first suspended window is equally pointed out.
The cleaning of second suspended window points out the official documents and correspondence that region shows for " 5 sections of pre-installed softwares can be disabled, and put this Free up Memory ", point Cleaning prompting region is hit, into corresponding system interface.
E. after the screen locking of mobile phone solution, whether detection is of little use software more than 5 sections, if exceeding, the first suspended window is pointed out, this Detect that can be spaced the scheduled time is detected.Wherein, when being of little use of detecting of this be of little use software number and last time for detecting Software number is identical, then this is not pointed out.
The first suspended window is clicked on, the second suspended window is called, the second suspended window cleaning prompting region shows official documents and correspondence, and " 5 sections seldom It is off-loadable with software, put this Free up Memory ", after clicking on cleaning prompting region, the conventional interface of the second suspended window is jumped to, by normal Software uninstalling system interface is entered with the software offloading functions control at interface, is unloaded.
F. after the screen locking of mobile phone solution, whether similar software is detected more than 3 sections, if exceeding, the first suspended window is pointed out, this inspection Survey can be spaced the scheduled time and be detected.
The first suspended window is clicked on, calls the second suspended window, the second suspended window cleaning prompting region to show official documents and correspondence " similar software Excessively, Free up Memory is clicked on ", cleaning prompting region is clicked on, jump to corresponding system interface or play frame, unloaded.
Wherein, the first suspended window can be also reminded the New function that user in system does not use.
In additive method, it is connected by USB line when mobile phone screen locking and with computer, at night between 801-5 points, detection is The no storage rubbish cleared up existed more than 100M, if existing, the first suspended window is pointed out, and this detection can be spaced pre- timing Between detected.
The first suspended window is clicked on, calls the second suspended window, the second suspended window directly to show its cleaning interface, carry out rubbish clear Reason.
Any of the above mode, new prompting is no longer produced in the first suspended window scheduled time (such as 2 hours).
In the method, cleaning points out official documents and correspondence, detection opportunity and prompting interval whether come into force, clear up prompting region etc. all Control of racking can be entered.
The above, this method carries out instant alerts using the first suspended window to the file for needing to clear up in mobile terminal, and Cleared up based on the second suspended window, user friendly operation, improved Consumer's Experience.
Refer to Fig. 9, Fig. 9 is the schematic flow sheet of another kind of file clean-up method based on suspended window of the invention, such as Fig. 9 It is shown, comprise the following steps:
S901, according to the call instruction produced by the operation of the first suspended window, calls the second suspended window.
S902, receives to the cleaning instruction produced by the operation of the second suspended window.
S903, according to cleaning instruction, clears up file.
In the method, step S901, S902, S903 are identical with the step in method shown in Fig. 8, will not be described here.
S904, after the completion of file clean-up, closes the second suspended window in the scheduled time.
Second suspended window can be automatically switched off in the given time, it is also possible to which family is voluntarily closed.
S905, after the second suspended window is closed, calls the pop-up for guiding to file clean-up accordingly.
It is described in detail below by concrete grammar.
A. after the second suspended window is closed, call and ignore using the pop-up of list for arranging, will be commonly used by pop-up Software be added to and ignore using list, it is to avoid it is cleaned.Specifically, the setting in user's click pop-up is ignored applies list Button, enters and ignores using list interface;User can also click on the cancel button in pop-up, close pop-up.
B. after the second suspended window is closed, if system has obtained Root authority, suggestion whether forbids in detection mobile terminal From the software for opening, if having, call for from the pop-up for opening management.Specifically, pop-up shows suggestion by the form of checkbox Forbid from the software for opening, user can be chosen;User can also click on the cancel button in pop-up, close pop-up.
C. after the second suspended window is closed, if system does not obtain Root authority, suggestion whether disables in detection mobile terminal Pre-installed software, if having, call the pop-up for disabling pre-installed software.Specifically, clicking on the deactivation button in pop-up, jump to Unloading prepackage interface;The cancel button in pop-up is clicked on, pop-up is closed.The prepackage for disabling some resident backstages using the pop-up is soft Part, can effectively reduce the occupancy of internal memory.
D. after the second suspended window is closed, when being not detected by the pre-installed software that suggestion is forbidden being disabled from the software that opens or suggestion When, with the presence or absence of the software that is of little use in detection mobile terminal, if existing, call the pop-up for uninstall.Specifically, clicking on Unloading button, jumps to uninstall interface;Cancel button is clicked on, pop-up is closed.
E. after the second suspended window is closed, when the pre-installed software for being not detected by the suggestion software for forbidding oneself to open, advising deactivation Or be of little use software when, detect whether to have turned on cleaning automatically, if not opening, call the bullet for opening cleaning internal memory automatically Window.
The above, the method that this method can further improve file clean-up using pop-up improves Consumer's Experience so that use The file that need to be cleared up is cleared up in time at family.
In the technical scheme of the embodiment of the present invention, by enormous amount mobile terminal replace manually by it is unidentified go out catalogue Collect into the server in high in the clouds, and CACHE DIRECTORY is identified by server;The collection efficiency of CACHE DIRECTORY is substantially increased, from The recognition efficiency of CACHE DIRECTORY is improve on the whole, the workload of technical staff is reduced, and is easy to automatically identify more delaying Deposit catalogue;So as to clear up CACHE DIRECTORY according to the automatical and efficient CACHE DIRECTORY for identifying, memory space can be improved Service efficiency, improves the experience of user.
And, in the technical scheme, the process for filtering out Unidentified catalogue is completed by numerous mobile terminals, without the need for clothes Business device is participated in, and greatly reduces the burden of server, further increases the recognition efficiency of CACHE DIRECTORY.
Further, in the technical scheme, server can will report the more catalogue of number of times to be automatically recognized as CACHE DIRECTORY, from And improve the recognition efficiency of CACHE DIRECTORY.
During those skilled in the art of the present technique are appreciated that the present invention includes being related to for performing operation described herein One or more of equipment.These equipment can be for needed for purpose and specially design and manufacture, or can also include general Known device in computer.These equipment have the computer program being stored in it, and these computer programs are optionally Activation is reconstructed.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or be stored in It is suitable to store and e-command and is coupled to respectively in any kind of medium of bus, the computer-readable medium is included but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light line card Piece.It is, computer-readable recording medium include being stored in the form of it can read by equipment (for example, computer) or transmission information any Jie Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or The combination of each frame and these structure charts and/or block diagram and/or the frame in flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that can by these computer program instructions be supplied to all-purpose computer, special purpose computer or other The processor of programmable data processing method realizing, so as to pass through the process of computer or other programmable data processing methods Device is come the scheme specified in the frame or multiple frames that perform structure chart disclosed by the invention and/or block diagram and/or flow graph.
Those skilled in the art of the present technique are appreciated that in various operations, method, the flow process discussed in the present invention Step, measure, scheme can be replaced, changed, combined or deleted.Further, it is each with what is discussed in the present invention Other steps, measure in kind operation, method, flow process, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, it is of the prior art with various operations, method, the flow process disclosed in the present invention in step, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (25)

1. a kind of recognition methods of CACHE DIRECTORY, it is characterised in that include:
Mobile terminal is determined and matched with the CACHE DIRECTORY described in local data base in the scanning process to memory space Catalogue;
The fraternal catalogue of catalogue of the mobile terminal to determining is identified, and by it is unidentified go out catalogue directory information Report to server;The fraternal catalogue of the described pair of catalogue determined is identified, and specifically includes:For the catalogue each Fraternal catalogue, in the local data base, and searches whether to record the catalogue matched with the fraternal catalogue in blacklist; If having, confirmation identifies the fraternal catalogue;Otherwise, as it is unidentified go out catalogue;Wherein, the mesh in the blacklist Record includes:The catalogue that system directory, user create;
The server identifies CACHE DIRECTORY from the directory information of each mobile terminal reporting.
2. method according to claim 1, it is characterised in that correspondence CACHE DIRECTORY has also been recorded in the local data base Produce the program name of the program of the CACHE DIRECTORY.
3. method according to claim 2, it is characterised in that it is described by it is unidentified go out the directory information of catalogue report To server, also include:
The mobile terminal finds out corresponding with the catalogue for each catalogue determined from the local data base Program name;And
It is described by it is unidentified go out the directory information of catalogue report to server when, also include:
By the program name for finding out correspondence it is described it is unidentified go out the directory information of catalogue report in the lump.
4. method according to claim 3, it is characterised in that directory information of the server from each mobile terminal reporting In, CACHE DIRECTORY is identified, specifically include:
The server by the program name of each mobile terminal reporting, and it is corresponding it is unidentified go out the directory information of catalogue enter Row storage;
The server to each it is unidentified go out catalogue directory information, count the number of times that the directory information is reported, according to The number of times of statistics, is that the catalogue arranges priority;
The server by the high catalog recognition of priority be CACHE DIRECTORY, and by should catalogue directory information program name Claim, be identified as produce the CACHE DIRECTORY program program name.
5. method according to claim 4, it is characterised in that it is described identify CACHE DIRECTORY after, also include:
The CACHE DIRECTORY that the server will identify that, and to should CACHE DIRECTORY program name storage to CACHE DIRECTORY number According in storehouse.
6. according to the arbitrary described method of claim 1-5, it is characterised in that it is described determine with described in local data base The catalogue that matches of CACHE DIRECTORY after, also include:
The catalogue is designated into catalogue for clearance;And
The summation of space size shared by all catalogues for clearance is shown in rubbish scans display interface.
7. a kind of method for cleaning of CACHE DIRECTORY, it is characterised in that include:
Mobile terminal is determined and the CACHE DIRECTORY phase in CACHE DIRECTORY database during being scanned to memory space The catalogue of matching;CACHE DIRECTORY in wherein described CACHE DIRECTORY database is according to the side as described in claim 1-5 is arbitrary What method was identified;
The mobile terminal, to the catalogue determined, carries out garbage-cleaning after cleaning instruction is received.
8. method according to claim 7, it is characterised in that memory space is being scanned in the mobile terminal During, also include:
After receiving scan instruction, while carrying out the cleaning data scanning of internal memory, nonvolatile storage space;
Periodically according to the progress for clearing up data scanning of internal memory, and the cleaning data scanning of nonvolatile storage space Progress, calculates overall progress;
On display interface, shown according to the progress that the overall progress carries out progress announcer, and according to described non-volatile During the cleaning data scanning of memory space, the size of the cleaning data for currently having scanned shows the progress announcer Color.
9. method according to claim 8, it is characterised in that also include:
After the completion of the internal memory, the cleaning data scanning of nonvolatile storage space, show that " key is clear in the display interface Reason " button, and " cleaning data details are checked " button.
10. method according to claim 9, it is characterised in that also include:
After the click event for receiving " cleaning data details are checked " button, following at least one is shown in the display interface The other data of species:
Internal storage data, data cached, system disk junk data, ad data, installation bag data, unloading residual data, big file Data;And, methods described also includes:
The data of the every kind of classification of correspondence, also show the size of the cleaning data of the suggestion cleaning of the data of the category, and " exhibition Open " button.
11. methods according to claim 10, it is characterised in that also include:
After the click event of " expansion " button for receiving a kind of data of classification, in the display interface category is shown The relevant information of each subitem under data;
Wherein, the relevant information of the subitem includes:The title of the subitem, take size and choose state.
12. methods according to claim 11, it is characterised in that under the system disk junk data and ad data The equal default setting of state of choosing of each subitem is to choose.
13. methods according to claim 12, it is characterised in that also include:
After the click event for receiving " key cleaning " button, the data of the subitem to having chosen are purged.
14. methods according to claim 7, it is characterised in that memory space is being scanned in the mobile terminal During, also include:
According to the call instruction produced by the operation of the first suspended window, the second suspended window is called;
Receive to the cleaning instruction produced by second suspended window operation;
According to the cleaning instruction, file is cleared up.
15. methods according to claim 14, it is characterised in that the content that first suspended window shows is:
Current memory occupancy;Or
The cleaning of file clean-up that needs of current memory occupancy and detection is pointed out.
16. methods according to claim 15, it is characterised in that the dispaly state of the second suspended window for calling is following Meaning is a kind of:
When first suspended window shows for memory usage, the second suspended window shows conventional interface;
When first suspended window is memory usage and cleaning prompting shows, the second suspended window shows conventional interface and often Increase cleaning prompting region on rule interface.
17. methods according to claim 16, it is characterised in that second suspended window includes that internal memory accelerates interface, clear Reason interface and conventional interface;
Wherein, the internal memory accelerates interface to include initial sub-interface and complete sub-interface, and initial sub-interface is used to show in current Occupancy is deposited, click is which is provided with and is accelerated functionality controls, the control to be used to call to complete sub-interface;
The cleaning interface includes scanning sub-interface, stops scanning sub-interface, cleaning sub-interface and cleared up sub-interface, scanning Interface, stop being respectively equipped with scanning sub-interface, cleaning sub-interface scan function control, to stop scan function control, a key clear Reason functionality controls, scan function control is used to call stopping scanning sub-interface, and stopping scan function control is used to call cleaning Interface, a key clearing function control is used to call clear up sub-interface;
The conventional interface include from open management function control, unloading prepackage functionality controls, privacy clearing function control, game/ Video accelerates functionality controls, software offloading functions control and timing clearing function control;
The internal memory accelerates the conventional interface that interface is the second suspended window, and the cleaning prompting region is control regions, and is provided with Corresponding prompting official documents and correspondence.
18. a kind of identifying systems of CACHE DIRECTORY, it is characterised in that include:
Multiple mobile terminals, in the scanning process for carrying out this mobile terminal memory space, determine with local data base The catalogue that the CACHE DIRECTORY of record matches;And the fraternal catalogue of the catalogue to determining is identified;By it is unidentified go out mesh The directory information of record is reported;The fraternal catalogue of the described pair of catalogue determined is identified, and specifically includes:For the mesh Each fraternal catalogue of record, in the local data base, and searches whether that record has and the fraternal catalogue phase in blacklist The catalogue matched somebody with somebody;If having, confirmation identifies the fraternal catalogue;Otherwise, as it is unidentified go out catalogue;Wherein, it is described black Catalogue in list includes:The catalogue that system directory, user create;
Server, for from the directory information of each mobile terminal reporting, identifying CACHE DIRECTORY.
19. systems according to claim 18, it is characterised in that correspondence CACHE DIRECTORY is also recorded in the local data base There is the program name of the program for producing the CACHE DIRECTORY.
20. systems according to claim 19, it is characterised in that
The mobile terminal is additionally operable to for each catalogue determined, is found out from the local data base and the catalogue phase Corresponding program name;And by the program name for finding out with it is corresponding it is unidentified go out the directory information of catalogue report in the lump.
21. systems according to claim 20, it is characterised in that
The server specifically for by the program name of mobile terminal reporting, and it is corresponding it is unidentified go out catalogue catalogue Information is stored;And to each it is unidentified go out catalogue directory information, count the number of times that the directory information is reported, according to The number of times of statistics, is that the catalogue arranges priority;It is CACHE DIRECTORY by priority high catalog recognition, and by should catalogue The program name of directory information, be identified as produce the CACHE DIRECTORY program program name.
22. systems according to claim 21, it is characterised in that
The server is additionally operable to the CACHE DIRECTORY that will identify that, and to should CACHE DIRECTORY program name storage to caching In catalog data base.
23. according to the arbitrary described system of claim 18-21, it is characterised in that
The mobile terminal is additionally operable to after the catalogue matched with the CACHE DIRECTORY described in local data base is determined, to true The catalogue made carries out garbage-cleaning.
The cleaning system of 24. a kind of CACHE DIRECTORYs, it is characterised in that include:
Scan module, during being scanned to memory space, determines and the caching mesh in CACHE DIRECTORY database The catalogue of picture recording matching;CACHE DIRECTORY in wherein described CACHE DIRECTORY database is according to such as the arbitrary institute of claim 18-22 The system identification stated out, and downloads what is obtained from the server;
Cleaning modul, clears up after instruction for receiving, and the catalogue determined to the scan module carries out garbage-cleaning.
25. a kind of mobile terminals, it is characterised in that include:The cleaning system of CACHE DIRECTORY as claimed in claim 24.
CN201410641619.0A 2014-11-13 2014-11-13 Recognition and cleaning method and system of cache directories Active CN104317741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410641619.0A CN104317741B (en) 2014-11-13 2014-11-13 Recognition and cleaning method and system of cache directories

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410641619.0A CN104317741B (en) 2014-11-13 2014-11-13 Recognition and cleaning method and system of cache directories

Publications (2)

Publication Number Publication Date
CN104317741A CN104317741A (en) 2015-01-28
CN104317741B true CN104317741B (en) 2017-05-03

Family

ID=52372976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410641619.0A Active CN104317741B (en) 2014-11-13 2014-11-13 Recognition and cleaning method and system of cache directories

Country Status (1)

Country Link
CN (1) CN104317741B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202112B (en) * 2015-05-06 2019-07-02 阿里巴巴集团控股有限公司 CACHE DIRECTORY method for refreshing and device
CN105159975B (en) * 2015-08-27 2018-09-11 北京金山安全软件有限公司 To-be-cleaned data identification method and device and electronic equipment
CN105550219A (en) * 2015-12-04 2016-05-04 航天科工智慧产业发展有限公司 Information resource automatic cataloguing method
CN105893600A (en) * 2016-04-20 2016-08-24 乐视控股(北京)有限公司 Method and device for cleaning up useless files based on mobile terminal
CN106331861A (en) * 2016-08-11 2017-01-11 四川天邑康和通信股份有限公司 Method for cleaning space of set top box
CN106372157A (en) * 2016-08-30 2017-02-01 维沃移动通信有限公司 Classification method of cached data and terminal
CN110083576B (en) * 2019-05-06 2021-07-23 珠海天燕科技有限公司 Cache directory identification method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7761497B1 (en) * 2001-07-13 2010-07-20 Vignette Software, LLC Storage medium having a manageable file directory structure
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
CN103677949A (en) * 2012-09-18 2014-03-26 深圳中兴力维技术有限公司 Method and device for caching entity with variable unique value

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7761497B1 (en) * 2001-07-13 2010-07-20 Vignette Software, LLC Storage medium having a manageable file directory structure
CN103677949A (en) * 2012-09-18 2014-03-26 深圳中兴力维技术有限公司 Method and device for caching entity with variable unique value
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files

Also Published As

Publication number Publication date
CN104317741A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104317741B (en) Recognition and cleaning method and system of cache directories
CN104317740B (en) The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology
CN104317627B (en) The cleaning data one-key scan method and device of memory space
CN104317952B (en) The scan method and device of memory space in mobile terminal
CN104317628A (en) Mobile terminal and storage space cleaning method thereof
Loeb et al. A plan for the North American bat monitoring program (NABat).
DE112015001416B4 (en) Detection of an unauthorized wireless communication device
CN101657697B (en) Systems, and methods for generating reference geocodes for point addresses
CN104375624B (en) Mobile terminal and power saving suggestion method for same
US20200090094A1 (en) Harvester control system
CN103699413B (en) Method and system for optimizing game operating environment, client and server
CN103064716B (en) The method of mobile terminal device fast discharging application program
CN102968297B (en) The software management system of mobile terminal and method
US8331904B2 (en) Apparatus and a security node for use in determining security attacks
Robert et al. Effects of forest management legacies on spruce budworm (Choristoneura fumiferana) outbreaks
CN103336737B (en) Information handling systems and the method for enforcement thereof
CN104462961A (en) Mobile terminal and privacy permission optimizing method thereof
CN104317956A (en) Query and memory space cleaning method and system based on cloud server
Ahmed et al. Road networks predict human influence on Amazonian bird communities
CN104376263A (en) Application behavior intercepting method and application behavior intercepting device
CN103023871B (en) Android privilege escalation attack detection system and method based on cloud platform
CN102508768B (en) Monitoring method and monitoring device
CN103188312B (en) Data handling system and data processing method
CN105975537A (en) Sorting method and device of application program
CN105893152A (en) Memory management method and device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220719

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY 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.