CN103473163B - application program detection method and device - Google Patents

application program detection method and device Download PDF

Info

Publication number
CN103473163B
CN103473163B CN201310413195.8A CN201310413195A CN103473163B CN 103473163 B CN103473163 B CN 103473163B CN 201310413195 A CN201310413195 A CN 201310413195A CN 103473163 B CN103473163 B CN 103473163B
Authority
CN
China
Prior art keywords
application program
application
information
file path
default file
Prior art date
Application number
CN201310413195.8A
Other languages
Chinese (zh)
Other versions
CN103473163A (en
Inventor
拓鑫
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN201310413195.8A priority Critical patent/CN103473163B/en
Publication of CN103473163A publication Critical patent/CN103473163A/en
Application granted granted Critical
Publication of CN103473163B publication Critical patent/CN103473163B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading

Abstract

The invention discloses a kind of application program detection method and device, belong to field of computer technology.Described method includes: obtain the default file path being associated with mounted application program;The default file path being associated described in monitoring;When the information in the default file path monitoring described application program changes, start terminal mounted management application, according to the application features storehouse of described management application, the application program of described terminal is detected.This device includes: acquisition module, monitoring module and detection module.The present invention passes through the mounted application program of real-time monitoring terminal equipment, when monitoring information corresponding to terminal unit certain application program mounted and changing, in the case of need not user's active operation, again detect according to default application features storehouse, application information can be known in real time, it is provided that service more accurately.

Description

Application program detection method and device
Technical field
The present invention relates to field of computer technology, particularly to a kind of application program detection method and device.
Background technology
Along with terminal function from strength to strength, a station terminal equipment can be installed multiple have various The application program of difference in functionality.In order to the application program various to quantity is managed, usually, can be in order to By the management-type application program being installed on terminal unit.Management-type application program is that a class can be to application program It is downloaded, pacifies the application program of the operation such as loading, unloading and upgrading.Management-type application program can be accurately On detection user's machine, whether certain a application program is installed, and obtains its version number, thus judges this application Program is the need of upgrading etc..
In the prior art, the detection of application program can be detected by management-type application program according to application program Feature database is carried out.This application program detection feature database is configured by developer, defines application program management class The application program phases such as the Uninstaller information of application program, application program installation path and application version number Pass information, in order to according to the relevant information of this definition, the application program on terminal unit is entered during detection Row detection.
During realizing the present invention, inventor finds that prior art at least there is problems in that
Current management-type application program completes after current application program detects to carrying out application program detection next time In the front time period, if certain a application program is not, unloading mounted in current management-type application program Or upgrading etc., then current management-type application program cannot be known, causes current management-type application program carrying out Before complete detection, the installment state of the application program that terminal unit is installed when detecting according further to the last time Carry out operation indicating, it is not known that when detect, therefore cannot provide and service more accurately.
Summary of the invention
Update problem not in time to solve application information, embodiments provide a kind of application Program detecting method and device.Described technical scheme is as follows:
On the one hand, it is provided that a kind of application program detection method, described method includes: obtain with mounted The default file path that application program is associated;The default file path being associated described in monitoring;When monitoring When information in the default file path of described application program changes, starting the mounted management of terminal should With, according to the application features storehouse of described management application, the application program of described terminal is detected, institute State application features storehouse and define the path for detecting registration table unloading information for different application And for detecting the installation path of each file of application program;Described acquisition and mounted application program phase The default file path of association includes: according to default application features storehouse, to described mounted application journey Sequence detects, the default file path that record is used when detecting described mounted application program;Or, The first list item in traversal registration table and the second list item, obtain record in described first list item and the second list item The default file path of described mounted application program.
On the other hand, it is provided that a kind of application program detection device, described device includes: acquisition module, uses In the default file path that acquisition is associated with mounted application program;Monitoring module, is used for monitoring described The default file path being associated;Detection module, for when the default file road monitoring described application program When information in footpath changes, the mounted management application of startup terminal, according to answering of described management application Detecting the application program of described terminal with performance of program storehouse, it is right that described application features storehouse defines In different application for detect registration table unloading information path and for detect application program each The installation path of file;Described acquisition module is for according to presetting application features storehouse, installing described Application program detect, the default file road that used when record detects described mounted application program Footpath;Or, described acquisition module, for traveling through the first list item in registration table and the second list item, obtains described The default file path of the described mounted application program of record in first list item and the second list item.
The technical scheme that the embodiment of the present invention provides has the benefit that
By the mounted application program of real-time monitoring terminal equipment, when monitor terminal unit mounted certain When the information that money application program is corresponding changes, in the case of need not user's active operation, root again Detect according to default application features storehouse, it is possible to know application information in real time, it is provided that more accurate Service.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the application program detection method that the embodiment of the present invention provides;
Fig. 2 is the flow chart of the application program detection method that the embodiment of the present invention provides;
Fig. 3 is the structural representation of the application program detection device that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the terminal unit that the embodiment of the present invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention Embodiment is described in further detail.
The application program detection method flow chart that Fig. 1 embodiment of the present invention provides, sees Fig. 1, described method bag Include:
101, the default file path being associated with mounted application program is obtained;
102, this default file path being associated is monitored;
103, when the information in the default file path monitoring this application program changes, terminal is started Mounted management application, enters the application program of this terminal according to the application features storehouse that this management is applied Row detection.
Wherein, what the information in this default file path at least included mounted application program respective file can Perform in file or DLL (Dynamic Linkable Library, dynamic link library) file etc. and registration table Each list item.
The method that the embodiment of the present invention provides, by the mounted application program of real-time monitoring terminal equipment, when Monitor information corresponding to terminal unit certain application program mounted when changing, need not user In the case of active operation, again detect according to default application features storehouse, it is possible to knowing in real time should With program information, it is provided that service more accurately.
Fig. 2 is the application program detection method flow chart that the embodiment of the present invention provides.Holding of this inventive embodiments Row main body is terminal unit.Seeing Fig. 2, the method includes:
201, according to presetting application features storehouse, this mounted application program is detected, record inspection The default file path used when surveying this mounted application program;
The process in the default file path that this step 201 is associated with mounted application program for acquisition, its In, this default application features storehouse can be that application program management software carries, set for detecting terminal The rule of standby set up applications, this default application features storehouse defines for different application The detection path of much information, e.g., for detecting the path of registration table unloading information and for detecting application The installation path etc. of each file of program.When terminal unit detects according to default application features storehouse, Default application features storehouse need to be resolved, according to resolving the path of registration table unloading information, this application obtained The installation path etc. of the file of program detects, now, by each paths record used when detecting for answering The default file path being associated by program.
It should be noted that when resolving default application features storehouse, the different label substances in label Can correspond to different paths, this label can be true according to the compiling rule of program with the corresponding relation in path Fixed, this is not especially limited by the embodiment of the present invention.
The most only illustrate as a example by one section of code in a certain application features storehouse:
Wherein, " 052CFB79-9D62-42E3-8A15-DE66C2C97C3E " in reguninst label For represent in registration table the path of this application program unloading information, in file label " .. .. Bin ××× .e Xe " it is the installation directory (file etc.) of application program, in embodiments of the present invention, with above-mentioned code be only Example in application features storehouse defined content be illustrated, for different compiling rules, The form of expression in this application features storehouse can be different.
Alternatively, above-mentioned steps 201 can also be accomplished by: in traversal terminal device registry The first list item and the second list item, obtain in this first list item and the second list item the presetting of application program of record File path.
Alternatively, the first list item is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Unin Stall, the second list item is HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninst All, wherein, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Unin The key value of stall is the unloading information of the locally-installed all application programs in registration table, HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninst The key value of all is the unloading information of the application software that the current management-type application program in registration table is installed.
Specifically, the first list item in traversal terminal device registry in this step 201 and the second list item, Obtain the default file path of the application program of record in this first list item and the second list item to include: traversal HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Unin Stall and HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninst The sub-key value of all, is recorded as what the mounted application program of this terminal unit was associated by the sub-key value traversed Default file path.
It addition, this step 201 can also obtain this end by resolving default application features storehouse The default file path that the mounted application program of end equipment is associated.
202, the default file path of monitoring record;
Specifically, this step 202 includes: by filter Driver on FSD, monitor the default literary composition of this application program Part path;Or, by calling the function of corresponding function, monitor the default file path of this application program.
Alternatively, by calling the function of corresponding function, the default file path monitoring this application program includes: By calling the FindFirstChangeNotification function with monitoring specified file informational function, monitoring The file path of the mounted application program of this terminal unit, has monitoring registration table specified path by calling The RegistryNotifyCallback function of function, monitors the registration of the mounted application program of this terminal unit Table path.
Specifically, the present embodiment uses having of windows offer to monitor specified file informational function FindFirstChangeNotification function, the file path of the mounted application program of monitoring terminal equipment, Can be with the concrete catalogue in monitoring terminal equipment mounted application file path by this function, it is possible to With the executable file in monitoring application file path, concrete catalogue or file at application program are sent out After raw additions and deletions change, this function notifies current management-type application program;Employing has monitoring registration table specified path merit The RegistryNotifyCallback function of energy, the registration table road of the mounted application program of monitoring terminal equipment Footpath, being referred to by this function can be with the registration in the registration table path of the mounted application program of monitoring terminal equipment Table information, after the value of registration table changes, this function notifies current management-type application program.
It should be noted that the fileinfo of the mounted application program of monitoring terminal equipment and registry information also Other functions or software can be used to realize.
It addition, this document filtration drive can be according to monitoring active user in real time to mounted application program Operation, this driving can be configured by developer, and the embodiment of the present invention does not limits.
203, when the information in the default file path monitoring this application program changes, terminal is started Mounted management application, enters the application program of this terminal according to the application features storehouse that this management is applied Row detection;
Specifically, the default file path should being associated with mounted application program is mounted for storing The path of registration table unloading information of application program, installation directory, executable file, dynamic link library file In one or more, when certain application program be mounted, upgrade, unload even revise time, can increase, The path of registration table unloading information, installation directory, executable file, dynamic link library file are deleted or modified Deng, then by the monitoring of step 202, the information that can monitor in the default file path of application program is sent out Changing, that is to say, when the registry information and fileinfo monitoring the association of certain application program becomes During change, trigger and according to default application features storehouse, each set up applications of terminal unit is detected This application program.
Further, when the information in the default file path monitoring this application program changes, can Determine that current change is for which application program to occur with the information according to change, therefore, this step 203 Can be replaced by following step: when the information in the default file path monitoring this application program changes Time, obtain the application program identification that the information changed is corresponding;Start terminal mounted management application, Application program corresponding to the application features storehouse applied according to this management application program identification to getting is carried out Detection.By selectively detecting rather than to terminal according to the application program identification changed Mounted program carries out complete detection, it is to avoid impact on normal operation of terminal, it is possible to realize having for Property, more efficient detection.As, when the information in the default file path A monitoring this application program is sent out During changing, can know that the file preserved in the A of this default file path belongs to application program identification is A1 Application program, then obtain application program identification A1, start management application after, to application program identification The application program of A1 detects.Certainly, during detecting according to application program identification, Ke Yigen Installation directory title corresponding to this application program identification or registry information etc. are obtained according to application program identification, with Just detect the vestige of this application program in terminal according to these contents.
It should be noted that terminal can install multiple management application, the application program of each management application is special Levying storehouse can be different, and when the information in default file path being detected changes, can start acquiescence Management application, it is also possible to start the application features used when getting the default file path of change Management application belonging to storehouse, e.g., ought to be got with the application features storehouse of B by analytic tube and preset literary composition Part path B1, the information in the follow-up B1 of knowing there occurs change, then start management application B and detect.
Wherein, when the information in the default file path monitoring described application program changes, obtain Application program identification corresponding to the information that changes includes any one situation following:
(1) when the registry information in the default file path monitoring described application program changes, Obtain the application program identification that the registry information changed is corresponding.
(2) when the unloading information in the default file path monitoring described application program changes, obtain Take the application program identification that the unloading information changed is corresponding.
(3) when the installation directory in the default file path described application program being detected changes, obtain Take the application program identification that the installation directory changed is corresponding.
For application features storehouse, each default file path and application program are all one to one Relation, therefore, it can by the information in default file path or default file path, such as default file road The contents such as unloading information, installation directory and registry information in footpath, uniquely determine corresponding answering By program identification, thus carry out follow-up detection process according to application program identification.
That above-mentioned steps 203 is monitored as a result, it is possible to change, e.g., when really according to the granularity of monitoring Surely some file path changed is monitored when associating with certain application program, the most in step 203, Trigger default application features storehouse this application program is detected, in order to know that this application program is in time No there occurs the events such as version updating, if it is determined that this application program be mounted with upgraded version or unloaded, It is modified, then updates the application information of this application program.This renewal may refer to preset application at this The software management application program that performance of program storehouse is corresponding is updated, in order to make it easy to understand, following to renewal Different situations illustrate:
204, when the upgraded version of arbitrary application program being detected, at the application information that this management is applied In the version information of application program that is more newly detected;
For management application, the application information of management application includes the version information of application program, Therefore, (that is to say that the version number detected is more than management when the upgraded version of arbitrary application program being detected Existing version number in application), the version information of this application program is revised as the version information detected.
205, when detecting that arbitrary application program is unloaded, will in the application information that this management is applied The installment state of this application program detected is revised as unloaded;
For management application, the application information of management application includes the installment state of application program, As unloaded, install, do not install or to be downloaded etc., therefore, when detecting that arbitrary application program is unloaded Time, the installment state of this application program is revised as unloaded, in order to point out the accurate of this application program of user State.
206, when the installation file arbitrary application program being detected is modified, in the application journey that this management is applied Sequence information is added the amendment state of this application program detected.
For management application, the application information of management application includes the installation file of application program Path etc., therefore, when the installation file arbitrary application program being detected is modified, application program believe Breath adds the amendment state of current application program.For amendment, this amendment is likely to be application journey The movement installing file of sequence, it is also possible to be first to unload from some disk and be installed to another disk Medium situation, for above-mentioned amendment situation, installs file and is all modified, in order to avoid this amendment be due to The malicious modification that the operation mistake of user or some security breaches cause, needs this amendment is prompted to terminal User, enables a user to view this amendment state in time, thus carries out reparation etc. and save operation.
Further, when installing file and being modified, it is also possible to add in the application information being modified Recover option, in order to user can be by selecting recovery option, by the shape before this amendment of application recovery State.
The above-mentioned detection of the embodiment of the present invention includes but not limited to install application program, unloaded state and version The detection of this information etc., it is true that the function according to different software management application program is different, its detection Project there may also be other guide, and this is not especially limited by the embodiment of the present invention.
The method that the embodiment of the present invention provides, is believed by the file of the mounted application program of monitoring terminal equipment Breath and registry information, when the fileinfo and the registration that monitor terminal unit certain application program mounted During table information change, in the case of need not user's active operation, automatically according to default application features This application program is detected by storehouse, it is possible to know application information in real time.
Fig. 3 is the structural representation of the application program detection device that the embodiment of the present invention provides.See Fig. 3, institute State device to include: acquisition module 301, monitoring module 302 and detection module 303, wherein, acquisition module 301 The default file path being associated with mounted application program for acquisition;Acquisition module 301 and monitoring mould Block 302 is connected, the default file path that monitoring module 302 is associated described in monitor;Monitoring module 302 are connected with detection module 303, and detection module 303 is for when the default literary composition monitoring described application program When information in part path changes, start terminal mounted management application, according to described management application Application features storehouse the application program of described terminal is detected.
Alternatively, described acquisition module 301 is for according to presetting application features storehouse, installing described Application program detect, the default file road that used when record detects described mounted application program Footpath.
Alternatively, described acquisition module 301, for traveling through the first list item in registration table and the second list item, obtains Take the default file path of the described mounted application program of record in described first list item and the second list item.
Alternatively, described detection module 303 includes: application identities acquiring unit, for described when monitoring When information in the default file path of application program changes, obtain corresponding the answering of the information changed Use program identification;Detector unit, is used for starting terminal mounted management application, according to described management application Application program corresponding to the application features storehouse application program identification to getting detects.
Described application identities acquiring unit is for when the note in the default file path monitoring described application program When volume table information changes, obtain the application program identification that the registry information changed is corresponding;Or, Described application identities acquiring unit is for unloading information carrying in the default file path of described application program when monitoring When breath changes, obtain the application program identification that the unloading information changed is corresponding;Or, described application Mark acquiring unit is for becoming when the installation directory in the default file path described application program being detected During change, obtain the application program identification that the installation directory changed is corresponding.
Alternatively, described device also includes: more new module, for when the upgrading arbitrary application program being detected During version, the version information of the application program being more newly detected in the application information of described management application; Or, modified module, for when detecting that arbitrary application program is unloaded, in the application of described management application The installment state of the described application program detected is revised as unloaded state by program information;Or, add mould Block, for when the installation file arbitrary application program being detected is modified, in the application of described management application The amendment state of the application program detected described in adding in program information.
Alternatively, the default file path that described and mounted application program is associated described in store The path of registration table unloading information of application program of installation, installation directory, executable file, dynamic link One or more in library file.
It should be understood that the application program detection device that above-described embodiment provides is when application program detects, Only it is illustrated with the division of above-mentioned each functional module, in actual application, can be as desired by upper State function distribution to be completed by different functional modules, the internal structure of system will be divided into different function moulds Block, to complete all or part of function described above.It addition, the application program that above-described embodiment provides Detection device belongs to same design with application program detection method embodiment, and it implements process and refers to method Embodiment, repeats no more here.
Fig. 4 is a kind of terminal unit structural representation that the embodiment of the present invention provides.Seeing Fig. 4, this terminal sets The standby application program detection method that may be used for implementing to provide in above-described embodiment.Specifically:
Terminal unit 400 can include communication unit 110, include one or more computer-readables and deposit The memorizer 120 of storage media, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include one or more than one processes core The parts such as processor 180 and power supply 190.It will be understood by those skilled in the art that the end shown in Fig. 4 End device structure is not intended that the restriction to terminal unit, can include that ratio illustrates more or less of parts, Or combine some parts, or different parts are arranged.Wherein:
Communication unit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, this communication Unit 110 can be RF (Radio Frequency, radio frequency) circuit, router, modem, etc. Network communication equipment.Especially, when communication unit 110 is RF circuit, the downlink information of base station is received After, transfer to one or more than one processor 180 processes;It addition, be sent to relating to up data Base station.RF circuit usually as communication unit includes but not limited to antenna, at least one amplifier, tune Humorous device, one or more agitator, subscriber identity module (SIM) card, transceiver, bonder, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..Additionally, communication unit 110 also may be used To be communicated with network and other equipment by radio communication.Described radio communication can use arbitrary communication standard Or agreement, (Global System of Mobile communication, the whole world is mobile to include but not limited to GSM Communication 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..Memorizer 120 can be used for storing software program And module, processor 180 is stored in software program and the module of memorizer 120 by operation, thus Perform the application of various function and data process.Memorizer 120 can mainly include storing program area and storage number According to district, wherein, storage program area can store the application program (ratio needed for operating system, at least one function Such as sound-playing function, image player function etc.) etc.;Storage data field can store according to terminal unit 400 The data (such as voice data, phone directory etc.) etc. that created of use.Additionally, memorizer 120 is permissible Including high-speed random access memory, it is also possible to include nonvolatile memory, for example, at least one disk is deposited Memory device, flush memory device or other volatile solid-state parts.Correspondingly, memorizer 120 is all right Including Memory Controller, to provide processor 180 and the input block 130 access to memorizer 120.
Input block 130 can be used for receive input numeral or character information, and produce with user setup with And function controls relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, Input block 130 can include Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as For touching display screen or Trackpad, can collect user thereon or neighbouring touch operation (such as user makes With any applicable object such as finger, stylus or adnexa on Touch sensitive surface 131 or attached at Touch sensitive surface 131 Near operation), and drive corresponding attachment means according to formula set in advance.Optionally, Touch sensitive surface 131 Touch detecting apparatus and two parts of touch controller can be included.Wherein, touch detecting apparatus detects user's Touch orientation, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch control Device receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 180, And order that processor 180 sends can be received and performed.Furthermore, it is possible to use resistance-type, condenser type, The polytype such as infrared ray and surface acoustic wave realizes Touch sensitive surface 131.Except Touch sensitive surface 131, input is single Unit 130 can also include other input equipments 132.Specifically, other input equipments 132 can include but not It is limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, behaviour Make one or more in bar etc..
Display unit 140 can be used for showing the information inputted by user or the information being supplied to user and terminal The various graphical user interface of equipment 400, these graphical user interface can by figure, text, icon, Video and its combination in any are constituted.Display unit 140 can include display floater 141, optionally, can adopt With LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display floater 141.Further, Touch sensitive surface 131 can cover Display floater 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, sends process to Device 180 is to determine the type of touch event, with preprocessor 180 according to the type of touch event at display surface Corresponding visual output is provided on plate 141.Although in the diagram, Touch sensitive surface 131 and display floater 141 It is to realize input and input function as two independent parts, but in some embodiments it is possible to will Touch sensitive surface 131 is integrated with display floater 141 and realizes input and output function.
Terminal unit 400 may also include at least one sensor 150, such as optical sensor, motion sensor with And other sensors.Specifically, optical sensor can include ambient light sensor and proximity transducer, wherein, Ambient light sensor can regulate the brightness of display floater 141, proximity transducer according to the light and shade of ambient light Display floater 141 and/or backlight can be closed when terminal unit 400 moves in one's ear.As motion-sensing The one of device, Gravity accelerometer can detect the size of (generally three axles) acceleration in all directions, Can detect that size and the direction of gravity time static, can be used for identifying application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;The gyroscope that can also configure as terminal unit 400, barometer, drimeter, thermometer, infrared ray pass Other sensors such as sensor, do not repeat them here.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide between user and terminal unit 400 Audio interface.The signal of telecommunication after the voice data conversion that voicefrequency circuit 160 can will receive, is transferred to raise one's voice Device 161, is converted to acoustical signal output by speaker 161;On the other hand, the sound that microphone 162 will be collected Tone signal is converted to the signal of telecommunication, voicefrequency circuit 160 be converted to voice data after receiving, then by voice data After output processor 180 processes, through RF circuit 110 to be sent to such as another terminal unit, or by sound Frequency is according to exporting to memorizer 120 to process further.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal unit 400.
In order to realize radio communication, this terminal unit can be configured with wireless communication unit 170, this channel radio Letter unit 170 can be WiFi module.WiFi belongs to short range wireless transmission technology, and terminal unit 400 leads to Cross wireless communication unit 170 user to be helped to send and receive e-mail, browse webpage and access streaming video etc., It has provided the user wireless broadband internet and has accessed.Although Fig. 4 shows wireless communication unit 170, but Will be understood by, it is also not belonging to must be configured into of terminal unit 400, can exist as required completely Omit in the scope of the essence not changing invention.
Processor 180 is the control centre of terminal unit 400, utilizes various interface and the whole hands of connection The various piece of machine, is stored in the software program in memorizer 120 and/or module by running or performing, with And call the data being stored in memorizer 120, perform the various functions of terminal unit 400 and process data, Thus mobile phone is carried out integral monitoring.Optionally, processor 180 can include one or more process core; Preferably, processor 180 can integrated application processor and modem processor, wherein, application processor Mainly processing operating system, user interface and application program etc., modem processor mainly processes channel radio Letter.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal unit 400 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that electricity Source can be logically contiguous with processor 180 by power-supply management system, thus is realized by power-supply management system The functions such as management charging, electric discharge and power managed.Power supply 190 can also include one or more Direct current or alternating current power supply, recharging system, power failure detection circuit, power supply changeover device or inverter, The random component such as power supply status indicator.
Although not shown, terminal unit 400 can also include photographic head, bluetooth module etc., the most superfluous at this State.The most in the present embodiment, the display unit of terminal unit is touch-screen display, and terminal unit also wraps Having included memorizer, and one or more than one program, one of them or more than one program stores In memorizer, and it is configured to be performed by one or more than one processor, one or one Procedure above comprises the instruction for carrying out following operation: obtain pre-with what mounted application program was associated If file path;The default file path being associated described in monitoring;When monitoring presetting of described application program When information in file path changes, start terminal mounted management application, should according to described management Application features storehouse the application program of described terminal is detected.
Alternatively, one or more than one program comprise the instruction for carrying out following operation:
According to default application features storehouse, described mounted application program is detected, record detection The default file path used during described mounted application program.
Alternatively, one or more than one program comprise the instruction for carrying out following operation:
The first list item in traversal registration table and the second list item, obtain in described first list item and the second list item and remember The default file path of the described mounted application program of record.
Alternatively, one or more than one program comprise the instruction for carrying out following operation:
When the information in the default file path monitoring described application program changes, obtain and become Application program identification corresponding to information changed;
Start terminal mounted management application, according to the described application features storehouse of application that manages to getting Application program corresponding to application program identification detect.
Alternatively, one or more than one program comprise the instruction for carrying out following operation:
When the registry information in the default file path monitoring described application program changes, obtain The application program identification that the registry information that changes is corresponding;Or,
When the unloading information in the default file path monitoring described application program changes, obtain and send out The application program identification that the unloading information of changing is corresponding;Or,
When the installation directory in the default file path described application program being detected changes, obtain and send out The application program identification that the installation directory of changing is corresponding.
Alternatively, one or more than one program comprise the instruction for carrying out following operation:
When the upgraded version of arbitrary application program being detected, in the application information of described management application The version information of the application program being more newly detected;Or,
When detecting that arbitrary application program is unloaded, by institute in the application information of described management application The installment state stating the application program detected is revised as unloaded state;Or,
When the installation file arbitrary application program being detected is modified, at the application program of described management application The amendment state of the application program detected described in adding in information.
Alternatively, the default file path that described and mounted application program is associated described in store The path of registration table unloading information of application program of installation, installation directory, executable file, dynamic link One or more in library file.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be passed through Hardware completes, it is also possible to instructing relevant hardware by program and complete, described program can be stored in In a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the present invention's Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention's Within protection domain.

Claims (10)

1. an application program detection method, it is characterised in that described method includes:
Obtain the default file path being associated with mounted application program;
The default file path being associated described in monitoring;
When the information in the default file path monitoring described application program changes, start terminal The management application installed, manages the application features storehouse the applied application program to described terminal according to described Detecting, described application features storehouse defines unloading for detecting registration table for different application The path of information carrying breath and for detecting the installation path of each file of application program;
The default file path that described acquisition is associated with mounted application program includes:
According to default application features storehouse, described mounted application program is detected, record detection The default file path used during described mounted application program;Or,
The first list item in traversal registration table and the second list item, obtain in described first list item and the second list item and remember The default file path of the described mounted application program of record.
Method the most according to claim 1, it is characterised in that when monitoring the pre-of described application program If the information in file path changes, start terminal mounted management application, according to described management The application features storehouse of application carries out detection to the application program of described terminal and includes:
When the information in the default file path monitoring described application program changes, obtain and become Application program identification corresponding to information changed;
Start terminal mounted management application, according to the described application features storehouse of application that manages to getting Application program corresponding to application program identification detect.
Method the most according to claim 2, it is characterised in that when monitoring the pre-of described application program If the information in file path changes, obtain the application program identification bag that the information changed is corresponding Include:
When the registry information in the default file path monitoring described application program changes, obtain The application program identification that the registry information that changes is corresponding;Or,
When the unloading information in the default file path monitoring described application program changes, obtain and send out The application program identification that the unloading information of changing is corresponding;Or,
When the installation directory in the default file path described application program being detected changes, obtain and send out The application program identification that the installation directory of changing is corresponding.
Method the most according to claim 1, it is characterised in that according to the application journey of described management application After the application program of described terminal is detected by sequence characteristics storehouse, described method also includes:
When the upgraded version of arbitrary application program being detected, in the application information of described management application The version information of the application program being more newly detected;Or,
When detecting that arbitrary application program is unloaded, by institute in the application information of described management application The installment state stating the application program detected is revised as unloaded state;Or,
When the installation file arbitrary application program being detected is modified, at the application program of described management application The amendment state of the application program detected described in adding in information.
5. according to the method described in claim 1-4 any claim, it is characterised in that described with pacify The default file path that the application program of dress is associated is for storing the registration table of described mounted application program One or more in the path of unloading information, installation directory, executable file, dynamic link library file.
6. an application program detection device, it is characterised in that described device includes:
Acquisition module, for obtaining the default file path being associated with mounted application program;
Monitoring module, is used for the default file path being associated described in monitoring;
Detection module, for changing when the information in the default file path monitoring described application program Time, start terminal mounted management application, according to the described application features storehouse of application that manages to described The application program of terminal detects, and described application features storehouse defines the use for different application In the path of detection registration table unloading information and for detecting the installation path of each file of application program;
Described acquisition module is for according to presetting application features storehouse, entering described mounted application program Row detection, the default file path that record is used when detecting described mounted application program;Or, institute State acquisition module for the first list item traveling through in registration table and the second list item, obtain described first list item and The default file path of the described mounted application program of record in two list items.
Device the most according to claim 6, it is characterised in that described detection module includes:
Application identities acquiring unit, for when the information in the default file path monitoring described application program When changing, obtain the application program identification that the information changed is corresponding;
Detector unit, is used for starting terminal mounted management application, according to the application program of described management application Application program corresponding to the feature database application program identification to getting detects.
Device the most according to claim 7, it is characterised in that described application identities acquiring unit is used for When the registry information in the default file path monitoring described application program changes, obtain and occur The application program identification corresponding to registry information of change;Or,
Described application identities acquiring unit is for when unloading in the default file path monitoring described application program When information carrying breath changes, obtain the application program identification that the unloading information changed is corresponding;Or,
Described application identities acquiring unit is for when the peace in the default file path described application program being detected When dress catalogue changes, obtain the application program identification that the installation directory changed is corresponding.
Device the most according to claim 6, it is characterised in that described device also includes:
More new module, for when detecting the upgraded version of arbitrary application program, in described management application The version information of the application program being more newly detected in application information;Or,
Modified module, for when detecting that arbitrary application program is unloaded, in the application of described management application The installment state of the described application program detected is revised as unloaded state by program information;Or,
Add module, for when the installation file arbitrary application program being detected is modified, in described management The amendment state of the application program detected described in adding in the application information of application.
10. according to the device described in claim 6-9 any claim, it is characterised in that described with pacify The default file path that the application program of dress is associated is for storing the registration table of described mounted application program One or more in the path of unloading information, installation directory, executable file, dynamic link library file.
CN201310413195.8A 2013-09-11 2013-09-11 application program detection method and device CN103473163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310413195.8A CN103473163B (en) 2013-09-11 2013-09-11 application program detection method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310413195.8A CN103473163B (en) 2013-09-11 2013-09-11 application program detection method and device
PCT/CN2014/083502 WO2015035835A1 (en) 2013-09-11 2014-08-01 Method and apparatus for detecting application program

Publications (2)

Publication Number Publication Date
CN103473163A CN103473163A (en) 2013-12-25
CN103473163B true CN103473163B (en) 2016-10-26

Family

ID=49798028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310413195.8A CN103473163B (en) 2013-09-11 2013-09-11 application program detection method and device

Country Status (2)

Country Link
CN (1) CN103473163B (en)
WO (1) WO2015035835A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473163B (en) * 2013-09-11 2016-10-26 腾讯科技(深圳)有限公司 application program detection method and device
CN104978237B (en) * 2014-04-11 2019-03-19 腾讯科技(深圳)有限公司 The method and apparatus for repairing dynamic link library file
CN104035858B (en) * 2014-06-27 2017-06-09 珠海市君天电子科技有限公司 A kind of method of monitoring software, communication terminal and server
CN104156414B (en) * 2014-07-30 2018-01-23 珠海市君天电子科技有限公司 A kind of method for cleaning of garbage files, device and terminal
CN104133703A (en) * 2014-07-31 2014-11-05 珠海市君天电子科技有限公司 Method and device for determining software not used frequently
CN104376259B (en) * 2014-09-12 2017-04-05 腾讯科技(深圳)有限公司 A kind of method and apparatus of detection virus
CN105610878B (en) * 2014-10-30 2020-03-03 腾讯科技(深圳)有限公司 Directory uploading method, data publishing method, terminal and server
US9870215B2 (en) 2015-11-30 2018-01-16 International Business Machines Corporation Tracking an application installation state
CN106709346B (en) * 2016-11-25 2019-08-06 腾讯科技(深圳)有限公司 Document handling method and device
CN108762821A (en) * 2017-04-18 2018-11-06 海马云(天津)信息技术有限公司 Device and method, the electronic equipment of electronic equipment operation application
CN108363546A (en) * 2017-07-14 2018-08-03 北京安天网络安全技术有限公司 A kind of Linux platform rubbish cleaning trustship method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751593A (en) * 2008-11-28 2010-06-23 爱思开电讯投资(中国)有限公司 Smart card and backup, recovering method and system thereof
CN101789888A (en) * 2010-01-12 2010-07-28 腾讯科技(深圳)有限公司 Detection method and device for software installation
CN102331945A (en) * 2011-09-16 2012-01-25 北京思创银联科技股份有限公司 Application management method based on electronic store
CN102736978A (en) * 2012-06-26 2012-10-17 奇智软件(北京)有限公司 Method and device for detecting installation status of application program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060015493A1 (en) * 2004-07-15 2006-01-19 International Business Machines Corporation Enhanced records manager and related methods
CN101604268B (en) * 2009-07-13 2011-04-06 浪潮电子信息产业股份有限公司 Method for filtering monitored directory change events
CN101833489B (en) * 2010-05-06 2013-04-10 北京邮电大学 Method for file real-time monitoring and intelligent backup
CN102609532B (en) * 2012-02-15 2014-07-23 大唐移动通信设备有限公司 Method and device for monitoring file directory
CN102833267A (en) * 2012-09-14 2012-12-19 山东中创软件商用中间件股份有限公司 Method and device for protecting webpage security
CN103473163B (en) * 2013-09-11 2016-10-26 腾讯科技(深圳)有限公司 application program detection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751593A (en) * 2008-11-28 2010-06-23 爱思开电讯投资(中国)有限公司 Smart card and backup, recovering method and system thereof
CN101789888A (en) * 2010-01-12 2010-07-28 腾讯科技(深圳)有限公司 Detection method and device for software installation
CN102331945A (en) * 2011-09-16 2012-01-25 北京思创银联科技股份有限公司 Application management method based on electronic store
CN102736978A (en) * 2012-06-26 2012-10-17 奇智软件(北京)有限公司 Method and device for detecting installation status of application program

Also Published As

Publication number Publication date
WO2015035835A1 (en) 2015-03-19
CN103473163A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
EP2530923B1 (en) Method and apparatus for displaying home screen in mobile terminal
CN103501333B (en) Method, device and terminal equipment for downloading files
CN104965721B (en) The method and device that a kind of pair of application program is updated
CN103473011B (en) A kind of mobile terminal performance detection method, device and mobile terminal
CN103327102B (en) A kind of method and apparatus recommending application program
CN104239102B (en) application program operation method and device
CN104679969A (en) Method and device for avoiding user churn
CN104735671B (en) A kind of method and apparatus of identification malicious call
CN103500002B (en) The method of application program management, device and terminal unit
CN106020987A (en) Method and device for determining kernel running configurations in processor
CN104572819B (en) Clearing method and system for junk data
CN106126562A (en) A kind of pop-up hold-up interception method and terminal
CN103281687A (en) Network flow management method and device of double-card terminal
KR101760822B1 (en) Method, firewall, terminal and readable storage medium for implementing security protection
JP6461173B2 (en) Message withdrawal method and apparatus
US10045353B2 (en) Apparatus and method for configuring WiFi channel of mobile device
CN103414766A (en) Method, device and terminal equipment for installing application
CN103634294A (en) Information verifying method and device
CN104427074B (en) A kind of methods, devices and systems for showing incoming information
CN106453511B (en) A kind of data back up method and equipment
CN104216726B (en) Android virtual machine loading method and device
CN103500063B (en) virtual keyboard display method, device and terminal
KR101978590B1 (en) Message updating method, device and terminal
CN104169856A (en) Sidebar menu display method and apparatus, and terminal
CN104134034B (en) Control the method and apparatus that application runs

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model