Movatterモバイル変換


[0]ホーム

URL:


CN107220132A - A kind of monitor method, equipment and the storage medium of document creation information - Google Patents

A kind of monitor method, equipment and the storage medium of document creation information
Download PDF

Info

Publication number
CN107220132A
CN107220132ACN201710384620.3ACN201710384620ACN107220132ACN 107220132 ACN107220132 ACN 107220132ACN 201710384620 ACN201710384620 ACN 201710384620ACN 107220132 ACN107220132 ACN 107220132A
Authority
CN
China
Prior art keywords
application program
file
document creation
establishment file
establishment
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
CN201710384620.3A
Other languages
Chinese (zh)
Other versions
CN107220132B (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.)
Nubia 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 LtdfiledCriticalNubia Technology Co Ltd
Priority to CN201710384620.3ApriorityCriticalpatent/CN107220132B/en
Publication of CN107220132ApublicationCriticalpatent/CN107220132A/en
Application grantedgrantedCritical
Publication of CN107220132BpublicationCriticalpatent/CN107220132B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a kind of monitor method, equipment and the storage medium of document creation information, methods described includes:By the oracle listener added in bottom, the file creation operation of bottom is monitored, the ID of the application program of establishment file is obtained;According to the ID of application program, the bag name of the application program of establishment file is obtained;The corresponding application program of bag name, which is sent, to specified monitoring registrant has carried out the notification message of document creation.Monitor method, equipment and the storage medium of the document creation information of the offer of the present invention can enable extraneous management program obtain the number of the application program establishment file, so as to derive more usages.

Description

A kind of monitor method, equipment and the storage medium of document creation information
Technical field
The present invention relates to net application technology field, more particularly to a kind of monitor method of document creation information, equipment andStorage medium.
Background technology
A safety management software that nubia Niu Dunshi Nubia officials release, except conventional protection user safety,Outside secret, interception harassing and wrecking, the flow that saves money, mobile phone speed-raising, Nubia ox shields additionally provide the function of getting back mobile phone.
In order to preferably support management program as similar ox shield, it would be desirable to provide a kind of inquiry means, management is allowedProgram can selectively inquire about application-specific creates how many file within some period, or even specifically create what textPart.Such as it is desirable that know QQ applications create how many file in a period of time.In current android system, it is impossible toOur purpose is reached by inquiring about Media Provider (Media Provider), because (media are carried Media ProviderFor business) inner not documentary " founder " information, so can not know which file is that QQ is produced in SD card.
The content of the invention
In view of the above problems, can the invention provides a kind of monitor method, equipment and the storage medium of document creation informationSo that extraneous management program can obtain the number of some application program establishment file.
The monitor method of the document creation information of the offer of the present invention, including:
By the oracle listener added in bottom, the file creation operation of bottom is monitored, the application journey of establishment file is obtainedThe ID of sequence;
According to the ID of the application program, the bag name of the application program of establishment file is obtained;
The corresponding application program of the bag name, which is sent, to specified monitoring registrant has carried out the notification message of document creation.
As a further improvement on the present invention, the monitor method of document creation information of the invention is monitoring the file of bottomWhen creating operation, in addition to:Obtain the title of establishment file;
Further, also include in the notification message:The title of establishment file.
Specifically, the file creation operation for monitoring bottom, including:
When listen in the bottom storehouse document creation function it is called when, judgement listens to file creation operation.
As a further improvement on the present invention, the monitor method of document creation information of the invention, according to the applicationThe ID of program, obtains the Bao Minghou of the application program of establishment file, in addition to:
It is one or several in below preserving:The ID of the application program of establishment file, the application program of establishment file bagName, the title of establishment file.
The information preserved in the present invention can be used for statistics, for example, can count any application in certain timeCreate how many file, delete how many file, notify in the lump to the external world.
Specifically, in the monitor method of the document creation information of the present invention, the monitoring registrant specified includes:In advanceFirst carry out monitoring the extraneous management program registered and provided and need the application program monitored to indicate.
Present invention also offers a kind of audiomonitor of document creation information, the audiomonitor bag of the document creation informationInclude:Memory, processor and it is stored in the computer program that can be run on the memory and on the processor, the meterFollowing steps are realized when calculation machine program is by the computing device:
By the oracle listener added in bottom, the file creation operation of bottom is monitored, the application journey of establishment file is obtainedThe ID of sequence;
According to the ID of the application program, the bag name of the application program of establishment file is obtained;
The corresponding application program of the bag name, which is sent, to specified monitoring registrant has carried out the notification message of document creation.
As a further improvement on the present invention, in the audiomonitor of document creation information of the present invention, the computer programBy the computing device, following steps are also realized when monitoring the file creation operation of bottom:
The file creation operation of bottom is monitored, the title of establishment file is obtained;
Also include in the notification message:The title of establishment file.
As a further improvement on the present invention, in the audiomonitor of document creation information of the present invention, the computer programFollowing steps are implemented during by the computing device:
When listen in the bottom storehouse document creation function it is called when, judgement listens to file creation operation.
In the audiomonitor of the document creation information of the present invention, when the computer program is by the computing device,In the ID according to the application program, the Bao Minghou of the application program of establishment file is obtained, following steps are also realized:
It is one or several in below preserving:The ID of the application program of establishment file, the application program of establishment file bagName, the title of establishment file.
Present invention also offers a kind of storage medium, the monitoring journey for the document creation information that is stored with the storage mediumSequence, the oracle listener of the document creation information realizes the monitor method of above-mentioned document creation information when being executed by processorStep.
Beneficial effects of the present invention are as follows:
Monitor method, equipment and the storage medium for the document creation information that the present invention is provided can be by monitoring establishment fileOperation obtain establishment file application program ID, according to the ID of the application program obtain the application program bag name,And the notification message of document creation has been carried out to the specified corresponding application program of the monitoring registrant transmission bag name, so thatExtraneous management program can obtain the number of the application program establishment file, can also further carry out big data analysis, fromAnd derive more usages.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the monitor method of first embodiment of the invention document creation information;
The implementation structural representation that Fig. 4 is implemented for the present invention first.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is onlyBe conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixedGround is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat boardComputer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portableMedia player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are movedMove the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except specialOutside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shiftingDynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base stationDownlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetratingFrequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communicationStandard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunicationsSystem), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (CodeDivision Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code DivisionMultiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access, TD SDMA), FDD-LTE (Frequency DivisionDuplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time DivisionDuplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 showsGo out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to needTo be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received orThe voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappearedBreath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition modeOr the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be depositedStorage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.MikeWind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing canTo be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send soundThe noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographiesSensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's earDisplay panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generalFor three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrappedDisplay panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be usedForms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminalThe key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 withAnd other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detectionTwo parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation bandThe signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by itIt is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, canTo realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrappedInclude but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 orAfter neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thingThe type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, canBy contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically hereinLimit.
Interface unit 108 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 nothingLine FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) endMouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, numberIt is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be withFor transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program areaAnd storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one functionSound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phoneVoice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easyThe property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connectionIndividual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storageData in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.PlaceReason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediateDevice is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainHandle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, putThe function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered belowRow description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network systemUnite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successivelyFamily equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS landsGround wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returningJourney (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy andCharging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 andThere is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registersSuch as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rateThe special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IPAddress is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resourcesPoint, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimediaSystem) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not onlySuitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA withAnd following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the invention is proposed.
First embodiment
According to the first embodiment of the present invention there is provided a kind of monitor method of document creation information, specifically, Fig. 3 isThe flow chart of the monitor method of the document creation information of first embodiment of the invention, the implementation knot that Fig. 4 is implemented for the present invention firstStructure schematic diagram;As shown in Figure 3 and Figure 4, the monitor method of document creation information according to a first embodiment of the present invention includes as followsProcessing:
Step 301:By the oracle listener added in bottom, the file creation operation of bottom is monitored, establishment file is obtainedApplication program ID.
Specifically, by the default monitoring code of bottom, monitoring the file creation operation of bottom, answering for establishment file is obtainedWith the ID of program, and send to monitoring service module (the monitoring service in Fig. 4).Low layer is alternatively referred to as low in this applicationLayer storehouse.
Specifically, the ID (application Id) of the application program is the identity of application program.
Optionally, when the application program is Android application programs, the bottom is bionic storehouses.Android makesIt is that oneself is developed it is well known that Google is that linux kernel enhances many things in addition with open source linux kernelBionic storehouses.Bionic storehouses are only 200KB sizes, are the half of GNU version volumes, it means that higher efficiency and low internal memoryTake.
Because either java layers or c++ layers of code, to being all finally that (such as bionic connects calling physical layer interfaceMouthful) file operation is realized, so we can listen to the establishment action of All Files completely.Specifically, Java is calledPhysical layer interface will be carried out by dynamic link library, be dll files under windows, and linux is so files.
Step 302:According to the ID of the application program, the bag name of the application program of establishment file is obtained.
Specifically, the service module of monitoring obtains answering for establishment file according to the ID of the application program of the establishment fileWith the bag name of program.
Specifically, the package name of the entitled application program of bag of the application program, can be by androidSystem services the bag name for the program that is applied according to the ID of the application program.It is used as a kind of specific example, it is possible to use internal memoryHash table obtains the bag name of the application program according to the ID of application program, and the internal memory Hash table is to be used to store application programBao Mingyu application programs ID between corresponding relation relation table, and the corresponding relation stored in internal memory Hash table can be withIt is considered the fixed ID of the Bao Mingyu application programs of the application program unique relationships in the Hash table.Because internal memory Hash tableThe content of middle storage is limited, in order to which the correspondence between the ID of the Bao Mingyu application programs of application program in internal memory Hash table is closedSystem's energy real-time update, the information for application program be of little use or no can carry out appropriate removing, vacate space and depositStore up the information of some conventional application programs.
Step 303:The corresponding application program of the bag name, which is sent, to specified monitoring registrant has carried out document creationNotification message.
Specifically, the monitoring registrant specified includes:It is advance monitor registration and provide needing that monitors to answerThe extraneous management program indicated with program, i.e., carried out monitoring registration and indicated to monitor what the application file was created in advanceExtraneous management program.
Example, the application program indicates that the regulation in terms of application program includes:Need to monitor in All Time sectionAll application program, need to monitor one or several application programs in All Time section, need in the preset monitored periodAll application programs, several situations of one or several application programs for needing in the preset monitored period.Wherein, the applicationProgram indicates that the regulation in terms of instruction includes the title of application program or the bag name of application program etc..
Specifically, in the first embodiment, application program indicates the bag name for application program in terms of instruction, when needing prisonWhen listening the document creation information of all application programs in All Time section, when monitoring service module obtains the application journey of establishment fileThe Bao Minghou of sequence, corresponding application program is obtained according to the bag name, and the corresponding application program is created into a fileSent as notification message to extraneous management program, the extraneous management program is received after the notification message, described rightJia 1 in the number for the application program establishment file answered;When needing to monitor one or several application programs in All Time sectionDuring document creation information, when monitoring the Bao Minghou that service module obtains the application program of establishment file, the bag name correspondence is judgedApplication program with need monitor one or several application programs it is whether consistent, when both are consistent, will can need monitorApplication program create a file and sent as notification message to extraneous management program, the extraneous management program is receivedAfter the notification message, Jia 1 in the number of the application program establishment file.
In the present embodiment, the extraneous management program can be to the monitoring service module registration monitor, and activatesMonitor function.Specifically, shared drive is unable between application program in Android system.Enter between different applicationCapable data exchange is striding course.4 kinds are provided in android SDK is used for the mode that striding course is communicated.This 4 kinds of modes are justCorrespond to 4 kinds of application components in Android system well:Activity, Content Provider, Broadcast andService.Wherein Activity can call the Activity of other applications with striding course;Content Provider can be withStriding course accesses the data (being returned with Cursor object forms) in other applications, it is of course also possible to other application journeyThe data of sequence are increased, deleted, changing operation;Broadcast all application programs can send broadcast into Android system, andThe application program for needing striding course to communicate can monitor these broadcast;Service with Content Provider are similar, can alsoData in access other applications, but unlike, what Content Provider were returned is Cursor objects, andWhat Service was returned is Java object, and this service that can be communicated with striding course is serviced AIDL.
The monitor method for the document creation information that first embodiment of the invention is provided can be by monitoring the behaviour of establishment fileObtain the ID of the application program of establishment file, according to the ID of the application program obtain the application program bag name, and toThe monitoring registrant specified sends the corresponding application program of the bag name and has carried out the notification message of document creation, so that extraneousManagement program can obtain the number of the application program establishment file, big data analysis can also further be carried out, so as to spread outBear more usages.
Second embodiment
There is provided a kind of monitor method of document creation information according to the second embodiment of the present invention.Second embodiment withThe difference of first embodiment is, has done more detailed to the file creation operation for monitoring bottom in a second embodimentRegulation.
The monitor method of document creation information according to a second embodiment of the present invention includes following processing:
Step 1:Code is monitored in write-in in bottom.Specifically, the bottom is bionic storehouses.
Step 2:The operation that All Files is created is monitored, when listening to the document creation function in the bottom (for exampleOpen functions) it is called when, using the ID of the application program of the monitoring Code obtaining establishment file, and send to the service of monitoringModule.
Specifically, including various file manipulation functions, such as document creation function, file amendment in the bionic storehousesFunction and file delete function etc..Because either java layers or c++ layers of code, to being all finally to call bottom storehouseInterface (such as bionic interfaces) realizes file operation, so we can listen to the operational motion of All Files completely(including establishment file, change file, deletion file etc.).
Step 3:The service module of monitoring obtains answering for establishment file according to the ID of the application program of the establishment fileWith the bag name of program.Specifically, the package name of the entitled application program of bag of the application program, can pass throughAndroid system service according to the ID of the application program be applied program bag name.
Step 4:The service module of monitoring enters to the specified corresponding application program of the monitoring registrant transmission bag nameThe notification message of document creation is gone.Specifically, the monitoring registrant specified includes:Carry out monitoring in advance and registered, simultaneouslyThe extraneous management program for needing the application program monitored to indicate is provided, i.e., has carried out monitoring registration in advance and has indicated to monitor described answerThe extraneous management program created with program file.
The monitor method for the document creation information that second embodiment of the invention is provided again may be by monitoring establishment fileOperation obtain establishment file application program ID, according to the ID of the application program obtain the application program bag name,And the notification message of document creation has been carried out to the specified corresponding application program of the monitoring registrant transmission bag name, so thatExtraneous management program can obtain the number of the application program establishment file, can also further carry out big data analysis, fromAnd derive more usages.
3rd embodiment
According to the third embodiment of the invention there is provided a kind of monitor method of document creation information, 3rd embodiment withThe difference of second embodiment is, in the third embodiment when monitoring the file creation operation of bottom, in addition to:ObtainThe title of establishment file, further, also includes in the notification message:The title of establishment file.
Specifically, the monitor method of document creation information according to a third embodiment of the present invention includes following processing:
Step 1:Code is monitored in write-in in bottom.Specifically, the bottom is bionic storehouses.
Step 2:The operation that All Files is created is monitored, when listening to the document creation function in the bottom (for exampleOpen functions) it is called when, using the ID and the title of establishment file of the application program of the monitoring Code obtaining establishment file,And send to monitoring service module.
Include file manipulation function in the Bionic storehouses, the function of such as establishment file, change file function andDelete function of file etc..Because either java layers or c++ layers of code, to being all finally to call bottom bank interface(such as bionic interfaces) realizes file operation, so we can listen to the operational motion (bag of All Files completelyInclude establishment file, change file, delete file etc.).
Specifically, according to the entitled ordinary skill in the art means for monitoring Code obtaining establishment file, the present invention is notRepeat.
Step 3:The service module of monitoring obtains answering for establishment file according to the ID of the application program of the establishment fileWith the bag name of program.
Step 4:The corresponding application program of the bag name, which is sent, to specified monitoring registrant has carried out the logical of document creationKnowing in message, the notification message also includes:The title of establishment file.
Specifically, in this example, the bag that is defined as application program name of the application program instruction in terms of instruction is, it is necessary to superviseThe document creation information of all application programs in All Time section is listened, when monitoring service module obtains the application program of establishment fileBao Minghou, by the name of the bag name of the application program of establishment file and establishment file be referred to as notification message send to the external world managementProgram, the extraneous management program counts the number of the application program establishment file according to the notification message received.
The monitor method for the document creation information that third embodiment of the invention is provided is directly by the application program of establishment fileBag name and the name of establishment file be referred to as notification message and send to extraneous management program, extraneous management program is obtained rootThe file of establishment is classified according to the bag name of application program, the number of some application program establishment file is obtained.
Fourth embodiment
There is provided a kind of monitor method of document creation information according to the fourth embodiment of the invention.Fourth embodiment withThe difference of 3rd embodiment is step 4, needs to monitor one or several application journeys in All Time section in the present embodimentThe document creation information of sequence.
The monitor method of document creation information according to a fourth embodiment of the present invention includes following processing:
Step 1:Code is monitored in write-in in bottom.Specifically, the bottom is bionic storehouses.
Step 2:The operation that All Files is created is monitored, when listening to the document creation function in the bottom (for exampleOpen functions) it is called when, using the ID and the title of establishment file of the application program of the monitoring Code obtaining establishment file,And send to monitoring service module.
Step 3:The service module of monitoring obtains answering for establishment file according to the ID of the application program of the establishment fileWith the bag name of program.
Step 4:The corresponding application program of the bag name, which is sent, to specified monitoring registrant has carried out the logical of document creationKnowing in message, the notification message also includes:The title of establishment file.
In the present embodiment, it is necessary to monitor the document creation information of several application programs in All Time section, application programThe bag for the being defined as application program name in terms of instruction is indicated, when monitoring service module obtains the bag of the application program of establishment fileAfter name, judge whether the corresponding application program of the bag name is consistent with the application program of needs monitoring, can be with when both are consistentThe name of the bag name of the application program of establishment file and establishment file is referred to as into notification message to send to extraneous management program, it is describedExtraneous management program counts the number of the application program establishment file according to the notification message received.
Example, the extraneous management program is nubia ox shields, such as when need to monitor QQ, wechat, Alipay three shouldDuring with the document creation information of program, QQ, wechat, the title of Alipay, external world's management journey can be inputted in extraneous management programSequence is applied the bag name of program according to the title of the application program of input, and the bag of application program name is sent to monitoringService module.It is described to monitor the bag name that service module receives QQ, wechat and Alipay that extraneous management program is sent, when listening toThe entitled QQ of bag of application program of establishment file, the Bao Mingzhong of wechat or Alipay any one when, should by what is listened toThe extraneous management program is reported to the title of the bag name of program and the file of establishment.
The monitor method for the document creation information that fourth embodiment of the invention is provided directly answering specific establishment fileNotification message is referred to as with the bag name of program, the name of establishment file to send to extraneous management program, enables extraneous management programObtain classifying to the file of establishment according to the bag name of application-specific, obtain the number of application-specific establishment fileMesh.
5th embodiment
According to the fifth embodiment of the invention there is provided a kind of monitor method of document creation information, the 5th embodiment withThe difference of fourth embodiment, is step 2 and step 4, it is necessary to monitor the file wound of several application programs in some periodBuild information.
In the present embodiment, step 2 comprises the following steps:The operation of all establishment files is monitored, when listening to the bottomWhen document creation function (such as open functions) in layer is called, the application journey of the monitoring Code obtaining establishment file is utilizedThe ID of sequence, the title of the file created and the time of establishment file, and send to monitoring service module.
In the present embodiment, step 4 comprises the following steps:Need the file of an application program in some period of monitoringInformation is created, application program indicates the bag for being defined as application program name and the period in terms of instruction, when monitoring service moduleObtain the bag name of the application program of establishment file and after the period, judge the corresponding application program of the bag name with needing what is monitoredWhether application program is consistent, and judges time of establishment file whether within the period, when meeting two above requirement,The time of the bag name, the title of establishment file and establishment file of the application program of establishment file can be sent out as notification messageExtraneous management program is delivered to, the extraneous management program counts the application program establishment file according to the notification message receivedNumber.
Example, the extraneous management program is nubia ox shields.For example when need monitor 1 day to 2017 May in 2017May 10 wechat document creation information when, May 10 1 day to 2017 May in 2017 can be inputted in extraneous management programDay and wechat, extraneous management program send above-mentioned period and wechat to monitoring service module.The monitoring service module connectsThe above-mentioned period that extraneous management program is sent is received, when the time of the establishment file listened to is within the above-mentioned period, will be supervisedThe bag name for the application program heard, the title of file created and the time of establishment file report to the extraneous management program.
The monitor method for the document creation information that fifth embodiment of the invention is provided is directly by the application program of establishment fileBag name, the title of establishment file, the time of establishment file sent as notification message to extraneous management program, make extraneous managementProgram can obtain classifying to the file of establishment according to the bag name of application program, obtain some application program special time periodThe number of interior establishment file.
Sixth embodiment
According to the fifth embodiment of the invention there is provided a kind of monitor method of document creation information, sixth embodiment withThe difference of fourth embodiment is, in the ID according to the application program, obtains the Bao Minghou of the application program of establishment file,It is further comprising the steps of:
It is one or several in below preserving:The ID of the application program of establishment file, the application program of establishment file bagName, the title of establishment file.
The monitor method for the document creation information that sixth embodiment of the invention is provided can not only enable extraneous management programAccess and the file of establishment is classified according to the bag name of application program, obtain establishment in some application program special time periodThe number of file, but also the data listened to can be stored in the database monitored inside service module, for counting laterInformation is used.
The monitor method for the document creation information that first embodiment of the invention to sixth embodiment is provided can be by monitoringThe operation of establishment file obtains the ID of the application program of establishment file, further should according to being obtained the ID of the application programWith the bag of program name, the bag name of the application program of the establishment file for monitoring request and the file of corresponding establishment will be metTitle is reported, so that extraneous management program can be distinguished after the information reported according to the bag name of application programDifferent files, for example, further big data can analyze, or be prepared for later " clean unloading ", so as to derive moreUsage.
Monitor method with the document creation information of above-mentioned first embodiment is corresponding, and invention further provides oneThe audiomonitor of document creation information is planted, the audiomonitor of the document creation information includes:Memory, processor and it is stored inOn the memory and the computer program that can run on the processor, the computer program is by the computing deviceWhen following steps:
Step 301:By the oracle listener added in bottom, the file creation operation of bottom is monitored, establishment file is obtainedApplication program ID.
Specifically, the ID (application Id) of the application program is the identity of application program.
Optionally, when the application program is Android application programs, the bottom is bionic storehouses.Because no matterThe code of java layers or c++ layers, to be all finally calling physical layer interface (such as bionic interfaces) realize file graspMake, so we can listen to the establishment action of All Files completely.
Step 302:According to the ID of the application program, the bag name of the application program of establishment file is obtained.
Specifically, the service module of monitoring obtains answering for establishment file according to the ID of the application program of the establishment fileWith the bag name of program.The package name of the entitled application program of bag of the application program, can be by android systemService the bag name for the program that is applied according to the ID of the application program.
Step 303:The corresponding application program of the bag name, which is sent, to specified monitoring registrant has carried out document creationNotification message.
Specifically, the monitoring registrant specified includes:It is advance monitor registration and provide needing that monitors to answerThe extraneous management program indicated with program, i.e., carried out monitoring registration and indicated to monitor what the application file was created in advanceExtraneous management program.
Respectively with above-mentioned second embodiment, 3rd embodiment, fourth embodiment, the 5th embodiment, sixth embodimentThe monitor method of document creation information is corresponding, and invention further provides a kind of audiomonitor of document creation information, instituteStating the audiomonitor of document creation information includes:Memory, processor and it is stored on the memory and can be in the processingThe computer program run on device, the computer program is realized such as second embodiment, the 3rd in fact during the computing deviceThe step of applying example, fourth embodiment, the 5th embodiment, the monitor method of the document creation information of sixth embodiment.
The audiomonitor for the document creation information that the present invention is provided can be by monitoring establishment file operation createdThe ID of the application program of file, the bag name of the application program is obtained according to the ID of the application program, and to specified monitoringRegistrant sends the corresponding application program of the bag name and has carried out the notification message of document creation, so that extraneous management program energyThe number of the application program establishment file is accessed, big data analysis can also be further carried out, so as to derive moreUsage.
Monitor method with the document creation information of above-mentioned first embodiment is corresponding, and invention further provides onePlant the oracle listener for the document creation information that is stored with storage medium, the storage medium, the monitoring of the document creation informationThe step of monitor method of following document creation information is realized when program is executed by processor:
Step 301:By the oracle listener added in bottom, the file creation operation of bottom is monitored, establishment file is obtainedApplication program ID.
Specifically, the ID (application Id) of the application program is the identity of application program.
Optionally, when the application program is Android application programs, the bottom is bionic storehouses.Because no matterThe code of java layers or c++ layers, to be all finally calling physical layer interface (such as bionic interfaces) realize file graspMake, so we can listen to the establishment action of All Files completely.
Step 302:According to the ID of the application program, the bag name of the application program of establishment file is obtained.
Specifically, the service module of monitoring obtains answering for establishment file according to the ID of the application program of the establishment fileWith the bag name of program.The package name of the entitled application program of bag of the application program, can be by android systemService the bag name for the program that is applied according to the ID of the application program.
Step 303:The corresponding application program of the bag name, which is sent, to specified monitoring registrant has carried out document creationNotification message.
Specifically, the monitoring registrant specified includes:It is advance monitor registration and provide needing that monitors to answerThe extraneous management program indicated with program, i.e., carried out monitoring registration and indicated to monitor what the application file was created in advanceExtraneous management program.
Respectively with above-mentioned second embodiment, 3rd embodiment, fourth embodiment, the 5th embodiment, sixth embodimentThe prison for the document creation information that is stored with a kind of corresponding storage medium of monitor method of document creation information, the storage mediumProgram is listened, is realized when the oracle listener of the document creation information is executed by processor such as second embodiment, 3rd embodiment, theThe step of four embodiments, the 5th embodiment, monitor method of the document creation information of sixth embodiment.
The storage medium that the present invention is provided can be by monitoring establishment file operation obtain the application program of establishment fileID, the bag name of the application program is obtained according to the ID of the application program, and send described to specified monitoring registrantThe corresponding application program of bag name has carried out the notification message of document creation, so that extraneous management program can obtain the applicationThe number of program creation file, can also further carry out big data analysis, so as to derive more usages.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-rowHis property is included, so that process, method, article or device including a series of key elements not only include those key elements, andAnd also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherentlyKey element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including thisAlso 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 sideMethod can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other wordsGoing out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage mediumIn (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, serviceDevice, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specificEmbodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the artUnder the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lotForm, these are belonged within the protection of the present invention.

Claims (10)

CN201710384620.3A2017-05-262017-05-26Method, equipment and storage medium for monitoring file creation informationActiveCN107220132B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710384620.3ACN107220132B (en)2017-05-262017-05-26Method, equipment and storage medium for monitoring file creation information

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710384620.3ACN107220132B (en)2017-05-262017-05-26Method, equipment and storage medium for monitoring file creation information

Publications (2)

Publication NumberPublication Date
CN107220132Atrue CN107220132A (en)2017-09-29
CN107220132B CN107220132B (en)2021-01-22

Family

ID=59944564

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710384620.3AActiveCN107220132B (en)2017-05-262017-05-26Method, equipment and storage medium for monitoring file creation information

Country Status (1)

CountryLink
CN (1)CN107220132B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109299039A (en)*2018-08-302019-02-01努比亚技术有限公司A kind of file management method, equipment and computer readable storage medium
CN109408465A (en)*2018-10-292019-03-01Oppo广东移动通信有限公司The recording method of file attaching information, device, storage medium and terminal
CN110275862A (en)*2019-06-262019-09-24北京字节跳动网络技术有限公司Count the method and apparatus for having created number of files
CN110569171A (en)*2019-09-092019-12-13北京安云世纪科技有限公司File monitoring method and device
CN110875951A (en)*2018-09-042020-03-10北京奇虎科技有限公司 A method and device for calling message concurrency statistics
CN111176708A (en)*2019-12-202020-05-19南京领行科技股份有限公司SDK file processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7213033B2 (en)*2002-01-082007-05-01International Business Machines CorporationAutomatically populating an application's working directory with files having a specified type from other directory locations
US7827537B2 (en)*2006-05-262010-11-02Oracle America, IncSearching computer programs that use different semantics
CN103176828A (en)*2013-03-292013-06-26北京奇虎科技有限公司Method and device of deleting application program residual files
CN103746782A (en)*2013-12-252014-04-23北京奇虎科技有限公司Method and apparatus for obtaining feedback information of application
CN105871600A (en)*2016-03-282016-08-17努比亚技术有限公司Application upgrade package detection method, server, and application program upgrade method and system
CN106598756A (en)*2016-12-132017-04-26重庆川仪自动化股份有限公司Data interaction method among different application programs

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7213033B2 (en)*2002-01-082007-05-01International Business Machines CorporationAutomatically populating an application's working directory with files having a specified type from other directory locations
US7827537B2 (en)*2006-05-262010-11-02Oracle America, IncSearching computer programs that use different semantics
CN103176828A (en)*2013-03-292013-06-26北京奇虎科技有限公司Method and device of deleting application program residual files
CN103746782A (en)*2013-12-252014-04-23北京奇虎科技有限公司Method and apparatus for obtaining feedback information of application
CN105871600A (en)*2016-03-282016-08-17努比亚技术有限公司Application upgrade package detection method, server, and application program upgrade method and system
CN106598756A (en)*2016-12-132017-04-26重庆川仪自动化股份有限公司Data interaction method among different application programs

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109299039A (en)*2018-08-302019-02-01努比亚技术有限公司A kind of file management method, equipment and computer readable storage medium
CN110875951A (en)*2018-09-042020-03-10北京奇虎科技有限公司 A method and device for calling message concurrency statistics
CN110875951B (en)*2018-09-042022-07-01北京奇虎科技有限公司Statistical method and device for concurrency of call messages
CN109408465A (en)*2018-10-292019-03-01Oppo广东移动通信有限公司The recording method of file attaching information, device, storage medium and terminal
CN109408465B (en)*2018-10-292021-07-13Oppo广东移动通信有限公司 File ownership information recording method, device, storage medium and terminal
CN110275862A (en)*2019-06-262019-09-24北京字节跳动网络技术有限公司Count the method and apparatus for having created number of files
CN110569171A (en)*2019-09-092019-12-13北京安云世纪科技有限公司File monitoring method and device
CN110569171B (en)*2019-09-092023-03-31北京安云世纪科技有限公司File monitoring method and device
CN111176708A (en)*2019-12-202020-05-19南京领行科技股份有限公司SDK file processing method and device, electronic equipment and storage medium
CN111176708B (en)*2019-12-202022-05-13南京领行科技股份有限公司SDK file processing method and device, electronic equipment and storage medium

Also Published As

Publication numberPublication date
CN107220132B (en)2021-01-22

Similar Documents

PublicationPublication DateTitle
CN107220132A (en)A kind of monitor method, equipment and the storage medium of document creation information
CN107133092A (en)Multi-thread synchronization processing method, terminal and computer-readable recording medium
CN107967322A (en)Document classification display methods, mobile terminal and computer-readable recording medium
CN107613489A (en)A kind of wireless charging method, hotspot equipment, terminal and storage medium
CN107038245A (en)Page switching method, mobile terminal and storage medium
CN107707450A (en)A kind of method, apparatus and computer-readable recording medium for transmitting file
CN107229390A (en)A kind of desktop icons aligning method, mobile terminal and computer-readable recording medium
CN107239522A (en)Picture storage method, equipment and computer-readable storage medium
CN107181865A (en)Processing method, terminal and the computer-readable recording medium of unread short messages
CN107135128A (en)Call chain collecting method, mobile terminal and computer-readable recording medium
CN107193968A (en)A kind of method, device and the computer-readable recording medium of positional information storage
CN107104886A (en)A kind of information indicating method, equipment and computer-readable recording medium
CN107657583A (en)A kind of screenshot method, terminal and computer-readable recording medium
CN109299039A (en)A kind of file management method, equipment and computer readable storage medium
CN107483556A (en)A kind of remote configuring method, equipment and computer-readable recording medium
CN107135086A (en)One kind broadcast method for pushing and equipment, computer-readable recording medium
CN107135156A (en)Call chain collecting method, mobile terminal and computer-readable recording medium
CN107426304A (en)Method, system and the proxy server of interactive media resource
CN107678625A (en)Information Sharing menu display method, mobile terminal and computer-readable recording medium
CN109445945A (en)Memory allocation method, mobile terminal, server and the storage medium of application program
CN107172605A (en)A kind of Emmergency call method, mobile terminal and computer-readable recording medium
CN107948397A (en)A kind of information-pushing method, device and computer-readable recording medium
CN107423065A (en)Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else
CN107133108A (en)Implementation method, terminal, server and the computer-readable recording medium of distributed complex lock
CN107222525A (en)Data network connection status display methods, terminal and computer-readable recording medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp