WO2014183692A1 - 一种软件升级方法和装置 - Google Patents

一种软件升级方法和装置 Download PDF

Info

Publication number
WO2014183692A1
WO2014183692A1 PCT/CN2014/078105 CN2014078105W WO2014183692A1 WO 2014183692 A1 WO2014183692 A1 WO 2014183692A1 CN 2014078105 W CN2014078105 W CN 2014078105W WO 2014183692 A1 WO2014183692 A1 WO 2014183692A1
Authority
WO
WIPO (PCT)
Prior art keywords
software
version
module
new version
identifier
Prior art date
Application number
PCT/CN2014/078105
Other languages
English (en)
French (fr)
Inventor
何建桥
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014183692A1 publication Critical patent/WO2014183692A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Definitions

  • the present invention relates to mobile communication technologies, and more particularly to a software upgrade method and apparatus.
  • Software upgrade refers to the software developer who writes the software, because the programmer is not comprehensive or the program function is imperfect. After the software is released, after the program is modified or a new function is added, the patch is released. Users update by downloading these patches.
  • Software upgrades include system software upgrades and client application software upgrades.
  • System software upgrades refer to systems that are replaced with higher versions or download patches to the system to protect them from attacks or add new features.
  • Client application software upgrades are Refer to download and install the latest version of the application software to experience new features.
  • the current software upgrade method generally includes: when the mobile terminal detects that a new version is released, asks the user whether to upgrade, if yes, download the new version file, otherwise it does not download; after the download is completed, ask whether to install, if the selection is , the installation is completed, the upgrade is completed, otherwise the installation is not performed and the software is not upgraded.
  • the object of the present invention is to provide a software upgrade method and device, which can be used for software upgrade.
  • the software is not interrupted.
  • the present invention provides a software upgrade method, which downloads a new version of the software and stores the file, and further includes: detecting a current running state of the software, and continuing to detect until the running state of the software is detected when the current running state is running. For the non-running state, install a new version of the software.
  • the method further comprises: detecting that a new version of the software is released, and confirming that a software upgrade is required.
  • the method further comprises: selecting whether to interrupt the running of the software; if yes, interrupting operation of the software, and executing installing a new version of the software Steps; If the operation of the software is not interrupted, perform the step of continuing the detection.
  • the method further comprises: setting an upgrade mode of the software to be directly interrupted and installed;
  • the method further includes: directly performing the step of installing a new version of the software.
  • the method further comprises: obtaining a unique identifier of the software;
  • the version management tree includes at least one version node, and the version node includes a file corresponding to the version identifier and the version identifier;
  • the method further includes:
  • a new version node is generated in the version management tree, and the new version of the identifier and the downloaded new version file are saved to the new version node.
  • the method further comprises:
  • a version switch command from the outside is detected, and the software is in a non-operation state, and the file corresponding to the version identifier indicated in the version switch command is installed according to the version management tree.
  • the method when the software is in an operating state, the method further includes:
  • the detection continues until the running state of the software is detected to be in a non-operation state, and the file corresponding to the version identifier indicated in the version switching command is installed according to the version management tree.
  • the method further includes: selecting whether to interrupt the Running the software; if yes, interrupting the running of the software, and installing the file corresponding to the version identifier indicated in the version switching command according to the version management tree; if the software is not interrupted, performing the continuous detection A step of.
  • the destruction time is set in advance; the method further comprises: deleting a node where the file of the version that is not used in the destruction time is located.
  • the invention also provides a software upgrading device, which at least comprises:
  • Download the module set to: Download the new version of the software
  • the storage module set to: store the downloaded new version of the software
  • the detecting module is configured to: detect a current running state of the software, continue to detect a current running state of the software when the current running state is running, and send the detection result to the installation module;
  • the installation module is set to:
  • the detection result is that the software is in a non-operation state, and a new version of the software is installed.
  • the detecting module is further configured to:
  • the downloading module is further configured to:
  • the method further comprises:
  • Selecting a module configured to: select whether to interrupt the running of the software when the detection result is that the current running state is running, and send the selection result to the installation module and the detecting module; When: the result of the selection is YES, interrupting the running of the software, and installing a new version of the software;
  • the detecting module is further configured to: when the selection result is no, continue to detect a current running state of the software.
  • the method further comprises:
  • the setting module is set to: set the upgrade mode of the software to be directly interrupted and installed; the installation module is further configured to: directly install a new version of the software.
  • the method further includes: an obtaining module, configured to: obtain a unique identifier of the software; and generate a module, configured to: generate a version management tree according to the obtained identifier, the version management tree includes at least one version node, and the version node includes a version identifier and The file corresponding to the version identifier;
  • the processing module is configured to: the detecting that the software has a new version, generating a new version node in the version management tree, saving the new version identifier and the downloaded new version file to the new version In the node.
  • the detecting module is further configured to: detect a version switching command from the outside; the installing module is further configured to: when the detecting result is that the software is in a non-operation state, according to the version management tree Install the file corresponding to the version identifier indicated in the version switch command.
  • the detecting module is further configured to: when the software is in an operating state, continue to detect a current running state of the software, and send the detection result to the installation module;
  • the installation module is further configured to: when the detection result is that the software is in a non-operation state, install a file corresponding to the version identifier indicated in the version switching command according to the version management tree.
  • the selecting module is further configured to: when the detection result is that the software is in an operating state, select whether to interrupt the running of the software;
  • the installation module is further configured to: when the selection result is yes, interrupt the running of the software, and install a file corresponding to the version identifier indicated in the version switching command according to the version management tree;
  • the detecting module is further configured to:
  • the setting module is further configured to: set a destruction time
  • the software upgrade device further includes:
  • Delete the module set to: Delete the node where the file of the version that was not used during the destruction time is located.
  • the software upgrade method and device provided by the embodiment of the present invention after downloading a new version of the software and storing the software, detecting the current running state of the software, until the running state of the software is not running, installing a new version of the software, thereby performing the software upgrade process
  • the software will not be interrupted and the user experience will be improved.
  • the software upgrade method and device provided by the embodiment of the present invention can also perform free switching between different versions, so that the user can perform version switching and improve the user experience.
  • FIG. 1 is a flowchart of a software upgrade method according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a software upgrade method according to an embodiment of the present invention.
  • FIG. 3 is a structural diagram of a software upgrade apparatus according to an embodiment of the present invention. Preferred embodiment of the invention
  • the present invention provides a software upgrade method, including:
  • Step 100 Download the new version of the software and store it, including:
  • Step 200 Detect the current running state of the software. When the current running state is running, continue to detect until the running state of the software is detected to be non-running state, and install a new version of the software.
  • the method before downloading the new version of the software, the method further includes: detecting that a new version of the software is released, and confirming that a software upgrade is required.
  • the method when detecting that the current running state is running, the method further includes:
  • the method also includes: When the upgrade mode of the setup software is directly interrupted and the software is installed and installed, after downloading the new version of the software and storing it, the method further includes:
  • how to install the downloaded new version file belongs to the prior art. After the software upgrade method downloads the new version of the software and stores it, it detects the current running state of the software, and installs a new version of the software until the running state of the software is in a non-operation state, so that the software operation is not interrupted during the software upgrade process. Improve the user experience.
  • the method may further include:
  • Obtaining a unique identifier of the software generating a version management tree according to the obtained identifier, the version management tree includes at least one version node, and the version node includes a file corresponding to the version identifier and the version identifier.
  • the method also includes:
  • a new version node is generated in the version management tree, and the new version of the logo and the downloaded new version of the file are saved to the new version node.
  • the above software upgrade methods also include:
  • a version switch command from the outside is detected, and the software is in a non-operation state.
  • the version management tree the file corresponding to the version identifier indicated in the version switch command is installed.
  • the mapping between the version switching command and the version identifier can be set in advance, and the version identifier corresponding to the version switching command can be searched according to the corresponding relationship.
  • the file of the node where the version identifier is located in the version management tree is searched, and the search is performed. The file to.
  • the method when the software is in a running state, the method further includes:
  • the method when the software is in a running state, the method further includes:
  • the destruction time is preset; the method further includes: Delete the node where the version of the file that was not used during the destruction time is located.
  • the above method can be freely switched between different versions, so that users can perform version switching and improve the user experience.
  • the present invention also provides a software upgrading apparatus, which at least includes:
  • a storage module for storing a downloaded new version of the software
  • a detection module configured to detect a current running state of the software, and continue to detect a current running state of the software when the current running state is running, and send the detection result to the installation module;
  • the detection module is further used for:
  • Download module also used for:
  • the above software upgrade device also includes:
  • the selection module is configured to select whether to interrupt the running of the software when the detection result is that the current running state is running, and send the selection result to the installation module and the detection module;
  • the detection module is also used to:
  • the above software upgrade device further includes:
  • the above software upgrade device further includes:
  • An obtaining module configured to obtain a unique identifier of the software
  • a generating module configured to generate a version management tree according to the obtained identifier, where the version management tree includes at least one version node, and the version node includes a file corresponding to the version identifier and the version identifier;
  • the processing module is configured to detect that a new version of the software is released, generate a new version node in the version management tree, and save the new version identifier and the downloaded new version file to the new version node.
  • the detection module is further used for:
  • a version switch command from the outside is detected
  • the detection module is further used for:
  • the file corresponding to the version identifier indicated in the version switching command is installed.
  • the selection module is also used to:
  • the detection result is that when the software is in the running state, whether to interrupt the running of the software is selected; the installation module is further configured to:
  • the software is interrupted, and the file corresponding to the version identifier indicated in the version switching command is installed according to the version management tree;
  • the detection module is also used to:
  • the setting module is also used to:
  • the software upgrade device also includes:
  • the delete module is used to delete the node where the file of the unused version during the destruction time is located.
  • the software upgrade method and device provided by the embodiment of the present invention can also perform free switching between different versions, so that the user can perform version switching and improve the user experience.

Landscapes

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

Abstract

一种软件升级方法,下载新版本的软件并存储,还包括:检测所述软件的当前运行状态,在当前运行状态为正在运行时,继续检测直至检测到所述软件的运行状态为非运行状态,安装所述软件的新版本。本发明实施例提出的软件升级方法和装置,下载新版本的软件并存储后,检测软件的当前运行状态,直到软件的运行状态为非运行状态时,安装软件的新版本,从而在软件升级过程中不会中断软件的运行,提高了用户体验。

Description

一种软件升级方法和装置
技术领域
本发明涉及移动通信技术, 尤指一种软件升级方法和装置。
背景技术
软件升级, 是指软件开发者在编写软件的时候, 由于程序设计人员考虑 不全面或程序功能不完善, 在软件发布后, 通过对程序的修改或加入新的功 能后, 以补丁的形式发布, 用户通过下载这些补丁进行更新。 软件升级包括 系统软件升级和客户端应用软件升级两种, 系统软件升级是指系统更换成较 高版本的系统或对系统下载补丁, 使其免受攻击或增加新功能; 客户端应用 软件升级是指下载安装最新版本的应用软件, 体验新功能。
目前的软件升级方法大致包括: 移动终端检测到有新版本发布时, 询问 用户是否进行升级, 如果选择是, 则下载新版本文件, 否则不下载; 下载完 成后, 询问是否进行安装, 如果选择是, 则进行安装, 升级完成, 否则不进 行安装, 软件未升级。
上述软件升级方法中, 在选择对新版本文件进行安装时, 如果该需要升 级的软件处于运行状态, 那就需要中断软件后才能实现软件升级。 这样给用 户带来不便? , 例如用户在进行游戏过程中, 直接安装新版本文件, 可能无 法保存游戏内容就进行了升级, 并且用户无法根据自己的喜好选择软件升级 方法, 降低了用户体验。
另外, 虽然用户能够通过软件升级体验新功能, 但是并不是每一次软件 升级都能够给用户带来满意的体验, 用户可能对新版本的感受低于自己的预 期, 或者希望退回到熟悉的低版本中, 而上述软件升级方法无法直接退回到 低版本中。
发明内容
本发明的目的是提出一种软件升级方法和装置, 能够在进行软件升级时 不中断软件运行。
本发明提出了一种软件升级方法, 下载新版本的软件并存储, 还包括: 检测所述软件的当前运行状态, 在当前运行状态为正在运行时, 继续检 测直至检测到所述软件的运行状态为非运行状态, 安装所述软件的新版本。
优选地, 所述下载新版本的软件之前还包括: 检测到所述软件有新版本 发布, 并确认需要进行软件升级。
优选地, 在检测到所述当前运行状态为正在运行时, 该方法还包括: 选 择是否中断所述软件的运行; 如果是,则中断所述软件的运行,并执行安装所述软件的新版本的步骤; 如果不中断所述软件的运行, 执行继续检测的步骤。
优选地, 该方法之前还包括: 设置所述软件的升级模式为直接中断并安 装时;
所述下载新版本的软件并存储后, 该方法还包括: 直接执行安装所述软 件的新版本的步骤。
优选地, 该方法之前还包括: 获取所述软件的唯一标识;
根据获得的标识生成版本管理树, 版本管理树包括至少一个版本节点, 版本节点包括版本标识和版本标识对应的文件;
当所述检测到所述软件有新版本发布时, 该方法还包括:
在版本管理树中生成一个新的版本节点, 将所述新版本的标识和所述下 载的新版本文件保存到新的版本节点中。
优选地, 该方法还包括:
检测到来自外部的版本切换命令, 并且所述软件处于非运行状态, 按照 所述版本管理树, 安装版本切换命令中指示的版本标识所对应的文件。
优选地, 所述软件处于运行状态时, 该方法还包括:
继续检测直至检测到所述软件的运行状态为非运行状态, 按照所述版本 管理树, 安装所述版本切换命令中指示的版本标识对应的文件。
优选地, 所述软件处于运行状态时, 该方法还包括: 选择是否中断所述 软件的运行; 如果是, 则中断所述软件的运行, 并按照所述版本管理树, 安 装所述版本切换命令中指示的版本标识对应的文件; 如果不中断所述软件的 运行, 执行继续检测的步骤。
优选地, 预先设置销毁时间; 该方法还包括: 删除所述销毁时间内未使 用的版本的文件所在的节点。
本发明还提出一种软件升级装置, 至少包括:
下载模块, 设置为: 下载新版本的软件;
存储模块, 设置为: 存储下载的新版本的软件;
检测模块, 设置为: 检测所述软件的当前运行状态, 在当前运行状态为 正在运行时, 继续检测所述软件的当前运行状态, 并将检测结果发送给安装 模块;
安装模块, 设置为: 所述检测结果为所述软件处于非运行状态时, 安装 所述软件的新版本。
优选地, 所述检测模块, 还设置为:
检测所述软件是否有新版本发布, 并将检测结果发送给下载模块; 所述下载模块, 还设置为:
当所述检测结果为所述软件有新版本发布时, 确认需要进行软件升级。 优选地, 还包括:
选择模块,设置为:在所述检测结果为所述当前运行状态为正在运行时, 选择是否中断所述软件的运行, 并将选择结果发送给安装模块和检测模块; 所述安装模块, 还设置为: 当所述选择结果为是时, 中断所述软件的运 行, 并安装所述软件的新版本;
所述检测模块, 还设置为: 当所述选择结果为否时, 继续检测所述软件 的当前运行 态。
优选地, 还包括:
设置模块, 设置为: 设置所述软件的升级模式为直接中断并安装; 所述安装模块, 还设置为: 直接安装所述软件的新版本。 优选地, 还包括: 获取模块, 设置为: 获取所述软件的唯一标识; 生成模块, 设置为: 根据获得的标识生成版本管理树, 版本管理树包括 至少一个版本节点, 版本节点包括版本标识和版本标识对应的文件;
处理模块, 设置为: 所述检测到所述软件有新版本发布, 在版本管理树 中生成一个新的版本节点, 将所述新版本的标识和所述下载的新版本文件保 存到新的版本节点中。
优选地, 所述检测模块, 还设置为: 检测到来自外部的版本切换命令; 所述安装模块,还设置为: 所述检测结果为所述软件处于非运行状态时, 按照所述版本管理树, 安装版本切换命令中指示的版本标识对应的文件。
优选地, 所述检测模块, 还设置为: 所述软件处于运行状态时, 继续检 测所述软件的当前运行状态, 并将所述检测结果发送给安装模块;
所述安装模块,还设置为: 所述检测结果为所述软件处于非运行状态时, 按照所述版本管理树,安装所述版本切换命令中指示的版本标识对应的文件。
优选地, 所述选择模块, 还设置为: 所述检测结果为所述软件处于运行 状态时, 选择是否中断所述软件的运行;
所述安装模块, 还设置为: 当所述选择结果为是时, 中断所述软件的运 行, 并按照所述版本管理树, 安装所述版本切换命令中指示的版本标识对应 的文件;
所述检测模块, 还设置为:
当所述选择结果为否时, 继续检测所述软件的当前运行状态。
优选地, 所述设置模块, 还设置为: 设置销毁时间;
所述软件升级装置, 还包括:
删除模块, 设置为: 删除所述销毁时间内未使用的版本的文件所在的节 点。
本发明实施例提出的软件升级方法和装置,下载新版本的软件并存储后, 检测软件的当前运行状态, 直到软件的运行状态为非运行状态时, 安装软件 的新版本, 从而在软件升级过程中不会中断软件的运行, 提高了用户体验。 本发明实施例提出的软件升级方法和装置, 还可以在不同版本之间进行 自由切换, 使得用户可以进行版本切换, 提高了用户体验。 附图概述
下面对本发明实施例中的附图进行说明, 实施例中的附图是用于对本发 明的进一步理解, 与说明书一起用于解释本发明, 并不构成对本发明保护范 围的限制。
图 1为本发明实施例提出的软件升级方法的流程图;
图 2为本发明具体实施例的软件升级方法的流程图;
图 3为本发明实施例提出的软件升级装置的结构组成图。 本发明的较佳实施方式
下面结合附图对本发明作进一步的描述, 并不能用来限制本发明的保护 范围。
参见图 1 , 本发明提出了一种软件升级方法, 包括:
步骤 100、 下载新版本的软件并存储, 还包括:
步骤 200、 检测软件的当前运行状态, 在当前运行状态为正在运行时, 继续检测直至检测到软件的运行状态为非运行状态, 安装软件的新版本。
本步骤中, 如何检测软件的当前运行状态属于现有技术, 不在本发明的 保护范围之内。
参见图 2, 上述软件升级方法中, 下载新版本的软件之前还包括: 检测到软件有新版本发布, 并确认需要进行软件升级。
上述软件升级方法中, 在检测到当前运行状态为正在运行时, 该方法还 包括:
选择是否中断软件的运行; 如果是, 则中断软件的运行, 并执行安装软 件的新版本的步骤; 否则, 执行继续检测的步骤。
上述软件升级方法中, 该方法之前还包括: 设置软件的升级模式为直接中断软件运行并安装时, 下载新版本的软件 并存储后, 该方法还包括:
直接执行安装软件的新版本的步骤。
上述软件升级方法中,如何对下载的新版本文件进行安装属于现有技术。 上述软件升级方法下载新版本的软件并存储后, 检测软件的当前运行状 态, 直到软件的运行状态为非运行状态时, 安装软件的新版本, 从而在软件 升级过程中不会中断软件的运行, 提高了用户体验。
上述软件升级方法中, 该方法之前还可以包括:
获取软件的唯一标识; 根据获得的标识生成版本管理树, 版本管理树包 括至少一个版本节点, 版本节点包括版本标识和版本标识对应的文件。
当检测到软件有新版本时, 该方法还包括:
在版本管理树中生成一个新的版本节点, 将新版本的标识和下载的新版 本文件保存到新的版本节点中。
上述软件升级方法还包括:
检测到来自外部的版本切换命令, 并且软件处于非运行状态, 按照版本 管理树, 安装版本切换命令中指示的版本标识所对应的文件。
本步骤中, 可以预先设定版本切换命令和版本标识的对应关系, 根据对 应关系查找版本切换命令对应的版本标识, 按照版本管理树, 查找版本管理 树中版本标识所在节点的文件, 并安装查找到的文件。
上述软件升级方法中, 软件处于运行状态时, 该方法还包括:
继续检测直至检测到软件的运行状态为非运行状态, 按照版本管理树, 安装版本切换命令中指示的版本标识对应的文件。
上述软件升级方法中, 软件处于运行状态时, 该方法还包括:
选择是否中断软件的运行;
如果是, 则中断软件的运行, 并按照版本管理树, 安装版本切换命令中 指示的版本标识对应的文件, 否则执行继续检测的步骤。
上述软件升级方法中, 预先设置销毁时间; 该方法还包括: 删除销毁时间内未使用的版本的文件所在的节点。
上述方法可以在不同版本之间进行自由切换, 使得用户可以进行版本切 换, 提高了用户体验。
参见图 3 , 本发明还提出了一种软件升级装置, 至少包括:
下载模块, 用于下载新版本的软件;
存储模块, 用于存储下载的新版本的软件;
检测模块, 用于检测软件的当前运行状态, 在当前运行状态为正在运行 时, 继续检测软件的当前运行状态, 并将检测结果发送给安装模块;
安装模块,用于检测结果为软件处于非运行状态时,安装软件的新版本。 上述软件升级装置中, 检测模块, 还用于:
检测软件是否有新版本发布, 并将检测结果发送给下载模块;
下载模块, 还用于:
当检测结果为软件有新版本发布时, 确认需要进行软件升级。
上述软件升级装置中, 还包括:
选择模块, 用于在检测结果为当前运行状态为正在运行时, 选择是否中 断软件的运行, 并将选择结果发送给安装模块和检测模块;
安装模块, 还用于:
当选择结果为是时, 中断软件的运行, 并安装软件的新版本;
检测模块, 还用于:
当选择结果为否时,继续检测软件的当前运行状态。上述软件升级装置, 还包括:
设置模块, 用于设置软件的升级模式为直接中断并安装;
安装模块, 还用于:
直接安装软件的新版本。
上述软件升级装置, 还包括:
获取模块, 用于获取所述软件的唯一标识; 生成模块, 用于根据获得的标识生成版本管理树, 版本管理树包括至少 一个版本节点, 版本节点包括版本标识和版本标识对应的文件;
处理模块, 用于检测到软件有新版本发布, 在版本管理树中生成一个新 的版本节点, 将新版本的标识和下载的新版本文件保存到新的版本节点中。
上述软件升级装置中, 检测模块, 还用于:
检测到来自外部的版本切换命令;
安装模块, 还用于:
检测结果为软件处于非运行状态时, 按照所述版本管理树, 安装版本切 换命令中指示的版本标识对应的文件。
上述软件升级装置中, 检测模块, 还用于:
软件处于运行状态时, 继续检测软件的当前运行状态, 并将检测结果发 送给安装模块;
安装模块, 还用于:
检测结果为所述软件处于非运行状态时, 按照所述版本管理树, 安装版 本切换命令中指示的版本标识对应的文件。
上述软件升级装置中, 选择模块, 还用于:
检测结果为所述软件处于运行状态时, 选择是否中断软件的运行; 所述安装模块, 还用于:
当所述选择结果为是时, 中断软件的运行, 并按照版本管理树, 安装版 本切换命令中指示的版本标识对应的文件;
检测模块, 还用于:
当选择结果为否时, 继续检测软件的当前运行状态。
上述软件升级装置中, 设置模块, 还用于:
设置销毁时间;
软件升级装置, 还包括:
删除模块, 用于删除销毁时间内未使用的版本的文件所在的节点。 需要说明的是, 以上所述的实施例仅是为了便于本领域的技术人员理解 而已, 并不用于限制本发明的保护范围, 在不脱离本发明的发明构思的前提 下, 本领域技术人员对本发明所做出的任何显而易见的替换和改进等均在本 发明的保护范围之内。
工业实用性
本发明实施例提出的软件升级方法和装置, 还可以在不同版本之间进行 自由切换, 使得用户可以进行版本切换, 提高了用户体验。

Claims

权 利 要 求 书
1、 一种软件升级方法, 包括, 下载新版本的软件并存储, 还包括: 检测所述软件的当前运行状态, 在当前运行状态为正在运行时, 继续检 测直至检测到所述软件的运行状态为非运行状态, 安装所述软件的新版本。
2、根据权要求 1所述的软件升级方法, 其中, 所述下载新版本的软件之 前还包括: 检测到所述软件有新版本发布, 并确认需要进行软件升级。
3、根据权利要求 1或 2所述的软件升级方法, 其中, 在检测到所述当前 运行状态为正在运行时, 该方法还包括: 选择是否中断所述软件的运行; 如果是,则中断所述软件的运行,并执行安装所述软件的新版本的步骤; 如果不中断所述软件的运行, 执行继续检测的步骤。
4、根据权利要求 1或 2所述的软件升级方法,其中,该方法之前还包括: 设置所述软件的升级模式为直接中断并安装时;
所述下载新版本的软件并存储后, 该方法还包括: 直接执行安装所述软 件的新版本的步骤。
5、 根据权利要求 2所述的软件升级方法, 其中, 该方法之前还包括: 获 取所述软件的唯一标识; 根据获得的标识生成版本管理树, 版本管理树包括 至少一个版本节点, 版本节点包括版本标识和版本标识对应的文件;
当所述检测到所述软件有新版本发布时, 该方法还包括: 在版本管理树 中生成一个新的版本节点, 将所述新版本的标识和所述下载的新版本文件保 存到新的版本节点中。
6、 根据权利要求 5所述的软件升级方法, 其中, 该方法还包括: 检测到来自外部的版本切换命令, 并且所述软件处于非运行状态, 按照 所述版本管理树, 安装版本切换命令中指示的版本标识所对应的文件。
7、根据权利要求 6所述的软件升级方法, 其中, 所述软件处于运行状态 时,该方法还包括: 继续检测直至检测到所述软件的运行状态为非运行状态, 按照所述版本管理树,安装所述版本切换命令中指示的版本标识对应的文件。
8、根据权利要求 6所述的软件升级方法, 其中, 所述软件处于运行状态 时, 该方法还包括: 选择是否中断所述软件的运行; 如果是, 则中断所述软 件的运行, 并按照所述版本管理树, 安装所述版本切换命令中指示的版本标 识对应的文件; 如果不中断所述软件的运行, 执行继续检测的步骤。
9、 根据权利要求 5所述的软件升级方法, 其中, 预先设置销毁时间; 该 方法还包括: 删除所述销毁时间内未使用的版本的文件所在的节点。
10、 一种软件升级装置, 包括:
下载模块, 设置为: 下载新版本的软件;
存储模块, 设置为: 存储下载的新版本的软件;
检测模块, 设置为: 检测所述软件的当前运行状态, 在当前运行状态为 正在运行时, 继续检测所述软件的当前运行状态, 并将检测结果发送给安装 模块;
安装模块, 设置为: 所述检测结果为所述软件处于非运行状态时, 安装 所述软件的新版本。
11、 根据权利要求 10所述的软件升级装置, 其中, 所述检测模块, 还设 置为: 检测所述软件是否有新版本发布, 并将检测结果发送给下载模块; 所述下载模块, 还设置为:
当所述检测结果为所述软件有新版本发布时, 确认需要进行软件升级。
12、 根据权利要求 9或 10所述的软件升级装置, 其中, 还包括: 选择模块,设置为:在所述检测结果为所述当前运行状态为正在运行时, 选择是否中断所述软件的运行, 并将选择结果发送给安装模块和检测模块; 所述安装模块, 还设置为: 当所述选择结果为是时, 中断所述软件的运 行, 并安装所述软件的新版本;
所述检测模块, 还设置为: 当所述选择结果为否时, 继续检测所述软件 的当前运行 态。
13、 根据权利要求 9或 10所述的软件升级装置, 还包括:
设置模块, 设置为: 设置所述软件的升级模式为直接中断并安装; 所述安装模块, 还设置为: 直接安装所述软件的新版本。
14、 根据权利要求 11所述的软件升级装置, 还包括:
获取模块, 设置为: 获取所述软件的唯一标识;
生成模块, 设置为: 根据获得的标识生成版本管理树, 版本管理树包括 至少一个版本节点, 版本节点包括版本标识和版本标识对应的文件;
处理模块, 设置为: 所述检测到所述软件有新版本发布, 在版本管理树 中生成一个新的版本节点, 将所述新版本的标识和所述下载的新版本文件保 存到新的版本节点中。
15、 根据权利要求 14所述的软件升级装置, 其中, 所述检测模块, 还设 置为: 检测到来自外部的版本切换命令;
所述安装模块,还设置为: 所述检测结果为所述软件处于非运行状态时, 按照所述版本管理树, 安装版本切换命令中指示的版本标识对应的文件。
16、 根据权利要求 15所述的软件升级装置, 其中, 所述检测模块, 还设 置为: 所述软件处于运行状态时, 继续检测所述软件的当前运行状态, 并将 所述检测结果发送给安装模块;
所述安装模块,还设置为: 所述检测结果为所述软件处于非运行状态时, 按照所述版本管理树,安装所述版本切换命令中指示的版本标识对应的文件。
17、 根据权利要求 14所述的软件升级装置, 其中, 所述选择模块, 还设 置为: 所述检测结果为所述软件处于运行状态时, 选择是否中断所述软件的 运行;
所述安装模块, 还设置为: 当所述选择结果为是时, 中断所述软件的运 行, 并按照所述版本管理树, 安装所述版本切换命令中指示的版本标识对应 的文件;
所述检测模块, 还设置为: 当所述选择结果为否时, 继续检测所述软件 的当前运行 态。
18、 根据权利要求 14所述的软件升级装置, 其中, 所述设置模块, 还设 置为: 设置销毁时间;
所述软件升级装置, 还包括: 删除模块, 设置为: 删除所述销毁时间内 未使用的版本的文件所在的节点。
PCT/CN2014/078105 2013-12-06 2014-05-22 一种软件升级方法和装置 WO2014183692A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310659029.6A CN104699492A (zh) 2013-12-06 2013-12-06 一种软件升级方法和装置
CN201310659029.6 2013-12-06

Publications (1)

Publication Number Publication Date
WO2014183692A1 true WO2014183692A1 (zh) 2014-11-20

Family

ID=51897751

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078105 WO2014183692A1 (zh) 2013-12-06 2014-05-22 一种软件升级方法和装置

Country Status (2)

Country Link
CN (1) CN104699492A (zh)
WO (1) WO2014183692A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110837377B (zh) * 2018-08-15 2023-08-04 北京国双科技有限公司 一种应用程序的更新方法及装置、存储介质、电子设备
CN110262826A (zh) * 2019-03-05 2019-09-20 上海博泰悦臻网络技术服务有限公司 车载软件配置升级管理方法、服务端、客户端及处理端
CN110377306A (zh) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 用于车载设备升级包的管理方法及装置、介质、服务器
CN116521202B (zh) * 2023-05-04 2023-11-07 浙江大学 一种面向规模化远程零部件固件自动化升级的方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141235A1 (en) * 2006-12-12 2008-06-12 Russell Woodbury System and Method for Transparent Hard Disk Drive Update
CN102253851A (zh) * 2011-07-26 2011-11-23 中兴通讯股份有限公司 一种机顶盒及其升级方法
CN102754082A (zh) * 2010-02-23 2012-10-24 富士通株式会社 更新方法、更新装置、以及更新程序

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442230C (zh) * 2006-08-04 2008-12-10 华为技术有限公司 软件多版本升级的方法及系统
CN101329633A (zh) * 2008-07-25 2008-12-24 北大方正集团有限公司 一种软件升级的方法和软件升级装置
CN101576828B (zh) * 2009-06-01 2014-08-13 中兴通讯股份有限公司 软件版本升级方法及装置、服务器
CN102025778A (zh) * 2010-11-25 2011-04-20 成都勤智数码科技有限公司 一种基于Shell的软件版本升级工作方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141235A1 (en) * 2006-12-12 2008-06-12 Russell Woodbury System and Method for Transparent Hard Disk Drive Update
CN102754082A (zh) * 2010-02-23 2012-10-24 富士通株式会社 更新方法、更新装置、以及更新程序
CN102253851A (zh) * 2011-07-26 2011-11-23 中兴通讯股份有限公司 一种机顶盒及其升级方法

Also Published As

Publication number Publication date
CN104699492A (zh) 2015-06-10

Similar Documents

Publication Publication Date Title
CN102790961B (zh) 应用程序的更新方法、移动终端和服务器
US20150100955A1 (en) Method and System for Updating Software
US20120210312A1 (en) Software upgrading method, software upgrading system and client
CN106325929B (zh) 一种固件升级方法、固件升级装置、冰箱和服务端
CN105511920B (zh) 一种基于容器的移动终端操作系统升级方法和装置
CN106126203B (zh) 一种ota开机加速方法及系统
WO2014183692A1 (zh) 一种软件升级方法和装置
TWI533216B (zh) 作業系統更新方法
WO2017219861A1 (zh) 系统启动模式的控制方法及装置
KR20130094208A (ko) 근접-기반 피어-개시 장치 구성을 위한 방법 및 시스템
WO2018024198A1 (zh) 机顶盒的应用程序升级方法、系统及机顶盒
CN105517015A (zh) 一种wifi产品空中下载OTA升级方法、装置及终端
CN109491698A (zh) 基于热补丁的系统更新方法及装置
CN103840968A (zh) 一种版本更新方法、装置及终端设备
CN104077161A (zh) 一种客户端应用的升级方法及装置
CN106775876B (zh) 安卓系统快速启动应用的方法
KR20150005164A (ko) Fota 시스템 및 그 실행 방법
CN110413292B (zh) 应用程序的轻应用安装方法、移动终端及存储介质
CN102622254B (zh) 电视机宕机处理方法和系统
CN111142900A (zh) 程序更新方法、装置及终端设备
CN107124713B (zh) 一种定制更新方法及移动终端
CN103002436B (zh) 使用安卓平台的终端设备升级方法和设备
JP6635195B2 (ja) 情報処理装置及びアプリケーション管理方法
CN113885921A (zh) 一种嵌入式系统更新的方法及设备
CN104516752A (zh) 一种信息处理方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14798507

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14798507

Country of ref document: EP

Kind code of ref document: A1