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
preset file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310413195.8A
Other languages
Chinese (zh)
Other versions
CN103473163A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310413195.8A priority Critical patent/CN103473163B/en
Publication of CN103473163A publication Critical patent/CN103473163A/en
Priority to PCT/CN2014/083502 priority patent/WO2015035835A1/en
Application granted granted Critical
Publication of CN103473163B publication Critical patent/CN103473163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR 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 OR 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 operations
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

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 invention relates to the technical field of computers, in particular to an application program detection method and device.
Background
With the increasing functionality of terminal devices, a plurality of applications with different functions can be installed on one terminal device. In order to manage a large number of applications, a management-type application installed in a terminal device can be generally used. The management application program is an application program which can download, install, uninstall and upgrade the application program. The management application program can accurately detect whether a certain application program is installed on the user machine or not and obtain the version number of the application program, so that whether the application program needs to be upgraded or not is judged.
In the prior art, the detection of the application program by the management application program can be performed according to an application program detection feature library. The application program detection feature library is configured by developers, and defines application program related information such as uninstalling program information, application program installation paths, application program version numbers and the like of application program management type application programs, so that the application programs on the terminal equipment can be detected according to the defined related information in the detection process.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
in the time period from the completion of the detection of the current management application program to the next detection of the application program, if a certain type of application program is not installed, uninstalled or upgraded in the current management application program, the current management application program cannot be known, so that the current management application program is not subjected to operation prompt according to the installation state of the application program installed on the terminal device during the last detection before the current management application program is subjected to comprehensive detection, and the detection time is not known, so that more accurate service cannot be provided.
Disclosure of Invention
In order to solve the problem that information of an application program is not updated timely, embodiments of the present invention provide an application program detection method and apparatus. The technical scheme is as follows:
in one aspect, an application detection method is provided, and the method includes: acquiring a preset file path associated with the installed application program; monitoring the associated preset file path; when monitoring that information in a preset file path of the application program changes, starting a management application installed in a terminal, and detecting the application program of the terminal according to an application program feature library of the management application, wherein the application program feature library specifies a path for detecting registry uninstalling information and an installation path for detecting each file of the application program for different application programs; the acquiring a preset file path associated with the installed application program comprises: detecting the installed application program according to a preset application program feature library, and recording a preset file path used when the installed application program is detected; or traversing a first table entry and a second table entry in a registry, and acquiring the preset file path of the installed application program recorded in the first table entry and the second table entry.
In another aspect, an application detection apparatus is provided, the apparatus including: the acquisition module is used for acquiring a preset file path associated with the installed application program; the monitoring module is used for monitoring the associated preset file path; the detection module is used for starting the installed management application of the terminal when monitoring that the information in the preset file path of the application program changes, and detecting the application program of the terminal according to an application program feature library of the management application, wherein the application program feature library specifies a path for detecting registry uninstalling information and an installation path for detecting each file of the application program for different application programs; the acquisition module is used for detecting the installed application program according to a preset application program feature library and recording a preset file path used when the installed application program is detected; or, the obtaining module is configured to traverse a first entry and a second entry in a registry, and obtain a preset file path of the installed application recorded in the first entry and the second entry.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
by monitoring the installed application programs of the terminal equipment in real time, when the information corresponding to a certain type of application program installed on the terminal equipment is monitored to be changed, detection is carried out again according to the preset application program feature library under the condition that active operation of a user is not needed, the information of the application program can be obtained in real time, and more accurate service is provided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of an application detection method provided by an embodiment of the invention;
FIG. 2 is a flowchart of an application detection method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an application detection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of an application detection method provided in an embodiment of the present invention, and referring to fig. 1, the method includes:
101. acquiring a preset file path associated with the installed application program;
102. monitoring the associated preset file path;
103. and when monitoring that the information in the preset file path of the application program changes, starting the installed management application of the terminal, and detecting the application program of the terminal according to the application program feature library of the management application.
The information in the preset file path at least includes an executable file of a file corresponding to the installed application program or a DLL (Dynamic link Library) file, and the like, and each entry in the registry.
According to the method provided by the embodiment of the invention, the installed application program of the terminal equipment is monitored in real time, and when the information corresponding to a certain type of the installed application program of the terminal equipment is monitored to be changed, detection is carried out again according to the preset application program feature library under the condition that active operation of a user is not needed, so that the information of the application program can be obtained in real time, and more accurate service is provided.
Fig. 2 is a flowchart of an application detection method according to an embodiment of the present invention. The execution main body of the embodiment of the invention is terminal equipment. Referring to fig. 2, the method includes:
201. detecting the installed application program according to a preset application program feature library, and recording a preset file path used when the installed application program is detected;
this step 201 is a process of acquiring a preset file path associated with an installed application, where the preset application feature library may be a rule of the application management software itself for detecting the installed application of the terminal device, and the preset application feature library specifies detection paths for various information of different applications, such as a path for detecting registry uninstall information and an installation path for detecting each file of the application. When the terminal device detects according to the preset application program feature library, the preset application program feature library needs to be analyzed, detection is performed according to the path of the unloading information of the registry obtained through analysis, the installation path of the file of the application program and the like, and at the moment, each path used in detection is recorded as the preset file path associated with the application program.
It should be noted that, when analyzing the preset application feature library, the tag content in different tags may correspond to different paths, and the corresponding relationship between the tags and the paths may be determined according to the compiling rule of the program, which is not specifically limited in this embodiment of the present invention.
The following description will be given by taking only one code of a certain application feature library as an example:
wherein "052 CFB79-9D62-42E3-8a15-DE66C2C97C 3E" in the regulanst tag is used to indicate the path of the application uninstalling information in the registry, and "a. \\\ Bin \×. exe" in the file tag is the installation directory (folder, etc.) of the application.
Optionally, the step 201 may also be implemented by: and traversing a first table entry and a second table entry in the registry of the terminal equipment, and acquiring a preset file path of the application program recorded in the first table entry and the second table entry.
Optionally, the first entry is HKEY _ LOCAL _ MACHINE \ softwave \ Microsoft \ Windows \ CurrentVersion \ Uninstall, and the second entry is HKEY _ CURRENT _ USER \ softwave \ Microsoft \ Windows \ CurrentVersion \ Uninstall, wherein the key value of HKEY _ LOCAL _ MACHINE \ softwave \ Microsoft \ Windows \ CurrentVersion \ Uninstall is the uninstalling information of all locally installed applications in the registry, and the key value of HKEY _ CURRENT _ USER _ SOFTWARE Microsoft \ Windows \ CurrentVersion \ Uninstall is the uninstalling information of the currently installed application in the registry.
Specifically, the step 201 of traversing the first entry and the second entry in the terminal device registry, and acquiring the preset file path of the application program recorded in the first entry and the second entry includes: traversing the key values of HKEY _ LOCAL _ MACHINE \ SOFTWARE \ Microsoft \ Windows \ Currentversion \ Uninstall and HKEY _ CURRENT _ USER \ SOFTWARE \ Microsoft \ Windows \ Currentversion \ Uninstall, and recording the traversed key values as preset file paths associated with the installed application programs of the terminal equipment.
In addition, in step 201, a preset file path associated with the application installed in the terminal device may also be obtained by analyzing a preset application feature library.
202. Monitoring a recorded preset file path;
specifically, this step 202 includes: monitoring a preset file path of the application program through a file filtering driver; or, monitoring the preset file path of the application program by calling the function of the corresponding function.
Optionally, the monitoring the preset file path of the application program by calling a function of the corresponding function includes: and monitoring the file path of the application program installed in the terminal equipment by calling a FindFirstChangeNotification function with a function of monitoring specified file information, and monitoring the registry path of the application program installed in the terminal equipment by calling a registrynotifyCallback function with a function of monitoring the specified path of the registry.
Specifically, in this embodiment, a FindFirstChangeNotification function provided by windows and having a function of monitoring specified file information is used to monitor a file path of an application installed in a terminal device, and through the function, a specific directory in the file path of the application installed in the terminal device can be monitored, and an executable file in the file path of the application can be monitored, and after the specific directory or file of the application is changed, the function notifies a current management application; the registry management method comprises the steps of monitoring a registry path of an installed application program of a terminal device by adopting a RegistryNotifyCallback function with a function of monitoring the registry designated path, monitoring registry information in the registry path of the installed application program of the terminal device through the function, and notifying a current management application program by the function after the value of the registry is changed.
It should be noted that the file information and the registry information of the application installed in the monitoring terminal device may also be implemented by using other functions or software.
In addition, the file filtering driver can monitor the operation of the current user on the installed application program in real time, and the driver can be configured by developers, which is not limited in the embodiment of the invention.
203. When monitoring that the information in the preset file path of the application program changes, starting a management application installed in the terminal, and detecting the application program of the terminal according to an application program feature library of the management application;
specifically, the preset file path associated with the installed application is used to store one or more of a path of registry uninstall information of the installed application, an installation directory, an executable file, and a dynamic link library file, and when a certain application is installed, upgraded, uninstalled, or even modified, the path of registry uninstall information, the installation directory, the executable file, the dynamic link library file, and the like may be added, deleted, or modified, and then, through the monitoring in step 202, the information in the preset file path of the application may be monitored to change, that is, when the registry information and the file information associated with the certain application are monitored to change, the detection of each installed application of the terminal device according to the preset application feature library is triggered.
Further, when it is monitored that the information in the preset file path of the application program changes, it may be determined which application program the current change occurs to according to the changed information, and therefore, the step 203 may be replaced by the following steps: when the information in the preset file path of the application program is monitored to change, acquiring an application program identifier corresponding to the changed information; and starting the management application installed in the terminal, and detecting the application program corresponding to the obtained application program identifier according to the application program feature library of the management application. By selectively detecting the changed application program identification instead of comprehensively detecting the installed program of the terminal, the influence on the normal operation of the terminal is avoided, and the targeted and more efficient detection can be realized. For example, when it is monitored that the information in the preset file path a of the application program changes, it can be known that the file stored in the preset file path a belongs to the application program with the application program identifier a1, the application program identifier a1 is obtained, and after the management application is started, the application program with the application program identifier a1 is detected. Of course, in the process of detecting according to the application identifier, the installation directory name or registry information and the like corresponding to the application identifier may be obtained according to the application identifier, so as to detect the trace of the application in the terminal according to the contents.
It should be noted that the terminal may install a plurality of management applications, the application feature library of each management application may be different, and when it is detected that information in the preset file path changes, a default management application may be started, and a management application to which the application feature library used when the changed preset file path is obtained may also be started, for example, when the preset file path B1 is obtained by analyzing the application feature library of the management application B, and it is subsequently known that information in B1 changes, the management application B is started to perform detection.
When the information in the preset file path of the application program is monitored to be changed, acquiring the application program identifier corresponding to the changed information includes any one of the following conditions:
(1) and when the registry information in the preset file path of the application program is monitored to change, acquiring the application program identifier corresponding to the changed registry information.
(2) And when monitoring that the uninstalling information in the preset file path of the application program changes, acquiring an application program identifier corresponding to the changed uninstalling information.
(3) And when detecting that the installation directory in the preset file path of the application program changes, acquiring the application program identifier corresponding to the changed installation directory.
For the application program feature library, each preset file path and the application program are in one-to-one correspondence, so that the application program identifier corresponding to the preset file path or the preset file path can be uniquely determined through the preset file path or information in the preset file path, such as the unloading information, the installation directory, the registry information and other contents in the preset file path, and the subsequent detection process is performed according to the application program identifier.
The result monitored in step 203 may be changed according to the monitored granularity, for example, when it is determined that a certain file path monitored to be changed is associated with an application program, only in step 203, the preset application program feature library is triggered to detect the application program, so as to know whether the application program has an event such as version update or not in time, and if it is determined that the application program has an upgraded version or is uninstalled, modified or the like, the application program information of the application program is updated. The updating may refer to updating in the software management application corresponding to the preset application feature library, and for convenience of understanding, the following describes different cases of updating:
204. updating the version information of the detected application program in the application program information of the management application when the upgrade version of any application program is detected;
for the management application, the application program information of the management application includes version information of the application program, and therefore, when an upgraded version of any application program is detected (that is, the detected version number is greater than an existing version number in the management application), the version information of the application program is modified into the detected version information.
205. When any application program is detected to be uninstalled, the installation state of the detected application program is modified to be uninstalled in the application program information of the management application;
for the management application, the application program information of the management application comprises the installation state of the application program, such as uninstalled, installed, uninstalled or to-be-downloaded, and therefore, when any application program is detected to be uninstalled, the installation state of the application program is modified to be uninstalled so as to prompt the user of the accurate state of the application program.
206. When it is detected that the installation file of any application program is modified, the modification state of the detected application program is added to the application program information of the management application.
For the management application, the application program information of the management application includes the path of the installation file of the application program and the like, and therefore, when the installation file of any application program is detected to be modified, the modification state of the current application program is added in the application program information. For modification, the modification may be a movement of an installation file of an application program, or may be a case where the installation file is first uninstalled from a certain disk and then installed in another disk, and for the above modification, the installation file is modified, and in order to avoid the modification being a malicious modification caused by an operation error of a user or some security holes, the modification needs to be prompted to an end user, so that the user can check the modification state in time, and thus, a rescue operation such as repair is performed.
Further, when the installation file is modified, a recovery option may also be added to the modified application information so that the user can restore the application to the state before the modification by selecting the recovery option.
The above detection in the embodiment of the present invention includes, but is not limited to, detection of installation and uninstallation status and version information of an application, and in fact, there may be other contents in the detected item according to different functions of different software management applications, and this is not particularly limited in the embodiment of the present invention.
According to the method provided by the embodiment of the invention, the file information and the registry information of the application program installed on the terminal equipment are monitored, and when the file information and the registry information of a certain type of application program installed on the terminal equipment are monitored to be changed, the application program is automatically detected according to the preset application program feature library under the condition that active operation of a user is not needed, so that the information of the application program can be obtained in real time.
Fig. 3 is a schematic structural diagram of an application detection apparatus according to an embodiment of the present invention. Referring to fig. 3, the apparatus includes: the system comprises an acquisition module 301, a monitoring module 302 and a detection module 303, wherein the acquisition module 301 is used for acquiring a preset file path associated with an installed application program; the acquisition module 301 is connected with the monitoring module 302, and the monitoring module 302 is configured to monitor the associated preset file path; the monitoring module 302 is connected to the detecting module 303, and the detecting module 303 is configured to start a management application installed in the terminal when it is monitored that information in a preset file path of the application program changes, and detect the application program of the terminal according to an application program feature library of the management application.
Optionally, the obtaining module 301 is configured to detect the installed application according to a preset application feature library, and record a preset file path used when detecting the installed application.
Optionally, the obtaining module 301 is configured to traverse a first entry and a second entry in a registry, and obtain a preset file path of the installed application recorded in the first entry and the second entry.
Optionally, the detecting module 303 includes: the application identifier acquisition unit is used for acquiring an application identifier corresponding to changed information when monitoring that the information in a preset file path of the application program changes; and the detection unit is used for starting the management application installed in the terminal and detecting the application program corresponding to the acquired application program identifier according to the application program feature library of the management application.
The application identifier acquisition unit is used for acquiring an application identifier corresponding to changed registry information when the registry information in a preset file path of the application program is monitored to be changed; or the application identifier acquiring unit is used for acquiring the application identifier corresponding to the changed uninstalling information when the uninstalling information in the preset file path of the application program is monitored to be changed; or the application identifier acquiring unit is configured to acquire the application identifier corresponding to the changed installation directory when detecting that the installation directory in the preset file path of the application program changes.
Optionally, the apparatus further comprises: an update module for updating version information of the detected application program in the application program information of the management application when an upgraded version of any application program is detected; or, the modification module is configured to modify the detected installation state of the application program into an uninstalled state in the application program information of the management application when it is detected that any application program is uninstalled; or, the adding module is used for adding the modification state of the detected application program in the application program information of the management application when the modification of the installation file of any application program is detected.
Optionally, the preset file path associated with the installed application is used for storing one or more of a path of registry uninstall information of the installed application, an installation directory, an executable file, and a dynamic link library file.
It should be noted that: in the application detection device provided in the above embodiment, only the division of the functional modules is exemplified when detecting an application, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above. In addition, the application detection apparatus and the application detection method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. Referring to fig. 4, the terminal device may be configured to implement the application detection method provided in the above embodiment. Specifically, the method comprises the following steps:
terminal device 400 may include components such as a communication unit 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 4 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the communication unit 110 may be used for receiving and transmitting information or signals during a call, and the communication unit 110 may be an RF (Radio Frequency) circuit, a router, a modem, or other network communication devices. In particular, when the communication unit 110 is an RF circuit, downlink information of the base station is received and then processed by the one or more processors 180; in addition, data relating to uplink is transmitted to the base station. Generally, the RF circuit as a communication unit includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the communication unit 110 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like. The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device 400, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal apparatus 400, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 4, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal device 400 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 400 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the terminal device 400, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and the terminal device 400. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and outputs the audio data to the processor 180 for processing, and then transmits the audio data to, for example, another terminal device via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 400.
To implement wireless communication, a wireless communication unit 170 may be configured on the terminal device, and the wireless communication unit 170 may be a WiFi module. WiFi belongs to a short-range wireless transmission technology, and the terminal device 400 can help a user to send and receive e-mail, browse a web page, access streaming media, and the like through the wireless communication unit 170, which provides the user with wireless broadband internet access. Although fig. 4 shows the wireless communication unit 170, it is understood that it does not belong to the essential constitution of the terminal device 400 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 400, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 400 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 400 further includes a power supply 190 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 180 via a power management system, so as to manage charging, discharging, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 400 may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for: acquiring a preset file path associated with the installed application program; monitoring the associated preset file path; and when monitoring that the information in the preset file path of the application program changes, starting the installed management application of the terminal, and detecting the application program of the terminal according to the application program feature library of the management application.
Optionally, the one or more programs include instructions for:
and detecting the installed application program according to a preset application program feature library, and recording a preset file path used when the installed application program is detected.
Optionally, the one or more programs include instructions for:
and traversing a first table entry and a second table entry in a registry, and acquiring a preset file path of the installed application program recorded in the first table entry and the second table entry.
Optionally, the one or more programs include instructions for:
when the information in the preset file path of the application program is monitored to change, acquiring an application program identifier corresponding to the changed information;
and starting the management application installed in the terminal, and detecting the application program corresponding to the obtained application program identifier according to the application program feature library of the management application.
Optionally, the one or more programs include instructions for:
when the registry information in the preset file path of the application program is monitored to change, acquiring an application program identifier corresponding to the changed registry information; or,
when monitoring that the uninstalling information in the preset file path of the application program changes, acquiring an application program identifier corresponding to the changed uninstalling information; or,
and when detecting that the installation directory in the preset file path of the application program changes, acquiring the application program identifier corresponding to the changed installation directory.
Optionally, the one or more programs include instructions for:
updating the version information of the detected application program in the application program information of the management application when the upgrade version of any application program is detected; or,
when any application program is detected to be uninstalled, modifying the installation state of the detected application program into an uninstalled state in the application program information of the management application; or,
when it is detected that the installation file of any application program is modified, adding the modification state of the detected application program in the application program information of the management application.
Optionally, the preset file path associated with the installed application is used for storing one or more of a path of registry uninstall information of the installed application, an installation directory, an executable file, and a dynamic link library file.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An application detection method, the method comprising:
acquiring a preset file path associated with the installed application program;
monitoring the associated preset file path;
when monitoring that information in a preset file path of the application program changes, starting a management application installed in a terminal, and detecting the application program of the terminal according to an application program feature library of the management application, wherein the application program feature library specifies a path for detecting registry uninstalling information and an installation path for detecting each file of the application program for different application programs;
the acquiring a preset file path associated with the installed application program comprises:
detecting the installed application program according to a preset application program feature library, and recording a preset file path used when the installed application program is detected; or,
and traversing a first table entry and a second table entry in a registry, and acquiring a preset file path of the installed application program recorded in the first table entry and the second table entry.
2. The method according to claim 1, wherein when it is monitored that the information in the preset file path of the application program changes, a management application installed in a terminal is started, and the detecting the application program of the terminal according to the application program feature library of the management application comprises:
when the information in the preset file path of the application program is monitored to change, acquiring an application program identifier corresponding to the changed information;
and starting the management application installed in the terminal, and detecting the application program corresponding to the obtained application program identifier according to the application program feature library of the management application.
3. The method according to claim 2, wherein when it is monitored that the information in the preset file path of the application program changes, acquiring the application program identifier corresponding to the changed information comprises:
when the registry information in the preset file path of the application program is monitored to change, acquiring an application program identifier corresponding to the changed registry information; or,
when monitoring that the uninstalling information in the preset file path of the application program changes, acquiring an application program identifier corresponding to the changed uninstalling information; or,
and when detecting that the installation directory in the preset file path of the application program changes, acquiring the application program identifier corresponding to the changed installation directory.
4. The method of claim 1, wherein after detecting the application of the terminal according to the application feature library of the management application, the method further comprises:
updating the version information of the detected application program in the application program information of the management application when the upgrade version of any application program is detected; or,
when any application program is detected to be uninstalled, modifying the installation state of the detected application program into an uninstalled state in the application program information of the management application; or,
when it is detected that the installation file of any application program is modified, adding the modification state of the detected application program in the application program information of the management application.
5. The method of any one of claims 1-4, wherein the predetermined file path associated with the installed application is used to store one or more of a path of registry uninstall information, an installation directory, an executable file, and a dynamic link library file of the installed application.
6. An apparatus for application detection, the apparatus comprising:
the acquisition module is used for acquiring a preset file path associated with the installed application program;
the monitoring module is used for monitoring the associated preset file path;
the detection module is used for starting the installed management application of the terminal when monitoring that the information in the preset file path of the application program changes, and detecting the application program of the terminal according to an application program feature library of the management application, wherein the application program feature library specifies a path for detecting registry uninstalling information and an installation path for detecting each file of the application program for different application programs;
the acquisition module is used for detecting the installed application program according to a preset application program feature library and recording a preset file path used when the installed application program is detected; or, the obtaining module is configured to traverse a first entry and a second entry in a registry, and obtain a preset file path of the installed application recorded in the first entry and the second entry.
7. The apparatus of claim 6, wherein the detection module comprises:
the application identifier acquisition unit is used for acquiring an application identifier corresponding to changed information when monitoring that the information in a preset file path of the application program changes;
and the detection unit is used for starting the management application installed in the terminal and detecting the application program corresponding to the acquired application program identifier according to the application program feature library of the management application.
8. The apparatus according to claim 7, wherein the application identifier obtaining unit is configured to, when it is monitored that registry information in a preset file path of the application program changes, obtain an application identifier corresponding to the changed registry information; or,
the application identification obtaining unit is used for obtaining the application program identification corresponding to the changed uninstalling information when the uninstalling information in the preset file path of the application program is monitored to be changed; or,
the application identifier obtaining unit is used for obtaining the application identifier corresponding to the changed installation directory when detecting that the installation directory in the preset file path of the application program changes.
9. The apparatus of claim 6, further comprising:
an update module for updating version information of the detected application program in the application program information of the management application when an upgraded version of any application program is detected; or,
a modification module, configured to modify, when it is detected that any application is uninstalled, an installation state of the detected application to an uninstalled state in the application information of the management application; or,
and the adding module is used for adding the modification state of the detected application program in the application program information of the management application when the modification of the installation file of any application program is detected.
10. The apparatus of any of claims 6-9, wherein the predetermined file path associated with the installed application is used to store one or more of a path of registry uninstall information of the installed application, an installation directory, an executable file, and a dynamic link library file.
CN201310413195.8A 2013-09-11 2013-09-11 application program detection method and device Active CN103473163B (en)

Priority Applications (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

Applications Claiming Priority (1)

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

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 Active 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 (16)

* 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
CN108762821B (en) * 2017-04-18 2023-04-25 海马云(天津)信息技术有限公司 Device and method for running application of electronic equipment and electronic equipment
CN108363546A (en) * 2017-07-14 2018-08-03 北京安天网络安全技术有限公司 A kind of Linux platform rubbish cleaning trustship method and system
CN109597656A (en) * 2017-09-28 2019-04-09 北京国双科技有限公司 Application executing method and device
CN110413474A (en) * 2019-06-18 2019-11-05 深圳壹账通智能科技有限公司 Method for monitoring application program, device, electronic equipment and storage medium
CN112114649B (en) * 2020-09-07 2022-06-10 Tcl通讯(宁波)有限公司 Temperature adjusting method and device, storage medium and mobile terminal
CN115774578A (en) * 2021-09-07 2023-03-10 北京有竹居网络技术有限公司 Application processing method, device, electronic equipment, storage medium and program product
CN117421278A (en) * 2023-08-10 2024-01-19 福建中锐电子科技有限公司 A method, device and electronic device for detecting deleted application installation traces

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
CN103473163A (en) 2013-12-25
WO2015035835A1 (en) 2015-03-19

Similar Documents

Publication Publication Date Title
CN103473163B (en) application program detection method and device
US10853437B2 (en) Method and apparatus for invoking application programming interface
CN106502906B (en) A kind of method and apparatus of test application program
CN109857403B (en) Page updating method and device, page processing method and device
CN106775827B (en) Application program updating method and device and computer equipment
CN106775833B (en) Device driver loading method, terminal and system
CN107329901B (en) Data packet capturing method, terminal, server and storage medium
CN103455343A (en) Method and device for updating application programs
WO2015078342A1 (en) Method for acquiring memory information, and terminal
CN106502703B (en) Function calling method and device
CN108039963B (en) Container configuration method and device and storage medium
CN107967153B (en) Application management method and mobile terminal
CN109240902B (en) Method and device for acquiring firmware code of electronic equipment
CN106919458B (en) Method and device for Hook target kernel function
CN106713608B (en) Application function state modification method and device and terminal
CN109145598B (en) Virus detection method and device for script file, terminal and storage medium
CN106953898B (en) Method and device for acquiring software package
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN105278942B (en) Component management method and device
CN106709330B (en) Method and device for recording file execution behaviors
EP3129883B1 (en) Method and apparatus for repairing dynamic link library file
CN107122204B (en) Application unloading state detection method and device
CN107967203B (en) Function judgment method and device based on executable file
CN107918583B (en) Script dynamic debugging method, device and terminal
CN106528231B (en) A kind of method and apparatus starting application program

Legal Events

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