Disclosure of Invention
In view of this, the invention provides an analysis method and system for an application installation package of an application server and the application server, and solves the technical problem that the user experience of the application server is affected due to lower convenience, operability and working efficiency of the analysis of the application installation package of the existing application server.
According to an embodiment of the present invention, there is provided an analysis method for an application installation package of an application server, including: when the database of the application server is adding the application, adding an unanalyzed label of an application installation package to the application; accessing a database through an application programming interface every preset detection time to detect an application corresponding to the unanalyzed label of the application installation package; acquiring an installation package address of an application corresponding to the unanalyzed label of the detected application installation package; analyzing the installation package data of the installation package of the obtained installation package address; modifying the application data of the application in the database according to the analyzed installation package data; and modifying the application installation package non-analyzed label of the application into an application installation package analyzed label.
Preferably, the analyzing the obtained installation package data of the installation package address includes: analyzing the installation package of the obtained installation package address through an APPT command to obtain an application name, a package name, a version number and authority data of the application installation package; and decompressing the installation package of the obtained installation package address to obtain MF data and SF data of the application installation package.
Preferably, the MF data is md5 value of directory/META-INF/manifoest.mf file in the installation package decompression folder, and the SF data is md5 value of directory/META-INF/SF file in the installation package decompression folder.
Preferably, after the modifying the unanalyzed label of the application installation package of the application into the analyzed label of the application installation package, the method further comprises: and prompting the application data of the analyzed application installation package.
Preferably, after analyzing the obtained installation package data of the installation package address, the method further includes: detecting whether the installation package data of the installation package address obtained by analyzing is successful; and when detecting that the data of the installation package of the address of the installation package obtained by analyzing fails, returning to detect the application corresponding to the unanalyzed label of the application installation package by accessing the database through the application programming interface at preset detection time intervals.
According to another embodiment of the present invention, there is provided an analysis system of an application installation package of an application server, including: the label adding module is used for adding an unanalyzed label to the application when the database of the application server is adding the application; the application detection module is used for accessing the database through an application programming interface at intervals of preset detection time to detect the application corresponding to the unanalyzed label of the application installation package added by the label adding module; the installation package address acquisition module is used for acquiring the installation package address of the application corresponding to the unanalyzed label of the application installation package detected by the application detection module; the installation package analysis module is used for analyzing the installation package data of the installation package address acquired by the installation package address acquisition module; the application data modification module is used for modifying application data of the application in a database according to the installation package data analyzed by the installation package analysis module; and the label modification module is used for modifying the label which is not analyzed and added by the label adding module into the label which is analyzed and added by the application installation package.
Preferably, the installation package parsing module includes: the analysis unit is used for analyzing the installation package of the installation package address acquired by the installation package address acquisition module through an APPT command so as to acquire the application name, package name, version number and authority data of the application installation package; and the decompression unit is used for decompressing the installation package of the installation package address acquired by the installation package address acquisition module so as to acquire MF data and SF data of the application installation package.
Preferably, the MF data is md5 value of directory/META-INF/manifoest.mf file in the installation package decompression folder, and the SF data is md5 value of directory/META-INF/SF file in the installation package decompression folder.
Preferably, the analysis system for the application installation package of the application server further includes a prompt module, configured to prompt the application data of the application installation package analyzed by the installation package analysis module.
According to another embodiment of the invention, an application server is provided, which comprises the analysis system of the application installation package of the application server.
The invention provides an analysis method, a system and an application server of an application installation package of an application server, when the application is added to a database of the application server, an unanalyzed label of the application installation package is added to the application, the database is accessed through an application programming interface at intervals of preset detection time to detect the application corresponding to the unanalyzed label of the application installation package, an installation package address of the application corresponding to the unanalyzed label of the detected application installation package is obtained, the installation package data of the installation package of the obtained installation package address is analyzed, the application data of the application is modified in the database according to the analyzed installation package data, the unanalyzed label of the application installation package of the application is modified into the analyzed label of the application installation package, the unanalyzed application installation package is rapidly detected through the label, the installation package data is analyzed and obtained and the application data is updated in the database, thereby conveniently realizing the rapid analysis of the application installation package of the application server, the convenience, operability and working efficiency of the application installation package analysis of the application server are improved, and the application management efficiency and user experience of the application server are improved.
Detailed Description
The technical solution of the present invention will be further described in more detail with reference to the accompanying drawings and the detailed description. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. To those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in conjunction with specific situations. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
Fig. 1 is a flowchart illustrating an analysis method of an application installation package of an application server according to an embodiment of the present invention. As shown in the figure, the method for analyzing the application installation package of the application server includes:
step S101: when the database of the application server is adding the application, the application installation package is added to the application and the label is not analyzed.
In this embodiment, the application server is configured to store and manage the application installation package and the application data in a unified manner, and provide application query, update, and download services. When the application is added to the database of the application server, the unanalyzed label of the application installation package is added to the application, so that the newly added unanalyzed application is distinguished from other application installation packages in the application server through the label, the newly added unanalyzed application is convenient to query and call quickly through the label, and the convenience and the working efficiency of analysis of the application installation package are improved.
Step S102: and accessing the database through the application programming interface every preset detection time to detect the application corresponding to the unanalyzed label of the application installation package.
In the application server, the database is accessed through an Application Programming Interface (API) every preset detection time to detect the application corresponding to the unanalyzed label of the application installation package, the unanalyzed application installation package is rapidly obtained through detecting the label at regular time, the unanalyzed application is conveniently and rapidly called, and the analysis flow of the application installation package is started.
Step S103: and acquiring the installation package address of the application corresponding to the unanalyzed label of the detected application installation package.
When the application installation package corresponding to the unanalyzed label is detected, the installation package address of the application corresponding to the unanalyzed label of the detected application installation package is obtained, and the application installation package is conveniently and accurately called according to the path address stored in the installation package.
Step S104: and analyzing the installation package data of the installation package of the obtained installation package address.
After the installation package address is obtained, the application installation package is called quickly and accurately according to the path address stored in the installation package, and the installation package data of the installation package of the obtained installation package address is analyzed. Specifically, referring to fig. 2, the analyzing the installation package data of the installation package includes:
step S201: and analyzing the obtained installation package of the installation package address through an APPT command so as to obtain the application name, package name, version number and authority data of the application installation package.
Step S202: and decompressing the installation package of the acquired installation package address to acquire MF data and SF data of the application installation package.
In this embodiment, the obtained installation package of the installation package address is analyzed through the APPT command to obtain the application name, the package name, the version number, and the permission data of the application installation package, and then the obtained installation package of the installation package address is decompressed to obtain the MF data and the SF data of the application installation package. The MF data is the md5 value of a directory/META-INF/MANIFEST. MF file in the installation package decompression folder, and the SF data is the md5 value of the directory/META-INF/SF file in the installation package decompression folder.
Step S105: and modifying the application data of the application in the database according to the analyzed installation package data.
After the installation package data is analyzed, the application data of the application is modified in the database according to the analyzed installation package data, namely, the application name, package name, version number and authority data, MF data and SF data of the application installation package are supplemented or updated, so that the database of the application server stores the complete application data of all the applications, and the application server is convenient to perform unified management and provide query and download servers.
In some embodiments of the invention, after the installation package data is analyzed, the application data of the application installation package is further analyzed through popup information or voice prompt, so that an administrator can conveniently and accurately master the installation package data of the newly added application in time, and the operability, convenience and management efficiency of the application server are improved.
Step S106: and modifying the application installation package analyzed label of the application into an application installation package analyzed label.
After the application installation package data is analyzed and the application installation package analysis is completed, the unanalyzed label of the application installation package of the application is modified into the analyzed label of the application installation package, and the analyzed application installation package is distinguished from the unanalyzed application installation package through the label, so that the analyzed application installation package is prevented from being analyzed again, and the operability and the working efficiency of the application installation package analysis are improved.
In the analysis method for the application installation package of the server in the embodiment, when an application is added to a database of an application server, an unanalyzed label of the application installation package is added to the application, the database is accessed through an application programming interface every preset detection time to detect the application corresponding to the unanalyzed label of the application installation package, an installation package address of the application corresponding to the unanalyzed label of the detected application installation package is obtained, installation package data of the installation package of the obtained installation package address is analyzed, the application data of the application is modified in the database according to the analyzed installation package data, the unanalyzed label of the application installation package is modified into an analyzed label of the application installation package, the unanalyzed application installation package is quickly detected through the label, the installation package data is analyzed and obtained, the application data is quickly updated in the database, and the quick analysis of the application installation package of the application server is conveniently realized, the convenience, operability and working efficiency of the application installation package analysis of the application server are improved, and the application management efficiency and user experience of the application server are improved.
In an analysis method of an application installation package of an application server according to another embodiment of the present invention, in the step S104: after analyzing the installation package data of the installation package of the obtained installation package address, further detecting whether the installation package data of the installation package address obtained by analyzing is successful, and when detecting that the installation package data of the installation package address obtained by analyzing is successful, continuing to execute the step S105; when detecting that the analysis of the installation package data of the installation package of the obtained installation package address fails, returning to execute the step S102: and accessing the database through the application programming interface every preset detection time to detect the application corresponding to the unanalyzed label of the application installation package. By detecting whether the analysis of the installation package data is successful or not, the step that the follow-up application data cannot be modified when the analysis of the installation package data is failed is avoided, and the operability and the working efficiency of the analysis of the application installation package of the application server are improved.
Fig. 3 is a schematic structural diagram of an analysis system of an application installation package of an application server according to another embodiment of the present invention. As shown in the figure, on the basis of the above method embodiment, the analysis system 100 of the application installation package of the application server of this embodiment includes a tag adding module 10, an application detecting module 20, an installation package address obtaining module 30, an installation package parsing module 40, an application data modifying module 50, and a tag modifying module 60.
In this embodiment, the application server is configured to store and manage the application installation package and the application data in a unified manner, and provide application query, update, and download services. When an application is added to the database of the application server, the tag adding module 10 adds an unanalyzed tag to the application, so that the newly added unanalyzed application is distinguished from other application installation packages in the application server through the tag, the newly added unanalyzed application is conveniently and rapidly inquired and called through the tag, and the convenience and the working efficiency of application installation package analysis are improved.
In the application server, the application detection module 20 accesses the database through an Application Programming Interface (API) every preset detection time to detect the application corresponding to the unanalyzed label of the application installation package, and quickly obtains the unanalyzed application installation package by detecting the label at regular time, so as to conveniently and quickly call the unanalyzed application and start the analysis process of the application installation package.
When the application detection module 20 detects the application installation package corresponding to the unanalyzed label, the installation package address obtaining module 30 obtains the installation package address of the application corresponding to the unanalyzed label of the application installation package detected by the application detection module 20, so as to be convenient for quickly and accurately calling the application installation package according to the path address stored in the installation package.
After the installation package address obtaining module 30 obtains the installation package address, the installation package analyzing module 40 quickly and accurately calls the application installation package according to the path address stored in the installation package obtained by the installation package address obtaining module 30, and analyzes the installation package data of the installation package. Referring to fig. 4, the installation package parsing module 40 includes a parsing unit 401 and a decompression unit 402.
In this embodiment, the parsing unit 401 parses, through an APPT command, the installation package of the installation package address obtained by the installation package address obtaining module 30 to obtain the application name, the package name, the version number, and the permission data of the application installation package, and then the decompression unit 402 decompresses the installation package of the installation package address obtained by the installation package address obtaining module 30 to obtain the MF data and the SF data of the application installation package. The MF data is the md5 value of a directory/META-INF/MANIFEST. MF file in the installation package decompression folder, and the SF data is the md5 value of the directory/META-INF/SF file in the installation package decompression folder.
After the installation package analyzing module 40 analyzes the installation package data, the application data modifying module 50 modifies the application data of the application in the database according to the installation package data analyzed by the installation package analyzing module 40, that is, supplements or updates the application name, package name, version number and permission data, MF data and SF data of the application installation package, so that the database of the application server stores the complete application data of all applications, and the application server is convenient to perform unified management and provide query and download servers.
In some embodiments of the present invention, after the installation package analysis module 40 analyzes the installation package data, the prompt module pops the window information or prompts the application data of the application installation package analyzed by the installation package analysis module 40 by voice, so that an administrator can conveniently and accurately grasp the installation package data of the newly added application in time, and the operability, convenience and management efficiency of the application server are improved.
After the installation package analysis module 40 analyzes the application installation package data and completes the analysis of the application installation package, the tag modification module 60 modifies the unanalyzed tag of the application installation package added by the tag addition module 10 into the analyzed tag of the application installation package, and distinguishes the analyzed application installation package from the unanalyzed application installation package through the tag, so as to avoid analyzing the analyzed application installation package again, and improve the operability and the working efficiency of the analysis of the application installation package.
In the analysis system 100 of the application installation package using the server in this embodiment, when an application is added to a database of an application server, the tag adding module 10 adds an unanalyzed tag to the application, the application detecting module 20 accesses the database through an application programming interface at preset detection intervals to detect an application corresponding to the unanalyzed tag of the application installation package, the installation package address obtaining module 30 obtains an installation package address of the application corresponding to the unanalyzed tag of the application installation package detected by the application detecting module 20, the installation package analyzing module 40 analyzes installation package data of the installation package address obtained by the installation package address obtaining module 30, the application data modifying module 50 modifies the application data of the application in the database according to the installation package data analyzed by the installation package analyzing module 40, and the tag modifying module 60 modifies the unanalyzed tag of the application installation package added by the tag adding module 10 into the application The installation package analyzed label, newly-added unanalyzed application installation package is detected through the label fast, and the analysis acquires the installation package data and updates the application data in the database, so that the application installation package of the application server is analyzed conveniently and quickly, the convenience, the operability and the working efficiency of the application installation package analysis of the application server are improved, and the application management efficiency and the user experience of the application server are improved.
In the analysis system 100 for an application installation package of an application server according to another embodiment of the present invention, after the installation package analysis module 40 analyzes the installation package data of the installation package address acquired by the installation package address acquisition module 30, an analysis detection module further detects whether the installation package analysis module 40 successfully analyzes the installation package data, and when the analysis detection module detects that the installation package analysis module 40 successfully analyzes the installation package data, the application data modification module 50 modifies the application data of the application in the database according to the installation package data analyzed by the installation package analysis module 40; when the analysis detection module detects that the installation package analysis module 40 fails to analyze the installation package data, the application detection module 20 returns to detect the application corresponding to the unanalyzed label of the application installation package by accessing the database through the application programming interface at preset detection time intervals. Whether the analysis of the installation package data is successful or not is detected through the analysis detection module, the step that the follow-up application data cannot be modified when the analysis of the installation package data is failed or not is avoided, and the operability and the working efficiency of the application installation package analysis of the application server are improved.
Fig. 5 is a schematic structural diagram of an application server according to another embodiment of the present invention. As shown in the figure, the application server 200 includes the analysis system 100 for the application installation package of the application server according to the embodiment, newly added unanalyzed application installation packages are quickly detected through tags, installation package data is obtained through analysis, and application data is updated in a database, so that the quick analysis of the application installation package of the application server 200 is conveniently and quickly realized, the convenience, the operability and the working efficiency of the analysis of the application installation package of the application server 200 are improved, and the application management efficiency and the user experience of the application server 200 are improved.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.