CN113031997A - Upgrade package generation and management method and device, computer equipment and storage medium - Google Patents

Upgrade package generation and management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113031997A
CN113031997A CN202110219730.0A CN202110219730A CN113031997A CN 113031997 A CN113031997 A CN 113031997A CN 202110219730 A CN202110219730 A CN 202110219730A CN 113031997 A CN113031997 A CN 113031997A
Authority
CN
China
Prior art keywords
upgrade
upgrading
terminal
file
package
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
CN202110219730.0A
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.)
Shenzhen One Account Technology Co ltd
OneConnect Smart Technology Co Ltd
Original Assignee
Shenzhen One Account 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 Shenzhen One Account Technology Co ltd filed Critical Shenzhen One Account Technology Co ltd
Priority to CN202110219730.0A priority Critical patent/CN113031997A/en
Publication of CN113031997A publication Critical patent/CN113031997A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a computer operation and maintenance technology, and discloses an upgrade package generation and management method, an upgrade package generation and management device, computer equipment and a storage medium, wherein the upgrade package generation and management method comprises the following steps: receiving an upgrade file; identifying a database corresponding to the upgrading file, and judging whether the database has a history file with a version number consistent with that of the upgrading file; if yes, setting the history file as a target file, identifying difference information which is different from the target file in the upgrade file, summarizing the difference information, and packaging to obtain a difference upgrade package; taking the differential upgrading package as an upgrading program package; if not, the upgrade file is used as an upgrade program package. The invention minimizes the data volume required by the terminal during upgrading, realizes light operation and upgrading of the terminal, and avoids the problem that the upgrading experience of a user is poor due to the fact that the terminal user needs to consume more flow and download time for experiencing a new version.

Description

Upgrade package generation and management method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of computer operation and maintenance, in particular to an upgrade package generation and management method and device, computer equipment and a storage medium.
Background
The APP of the current terminal is used for processing the service requirement sent by the terminal through the service engine, if the function is newly added or the effect is optimized to the rear-end server, the service engine of the APP needs to be updated and a new installation package is generated, so that the terminal can download and install the APP.
However, the inventor realizes that, at present, along with the improvement of the terminal performance, the size of the App package is also becoming larger, which makes the terminal user need to download the whole installation package to reinstall the App to realize the upgrade if the App is to be upgraded, so that the terminal user experiences the new version and needs to consume more traffic and download time, and the terminal is easily operated and jammed, which results in poor user upgrade experience.
Disclosure of Invention
The invention aims to provide an upgrade patch generation and management method, an upgrade patch generation and management device, computer equipment and a storage medium, which are used for solving the problems that in the prior art, a terminal user needs to consume more flow and download time when experiencing a new version, and the terminal is easy to operate and jam.
In order to achieve the above object, the present invention provides an upgrade package generation and management method, including:
receiving an upgrade file;
identifying a database corresponding to the upgrading file, and judging whether the database has a history file with a version number consistent with that of the upgrading file;
if yes, setting the history file as a target file, identifying difference information which is different from the target file in the upgrade file, summarizing the difference information, and packaging to obtain a difference upgrade package; taking the differential upgrading package as an upgrading program package;
if not, the upgrade file is used as an upgrade program package.
In the foregoing solution, after the differential upgrade package is used as an upgrade package, or the upgrade file is used as an upgrade package, the method further includes:
and carrying out Hash operation on the upgrading program package to obtain an upgrading Hash abstract, and associating the upgrading Hash abstract with the upgrading program package.
In the foregoing solution, after the differential upgrade package is used as an upgrade package, or the upgrade file is used as an upgrade package, the method further includes:
and receiving configuration information sent by a control end, and associating the configuration information with the upgrading program package.
In the foregoing solution, after associating the configuration information with the upgrade package, the method further includes:
monitoring the running state of the terminal, and judging whether the running state meets a preset service side threshold value; if yes, pushing configuration information to the terminal; if not, the running state of the terminal is continuously monitored.
In the foregoing solution, after the pushing the configuration information to the terminal, the method further includes:
and receiving an upgrading request sent by the terminal according to the configuration information, and sending an upgrading program package to the terminal according to the upgrading request.
In the above scheme, after sending the upgrade package to the terminal according to the upgrade request, the method further includes;
recording the terminal number of the terminal, and monitoring the process of upgrading the terminal according to the differential upgrading packet, wherein:
if the terminal is monitored to be upgraded successfully, successful information is generated and is associated with the terminal number;
if the terminal upgrading is monitored to be failed, failure information is generated and is associated with the terminal number;
and if the terminal cancels the upgrade, generating cancellation information and associating the cancellation information with the terminal number.
In the above solution, after the process of upgrading the monitoring terminal according to the differential upgrade package, the method further includes:
and summarizing the obtained terminal numbers, and counting the success information, the failure information and the cancellation information to generate an upgrade report when the number of the terminal numbers reaches a preset counting threshold value.
In order to achieve the above object, the present invention further provides an upgrade package generation and management apparatus, including:
the input module is used for receiving the upgrade file;
the upgrading judging module is used for identifying a database corresponding to the upgrading file and judging whether the database has a history file with a version number consistent with that of the upgrading file;
the differential upgrading module is used for setting the historical file as a target file, identifying difference information which is different from the target file in the upgrading file, summarizing the difference information and packaging to obtain a differential upgrading packet; taking the differential upgrading package as an upgrading program package;
and the integral upgrading module is used for taking the upgrading file as an upgrading program package.
In order to achieve the above object, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor of the computer device implements the steps of the upgrade package generation and management method when executing the computer program.
In order to achieve the above object, the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program stored in the computer-readable storage medium, when executed by a processor, implements the steps of the upgrade package generation and management method.
The invention provides an upgrade patch generation and management method, an upgrade patch generation and management device, a computer device and a storage medium, the difference information between the upgrade files and all the historical files in the database is extracted, collected and packaged to obtain a difference upgrade package, the difference upgrade package is used as an upgrade program package, so that the terminal can finish upgrade (small upgrade) through the upgrade program package, and simultaneously, since the upgrade package is mainly composed of difference information between the upgrade file and all history files, therefore, when the APP of the terminal is upgraded, the upgrading can be realized only by updating the difference information, so that the data volume required by the terminal during the upgrading is the lowest, the lightweight operation and upgrading of the terminal are realized, and the problem that the upgrading experience of a user is poor due to the fact that the user of the terminal needs to consume more flow and download time when experiencing a new version is avoided; and for the condition that the APP of the terminal needs to be integrally upgraded to replace the logic program in the APP, the upgrading file is directly used as an upgrading program package to ensure the completeness and reliability of upgrading.
Drawings
FIG. 1 is a flowchart of a first embodiment of an upgrade package generation and management method according to the present invention;
FIG. 2 is a schematic diagram of an environment application of an upgrade package generation and management method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a specific method of generating and managing an upgrade package according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of program modules of a third embodiment of an upgrade package generation and management apparatus according to the present invention;
fig. 5 is a schematic diagram of a hardware structure of a computer device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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.
The invention provides an upgrade patch generation and management method, an upgrade patch generation and management device, computer equipment and a storage medium, which are suitable for the technical field of computer operation and maintenance and provide an upgrade patch generation and management method based on an input module, an upgrade judgment module, a differential upgrade module and an integral upgrade module. The method comprises the steps of identifying a database corresponding to an upgrade file, and judging whether the database has a history file with a version number consistent with that of the upgrade file; if yes, setting the history file as a target file, identifying difference information of differences between the upgrade file and the target file, summarizing the difference information, and packaging to obtain a difference upgrade package; taking the differential upgrading package as an upgrading program package; if not, the upgrade file is used as an upgrade program package.
The first embodiment is as follows:
referring to fig. 1, a method for generating and managing an upgrade package in the present embodiment includes:
s101: receiving an upgrade file;
s102: identifying a database corresponding to the upgrading file, and judging whether the database has a history file with a version number consistent with that of the upgrading file;
s103: if yes, setting the history file as a target file, identifying difference information which is different from the target file in the upgrade file, summarizing the difference information, and packaging to obtain a difference upgrade package; taking the differential upgrading package as an upgrading program package;
s104: if not, the upgrade file is used as an upgrade program package.
In an exemplary embodiment, an upgrade file sent by a control end is received, where the upgrade file is computer data used for upgrading an APP used by a terminal, such as an APK (Android application package), which is an application package file format used by an Android operating system and is used for distributing and installing mobile applications and middleware. .
Generally, an upgrade server stores a plurality of service engines of the APP, and a database of each service engine stores a history file of upgrading the APP over time. The service engine is a computer module formed by at least one predefined independent logic program and used for processing the business requirements input or triggered by the user on the APP interface and returning the business results. And identifying the service engine corresponding to the upgrade file according to the name of the upgrade file, and acquiring a database of the service engine to avoid upgrade errors of the upgrade file, so as to avoid the problem that the service engine in the upgrade server is disordered due to the upgrade of the wrong service engine.
The version number is a code for marking the version status of the upgrade file, which reflects the modification frequency of the logic program in the service engine, for example: xxx.apk.v2.0, xxx.apk.v3.0, where 2.0 and 3.0 are version numbers; if the version number changes, the upgrading file corresponding to the version number modifies the logic program of the service engine, namely, the upgrading is carried out greatly; if the version number is not changed, it indicates that the upgrade file corresponding to the version number does not modify the logic program in the service engine, that is, a minor upgrade, such as: on the premise of not changing the logic program, the functions of the service engine are increased, or the display effect of the service engine is optimized, or the file or the picture used for displaying on the APP in the service engine is modified.
For the small upgrade, if the service engine of the APP is upgraded integrally, the terminal can be blocked due to the fact that the terminal acquires overlarge data, and light-weight operation of the terminal is not facilitated; therefore, in order to ensure that the data volume required by the terminal for upgrading can be minimized on the premise that the terminal can be smoothly upgraded, the step extracts the difference information between the upgrade file and all the historical files in the database, collects and packages the difference information to obtain a difference upgrade package, uses the difference upgrade package as an upgrade program package, and enables the terminal to complete upgrading (small upgrade) through the upgrade program package, since the upgrade package is mainly composed of difference information between the upgrade file and all history files, therefore, when upgrading APP at the terminal, only updating the difference information can realize upgrading, the required data volume of the terminal reaches the lowest when upgrading, lightweight operation and upgrading of the terminal are realized, and the problem that a user is poor in upgrading experience due to the fact that the user of the terminal needs to consume more flow and downloading time when experiencing a new version is avoided.
For the large upgrade, the whole upgrade needs to be performed on the APP of the terminal to replace the logic program therein, so that the upgrade file is directly used as an upgrade package to ensure the integrity and reliability of the upgrade.
Example two:
the embodiment is a specific application scenario of the first embodiment, and the method provided by the present invention can be more clearly and specifically explained through the embodiment.
Next, the method provided in this embodiment is specifically described by taking an example in which, in a server running an upgrade package generation and management method, whether a database has a history file with a version number consistent with that of the upgrade file, and identifying and packaging a difference between the upgrade file and the target file to obtain a differential upgrade package, or taking the upgrade file as an upgrade program package. It should be noted that the present embodiment is only exemplary, and does not limit the protection scope of the embodiments of the present invention.
Fig. 2 schematically illustrates an environment application diagram of an upgrade package generation and management method according to a second embodiment of the present application.
In an exemplary embodiment, the server 2 in which the upgrade package generation and management method is located is respectively connected with the terminal 3 and the control terminal 4 through a network; the server 2 may provide services through one or more networks, which may include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. The network may include physical links, such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. The network may include wireless links, such as cellular links, satellite links, Wi-Fi links, and/or the like; the terminal 3 and the control terminal 4 can be respectively a computer device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like.
Fig. 3 is a flowchart of a specific method of generating and managing an upgrade package according to an embodiment of the present invention, where the method specifically includes steps S201 to S210.
S201: and receiving an upgrade file.
In this step, an upgrade file sent by the control terminal is received, where the upgrade file is computer data used for upgrading an APP used by the terminal.
In a preferred embodiment, after receiving the upgrade file, the method further includes:
judging whether each subfile under the upgrade directory of the upgrade file has an upgrade password value,
if yes, entering the S202;
if not, carrying out hash operation on the subfile without the upgrading password value through a secure hash algorithm to obtain a digest, and loading the digest into the subfile to serve as the upgrading password value of the subfile.
It should be noted that the upgrade password value is a SHA-1 value, and SHA (Secure Hash Algorithm) is a series of cryptographic Hash functions. The SHA-1 value is generated from a maximum of 2^64 bits of the message, a 160-bit digest is generated, and then the subfiles in the upgrade file are encrypted based on principles similar to the MD4 and MD5 message digest algorithms.
S202: and identifying a database corresponding to the upgrading file, and judging whether the database has a history file with a version number consistent with that of the upgrading file.
Generally, an upgrade server stores a plurality of service engines of the APP, and a database of each service engine stores a history file of upgrading the APP over time. The service engine is a computer module formed by at least one predefined independent logic program and used for processing the business requirements input or triggered by the user on the APP interface and returning the business results.
Therefore, in order to avoid the problem that the service engines in the upgrade server are disordered due to the upgrade of wrong service engines, the service engine corresponding to the upgrade file is identified through the name of the upgrade file, and the database of the service engine is obtained to avoid upgrade errors of the upgrade file.
The version number is a code for marking the version status of the upgrade file, which reflects the modification frequency of the logic program in the service engine, for example: xxx.apk.v2.0, xxx.apk.v3.0, where 2.0 and 3.0 are version numbers; if the version number changes, the upgrading file corresponding to the version number modifies the logic program of the service engine, namely, the upgrading is carried out greatly; if the version number is not changed, it indicates that the upgrade file corresponding to the version number does not modify the logic program in the service engine, that is, a minor upgrade, such as: on the premise of not changing the logic program, the functions of the service engine are increased, or the display effect of the service engine is optimized, or the file or the picture used for displaying on the APP in the service engine is modified.
S203: if yes, setting the history file as a target file, identifying difference information which is different from the target file in the upgrade file, summarizing the difference information, and packaging to obtain a difference upgrade package; and taking the differential upgrading package as an upgrading program package.
For the small upgrade, if the service engine of the APP is upgraded integrally, the terminal can be blocked due to the fact that the terminal acquires overlarge data, and light-weight operation of the terminal is not facilitated; therefore, under the prerequisite that guarantees that the terminal can be upgraded smoothly, make the terminal carry out the required data bulk of upgrading reach minimumly, this step is through extracting in the upgrading file with difference information between all historical files in the database is gathered the packing and is obtained difference upgrading package, will difference upgrading package is as upgrading procedure package, makes the terminal can accomplish the upgrading (little upgrading) through this upgrading procedure package, simultaneously, because this upgrading procedure package mainly comprises the difference information between upgrading file and all historical files, consequently, when upgrading the APP at terminal, only need update difference information can realize the upgrading, makes the terminal required data bulk when upgrading reach minimumly, has realized the lightweight operation and the upgrading of terminal.
In a preferred embodiment, the step of setting the history file as the target file includes:
s3-01: identifying a user state of the history file;
s3-02: and summarizing the history files with consistent user states to form a target file, and associating the user states with the target file.
In this embodiment, the user status is formulated according to the distribution area, the authority status, or the user category of the terminal, so that different terminals have different functions or authorities due to different distribution areas, authority statuses, or user categories, form a target file by summarizing the history files with consistent user statuses, and associate the user status with the target file, so as to generate a differential upgrade package for upgrading different terminal functions and authorities.
In a preferred embodiment, the step of identifying difference information between the differences in the upgrade file and the target file includes:
s3-11: obtaining the upgrading password value of each subfile under the upgrading directory of the upgrading file, and summarizing the upgrading password values to manufacture upgrading lightweight files;
s3-12: comparing the upgrade lightweight file with a target password value under a target directory of the target file, identifying an upgrade password value inconsistent with the target password value in the upgrade lightweight file, and setting the upgrade password value as a difference password value;
s3-13: and extracting subfiles corresponding to the difference password values and summarizing to obtain difference information.
In this embodiment, the upgrade lightweight file is a json file, and json (javascript Object notification) is a syntax for storing data and exchanging text information based on a lightweight data exchange format, and is used to transmit data.
The upgrade and target password values are SHA-1 values, SHA (Secure Hash Algorithm), which is a series of cryptographic Hash functions. The SHA-1 value is generated from a maximum of 2^64 bits of the message, a 160-bit digest is generated, and then the subfiles in the upgrade file or the subfiles in the target file are encrypted based on principles similar to the MD4 and MD5 message digest algorithms.
It should be noted that the upgrade password value is an SHA-1 value generated by calculating each subfile in the upgrade file through a secure hash algorithm in the process of creating the upgrade file. Once the upgrade file is changed to a history file, the upgrade password value in the upgrade file will also be changed to a history password value, and if the history file is set as a target file, the history password value in the history file will be changed to a target password value.
Therefore, the updated code value and the target code value are compared to identify the changed subfiles in the updated file and the changed subfiles are used as the difference information, so that the inefficient comparison mode that the current file information is compared one by one is avoided, and the efficiency of comparing and identifying the difference is improved.
Further, after identifying difference information between differences in the upgrade file and the target file, the method further comprises:
s3-21: associating the user state associated with the target file with the difference information.
In the step, the user state is associated with the difference information, so that the difference upgrading packet generated according to the difference information can upgrade the terminal according to the user state of the terminal, and the accuracy of terminal upgrading is ensured.
S204: if not, the upgrade file is used as an upgrade program package.
For the large upgrade, the whole upgrade needs to be performed on the APP of the terminal to replace the logic program therein, so that the upgrade file is directly used as an upgrade package to ensure the integrity and reliability of the upgrade.
S205: and carrying out Hash operation on the upgrading program package to obtain an upgrading Hash abstract, and associating the upgrading Hash abstract with the upgrading program package.
In order to avoid that a Trojan or a virus is implanted due to illegal client tampering in the process of sending an upgrading program package to a terminal, or the upgrading program package is damaged in data transmission, so that the terminal is attacked by the Trojan and the virus due to upgrading of the upgrading program package, or the terminal is difficult to upgrade due to damaged data, the step obtains a difference hash abstract by carrying out hash operation on the upgrading program package, and loads the difference hash abstract and a hash public key into the upgrading program package, so that the terminal carries out hash operation on the upgrading program package to obtain a calculation hash abstract before upgrading through the upgrading program package, and sends the calculation hash abstract to an upgrading server, so that the upgrading server compares the upgrading hash abstract associated with the upgrading program package; if the calculated hash digest is consistent with the differential hash digest, the upgrade package is not tampered and can be safely used, and if the calculated hash digest is not consistent with the differential hash digest, the upgrade package is tampered and should be regarded as a data package with risk.
In this embodiment, an upgrade Hash digest is obtained by performing a Hash operation on the upgrade package through a Hash Algorithm (called Hash Algorithm), where the Hash Algorithm is to convert an input with any length (also called pre-map pre-image) into an output with a fixed length through a Hash Algorithm, and the output is a Hash value (i.e., the Hash digest). Therefore, when the upgrade package is changed, the output hash value is also changed, thereby informing the file user that the current upgrade package has been illegally tampered.
The upgrade hash abstract is stored in the upgrade server, the upgrade server compares the upgrade hash abstract with the calculation hash abstract, and sends safety information or risk information to the terminal, so that the safety evaluation work of an upgrade program package is operated in the upgrade server, an illegal client is prevented from reversely outputting the upgrade hash abstract according to the upgrade program package and the upgrade hash abstract, the upgrade program package with viruses or trojans is generated, and the data safety of the terminal is greatly ensured.
S206: and receiving configuration information sent by a control end, and associating the configuration information with the upgrading program package.
Because the importance degree of the upgrading to the APP of terminal at every turn is different, to some upgrades, even the terminal does not upgrade, the APP of this terminal still can normally be used, and to other upgrades, in case the terminal does not upgrade, will lead to the APP of this terminal to be unable to normally use, consequently, for carrying out the grade to the importance degree of APP upgrading work, this step through the configuration information that the control end sent and with its with the mode that upgrading package is relevant, mark upgrading package's importance degree, wherein configuration information includes: the method comprises forced upgrading and ordinary upgrading, wherein forced upgrading means that if the terminal is not upgraded, the APP of the terminal cannot be used normally, and ordinary upgrading means that even if the terminal is not upgraded, the APP of the terminal can still be used normally. Through will configuration information sends to the terminal for in case the terminal receives the configuration information of forcing the upgrading, will close the APP that this configuration information associated upgrading procedure package corresponds, and pass through the upgrading procedure package upgrades this APP, so that the user at terminal judges whether upgrade through current upgrading procedure package according to its own demand, has improved APP's service engine's reliability and adaptability.
And the configuration information is recorded in a configuration center of an upgrade server as a file for managing an upgrade program package so as to realize the association of the configuration information and the upgrade program package.
S207: monitoring the running state of the terminal, and judging whether the running state meets a preset service side threshold value; if yes, pushing configuration information to the terminal; if not, the running state of the terminal is continuously monitored.
Because if the terminal is in a state of higher operation load, the configuration information is pushed to the terminal, and the terminal acquires the upgrading program package according to the configuration information to upgrade, the terminal is easy to operate and pause, and further the crash or crash occurs,
therefore, in order to avoid the above situation, the step judges whether the running state meets the preset service side threshold value by monitoring the running state of the terminal; if yes, pushing configuration information to the terminal, upgrading the terminal on the premise that the terminal is idle or has low operation load, and effectively guaranteeing the operation stability of the terminal, wherein the operation state comprises the CPU utilization rate and the memory utilization rate. The service-side threshold includes a CPU utilization threshold, such as: 50 percent; memory usage thresholds, such as: 60 percent.
In this embodiment, since the real-time monitoring of the operation state of the large-scale terminal consumes the computing power of the upgrade server, in order to ensure that the upgrade server can smoothly upgrade the terminal served by the upgrade server on the premise of low computing power consumption, the operation state of the terminal is periodically monitored through a preset monitoring period; or dividing a large number of terminals into a plurality of terminal groups, and sequentially polling the running states of the terminals in each terminal group to realize the upgrading of the terminals in the terminal groups one by one.
Further, the upgrade server sends configuration information to the terminal through a preset proxy server/proxy service module.
In fig. 3, the S207 is shown by the following labels:
s71: monitoring the running state of the terminal, and judging whether the running state meets a preset service side threshold value;
s72: if yes, pushing configuration information to the terminal;
s73: if not, the running state of the terminal is continuously monitored.
S208: and receiving an upgrading request sent by the terminal according to the configuration information, and sending an upgrading program package to the terminal according to the upgrading request.
In this step, the upgrade request includes an extraction instruction and a user state, the extraction instruction is message information used by the terminal to extract the upgrade package, and the user state is data information describing the function and the authority of the terminal.
In a preferred embodiment, the step of sending an upgrade package to the terminal according to the upgrade request includes:
s81: extracting the upgrading request to identify the user state of the terminal;
s82: and acquiring an upgrading program package associated with the user state, and sending the upgrading program package to the terminal according to the extraction instruction.
Therefore, the corresponding upgrading program package is sent to the corresponding terminal according to the user state, and the technical effect of specifically upgrading the terminal is achieved.
S209: recording the terminal number of the terminal, and monitoring the process of upgrading the terminal according to the differential upgrading packet, wherein:
if the terminal is monitored to be upgraded successfully, successful information is generated and is associated with the terminal number;
if the terminal upgrading is monitored to be failed, failure information is generated and is associated with the terminal number;
and if the terminal cancels the upgrade, generating cancellation information and associating the cancellation information with the terminal number.
In this step, the terminal number may be an MEI code of the terminal, and the MEI code of the terminal is obtained by extracting the terminal number in the upgrade request. If the upgrading success information sent by the terminal is monitored, judging that the terminal is upgraded successfully; if the upgrade failure information sent by the terminal is monitored, judging that the terminal fails to upgrade; and if the upgrade cancellation information sent by the terminal is monitored, judging that the terminal is upgraded and cancelled.
Further, a statistical table for recording the terminal numbers is constructed, the terminal numbers and the corresponding success information, failure information or cancellation information are recorded in the table corresponding to the terminal numbers, and the association between the terminal numbers and the success information, the failure information or the cancellation information is realized.
Further, the upgrade server records the terminal number of the terminal acquiring the upgrade program package according to the configuration information through a preset proxy server/proxy service module, and monitors the process of upgrading the terminal according to the differential upgrade package.
In fig. 3, the S209 is shown by the following labels:
s91: recording the terminal number of the terminal, and monitoring the process of upgrading the terminal according to the differential upgrading packet;
s92: if the terminal is monitored to be upgraded successfully, successful information is generated and is associated with the terminal number;
s93: if the terminal upgrading is monitored to be failed, failure information is generated and is associated with the terminal number;
s94: and if the terminal cancels the upgrade, generating cancellation information and associating the cancellation information with the terminal number.
S210: and summarizing the obtained terminal numbers, and counting the success information, the failure information and the cancellation information to generate an upgrade report when the number of the terminal numbers reaches a preset counting threshold value.
In this step, the obtained terminal numbers are summarized, and if the number of the terminal numbers reaches the statistical preset, for example: 10000, counting the number of success information, failure information and cancellation information associated with each terminal number, and taking the sum of the number of the success information, the number of the failure information and the number of the cancellation information as the arrival number;
dividing the number of arrivals by the statistical threshold to obtain a proportion for representing installation of the terminal after receiving the upgrade package, namely: the installation rate; and dividing the number of the success information by the number of the arrival information to obtain a success rate, dividing the number of the failure information by the number of the arrival information to obtain a failure rate, and dividing the number of the cancellation information by the number of the arrival information to obtain a risk rate. And summarizing the installation rate, the success rate, the failure rate and the risk rate to form an upgrade report of the upgrade program package.
Further, when the number of the terminal numbers reaches a preset statistical threshold value, the number of the upgrading program packages sent by the upgrading server is calculated and is used as the sending number; and dividing the statistical threshold value by the sending number to obtain a distribution arrival rate, and loading the distribution arrival rate into the test report.
In a preferred embodiment, after the counting the success information, the failure information and the cancellation information to generate an upgrade report, the method further includes:
and saving the upgrade file as a new history file in the database, or saving the differential upgrade package as a new history file in the database.
The upgrade file is stored in the database as a new history file, and the differential upgrade package is stored in the database as a new history file, so that comparison with the upgrade file obtained next time is facilitated.
Example three:
referring to fig. 4, an upgrade package generation and management apparatus 1 of the present embodiment includes:
the input module 11 is used for receiving an upgrade file;
an upgrade determination module 12, configured to identify a database corresponding to the upgrade file, and determine whether the database has a history file with a version number consistent with that of the upgrade file;
a differential upgrade module 13, configured to set the history file as a target file, identify difference information between the upgrade file and the target file, summarize the difference information, and package the difference information to obtain a differential upgrade package; taking the differential upgrading package as an upgrading program package;
and the integral upgrading module 14 is used for taking the upgrading file as an upgrading program package.
Optionally, the upgrade package generation and management apparatus 1 further includes:
and the integrity module 15 is configured to perform hash operation on the upgrade program package to obtain an upgrade hash digest, and associate the upgrade hash digest with the upgrade program package.
Optionally, the upgrade package generation and management apparatus 1 further includes:
and the configuration module 16 is configured to receive configuration information sent by the control end, and associate the configuration information with the upgrade program package.
Optionally, the upgrade package generation and management apparatus 1 further includes:
the state monitoring module 17 is configured to monitor an operation state of the terminal, and determine whether the operation state meets a preset service side threshold; if yes, pushing configuration information to the terminal; if not, the running state of the terminal is continuously monitored.
Optionally, the upgrade package generation and management apparatus 1 further includes:
and the output module 18 is used for receiving an upgrading request sent by the terminal according to the configuration information and sending an upgrading program package to the terminal according to the upgrading request.
Optionally, the upgrade package generation and management apparatus 1 further includes:
the upgrade monitoring module 19 is configured to record a terminal number of the terminal, and monitor a process of upgrading the terminal according to the differential upgrade package, where:
if the terminal is monitored to be upgraded successfully, successful information is generated and is associated with the terminal number;
if the terminal upgrading is monitored to be failed, failure information is generated and is associated with the terminal number;
and if the terminal cancels the upgrade, generating cancellation information and associating the cancellation information with the terminal number.
Optionally, the upgrade package generation and management apparatus 1 further includes:
and the report generation module 10 is configured to summarize the obtained terminal numbers, and when the number of the terminal numbers reaches a preset statistical threshold, count the success information, the failure information, and the cancellation information to generate an upgrade report.
The technical scheme relates to the technical field of computer operation and maintenance, and is used for optimizing the process of upgrading a terminal, and judging whether a historical file with the version number consistent with that of an upgrading file exists in a database or not by identifying the database corresponding to the upgrading file; setting the history file as a target file, identifying difference information which is different from the target file in the upgrade file, summarizing the difference information and packaging to obtain a difference upgrade package, and using the difference upgrade package as an upgrade program package; or using the upgrade file as an upgrade program package; the technical effect of optimizing the operation experience of the mobile terminal is achieved.
Example four:
in order to achieve the above object, the present invention further provides a computer device 5, where components of the upgrade package generation and management apparatus according to the third embodiment may be distributed in different computer devices, and the computer device 5 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including an independent server or a server cluster formed by multiple application servers) that executes a program. The computer device of the embodiment at least includes but is not limited to: a memory 51, a processor 52, which may be communicatively coupled to each other via a system bus, as shown in FIG. 5. It should be noted that fig. 5 only shows a computer device with components, but it should be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
In this embodiment, the memory 51 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 51 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 51 may be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device. Of course, the memory 51 may also include both internal and external storage devices of the computer device. In this embodiment, the memory 51 is generally used for storing an operating system and various application software installed in the computer device, such as program codes of the upgrade package generation and management apparatus in the third embodiment. Further, the memory 51 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 52 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 52 is typically used to control the overall operation of the computer device. In this embodiment, the processor 52 is configured to run program codes stored in the memory 51 or process data, for example, run an upgrade package generation and management apparatus, so as to implement the upgrade package generation and management method of the first and second embodiments.
Example five:
to achieve the above objects, the present invention also provides a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor 52, implements corresponding functions. The computer-readable storage medium of this embodiment is used to store an upgrade package generation and management apparatus, and when executed by the processor 52, implements the upgrade package generation and management method of the first and second embodiments.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An upgrade package generation and management method is characterized by comprising the following steps:
receiving an upgrade file;
identifying a database corresponding to the upgrading file, and judging whether the database has a history file with a version number consistent with that of the upgrading file;
if yes, setting the history file as a target file, identifying difference information which is different from the target file in the upgrade file, summarizing the difference information, and packaging to obtain a difference upgrade package; taking the differential upgrading package as an upgrading program package;
if not, the upgrade file is used as an upgrade program package.
2. The upgrade package generation and management method according to claim 1, wherein the method further comprises, after the differential upgrade package is used as an upgrade package or the upgrade file is used as an upgrade package:
and carrying out Hash operation on the upgrading program package to obtain an upgrading Hash abstract, and associating the upgrading Hash abstract with the upgrading program package.
3. The upgrade package generation and management method according to claim 1, wherein the method further comprises, after the differential upgrade package is used as an upgrade package or the upgrade file is used as an upgrade package:
and receiving configuration information sent by a control end, and associating the configuration information with the upgrading program package.
4. The upgrade package generation and management method according to claim 3, wherein after associating the configuration information with the upgrade package, the method further comprises:
monitoring the running state of the terminal, and judging whether the running state meets a preset service side threshold value; if yes, pushing configuration information to the terminal; if not, the running state of the terminal is continuously monitored.
5. The upgrade package generation and management method according to claim 4, wherein after the configuration information is pushed to the terminal, the method further comprises:
and receiving an upgrading request sent by the terminal according to the configuration information, and sending an upgrading program package to the terminal according to the upgrading request.
6. The upgrade package generation and management method according to claim 5, wherein after sending the upgrade package to the terminal according to the upgrade request, the method further comprises;
recording the terminal number of the terminal, and monitoring the process of upgrading the terminal according to the differential upgrading packet, wherein:
if the terminal is monitored to be upgraded successfully, successful information is generated and is associated with the terminal number;
if the terminal upgrading is monitored to be failed, failure information is generated and is associated with the terminal number;
and if the terminal cancels the upgrade, generating cancellation information and associating the cancellation information with the terminal number.
7. The upgrade package generation and management method according to claim 6, wherein after the process of upgrading the listening terminal according to the differential upgrade package, the method further comprises:
and summarizing the obtained terminal numbers, and counting the success information, the failure information and the cancellation information to generate an upgrade report when the number of the terminal numbers reaches a preset counting threshold value.
8. An upgrade package generation and management apparatus, comprising:
the input module is used for receiving the upgrade file;
the upgrading judging module is used for identifying a database corresponding to the upgrading file and judging whether the database has a history file with a version number consistent with that of the upgrading file;
the differential upgrading module is used for setting the historical file as a target file, identifying difference information which is different from the target file in the upgrading file, summarizing the difference information and packaging to obtain a differential upgrading packet; taking the differential upgrading package as an upgrading program package;
and the integral upgrading module is used for taking the upgrading file as an upgrading program package.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the upgrade package generation and management method according to any one of claims 1 to 7 are implemented by the processor of the computer device when the computer program is executed.
10. A computer-readable storage medium storing a computer program thereon, wherein the computer program stored in the computer-readable storage medium, when executed by a processor, implements the steps of the upgrade package generation and management method according to any one of claims 1 to 7.
CN202110219730.0A 2021-02-26 2021-02-26 Upgrade package generation and management method and device, computer equipment and storage medium Pending CN113031997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110219730.0A CN113031997A (en) 2021-02-26 2021-02-26 Upgrade package generation and management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110219730.0A CN113031997A (en) 2021-02-26 2021-02-26 Upgrade package generation and management method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113031997A true CN113031997A (en) 2021-06-25

Family

ID=76461969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110219730.0A Pending CN113031997A (en) 2021-02-26 2021-02-26 Upgrade package generation and management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113031997A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028078A (en) * 2022-12-15 2023-04-28 广州鲁邦通智能科技有限公司 Software remote upgrading method based on VPN technology
CN117348916A (en) * 2023-12-06 2024-01-05 中邮消费金融有限公司 Script generation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090806A (en) * 2014-07-18 2014-10-08 百度在线网络技术(北京)有限公司 Method and device for processing upgrade patch and upgrade request
CN106648712A (en) * 2017-02-27 2017-05-10 百度在线网络技术(北京)有限公司 Incremental updating packet generating method and device, and server
CN110837393A (en) * 2019-11-14 2020-02-25 北京知道创宇信息技术股份有限公司 Method and device for manufacturing firmware differential upgrade package and readable storage medium
CN111090444A (en) * 2019-12-03 2020-05-01 航天信息股份有限公司 Version upgrading method and device, storage medium and electronic equipment
CN111381858A (en) * 2018-12-29 2020-07-07 深圳Tcl新技术有限公司 Application program upgrading method, server and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090806A (en) * 2014-07-18 2014-10-08 百度在线网络技术(北京)有限公司 Method and device for processing upgrade patch and upgrade request
CN106648712A (en) * 2017-02-27 2017-05-10 百度在线网络技术(北京)有限公司 Incremental updating packet generating method and device, and server
CN111381858A (en) * 2018-12-29 2020-07-07 深圳Tcl新技术有限公司 Application program upgrading method, server and terminal equipment
CN110837393A (en) * 2019-11-14 2020-02-25 北京知道创宇信息技术股份有限公司 Method and device for manufacturing firmware differential upgrade package and readable storage medium
CN111090444A (en) * 2019-12-03 2020-05-01 航天信息股份有限公司 Version upgrading method and device, storage medium and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028078A (en) * 2022-12-15 2023-04-28 广州鲁邦通智能科技有限公司 Software remote upgrading method based on VPN technology
CN116028078B (en) * 2022-12-15 2023-10-03 广州鲁邦通智能科技有限公司 Software remote upgrading method based on VPN technology
CN117348916A (en) * 2023-12-06 2024-01-05 中邮消费金融有限公司 Script generation method, device, equipment and storage medium
CN117348916B (en) * 2023-12-06 2024-03-26 中邮消费金融有限公司 Script generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112994955B (en) Upgrade package sending management method, incremental upgrade package preparation method and related device
CN111698283B (en) Management and control method, device, equipment and storage medium of distributed cluster host
CN111756601A (en) Microservice architecture monitoring method and device, computer equipment and readable storage medium
CN110266872B (en) Address book data management and control method and device, cloud address book system, computer equipment and computer readable storage medium
CN113031997A (en) Upgrade package generation and management method and device, computer equipment and storage medium
CN103607291A (en) Alarm analysis merging method for power secondary system intranet security monitoring platform
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN110705893B (en) Service node management method, device, equipment and storage medium
WO2019192133A1 (en) Electronic apparatus, data link risk pre-warning method, and storage medium
CN105981332A (en) Broadcasting management information using fountain codes
CN109672553A (en) Gateway Dynamic Configuration, system, computer equipment and storage medium
CN111984735A (en) Data archiving method and device, electronic equipment and storage medium
CN114268957A (en) Abnormal business data processing method, device, server and storage medium
CN114036495B (en) Method and device for updating privatized deployment verification code system
CN113961226B (en) Software development kit repairing method, terminal, server and equipment
CN113986296A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN111045856A (en) Method, apparatus and computer program product for managing application systems
CN112131041A (en) Method, apparatus and computer program product for managing data placement
CN112087475A (en) Message pushing method and device for cloud platform component application and message server
CN112910987A (en) Message pushing method, system, device, equipment and storage medium
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
CN109739868B (en) Data processing method and related equipment thereof
CN111552746A (en) Data synchronization method and device, electronic equipment and storage medium
CN111694850B (en) Method, system, equipment and storage medium for recovering single number of logistics electronic bill

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210625