CN104317740B - The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology - Google Patents

The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology Download PDF

Info

Publication number
CN104317740B
CN104317740B CN201410641595.9A CN201410641595A CN104317740B CN 104317740 B CN104317740 B CN 104317740B CN 201410641595 A CN201410641595 A CN 201410641595A CN 104317740 B CN104317740 B CN 104317740B
Authority
CN
China
Prior art keywords
cleaning
file
cache
interface
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
CN201410641595.9A
Other languages
Chinese (zh)
Other versions
CN104317740A (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.)
360 Digital Security Technology Group 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 CN201410641595.9A priority Critical patent/CN104317740B/en
Publication of CN104317740A publication Critical patent/CN104317740A/en
Application granted granted Critical
Publication of CN104317740B publication Critical patent/CN104317740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The collection method and device of a kind of CACHE DIRECTORY/file based on sandbox technology are the embodiment of the invention provides, methods described includes:In program operation process, the function of analog subscriber operation triggering described program;And CACHE DIRECTORY/the file produced in the process of running using sandbox technology monitoring described program;The program name of the information correspondence described program of the CACHE DIRECTORY/file that will be monitored is stored in cache information database.In technical scheme, technical staff is collected automatically using sandbox technology in server end to various programs CACHE DIRECTORY produced in the process of running or cache file, compared with these CACHE DIRECTORYs or cache file is artificially collected, substantially increase collection efficiency, the workload of technical staff is reduced, is easy to automatically identify more CACHE DIRECTORYs or cache file.

Description

The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology
Technical field
The present invention relates to computer technology, specifically, the present invention relates to a kind of CACHE DIRECTORY/text based on sandbox technology The collection method and device of part.
Background technology
Mobile terminal refers to the 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 Generation realizes that the catalogue and file of some functions (are briefly referred to as delaying herein to lift program operating rate or helper Deposit catalogue and cache file).If CACHE DIRECTORY or cache file cannot be cleared up in time, will take mobile terminal in it is substantial amounts of Memory space;It is therefore desirable to clear up CACHE DIRECTORY or cache file, the memory space of mobile terminal is discharged.
The method of cleaning memory space, generally includes at present:Memory space is scanned;From the memory space for scanning Catalogue or file in, catalogue or file that the CACHE DIRECTORY or cache file determined and prestore match, and to determining Catalogue or file cleared up.
However, the existing CACHE DIRECTORY for prestoring or cache file are generally all artificially collected.For example, technical staff exists On the server end in high in the clouds, using the various functions of program, to program CACHE DIRECTORY produced in the process of running or caching File is recorded, and storage corresponding with the program.The efficiency for artificially collecting CACHE DIRECTORY or cache file is very low, causes The CACHE DIRECTORY of collection or the negligible amounts of cache file, so as to easily cause the substantial amounts of caching of the memory space of mobile terminal Catalogue or cache file are not cleared up by leakage identification, cause memory space utilization ratio low.
Therefore, it is necessary to CACHE DIRECTORY/file collection, method for cleaning and the device of a kind of mobile terminal are provided, to improve The recognition efficiency of CACHE DIRECTORY or cache file, reduces the workload of technical staff, is easy to automatically identify more caching mesh Record or cache file, and then CACHE DIRECTORY or cache file are entered according to the automatical and efficient CACHE DIRECTORY for identifying or cache file Row cleaning, 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 practice of the invention.
Technical scheme is according on one side, there is provided a kind of CACHE DIRECTORY/file based on sandbox technology Collection method, including:
In program operation process, the function of analog subscriber operation triggering described program;And
CACHE DIRECTORY/the file produced in the process of running using sandbox technology monitoring described program;
Cache information data are arrived in the program name storage of the information correspondence described program of the CACHE DIRECTORY/file that will be monitored In storehouse.
It is preferred that the function of the analog subscriber operation triggering described program, specifically includes:
The order of at least one event is input into described program, with the various operations that analog subscriber is input into for described program Event, trigger described program function;
Wherein, the event includes at least one of following:
Screen sliding event, click event, double click event, mouse moving event.
It is preferred that CACHE DIRECTORY/file that the utilization sandbox technology monitoring described program is produced in the process of running, tool Body includes:
Sandbox is created, the running environment of described program is generated, the initial file system structure of described program is recorded;
In the running of described program, current file system structure is obtained using the sandbox;
Current file system structure is compared with the initial file system structure;
CACHE DIRECTORY/file that described program is produced in the process of running is determined according to comparative result.
Technical scheme additionally provides a kind of method for cleaning of CACHE DIRECTORY/file according on the other hand, wraps Include:
Mobile terminal is determined and the caching mesh in cache information database during being scanned to memory space The directories/files that record/file matches;
The mobile terminal carries out garbage-cleaning to the directories/files determined according to predetermined Prune Policies;
Wherein, the CACHE DIRECTORY/file in the cache information database is to provide CACHE DIRECTORY/file according to the present invention Collection method collect, and downloaded from the server by the mobile terminal.
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;
The periodically progress of the cleaning data scanning according to internal memory, and the cleaning data of nonvolatile storage space is swept 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/file based on sandbox technology, also includes:
After the completion of the internal memory, the cleaning data scanning of nonvolatile storage space, " one is shown in the display interface Key is cleared up " button, and " cleaning data details are checked " button.
Further, the method for cleaning of the CACHE DIRECTORY/file based on sandbox technology, also includes:
After the click event for receiving " cleaning data details are checked " button, shown as follows extremely in the display interface 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/file based on sandbox technology, also includes:
After the click event of " expansion " button for receiving a kind of data of classification, such is shown in the display interface 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/file based on sandbox technology, 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 of the first suspended window displaying is:Current memory occupancy;Or
The cleaning for needing file clean-up 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 display conventional interface;
When first suspended window is memory usage and cleaning prompting displaying, 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 completes sub-interface, and initial sub-interface is used to show to be worked as Preceding memory usage, which is provided with click and accelerates functionality controls, and the control is for calling completion sub-interface;
The cleaning interface includes scanning sub-interface, stops scanning sub-interface, cleaning sub-interface and cleared up sub-interface, sweeps Sub-interface is retouched, stopped being respectively equipped with scan function control in scanning sub-interface, cleaning sub-interface, stopped scan function control, one Key clearing function control, scan function control is used to call stopping scanning sub-interface, stops scan function control clear for calling Reason sub-interface, a key clearing function control is used to call to have cleared 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 method for cleaning of CACHE DIRECTORY/file according on the other hand, wraps Include:
The directories/files information in memory space is obtained, the directories/files information is carried on during cleaning is asked to clothes Business device sends;
The server is determined and the cache information database from the directories/files information of the cleaning request In the directories/files that match of CACHE DIRECTORY/file;And the title of the directories/files that will be determined is carried on cleaning order It is middle to be returned to the mobile terminal;
The mobile terminal carries out garbage-cleaning according to the cleaning order to respective directories/file.
It is preferred that the directories/files information obtained in memory space, specifically includes:
Mobile terminal is scanned to the bibliographic structure in the memory space;
The mobile terminal will scan the directory information for obtaining compares with the catalogue in the blacklist being locally stored;
Using the information of the catalogue outside the blacklist as the directory information for getting;
Wherein, the catalogue in the blacklist includes:The catalogue that system directory, user create.
It is preferred that the directories/files information obtained in memory space, specifically includes:
Mobile terminal is scanned to the bibliographic structure in the memory space;
For the catalogue that each is scanned, the timestamp and last scan mistake of the catalogue that will be read during present scan The timestamp of the catalogue recorded in journey is compared;If it is different, then obtaining the directory information of the catalogue.
Technical scheme additionally provides a kind of CACHE DIRECTORY/text based on sandbox technology according on the other hand The collection device of part, including:
User's operation simulation module, in program operation process, analog subscriber operation to trigger the function of described program;
Cache information monitoring module, for the caching mesh produced in the process of running using sandbox technology monitoring described program Record/file, and the CACHE DIRECTORY/file that will be monitored information output;
Cache information memory module, the information of the CACHE DIRECTORY/file for the cache information monitoring module to be exported The program name of correspondence described program is stored in cache information database.
Technical scheme additionally provides a kind of server according on the other hand, including:The base that the present invention is provided In the collection device of the CACHE DIRECTORY/file of sandbox technology.
Technical scheme additionally provides a kind of cleaning plant of CACHE DIRECTORY/file according on the other hand, wraps Include:
Scan module, during being scanned to memory space, determines and delaying in cache information database Deposit the directories/files that directories/files match;Wherein, the CACHE DIRECTORY/file in the cache information database be by comprising What the server of the collection device of the CACHE DIRECTORY/file based on sandbox technology that the present invention is provided was collected, and from the service What device was downloaded;
Cleaning modul, for carrying out garbage-cleaning to the directories/files determined.
Technical scheme additionally provides a kind of mobile terminal according on the other hand, including:The present invention provides slow Deposit the cleaning plant of directories/files.
Technical scheme additionally provides a kind of cleaning system of CACHE DIRECTORY/file according on the other hand, wraps Include:
Mobile terminal, for obtaining the directories/files information in memory space, the directories/files information is carried on It is transmitted in cleaning request;And according to the cleaning order for returning, garbage-cleaning is carried out to respective directories/file;
Server, for from the directories/files information of the cleaning request, determining and the cache information database In the directories/files that match of CACHE DIRECTORY/file;And the title of the directories/files that will be determined is carried on cleaning order It is middle to be returned to the mobile terminal.
In technical scheme, technical staff is being transported using sandbox technology in server end to various programs Produced CACHE DIRECTORY or cache file are collected automatically during row, with artificially collect these CACHE DIRECTORYs or caching text Part is compared, and substantially increases collection efficiency, reduces the workload of technical staff, is easy to automatically identify more CACHE DIRECTORYs Or cache file.
And, according to the automatical and efficient CACHE DIRECTORY for identifying or cache file to CACHE DIRECTORY or slow in the technical scheme Deposit file to be cleared up, the service efficiency of memory space can be improved, improve the experience of user.
Brief description of the drawings
Fig. 1 is the collection method flow signal of the CACHE DIRECTORY or cache file based on sandbox technology of the embodiment of the present invention Figure;
CACHE DIRECTORY or the collection device internal structure of cache file that Fig. 2 is the embodiment of the present invention based on sandbox technology Block schematic illustration;
Fig. 3 is a kind of schematic flow sheet of the method for cleaning of CACHE DIRECTORY or cache file of the embodiment of the present invention;
Fig. 4 shows for a kind of framework of the internal structure of the cleaning plant of CACHE DIRECTORY or cache file of the embodiment of the present invention It is intended to;
Fig. 5 is a kind of configuration diagram of the cleaning system of CACHE DIRECTORY or cache file of the embodiment of the present invention;
Fig. 6 is the schematic flow sheet of the method for cleaning of another CACHE DIRECTORY or cache file of the embodiment of the present invention;
Fig. 7 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. 7 b to Fig. 7 e, Fig. 8 a to Fig. 8 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. 9, Figure 10 are respectively two kinds of schematic flow sheets of the file clean-up method based on 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 It is exemplary to scheme the embodiment of description, 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, " one It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that what is used in specification of the invention arranges Diction " including " refer to the presence of the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition 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 one or more associated wholes or any cell of listing item and all combines.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also Understand, 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 " both include wireless communication The equipment of number receiver, the equipment of its wireless signal receiver for only possessing non-emissive ability, and including receiving and transmitting 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 is shown 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 is considered, it is possible to use software engineering, and analog subscriber pair is input a command for from trend program The operation of program, with the various functions of trigger;Using sandbox technology automonitor in the process of running, in triggering respectively Produced catalogue and file in the case of kind function, so that caching mesh produced in realizing automatic collection procedure running Record or cache file and from extract catalogue and file in identify CACHE DIRECTORY or cache file.It is slow with the program of artificially collecting Deposit catalogue or cache file compared, technical scheme substantially increases the recognition efficiency of CACHE DIRECTORY or cache file, The workload of technical staff is reduced, is easy to automatically identify more CACHE DIRECTORYs or cache file, and then according to automatic high The CACHE DIRECTORY or cache file that effect is identified are cleared up CACHE DIRECTORY or cache file, so as to improve making for memory space With efficiency, the experience of user is improved.
Realized on the server that technical scheme can be beyond the clouds:Various journeys are run on server beyond the clouds Sequence, the CACHE DIRECTORY or cache file produced by each program are collected using sandbox technology.
It is in fact possible to obtain multiple programs by number of ways store in server;For example, server can pass through The softwares such as mobile phone assistant, application market obtain various program storages in book server.
Before using the CACHE DIRECTORY or cache file produced by sandbox technology collection procedure, can be directed to be run The initial file system structure of program creation sandbox, the running environment of generation program, and logging program, i.e. logging program is opened first The file under each catalogue and each catalogue produced by after dynamic.
Server can carry out the collection of CACHE DIRECTORY and cache file using sandbox technology to each program;Fig. 1 shows Server is gone out for a due-in set cache catalogue or the program of cache file, the operation using sandbox technology to the program Journey is monitored, and collects the flow of the method for CACHE DIRECTORY produced in the program operation process and cache file and illustrate Figure, comprises the following steps:
S101:In program operation process, analog subscriber operates the function of trigger.
Specifically, user's operation simulation module can be installed in the server, user's operation simulation module can be with The order of at least one event, the thing of the various operations being input into for program with analog subscriber are input into the program of current operation Part, the function of trigger.
For example, user's operation simulation module can to the input of the program of operation swipe event, click event, it is long by event, The order of the various events such as double click event and mouse moving event and combination event, is input into analog subscriber for the program Swiping, clicking operation, length press various operations and the combination operations such as operation, double click operation and mouse moving operation, so that Trigger the various functions of the program.
S102:The CACHE DIRECTORY or cache file produced in the process of running using sandbox technology monitoring programme.
Specifically, using the sandbox for being before the program creation, the running to program is monitored;In monitoring process In, can be obtained by sandbox and record the file under the current each catalogue of the program and each catalogue, that is, record the program Current file system structure.
S103:The CACHE DIRECTORY that to monitor or the information of cache file to should program program name storage to caching In information database.
Specifically, the current file system structure of the program that server will be obtained in step S102 is initial with the program File system structure is compared;Determine catalogue and text that the program newly produces compared to its initial file system structure Part, the CACHE DIRECTORY produced in the process of running as the program or cache file;And then the CACHE DIRECTORY or slow that will be determined Deposit file to should program program name storage in cache information database.
More excellent, after the catalogue and file that the program is newly produced compared to its initial file system structure is determined, The mode that manual identified can be also aided with therefrom determines the CACHE DIRECTORY that can clear up or cache file storage to cache information data In storehouse, to improve recognition accuracy, such that it is able to more accurately clear up CACHE DIRECTORY or cache file.
More preferably, the Prune Policies that CACHE DIRECTORY records the CACHE DIRECTORY can be also corresponded in cache information database.Than Such as, a Prune Policies for 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, a Prune Policies for CACHE DIRECTORY can be " timeliness 3 days ", i.e., to timestamp under the catalogue away from File from current time more than 3 days carries out cleaning deletion.
The cache information database that collection method based on above-mentioned CACHE DIRECTORY or cache file is obtained, the embodiment of the present invention There is provided a kind of CACHE DIRECTORY being arranged in the server in high in the clouds or the collection device of cache file;The inside of the collection device The block schematic illustration of structure as shown in Fig. 2 including:User's operation simulation module 201, cache information monitoring module 202 and caching Information storage module 203.
User's operation simulation module 201 is used in program operation process, the work(of analog subscriber operation triggering described program Energy.
Cache information monitoring module 202 is used for the CACHE DIRECTORY produced in the process of running using sandbox technology monitoring programme Or cache file, and the CACHE DIRECTORY or the information output of cache file that will be monitored.
Cache information memory module 203 is used for CACHE DIRECTORY or the cache file for exporting cache information monitoring module 202 Information correspondence program program name storage in cache information database.
The work(of above-mentioned user's operation simulation module 201, cache information monitoring module 202 and caching information storage module 203 The concrete methods of realizing of energy, may be referred to the particular content of above-mentioned method flow step as shown in Figure 1, and here is omitted.
The cache information database that collection method based on above-mentioned CACHE DIRECTORY or cache file is obtained, the embodiment of the present invention Additionally provide a kind of method that CACHE DIRECTORY or cache file in memory space to mobile terminal are cleared up:Mobile terminal can The cache information database that the collection method based on above-mentioned CACHE DIRECTORY or cache file is obtained is downloaded with from the server in high in the clouds, And then the CACHE DIRECTORY or cache file in the memory space using flow and method as shown in Figure 3 to this mobile terminal are carried out clearly Reason, specifically includes following steps:
S301:Mobile terminal during being scanned to memory space, the catalogue (or file) arrived to Current Scan Judge whether that matched catalogue (or file) can be found in cache information database;If so, performing following step Rapid S302;Otherwise, the catalogue (or file) not to Current Scan is cleared up.
Specifically, mobile terminal is during the memory space to this mobile terminal is scanned, for Current Scan The catalogue for arriving, judges whether to find the mesh in the CACHE DIRECTORY described in the cache information database that can be downloaded from server Record:If so, the catalogue to be then defined as the catalogue matched with the CACHE DIRECTORY in cache information database;If it is not, then not right The catalogue of Current Scan is cleared up.
Also, mobile terminal is arrived during the memory space to this mobile terminal is scanned for Current Scan File, judge whether described in the cache information database that can be downloaded from server or find this article in cache file Part:If so, this document to be then defined as the file matched with the cache file in cache information database;If it is not, then not right The file of Current Scan is cleared up.
S302:Mobile terminal carries out garbage-cleaning to the catalogue or file determined.
Mobile terminal is for mesh that CACHE DIRECTORY being determined in step S301 and in cache information database matches Record or the file matched with the cache file in cache information database, in this step, can be according to cache information number Garbage-cleaning is carried out according to corresponding Prune Policies in storehouse.
Based on CACHE DIRECTORY or the method for cleaning of cache file in above-mentioned mobile terminal memory space, the present invention is implemented A kind of CACHE DIRECTORY being arranged in mobile terminal or the cleaning plant of cache file that example is provided, the framework of internal structure are illustrated Figure as shown in figure 4, including:Scan module 401 and cleaning modul 402.
Scan module 401 be used for memory space is scanned during, determine with cache information database Catalogue or file that CACHE DIRECTORY or cache file match;Wherein, in cache information database CACHE DIRECTORY or caching text Part be by the server in high in the clouds, the collection device of CACHE DIRECTORY provided in an embodiment of the present invention or cache file collects , and downloaded from the server.
Cleaning modul 402 is used for the catalogue determined to scan module 401 or file carries out garbage-cleaning;More preferably, clearly Reason module 402 is used for catalogue or the file determined to scan module 401, according to corresponding cleaning plan in cache information database Slightly carry out garbage-cleaning.
The concrete methods of realizing of above-mentioned scan module 401, the function of cleaning modul 402, may be referred to above-mentioned as shown in Figure 3 Method flow step particular content, here is omitted.
Additionally, being carried out present invention also offers the CACHE DIRECTORY or cache file in a kind of memory space to mobile terminal The system of cleaning;The system as shown in figure 5, including:The server 502 of multiple mobile terminals 501, high in the clouds.
In fact, the cleaning system of the CACHE DIRECTORY of mobile terminal memory space or cache file, can use such as Fig. 6 institutes The method flow for showing, CACHE DIRECTORY or cache file to the memory space of mobile terminal 501 are cleared up, and are specifically included as follows Step:
S601:Mobile terminal 501 obtains the directory information or fileinfo in memory space, and directory information or file are believed Breath sends in being carried on cleaning request to server 502.
Specifically, the memory space of 501 pairs of this mobile terminals of mobile terminal is scanned, and obtains the catalogue in memory space Information or fileinfo;And the directory information or fileinfo of acquisition are carried in cleaning request, via networks such as internets Sent to the server 502 in high in the clouds.Directory information can include:The path of catalogue and title;Additionally, directory information can also be wrapped Include:The size of the version number, timestamp and shared memory space of catalogue.Fileinfo can include:The path of file and Title;Additionally, fileinfo can also include:The size of the version number, timestamp and shared memory space of file.
More preferably, be carried in cleaning request for the directory information or fileinfo of acquisition by mobile terminal 501, to high in the clouds Before server 502 sends, first the directory information or fileinfo of acquisition and local blacklist can be compared;If black There is no the directory information or fileinfo that obtain in list, then the directory information or fileinfo of acquisition are carried on cleaning request Sent to the server 502 in high in the clouds;Do not send otherwise.Wherein, blacklist can specifically include:The information of system directory, user Information of the catalogue of establishment etc..
It is preferred that be carried in cleaning request for the directory information or fileinfo of acquisition by mobile terminal 501, to high in the clouds Before server 502 sends, during the current time stamp of the catalogue that will scan and last scan the catalogue of record when Between stab and be compared;If two timestamps are inconsistent, by obtain the catalogue directory information be carried on cleaning request in The server 502 in high in the clouds sends;If two timestamps are consistent, cleaning request is not sent.
S602:Server 502 is determined and the caching mesh in cache information database from the directory information of cleaning request Determined and the cache file phase in cache information database in the catalogue for matching, or the fileinfo asked from cleaning of using videotape to record With file.
Specifically, after server 502 receives cleaning request, the directory information of the catalogue of its carrying is therefrom parsed, or The fileinfo of file;For the directory information of each catalogue for parsing, if can be from the cache information data of book server In storehouse, the directory information CACHE DIRECTORY consistent with the directory information is found out, then obtain and look into from caching information database The Prune Policies corresponding to CACHE DIRECTORY found out.
Also, server 502 is for the fileinfo of file that each is parsed, if can believe from the caching of book server In breath database, the fileinfo cache file consistent with this document information is found out, then obtained from caching information database The Prune Policies corresponding to cache file for taking and finding out.
S603:The catalogue or the title of file that server 502 will be determined are carried on during cleaning is ordered to mobile terminal 501 Return.
It is preferred that server 502 will be determined and the CACHE DIRECTORY phase in cache information database in step S602 The title of the catalogue matched somebody with somebody, and be carried in the lump in cleaning order with the Prune Policies corresponding to the catalogue, to mobile terminal 501 Return.
Or, server 502 by it is being determined in step S602, by with cache information database in cache file phase The title of the file matched somebody with somebody, and be carried in the lump in cleaning order with the Prune Policies corresponding to this document, to mobile terminal 501 Return.
Further, during cache information database can also be carried in cleaning order, corresponding to the journey of the catalogue or file The program name of sequence.
S604:Mobile terminal 501 is ordered according to cleaning, and garbage-cleaning is carried out to respective directories or file.
It is preferred that after mobile terminal 501 receives cleaning order, the title of catalogue or file and right is therefrom parsed The Prune Policies of catalogue or file are answered, and garbage-cleaning is carried out to corresponding catalogue or file according to the Prune Policies for parsing.
Further, mobile terminal 501 can also be parsed from the cleaning order for receiving with the title of catalogue or file, And the program name of the program corresponding to Prune Policies, orient the current file system of the program according to program name is parsed System structure;And then catalogue that therefrom to find out title consistent with the catalogue or file for parsing or file;Greatly reduce and look into The scope of catalogue or file is ask, is conducive to improving inquiry velocity, so as to improve the clear of CACHE DIRECTORY or cache file on the whole Reason speed.
More excellent, in order to reduce the operation of mobile terminal user, present invention also offers a kind of cleaning number of memory space According to a key scanning method, as shown in Figure 7a, its flow specifically may include steps of:
S701: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, can With by cleaning data scanning button set in advance in the display screen for clicking on mobile terminal, or the preassembled branch of opening 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 can specifically 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 distributes thread.For example, on the mobile terminal of CPU multinuclears, can be distributed according to CPU and check figure and 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 the Clean Up Database that is locally stored 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 It is cleaning data to record, 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 being recorded 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 perform cleaning risk and receive user determination clear up instruction after, All subdirectories and file in the catalogue carry out choosing cleaning.
Part is cleared up, i.e., carry out cleaning deletion to catalogue or file that suggestion cleaning is designated in the catalogue;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 being recorded in Clean Up Database can specifically include:Internal storage data, caching number According to, system disk junk data, ad data, bag data, unloading residual data, large file etc. are installed.
S702:The cleaning of the periodically progress of the cleaning data scanning according to internal memory, and 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 being reached for i-th cyclefiWhen being reached for i-th cycle The progress of the cleaning data scanning of nonvolatile storage space;wcThe accounting weight of overall progress, w are accounted for for internal memory scanningfFor 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 The accounting weight setting that internal memory scanning accounts for overall progress is 0.5, and nonvolatile storage space scanning is accounted for 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 for clearing up 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 calculates overall progress, for example, can be according to internal memory Progress, the progress of the cleaning data scanning of nonvolatile storage space, internal memory and the non-volatile memories for clearing up data scanning are empty Between respective size calculate overall progress.
S703: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 S702 is periodically calculated, can be by such as scheming Progress bar shown in 7b periodically carries out progress and shows.
Certainly, in practical application, progress announcer can also be specially circular progress except that can be specially progress bar Percentages show device.
S704:On display interface, during the cleaning data scanning according to nonvolatile storage space, currently scan Cleaning data size, show progress announcer color.
In the embodiment of the present invention, step S703, step S704 do not have the execution sequence of priority, i.e. step S704 can be first Performed simultaneously in step S703 or with step S703.
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 current cleaning data for 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 current nonvolatile storage space for having scanned;Then, For the number range determined, according in advance to should the color value that sets of number range, 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, for yellow is arrived during 20-100M Orange gradual change, more than 100M is orange to red.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 small.
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 shown in Figure 7 c, " internal memory rubbish " represents the cleaning data of internal memory, " 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 figure 7d, what " 135MB " was represented is that the corresponding Prune Policies for scanning are Advise the size of all cleaning data of 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 can forbid the scanning of item, and after the end of scan, on display interface, as shown in figure 7e, 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 display.
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, the cleaning of internal memory, nonvolatile storage space that mobile terminal will can be scanned 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 Display " cleaning data details are checked " button.
Correspondingly, after the click event for receiving " cleaning data details are checked " button, as shown in Figure 8 a, on display circle 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 can specifically lead to Cross in scanning process, the matching result with the Clean Up Database downloaded in advance or store is determined.So, in display interface Middle display 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 specific generic to the cleaning data of nonvolatile storage space understanding, 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 shown in Figure 7 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 be shown on display interface The cleaning data details of internal memory as shown in Figure 8 b;Pressed " the cleaning data details of nonvolatile storage space are checked " is received After the click event of key, can be shown on display interface nonvolatile storage space as shown in Figure 8 c cleaning data it is detailed Feelings.
Further, it is contemplated that the cleaning data for scanning often both have 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. 8 a, 8c 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. 8 c or Fig. 8 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 the cleaning data of suggestion cleaning are usually 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 has chosen.
So, by clicking on " expansions " button, state can be chosen according to each subitem under the data of the category for showing, Understand the Prune Policies of cleaning data.And the size of a cleaning data for the suggestion cleaning of the data of classification typically refers to such 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 be determined that what can be deleted.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.
Additionally, the inventive method additionally provides two kinds of file clean-up methods based on suspended window, one of which is based on suspending The schematic flow sheet of the file clean-up method of window, as shown in figure 9, comprising the following steps:
S901, 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%, display is blue;When interior Deposit occupancy 85% and more than, display is 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 completes 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 is for calling completion 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 display is blue, and when memory usage is 85% and the above, initial sub-interface display is red; Click on after accelerating functionality controls, memory usage drops to 0% and gos up again the memory usage to acceleration, interface from initial value Also there is corresponding change in color, ultimately generate completion 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 subtracts 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. cleaning 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 to have cleared up sub-interface.
The detailed process of cleaning is:Before cleaning, scanning sub-interface displaying current stored value;After click scan functionality controls, Stop scanning sub-interface and show the rubbish value for scanning;Click on after stopping 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 is cleared up and has shown clear The rubbish of reason.
Wherein, if the rubbish for scanning is less than or equal to 50M, it is blueness to stop scanning sub-interface, cleaning sub-interface;If sweeping The rubbish for describing is more than 50M, then it is red to stop scanning sub-interface, cleaning sub-interface.
C. often include that opening management function control, unloading certainly pre-installs functionality controls, privacy clearing function control, trip with interface 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 the control for setting control and entering system interface, wherein, setting 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 display conventional interface, conventional interface tool Body is that internal memory accelerates interface.
B. when the first suspended window be memory usage and cleaning prompting displaying when, the second suspended window display 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 other method, when cleaning prompting is corresponding with the function at the second suspended window interface, the second suspended window is direct Interface needed for display cleaning prompting.
S902, 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 of the second suspended window or cleaning prompting region are operated.
S903, is instructed according to cleaning, and file is cleared up.
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 specific method.
A. after user mobile phone newly installs software, whether start/backstage opens authority certainly in the new software installed of detection, if There is and obtained Root authority, then the first suspended window is pointed out.
The first suspended window is clicked on, the second suspended window is called, the second suspended window cleaning prompting region display official documents and correspondence is " newly-increased to open certainly Software, puts this treatment.", click on cleaning prompting region after, jump to the conventional interface of the second suspended window, by commonly use 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, the second suspended window, the second suspended window cleaning prompting region display official documents and correspondence " memory headroom is called 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, the second suspended window, the second suspended window cleaning prompting region display official documents and correspondence " memory space is called 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, the second suspended window, cleaning prompting region display official documents and correspondence " the 5 sections of prepackages of the second suspended window is called 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 official documents and correspondence that second suspended window cleaning prompting region shows is " 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, " 5 sections seldom for the second suspended window cleaning prompting region display official documents and correspondence 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 Enter software uninstalling system interface with the software offloading functions control at interface, 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, the second suspended window, the second suspended window cleaning prompting region display official documents and correspondence " similar software is called 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 other method, it is connected by USB line when mobile phone screen locking and with computer, at night between 901-5 points, detection is The no storage rubbish cleared up existed more than 100M, if in the presence of 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, in the first suspended window scheduled time (such as 2 hours) no longer produce new prompting.
In the method, whether cleaning points out official documents and correspondence, detection opportunity and prompting interval 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 that cleaning is needed in mobile terminal, and Cleared up based on the second suspended window, user friendly operation, improved Consumer's Experience.
Figure 10 is referred to, Figure 10 is the schematic flow sheet of another file clean-up method based on suspended window of the invention, such as Shown in Figure 10, comprise the following steps:
S1001, according to the call instruction produced by the operation of the first suspended window, calls the second suspended window.
S1002, receives to the cleaning instruction produced by the operation of the second suspended window.
S1003, is instructed according to cleaning, and file is cleared up.
In the method, step S1001, S1002, S1003 are identical with the step in method shown in Fig. 9, no longer go to live in the household of one's in-laws on getting married herein State.
S1004, 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.
S1005, after the second suspended window is closed, calls the corresponding pop-up guided to file clean-up.
It is described in detail below by specific method.
A. after the second suspended window is closed, call and ignore using the pop-up of list for setting, will be commonly used by pop-up Software be added to and ignore using in list, it is to avoid be cleaned.Specifically, the setting that user is clicked in pop-up is ignored applies list Button, list interface is applied into ignoring;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, whether suggestion forbids in detection mobile terminal From the software for opening, if so, calling the pop-up for opening management certainly.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, whether suggestion disables in detection mobile terminal Pre-installed software, if so, calling 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, forbid from the software or the pre-installed software of suggestion deactivation for opening when suggestion is not detected When, with the presence or absence of being of little use software in detection mobile terminal, if in the presence of calling 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, forbid from software, the pre-installed software of suggestion deactivation for opening when suggestion is not detected Or be of little use software when, detect whether to have turned on automatic cleaning, if not opening, call the bullet for opening automatic cleaning internal memory 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 at family in time.
In the technical scheme of the embodiment of the present invention, technical staff is in server end using sandbox technology to various journeys Sequence CACHE DIRECTORY produced in the process of running or cache file are collected automatically, with artificially collect these CACHE DIRECTORYs or Cache file is compared, and substantially increases collection efficiency, reduces the workload of technical staff, is easy to automatically identify more delaying Deposit catalogue or cache file.
And, according to the automatical and efficient CACHE DIRECTORY for identifying or cache file to CACHE DIRECTORY or slow in the technical scheme Deposit file to be cleared up, the service efficiency of memory space can be improved, improve the experience of user.
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 computer program of the storage 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 store It is suitable to storage e-command and to be 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 the frame in each frame and these structure charts and/or block diagram and/or 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 is realized, so that by the treatment of computer or other programmable data processing methods Device is come the scheme specified in the frame or multiple frame 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 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, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, it is of the prior art with various operations, method, the flow 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 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 (21)

1. a kind of collection method of the CACHE DIRECTORY/file based on sandbox technology, it is characterised in that including:
In advance each program operation process collected, the function of analog subscriber operation triggering described program is specifically included:To Described program is input into the order of at least one event, the event of the various operations being input into for described program with analog subscriber, touches Send out the function of described program;And
CACHE DIRECTORY/the file produced in the process of running using sandbox technology monitoring described program, is specifically included:Create husky Case, generates the running environment of described program, records the initial file system structure of described program;In the running of described program In, obtain current file system structure using the sandbox;By current file system structure and the initial file system Structure is compared;CACHE DIRECTORY/file that described program is produced in the process of running is determined according to comparative result;
Cache information database is arrived in the program name storage of the information correspondence described program of the CACHE DIRECTORY/file that will be monitored In.
2. method according to claim 1, it is characterised in that the event includes at least one of following:
Screen sliding event, click event, mouse moving event.
3. a kind of method for cleaning of the CACHE DIRECTORY/file based on sandbox technology, it is characterised in that including:
Mobile terminal during being scanned to memory space, determine with the CACHE DIRECTORY in cache information database/ The directories/files that file matches;
The mobile terminal carries out garbage-cleaning to the directories/files determined;
Wherein, the CACHE DIRECTORY/file in the cache information database is according to the method as described in claim 1-2 is any Collect, and downloaded from server by the mobile terminal.
4. method according to claim 3, it is characterised in that be scanned to memory space in the mobile terminal During, also include:
After receiving scan instruction, while carrying out the cleaning data scanning of internal memory, nonvolatile storage space;
The cleaning data scanning of the periodically progress of the cleaning data scanning according to internal memory, and 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.
5. method according to claim 4, 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.
6. method according to claim 5, 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.
7. method according to claim 6, 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 display category 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.
8. method according to claim 7, it is characterised in that each under the system disk junk data and ad data The equal default setting of state of choosing of subitem is to have chosen.
9. method according to claim 8, 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.
10. method according to claim 3, it is characterised in that be scanned to memory space 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.
11. methods according to claim 10, it is characterised in that the content of first suspended window displaying is:
Current memory occupancy;Or
The cleaning for needing file clean-up of current memory occupancy and detection is pointed out.
12. methods according to claim 11, 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 display conventional interface;
When first suspended window is memory usage and cleaning prompting displaying, the second suspended window display conventional interface and routine Increase cleaning prompting region on interface.
13. methods according to claim 12, 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 completes 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 is for calling completion 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 to have cleared 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.
A kind of 14. method for cleaning of CACHE DIRECTORY/file, it is characterised in that including:
The directories/files information in memory space is obtained, the directories/files information is carried on during cleaning is asked to server Send;
The server is determined and the caching in cache information database from the directories/files information of the cleaning request The directories/files that directories/files match;And the title of the directories/files that will be determined is carried on during cleaning is ordered to movement Terminal is returned;
The mobile terminal carries out garbage-cleaning according to the cleaning order to respective directories/file;
Wherein, the CACHE DIRECTORY/file in the cache information database is according to the method as described in claim 1-2 is any Collect.
15. methods according to claim 14, it is characterised in that the directories/files information in the acquisition memory space, Specifically include:
Mobile terminal is scanned to the bibliographic structure in the memory space;
The mobile terminal will scan the directory information for obtaining compares with the catalogue in the blacklist being locally stored;
Using the information of the catalogue outside the blacklist as the directory information for getting;
Wherein, the catalogue in the blacklist includes:The catalogue that system directory, user create.
16. methods according to claim 14, it is characterised in that the directories/files information in the acquisition memory space, Specifically include:
Mobile terminal is scanned to the bibliographic structure in the memory space;
For the catalogue that each is scanned, during the timestamp and last scan of the catalogue that will be read during present scan The timestamp of the catalogue of record is compared;If it is different, then obtaining the directory information of the catalogue.
A kind of 17. collection devices of the CACHE DIRECTORY/file based on sandbox technology, it is characterised in that including:
User's operation simulation module, in advance each program operation process collected, analog subscriber operation triggering to be described The function of program, specifically includes:The order of at least one event is input into described program, it is defeated for described program with analog subscriber The event of the various operations for entering, triggers the function of described program;
Cache information monitoring module, for using sandbox technology monitoring described program produce in the process of running CACHE DIRECTORY/ File, and the CACHE DIRECTORY/file that will be monitored information output, specifically include:Sandbox is created, the operation of described program is generated Environment, records the initial file system structure of described program;In the running of described program, worked as using the sandbox Preceding file system structure;Current file system structure is compared with the initial file system structure;According to comparing Result determines CACHE DIRECTORY/file that described program is produced in the process of running;
Cache information memory module, the information correspondence of the CACHE DIRECTORY/file for the cache information monitoring module to be exported The program name of described program is stored in cache information database.
A kind of 18. servers, it is characterised in that including:CACHE DIRECTORY/text based on sandbox technology as claimed in claim 17 The collection device of part.
A kind of 19. cleaning plants of CACHE DIRECTORY/file, it is characterised in that including:
Scan module, during being scanned to memory space, determines and the caching mesh in cache information database The directories/files that record/file matches;Wherein, the CACHE DIRECTORY/file in the cache information database is according to such as right It is required that what the server described in 18 was collected, and downloaded from the server;
Cleaning modul, for the directories/files to determining, carries out garbage-cleaning.
A kind of 20. mobile terminals, it is characterised in that including:Cleaning plant as claimed in claim 19.
A kind of 21. cleaning systems of CACHE DIRECTORY/file, it is characterised in that including:
Mobile terminal, for obtaining the directories/files information in memory space, cleaning is carried on by the directories/files information It is transmitted in request;And according to the cleaning order for returning, garbage-cleaning is carried out to respective directories/file;
Server, for from the directories/files information of the cleaning request, determining and the caching in cache information database The directories/files that directories/files match;And the title of the directories/files that will be determined is carried on during cleaning is ordered to described Mobile terminal is returned;Wherein, the CACHE DIRECTORY/file in the cache information database is according to as claimed in claim 18 What server was collected.
CN201410641595.9A 2014-11-13 2014-11-13 The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology Active CN104317740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410641595.9A CN104317740B (en) 2014-11-13 2014-11-13 The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410641595.9A CN104317740B (en) 2014-11-13 2014-11-13 The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology

Publications (2)

Publication Number Publication Date
CN104317740A CN104317740A (en) 2015-01-28
CN104317740B true CN104317740B (en) 2017-07-07

Family

ID=52372975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410641595.9A Active CN104317740B (en) 2014-11-13 2014-11-13 The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology

Country Status (1)

Country Link
CN (1) CN104317740B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978152A (en) * 2015-07-03 2015-10-14 北京奇虎科技有限公司 Method and apparatus for cleaning up files in cache
CN105893278A (en) * 2016-03-30 2016-08-24 北京金山安全软件有限公司 System cache garbage cleaning method and device and terminal equipment
CN107368345A (en) 2016-05-12 2017-11-21 阿里巴巴集团控股有限公司 The method and device of application data processing
CN106383748A (en) * 2016-09-05 2017-02-08 Tcl集团股份有限公司 Cloud service-based storage space clearing method and system
CN107609038B (en) * 2017-08-14 2020-08-07 华为技术有限公司 Data cleaning method and device
CN108958719B (en) * 2018-04-03 2020-08-11 北京航空航天大学 Artificial intelligence writing method for source code of digital aircraft buffer area information processing
CN108920271A (en) * 2018-05-17 2018-11-30 广州优视网络科技有限公司 Application cache method for cleaning, device, storage medium and terminal
CN109190367B (en) * 2018-08-15 2023-02-17 北京奇虎科技有限公司 Method and device for running application program installation package by utilizing sandbox
CN110083576B (en) * 2019-05-06 2021-07-23 珠海天燕科技有限公司 Cache directory identification method and device
CN111241035B (en) * 2020-01-07 2023-10-20 华为终端有限公司 Application management method and device and terminal equipment
CN111246297A (en) * 2020-01-10 2020-06-05 湖南快乐阳光互动娱乐传媒有限公司 Cache cleaning method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663059A (en) * 2012-03-30 2012-09-12 奇智软件(北京)有限公司 Method and system for automatically cleaning redundant items in computer terminal
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN103136091A (en) * 2013-01-28 2013-06-05 北京奇虎科技有限公司 Method and device for detecting safety state of terminal device
CN103164229A (en) * 2013-04-08 2013-06-19 北京奇虎科技有限公司 Method and device for clearing progresses of mobile terminal
CN103440456A (en) * 2013-09-06 2013-12-11 Tcl集团股份有限公司 Method and device for evaluating safety of application program
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103559276A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 Method and device for clearing useless files

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7953773B2 (en) * 2005-07-15 2011-05-31 Oracle International Corporation System and method for deterministic garbage collection in a virtual machine environment
US8793289B2 (en) * 2006-04-28 2014-07-29 Sap Ag Method and system for detecting memory leaks and copying garbage collection files

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663059A (en) * 2012-03-30 2012-09-12 奇智软件(北京)有限公司 Method and system for automatically cleaning redundant items in computer terminal
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN103136091A (en) * 2013-01-28 2013-06-05 北京奇虎科技有限公司 Method and device for detecting safety state of terminal device
CN103164229A (en) * 2013-04-08 2013-06-19 北京奇虎科技有限公司 Method and device for clearing progresses of mobile terminal
CN103440456A (en) * 2013-09-06 2013-12-11 Tcl集团股份有限公司 Method and device for evaluating safety of application program
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103559276A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 Method and device for clearing useless files

Also Published As

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

Similar Documents

Publication Publication Date Title
CN104317740B (en) The method for cleaning and device of the CACHE DIRECTORY/file based on sandbox technology
CN104317628A (en) Mobile terminal and storage space cleaning method thereof
CN104317741B (en) Recognition and cleaning method and system of cache directories
CN104317627B (en) The cleaning data one-key scan method and device of memory space
CN110245035A (en) A kind of link trace method and device
CN104615852B (en) The method for order and the raising source service efficiency of registering for guarantee online booking
CN104317952B (en) The scan method and device of memory space in mobile terminal
CN104375624B (en) Mobile terminal and power saving suggestion method for same
CN102799514B (en) Method and system for managing log records
CN103336737B (en) Information handling systems and the method for enforcement thereof
CN101334792B (en) Personalized service recommendation system and method
CN104317956A (en) Query and memory space cleaning method and system based on cloud server
CN103559231B (en) A kind of file system quota management method, apparatus and system
US20080235183A1 (en) Workload Aware Checking of Database Reorganization
CN104284162A (en) Video retrieval method and system
CN101916507A (en) Bridge health monitoring system
CN107004086A (en) Security information and incident management
CN104881483B (en) Automatic detection evidence collecting method for the attack of Hadoop platform leaking data
CN109408536A (en) A kind of cloud platform data managing method
CN103812840A (en) Method and system for identifying malicious web sites
CN106648796A (en) Application processing method and device
CN104317951B (en) Memory space method for cleaning and device based on prefix type database
CN104317857A (en) House information acquisition service system
CN101984697A (en) Wireless data service troubleshooting method and system
Hicks et al. A statistical approach to white-nose syndrome surveillance monitoring using acoustic data

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

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

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210617

Address after: 100016 1773, 15 / F, 17 / F, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee after: Beijing Hongteng Intelligent 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: Beijing Qizhi Business Consulting Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100016 1773, 15 / F, 17 / F, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee after: Sanliu0 Digital Security Technology Group Co.,Ltd.

Address before: 100016 1773, 15 / F, 17 / F, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee before: Beijing Hongteng Intelligent Technology Co.,Ltd.