CN115098128A - Software updating method, device, equipment and storage medium - Google Patents

Software updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN115098128A
CN115098128A CN202210650326.3A CN202210650326A CN115098128A CN 115098128 A CN115098128 A CN 115098128A CN 202210650326 A CN202210650326 A CN 202210650326A CN 115098128 A CN115098128 A CN 115098128A
Authority
CN
China
Prior art keywords
version
software
version number
updating
update
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
CN202210650326.3A
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 Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202210650326.3A priority Critical patent/CN115098128A/en
Publication of CN115098128A publication Critical patent/CN115098128A/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
    • 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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a software updating method, a device, equipment and a storage medium, wherein the method comprises the following steps: after a software updating and upgrading thread is started, acquiring version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software, determining that the target software needs to be updated when the local version number is lower than the latest version number, and downloading a corresponding software updating package according to the local version number, the intermediate version number and a multi-stage updating strategy so as to update the software. The invention realizes the control of the size of the download update package in the software update process, saves the software update time and improves the software update efficiency.

Description

Software updating method, device, equipment and storage medium
Technical Field
The present invention relates to the field of software, and in particular, to a software updating method, apparatus, device, and storage medium.
Background
In the modern society, software APPs in mobile terminal devices (including mobile devices such as mobile phones, tablet computers, mobile PCs and the like) have already filled the aspects of people's lives, and for each piece of software, the software updater has its dominance and periodicity, and can perform targeted optimization on the software according to the application direction of the software and the use and feedback conditions of users, integrate the software into a software version update package, and upload the software to a server for the users to download and update.
In the prior art, in the process of software version update, in order to upgrade software update of users who use old versions and users who use old version installation packages for software installation, update package files of version update upgrade must include update contents of a plurality of old versions, so that update package files of high versions become larger and larger along with iteration of versions, for most users who update software in time, the software version used by the users is close to the latest version, only the latest modified files need to be updated after the new version is released, but the software update needs to be downloaded and the user update with the lower software version is the same size of the software update package, which not only causes too much time consumption in downloading the software update package, but also increases download flow loss.
Therefore, in order to improve the user experience, a method for effectively solving the above problems is urgently needed.
Disclosure of Invention
The invention mainly aims to provide a software updating method, a software updating device, software updating equipment and a storage medium, and aims to effectively control the size of an updating packet, reduce the updating and downloading time and reduce the consumption of software updating flow.
In order to achieve the above object, the present invention provides a method for updating software, including:
after a software updating and upgrading thread is started, acquiring version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
when the local version number is lower than the latest version number, determining that the target software needs to be updated;
and downloading a corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software.
Optionally, the step of downloading a corresponding software update package according to the local version number, the intermediate version number, and a multi-level update policy to update software includes:
when the intermediate version number is one, determining whether the local version number is lower than the intermediate version number;
if the local version number is not lower than the intermediate version number, downloading the latest version update package for software update;
when the number of the intermediate version numbers is multiple, determining whether the local version number is lower than the latest intermediate version number;
and if the local version number is not lower than the latest intermediate version number, downloading the latest version installation package to update the software.
Optionally, after the step of determining whether the local version number is lower than the intermediate version number when the intermediate version number is one, the method further includes:
if the local version number is lower than the intermediate version number, downloading the intermediate version update package for updating and upgrading, and then downloading the latest version update package for upgrading to the latest version.
Optionally, when the number of the intermediate version numbers is multiple, after the step of determining whether the local version number is lower than the latest intermediate version number, the method further includes:
if the local version number is lower than the latest intermediate version number, comparing the local version number with the rest intermediate version numbers from low to high in sequence, and determining a first initial update version number higher than the local version number;
and after the update package corresponding to the initial update version number is downloaded for updating, sequentially downloading the update packages with the version higher than that of the initial update version number for updating the software until the new version of the target software is updated.
In order to achieve the above object, an embodiment of the present invention further provides a software updating method applied to a server, where the software updating method includes:
after a software updating and upgrading thread on a terminal side is started, obtaining version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
the version configuration information is sent to the terminal, so that when the local version number is lower than the latest version number, the terminal determines that the target software needs to be updated; triggering a corresponding software updating package downloading request according to the local version number, the intermediate version number and a multi-level updating strategy;
and receiving a software update package downloading request sent by the terminal, and sending a corresponding software update package to the terminal according to the software update package downloading request so as to update software.
Optionally, before the step of obtaining the version configuration information of the currently running target software after the software update and upgrade thread is started, the method further includes:
when the fact that a new version update package is uploaded is detected, whether the version update times reach a preset threshold value is detected;
and if the version updating times are higher than the threshold value of the version updating times, setting the current updating version as an intermediate version, generating an updating packet of the corresponding intermediate version, and writing corresponding version information into the version configuration information.
Optionally, before the step of obtaining the version configuration information of the currently running target software after the software update and upgrade thread on the terminal side is started, the method further includes:
detecting whether the size of a current latest version update package of target software exceeds a preset threshold, and if so, setting the current latest version as an intermediate version after the next version update package is detected to be uploaded; or
In the process that the target software is externally released to the latest version, if the size of one or more update packages of the low versions lower than the latest version is detected to exceed a preset threshold, the detected low versions are set as the intermediate versions.
In order to achieve the above object, an embodiment of the present invention further provides a software updating apparatus, where the software updating apparatus includes:
the software upgrading method comprises the steps that an information acquisition module is used for acquiring version configuration information of currently running target software after a software updating and upgrading thread is started, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
the determining module is used for determining that the target software needs to be updated when the local version number is lower than the latest version number;
and the updating and upgrading module is used for downloading the corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software.
In order to achieve the above object, an embodiment of the present invention further provides a terminal device, where the terminal device includes: a memory, a processor and a software update program stored on the memory and executable on the processor, the software update program when executed by the processor implementing the steps of the software updating method as claimed in any one of the above.
To achieve the above object, an embodiment of the present invention further provides a storage medium, where a software updating program is stored, and the software updating program implements the steps of the software updating method described above when executed by a processor.
The software updating method, the device, the equipment and the storage medium provided by the embodiment of the invention divide a software updating version into a plurality of updating intervals and a multi-level updating strategy by setting an intermediate version, obtain version configuration information of currently running target software after a software updating upgrading thread is started, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software, determine that the target software needs to be updated when the local version number is lower than the latest version number, and download a corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software. The software is upgraded by a multi-level updating strategy, so that the size of an updating packet can be effectively controlled, the updating and downloading time is reduced, and the software is quickly upgraded and updated. Based on the scheme of the invention, the software version is divided into a plurality of levels by setting one or more intermediate versions from the process of software version iteration, the size of the content of the software version needing to be updated by a user is determined by judging the software version of the user, and the software is upgraded by introducing a multi-level updating strategy, so that the size of a download updating packet is controlled, the software updating time is reduced, and the flow loss of software updating is reduced.
Drawings
FIG. 1 is a functional block diagram of a terminal device to which a software updating apparatus of the present invention belongs;
FIG. 2 is a flowchart illustrating an exemplary embodiment of a software update method according to the present invention;
FIG. 3 is a flowchart of another exemplary embodiment of a software update method of the present invention;
FIG. 4 is a flowchart illustrating a software update method according to another exemplary embodiment of the present invention;
FIG. 5 is a flowchart illustrating a software update method according to another exemplary embodiment of the present invention;
fig. 6 is a flowchart illustrating a software updating method according to another exemplary embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "part", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The main solution of the embodiment of the application is as follows: the method comprises the steps of writing corresponding version configuration information in a configuration file by setting one or more intermediate versions, obtaining the version configuration information of currently running target software after a software updating and upgrading thread is started, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software, determining whether the target software needs to be updated or not by the fact that the local version number is lower than the latest version number, determining a starting updating version of the target software by the magnitude of the local version number and the intermediate version number when the software needs to be updated, and downloading a corresponding software updating package according to the starting updating version and through a set multi-level updating strategy so as to update the software. The software version is divided into a plurality of levels through the set intermediate version, the size of the content of the software version which needs to be updated by a user is determined through the judgment of the software version of the user, the size of the downloaded update package is further controlled, and the downloading time of the update package is reduced. Based on the scheme of the invention, the software version is divided into a plurality of levels by setting one or more intermediate versions from the process of software version iteration, the size of the content of the software version needing to be updated by a user is determined by judging the software version of the user, and the software is upgraded by introducing a multi-level updating strategy, so that the size of a download updating packet is controlled, the software updating time is reduced, and the flow loss of software updating is reduced.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the software updating apparatus of the present application belongs. The software updating device can be a device which is independent of the terminal equipment and can carry out software downloading and software updating, and the software updating device can be borne on the terminal equipment in a hardware or software mode. The terminal device can be an intelligent mobile terminal with a data processing function, such as a mobile phone and a tablet personal computer, and can also be a fixed terminal device or a server with a data processing function.
In this embodiment, the terminal device to which the software updating apparatus belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a software update program, and the software update apparatus may store information such as version configuration information and a software update package of currently running target software in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a wired network interface, a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein when the software updating apparatus is a terminal device used by a user, the software updating program in the memory 130 realizes the following steps when executed by the processor:
after a software updating and upgrading thread is started, acquiring version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
when the local version number is lower than the latest version number, determining that the target software needs to be updated;
and downloading a corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software.
Further, the software update program in the memory 130 when executed by the processor further implements the steps of:
when the intermediate version number is one, determining whether the local version number is lower than the intermediate version number;
if the local version number is not lower than the intermediate version number, downloading the latest version update package for software update;
when the number of the intermediate version numbers is multiple, determining whether the local version number is lower than the latest intermediate version number;
and if the local version number is not lower than the latest intermediate version number, downloading the latest version installation package to update the software.
Further, the software update program in the memory 130 when executed by the processor further implements the steps of:
if the local version number is lower than the intermediate version number, downloading the intermediate version update package for updating and upgrading, and then downloading the latest version update package for upgrading to the latest version.
Further, the software update program in the memory 130 when executed by the processor further implements the steps of:
if the local version number is lower than the latest intermediate version number, comparing the local version number with the rest intermediate version numbers from low to high in sequence, and determining a first initial update version number higher than the local version number;
and after the update package corresponding to the initial update version number is downloaded for updating, sequentially downloading the update packages corresponding to the version numbers higher than the initial update version number for updating the software until the new version of the target software is updated.
When the terminal device to which the software updating apparatus is applied is a server, the software updating program in the memory 130 implements the following steps when executed by the processor:
after a software updating and upgrading thread on a terminal side is started, acquiring version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
the version configuration information is sent to the terminal, so that when the local version number is lower than the latest version number, the terminal determines that the target software needs to be updated; triggering a corresponding software updating package downloading request according to the local version number, the intermediate version number and a multi-level updating strategy;
and receiving a software update package downloading request sent by the terminal, and sending a corresponding software update package to the terminal according to the software update package downloading request so as to update the software.
Further, the software update program in the memory 130 when executed by the processor further performs the steps of:
when the fact that a new version update package is uploaded is detected, whether the version update times reach a preset threshold value is detected;
and if the version updating times are higher than the threshold value of the version updating times, setting the current updating version as an intermediate version, generating an updating packet of the corresponding intermediate version, and writing corresponding version information into the version configuration information.
Further, the software update program in the memory 130 when executed by the processor further implements the steps of: when the generation of a new intermediate version is detected, detecting whether the number of the intermediate versions reaches a preset reasonable required number;
when the number of the intermediate versions is not higher than the reasonable requirement number, keeping update packages corresponding to all the intermediate versions and version information in the version configuration information;
and when the number of the intermediate versions is higher than the reasonable demand number, combining the first intermediate version and the second intermediate version into a second intermediate version, and deleting the version information of the first intermediate version in the version configuration information.
According to the scheme, a software updating process is divided into a plurality of levels with different intermediate version numbers in a mode of setting an intermediate version, after a software updating and upgrading thread is started, version configuration information of currently running target software is acquired, the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software, when the local version number is lower than the latest version number, the target software is determined to be updated, and a corresponding software updating package is downloaded according to the local version number, the intermediate version number and a multi-level updating strategy to update the software. The software is upgraded by a multi-level updating strategy, so that the size of an updating packet can be effectively controlled, the updating and downloading time is reduced, and the software is quickly upgraded and updated. Based on the scheme of the invention, the software version is divided into a plurality of intermediate version levels by setting one or more intermediate versions from the process of software version iteration, the initial update version of the target software which needs to be updated by the user is determined by judging the target software version of the user, and then the software is updated by introducing a multi-level update strategy, so that the size of the download update package is controlled, the software update time is shortened, and the flow loss of the software update is reduced.
Based on the above terminal device architecture but not limited to the above architecture, embodiments of the method of the present application are provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of a software updating method according to the present application when a software updating apparatus is a terminal device used by a user. The software updating method comprises the following steps:
step S10, after the software updating and upgrading thread is started, obtaining the version configuration information of the currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
the execution main body of the method of this embodiment may be a software updating device, or may be a software updating terminal device or a server, for example, the software updating device in this embodiment may be integrated on a terminal device such as a smart phone, a tablet computer, and the like having a data processing function.
The scheme of the embodiment mainly realizes the optimization of the upgrading process of the software, particularly the software to be upgraded, reduces the size of the downloaded updating packet, shortens the downloading time of the updating packet and reduces the flow loss.
The embodiment of the invention starts from the practical problem that the software updating package is overlarge, introduces the concept of the intermediate version, divides the software updating iteration process into one or more grades, and each grade version has a corresponding version number.
Specifically, after a software updating program of the target software is started, a local version number of the local target software is analyzed, then, a local terminal sends a corresponding network request to a server, establishes network connection with the server, sends a version configuration file downloading request to the server, and downloads a version configuration file after the local terminal establishes communication connection with the server, wherein the version configuration file comprises local configuration information, the version configuration file is analyzed to obtain corresponding version configuration information, and the version configuration information comprises information such as a latest version number and an intermediate version number, so that a software updating and upgrading thread can perform next processing.
In this embodiment of the present invention, the version configuration file may include version configuration information, and the version configuration information may include: different version numbers of the software, such as the latest version number and one or more intermediate version numbers, etc. When the software needs to be updated, if the version configuration information contains the version information of the intermediate version, the software updating and upgrading thread can quickly update the software according to the multi-level updating strategy through the version information of the intermediate version, so that the time consumption for updating is reduced.
Step S20, comparing the local version number with the latest version number to obtain the comparison result of whether the currently running software needs to be updated;
after the version configuration information is obtained, the software updating and upgrading thread compares the local version number of the target software with the latest version number in the version configuration information, determines whether the software is lower than the latest version, and further determines whether the software needs to be updated.
Specifically, after a software updating and upgrading thread of target software in a local terminal is started, a version self-checking program starts to run, a local version number of the target software in a local file is analyzed, communication connection is established with a server or a cloud database, a downloading request of a version configuration file is sent to the server, the version configuration file is obtained, version configuration information such as a latest version number and an intermediate version number is obtained according to the version configuration file, and whether the software needs to be updated is determined by comparing the local version number with the latest version number in the version configuration information;
when the local version number is detected to be not lower than the version number in the latest version configuration information, the target software does not need to be updated;
and on the contrary, when the local version number is lower than the latest version number, the target software needs to be updated.
For example, a user installs target software on a local terminal by using an old-version installation package, after a target software program is started, the user performs version self-check to obtain a local version number, then establishes communication connection with a server or a cloud database corresponding to the target software to obtain a version configuration file, obtains a latest version number and an intermediate version number according to the version configuration file, determines that the software needs to be updated when the local version number is detected to be lower than the latest version number, pops up a window of the version which needs to be updated by the software program, provides an option card which is updated immediately and later for the user to select, and updates and upgrades the target software according to a multi-level updating strategy after an instruction of updating immediately is received.
And step S30, downloading the corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software.
After a software updating thread of target software is started, acquiring a local version number and a version configuration file in a server corresponding to the target software, acquiring a latest version number and an intermediate version number according to the version configuration file, determining whether the target software needs to be updated according to the local version number and the latest version number of the target software, if the target software needs to be updated, sequentially comparing the local version number of the target software with the intermediate version number in the configuration file from low to high again, and downloading a corresponding software updating package according to a multi-level updating strategy to update the software.
According to the scheme, after the software updating and upgrading thread is started, the local version number of the target software which runs locally and the version configuration information in the server corresponding to the target software are obtained, wherein the version configuration information comprises the latest version number and at least one intermediate version number of the target software, when the local version number is lower than the latest version number, the target software is determined to be updated, and then the corresponding software updating package is downloaded according to the local version number, the intermediate version number and the multi-stage updating strategy so as to update the software. Based on the scheme of the invention, from the perspective of the software version iteration process, the software version is divided into a plurality of update version grades by setting one or more intermediate versions, the update version grade of the target software is determined according to the version of the target software of the user, the update version grade is determined, and the corresponding software update package is downloaded through a multi-grade update strategy to update and upgrade the target software, so that the size of the downloaded update package is controlled, the software update time is shortened, and the flow loss of software update is reduced.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a software updating method according to another exemplary embodiment of the present invention. Based on the embodiment shown in fig. 2, in this embodiment, in step S30, the step of downloading the corresponding software update package according to the local version number, the intermediate version number, and the multi-level update policy to update the software includes:
step S301, determine whether the intermediate version number is one.
Step S302, when there is one intermediate version number, judging whether the local version number is not lower than the intermediate version number.
Step S303, if the local version number is not lower than the intermediate version number, the latest version update package is downloaded to update the software. Step S304, if the local version number is lower than the intermediate version number, downloading the update package of the intermediate version for updating, and then downloading the update package of the latest version for updating to the latest version.
Specifically, the software updating and upgrading thread sends a downloading request of a version configuration file to a server after starting, acquires the version configuration file, obtains corresponding version configuration information according to the version configuration file, wherein the version configuration information comprises information such as a latest version number and at least one intermediate version number, determines whether target software needs to be updated according to the version configuration information, determines whether the intermediate version number in the version configuration information is only one if the target software needs to be updated, determines whether the local version number is not lower than the intermediate version number if the intermediate version number in the version configuration information is one, directly downloads an updating packet of the latest version for updating and upgrading the software if the local version number is not lower than the intermediate version number, and determines that the version of the local software is lower if the local version number is lower than the intermediate version number, the intermediate version update package is required to be downloaded firstly for updating and upgrading, and then the latest version update package is downloaded for software updating.
Specifically, if the local version number is lower than the intermediate version number, the intermediate version number is marked as a starting update version number, and in the process of updating the target software, an update package corresponding to the starting update version number is downloaded first for software update, then an update package of the latest version is downloaded, and the target software is updated to the latest version.
For example, target software running in a mobile phone terminal starts a software updating and upgrading thread at a certain time to obtain a local version number Vi, a latest version number Vn and an intermediate version number Vx of the target software, after the local version number Vi is compared with the latest version number Vn, if the target software needs to be updated, the local version number Vi is compared with the intermediate version number Vx, when the local version number Vi is not lower than the intermediate version number Vx, the target software version can be judged to be higher, and in the software updating process, an updating package corresponding to the latest version number Vn is directly downloaded for version updating; and when the local version number Vi is lower than the intermediate version number Vx, the target software used by the user can be judged to be a low version, in the software updating process, the updating package corresponding to the intermediate version number Vx is downloaded firstly for updating, after the updating is finished, the updating package corresponding to the latest version number Vn is downloaded, and the updating is carried out until the latest version is updated.
The update package corresponding to the intermediate version number Vx comprises all contents from the version V1 to the intermediate version Vx; the update package corresponding to the latest version number Vn contains all version update contents between the intermediate version Vx and the latest version Vn.
Step S305, when there are multiple intermediate version numbers, determine whether the local version number is not lower than the latest intermediate version number.
Step S306, if the local version number is not lower than the latest intermediate version number, downloading the update package of the latest version for software update.
And step S307, if the local version number is lower than the latest intermediate version number, comparing the local version number with the rest intermediate version numbers from low to high in sequence, and determining the first initial update version number higher than the local version number.
And step S308, after downloading the corresponding update packages for updating and upgrading from the initial update version number, sequentially downloading the update packages with the version numbers higher than the initial update version number for updating and upgrading the software until the latest version of the target software is updated.
The software updating and upgrading thread starts and then sends a downloading request of a version configuration file to a server to obtain the version configuration file, corresponding version configuration information is obtained according to the version configuration file, when target software needs to be updated, whether the intermediate version number in the version configuration information is only one or not is judged, if the intermediate version number is more than that, a local version number needs to be compared with all the intermediate version numbers, and the method is specifically realized as follows:
firstly, finding out the latest intermediate version number from all intermediate version numbers, comparing a local version number with the latest intermediate version number, and determining whether the local version number is lower than the latest intermediate version number; and if the local version number is not lower than the latest intermediate version number, downloading the latest version installation package to update the software.
If the local version number is lower than the latest intermediate version number, comparing the local version number with the rest intermediate version numbers from low to high in sequence, and determining a first initial update version number higher than the local version number;
and after downloading the corresponding update packages for updating and upgrading from the initial update version number, sequentially downloading the update packages corresponding to the version number higher than the initial update version number for updating and upgrading the software until the new version of the target software is updated.
Specifically, a software upgrading and updating process of target software is started to obtain a local version number, the local version number is in communication connection with a corresponding server of the target software, a version configuration file of the target software is obtained, a latest version number and a plurality of intermediate version numbers are obtained through analysis according to the version configuration file, whether the target software needs to be updated or not is determined according to a comparison result between the local version number and the latest version number, if the software needs to be updated, the latest intermediate version number is found out by the aid of the plurality of intermediate version numbers, and whether the local version number is not lower than the latest intermediate version number is determined according to a comparison result between the local version number and the intermediate version number; if the local version number is not lower than the latest intermediate version number, the latest version of the update package can be directly downloaded for updating and upgrading the software, if the local version number is lower than the latest intermediate version number, the version of the local software is judged to be lower, the local version number needs to be compared with other intermediate version numbers from low to high again, the first intermediate version number higher than the local version number is determined, the determined first intermediate version number higher than the local version number is set as the initial update version number, the corresponding update package is downloaded according to the initial update version number, after updating and upgrading, the update package corresponding to the version number higher than the initial update version number is sequentially downloaded, and the software is updated and upgraded until the new version of the target software is updated.
When the local version number is lower than the latest intermediate version number, the local version number and the rest of intermediate version numbers are sequentially compared from low to high, the first intermediate version number higher than the local version number is determined, the determined first intermediate version number higher than the local version number is marked as a starting update version number, a software update upgrading thread can download an update package of a high version for an update starting point according to the update starting version number, and the update package of a low version is directly skipped over, so that the purpose of controlling the size of the update package is achieved, and the time consumed by software upgrading is reduced.
In some embodiments, a local version of target software is Vi, a software update upgrading thread communicates with a software update server to obtain a version configuration file of the target software, the latest version number of the target software and intermediate version numbers corresponding to multiple intermediate versions of the target software can be obtained according to the version configuration file, the version configuration file is Vx1, Vx2, Vx3 and Vx4 respectively, whether the target software needs to be updated or not is determined through comparison between the local version number and the latest version number, if the target software needs to be updated, the local version number Vi is compared with the intermediate version number V4, if the local version number Vi is not lower than the intermediate version number V4, the target software version is determined to be higher, and in the software update process, an update package corresponding to the latest version number Vn is directly downloaded to update the version; if the local version number Vi is lower than the intermediate version number V4, sequentially comparing the local version number Vi with other intermediate version numbers from low to high again, when a first intermediate version number higher than the local version number is detected, setting the intermediate version number higher than the first local version number as the initial update version number of the target software, and downloading a corresponding software update package for software update and upgrade by a software update and upgrade thread according to the initial update version number; assuming that the intermediate version Vx3 is the first intermediate version higher than the local version Vi, the software version updating detection process marks the intermediate version Vx3 as the initial updating version according to the comparison result, downloads the updating packages corresponding to the intermediate version Vx3 for updating, then downloads the updating packages corresponding to the intermediate version Vx4 for updating, and finally downloads the updating packages of the latest version to update the software to the latest version.
As can be seen from the above, in the embodiment of the present invention, the software upgrading update process of the target software obtains the version configuration file from the server or the cloud database, obtains the latest version number and the corresponding intermediate version number according to the version configuration file, when only one intermediate version exists in the version configuration file, if the local version number is not lower than the intermediate version number, the update package of the latest version can be directly downloaded, when the version configuration file includes a plurality of version numbers, the local version number is compared with the latest intermediate version number to determine whether the local version number is not lower than the latest intermediate version number, if the local version number is not lower than the latest intermediate version number, the update package of the latest version is downloaded to perform software upgrading, and if the local version number is lower than the latest intermediate version number, the local version number is sequentially compared with the rest intermediate version numbers from low to high, obtaining that the first intermediate version number higher than the local version number is set as a starting update version number, and corresponding update package upgrades are downloaded from a low version number to a high version number in sequence from the starting update version number until the update package is updated to the latest version; by the scheme, the size of the update package required to be downloaded by the target software can be quickly determined, the downloading of updated version contents is reduced, and the updating time is shortened.
Referring to fig. 4, fig. 4 is a flowchart illustrating another exemplary embodiment of the software updating method of the present application. The software updating method is applied to a server, and comprises the following steps: step A10, after a software update and upgrade thread at a terminal side is started, obtaining version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
specifically, after a software update upgrading thread of target software in a local terminal is started, a version self-checking program starts to run, a local version number of the target software in a local file is analyzed, a communication connection is established with a server or a cloud database, a downloading request of a version configuration file is sent to the server, the downloading request comprises information such as software information of the target software on a user terminal side and a network source address of the terminal, according to the downloading request, software information and a network address of the target software on the user terminal side are obtained, a version configuration file of the target software is found according to the software information, and the version configuration file comprises version configuration information such as a latest version number and an intermediate version number, so that the version configuration file is sent to the user terminal side.
Step A20, the version configuration information is sent to the terminal, so that when the local version number is lower than the latest version number, the terminal determines that the target software needs to be updated; triggering a corresponding software updating package downloading request according to the local version number, the intermediate version number and a multi-level updating strategy;
specifically, after a software updating thread of user terminal side equipment is started, a downloading request of a target software downloading version configuration file is sent, wherein the downloading request comprises related information of target software in the user terminal side and a network source address of the user terminal side equipment; the user terminal side triggers a corresponding software update package downloading request according to the multi-level update strategy.
Step a30, receiving a software update package downloading request sent by the terminal, and sending a corresponding software update package to the terminal according to the software update package downloading request, so as to update software.
Specifically, after a software update upgrading thread of target software at a local terminal side is started, a version self-checking program is started to operate, a local version number of the target software in a local file is analyzed, communication connection is established to a server side, a downloading request of a version configuration file is sent, after the server side receives a software update package downloading request sent by user terminal side equipment, an update package version number required to be downloaded by the user terminal side equipment is obtained according to the software update package downloading request, and an update package of a corresponding version is sent to the user terminal side equipment according to the update package version number so that the user terminal side equipment can update.
After a user terminal side acquires a version configuration file, a latest version number and an intermediate version number are obtained according to a local version number and the version configuration file, whether target software needs to be updated or not is determined, if the target software needs to be updated, whether the intermediate version number is only one or not is judged, if the intermediate version number is one, whether the local version number is lower than the intermediate version number or not is determined, if the local version number is not lower than the intermediate version number, a latest version downloading request is sent to a server side, and after the server side receives a corresponding request, a corresponding latest version updating packet is found and sent to the user terminal side so as to be updated to the latest version; if the local version number is lower than the intermediate version number, triggering a multi-level updating strategy to send an intermediate version updating package downloading request and a latest version updating package downloading request to a server side, wherein the server side sends an updating package corresponding to the downloading request according to the downloading request so as to update and upgrade software at a user terminal side; when the number of the intermediate version numbers is multiple, determining whether the local version number is lower than the latest intermediate version number, if the local version number is not lower than the latest intermediate version number, sending a request for downloading the latest version installation package to a server side, sending a corresponding update package to a user terminal side according to the request for software update, if the local version number is lower than the latest intermediate version number, sequentially comparing the local version number with the rest intermediate version numbers from low to high to determine a first initial update version number higher than the local version number, triggering a multi-level update strategy by a software upgrade update thread at the user terminal side, starting to gradually send an update package download request corresponding to each intermediate version from the initial update version number to the latest version number to the server side, and according to the download request at the server side, and successively sending update packages corresponding to the downloading requests one by one to the user terminal side so as to carry out software upgrading on the user terminal side. According to the scheme, after the software updating and upgrading thread is started, the local version number of the locally running target software and the version configuration information in the server corresponding to the target software are obtained, the version configuration information comprises the latest version number and at least one intermediate version number of the target software, when the local version number is lower than the latest version number, the target software is determined to be updated, and then the corresponding software updating package is downloaded according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software. Based on the scheme of the invention, from the aspect of the software version iteration process, the update version grade of the target software is determined according to the version of the target software of the user, the update version grade is determined, and the corresponding software update package is downloaded through a multi-grade update strategy to update and upgrade the target software, so that the size of the downloaded update package is controlled, the software update time is reduced, and the flow loss of software update is reduced.
Further, as shown in fig. 5, after the software update and upgrade thread on the terminal side is started, the step of obtaining the version configuration information of the currently running target software may include:
a101, detecting whether the version updating times reach a preset threshold value or not after the uploading of a new version updating package is detected;
step A102, if the number of times of version update reaches the threshold value of the number of times of version update, setting the current update version as an intermediate version, generating an update package of the corresponding intermediate version, and writing corresponding version information in the version configuration information.
When the terminal equipment is a server, software maintenance personnel can preset an intermediate version setting threshold value in the server, the intermediate version is changed or modified once every K versions are supposed to be set, when the system detects that the new versions are uploaded, the accumulated number M in the counter is accumulated once, when the accumulated number M is not higher than the threshold value K, the intermediate version is not required to be set, otherwise, the Kth version is set as the intermediate version, and the version information of the new intermediate version and the corresponding version number are written in a version configuration file;
the whole version iteration process can be divided into a plurality of update version grades by setting the intermediate version, a user can obtain the update version grade of the local version through the comparison relation between the local version number and the intermediate version number, and download a corresponding update package with the update version grade, and software is upgraded.
For example, when the threshold K is 7, i.e., from the V1 version, V1-V7 do not need to set an intermediate version, and when the V8 version is detected, V7 is set as the intermediate version; wherein V7 contains all the updates of versions V1-V7, and the latest version Vn does not need to contain the updates of versions V1-V7; in the interval of the latest version Vn being V7 to V14, the intermediate versions are all V7. If the user uses less than the V7 version, the update package of the intermediate version V7 and the update package of the Vn need to be downloaded for update upgrade. Otherwise, when the user use version is greater than or equal to V7 and less than Vn, only the update package of Vn needs to be downloaded; the update package of the latest version Vn only comprises files required to be modified or added from the V7 to the Vn version, and does not need or optionally comprise files required to be modified or added in the past, such as the V7 version and the like, so that the size of the update package can be effectively controlled;
further, as shown in fig. 6, in the step a102, if the number of version updates reaches the threshold number of version updates, setting the current update version as an intermediate version, generating an update package of the corresponding intermediate version, and writing corresponding version information in the version configuration information may include:
step A103, when detecting the generation of a new intermediate version, detecting whether the number of the intermediate versions reaches a preset reasonable demand number;
when setting the intermediate version threshold value, software maintenance personnel also need to set the reasonable demand number of the intermediate version, after detecting that the intermediate version is generated, the software maintenance personnel need to determine whether the number of the intermediate version exceeds the reasonable demand number, and if the intermediate version exceeds the reasonable demand number, the software maintenance personnel determine whether the intermediate version needs to be deleted according to the number of the intermediate version and the preset reasonable demand number. The problem that the number of times of upgrading and updating the software updating and updating thread occupies a large amount of memory and influences user experience due to too many intermediate versions are generated is avoided.
For example, when the number M of existing intermediate versions is 1, if the target software version is updated to V15, V14 may be set as the intermediate version, and after the updated content in the intermediate version V7 is merged into the intermediate version V14, the intermediate version V7 may be deleted.
When the number M of the intermediate versions is 2, if the target software version is updated to V15, V14 may be set as the second intermediate version, and the intermediate version V7 may be left as the first intermediate version.
Step A104, judging whether the number of the intermediate versions is not higher than the reasonable demand number;
step A105: when the number of the intermediate versions is not higher than the reasonable requirement number, keeping update packages corresponding to all the intermediate versions and version information in the version configuration information;
step A106: and when the number of the intermediate versions is higher than the reasonable requirement number, combining the first intermediate version and the second intermediate version into a second intermediate version, and deleting the version information of the first intermediate version in the version configuration information.
When the number of the intermediate versions is not higher than the reasonable requirement number, keeping the update packages corresponding to all the intermediate versions and the version information in the version configuration information, and generating the update packages of the new intermediate versions and the corresponding version numbers, wherein the version numbers are written into the version configuration file to be used as the latest intermediate version numbers;
when the number of the intermediate versions is higher than the reasonable demand number, in some embodiments, the first intermediate version and the second intermediate version are merged into the second intermediate version, and the version information of the first intermediate version in the version configuration file is deleted.
For example, if the target software version is updated to V22, V21 may be set as the intermediate version, and the intermediate version V10 may be deleted after the updated content in the intermediate version V10 is merged into the intermediate version V20.
In some other embodiments, when it is detected that the number of the intermediate versions is greater than the reasonable requirement number, the update packages of two adjacent intermediate versions are compared in size, and the two versions with the largest difference are selected to be combined, that is, the update content of the intermediate version of the low version is combined into the update package of the intermediate version of the high version, and the version number of the intermediate version of the low version and other version configuration information about the intermediate version of the low version in the version configuration file are deleted.
In the embodiment of the invention, the more the number of the intermediate versions is, the more the users are suitable for, but the number of the intermediate versions also increases the complexity of the target software update, so that the number of the intermediate versions must be set within a reasonable interval range.
In some other embodiments, the software updater may further set the intermediate version by presetting an update package size threshold, and the specific implementation method is as follows:
the system automatically detects whether the size of the existing latest version update package exceeds a preset threshold, and if the size of the existing latest version update package exceeds the preset threshold, the existing latest version is set as an intermediate version after the next version update package is detected to be uploaded.
For example, when the software is updated from the V1 to the V7, and the size of the update package of the V7 version is found to exceed the preset threshold, after the V8 version is uploaded, the V7 version is set as the intermediate version, and at this time, the update package of the intermediate version V7 includes all the version upgrade contents of V1 to V7, and a user using the V7 version and a version using software higher than the V7 only needs to download the version upgrade contents including the V8 to the latest version Vn during updating, and the high-version user can be prevented from downloading the updated large file by the size of the update package between the comparison versions.
In other cases, in the process of external release of target software to the V7 version, where the V5 update package containing files modified or added by several updates of V1-V2, V2-V3, V3-V4 and V4-V5 is larger and exceeds a specified threshold, V5 is set to the intermediate version, where the update package of the V5 version contains all version updates of V1-V5, and the update package of V7 only needs to contain smaller files that need to be updated between the two versions of V6 and V7, when a user higher than the V5 version performs software upgrade update. Only a small update package of the V7 version needs to be downloaded, so that the size of the update package is effectively controlled, the size of the update package which is updated to the V7 by a user using the V5 or V6 version is reduced, the downloading time is reduced, and the downloading flow is saved.
In some other embodiments, the generation manner of the intermediate version may combine the above two, specifically including:
a software updater presets a larger update package size threshold and a version update time threshold;
when detecting that a certain version update package exceeds an update package size threshold, generating a corresponding intermediate version, and meanwhile, clearing 0 by a version update time accumulator M;
after the number of times of the version reaches a preset number threshold, generating a corresponding intermediate version, and meanwhile, updating the number accumulator M to clear 0;
similarly, the intermediate version also needs to set a reasonable number, and after the number of the intermediate versions exceeds the reasonable number, the intermediate versions may be pruned and merged according to the setting manner of the intermediate version in step a 105.
For example, when the update number threshold K is 7, the size of an update package updated from version V1 to version V12 does not have any version exceeding a specified threshold, when the size of the V13 update package is found to exceed a specified threshold value in the process of updating the external release V13 version, the V13 version is set as an intermediate version after the V14 version is uploaded, while version V14 does not set intermediate versions, and likewise, software updaters can limit the number of intermediate versions by setting a reasonable number of intermediate versions, if the number of existing intermediate versions M is 1, the V13 update package needs to contain the file contents that are modified or added when 12 version updates such as V1-12 are upgraded to the V13 version, after the intermediate version of V13 is generated, it is necessary to delete the relevant configuration information of the intermediate version V7 version, and merge the updated content of the intermediate version V7 version into the V13 version;
if the intermediate version reasonably exists in the number M of 2, the V7 intermediate version is reserved, and the V13 update package only needs to contain the content required by the update of the V7-12 version to the V13; if the update package size updated from version V14 to V20 does not exceed the specified threshold, the V20 version is set to the intermediate version after release of version V21. But beyond the specified reasonable number, intermediate version V7 may be merged into intermediate version V13, an update package for the new V13 version is generated, and the version configuration information for intermediate version V7 in the version configuration file is deleted.
The setting mode of the intermediate version can keep a plurality of intermediate versions according to the reasonable demand number of the intermediate versions. The method for generating the intermediate version is more flexible and more effective, and can avoid the situation that a user with a higher version and needing to be updated downloads a larger update package of the file to the greatest extent.
It can be seen from the above method that the software updating method, apparatus, device and storage medium provided in the present invention, by setting an intermediate version, divide the software updating version into multiple updating version levels, and after the software updating thread is started, obtain the version configuration information of the currently running target software, where the version configuration information includes a local version number, a latest version number and at least one intermediate version number of the target software, and when the local version number is lower than the latest version number, determine that the target software needs to be updated, and download the corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating policy, so as to update the software. The software is upgraded by a multi-level updating strategy, so that the size of an updating packet can be effectively controlled, the updating and downloading time is reduced, and the software is quickly upgraded and updated. Based on the scheme of the invention, the software version is divided into a plurality of levels by setting one or more intermediate versions from the process of iterating the software version, the size of the content of the software version needing to be updated by a user is determined by judging the software version of the user, and the software is upgraded by introducing a multi-level updating strategy, so that the size of a downloading updating packet is controlled, the software updating time is shortened, and the flow loss of software updating is reduced.
In addition, an embodiment of the present application further provides a software updating apparatus, where the software updating apparatus includes:
the software upgrading method comprises the steps that an information acquisition module is used for acquiring version configuration information of currently running target software after a software updating and upgrading thread is started, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
the determining module is used for determining that the target software needs to be updated when the local version number is lower than the latest version number;
and the updating and upgrading module is used for downloading the corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software.
Further, the software updating apparatus further includes:
and the intermediate version generation module is used for detecting that the version updating times reach a preset threshold value after the new version updating package is uploaded, setting the current updating version as the intermediate version, generating the corresponding updating package of the intermediate version, and writing the corresponding version information into the version configuration information.
For the principle and implementation process of software update, please refer to the above embodiments, which are not described herein again.
In addition, the embodiment of the present application further provides a terminal device, where the terminal device includes a memory, a processor, and a software updating program stored on the memory and capable of running on the processor, and the software updating program, when executed by the processor, implements the steps of the software updating method described above.
Since the software update program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and detailed description is omitted here.
Furthermore, an embodiment of the present application also provides a computer-readable storage medium, on which a software update program or an update version dividing program is stored, the software update program, when executed by a processor, implements the steps of the software update method as described above, and the update version dividing program, when executed by the processor, implements the steps of the update version dividing method as described above.
Since the software update program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and detailed description is omitted here.
Compared with the prior art, the software updating method, the device, the equipment and the storage medium provided by the real-time embodiment of the invention divide the software updating version into a plurality of updating intervals and a multi-level updating strategy by setting the intermediate version, acquire the version configuration information of the currently running target software after the software updating thread is started, wherein the version configuration information comprises the local version number, the latest version number and at least one intermediate version number of the target software, determine that the target software needs to be updated when the local version number is lower than the latest version number, and download the corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy to update the software. The software is upgraded by a multi-level updating strategy, so that the size of an updating packet can be effectively controlled, the updating and downloading time is reduced, and the software is quickly upgraded and updated. Based on the scheme of the invention, the software version is divided into a plurality of levels by setting one or more intermediate versions from the process of software version iteration, the size of the content of the software version needing to be updated by a user is determined by judging the software version of the user, and the software is upgraded by introducing a multi-level updating strategy, so that the size of a download updating packet is controlled, the software updating time is reduced, and the flow loss of software updating is reduced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application 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. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A software updating method is applied to a terminal, and comprises the following steps:
after a software updating and upgrading thread is started, acquiring version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
when the local version number is lower than the latest version number, determining that the target software needs to be updated;
and downloading a corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software.
2. The method for updating software according to claim 1, wherein said step of downloading a corresponding software update package for software update according to the local version number and the intermediate version number and a multi-level update policy comprises:
when the intermediate version number is one, determining whether the local version number is lower than the intermediate version number;
if the local version number is not lower than the intermediate version number, downloading the latest version update package for software update;
when the number of the intermediate version numbers is multiple, determining whether the local version number is lower than the latest intermediate version number;
and if the local version number is not lower than the latest intermediate version number, downloading the latest version installation package to update the software.
3. The software updating method according to claim 2, wherein after the step of determining whether the local version number is lower than the intermediate version number when the intermediate version number is one, further comprising:
if the local version number is lower than the intermediate version number, downloading the intermediate version update package for updating and upgrading, and then downloading the latest version update package for upgrading to the latest version.
4. The updating method of claim 2, wherein after the step of determining whether the local version number is lower than a latest intermediate version number when the intermediate version number is plural, further comprising:
if the local version number is lower than the latest intermediate version number, comparing the local version number with the rest intermediate version numbers from low to high in sequence, and determining a first initial update version number higher than the local version number;
and after downloading the corresponding update packages for updating and upgrading from the initial update version number, sequentially downloading the update packages corresponding to the version numbers higher than the initial update version number for updating and upgrading the software until the new version of the target software is updated.
5. A software updating method is applied to a server, and comprises the following steps:
after a software updating and upgrading thread on a terminal side is started, acquiring version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
the version configuration information is issued to the terminal, so that when the local version number of the terminal is lower than the latest version number, the target software is determined to need to be updated; triggering a corresponding software updating package downloading request according to the local version number, the intermediate version number and a multi-level updating strategy;
and receiving a software update package downloading request sent by the terminal, and sending a corresponding software update package to the terminal according to the software update package downloading request so as to update software.
6. The software updating method according to claim 5, wherein before the step of obtaining the version configuration information of the currently running target software after the software updating and upgrading thread on the terminal side is started, the method further comprises:
when the fact that the new version update package is uploaded is detected, whether the number of version update times reaches a preset threshold value is detected;
and if the version updating times are higher than the threshold value of the version updating times, setting the current updating version as an intermediate version, generating an updating packet of the corresponding intermediate version, and writing corresponding version information into the version configuration information.
7. The software updating method according to claim 5, wherein before the step of obtaining the version configuration information of the currently running target software after the software updating and upgrading thread on the terminal side is started, the method further comprises:
detecting whether the size of a current latest version update package of target software exceeds a preset threshold, and if so, setting the current latest version as an intermediate version after the next version update package is detected to be uploaded; or
In the process that the target software is externally released to the latest version, if the size of one or more update packages of the low versions lower than the latest version is detected to exceed a preset threshold, the detected low versions are set as the intermediate versions.
8. A software updating apparatus, characterized in that the software updating apparatus comprises:
the software upgrading method comprises the steps that an information acquisition module is used for acquiring version configuration information of currently running target software after a software updating and upgrading thread is started, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software;
the determining module is used for determining that the target software needs to be updated when the local version number is lower than the latest version number;
and the updating and upgrading module is used for downloading the corresponding software updating package according to the local version number, the intermediate version number and the multi-level updating strategy so as to update the software.
9. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a software updating program stored on the memory and executable on the processor, the software updating program, when executed by the processor, implementing the steps of the method of software updating as claimed in any one of claims 1 to 4, or the steps of the method of software updating as claimed in any one of claims 5 to 7.
10. A storage medium, characterized in that a software update program is stored in the storage medium, which when executed by a processor implements the steps of the method of software updating according to any one of claims 1 to 4, or the steps of the method of software updating according to any one of claims 5 to 7.
CN202210650326.3A 2022-06-10 2022-06-10 Software updating method, device, equipment and storage medium Pending CN115098128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210650326.3A CN115098128A (en) 2022-06-10 2022-06-10 Software updating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210650326.3A CN115098128A (en) 2022-06-10 2022-06-10 Software updating method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115098128A true CN115098128A (en) 2022-09-23

Family

ID=83290612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210650326.3A Pending CN115098128A (en) 2022-06-10 2022-06-10 Software updating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115098128A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130627A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Fitting upgrading method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130627A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Fitting upgrading method and electronic equipment
CN117130627B (en) * 2023-02-28 2024-05-17 荣耀终端有限公司 Fitting upgrading method and electronic equipment

Similar Documents

Publication Publication Date Title
KR100547809B1 (en) Mobile communication terminal with embedded system for software download and software download method
EP3333704B1 (en) Method and apparatus for repairing kernel vulnerability
CN109857548B (en) Storage space optimization method, storage space optimization device, computer equipment and storage medium
CN107589994B (en) Method, device, system and storage medium for managing application process priority
CN107367949B (en) Method, device and system for acquiring product identification
US20140380295A1 (en) Method and system for updating application, and computer storage medium thereof
KR101201276B1 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN110825394A (en) Automatic application program initialization method and system for cloud mobile phone and storage medium
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN102567053A (en) Method and device for downgrading software version
CN115098128A (en) Software updating method, device, equipment and storage medium
CN105656810A (en) Method and device for updating application program
CN102231671A (en) Method for upgrading upgrade object, apparatus, equipment and system thereof
CN101656739A (en) Method, system and equipment for updating assembly
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN112667265A (en) Method and device for updating bootstrap program
CN113535206B (en) Multi-version code upgrading method and system
US20140068586A1 (en) Calendar aware adaptive patching of a computer program
US7401127B2 (en) Communication terminal device and program
CN113778490A (en) Software upgrading processing method and device based on intelligent terminal and intelligent terminal
CN113900723B (en) Common platform updating method, network device and computer readable storage medium
CN106912037A (en) A kind of OTA upgrade methods and device
CN115934130A (en) ECU (electronic control Unit) upgrading method, device, equipment and medium
CN111314446B (en) Resource updating method, device, server and storage medium
KR101559058B1 (en) Method for upgrading software of mobile terminal and mobile terminal device using the same

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