CN112559293B - Application package monitoring method and device - Google Patents

Application package monitoring method and device Download PDF

Info

Publication number
CN112559293B
CN112559293B CN202011526641.2A CN202011526641A CN112559293B CN 112559293 B CN112559293 B CN 112559293B CN 202011526641 A CN202011526641 A CN 202011526641A CN 112559293 B CN112559293 B CN 112559293B
Authority
CN
China
Prior art keywords
monitored
monitoring
application program
package
application
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
CN202011526641.2A
Other languages
Chinese (zh)
Other versions
CN112559293A (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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202011526641.2A priority Critical patent/CN112559293B/en
Publication of CN112559293A publication Critical patent/CN112559293A/en
Application granted granted Critical
Publication of CN112559293B publication Critical patent/CN112559293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing

Landscapes

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

Abstract

The application provides a monitoring method and a monitoring device for an application package, wherein the monitoring method for the application package comprises the following steps: receiving a monitoring instruction; determining and downloading at least one application program package to be monitored in a list of the application program packages to be monitored in response to the monitoring instruction; analyzing each application program package to be monitored to obtain application program package attribute source code information corresponding to each application program package to be monitored; monitoring and analyzing the application program package attribute source code information corresponding to each application program package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored; the monitoring information corresponding to each application program package to be monitored is collected, a monitoring information collecting result is generated, and by the application program package monitoring method, automatic monitoring of application program package information is achieved, manpower and material resources costs brought by simultaneous management of multiple application program packages are saved, convenience and rapidness are achieved, and working efficiency and accuracy are improved.

Description

Application package monitoring method and device
Technical Field
The application relates to the technical field of internet, in particular to a monitoring method of an application program package. The application also relates to a monitoring device of the application program package, a computing device and a computer readable storage medium.
Background
With the rapid development of the internet technology, the intelligent terminal is also rapidly developed, and accordingly, the software development for the intelligent terminal is more and more important.
In most of current software development for intelligent terminals, application packages matched with an operating system of the intelligent terminal are generally required to be developed, in the software development for the intelligent terminal, monitoring management is carried out on the application packages to be issued, the software development is also an important link, the monitoring management link for the application packages needs manual processing at present, relevant data of the application packages are obtained for monitoring and auditing, when a large number of application packages need to be issued in a short time, a large amount of manpower and material resources are needed for carrying out auditing in sequence, not only is the real-time performance of issuing of the application packages difficult to guarantee, but also monitoring management errors possibly caused by manual errors are caused, and the accuracy is difficult to guarantee.
Disclosure of Invention
In view of this, the present application provides a method for monitoring an application package. The application also relates to a monitoring device of the application program package, a computing device and a computer readable storage medium, so as to solve the problems of low efficiency, low accuracy and high cost caused by manual monitoring and auditing of the application program package in the prior art.
According to a first aspect of the embodiments of the present application, there is provided a method for monitoring an application package, including:
receiving a monitoring instruction;
determining and downloading at least one application program package to be monitored in a list of the application program packages to be monitored in response to the monitoring instruction;
analyzing each application program package to be monitored to obtain application program package attribute source code information corresponding to each application program package to be monitored;
monitoring and analyzing the application program package attribute source code information corresponding to each application program package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored;
and summarizing the monitoring information corresponding to each application program package to be monitored to generate a monitoring information summarizing result.
According to a second aspect of the embodiments of the present application, there is provided an application package monitoring apparatus, including:
a receiving module configured to receive a monitoring instruction;
the downloading module is configured to respond to the monitoring instruction, determine and download at least one application package to be monitored in the application package list to be monitored;
the analysis module is configured to analyze each application package to be monitored to obtain application package attribute source code information corresponding to each application package to be monitored;
the monitoring module is configured to monitor and analyze the application package attribute source code information corresponding to each application package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application package to be monitored;
and the summarizing module is configured to summarize the monitoring information corresponding to each application package to be monitored, and generate a monitoring information summarizing result.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the method for monitoring of application packages when executing the instructions.
According to a fourth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method for monitoring an application package.
The application program package monitoring method receives a monitoring instruction; determining and downloading at least one application program package to be monitored in a list of the application program packages to be monitored in response to the monitoring instruction; analyzing each application program package to be monitored to obtain application program package attribute source code information corresponding to each application program package to be monitored; monitoring and analyzing the application program package attribute source code information corresponding to each application program package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored; the monitoring method of the application program package can be used for pre-configuring the information of the application program package to be tracked in the list of the application program package to be monitored, the function of automatically monitoring the information of the application program package is realized, the labor and material cost brought by simultaneously managing a plurality of application program packages is saved, convenience and rapidness are realized, and the working efficiency and the accuracy of related workers are improved.
Drawings
Fig. 1 is a flowchart of a monitoring method for an application package according to an embodiment of the present application;
fig. 2 is a processing flow diagram of a monitoring method applied to an application package for monitoring an APK by an android platform according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a monitoring apparatus for an application package according to an embodiment of the present application;
fig. 4 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit and scope of this application, and thus this application is not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
Android: android, an open source code mobile operating system based on Linux kernel and other open source software.
APK: an Android application package (Android app package) is an app package file format used by an Android operating system for distributing and installing mobile applications and middleware. Codes of an Android application program are required to be operated on an Android device, and the codes must be compiled first and then packaged into a file which can be identified by an Android system to be operated, and the file format which can be identified and operated by the Android system is APK.
AAPT: an Android Asset Packaging Tool is a building Tool used to compile and package resources of an application. The AAPT will parse, index, and compile the resources into a binary format optimized for the Android platform.
JADX: (Dex to Java decompiler, dex File decompilation Java machine) is a decompilation tool. The tool provides a command line and a graphical interface, and is used for processing Android APK and Dex files and generating decompiled Java source codes.
The regular expression is as follows: (Regular Expression, often abbreviated regex, regexp or RE), also known as Regular Expression, regular representation, is a concept of computer science. Regular expressions use a single string to describe, match a series of strings that match a certain syntactic rule. In many text editors, regular expressions are commonly used to retrieve, replace, etc. text that matches a certain pattern.
The present application also relates to an application package monitoring apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 shows a flowchart of a monitoring method for an application package according to an embodiment of the present application, which specifically includes the following steps:
step 102: and receiving a monitoring instruction.
The monitoring instruction is specifically an instruction for monitoring the application package, and in the monitoring method for the application package provided by the application, the monitoring operation on the application package is executed by the monitoring instruction.
Optionally, receiving a monitoring instruction includes:
receiving a monitoring instruction triggered by a preset timing task; or
And receiving a monitoring instruction triggered by the calling of the third-party application program.
In practical application, there are various triggering modes of the monitoring instruction, and the monitoring instruction can be triggered according to a preset timing task, for example, the monitoring instruction is completed through a timing task tool of an operating system or a task scheduling system of a third party, so that an application package can be monitored regularly, and the working efficiency is improved; or, when a third-party application program calls an application program package, a monitoring instruction may be triggered, for example, an external system calls a specific API interface to trigger the monitoring instruction, so that in the present application, the triggering condition of the monitoring instruction is not limited, and the setting in actual application is used as the standard.
In one embodiment provided herein, a monitoring instruction triggered by a timed task tool of an operating system is received.
Step 104: and determining and downloading at least one application program package to be monitored in the application program package list to be monitored in response to the monitoring instruction.
The application program package list to be monitored is a pre-configured custom data structure, the information of each application program package to be monitored is included in the application program list to be monitored, and when a monitoring instruction is received, the application program package list to be monitored is traversed, and each application program package to be monitored in the application program package list to be monitored is downloaded.
In a specific embodiment provided by the present application, taking an example that the to-be-monitored application package list includes 2 to-be-monitored application packages, in response to the monitoring instruction, determining 2 to-be-monitored application packages from the to-be-monitored application package list, and downloading the 2 to-be-monitored application packages.
Specifically, the application package list to be monitored comprises a name and a download address of an application package to be monitored corresponding to at least one application package to be monitored;
responding to the monitoring instruction, determining and downloading at least one application program package to be monitored in the application program package list to be monitored, wherein the method comprises the following steps:
reading an application program package list to be monitored in response to the monitoring instruction;
determining a name and a download address of the application program package to be monitored corresponding to the at least one application program package to be monitored in the application program list;
and downloading at least one application program package to be monitored according to the name of the application program package to be monitored and the downloading address.
In practical application, a user-defined data structure configured in advance is used for an application package list to be monitored, a plurality of application program names and corresponding downloading address information are configured in the application package list to be monitored, specifically, the application package name to be monitored, the downloading address of the application package to be monitored and the description information of the application package to be monitored, and the application package list to be monitored is used for determining which application packages need to be monitored.
In response to a monitoring instruction, firstly, the application program package list to be monitored is read in a traversing manner, the name of the application program package to be monitored in the application program package list to be monitored and the corresponding download address are obtained, and the application program package to be monitored is downloaded according to the download address.
In a specific embodiment provided by the present application, the above example is still taken as an example that the to-be-monitored application package list includes 2 to-be-monitored application packages, where the 1 st to-be-monitored application package is named "APP1", and a corresponding download address thereof is "url-APP1"; the 2 nd application package to be monitored is named as "APP2", and the corresponding download address is "url-APP2". And downloading the APP1 according to the download address 'url-APP 1', and downloading the APP2 according to the download address 'url-APP 2'.
Step 106: and analyzing each application program package to be monitored to obtain the attribute source code information of the application program package corresponding to each application program package to be monitored.
After each application package to be monitored is obtained, the application package to be monitored is analyzed, and application package attribute source code information corresponding to each application package to be monitored is obtained, wherein the application package attribute source code information specifically includes two types of information, one of which is the attribute information of the application package, such as packaging information of the application package, installation package information, which permissions (such as telephone permission, camera permission, photo permission and the like) of the application package apply to an operating system, which version is deployed and the like. The second is the source code information for the application package, where the source code information is based on the deeper one-level parsing of the application package, for example, what SDK version the application package is developed based on, specific code information, and the like.
Optionally, analyzing each application package to be monitored to obtain the attribute source code information of the application package corresponding to each application package to be monitored, including:
determining a target application program package to be monitored;
analyzing the target application program package to be monitored to obtain application program package attribute information and an application program package file corresponding to the target application program package to be monitored;
decompiling the application program package file to obtain application program package source code information corresponding to the target application program package to be monitored;
and forming the attribute source code information of the application program package corresponding to the target application program package to be monitored according to the attribute information of the application program package and the source code information of the application program package.
Specifically, each application package to be monitored is analyzed respectively, the analysis may be performed sequentially, or a plurality of application packages to be monitored are analyzed simultaneously, and in the present application, the order of analyzing the application packages to be monitored is not limited. The method for analyzing a certain application package to be monitored is as follows.
Firstly, determining a target application program package to be monitored, wherein the target application program package to be monitored is an analyzed application program package to be monitored, analyzing and unpacking the target application program package to be monitored, so that application program package attribute information and application program package files corresponding to the target application program package to be monitored can be obtained, and the application program package attribute information is packaging information, installation package information, authority information and the like of the application program package; and the application program package file and the installation file corresponding to the target application program package to be monitored are actually installed in the terminal in actual application. The parsing and unpacking of the target application package to be monitored can be realized by an AAPT (Android Asset Packaging Tool), and the AAPT is used for compiling, packing, parsing and unpacking of the application.
After the application package file is obtained, the application package file may be decompiled to obtain the source code information of the application package corresponding to the target application package, and specifically, the application package may be decompiled through JADX (Dex to Java decompiler, dex file decompiler) to generate the source code information of the application package.
After the attribute information of the application program package and the source code information of the application program package are obtained, the attribute source code information of the application program package corresponding to the target application program package to be monitored can be formed according to the attribute information of the application program package and the source code information of the application program package.
In a specific embodiment provided by the present application, along with the above example, taking APP package APP1 as an example, after downloading the APP package of APP1, first parsing the APP package to obtain APP1 attribute information and APP1 file corresponding to APP1, then performing decompiling processing on the APP1 file to obtain APP1 source code information corresponding to APP1, and generating APP1 attribute source code information corresponding to APP1 according to the APP1 attribute information and the APP1 source code information.
Step 108: and monitoring and analyzing the attribute source code information of the application program package corresponding to each application program package to be monitored according to a preset monitoring rule to obtain the monitoring information corresponding to each application program package to be monitored.
The preset monitoring rule is a rule that in practical application, the attribute source code information of the application program package corresponding to the application program package to be monitored needs to be monitored and analyzed, for example, if the source code information of the application program package needs to be analyzed to the SDK version number information, the SDK source code information is located according to an appointed code through a regular expression, and the SDK version number information corresponding to the current application program package is obtained from the SDK source code information.
Monitoring and analyzing each application program package to be monitored through a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored, wherein the monitoring information comprises a plurality of information, such as notification of a downstream updating channel, the name of the updating channel, specific configuration of the updating channel, a report generation event, a specific result of the report, the name of the application program package to be monitored, a third-party SDK version of the application program package to be monitored, authority required by the application program package to be monitored and the like.
Optionally, the monitoring and analyzing the application package attribute source code information corresponding to each application package to be monitored according to a preset monitoring rule, to obtain the monitoring information corresponding to each application package to be monitored, includes:
monitoring and analyzing the application program package attribute information corresponding to the target application program package to be monitored according to a preset monitoring rule, and generating first monitoring information corresponding to the target application program package to be monitored;
monitoring and analyzing the source code information of the application program package corresponding to the target application program package to be monitored according to a preset monitoring rule, and generating second monitoring information corresponding to the target application program package to be monitored;
and acquiring the monitoring information corresponding to the target application program to be monitored according to the first monitoring information and the second monitoring information.
In practical application, the application package attribute source code information includes application package attribute information and application package source code information, and the application package attribute information and the application package source code information are respectively monitored and analyzed according to preset monitoring rules to generate first monitoring information corresponding to the application package attribute information and second monitoring information corresponding to the application package source code information.
Step 110: and summarizing the monitoring information corresponding to each application program package to be monitored to generate a monitoring information summarizing result.
And summarizing the monitoring information corresponding to each application program package to be monitored to generate a final monitoring information summarizing result, wherein the monitoring information summarizing result is the summarization of the monitoring information of each application program package to be monitored in the application program package list to be monitored.
Optionally, after generating the monitoring information summarizing result, the method further includes:
generating a monitoring information summary message according to the monitoring information summary result in a preset message format;
and displaying the monitoring information summary message.
In practical application, after the monitoring information summarizing result is generated, a report and various notifications need to be output, and the monitoring information summarizing message is generated according to the preset message format, so that the format of the summarizing result message can be standardized, subsequent analysis processing is facilitated, and integration to each downstream display platform for display is facilitated.
The message format provided by the application includes, but is not limited to, notification of a downstream update channel, a name of the update channel, a specific configuration of the update channel, a report generation event, a specific result of the report, a name of a monitoring application package, a hash value of a monitoring application package file, a third party SDK version used inside the monitoring application package, a version number of a terminal operating system when the monitoring application package is released, a package version number of the monitoring application package file, a right to be applied by the monitoring application package, and the like.
Specifically, displaying the monitoring information summary message includes:
determining a target display platform;
determining a target visual display mode according to the target display platform;
and displaying the monitoring information summary message on the target display platform according to the target visual display mode.
In practical application, after the monitoring summary message is obtained, the monitoring summary message needs to be displayed and notified, a plurality of platforms for displaying and notifying are provided, such as a report website, an enterprise instant messaging tool and the like, different display platforms need to have different display modes, a target display platform needs to be determined firstly, a target visual display mode corresponding to the target display platform is determined according to the target display platform, and finally, the monitoring information summary message is displayed on the target display platform through the target visual display mode, so that visual monitoring of an application program package to be monitored is realized.
The application program package monitoring method receives a monitoring instruction; determining and downloading at least one application program package to be monitored in a list of the application program packages to be monitored in response to the monitoring instruction; analyzing each application program package to be monitored to obtain application program package attribute source code information corresponding to each application program package to be monitored; monitoring and analyzing the application program package attribute source code information corresponding to each application program package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored; the monitoring method of the application program package can pre-configure the application program package information to be tracked in the application program package list to be monitored, the function of automatically monitoring the application program package information is achieved, the labor and material cost brought by simultaneously managing a plurality of application program packages is saved, convenience and rapidness are achieved, and the working efficiency and the accuracy of related workers are improved.
In the following, with reference to fig. 2, the application of the monitoring method for the application package in the application package to APK monitoring on an android platform is taken as an example, and the monitoring method for the application package is further described. Fig. 2 shows a processing flow chart of the method for monitoring an application package applied to an android platform for APK monitoring provided in an embodiment of the present application, which specifically includes the following steps:
step 202: and receiving a monitoring instruction.
In an embodiment provided by the present application, a monitoring instruction triggered by a timed task is received.
Step 204: and reading an APK list to be monitored in response to the monitoring instruction.
In the embodiment provided by the application, in response to the monitoring instruction, a preconfigured APK list to be monitored is read.
Step 206: and determining the name and the download address of the APK to be monitored corresponding to the at least one APK to be monitored in the APK list to be monitored.
In the embodiment provided by the application, there are three to-be-monitored APKs in the to-be-monitored APK list, which are respectively "download addresses url-APP1 corresponding to APP1", "download addresses url-APP2 corresponding to APP2 and APP2", and "download addresses url-APP3 corresponding to APP3 and APP3".
Step 208: and downloading at least one APK to be monitored according to the name of the APK to be monitored and the download address.
In the embodiment provided by the application, the APK1 corresponding to the APP1 is downloaded according to the download address url-APP1, the APK2 corresponding to the APP2 is downloaded according to the download address url-APP2, and the APK3 corresponding to the APP3 is downloaded according to the download address url-APP 3.
Step 210: and analyzing the APK to be monitored to obtain the APK attribute information and the APK file corresponding to the APK to be monitored.
In the embodiment provided by the application, the APK1, the APK2 and the APK3 are respectively analyzed to obtain the APK1 attribute information and the APK1 file corresponding to the APK1, the APK2 attribute information and the APK2 file corresponding to the APK2, and the APK3 attribute information and the APK3 file corresponding to the APK3.
Step 212: and decompiling the APK file to obtain APK source code information corresponding to the APK to be monitored.
In the embodiment provided by the application, the APK1 file, the APK2 file and the APK3 file are decompiled respectively to obtain APK1 source code information corresponding to APK1, APK2 source code information corresponding to APK2 and APK3 source code information corresponding to APK3.
Step 214: and monitoring and analyzing the APK attribute information corresponding to the APK to be monitored according to a preset monitoring rule, and generating first monitoring information corresponding to the APK to be monitored.
In the embodiment provided by the application, the APK1 attribute information, the APK2 attribute information and the APK3 attribute information are respectively monitored and analyzed according to a preset monitoring rule, so as to generate the first monitoring information corresponding to the APK1, the first monitoring information corresponding to the APK2 and the first monitoring information corresponding to the APK3.
Step 216: and monitoring and analyzing the APK source code information corresponding to the APK to be monitored according to a preset monitoring rule, and generating second monitoring information corresponding to the APK to be monitored.
In the embodiment provided by the application, the APK1 source code information, the APK2 source code information, and the APK3 source code information are respectively monitored and analyzed according to preset monitoring rules, so as to generate the second monitoring information corresponding to the APK1, the second monitoring information corresponding to the APK2, and the second monitoring information corresponding to the APK3.
Step 218: and summarizing the first monitoring information and the second monitoring information corresponding to each APK to be monitored to generate a monitoring information summarizing result.
In the embodiment provided by the application, the first monitoring information and the second monitoring information corresponding to the APK1, the first monitoring information and the second monitoring information corresponding to the APK2, and the first monitoring information and the second monitoring information corresponding to the APK3 are summarized to generate a final monitoring information summarizing result.
Step 220: and generating a monitoring information summary message according to the monitoring information summary result and a preset message format.
In the embodiment provided by the application, the final monitoring information summarizing result is generated into a monitoring information summarizing message according to a preset message format.
Step 222: determining a target display platform and a target visual display mode corresponding to the target display platform.
In the embodiment provided by the application, the target display platform is determined to be a report website, and the visual display mode of the report website is a visual list.
Step 224: and displaying the monitoring information summary message on the target display platform according to the target visualization display mode.
In the embodiment provided by the application, the monitoring information corresponding to the APK1, the APK2 and the APK3 is displayed in a form of a visual list in the report website.
The application program package monitoring method receives a monitoring instruction; determining and downloading at least one application program package to be monitored in a list of the application program packages to be monitored in response to the monitoring instruction; analyzing each application program package to be monitored to obtain application program package attribute source code information corresponding to each application program package to be monitored; monitoring and analyzing the application program package attribute source code information corresponding to each application program package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored; the monitoring method of the application program package can pre-configure the application program package information to be tracked in the application program package list to be monitored, the function of automatically monitoring the application program package information is achieved, the labor and material cost brought by simultaneously managing a plurality of application program packages is saved, convenience and rapidness are achieved, and the working efficiency and the accuracy of related workers are improved.
Corresponding to the above method embodiment, the present application further provides an embodiment of a monitoring device for an application package, and fig. 3 illustrates a schematic structural diagram of the monitoring device for an application package provided in an embodiment of the present application. As shown in fig. 3, the apparatus includes:
a receiving module 302 configured to receive a monitoring instruction;
a downloading module 304 configured to determine and download at least one application package to be monitored in the application package list to be monitored in response to the monitoring instruction;
the analysis module 306 is configured to analyze each application package to be monitored, and obtain application package attribute source code information corresponding to each application package to be monitored;
the monitoring module 308 is configured to perform monitoring analysis on the application package attribute source code information corresponding to each application package to be monitored according to a preset monitoring rule, so as to obtain monitoring information corresponding to each application package to be monitored;
and the summarizing module 310 is configured to summarize the monitoring information corresponding to each application package to be monitored, and generate a monitoring information summarizing result.
Optionally, the list of the application packages to be monitored includes a name and a download address of the application package to be monitored corresponding to at least one application package to be monitored;
the download module 304, further configured to:
reading an application program package list to be monitored in response to the monitoring instruction;
determining the name and the download address of the application program package to be monitored corresponding to the at least one application program package to be monitored in the application program list;
and downloading at least one application program package to be monitored according to the name of the application program package to be monitored and the downloading address.
Optionally, the parsing module 306 is further configured to:
determining a target application program package to be monitored;
analyzing the target application program package to be monitored to obtain application program package attribute information and an application program package file corresponding to the target application program package to be monitored;
decompiling the application program package file to obtain application program package source code information corresponding to the target application program package to be monitored;
and forming the application program package attribute source code information corresponding to the target application program package to be monitored according to the application program package attribute information and the application program package source code information.
Optionally, the monitoring module 308 is further configured to:
monitoring and analyzing the application program package attribute information corresponding to the target application program package to be monitored according to a preset monitoring rule, and generating first monitoring information corresponding to the target application program package to be monitored;
monitoring and analyzing the source code information of the application program package corresponding to the target application program package to be monitored according to a preset monitoring rule, and generating second monitoring information corresponding to the target application program package to be monitored;
and acquiring monitoring information corresponding to the target application program to be monitored according to the first monitoring information and the second monitoring information.
Optionally, the apparatus further comprises:
the generating module is configured to generate a monitoring information summarizing message according to a preset message format from the monitoring information summarizing result;
and the display module is configured to display the monitoring information summary message.
Optionally, the display module is further configured to:
determining a target display platform;
determining a target visual display mode according to the target display platform;
and displaying the monitoring information summary message on the target display platform according to the target visualization display mode.
Optionally, the receiving module 302 is further configured to:
receiving a monitoring instruction triggered by a preset timing task; or
And receiving a monitoring instruction triggered by the calling of the third-party application program.
The monitoring device of the application program package receives a monitoring instruction; determining and downloading at least one application program package to be monitored in a list of the application program packages to be monitored in response to the monitoring instruction; analyzing each application program package to be monitored to obtain application program package attribute source code information corresponding to each application program package to be monitored; monitoring and analyzing the application program package attribute source code information corresponding to each application program package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored; the monitoring device for the application program packages can be used for pre-configuring the information of the application program packages to be tracked in the list of the application program packages to be monitored, the function of automatically monitoring the information of the application program packages is realized, the labor and material cost for simultaneously managing a plurality of application program packages is saved, convenience and rapidness are realized, and the working efficiency and the accuracy of related workers are improved.
The foregoing is a schematic scheme of a monitoring apparatus for an application package according to this embodiment. It should be noted that the technical solution of the monitoring apparatus of the application package and the technical solution of the monitoring method of the application package belong to the same concept, and details that are not described in detail in the technical solution of the monitoring apparatus of the application package can be referred to the description of the technical solution of the monitoring method of the application package.
Fig. 4 shows a block diagram of a computing device 400 provided according to an embodiment of the present application. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. Processor 420 is coupled to memory 410 via bus 430 and database 450 is used to store data.
Computing device 400 also includes access device 440, access device 440 enabling computing device 400 to communicate via one or more networks 460. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 440 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-mentioned components of the computing device 400 and other components not shown in fig. 4 may also be connected to each other, for example, via a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 4 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 400 may also be a mobile or stationary server.
Wherein, the processor 420 implements the steps of the monitoring method of the application package when executing the instructions.
The foregoing is a schematic diagram of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the monitoring method of the application package belong to the same concept, and for details that are not described in detail in the technical solution of the computing device, reference may be made to the description of the technical solution of the monitoring method of the application package.
An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, when executed by a processor, for implementing the steps of the method for monitoring an application package as described above.
The above is an illustrative scheme of a computer-readable storage medium of the embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the monitoring method of the application package described above belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the monitoring method of the application package described above.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in source code form, object code form, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (10)

1. A method for monitoring an application package, comprising:
receiving a monitoring instruction;
determining and downloading at least one application program package to be monitored in a list of the application program packages to be monitored in response to the monitoring instruction;
analyzing each application program package to be monitored to obtain application program package attribute source code information corresponding to each application program package to be monitored, wherein the application program package attribute source code information at least comprises authority information applied to an operating system by the application program to be monitored;
monitoring and analyzing the application program package attribute source code information corresponding to each application program package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored;
and summarizing the monitoring information corresponding to each application program package to be monitored to generate a monitoring information summarizing result.
2. The method for monitoring application packages according to claim 1, wherein the list of application packages to be monitored comprises a name and a download address of the application package to be monitored corresponding to at least one application package to be monitored;
determining and downloading at least one application package to be monitored in the application package list to be monitored in response to the monitoring instruction, including:
reading an application program package list to be monitored in response to the monitoring instruction;
determining a name and a download address of the application program package to be monitored corresponding to the at least one application program package to be monitored in the application program list;
and downloading at least one application program package to be monitored according to the name of the application program package to be monitored and the downloading address.
3. The method for monitoring application packages according to claim 1, wherein analyzing each application package to be monitored to obtain the attribute source code information of the application package corresponding to each application package to be monitored, comprises:
determining a target application program package to be monitored;
analyzing the target application program package to be monitored to obtain application program package attribute information and an application program package file corresponding to the target application program package to be monitored;
decompiling the application program package file to obtain application program package source code information corresponding to the target application program package to be monitored;
and forming the attribute source code information of the application program package corresponding to the target application program package to be monitored according to the attribute information of the application program package and the source code information of the application program package.
4. The method for monitoring application packages according to claim 3, wherein the step of performing monitoring analysis on the attribute source code information of the application package corresponding to each application package to be monitored according to a preset monitoring rule to obtain the monitoring information corresponding to each application package to be monitored comprises:
monitoring and analyzing the application program package attribute information corresponding to the target application program package to be monitored according to a preset monitoring rule, and generating first monitoring information corresponding to the target application program package to be monitored;
monitoring and analyzing the source code information of the application program package corresponding to the target application program package to be monitored according to a preset monitoring rule, and generating second monitoring information corresponding to the target application program package to be monitored;
and acquiring monitoring information corresponding to the target application program to be monitored according to the first monitoring information and the second monitoring information.
5. The method for monitoring an application package according to any one of claims 1 to 4, wherein after generating the monitoring information summary result, the method further comprises:
generating a monitoring information summarizing message according to the monitoring information summarizing result in a preset message format;
and displaying the monitoring information summary message.
6. The method for monitoring an application package according to claim 5, wherein displaying the monitoring information summary message comprises:
determining a target display platform;
determining a target visualization display mode according to the target display platform;
and displaying the monitoring information summary message on the target display platform according to the target visual display mode.
7. The method for monitoring an application package according to any one of claims 1 to 4, wherein receiving a monitoring instruction comprises:
receiving a monitoring instruction triggered by a preset timing task; or
And receiving a monitoring instruction triggered by the calling of the third-party application program.
8. An apparatus for monitoring an application package, comprising:
a receiving module configured to receive a monitoring instruction;
the downloading module is configured to respond to the monitoring instruction to determine and download at least one application package to be monitored in the application package list to be monitored;
the analysis module is configured to analyze each application package to be monitored to obtain application package attribute source code information corresponding to each application package to be monitored, wherein the application package attribute source code information at least comprises authority information applied by the application to be monitored to an operating system;
the monitoring module is configured to monitor and analyze the application program package attribute source code information corresponding to each application program package to be monitored according to a preset monitoring rule to obtain monitoring information corresponding to each application program package to be monitored;
and the summarizing module is configured to summarize the monitoring information corresponding to each application package to be monitored, and generate a monitoring information summarizing result.
9. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-7 when executing the instructions.
10. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 7.
CN202011526641.2A 2020-12-22 2020-12-22 Application package monitoring method and device Active CN112559293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011526641.2A CN112559293B (en) 2020-12-22 2020-12-22 Application package monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011526641.2A CN112559293B (en) 2020-12-22 2020-12-22 Application package monitoring method and device

Publications (2)

Publication Number Publication Date
CN112559293A CN112559293A (en) 2021-03-26
CN112559293B true CN112559293B (en) 2023-03-07

Family

ID=75030733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011526641.2A Active CN112559293B (en) 2020-12-22 2020-12-22 Application package monitoring method and device

Country Status (1)

Country Link
CN (1) CN112559293B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113449310A (en) * 2021-06-29 2021-09-28 中国民航信息网络股份有限公司 Application program vulnerability detection method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897609A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 The method and device that a kind of application program to dynamic load is monitored
CN109542715A (en) * 2018-10-15 2019-03-29 北京达佳互联信息技术有限公司 The method, apparatus and terminal device of acquisition applications program feature data
CN111563015A (en) * 2020-04-15 2020-08-21 成都欧珀通信科技有限公司 Data monitoring method and device, computer readable medium and terminal equipment
CN112068932A (en) * 2020-09-01 2020-12-11 北京指掌易科技有限公司 Application program integration and monitoring method, device, system, equipment and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104200159B (en) * 2014-09-05 2017-07-28 北京奇虎科技有限公司 Configure the method and device of the authority of application program
CN104683473A (en) * 2015-03-13 2015-06-03 百度在线网络技术(北京)有限公司 Service quality monitoring method, server side, client and system
CN105590051B (en) * 2015-11-18 2018-10-23 中国银联股份有限公司 Trusted application for credible performing environment generates and installation method
CN105389263B (en) * 2015-12-24 2017-12-19 北京奇虎科技有限公司 Application software authority monitoring method, system and equipment
CN105893211A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Method and system for monitoring
CN111880987A (en) * 2020-07-09 2020-11-03 青岛海尔科技有限公司 Dynamic monitoring method and device of application program, storage medium and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897609A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 The method and device that a kind of application program to dynamic load is monitored
CN109542715A (en) * 2018-10-15 2019-03-29 北京达佳互联信息技术有限公司 The method, apparatus and terminal device of acquisition applications program feature data
CN111563015A (en) * 2020-04-15 2020-08-21 成都欧珀通信科技有限公司 Data monitoring method and device, computer readable medium and terminal equipment
CN112068932A (en) * 2020-09-01 2020-12-11 北京指掌易科技有限公司 Application program integration and monitoring method, device, system, equipment and medium

Also Published As

Publication number Publication date
CN112559293A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US11667033B2 (en) Systems and methods for robotic process automation
WO2020015562A1 (en) Routing jump method and apparatus
CN104484599A (en) Behavior processing method and device based on application program
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN113885870B (en) Application program updating method, electronic equipment, terminal equipment and system
CN105095367B (en) A kind of acquisition method and device of client data
CN111324343B (en) Code generation method and device
CN104536398B (en) Frequency converter monitoring method and system
CN112559293B (en) Application package monitoring method and device
CN113268245A (en) Code analysis method, device and storage medium
CN110716786B (en) Page display method, system and storage medium
CN111381899A (en) Method and apparatus for developing target system
CN112231697A (en) Third-party SDK behavior detection method, device, medium and electronic equipment
CN109901934B (en) Method and device for generating interface help document
CN115951916A (en) Component processing method and device, electronic equipment and storage medium
CN114117434A (en) Detection method and device
CN114764335A (en) Method, device, terminal and storage medium for generating mirror image
CN111026466A (en) File processing method and device, computer readable storage medium and electronic equipment
CN114912048B (en) Page delivery method and device, storage medium and electronic equipment
CN116974653B (en) Class loading method and system
CN113467888B (en) Cross-chain calling method and device of intelligent contract, electronic equipment and storage medium
CN112860309B (en) Static library calling method, device, equipment and storage medium based on iOS
CN115525294A (en) Service package generation method and device
CN117873480A (en) Directional compiling method, device, equipment and medium
CN114968292A (en) Program processing method, device and equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant