CN107066604A - A kind of cleaning garbage files method and terminal - Google Patents

A kind of cleaning garbage files method and terminal Download PDF

Info

Publication number
CN107066604A
CN107066604A CN201710277367.1A CN201710277367A CN107066604A CN 107066604 A CN107066604 A CN 107066604A CN 201710277367 A CN201710277367 A CN 201710277367A CN 107066604 A CN107066604 A CN 107066604A
Authority
CN
China
Prior art keywords
file
garbage files
target
cleaning
clearance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710277367.1A
Other languages
Chinese (zh)
Other versions
CN107066604B (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.)
Xi'an Yangyi Information Technology Co ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710277367.1A priority Critical patent/CN107066604B/en
Publication of CN107066604A publication Critical patent/CN107066604A/en
Application granted granted Critical
Publication of CN107066604B publication Critical patent/CN107066604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of cleaning garbage files method, this method includes obtaining cleaning garbage files instruction;Cleaning garbage files instruction is responded, file for clearance is obtained;Target garbage files are obtained from file for clearance according to presetting database;Wherein, presetting database is stored with the absolute path of garbage files;Obtain and confirm cleaning instruction;Wherein, confirm that cleaning instruction carries the filename at least one target garbage files for determining cleaning;Target garbage files are deleted by response confirmation cleaning instruction according to the filename of file destination.The embodiment of the present invention also discloses a kind of terminal simultaneously.

Description

A kind of cleaning garbage files method and terminal
Technical field
The present invention relates to field of terminal, more particularly to a kind of cleaning garbage files method and terminal.
Background technology
With developing rapidly for mobile terminal, user is each to meet by installing miscellaneous software in the terminal The demand of kind.User can produce more or less garbage files, existing cleaning garbage files during mobile terminal is used Method first has to obtain the absolute path of file for clearance, and the essential information of file for clearance is then obtained according to absolute path, And then judge whether file for clearance is garbage files according to the essential information of file for clearance, instruction finally according to user or Automatically garbage files are cleared up.
But the step of existing cleaning garbage files method is cumbersome, cleaning efficiency is very low.
The content of the invention
In view of this, the embodiment of the present invention is expected to provide a kind of cleaning garbage files method and terminal, cumbersome with simplification Cleaning garbage files step, improves cleaning efficiency.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
A kind of terminal, including:
First acquisition unit, for obtaining cleaning garbage files instruction;
First processing units, for responding the cleaning garbage files instruction, obtain file for clearance;
Second processing unit, for obtaining target garbage files from the file for clearance according to presetting database;Its In, the presetting database is stored with the absolute path of garbage files;
Second acquisition unit, cleaning instruction is confirmed for obtaining;Wherein, it is described to confirm that cleaning instruction carries determination cleaning At least one target garbage files filename;
3rd processing unit, for responding the confirmation cleaning instruction, according to the filename of the file destination to target Garbage files are deleted.
Terminal as described above, the second processing unit includes:
First acquisition module, for scanning the file for clearance and obtaining the absolute path of the file for clearance;
First processing module, for the presetting database to be loaded into caching;
The first processing module, is additionally operable to obtain the first file and the second file in the file for clearance;Wherein, First file is present in the file in the presetting database for the absolute path of file, and second file is file Absolute path is not present in the file in the presetting database;
First acquisition module, it is target garbage files to be additionally operable to first file mark, and obtains the mesh Mark garbage files;
First acquisition module, is additionally operable to identification second file, and obtain the fileinfo of second file;
First judge module, for judging whether second file is rubbish according to the fileinfo of second file File;
First acquisition module, if it is garbage files to be additionally operable to second file, be by second file mark Target garbage files, and obtain the target garbage files.
Terminal as described above, the second processing unit also includes:
Second acquisition module, for scanning the file for clearance and obtaining the absolute path of the file for clearance;
Second processing module, for the presetting database to be loaded into caching, and by the presetting database Data Cun Chudao Hash hash tables;
The Second processing module, is additionally operable in the file for clearance obtain the 3rd file and the 4th file;Wherein, 3rd file is present in the file in the hash tables for the absolute path of file, and the 4th file is absolute for file Path is not present in the file in the hash tables;
Second acquisition module, it is target garbage files to be additionally operable to the 3rd file mark, and obtains the mesh Mark garbage files;
Second acquisition module, is additionally operable to identification the 4th file, and obtain the fileinfo of the 4th file;
Second judge module, for judging whether the 4th file is rubbish according to the fileinfo of the 4th file File;
Second acquisition module, if it is garbage files to be additionally operable to the 4th file, be by the 4th file mark Target garbage files, and obtain the target garbage files.
Terminal as described above, in addition to:
Judging unit, the absolute path of the target garbage files for judging to have cleared up whether there is in the preset data In storehouse;
Fourth processing unit, if the absolute path for the target garbage files cleared up is not present in described preset In database, the absolute path of the target garbage files cleared up is added in the presetting database.
Terminal as described above, in addition to:
3rd acquiring unit, the fileinfo for obtaining the target garbage files;
Display unit, the fileinfo for showing the target garbage files.
A kind of cleaning garbage files method, including:
Obtain cleaning garbage files instruction;
The cleaning garbage files instruction is responded, file for clearance is obtained;
Target garbage files are obtained from the file for clearance according to presetting database;Wherein, the presetting database Be stored with the absolute path of garbage files;
Obtain and confirm cleaning instruction;Wherein, it is described to confirm that cleaning instruction carries at least one target rubbish for determining cleaning The filename of rubbish file;
Response is described to confirm cleaning instruction, and target garbage files are deleted according to the filename of the file destination.
Method as described above, it is described to obtain target garbage files from the file for clearance according to presetting database, Including:
Scan the file for clearance and obtain the absolute path of the file for clearance;
The presetting database is loaded into caching;
The first file and the second file are obtained in the file for clearance;Wherein, first file is the exhausted of file It is present in the file in the presetting database to path, second file is not present in described pre- for the absolute path of file If the file in database;
It is target garbage files by first file mark, and obtains the target garbage files;
Second file is recognized, and obtains the fileinfo of second file;
Judge whether second file is garbage files according to the fileinfo of second file;
It is target garbage files by second file mark if second file is garbage files, and obtains described Target garbage files.
Method as described above, it is described to obtain target garbage files from the file for clearance according to presetting database, Including:
Scan the file for clearance and obtain the absolute path of the file for clearance;
The presetting database is loaded into caching, and by the data Cun Chudao Hash hash in the presetting database Table;
The 3rd file and the 4th file are obtained in the file for clearance;Wherein, the 3rd file is the exhausted of file It is present in the file in the hash tables to path, the 4th file is not present in the hash tables for the absolute path of file In file;
It is target garbage files by the 3rd file mark, and obtains the target garbage files;
The 4th file is recognized, and obtains the fileinfo of the 4th file;
Judge whether the 4th file is garbage files according to the fileinfo of the 4th file;
It is target garbage files by the 4th file mark if the 4th file is garbage files, and obtains described Target garbage files.
Method as described above, the response is described to confirm cleaning instruction, according to the filename of the target garbage files After deleting target garbage files, methods described also includes:
Judge that the absolute path for the target garbage files cleared up whether there is in the presetting database;
If the absolute path of the target garbage files cleared up is not present in the presetting database, by described in The absolute path of the target garbage files of cleaning is added in the presetting database.
Method as described above, the presetting database is also stored with the fileinfos of garbage files, described in the acquisition After target garbage files, in addition to:
Obtain the fileinfo of the target garbage files;
Show the fileinfo of the target garbage files.
Cleaning garbage files method and terminal that the embodiment of the present invention is provided, obtain cleaning garbage files instruction;Response Cleaning garbage files are instructed, and obtain file for clearance;Target garbage files are obtained from file for clearance according to presetting database; Wherein, presetting database is stored with the absolute path of garbage files;Obtain and confirm cleaning instruction;Wherein, confirm that cleaning instruction is taken Filename with least one target garbage files for determining cleaning;Response confirmation cleaning instruction, according to the text of file destination Part name is deleted target garbage files;, can be exhausted by the garbage files that are stored with so when carrying out cleaning garbage files Presetting database to path reduces the quantity of documents for needing to carry out file identification, is conveniently and efficiently obtained from file for clearance Target garbage files, then according to confirming that clearing up instruction deletes finally selected target garbage files, so as to improve rubbish Rubbish file clean-up efficiency.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the communication system architecture schematic diagram that mobile terminal provided in an embodiment of the present invention can be operated;
Fig. 3 is the schematic flow sheet of cleaning garbage files method provided in an embodiment of the present invention;
Fig. 4 is the automatic scale removal process schematic diagram of garbage files provided in an embodiment of the present invention;
Fig. 5 is the display schematic diagram of target garbage files provided in an embodiment of the present invention;
Fig. 6 is the schematic flow sheet of another cleaning garbage files method provided in an embodiment of the present invention;
Fig. 7 is the schematic flow sheet of another cleaning garbage files method provided in an embodiment of the present invention;
Fig. 8 is the display signal of the fileinfo of target garbage files provided in an embodiment of the present invention and target garbage files Figure;
Fig. 9 is the schematic diagram of delete target garbage files provided in an embodiment of the present invention;
Figure 10 is the schematic flow sheet of another cleaning garbage files method provided in an embodiment of the present invention;
Figure 11 is the schematic diagram of cleaning garbage files process provided in an embodiment of the present invention;
Figure 12 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Figure 13 is the structural representation of another terminal provided in an embodiment of the present invention;
Figure 14 is the structural representation of another terminal provided in an embodiment of the present invention;
Figure 15 is the structural representation of another terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.
The mobile terminal of realization each embodiment of the invention is described referring now to accompanying drawing 1.In follow-up description, make With the suffix of such as " module ", " part " or " unit " for representing element only for being conducive to the explanation of the present invention, its Body does not have specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving It is phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), tablet personal computer (PAD), portable The mobile terminal of formula multimedia player (PMP), guider etc. and such as fixation of numeral TV, desktop computer etc. Terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving mesh Element outside, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the optional hardware architecture diagram of mobile terminal one for realizing each embodiment of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, audio/video (A/V) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part, can alternatively implement more or less components, the element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), the Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant Tooth TM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybee TM etc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module 115 typical case is GPS (global positioning system).According to current technology, GPS module 115, which is calculated, comes from three or more The range information and correct time information of satellite and for the Information application triangulation of calculating, thus according to longitude, The three-dimensional current location information of latitude and highly accurately calculating.Currently, three are used for calculating the method for position and temporal information Satellite and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115 can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 122, the static images that 121 pairs of camera is obtained in video acquisition mode or image capture mode by image capture apparatus Or the view data of video is handled.Picture frame after processing may be displayed on display unit 151.Handled through camera 121 Picture frame afterwards can be stored in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110 Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note Sound (voice data) is received via microphone 122 in record pattern, speech recognition mode etc. operational mode, and can be by this The acoustic processing of sample is voice data.Audio (voice) data after processing can be converted in the case of telephone calling model The form output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can be implemented various types of Noise eliminate (or suppress) algorithm with eliminate noise that (or suppression) produce during receiving and sending audio signal or Interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 141, to be combined below This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00 Plant information and subscriber identification module (UIM), subscriber identification module (SIM), USIM (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (Incoming Communication), alarm list Member 153 can provide tactile output (for example, vibration) to notify to user.Exported by providing such tactile, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can also be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store the data that has exported or will export (for example, telephone directory, message, still image, video etc.).And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, mobile terminal is described according to its function.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system for describing wherein be operated according to the mobile terminal of the present invention referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to the BSC275 formation interfaces with that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any of some known interfaces, the interface include such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC275 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, specific BS270 each subregion can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to obtain desired positioning letter Breath.GPS tracking techniques or outside GPS tracking techniques are substituted, the other of the position that can track mobile terminal can be used Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.It is each anti-that certain base station 270 is received Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.BSC275 is also by the number received According to MSC280 is routed to, it is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with MSC280 formation interfaces, MSC280 and BSC275 formation interfaces, and BSC275 correspondingly controls BS270 to believe forward link Number it is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
The embodiment of the present invention provides a kind of cleaning garbage files method, as shown in figure 3, this method includes:
Step 301, acquisition cleaning garbage files instruction.
It can be realized specifically, step 301 obtains cleaning garbage files instruction by terminal.For including multiple points For the terminal in area, cleaning garbage files instruction can be instruction or the pin for carrying out cleaning garbage files totally The instruction of cleaning garbage files is carried out to some specific subregion, but for mobile terminal, what cleaning garbage files referred to It is the instruction for carrying out cleaning garbage files totally.
Specifically, cleaning garbage files instruction can be sent by user or by terminal every preset time Voluntarily produce, the invention is not limited in this regard.Can be that user enters when the sender that cleaning garbage files are instructed is user Enter the application with cleaning garbage files function and click on cleaning garbage files buttons to realize.Terminal every preset time from Row produces cleaning garbage files instruction and is built upon on the basis of user opens automatic clearing function, when user open from During dynamic clearing function, user is set for the be spaced preset time of automatic cleaning, and terminal carries out backstage monitors whether reach pre- If the time, if reaching preset time, cleaning garbage files instruction is voluntarily produced.
Specifically, the automatic scale removal process of garbage files can be with as shown in figure 4, comprise the following steps:
Step a, user open automatic clearing function.
Step b, terminal carry out backstage monitoring.
Step c, terminal judge whether listening period reaches preset time.
If it should be noted that terminal judges that listening period does not reach preset time, step b is performed, after proceeding Platform is monitored.
If step d, arrival preset time, terminal judge whether battery electric quantity is more than default electricity.
If the battery electric quantity of step e, terminal is more than default electricity, terminal automatically generates cleaning garbage files instruction.
If the battery electric quantity of step f, terminal is less than default electricity, whether terminal judges itself in charging.
If it should be noted that terminal judges that terminal execution step e automatically generates cleaning garbage files and referred to from charging Order.After step completes f, terminal performs step b, proceeds backstage monitoring.
It should be noted that when user opens automatic clearing function, terminal can silently clear up garbage files, due to Presetting database be stored with user's deletion file absolute path, therefore the target rubbish text obtained according to presetting database Part, can directly be deleted, and this operation is the self study operated based on user, therefore is safe.
Step 302, response cleaning garbage files instruction, obtain file for clearance.
Specifically, step 302 response cleaning garbage files instruction, it can be realized by terminal to obtain file for clearance 's.For the terminal comprising multiple subregions, if the object of cleaning garbage files instruction is overall, then response rubbish text File for clearance acquired in part cleaning instruction is exactly overall All Files, if the object of cleaning garbage files instruction is certain Individual subregion, then the acquired file for clearance of response cleaning garbage files instruction is exactly the file of the subregion;And for movement For terminal, the acquired file for clearance of response cleaning garbage files instruction is exactly overall All Files.
Step 303, target garbage files are obtained from file for clearance according to presetting database.
Wherein, presetting database is stored with the absolute path of garbage files.
Specifically, it can be by end that step 303 obtains target garbage files according to presetting database from file for clearance Hold to realize.Deleted file is needed comprising one or more in target garbage files, but is finally to target rubbish All Files in file is deleted, will be according to confirmation clearly or carry out deletion to a part of file in target garbage files Reason instruction determines, by preset data library storage garbage files absolute path can from the file for clearance it is simpler, More quickly obtain target garbage files.
Set up specifically, presetting database is the absolute path for having deleted garbage files by record.
Step 304, acquisition confirm cleaning instruction.
Wherein, confirm that cleaning instruction carries the filename at least one target garbage files for determining cleaning.
Specifically, step 304, which is obtained, confirms that cleaning instruction can be realized by terminal.Confirm what cleaning instruction was carried It is determined that the filename of the target garbage files of cleaning can be filename or two pieces or two of target garbage files The filename of part above target garbage files.Confirm cleaning instruction can be sent by user or by terminal voluntarily Produce, the invention is not limited in this regard.Voluntarily produced by terminal when confirming that cleaning is instructed, it is to delete to confirm cleaning instruction The instruction of target complete file, when the sender for confirming cleaning instruction is user, confirming the transmission of cleaning instruction can pass through In the following manner is realized:Terminal shows first on screen to target garbage files, and then user is according to the content of display The target garbage files to be deleted of selection are carried out, the target garbage files of last terminal-pair user selection are deleted.
As an example it is assumed that target garbage files include target garbage files D, target garbage files E and target rubbish text Part F, terminal target garbage files shown on screen are as shown in figure 5, then user will delete according to the content selection of display The target garbage files removed, it is assumed that user's selection is target garbage files D, and user is clicked on " before target garbage files D " Option Box, then " confirming to delete " control is clicked on, the target garbage files D of last terminal-pair user selection is deleted.
Target garbage files are deleted by step 305, response confirmation cleaning instruction according to the filename of file destination.
Specifically, target garbage files are carried out by step 305 response confirmation cleaning instruction according to the filename of file destination Deletion can be realized by terminal.
It is preferred that, terminal can refer to mobile terminal;Mobile terminal refers to the computer equipment that can be used on the move, Saying for broad sense even includes vehicle-mounted computer including mobile phone, notebook, tablet personal computer, POS.But refer to hand in most cases Machine or smart mobile phone and tablet personal computer with a variety of application functions.As network and technology are towards more and more broadband The development in direction, Mobile Communication Industry will move towards the real mobile message epoch.On the other hand, flying with integrated circuit technique Speed development, the disposal ability of mobile terminal has had powerful disposal ability, and mobile terminal is from simple call work Tool is changed into integrated more, more complicated function a devices.This also adds broader development space to mobile terminal.
The cleaning garbage files method that the embodiment of the present invention is provided, obtains cleaning garbage files instruction;Respond rubbish text Part cleaning instruction, obtains file for clearance;Target garbage files are obtained from file for clearance according to presetting database;Wherein, Presetting database is stored with the absolute path of garbage files;Obtain and confirm cleaning instruction;Wherein, confirm that cleaning instruction is carried really Surely the filename at least one target garbage files cleared up;Response confirmation cleaning instruction, according to the filename pair of file destination Target garbage files are deleted;, can be by the garbage files absolute path that is stored with so when carrying out cleaning garbage files Presetting database reduce need carry out file identification quantity of documents, conveniently and efficiently from file for clearance obtain target rubbish Rubbish file, then according to confirming that clearing up instruction deletes finally selected target garbage files, so as to improve garbage files Cleaning efficiency.
The embodiment of the present invention provides another cleaning garbage files method, as shown in fig. 6, this method includes:
Step 401, terminal obtain cleaning garbage files instruction.
Step 402, the instruction of terminal response cleaning garbage files, obtain file for clearance.
Step 403, terminal scanning file for clearance and the absolute path for obtaining file for clearance.
Presetting database is loaded into caching by step 404, terminal.
Wherein, presetting database is stored with the absolute path of garbage files.
It should be noted that step 403 and step 404 are synchronous realizations, concrete implementation mode can be by not With thread, i.e., terminal is by a thread scans file for clearance and obtains the absolute path of file for clearance, by another Presetting database is loaded into caching by individual thread, therefore the loading procedure of presetting database is not extra holding time.
Step 405, terminal obtain the first file and the second file in file for clearance.
Wherein, the first file is present in the file in presetting database for the absolute path of file, and the second file is file Absolute path be not present in file in presetting database.
Specifically, " first " of the first file is to identify the text that the absolute path of file is present in presetting database Part, to be different from the file that the absolute path of file is not present in presetting database, " second " of the second file is to mark The absolute path of knowledge file is not present in the file in presetting database, is present in present count with the absolute path for being different from file According to the file in storehouse, that is to say, that file for clearance is divided into two kinds, and one kind is the first file, another is the second file.
Specifically, the quantity of file is probably one in the first file, it is also possible to multiple, the number of file in the first file Amount is present in presetting database depending on the absolute path of how many file;The quantity of file is probably one in second file Individual, it is also possible to multiple, the quantity of the second file is not present in presetting database depending on the absolute path of how many file In.
First file mark is target garbage files by step 406, terminal, and obtains target garbage files.
Specifically, the first file was deleted before being terminal, therefore when it is determined that these files are generated again (i.e. definitely Path exist with presetting database), without these files are identified again, directly by these file marks be target rubbish File.
Step 407, the file of terminal recognition second, and obtain the fileinfo of the second file.
Specifically, fileinfo includes file type, application and file size etc. belonging to file, the file letter of the second file Breath be for judge the second file whether be garbage files information.
Step 408, terminal judge whether the second file is garbage files according to the fileinfo of the second file.
Specifically, the second file was not deleted before being terminal, it is therefore desirable to which these files are identified, and then The fileinfo of these files is obtained, whether judge the second file is garbage files.
If step 409, the second file are garbage files, the second file mark is target garbage files by terminal, and is obtained Target garbage files.
It should be noted that sequencing is not present in the implementation of step 406 and step 407~409.When terminal opens two-wire Cheng Shi, step 406 and step 407~409 can be implemented simultaneously.
Step 410, terminal, which are obtained, confirms cleaning instruction.
Wherein, confirm that cleaning instruction carries the filename at least one target garbage files for determining cleaning.
Step 411, terminal response confirm cleaning instruction, and target garbage files are deleted according to the filename of file destination Remove.
It should be noted that the explanation of step same as the previously described embodiments is referred in above-described embodiment in the present embodiment Description, here is omitted.
The cleaning garbage files method that the embodiment of the present invention is provided, obtains cleaning garbage files instruction;Respond rubbish text Part cleaning instruction, obtains file for clearance;Target garbage files are obtained from file for clearance according to presetting database;Wherein, Presetting database is stored with the absolute path of garbage files;Obtain and confirm cleaning instruction;Wherein, confirm that cleaning instruction is carried really Surely the filename at least one target garbage files cleared up;Response confirmation cleaning instruction, according to the filename pair of file destination Target garbage files are deleted;, can be by the garbage files absolute path that is stored with so when carrying out cleaning garbage files Presetting database reduce need carry out file identification quantity of documents, conveniently and efficiently from file for clearance obtain target rubbish Rubbish file, then according to confirming that clearing up instruction deletes finally selected target garbage files, so as to improve garbage files Cleaning efficiency.
The embodiment of the present invention provides another cleaning garbage files method, as shown in fig. 7, this method includes:
Step 501, terminal obtain cleaning garbage files instruction.
Step 502, the instruction of terminal response cleaning garbage files, obtain file for clearance.
Step 503, terminal scanning file for clearance and the absolute path for obtaining file for clearance.
Presetting database is loaded into caching by step 504, terminal.
Wherein, presetting database is stored with the absolute path and fileinfo of garbage files, and fileinfo can include text Size of the type of part, the affiliated application of file and file etc..
Specifically, assuming that the garbage files stored in presetting database are file A, file B and file C, fileinfo bag Include the type of file, the affiliated application of file and the size of file.File A absolute path is path a1, and type is file Folder, affiliated application is applies a2, and size is 105KB;File B absolute path is path b1, and type is document, and affiliated application is Using b2, size is 51KB;File C absolute path is path c1, and type is file, and affiliated application is to apply c2, size For 300KB, then the information of preset data library storage can be with as shown in table 1 below:
Table 1
Filename The absolute path of file The affiliated application of file The size of file
File A Path a1 Using a2 105KB
File B Path b1 Using b2 51KB
File C Path c1 Using c2 300KB
Step 505, terminal obtain the first file and the second file in file for clearance.
Wherein, the first file is present in the file in presetting database for the absolute path of file, and the second file is file Absolute path be not present in file in presetting database.
First file mark is target garbage files by step 506, terminal, and obtains target garbage files and target rubbish The fileinfo of file.
Specifically, the fileinfo of the target garbage files from the first file can be obtained directly by presetting database .
Step 507, the file of terminal recognition second, and obtain the fileinfo of the second file.
Specifically, the fileinfo of the second file be for judge the second file whether be garbage files information.
Step 508, terminal judge whether the second file is garbage files according to the fileinfo of the second file.
If step 509, the second file are garbage files, the second file mark is target garbage files by terminal, and is obtained The fileinfo of target garbage files and target garbage files.
Specifically, because the file for when whether judge the second file is garbage files, having obtained the second file is believed Breath, therefore, the fileinfo of the file destination from the second file can be obtained by being searched in the fileinfo of the second file .
It should be noted that sequencing is not present in the implementation of step 506 and step 507~509.When terminal opens two-wire Cheng Shi, step 506 and step 507~509 can be implemented simultaneously.
The fileinfo of step 510, terminal display target garbage files.
If specifically, fileinfo includes the affiliated application of file type, file and file size, it is assumed that target garbage files Including target garbage files D, target garbage files E and target garbage files F, fileinfo includes type, affiliated application and big It is small, target garbage files D absolute path, type, affiliated application and size be respectively path d1, file, using d2, 103KB, target garbage files E absolute path, type, affiliated application and size be respectively path e1, file, using e2, 320KB, target garbage files F absolute path, type, affiliated application and size be respectively path f1, document, using f2, 500KB, terminal target garbage files and fileinfo shown on screen are as shown in Figure 8.
Step 511, terminal receive user and sent sees clearly reason instruction really.
Wherein, confirm that cleaning instruction carries the filename at least one target garbage files for determining cleaning.
It should be noted that compared with the cleaning garbage files method that the corresponding embodiments of Fig. 5 are provided, the embodiment of the present invention The cleaning garbage files method of offer, which is limited, confirms that cleaning instruction is sent by user, and confirms that cleaning instruction is by user Select what the target garbage files to be deleted were determined after the fileinfo of target garbage files has been known.
Step 512, terminal response confirm cleaning instruction, and target garbage files are deleted according to the filename of file destination Remove.
Specifically, the target garbage files to be deleted according to the content selection of display of user, it is assumed that user's selection is mesh Mark garbage files D, user's click " target garbage files D ", the control of the ejection " confirming to delete " on screen, as shown in figure 9, User clicks on the control again, and terminal-pair target garbage files D is deleted.
It should be noted that the explanation of step same as the previously described embodiments is referred in above-described embodiment in the present embodiment Description, here is omitted.
The cleaning garbage files method that the embodiment of the present invention is provided, obtains cleaning garbage files instruction;Respond rubbish text Part cleaning instruction, obtains file for clearance;Target garbage files are obtained from file for clearance according to presetting database;Wherein, Presetting database is stored with the absolute path of garbage files;Obtain and confirm cleaning instruction;Wherein, confirm that cleaning instruction is carried really Surely the filename at least one target garbage files cleared up;Response confirmation cleaning instruction, according to the filename pair of file destination Target garbage files are deleted;, can be by the garbage files absolute path that is stored with so when carrying out cleaning garbage files Presetting database reduce need carry out file identification quantity of documents, conveniently and efficiently from file for clearance obtain target rubbish Rubbish file, then according to confirming that clearing up instruction deletes finally selected target garbage files, so as to improve garbage files Cleaning efficiency.
The embodiment of the present invention provides another cleaning garbage files method, and as shown in Figure 10, this method includes:
Step 601, terminal obtain cleaning garbage files instruction.
Step 602, the instruction of terminal response cleaning garbage files, obtain file for clearance.
Step 603, terminal scanning file for clearance and the absolute path for obtaining file for clearance.
Wherein, presetting database is stored with the absolute path of garbage files.
Presetting database is loaded into caching by step 604, terminal, and by the data Cun Chudao Hash in presetting database Hash tables.
It should be noted that step 603 and step 604 are synchronous realizations, concrete implementation mode can be by not With thread, i.e., terminal is by a thread scans file for clearance and obtains the absolute path of file for clearance, by another Presetting database is loaded into caching and by the data Cun Chudao hash tables in presetting database by individual thread, therefore preset data The loading procedure in storehouse and the storing process of hash tables are not other holding times.
Step 605, terminal obtain the 3rd file and the 4th file in file for clearance.
Wherein, the 3rd file is present in the file in hash tables for the absolute path of file, and the 4th file is exhausted for file The file in hash tables is not present in path.
3rd file mark is target garbage files by step 606, terminal, and obtains target garbage files.
Step 607, the file of terminal recognition the 4th, and obtain the fileinfo of the 4th file.
Step 608, terminal judge whether the 4th file is garbage files according to the fileinfo of the 4th file.
If step 609, the 4th file are garbage files, the 4th file mark is target garbage files by terminal, and is obtained Target garbage files.
Step 610, terminal, which are obtained, confirms cleaning instruction.
Step 611, terminal response confirm cleaning instruction, and target garbage files are deleted according to the filename of file destination Remove.
It should be noted that the cleaning garbage files method that embodiment corresponding compared to Fig. 5 is provided, the embodiment of the present invention The cleaning garbage files method of offer further arrives preset data library storage after presetting database is loaded into caching Hash tables, although Hash table committed memories, but its search efficiency is high, can within the unit interval returning result, therefore, it is possible to fast Fast ground obtains the 3rd file that need not be identified from file for clearance.
It should be noted that the explanation of step same as the previously described embodiments is referred in above-described embodiment in the present embodiment Description, here is omitted.
The cleaning garbage files method that the embodiment of the present invention is provided, obtains cleaning garbage files instruction;Respond rubbish text Part cleaning instruction, obtains file for clearance;Target garbage files are obtained from file for clearance according to presetting database;Wherein, Presetting database is stored with the absolute path of garbage files;Obtain and confirm cleaning instruction;Wherein, confirm that cleaning instruction is carried really Surely the filename at least one target garbage files cleared up;Response confirmation cleaning instruction, according to the filename pair of file destination Target garbage files are deleted;, can be by the garbage files absolute path that is stored with so when carrying out cleaning garbage files Presetting database reduce need carry out file identification quantity of documents, conveniently and efficiently from file for clearance obtain target rubbish Rubbish file, then according to confirming that clearing up instruction deletes finally selected target garbage files, so as to improve garbage files Cleaning efficiency.
Further, on the basis of the corresponding embodiments of Fig. 6 and Figure 10, the cleaning garbage files method that the present invention is provided exists Response confirmation cleaning instruction, after being deleted according to the filename of target garbage files target garbage files, in addition to:
Judge that the absolute path for the target garbage files cleared up whether there is in presetting database;If the mesh cleared up The absolute path of mark garbage files is not present in presetting database, and the absolute path for the target garbage files cleared up is added Into presetting database.
Specifically, after cleaning garbage files have been carried out every time, for having cleared up but absolute path is not stored in preset data File in storehouse, their absolute path is added in presetting database, and the absolute path stored in presetting database is more next It is more, so during follow-up cleaning garbage files, it is not necessary to carry out the quantity of documents that file identification, garbage files judge More and more, cleaning garbage files speed is also just more and more faster.
Further, on the basis of the corresponding embodiments of Fig. 7, the cleaning garbage files method that the present invention is provided is true in response See clearly reason instruction, after being deleted according to the filename of target garbage files target garbage files, in addition to:
Judge that the absolute path for the target garbage files cleared up whether there is in presetting database;If the mesh cleared up The absolute path of mark garbage files is not present in presetting database, by the absolute path and text of the target garbage files cleared up Part information is added in presetting database.
A complete embodiment is provided below and illustrates the cleaning garbage files method that the present invention is provided, as shown in figure 11, The present embodiment comprises the following steps:
Step 701, cleaning application start.
Step 702, acquisition cleaning garbage files instruction.
It should be noted that step 703 and step 704~706 are performed simultaneously.
Step 703, file for clearance is scanned, and obtains the absolute path of file for clearance.
Step 704, presetting database data are loaded into hash tables.
Step 705, judge whether presetting database loading procedure completes.
If step 706, presetting database loading procedure are not completed, loading procedure completion is continued waiting for.
It should be noted that after step 706 is performed, fixed time intervals continue executing with step 705.
If step 707, presetting database loading procedure are completed, file path is traveled through, using existing in ergodic process Hash tables skip the identification of partial document, and are that the file for not being saved in presetting database is marked.
Step 708, ergodic process terminate, and filter out target file to be deleted.
Step 709, acquisition confirm cleaning instruction.
Step 710, the file according to confirmation cleaning instruction acquisition user's determination deletion.
Step 711, the file to user's determination deletion are deleted.
Step 712, judge to determine whether the file deleted has mark.
If step 713, determine delete file have mark, the absolute path of this document is preserved to presetting database In.
The embodiment of the present invention provides a kind of terminal, and the terminal can apply to the corresponding implementation of Fig. 3, Fig. 6, Fig. 7 and Figure 10 In the operation response method that example is provided, as shown in figure 12, the terminal 8 includes:
First acquisition unit 81, for obtaining cleaning garbage files instruction.
First processing units 82, for responding cleaning garbage files instruction, obtain file for clearance.
Second processing unit 83, for obtaining target garbage files from file for clearance according to presetting database;Wherein, Presetting database is stored with the absolute path of garbage files.
Second acquisition unit 84, cleaning instruction is confirmed for obtaining;Wherein, confirm that cleaning instruction is carried and determine cleaning The filename of at least one target garbage files.
3rd processing unit 85, clears up for response confirmation and instructs, according to the filename of file destination to target rubbish text Part is deleted.
The terminal that the embodiment of the present invention is provided, obtains cleaning garbage files instruction;Cleaning garbage files instruction is responded, is obtained Take file for clearance;Target garbage files are obtained from file for clearance according to presetting database;Wherein, preset data library storage There is the absolute path of garbage files;Obtain and confirm cleaning instruction;Wherein, confirm that cleaning instruction is carried and determine at least the one of cleaning The filename of part target garbage files;Target garbage files are entered by response confirmation cleaning instruction according to the filename of file destination Row is deleted;So when carrying out cleaning garbage files, it can subtract by the presetting database for the garbage files absolute path that is stored with The quantity of documents of progress file identification is needed less, and target garbage files, Ran Hougen are conveniently and efficiently obtained from file for clearance Finally selected target garbage files are deleted according to confirming that cleaning is instructed, so as to improve cleaning garbage files efficiency.
Further, on the basis of the corresponding embodiments of above-mentioned Figure 12, as shown in figure 13, second processing unit 83 includes:
First acquisition module 831, for scanning file for clearance and obtaining the absolute path of file for clearance.
First processing module 832, for presetting database to be loaded into caching.
First processing module 832, is additionally operable in file for clearance obtain the first file and the second file;Wherein, first File is present in the file in presetting database for the absolute path of file, and the second file is not present in for the absolute path of file File in presetting database.
First acquisition module 831, it is target garbage files to be additionally operable to the first file mark, and obtains target rubbish text Part.
First acquisition module 831, is additionally operable to recognize the second file, and obtain the fileinfo of the second file.
First judge module 833, for judging whether the second file is garbage files according to the fileinfo of the second file.
First acquisition module 831, is target rubbish text by the second file mark if it is garbage files to be additionally operable to the second file Part, and obtain target garbage files.
Further, on the basis of the corresponding embodiments of above-mentioned Figure 12, as shown in figure 14, second processing unit 73 includes:
Second acquisition module 834, for scanning file for clearance and obtaining the absolute path of file for clearance.
Second processing module 835, is deposited for presetting database to be loaded into caching, and by the data in presetting database Store up hash tables.
Second processing module 835, is additionally operable in file for clearance obtain the 3rd file and the 4th file;Wherein, the 3rd File is present in the file in hash tables for the absolute path of file, and the 4th file is not present in hash for the absolute path of file File in table.
Second acquisition module 834, it is target garbage files to be additionally operable to the 3rd file mark, and obtains target rubbish text Part.
Second acquisition module 834, is additionally operable to recognize the 4th file, and obtain the fileinfo of the 4th file.
Second judge module 836, for judging whether the 4th file is garbage files according to the fileinfo of the 4th file.
Second acquisition module 834, is target rubbish text by the 4th file mark if it is garbage files to be additionally operable to the 4th file Part, and obtain target garbage files.
Further, on the basis of the corresponding embodiments of above-mentioned Figure 12, as shown in figure 15, terminal 8 also includes:
Judging unit 86, the absolute path of the target garbage files for judging to have cleared up whether there is in presetting database In.
Fourth processing unit 87, if the absolute path of the target garbage files for having cleared up is not present in presetting database In, the absolute path for the target garbage files cleared up is added in presetting database.
3rd acquiring unit 88, the fileinfo for obtaining target garbage files;
Display unit 89, the fileinfo for display target garbage files.
It should be noted that the interaction in the present embodiment between unit and module, be referred to Fig. 3, Fig. 6, Interaction in a kind of cleaning garbage files method that the corresponding embodiment of Fig. 7, Figure 10 is provided, here is omitted.
The terminal that the embodiment of the present invention is provided, obtains cleaning garbage files instruction;Cleaning garbage files instruction is responded, is obtained Take file for clearance;Target garbage files are obtained from file for clearance according to presetting database;Wherein, preset data library storage There is the absolute path of garbage files;Obtain and confirm cleaning instruction;Wherein, confirm that cleaning instruction is carried and determine at least the one of cleaning The filename of part target garbage files;Target garbage files are entered by response confirmation cleaning instruction according to the filename of file destination Row is deleted;So when carrying out cleaning garbage files, it can subtract by the presetting database for the garbage files absolute path that is stored with The quantity of documents of progress file identification is needed less, and target garbage files, Ran Hougen are conveniently and efficiently obtained from file for clearance Finally selected target garbage files are deleted according to confirming that cleaning is instructed, so as to improve cleaning garbage files efficiency.
In actual applications, the first acquisition unit 71, first processing units 72, second processing unit 73, first are obtained Modulus block 731, first processing module 732, the first judge module 733, the second acquisition module 7324, Second processing module 735, Two judge modules 736, second acquisition unit 74, the 3rd processing unit 75, judging unit 76, fourth processing unit the 77, the 3rd are obtained Take unit 78, display unit 79 can by the central processing unit (Central Processing Unit, CPU) in terminal, Microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, ) or field programmable gate array (Field Programmable Gate Array, FPGA) etc. is realized DSP.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes It is engaged in device, air conditioner, or network equipment etc.) perform method described by each embodiment of the invention.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of terminal, it is characterised in that the terminal includes:
First acquisition unit, for obtaining cleaning garbage files instruction;
First processing units, for responding the cleaning garbage files instruction, obtain file for clearance;
Second processing unit, for obtaining target garbage files from the file for clearance according to presetting database;Wherein, institute Presetting database is stated to be stored with the absolute path of garbage files;
Second acquisition unit, cleaning instruction is confirmed for obtaining;Wherein, it is described to confirm that cleaning instruction carries determination cleaning extremely The filename of few target garbage files;
3rd processing unit, for responding the confirmation cleaning instruction, according to the filename of the file destination to target rubbish File is deleted.
2. terminal according to claim 1, it is characterised in that the second processing unit includes:
First acquisition module, for scanning the file for clearance and obtaining the absolute path of the file for clearance;
First processing module, for the presetting database to be loaded into caching;
The first processing module, is additionally operable to obtain the first file and the second file in the file for clearance;Wherein, it is described First file is present in the file in the presetting database for the absolute path of file, and second file is absolute for file Path is not present in the file in the presetting database;
First acquisition module, it is target garbage files to be additionally operable to first file mark, and obtains the target rubbish Rubbish file;
First acquisition module, is additionally operable to identification second file, and obtain the fileinfo of second file;
First judge module, for judging whether second file is rubbish text according to the fileinfo of second file Part;
First acquisition module, is target by second file mark if it is garbage files to be additionally operable to second file Garbage files, and obtain the target garbage files.
3. terminal according to claim 1, it is characterised in that the second processing unit also includes:
Second acquisition module, for scanning the file for clearance and obtaining the absolute path of the file for clearance;
Second processing module, for the presetting database to be loaded into caching, and by the data in the presetting database Store Hash hash tables;
The Second processing module, is additionally operable in the file for clearance obtain the 3rd file and the 4th file;Wherein, it is described 3rd file is present in the file in the hash tables for the absolute path of file, and the 4th file is the absolute path of file It is not present in the file in the hash tables;
Second acquisition module, it is target garbage files to be additionally operable to the 3rd file mark, and obtains the target rubbish Rubbish file;
Second acquisition module, is additionally operable to identification the 4th file, and obtain the fileinfo of the 4th file;
Second judge module, for judging whether the 4th file is rubbish text according to the fileinfo of the 4th file Part;
Second acquisition module, is target by the 4th file mark if it is garbage files to be additionally operable to the 4th file Garbage files, and obtain the target garbage files.
4. terminal according to claim 1, it is characterised in that the terminal also includes:
Judging unit, the absolute path of the target garbage files for judging to have cleared up whether there is in the presetting database In;
Fourth processing unit, if the absolute path for the target garbage files cleared up is not present in the preset data In storehouse, the absolute path of the target garbage files cleared up is added in the presetting database.
5. terminal according to claim 1, it is characterised in that the terminal also includes:
3rd acquiring unit, the fileinfo for obtaining the target garbage files;
Display unit, the fileinfo for showing the target garbage files.
6. a kind of cleaning garbage files method, it is characterised in that methods described includes:
Obtain cleaning garbage files instruction;
The cleaning garbage files instruction is responded, file for clearance is obtained;
Target garbage files are obtained from the file for clearance according to presetting database;Wherein, the preset data library storage There is the absolute path of garbage files;
Obtain and confirm cleaning instruction;Wherein, it is described to confirm that cleaning instruction carries at least one target rubbish text for determining cleaning The filename of part;
Response is described to confirm cleaning instruction, and target garbage files are deleted according to the filename of the file destination.
7. method according to claim 6, it is characterised in that it is described according to presetting database from the file for clearance Target garbage files are obtained, including:
Scan the file for clearance and obtain the absolute path of the file for clearance;
The presetting database is loaded into caching;
The first file and the second file are obtained in the file for clearance;Wherein, first file is the absolute road of file Footpath is present in the file in the presetting database, and second file is not present in the present count for the absolute path of file According to the file in storehouse;
It is target garbage files by first file mark, and obtains the target garbage files;
Second file is recognized, and obtains the fileinfo of second file;
Judge whether second file is garbage files according to the fileinfo of second file;
It is target garbage files by second file mark, and obtain the target if second file is garbage files Garbage files.
8. method according to claim 6, it is characterised in that it is described according to presetting database from the file for clearance Target garbage files are obtained, including:
Scan the file for clearance and obtain the absolute path of the file for clearance;
The presetting database is loaded into caching, and by the data Cun Chudao Hash hash tables in the presetting database;
The 3rd file and the 4th file are obtained in the file for clearance;Wherein, the 3rd file is the absolute road of file Footpath is present in the file in the hash tables, and the 4th file is not present in the hash tables for the absolute path of file File;
It is target garbage files by the 3rd file mark, and obtains the target garbage files;
The 4th file is recognized, and obtains the fileinfo of the 4th file;
Judge whether the 4th file is garbage files according to the fileinfo of the 4th file;
It is target garbage files by the 4th file mark, and obtain the target if the 4th file is garbage files Garbage files.
9. the method according to claim 7 or 8, it is characterised in that the response is described to confirm cleaning instruction, according to described After the filename of target garbage files is deleted target garbage files, methods described also includes:
Judge that the absolute path for the target garbage files cleared up whether there is in the presetting database;
If the absolute path of the target garbage files cleared up is not present in the presetting database, cleared up described Target garbage files absolute path be added to the presetting database in.
10. according to any described method of claim 6~8, it is characterised in that the presetting database is also stored with rubbish text After the fileinfo of part, the acquisition target garbage files, in addition to:
Obtain the fileinfo of the target garbage files;
Show the fileinfo of the target garbage files.
CN201710277367.1A 2017-04-25 2017-04-25 Junk file cleaning method and terminal Active CN107066604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710277367.1A CN107066604B (en) 2017-04-25 2017-04-25 Junk file cleaning method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710277367.1A CN107066604B (en) 2017-04-25 2017-04-25 Junk file cleaning method and terminal

Publications (2)

Publication Number Publication Date
CN107066604A true CN107066604A (en) 2017-08-18
CN107066604B CN107066604B (en) 2020-12-01

Family

ID=59604506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710277367.1A Active CN107066604B (en) 2017-04-25 2017-04-25 Junk file cleaning method and terminal

Country Status (1)

Country Link
CN (1) CN107066604B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287860A (en) * 2017-09-05 2018-07-17 腾讯科技(深圳)有限公司 Model generating method, garbage files recognition methods and device
CN110083576A (en) * 2019-05-06 2019-08-02 珠海天燕科技有限公司 A kind of recognition methods of CACHE DIRECTORY and device
CN110727389A (en) * 2018-07-16 2020-01-24 网宿科技股份有限公司 File cleaning method and system
CN111752896A (en) * 2019-03-26 2020-10-09 青岛海信移动通信技术股份有限公司 Method and device for cleaning junk files in mobile terminal and mobile terminal
WO2021128893A1 (en) * 2019-12-26 2021-07-01 浪潮电子信息产业股份有限公司 Method and system for identifying garbage data, electronic device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
CN104156414A (en) * 2014-07-30 2014-11-19 珠海市君天电子科技有限公司 Terminal, device and method for clearing junk files
WO2016000545A1 (en) * 2014-06-30 2016-01-07 北京金山安全软件有限公司 Junk picture file identification method, apparatus, and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
WO2016000545A1 (en) * 2014-06-30 2016-01-07 北京金山安全软件有限公司 Junk picture file identification method, apparatus, and electronic device
CN104156414A (en) * 2014-07-30 2014-11-19 珠海市君天电子科技有限公司 Terminal, device and method for clearing junk files

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287860A (en) * 2017-09-05 2018-07-17 腾讯科技(深圳)有限公司 Model generating method, garbage files recognition methods and device
CN110727389A (en) * 2018-07-16 2020-01-24 网宿科技股份有限公司 File cleaning method and system
CN110727389B (en) * 2018-07-16 2023-10-20 网宿科技股份有限公司 File cleaning method and system
CN111752896A (en) * 2019-03-26 2020-10-09 青岛海信移动通信技术股份有限公司 Method and device for cleaning junk files in mobile terminal and mobile terminal
CN110083576A (en) * 2019-05-06 2019-08-02 珠海天燕科技有限公司 A kind of recognition methods of CACHE DIRECTORY and device
WO2021128893A1 (en) * 2019-12-26 2021-07-01 浪潮电子信息产业股份有限公司 Method and system for identifying garbage data, electronic device, and storage medium
US11687489B2 (en) 2019-12-26 2023-06-27 Inspur Electronic Information Industry Co., Ltd. Method and system for identifying garbage data, electronic device, and storage medium

Also Published As

Publication number Publication date
CN107066604B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN104883430B (en) A kind of mobile terminal and do not read the treating method and apparatus of footmark
CN107066604A (en) A kind of cleaning garbage files method and terminal
CN106406996A (en) Management method and device of background application program
CN106911806A (en) A kind of method of PUSH message, terminal, server and system
CN104679890B (en) Picture method for pushing and device
CN106155695A (en) The removing control device and method of background application
CN105872948A (en) Virtual SIM (Subscriber Identity Module) card realization device and method
CN104951549A (en) Mobile terminal and photo/video sort management method thereof
CN106506778A (en) A kind of dialing mechanism and method
CN106598538A (en) Method and system for updating instruction set
CN104735254B (en) terminal screen locking method and system
CN105872997A (en) Short message merging method and terminal equipment
CN106095464A (en) A kind of method and device of the seamless operation of application program
CN105183830B (en) picture browsing method and device
CN106791149A (en) A kind of method of mobile terminal and control screen
CN104866095A (en) Mobile terminal, and method and apparatus for managing desktop thereof
CN104898927B (en) The method and device of information search
CN104731484B (en) The method and device that picture is checked
CN106488035A (en) A kind of mobile terminal and control method
CN106376004A (en) Information processing method and terminal
CN106484534A (en) Control method for the mobile terminal of displaying and control device
CN104915103B (en) The method and mobile terminal of arranging desktop icons
CN106569670A (en) Application processing apparatus and method
CN106777253A (en) The update method and device of a kind of dictionary
CN106777251A (en) A kind of file management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201113

Address after: Room 305, Xi'an innovation design center, No.69, west section of south 2nd Ring Road, Beilin District, Xi'an City, Shaanxi Province

Applicant after: Xi'an Yangyi Information Technology Co.,Ltd.

Address before: 518000 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Garbage file cleaning method and terminal

Effective date of registration: 20220215

Granted publication date: 20201201

Pledgee: Xi'an innovation financing Company limited by guarantee

Pledgor: Xi'an Yangyi Information Technology Co.,Ltd.

Registration number: Y2022610000028

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230209

Granted publication date: 20201201

Pledgee: Xi'an innovation financing Company limited by guarantee

Pledgor: Xi'an Yangyi Information Technology Co.,Ltd.

Registration number: Y2022610000028

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A garbage file cleaning method and terminal

Effective date of registration: 20230620

Granted publication date: 20201201

Pledgee: Shaanxi credit re Company Limited by Guarantee

Pledgor: Xi'an Yangyi Information Technology Co.,Ltd.

Registration number: Y2023610000480