CN107766351A - The recognition methods of file directory and device - Google Patents
The recognition methods of file directory and device Download PDFInfo
- Publication number
- CN107766351A CN107766351A CN201610677067.8A CN201610677067A CN107766351A CN 107766351 A CN107766351 A CN 107766351A CN 201610677067 A CN201610677067 A CN 201610677067A CN 107766351 A CN107766351 A CN 107766351A
- Authority
- CN
- China
- Prior art keywords
- file directory
- garbage files
- application program
- file
- attribute information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of identification of file directory and device, belong to Internet technical field.This method includes:In application program running, when monitoring the establishment event of file directory, Hook Function is called;By Hook Function, the system function called during file directory creates is monitored;According to system function, the attribute information of file directory is obtained, for attribute information for indicating the belonging relation between file directory and application program, attribute information comprises at least file directory name, application program identification.The present invention monitors the system function by being called during application program establishment file catalogue by calling Hook Function, and then according to the system function of calling, obtains the attribute information of file directory.Because the attribute information of file directory indicates the belonging relation between file directory and application program, thus without user's manual identified, you can identify the application program belonging to file directory, not only save identification cost, and accuracy of identification is higher.
Description
Technical field
The present invention relates to Internet technical field, the recognition methods of more particularly to a kind of file directory and device.
Background technology
In the process of running, terminal can block commonly used program in SD (Secure Digital Card, safe digital card)
Upper is application program establishment file catalogue, and then deposited under the file directory created needs to delay in application program running
The file deposited.Clashed in order to avoid the file directory of different application, terminal is for application program establishment file catalogue
When, prefix that typically can be using the application message of application program as file directory name.Increase with the file of caching, can in SD card
The space used becomes less and less, and the speed of service of terminal is slower and slower.In order to lift the speed of service of terminal, it is necessary to identify
Go out the application program belonging to file directory in SD card, and then according to affiliated application program, the file directory in SD card is carried out
Optionally delete.
, can be by the way of artificial when file directory being identified at present, the prefix by user according to file directory, know
Do not go out the application program belonging to file directory.
During the present invention is realized, inventor has found that prior art at least has problems with:
It is identified using manual type, identification cost is higher, and when not including application message in file directory, user
The application program belonging to file directory can not be gone out, the accuracy of identification is relatively low.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of recognition methods of file directory and dress
Put.The technical scheme is as follows:
On the one hand, there is provided a kind of recognition methods of file directory, methods described include:
In application program running, when monitoring the establishment event of file directory, Hook Function is called;
By the Hook Function, the system function called during the file directory creates is monitored;
According to the system function, the attribute information of the file directory is obtained, the attribute information is used to indicating described
Belonging relation between file directory and the application program, the attribute information comprise at least file directory name, the application
Program identification.
On the other hand, there is provided a kind of identification device of file directory, described device include:
Calling module, in application program running, when monitoring the establishment event of file directory, calling hook
Subfunction;
Monitoring modular, for by the Hook Function, monitoring the system called during the file directory creates
Function;
Acquisition module, for according to the system function, obtaining the attribute information of the file directory, the attribute information
For indicating the belonging relation between the file directory and the application program, the attribute information comprises at least file directory
Name, the application program identification.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By calling Hook Function, the system function by being called during application program establishment file catalogue, Jin Ergen are monitored
According to the system function of calling, the attribute information of file directory is obtained.Because the attribute information of file directory indicates file directory
Belonging relation between application program, thus without user's manual identified, you can identify the application journey belonging to file directory
Sequence, identification cost is not only saved, and accuracy of identification is higher.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of flow chart of the recognition methods for file directory that one embodiment of the invention provides;
Fig. 2 is a kind of flow chart of the recognition methods for file directory that another embodiment of the present invention provides;
Fig. 3 is a kind of schematic diagram for garbage files list generation process that another embodiment of the present invention provides;
Fig. 4 is a kind of schematic diagram for terminal display interface that another embodiment of the present invention provides;
Fig. 5 is a kind of schematic diagram for terminal display interface that another embodiment of the present invention provides;
Fig. 6 is a kind of structural representation of the identification device for file directory that another embodiment of the present invention provides;
Fig. 7 is the structural representation of the identification terminal of the file directory involved by another embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Application program operationally, understands the establishment file catalogue on the local storages such as the SD card of terminal in terminal, with slow
Deposit the file generated in running or the file received etc..With the growth of terminal usage time, terminal local storage
The file stored on device is more and more, slow down the speed of service of terminal significantly, in order to lift the speed of service of terminal, can recognize that
Go out each file directory on local storage, and the application program according to belonging to each file directory, to the text in file directory
Part is optionally deleted, so as to reserve more memory spaces for terminal.Due to the recognition methods of existing file directory
The each file directory of user's manual identified is needed, the cost not only identified is higher, and the precision identified is relatively low, therefore, of the invention
Embodiment provides a kind of recognition methods of file directory, and referring to Fig. 1, method flow provided in an embodiment of the present invention includes:
101st, in application program running, when monitoring the establishment event of file directory, Hook Function is called.
102nd, the system function called by Hook Function, monitoring file directory during creating.
103rd, according to system function, obtain the attribute information of file directory, the attribute information be used to indicating file directory with
Belonging relation between application program, the attribute information comprise at least file directory name, application program identification.
Method provided in an embodiment of the present invention, by calling Hook Function, monitor for application program establishment file catalogue when
The system function called, and then according to the system function of calling, obtain the attribute information of file directory.Due to file directory
Attribute information indicates the belonging relation between file directory and application program, thus without user's manual identified, you can identification
Go out the application program belonging to file directory, not only save identification cost, and accuracy of identification is higher.
In another embodiment of the present invention, in application program running, when the establishment for monitoring file directory
During event, Hook Function is called, including:
In application program running, when monitoring the establishment event of file directory, Hook Function is loaded into should
With in the process of program;
Hook Function is performed in the process of application program.
In another embodiment of the present invention, in application program running, when the establishment for monitoring file directory
During event, Hook Function is called, including:
In application program running, when monitoring the establishment event of file directory, hook is called from operating system
Subfunction, Hook Function is by manufacturer by changing in system source code write operation system.
In another embodiment of the present invention, according to system function, after the attribute information for obtaining file directory, method
Also include:
The attribute information of file directory is reported into server, the category of the file directory reported by server to multiple terminals
Property information is handled, and obtains garbage files list, garbage files list includes the attribute information of multiple file directorys, to terminal
Send garbage files list;
The garbage files list that the reception server is sent;
According to garbage files list, the file in garbage files list is cleared up.
In another embodiment of the present invention, according to garbage files list, the file in garbage files list is carried out
Cleaning, including:
When file is scanned in operating system, according to garbage files list, garbage files catalogue is identified;
The garbage files processing page is shown, the garbage files processing page includes garbage files catalogue and cleaning garbage files select
;
When detecting that cleaning garbage files option is selected, the file under garbage files catalogue is deleted.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the present invention, herein no longer
Repeat one by one.
The embodiments of the invention provide a kind of recognition methods of file directory, referring to Fig. 2, side provided in an embodiment of the present invention
Method flow includes:
201st, in application program running, when monitoring the establishment event of file directory, terminal calls hook letter
Number.
In the present embodiment, terminal can be smart mobile phone, tablet personal computer, notebook computer, desktop computer etc., this implementation
Example does not make specific limit to the product type of terminal.In order to meet the use demand of user, a variety of applications are installed in terminal
Program, including audiovisual applications program, navigation application program, shopping application program, reading application program, management application program
Deng.Wherein, manage application program to be responsible for being monitored operating system, and other applications are managed, for example, management
Application program can clear up caused garbage files in other applications running, repair system leak, checking and killing virus
Etc..
Most of application programs in the process of running, it is necessary to cache some files in terminal local memory such as SD card,
Such as picture, audio, video file, when user needs these files again, terminal preferentially obtains from local storage, nothing
It need to be pulled from internet, can not only save flow, and can accelerate the speed of response.For application cache file
Before, terminal is needed to create a file directory in SD card for application program, and then the file for needing to cache is stored in into this
Under file directory.As the file cached in SD card increases, workable space becomes less and less in SD card, now needs to know
The file directory not gone out in SD card, and then the file in file directory is targetedly deleted, think that terminal is vacateed more
More uses space, so as to lift the runnability of terminal.Because user is difficult to identify that under which file directory in SD card
File be deletable, thus need terminal intelligent to identify the application program in SD card belonging to each file directory, therefore,
The method that this implementation embodiment provides, in application program running, the establishment event of file directory can be monitored in real time, works as prison
When measuring the establishment event of file directory, Hook Function is called, and by Hook Function, monitor as the application program establishment file
The system function called during catalogue.
Wherein, Hook Function is also referred to as hook functions, is a part for windows message processing facilities, by setting hook
Function, application program can filter on the level of operating system to all message, event, and access under normal circumstances without
The message that method accesses.Hook Function is write by research staff, for one section handling the code of operating system message.
In application program running, when monitoring the establishment event of file directory, terminal calls Hook Function bag
Include but be not limited to the following two kinds mode.
In one embodiment of the invention, terminal obtains Hook Function, and by hook letter by the way of code injection
Number is loaded into the process of application program, and then performs Hook Function in the process of application program.In computer realm, code
Be injected to a kind of mode enforceability code being loaded into program process.
Under Linux system, the executable file of terminal operating system is generally so files, therefore, should to make to be injected into
It can be performed with the Hook Function in program process, before Hook Function is injected into the process of application program, terminal
Hook Function first can be converted into so files.Wherein, so files full name is Shared object, is the dynamic under Linux system
Link library file.
In another embodiment of the present invention, terminal can directly call Hook Function from operating system, the hook letter
Number before terminal is dispatched from the factory by manufacturer by changing in system source code write operation system.
202nd, the system function that terminal is called by Hook Function, monitoring file directory during creating.
In the present embodiment, when the establishment event for monitoring file directory, terminal will call Hook Function, by calling hook
Subfunction, during the establishment operation for the file directory for monitoring application program, system function that operating system is called.Wherein, system
Function is function intrinsic in operating system.
203rd, terminal obtains the attribute information of file directory according to system function.
In field of computer technology, during being created due to the file directory of different application, the system letter that is called
Number is different, and therefore, for terminal by calling the system function that Hook Function monitor operating system is called, can get should
With the attribute information of Program Files directory, the attribute information of this document catalogue is used to indicate between file directory and application program
Belonging relation, based on the attribute information of this document catalogue, terminal being capable of operating system corresponding to each file directory of automatic identification.
Wherein, the attribute information of file directory includes Making Path for file directory name, application program identification and file directory etc., this
Embodiment does not do specific restriction to the attribute information of file directory.
It should be noted that the attribute information of above-mentioned file directory, is actually obtained by management application program by terminal.
204th, the attribute information of file directory is reported to server by terminal.
Attribute information for the ease of the file directory to different application is managed, the management application journey in terminal
Sequence, can be by modes such as networks by the attribute information of accessed file directory after the attribute information of file directory is got
Report to server corresponding to management application program.Terminal is particularly being given the correct time, and will can be obtained every preset duration in preset duration
The attribute information for the file directory got reports to server;Also the attribute information of the file directory got can be reported in real time
To server, the mode that the present embodiment does not report to the attribute information of file directory to terminal server specifically limits.
In fact, except the attribute information of file directory can be reported to service by the terminal involved by the embodiment of the present invention
Device, be provided with the other-end of management application program also can report to server by the attribute information of the file directory got.
205th, the attribute information for the file directory that server reports to multiple terminals is handled, and obtains garbage files row
Table, and send garbage files list to terminal.
After the attribute information for the file directory that multiple terminals report is received, server is to multiple files for receiving
The attribute information of catalogue is analyzed, and removes the attribute information of the file directory of repetition, and the attribute of different file directorys is believed
Breath is integrated into a garbage files list.
By terminal A, terminal B, terminal C, terminal D to exemplified by the attribute information of server reporting file catalogue, wherein, terminal
The attribute information for the file directory that A reports to server includes the attribute information of file directory one, the attribute letter of file directory two
Breath, the attribute information of the file directory that terminal B reports to server include the attribute information of file directory three, file directory four
The attribute information of attribute information, file directory five, the attribute information for the file directory that terminal C reports to server include file mesh
Attribute information, attribute information, the attribute information of file directory six of file directory four of record two, terminal D report to server
The attribute information of file directory includes attribute information, the attribute information of file directory seven of file directory three.Server is according to end
The attribute information for the file directory that end A, terminal B, terminal C, terminal D report, the attribute of multiple file directorys to receiving are believed
Breath is analyzed, and removes the attribute information of file directory two, the attribute information of file directory three, the category of file directory four of repetition
Property information, obtain a garbage files list, the attribute information of the garbage files list including file directory one, file directory two
Attribute information, the attribute information of file directory three, the attribute information of file directory four, the attribute information of file directory five, text
The attribute information of part catalogue six and the attribute information of file directory seven.
For the storage form of the attribute information of file directory in garbage files list, reference can be made to table 1 below.
Table 1
File directory name | Application program identification | Storage location |
abcd | 1 | SD card |
cedg | 2 | SD card |
wetr | 3 | SD card |
After garbage files list is obtained, server by obtained garbage files list send to be provided with management application
Each terminal of program, is stored by each terminal.
Fig. 3 is the schematic diagram of the establishment process of garbage files list, and referring to Fig. 3, terminal A, terminal B, terminal C are being got
After the attribute information of file directory, the attribute information of the file directory got is reported into server, server receives
The attribute information for the file directory that terminal A, terminal B, terminal C are reported, to the attribute information of the multiple file directorys received
Analyzed, obtain garbage files list, and then obtained garbage files list is sent to the terminal for being provided with management application
A, terminal B, terminal C, terminal D, terminal E, terminal F, deposited by terminal A, terminal B, terminal C, terminal D, terminal E and terminal F
Storage.
206th, when receiving the garbage files list of server transmission, terminal is according to garbage files list, to rubbish text
File in part list is cleared up.
In the present embodiment, management application program has garbage-cleaning function, based on the function, when management application program is led to
When crossing that file is scanned in terminal-pair operating system, it can identify garbage files catalogue according to garbage files list, scanning through
Cheng Hou, the display garbage files processing page, referring to Fig. 4, garbage files catalogue is shown on the garbage files processing page, each
Shown behind garbage files catalogue and whether select option, such as " the sectional drawing catalogue " in Fig. 4, " garbage files catalogue ", " unnecessary peace
Dress bag catalogue ", " daemon software catalogue " etc., and cleaning garbage files option, such as " key cleaning accelerates " in Fig. 4, work as inspection
Measure cleaning garbage files option to be selected, delete the file under selected garbage files catalogue, so as to be vacateed more for terminal
More uses space, to lift the performance of terminal.
Fig. 5 is the schematic diagram of terminal display interface, referring to Fig. 5, when terminal is according to garbage files list, to system file
During carrying out scan full hard disk, after identifying garbage files catalogue, the rubbish identified is shown on the garbage files processing page
Rubbish file directory " system photograph album thumbnail ", " scrappy file ", " daily record that can be cleared up ", " login daily record ", " shareSDK is wide
Accuse ", " the first Video Applications advertisement ", " the second video ads " etc., and " key cleaning accelerates " option is shown, when detecting this
" key clears up option " is selected, deletes the file under selected garbage files catalogue.
Method provided in an embodiment of the present invention, by calling Hook Function, monitor for application program establishment file catalogue when
The system function called, and then according to the system function of calling, obtain the attribute information of file directory.Due to file directory
Attribute information indicates the belonging relation between file directory and application program, thus without user's manual identified, you can identification
Go out the application program belonging to file directory, not only save identification cost, and accuracy of identification is higher.
Referring to Fig. 6, the embodiments of the invention provide a kind of identification device of file directory, the device includes:
Calling module 601, in application program running, when monitoring the establishment event of file directory, adjusting
Use Hook Function;
Monitoring modular 602, for the system function called by Hook Function, monitoring file directory during creating;
Acquisition module 603, for according to system function, obtaining the attribute information of file directory, attribute information is for indicating
Belonging relation between file directory and application program, attribute information comprise at least file directory name, application program identification.
In another embodiment of the present invention, calling module 601, in application program running, working as monitoring
To file directory establishment event when, Hook Function is loaded into the process of application program;Held in the process of application program
Row Hook Function.
In another embodiment of the present invention, calling module 601, in application program running, working as monitoring
To file directory establishment event when, Hook Function is called from operating system, Hook Function is by manufacturer by changing system
In source code write operation system.
In another embodiment of the present invention, the device also includes:
Information reporting module, for the attribute information of file directory to be reported into server, by server to multiple terminals
The attribute information of the file directory reported is handled, and obtains garbage files list, and garbage files list includes multiple file mesh
The attribute information of record, garbage files list is sent to terminal;
Receiving module, the garbage files list sent for the reception server;
Cleaning modul, for according to garbage files list, clearing up the file in garbage files list.
In another embodiment of the present invention, cleaning modul, for when file is scanned in operating system, root
According to garbage files list, garbage files catalogue is identified;The garbage files processing page is shown, the garbage files processing page includes rubbish
File directory and cleaning garbage files option;When detecting that cleaning garbage files option is selected, delete under garbage files catalogue
File.
To sum up, device provided in an embodiment of the present invention, by calling Hook Function, monitor as application program establishment file mesh
The system function called during record, and then according to the system function of the calling, obtain the attribute information of file directory.Due to file
The attribute information of catalogue indicates the belonging relation between file directory and application program, thus without user's manual identified, i.e.,
The application program belonging to file directory is may recognize that, not only saves identification cost, and accuracy of identification is higher.
, should it illustrates the structural representation of the identification terminal of the file directory involved by the embodiment of the present invention referring to Fig. 7
Terminal can be used in implementation above-described embodiment the recognition methods of the file directory provided.Specifically:
Terminal 700 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters
The memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160,
WiFi (Wireless Fidelity, Wireless Fidelity) module 170, include one or the processing of more than one processing core
The part such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure shown in Fig. 7 is not formed pair
The restriction of terminal, it can include than illustrating more or less parts, either combine some parts or different part cloth
Put.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station
After downlink information receives, transfer to one or more than one processor 180 is handled;In addition, it is sent to up data are related to
Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use
Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuits 110 can also be communicated by radio communication with network and other equipment.The radio communication can make
With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code
Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple
Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short
Messaging Service, Short Message Service) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation
Software program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journey
Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function
Such as sound-playing function, image player function) etc.;Storage data field can store uses created number according to terminal 700
According to (such as voice data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, can also wrap
Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory
120 access.
Input block 130 can be used for the numeral or character information for receiving input, and generation is set with user and function
Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 may include to touch
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use
Family on or near it touch operation (such as user using any suitable object or annex such as finger, stylus in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can reception processing device 180
The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.Except touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for display by the information of user's input or be supplied to the information and terminal 700 of user
Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.
Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal
Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel
141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on or near it
After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event
Corresponding visual output is provided on display panel 141.Although in the figure 7, touch sensitive surface 131 and display panel 141 are conducts
Two independent parts come realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 with display
Panel 141 is integrated and realizes input and output function.
Terminal 700 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 141, and proximity transducer can close display when terminal 700 is moved in one's ear
Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally
Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely
The other sensors such as the gyroscope that can also configure in terminal 700, barometer, hygrometer, thermometer, infrared ray sensor, herein
Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 700.Audio
Electric signal after the voice data received conversion can be transferred to loudspeaker 161, sound is converted to by loudspeaker 161 by circuit 160
Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160
Voice data is converted to, then after voice data output processor 180 is handled, through RF circuits 110 to be sent to such as another end
End, or voice data is exported to memory 120 further to handle.Voicefrequency circuit 160 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone and terminal 700.
WiFi belongs to short range wireless transmission technology, and terminal 700 can help user's transceiver electronicses by WiFi module 170
Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 7 is shown
WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into for terminal 700, can exist as needed completely
Do not change in the essential scope of invention and omit.
Processor 180 is the control centre of terminal 700, utilizes various interfaces and each portion of connection whole mobile phone
Point, by running or performing the software program and/or module that are stored in memory 120, and call and be stored in memory 120
Interior data, the various functions and processing data of terminal 700 are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor
180 may include one or more processing cores;Optionally, processor 180 can integrate application processor and modem processor,
Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing
Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 700 also includes the power supply 190 (such as battery) to all parts power supply, it is preferred that power supply can pass through electricity
Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event
The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 700 can also include camera, bluetooth module etc., will not be repeated here.Specifically in this reality
Apply in example, the display unit of terminal 700 is touch-screen display, and terminal 700 also includes memory, and one or one
More than program, one of them or more than one program storage in memory, and be configured to by one or one with
Upper computing device.One or more than one program bag, which contains, to be used to perform the instruction operated below:
In application program running, when monitoring the establishment event of file directory, Hook Function is called;
By Hook Function, the system function called during file directory creates is monitored;
According to system function, the attribute information of file directory is obtained, attribute information is for indicating file directory and applying journey
Belonging relation between sequence, attribute information comprise at least file directory name, application program identification.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, in the memory of terminal, also include and be used to perform the instruction that operates below:
In application program running, when monitoring the establishment event of file directory, Hook Function is called, including:
In application program running, when monitoring the establishment event of file directory, Hook Function is loaded into should
With in the process of program;
Hook Function is performed in the process of application program.
Assuming that above-mentioned is second of possible embodiment, then provided based on second of possible embodiment
The third possible embodiment in, in the memory of terminal, also include and be used to perform the instruction that operates below:
In application program running, when monitoring the establishment event of file directory, Hook Function is called, including:
In application program running, when monitoring the establishment event of file directory, hook is called from operating system
Subfunction, Hook Function is by manufacturer by changing in system source code write operation system.
Assuming that above-mentioned is the third possible embodiment, then provided based on the third possible embodiment
The 4th kind of possible embodiment in, in the memory of terminal, also include and be used to perform the instruction that operates below:
According to system function, after the attribute information for obtaining file directory, method also includes:
The attribute information of file directory is reported into server, the category of the file directory reported by server to multiple terminals
Property information is handled, and obtains garbage files list, garbage files list includes the attribute information of multiple file directorys, to terminal
Send garbage files list;
The garbage files list that the reception server is sent;
According to garbage files list, the file in garbage files list is cleared up.
Assuming that above-mentioned is the 4th kind of possible embodiment, then provided based on the 4th kind of possible embodiment
The 5th kind of possible embodiment in, in the memory of terminal, also include and be used to perform the instruction that operates below:
According to garbage files list, the file in garbage files list is cleared up, including:
When file is scanned in operating system, according to garbage files list, garbage files catalogue is identified;
The garbage files processing page is shown, the garbage files processing page includes garbage files catalogue and cleaning garbage files select
;
When detecting that cleaning garbage files option is selected, the file under garbage files catalogue is deleted.
Terminal provided in an embodiment of the present invention, by calling Hook Function, monitor for application program establishment file catalogue when
The system function called, and then according to the system function of calling, obtain the attribute information of file directory.Due to file directory
Attribute information indicates the belonging relation between file directory and application program, thus without user's manual identified, you can identification
Go out the application program belonging to file directory, not only save identification cost, and accuracy of identification is higher.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, and the computer-readable recording medium can be
The computer-readable recording medium included in memory in above-described embodiment;Can also be individualism, without supplying eventually
Computer-readable recording medium in end.The computer-readable recording medium storage has one or more than one program, and this one
Individual either more than one program is used for performing the recognition methods of file directory, this method by one or more than one processor
Including:
In application program running, when monitoring the establishment event of file directory, Hook Function is called;
By Hook Function, the system function called during file directory creates is monitored;
According to system function, the attribute information of file directory is obtained, attribute information is for indicating file directory and applying journey
Belonging relation between sequence, attribute information comprise at least file directory name, application program identification.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, in the memory of terminal, also include and be used to perform the instruction that operates below:
In application program running, when monitoring the establishment event of file directory, Hook Function is called, including:
In application program running, when monitoring the establishment event of file directory, Hook Function is loaded into should
With in the process of program;
Hook Function is performed in the process of application program.
Assuming that above-mentioned is second of possible embodiment, then provided based on second of possible embodiment
The third possible embodiment in, in the memory of terminal, also include and be used to perform the instruction that operates below:
In application program running, when monitoring the establishment event of file directory, Hook Function is called, including:
In application program running, when monitoring the establishment event of file directory, hook is called from operating system
Subfunction, Hook Function is by manufacturer by changing in system source code write operation system.
Assuming that above-mentioned is the third possible embodiment, then provided based on the third possible embodiment
The 4th kind of possible embodiment in, in the memory of terminal, also include and be used to perform the instruction that operates below:
According to system function, after the attribute information for obtaining file directory, method also includes:
The attribute information of file directory is reported into server, the category of the file directory reported by server to multiple terminals
Property information is handled, and obtains garbage files list, garbage files list includes the attribute information of multiple file directorys, to terminal
Send garbage files list;
The garbage files list that the reception server is sent;
According to garbage files list, the file in garbage files list is cleared up.
Assuming that above-mentioned is the 4th kind of possible embodiment, then provided based on the 4th kind of possible embodiment
The 5th kind of possible embodiment in, in the memory of terminal, also include and be used to perform the instruction that operates below:
According to garbage files list, the file in garbage files list is cleared up, including:
When file is scanned in operating system, according to garbage files list, garbage files catalogue is identified;
The garbage files processing page is shown, the garbage files processing page includes garbage files catalogue and cleaning garbage files select
;
When detecting that cleaning garbage files option is selected, the file under garbage files catalogue is deleted.
Computer-readable recording medium provided in an embodiment of the present invention, by calling Hook Function, monitor as application program
The system function called during establishment file catalogue, and then according to the system function of calling, obtain the attribute information of file directory.
Because the attribute information of file directory indicates the belonging relation between file directory and application program, thus it is artificial without user
Identification, you can identify the application program belonging to file directory, not only save identification cost, and accuracy of identification is higher.
A kind of graphical user interface is provided in the embodiment of the present invention, the graphical user interface is used in the identification of file directory
In terminal, the identification terminal of the execution file directory includes touch-screen display, memory and for performing one or one
One or more than one processor of program above;The graphical user interface includes:
In application program running, when monitoring the establishment event of file directory, Hook Function is called;
By Hook Function, the system function called during file directory creates is monitored;
According to system function, the attribute information of file directory is obtained, attribute information is for indicating file directory and applying journey
Belonging relation between sequence, attribute information comprise at least file directory name, application program identification.
Graphical user interface provided in an embodiment of the present invention, by calling Hook Function, monitor and create text for application program
The system function called during part catalogue, and then according to the system function of calling, obtain the attribute information of file directory.Due to text
The attribute information of part catalogue indicates the belonging relation between file directory and application program, thus without user's manual identified,
The application program belonging to file directory is may recognize that, not only saves identification cost, and accuracy of identification is higher.
It should be noted that:Above-described embodiment provide file directory identification device when identifying file directory, only with
The division progress of above-mentioned each functional module, can be as needed and by above-mentioned function distribution by not for example, in practical application
Same functional module is completed, i.e., the internal structure of the identification device of file directory is divided into different functional modules, to complete
All or part of function described above.In addition, the identification device and file directory of the file directory that above-described embodiment provides
Recognition methods embodiment belong to same design, its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (10)
1. a kind of recognition methods of file directory, it is characterised in that methods described includes:
In application program running, when monitoring the establishment event of file directory, Hook Function is called;
By the Hook Function, the system function called during the file directory creates is monitored;
According to the system function, the attribute information of the file directory is obtained, the attribute information is for indicating the file
Belonging relation between catalogue and the application program, the attribute information comprise at least file directory name, the application program
Mark.
2. according to the method for claim 1, it is characterised in that it is described in application program running, when monitoring text
During the establishment event of part catalogue, Hook Function is called, including:
In application program running, when monitoring the establishment event of file directory, the Hook Function is loaded into institute
In the process for stating application program;
The Hook Function is performed in the process of the application program.
3. according to the method for claim 1, it is characterised in that it is described in application program running, when monitoring text
During the establishment event of part catalogue, Hook Function is called, including:
In application program running, when monitoring the establishment event of file directory, the hook is called from operating system
Subfunction, the Hook Function are write in the operating system by manufacturer by changing system source code.
4. according to the method for claim 1, it is characterised in that it is described according to the system function, obtain the file mesh
After the attribute information of record, methods described also includes:
The attribute information of the file directory is reported into server, the file directory reported by the server to multiple terminals
Attribute information handled, obtain garbage files list, the attribute that the garbage files list includes multiple file directorys is believed
Breath, the garbage files list is sent to terminal;
Receive the garbage files list that the server is sent;
According to the garbage files list, the file in the garbage files list is cleared up.
5. according to the method for claim 4, it is characterised in that it is described according to the garbage files list, to the rubbish
File in listed files is cleared up, including:
When file is scanned in operating system, according to the garbage files list, garbage files catalogue is identified;
The garbage files processing page is shown, the garbage files processing page includes the garbage files catalogue and garbage files are clear
Manage option;
When detecting that the cleaning garbage files option is selected, the file under the garbage files catalogue is deleted.
6. a kind of identification device of file directory, it is characterised in that described device includes:
Calling module, in application program running, when monitoring the establishment event of file directory, calling hook letter
Number;
Monitoring modular, for by the Hook Function, monitoring the system function called during the file directory creates;
Acquisition module, for according to the system function, obtaining the attribute information of the file directory, the attribute information is used for
Indicate the belonging relation between the file directory and the application program, the attribute information comprise at least file directory name,
The application program identification.
7. device according to claim 6, it is characterised in that the calling module, in application program running
In, when monitoring the establishment event of file directory, the Hook Function is loaded into the process of the application program;Institute
State and the Hook Function is performed in the process of application program.
8. device according to claim 6, it is characterised in that the calling module, in application program running
In, when monitoring the establishment event of file directory, the Hook Function is called from operating system, the Hook Function is by giving birth to
Business men is write in the operating system by changing system source code.
9. device according to claim 6, it is characterised in that described device also includes:
Information reporting module, for the attribute information of the file directory to be reported into server, by the server to multiple
The attribute information for the file directory that terminal reports is handled, and obtains garbage files list, and the garbage files list includes more
The attribute information of individual file directory, the garbage files list is sent to terminal;
Receiving module, the garbage files list sent for receiving the server;
Cleaning modul, for according to the garbage files list, clearing up the file in the garbage files list.
10. device according to claim 9, it is characterised in that the cleaning modul, for the file in operating system
When being scanned, according to the garbage files list, garbage files catalogue is identified;Show the garbage files processing page, the rubbish
The rubbish file process page includes the garbage files catalogue and cleaning garbage files option;When detecting the cleaning garbage files
Option is selected, and deletes the file under the garbage files catalogue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610677067.8A CN107766351B (en) | 2016-08-16 | 2016-08-16 | File directory identification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610677067.8A CN107766351B (en) | 2016-08-16 | 2016-08-16 | File directory identification method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107766351A true CN107766351A (en) | 2018-03-06 |
CN107766351B CN107766351B (en) | 2020-12-25 |
Family
ID=61260100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610677067.8A Active CN107766351B (en) | 2016-08-16 | 2016-08-16 | File directory identification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107766351B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109299039A (en) * | 2018-08-30 | 2019-02-01 | 努比亚技术有限公司 | A kind of file management method, equipment and computer readable storage medium |
CN109408465A (en) * | 2018-10-29 | 2019-03-01 | Oppo广东移动通信有限公司 | The recording method of file attaching information, device, storage medium and terminal |
CN113536180A (en) * | 2021-06-28 | 2021-10-22 | 北京达佳互联信息技术有限公司 | Item processing method, item processing device, electronic equipment, storage medium and program product |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070043753A1 (en) * | 2000-03-09 | 2007-02-22 | Yuri Basin | Systems and methods for manipulating and managing computer archive files |
US8266231B1 (en) * | 2006-11-03 | 2012-09-11 | Quest Software, Inc. | Systems and methods for monitoring messaging systems |
CN102902909A (en) * | 2012-10-10 | 2013-01-30 | 北京奇虎科技有限公司 | System and method for preventing file from being tampered |
US20130332424A1 (en) * | 2012-06-12 | 2013-12-12 | Sap Ag | Centralized read access logging |
CN103514396A (en) * | 2013-09-23 | 2014-01-15 | 北京奇虎科技有限公司 | Processing method and device for file / application program on mobile communication terminal |
CN103678506A (en) * | 2013-11-20 | 2014-03-26 | 北京奇虎科技有限公司 | Method and device for loading application program shortcuts in browser and browser |
CN104376255A (en) * | 2014-11-28 | 2015-02-25 | 北京奇虎科技有限公司 | Application program running control method and device |
CN104376257A (en) * | 2014-12-12 | 2015-02-25 | 北京奇虎科技有限公司 | Application self-protection and active defense method and application self-protection and active defense device |
CN104881291A (en) * | 2015-06-03 | 2015-09-02 | 北京金山安全软件有限公司 | Control method and device of default browser and terminal |
CN105278925A (en) * | 2014-06-05 | 2016-01-27 | 腾讯科技(深圳)有限公司 | Method and device for refuse cleaning of uninstalled software |
CN105335367A (en) * | 2014-05-30 | 2016-02-17 | 北京金山安全软件有限公司 | Method, device and server for determining application program associated with file directory |
CN105512276A (en) * | 2015-12-04 | 2016-04-20 | 北京金山安全软件有限公司 | Method and device for constructing junk file and electronic equipment |
CN105786456A (en) * | 2014-12-22 | 2016-07-20 | 迈普通信技术股份有限公司 | Method and device for realizing functions of VxWorks task hook function |
-
2016
- 2016-08-16 CN CN201610677067.8A patent/CN107766351B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070043753A1 (en) * | 2000-03-09 | 2007-02-22 | Yuri Basin | Systems and methods for manipulating and managing computer archive files |
US8266231B1 (en) * | 2006-11-03 | 2012-09-11 | Quest Software, Inc. | Systems and methods for monitoring messaging systems |
US20130332424A1 (en) * | 2012-06-12 | 2013-12-12 | Sap Ag | Centralized read access logging |
CN102902909A (en) * | 2012-10-10 | 2013-01-30 | 北京奇虎科技有限公司 | System and method for preventing file from being tampered |
CN103514396A (en) * | 2013-09-23 | 2014-01-15 | 北京奇虎科技有限公司 | Processing method and device for file / application program on mobile communication terminal |
CN103678506A (en) * | 2013-11-20 | 2014-03-26 | 北京奇虎科技有限公司 | Method and device for loading application program shortcuts in browser and browser |
CN105335367A (en) * | 2014-05-30 | 2016-02-17 | 北京金山安全软件有限公司 | Method, device and server for determining application program associated with file directory |
CN105278925A (en) * | 2014-06-05 | 2016-01-27 | 腾讯科技(深圳)有限公司 | Method and device for refuse cleaning of uninstalled software |
CN104376255A (en) * | 2014-11-28 | 2015-02-25 | 北京奇虎科技有限公司 | Application program running control method and device |
CN104376257A (en) * | 2014-12-12 | 2015-02-25 | 北京奇虎科技有限公司 | Application self-protection and active defense method and application self-protection and active defense device |
CN105786456A (en) * | 2014-12-22 | 2016-07-20 | 迈普通信技术股份有限公司 | Method and device for realizing functions of VxWorks task hook function |
CN104881291A (en) * | 2015-06-03 | 2015-09-02 | 北京金山安全软件有限公司 | Control method and device of default browser and terminal |
CN105512276A (en) * | 2015-12-04 | 2016-04-20 | 北京金山安全软件有限公司 | Method and device for constructing junk file and electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109299039A (en) * | 2018-08-30 | 2019-02-01 | 努比亚技术有限公司 | A kind of file management method, equipment and computer readable storage medium |
CN109408465A (en) * | 2018-10-29 | 2019-03-01 | Oppo广东移动通信有限公司 | The recording method of file attaching information, device, storage medium and terminal |
CN113536180A (en) * | 2021-06-28 | 2021-10-22 | 北京达佳互联信息技术有限公司 | Item processing method, item processing device, electronic equipment, storage medium and program product |
Also Published As
Publication number | Publication date |
---|---|
CN107766351B (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104169856B (en) | Side menu display method, device and terminal | |
CN104639672B (en) | The method and apparatus for carrying out domain name mapping | |
CN103279288B (en) | Data transmission method, device and terminal unit | |
CN103455582B (en) | The display packing of browser navigation page and mobile terminal | |
CN104618217B (en) | Share method, terminal, server and the system of resource | |
CN104427074B (en) | A kind of methods, devices and systems for showing incoming information | |
CN103455603B (en) | Web page contents caching, webpage loading method, device and terminal unit | |
CN104519404B (en) | The player method and device of graphic interchange format file | |
CN104978115A (en) | Content display method and device | |
CN104699501B (en) | A kind of method and device for running application program | |
CN107357725A (en) | Application testing method and device | |
CN104135502B (en) | A kind of method, relevant device and system realizing application message and remind | |
CN107168609A (en) | status bar display method, device and terminal | |
CN106708496A (en) | Processing method and apparatus for label page in graphic interface | |
CN104063400B (en) | Data search method and data search device | |
CN103631625B (en) | A kind of method of data acquisition, user terminal, server and system | |
CN104424211A (en) | Microblog-based service data release method, device and system | |
CN107219951A (en) | Touch screen control method, device, storage medium and terminal device | |
CN106708500B (en) | Unload the display methods and device at interface | |
CN104636455B (en) | The acquisition methods and device of application program map information | |
CN107766351A (en) | The recognition methods of file directory and device | |
CN107122036A (en) | CPU frequency adjusting method and device | |
CN107632985A (en) | Webpage preloads method and device | |
CN106682189A (en) | Filename display method and device | |
CN104834655A (en) | Method and device for displaying mass parameter of network resource |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |