CN116737192A - Method, device, storage medium and program product for monitoring update of application program - Google Patents

Method, device, storage medium and program product for monitoring update of application program Download PDF

Info

Publication number
CN116737192A
CN116737192A CN202210203631.8A CN202210203631A CN116737192A CN 116737192 A CN116737192 A CN 116737192A CN 202210203631 A CN202210203631 A CN 202210203631A CN 116737192 A CN116737192 A CN 116737192A
Authority
CN
China
Prior art keywords
application program
description information
updated
current version
version description
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.)
Pending
Application number
CN202210203631.8A
Other languages
Chinese (zh)
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210203631.8A priority Critical patent/CN116737192A/en
Publication of CN116737192A publication Critical patent/CN116737192A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The embodiment of the disclosure provides a method, equipment, a storage medium and a program product for monitoring application program update, which are used for acquiring current version description information of an application program from a target network channel; comparing the current version description information with pre-stored historical version description information of the application program, and judging whether the current version description information is updated or not; if the application program is updated, downloading an installation package of the application program from a target network channel; the method comprises the steps of acquiring version number information of an application program from an installation package of the application program; and comparing the version number information with the historical version number information to judge whether the application program in the target network channel is updated or not. The method comprises the steps of obtaining the current version description information of an application program and the pre-stored historical version description information of the application program through a comparison target network channel, primarily judging that the application program is possibly updated, downloading an application program installation package from the target network channel, finally determining whether the application program is updated or not based on the version number information from the installation package, and improving the accuracy of a judging result.

Description

Method, device, storage medium and program product for monitoring update of application program
Technical Field
The embodiment of the disclosure relates to the technical field of computer and network communication, in particular to a method, equipment, a storage medium and a program product for monitoring application program update.
Background
In an Application (APP) iterative update process, the APP dynamics, such as publishing frequency, content/function update, etc., are usually focused to grasp the APP related data.
At present, the APP update is monitored regularly by means of manual mode, but because different channels exist in the APP update and downloading, such as official networks, application store webpages, mobile phone application stores and the like, the information of each channel is fragmented, so that the update time of the different channels is inconsistent, the APP update cannot be monitored timely and accurately, and a large amount of manpower is occupied.
Disclosure of Invention
The embodiment of the disclosure provides a method, equipment, a storage medium and a program product for monitoring application program update, which can timely and accurately monitor the application program update and reduce labor cost.
In a first aspect, an embodiment of the present disclosure provides a method for monitoring an update of an application, including:
acquiring current version description information of an application program from a target network channel;
Comparing the current version description information with prestored historical version description information of the application program, and judging whether the current version description information is updated or not;
if the current version description information is updated, downloading an installation package of the application program from the target network channel;
acquiring version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not.
In a second aspect, an embodiment of the present disclosure provides an apparatus for monitoring an update of an application, including:
an acquisition unit for acquiring the current version description information of the application program from the target network channel;
the first judging unit is used for comparing the current version description information with prestored historical version description information of the application program and judging whether the current version description information is updated or not;
a downloading unit, configured to download an installation package of the application program from the target network channel if it is determined that the current version description information is updated;
A second judging unit, configured to obtain version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored in the memory to cause the at least one processor to perform the method of monitoring application updates as described above in the first aspect and the various possible designs of the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement a method for monitoring application updates as described above in the first aspect and in the various possible designs of the first aspect.
In a fifth aspect, embodiments of the present disclosure provide a computer program product comprising computer-executable instructions which, when executed by a processor, implement the method of monitoring application updates as described above in the first aspect and in the various possible designs of the first aspect.
The method, the device, the storage medium and the program product for monitoring the update of the application program provided by the embodiment acquire the current version description information of the application program from a target network channel; comparing the current version description information with pre-stored historical version description information of the application program, and judging whether the current version description information is updated or not; if the current version description information is updated, downloading an installation package of the application program from the target network channel; the method comprises the steps of acquiring version number information of an application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not. The method comprises the steps of comparing the current version description information of the application program acquired by the target network channel with the pre-stored historical version description information of the application program, preliminarily judging that the application program possibly has update, downloading an installation package of the application program from the target network channel, and finally determining whether the application program in the target network channel is updated or not based on the version number information of the installation package, so that timeliness and accuracy of judging whether the application program updates a result are improved, and labor cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the description of the prior art, it being obvious that the drawings in the following description are some embodiments of the present disclosure, and that other drawings may be obtained from these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is a schematic diagram of a method application scenario for monitoring application program update according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of a method for monitoring an application update according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for monitoring an application update according to another embodiment of the present disclosure;
FIG. 4 is a block diagram of an apparatus for monitoring application updates provided by an embodiment of the present disclosure;
fig. 5 is a schematic hardware structure of an electronic device according to an embodiment of the disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
In the Application (APP) iterative update process, the APP dynamics, such as publishing frequency, content/function update, etc., are also generally focused on to master the APP related data.
At present, the monitoring of APP update usually depends on manual mode to check regularly, but because APP update and downloading have different channels, such as official networks, application store webpages, mobile phone application stores and the like, the information of each channel is fragmented, so that the update time of different channels is inconsistent, the APP update cannot be monitored in time, and a large amount of manpower is occupied.
In order to solve the above technical problems, an embodiment of the present disclosure provides a method for monitoring an update of an application program, where description information of a current version of the application program may be obtained from a target network channel; comparing the current version description information with pre-stored historical version description information of the application program, and judging whether the current version description information is updated or not; if the current version description information is updated, downloading an installation package of the application program from the target network channel; and judging whether the application program in the target network channel is updated according to the installation package of the application program. The method comprises the steps of comparing the current version description information of the application program acquired by the target network channel with the pre-stored historical version description information of the application program, preliminarily judging that the application program is likely to be updated, downloading an installation package, and finally determining whether the application program in the target network channel is updated or not based on the installation package, so that timeliness and accuracy of judging whether the application program is updated or not are improved, and the application program can be updated in time conveniently.
The method for monitoring application program update provided by the embodiment of the present disclosure is applicable to an application scenario as shown in fig. 1, and includes a server 11, a database 12 and a target network channel, where the server 11 may obtain current version description information of an application program from the target network channel; the server 11 may further obtain pre-stored historical version description information of the application program from the database 12, and then compare the current version description information with the historical version description information to determine whether the current version description information is updated compared with the historical version description information; if the current version description information is updated, downloading an installation package of the application program from the target network channel; and judging whether the application program in the target network channel is updated or not according to the installation package of the application program, specifically, the version number information of the application program can be obtained from the installation package, the pre-stored historical version number information of the application program can also be obtained from the database 12, and the version number information of the application program obtained from the installation package is compared with the historical version number information to judge whether the application program in the target network channel is updated or not.
Further, the historical version description information in the database 12 may be updated after the current version description information is determined to be updated; the historical version number information in the database 12 may be updated after the application update in the target web channel is determined.
It should be noted that only one target web channel is shown in fig. 1, and when there are a plurality of target web channels, each target web channel may be updated as in the monitoring application program of fig. 1.
The method for monitoring application program update provided by the embodiment of the present disclosure will be described in detail below with reference to specific embodiments.
Referring to fig. 2, fig. 2 is a flowchart of a method for monitoring an update of an application according to an embodiment of the disclosure. The method for updating the monitoring application program of the embodiment can be applied to a terminal device or a server, and the method for updating the monitoring application program comprises the following steps:
s201, acquiring the current version description information of the application program from the target network channel.
In this embodiment, the latest version of the application may be released from different network channels for the user to download, such as a web, an application store web page, a mobile phone application store, etc. Thus, for any one target web channel, the current version description information of the application may be obtained from that target web channel. Specifically, a network request for inquiring the current version description information of the application program can be sent to the target network channel, response information of the target network channel to the network request is received, and the current version description information of the application program in the target network channel is analyzed from the response information.
Wherein the current version description information is description information of the latest version of the application program in the target network channel, including but not limited to at least one of the following: version name, update time, message digest MD5 code, update description, installation package size, channel information, etc.
Optionally, for a certain target network channel, the current version description information of the application program can be acquired at fixed time; if a plurality of target network channels exist, each target network channel can be polled at regular time, and the current version description information of the application program is acquired from each target network channel.
S202, comparing the current version description information with prestored historical version description information of the application program, and judging whether the current version description information is updated or not.
In this embodiment, the version description information of the application program that is stored in advance and updated in the previous time of the target network channel, that is, the pre-stored historical version description information of the application program, may also include, but is not limited to, at least one of the following: version name, update time, message digest MD5 code, update description, installation package size, channel information, etc.
Further, the current version description information may be compared with the pre-stored historical version description information of the application program, and whether the current version description information is updated compared with the historical version description information may be determined. Wherein if one or more items of the current version description information are different than the historical version description information, it can be determined whether the current version description information is updated, further illustrating that the application of the target network channel may be updated.
It should be noted that, since the update time may be different for different network channels for the same application program update, the installation package size and MD5 code may also be different, so that the comparison between different network channels cannot be performed, that is, in S202, the comparison between the current version description information and the historical version description information of the same target network channel is performed, so as to determine whether the current version description information of the target network channel is updated.
On the basis of the above embodiment, if it is determined that the current version description information is updated, the historical version description information is updated to the current version description information so as to be used as a basis for next determining whether the current version description information of the target network channel is updated.
And S203, if the current version description information is updated, downloading an installation package of the application program from the target network channel.
In this embodiment, when the current version of the description information is determined to be updated, it is indicated that the target network channel is likely to update the application program, but it is also possible that the target network channel is not updated, and at this time, an installation package of the application program may be downloaded from the target network channel, so as to determine whether the target network channel updates the application program according to the installation package.
S204, acquiring version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not.
In this embodiment, after the installation package of the application program is downloaded from the target network channel, whether the target network channel updates the application program or not may be finally determined based on the installation package of the application program, so as to ensure accuracy of judgment, and avoid erroneous judgment caused by updating the current version description information of the target network channel when the application program is not updated.
In this embodiment, version number information of an application program installation package in a target network channel may be obtained from an installation package of a downloaded application program, where a Version number, that is, version Code, is an Integer (intelger) type value, is a Version number for terminal identification, and application programs of different versions have different Version numbers, application programs of the same Version, and Version numbers are the same. Therefore, the historical version number information of the application program downloaded from the target network channel after the last application program update can be obtained, the version number information of the downloaded application program is compared with the historical version number information, and if the version number information of the downloaded application program is larger than the historical version number information, the application program in the target network channel is determined to be updated.
Alternatively, when the version number information of the application program is acquired from the installation package of the application program, the version number information of the application program may be acquired from the installation package of the application program by an installation package management tool such as APT (Advanced Packaging Tool, an installation package management tool under Linux); or, the android manifest file of the installation package of the application program can be directly analyzed, and the version number information of the application program included in the android manifest file can be obtained.
In addition, the authority list, channel information, and the like may also be acquired from the installation package of the downloaded application.
On the basis of the above embodiment, if it is determined that the application program in the target network channel is updated, the historical version number information is updated to the version number information, so as to be used as a comparison basis for next determining whether the application program in the target network channel is updated. In addition, the installation package of the downloaded application program can be stored. Optionally, the history version number information and the downloaded installation package of the application program can be archived, so that the inquiry and the comparison are convenient.
On the basis of any embodiment, if the update of the application program in the target network channel is determined, an update notification of the application program can be sent out so as to acquire that the update of the application program occurs in time. If there are a plurality of target network channels, an application update notification is issued as long as an application update in at least one target network channel is determined.
Because each target network channel can be polled at regular time, the current version description information of the application program can be acquired by each target network channel, and therefore, each target network channel does not influence each other, and each target network channel can independently perform comparison of version description information, comparison of version number information, update of version description information and update of version number information and trigger update notification of the application program. If the developer receives the application update notification of the different network channels, the application update notification may be compared to determine which target network channel is the most current application, for example, by version description information and/or version number information.
It should be noted that, the method for monitoring application program update provided in this embodiment may also be applied to other scenarios, for example, when a user wants to update an application program, the process may monitor which target network channel has updated the application program, so as to complete updating of the application program in time, and enable the user to experience the latest application program.
According to the method for monitoring application program updating, the current version description information of the application program is obtained from the target network channel; comparing the current version description information with prestored historical version description information of the application program, and judging whether the current version description information is updated or not; if the current version description information is updated, downloading an installation package of the application program from the target network channel; acquiring version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not. The method comprises the steps of comparing the current version description information of the application program acquired by the target network channel with the pre-stored historical version description information of the application program, preliminarily judging that the application program possibly has update, downloading an installation package of the application program from the target network channel, and finally determining whether the application program in the target network channel is updated or not based on the installation package, so that timeliness and accuracy of judging whether the application program updates a result are improved, and labor cost is reduced.
On the basis of any of the above embodiments, considering that the Version description information of the application program included in different network channels may be different, but generally includes a Version Name (Version Name), an update time, and an MD5 code, in order to ensure the universality of the method for monitoring application program update of the present embodiment, only the Version Name, the update time, and the MD5 code may be considered, that is, the current Version description information includes the Version Name, the update time, and the MD5 code, and the historical Version description information also includes the Version Name, the update time, and the MD5 code, and further, when comparing the current Version description information with the historical Version description information, if at least one of the Version Name, the update time, and the MD5 code in the current Version description information is updated compared with the corresponding Version Name, update time, and MD5 code in the historical Version description information, it is determined that the current Version description information is updated.
Further, as shown in fig. 3, in the above embodiment, comparing the current version description information with the pre-stored historical version description information of the application program in S202 to determine whether the current version description information is updated may specifically include:
Judging whether the version name in the current version description information is newer than the version name in the history version description information; if yes, determining that the current version description information is updated;
if not, judging whether the update time in the current version description information is later than the update time in the historical version description information; if yes, determining that the current version description information is updated;
if not, judging whether the MD5 code in the current version description information is different from the MD5 code in the history version description information; if yes, determining that the current version description information is updated;
if not, determining that the current version description information is not updated.
In this embodiment, version names of different versions of the application program are usually different, the Version Name is Version Name, the Version number is displayed to the user, version information representing the application program is a string type; therefore, it may be first determined whether the version name in the current version description information is newer than the version name in the history version description information, if so, it is determined that the current version description information has been updated, for example, the version name in the current version description information is 1.1.2, and the version name in the history version description information is 1.1.1, where no further comparison of the update time and the MD5 code is required; if the version name in the current version description information is the same as the version name in the history version description information, whether the update time in the current version description information is later than the update time in the history version description information or not can be judged, if the update time in the current version description information is later than the update time in the history version description information, the condition that the version names are the same but the installation package is updated is indicated, so that the current version description information is also determined to be updated, and comparison of MD5 codes is not needed; if the update time in the current version description information is not later than the update time in the history version description information, comparing the MD5 codes, and if the MD5 codes in the current version description information are the same as the MD5 codes in the history version description information, considering that the installation package of the current version is the same as the installation package of the history version, namely that the current version description information is not updated, and the application program is not updated; otherwise, determining that the installation package of the current version is different from the installation package of the historical version, and determining that the description information of the current version is updated.
Corresponding to the method for monitoring application update of the above embodiment, fig. 4 is a block diagram of a device for monitoring application update provided in an embodiment of the present disclosure. For ease of illustration, only portions relevant to embodiments of the present disclosure are shown. Referring to fig. 4, the apparatus 400 for monitoring an application update includes: an acquisition unit 401, a first judgment unit 402, a download unit 403, and a second judgment unit 404.
Wherein, the obtaining unit 401 is configured to obtain, from a target network channel, current version description information of an application program;
a first determining unit 402, configured to compare the current version description information with pre-stored historical version description information of the application program, and determine whether the current version description information is updated;
a downloading unit 403, configured to download an installation package of the application program from the target network channel if it is determined that the current version description information is updated;
a second judging unit 404, configured to obtain version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not.
In one or more embodiments of the present embodiment, the second determining unit 404 is configured to, when acquiring version number information of the application program from an installation package of the application program:
acquiring version number information of the application program from an installation package of the application program through an installation package management tool; or alternatively
Analyzing the android manifest file of the installation package of the application program, and acquiring version number information of the application program included in the android manifest file.
In one or more embodiments of the present embodiment, the current version description information includes at least one of: version name, update time, message digest MD5 code, update description, installation package size, channel information.
In one or more embodiments of the present embodiment, the current version description information includes a version name, an update time, and an MD5 code; the first determining unit 402 is configured to, when comparing the current version description information with pre-stored historical version description information of the application program, determine whether the current version description information is updated, determine that the current version description information is updated:
and if at least one of the version name, the updating time and the MD5 code in the current version description information is updated compared with the corresponding version name, the updating time and the MD5 code in the history version description information, determining that the current version description information is updated.
In one or more embodiments of the present embodiment, the first determining unit 402 determines that the current version description information is updated if at least one of the version name, the update time, and the MD5 code in the current version description information is updated compared with the corresponding version name, update time, and MD5 code in the history version description information, including:
judging whether the version name in the current version description information is newer than the version name in the history version description information; if yes, determining that the current version description information is updated;
if not, judging whether the update time in the current version description information is later than the update time in the historical version description information; if yes, determining that the current version description information is updated;
if not, judging whether the MD5 code in the current version description information is different from the MD5 code in the history version description information; if yes, determining that the current version description information is updated;
if not, determining that the current version description information is not updated.
In one or more embodiments of the present embodiment, the apparatus further includes an updating unit 405 configured to:
And if the current version description information is updated, updating the historical version description information into the current version description information.
In one or more embodiments of the present embodiment, the updating unit 405 is further configured to:
and if the application program in the target network channel is updated, updating the historical version number information into the version number information.
In one or more embodiments of the present embodiment, the target network channel has a plurality of channels, and the obtaining unit 401, when obtaining the current version description information of the application program from the target network channel, is configured to:
acquiring current version description information of an application program from each target network channel by periodically polling each target network channel;
the second judging unit 404 is further configured to:
and if the application program update in at least one target network channel is determined, sending an application program update notification.
The device provided in this embodiment may be used to execute the technical solution of the foregoing method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
Referring to fig. 5, a schematic diagram of a structure of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown, where the electronic device 500 may be a terminal device or a server. The terminal device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (Personal Digital Assistant, PDA for short), a tablet (Portable Android Device, PAD for short), a portable multimedia player (Portable Media Player, PMP for short), an in-vehicle terminal (e.g., an in-vehicle navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic apparatus 500 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 501 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage device 508 into a random access Memory (Random Access Memory, RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (Liquid Crystal Display, abbreviated as LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above-described embodiments.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (Local Area Network, LAN for short) or a wide area network (Wide Area Network, WAN for short), or it may be connected to an external computer (e.g., connected via the internet using an internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In a first aspect, according to one or more embodiments of the present disclosure, there is provided a method of monitoring an application update, comprising:
acquiring current version description information of an application program from a target network channel;
comparing the current version description information with prestored historical version description information of the application program, and judging whether the current version description information is updated or not;
if the current version description information is updated, downloading an installation package of the application program from the target network channel;
acquiring version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not.
According to one or more embodiments of the present disclosure, the obtaining version number information of the application program from the installation package of the application program includes:
acquiring version number information of the application program from an installation package of the application program through an installation package management tool; or alternatively
Analyzing the android manifest file of the installation package of the application program, and acquiring version number information of the application program included in the android manifest file.
According to one or more embodiments of the present disclosure, the current version description information includes at least one of: version name, update time, message digest MD5 code, update description, installation package size, channel information.
According to one or more embodiments of the present disclosure, the current version description information includes a version name, an update time, and an MD5 code; comparing the current version description information with pre-stored historical version description information of the application program, and judging whether the current version description information is updated or not comprises the following steps:
and if at least one of the version name, the updating time and the MD5 code in the current version description information is updated compared with the corresponding version name, the updating time and the MD5 code in the history version description information, determining that the current version description information is updated.
According to one or more embodiments of the present disclosure, the determining that the current version description information is updated if at least one of the version name, the update time, and the MD5 code in the current version description information is updated compared to the corresponding version name, update time, and MD5 code in the history version description information includes:
Judging whether the version name in the current version description information is newer than the version name in the history version description information; if yes, determining that the current version description information is updated;
if not, judging whether the update time in the current version description information is later than the update time in the historical version description information; if yes, determining that the current version description information is updated;
if not, judging whether the MD5 code in the current version description information is different from the MD5 code in the history version description information; if yes, determining that the current version description information is updated;
if not, determining that the current version description information is not updated.
According to one or more embodiments of the present disclosure, the method further comprises:
and if the current version description information is updated, updating the historical version description information into the current version description information.
According to one or more embodiments of the present disclosure, the method further comprises:
and if the application program in the target network channel is updated, updating the historical version number information into the version number information.
According to one or more embodiments of the present disclosure, the target network channel has a plurality of channels, and the acquiring the current version description information of the application program from the target network channel includes:
acquiring current version description information of an application program from each target network channel by periodically polling each target network channel;
the method further comprises the steps of:
and if the application program update in at least one target network channel is determined, sending an application program update notification.
In a second aspect, according to one or more embodiments of the present disclosure, there is provided an apparatus for monitoring an application update, comprising:
an acquisition unit for acquiring the current version description information of the application program from the target network channel;
the first judging unit is used for comparing the current version description information with prestored historical version description information of the application program and judging whether the current version description information is updated or not;
a downloading unit, configured to download an installation package of the application program from the target network channel if it is determined that the current version description information is updated;
a second judging unit, configured to obtain version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not.
According to one or more embodiments of the present disclosure, the second determining unit is configured to, when acquiring version number information of the application program from an installation package of the application program:
acquiring version number information of the application program from an installation package of the application program through an installation package management tool; or alternatively
Analyzing the android manifest file of the installation package of the application program, and acquiring version number information of the application program included in the android manifest file.
According to one or more embodiments of the present disclosure, the current version description information includes at least one of: version name, update time, message digest MD5 code, update description, installation package size, channel information.
According to one or more embodiments of the present disclosure, the current version description information includes a version name, an update time, and an MD5 code; the first judging unit is configured to, when comparing the current version description information with pre-stored historical version description information of the application program, judge whether the current version description information is updated, and determine whether the current version description information is updated:
and if at least one of the version name, the updating time and the MD5 code in the current version description information is updated compared with the corresponding version name, the updating time and the MD5 code in the history version description information, determining that the current version description information is updated.
According to one or more embodiments of the present disclosure, the first determining unit determines that the current version description information is updated if at least one of the version name, the update time, and the MD5 code in the current version description information is updated compared to the corresponding version name, update time, and MD5 code in the history version description information, including:
judging whether the version name in the current version description information is newer than the version name in the history version description information; if yes, determining that the current version description information is updated;
if not, judging whether the update time in the current version description information is later than the update time in the historical version description information; if yes, determining that the current version description information is updated;
if not, judging whether the MD5 code in the current version description information is different from the MD5 code in the history version description information; if yes, determining that the current version description information is updated;
if not, determining that the current version description information is not updated.
According to one or more embodiments of the present disclosure, the apparatus further comprises an updating unit for:
And if the current version description information is updated, updating the historical version description information into the current version description information.
According to one or more embodiments of the present disclosure, the updating unit is further configured to:
and if the application program in the target network channel is updated, updating the historical version number information into the version number information.
According to one or more embodiments of the present disclosure, the target network channel is plural, and the acquiring unit, when acquiring the current version description information of the application program from the target network channel, is configured to:
acquiring current version description information of an application program from each target network channel by periodically polling each target network channel;
the second judging unit is further configured to:
and if the application program update in at least one target network channel is determined, sending an application program update notification.
In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored in the memory to cause the at least one processor to perform the method of monitoring application updates as described above in the first aspect and the various possible designs of the first aspect.
In a fourth aspect, according to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement the method of monitoring application updates as described above in the first aspect and the various possible designs of the first aspect.
In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided a computer program product comprising computer-executable instructions which, when executed by a processor, implement the method of monitoring application updates as described above in the first aspect and in the various possible designs of the first aspect.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (12)

1. A method of monitoring an application update, comprising:
acquiring current version description information of an application program from a target network channel;
Comparing the current version description information with prestored historical version description information of the application program, and judging whether the current version description information is updated or not;
if the current version description information is updated, downloading an installation package of the application program from the target network channel;
acquiring version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not.
2. The method of claim 1, wherein the obtaining version number information of the application program from the installation package of the application program comprises:
acquiring version number information of the application program from an installation package of the application program through an installation package management tool; or alternatively
Analyzing the android manifest file of the installation package of the application program, and acquiring version number information of the application program included in the android manifest file.
3. The method of claim 1, wherein the current version description information comprises at least one of: version name, update time, message digest MD5 code, update description, installation package size, channel information.
4. The method of claim 3, wherein the current version description information includes a version name, an update time, and an MD5 code; comparing the current version description information with pre-stored historical version description information of the application program, and judging whether the current version description information is updated or not comprises the following steps:
and if at least one of the version name, the updating time and the MD5 code in the current version description information is updated compared with the corresponding version name, the updating time and the MD5 code in the history version description information, determining that the current version description information is updated.
5. The method of claim 4, wherein determining that the current version description information is updated if at least one of a version name, an update time, and an MD5 code in the current version description information is updated as compared to a corresponding version name, update time, and MD5 code in the historical version description information, comprises:
judging whether the version name in the current version description information is newer than the version name in the history version description information; if yes, determining that the current version description information is updated;
If not, judging whether the update time in the current version description information is later than the update time in the historical version description information; if yes, determining that the current version description information is updated;
if not, judging whether the MD5 code in the current version description information is different from the MD5 code in the history version description information; if yes, determining that the current version description information is updated;
if not, determining that the current version description information is not updated.
6. The method of any one of claims 1-5, further comprising:
and if the current version description information is updated, updating the historical version description information into the current version description information.
7. The method according to claim 1 or 2, further comprising:
and if the application program in the target network channel is updated, updating the historical version number information into the version number information.
8. The method of claim 1, wherein the plurality of target network channels are provided, and the obtaining the current version description information of the application program from the target network channels comprises:
Acquiring current version description information of an application program from each target network channel by periodically polling each target network channel;
the method further comprises the steps of:
and if the application program update in at least one target network channel is determined, sending an application program update notification.
9. An apparatus for monitoring application updates, comprising:
an acquisition unit for acquiring the current version description information of the application program from the target network channel;
the first judging unit is used for comparing the current version description information with prestored historical version description information of the application program and judging whether the current version description information is updated or not;
a downloading unit, configured to download an installation package of the application program from the target network channel if it is determined that the current version description information is updated;
a second judging unit, configured to obtain version number information of the application program from an installation package of the application program; and comparing the version number information with the historical version number information of the application program corresponding to the target network channel, and judging whether the application program in the target network channel is updated or not.
10. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the method of any one of claims 1-8.
11. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor implement the method of any of claims 1-8.
12. A computer program product comprising computer-executable instructions which, when executed by a processor, implement the method of any of claims 1-8.
CN202210203631.8A 2022-03-03 2022-03-03 Method, device, storage medium and program product for monitoring update of application program Pending CN116737192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210203631.8A CN116737192A (en) 2022-03-03 2022-03-03 Method, device, storage medium and program product for monitoring update of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210203631.8A CN116737192A (en) 2022-03-03 2022-03-03 Method, device, storage medium and program product for monitoring update of application program

Publications (1)

Publication Number Publication Date
CN116737192A true CN116737192A (en) 2023-09-12

Family

ID=87904894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210203631.8A Pending CN116737192A (en) 2022-03-03 2022-03-03 Method, device, storage medium and program product for monitoring update of application program

Country Status (1)

Country Link
CN (1) CN116737192A (en)

Similar Documents

Publication Publication Date Title
CN112214408B (en) Dependency conflict detection method, dependency conflict detection device, electronic equipment and computer readable medium
CN110209315B (en) Method and device for displaying characters in user interface, electronic equipment and storage medium
CN110865852B (en) Webpage component loading method and device, electronic equipment and storage medium
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN111273985A (en) Page rendering method and device, electronic equipment and computer readable storage medium
CN111338944B (en) Remote Procedure Call (RPC) interface testing method, device, medium and equipment
CN110990038B (en) Method, apparatus, electronic device and medium for applying local update
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN109902726B (en) Resume information processing method and device
CN112596738B (en) Method and device for determining front-end page to be tested, storage medium and electronic equipment
CN111198853B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN116679930A (en) Front-end project construction method and device, electronic equipment and storage medium
CN109408387B (en) Page testing method and device
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN116737192A (en) Method, device, storage medium and program product for monitoring update of application program
CN112422648B (en) Data synchronization method and system
CN112084086B (en) Information collection method, device, medium and electronic equipment
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN114741686A (en) Method and device for detecting program white list and related equipment
CN111367555B (en) Assertion method, assertion device, electronic equipment and computer readable medium
CN111381813A (en) Front-end page debugging method and device, computer equipment and storage medium
CN110489341B (en) Test method and device, storage medium and electronic equipment
CN111782410B (en) Lock jam monitoring method and device, electronic equipment and computer readable medium
CN112559394B (en) System library access method and device and electronic equipment
CN116594630A (en) File generation method, device, medium and electronic equipment

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