WO2016202000A1 - Procédé et dispositif de mise à niveau de retour-arrière programmé différentiel - Google Patents

Procédé et dispositif de mise à niveau de retour-arrière programmé différentiel Download PDF

Info

Publication number
WO2016202000A1
WO2016202000A1 PCT/CN2016/073929 CN2016073929W WO2016202000A1 WO 2016202000 A1 WO2016202000 A1 WO 2016202000A1 CN 2016073929 W CN2016073929 W CN 2016073929W WO 2016202000 A1 WO2016202000 A1 WO 2016202000A1
Authority
WO
WIPO (PCT)
Prior art keywords
differential
upgrade
package
information
module
Prior art date
Application number
PCT/CN2016/073929
Other languages
English (en)
Chinese (zh)
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 WO2016202000A1 publication Critical patent/WO2016202000A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Definitions

  • This document relates to the field of application upgrade technologies, and in particular, to a differential fallback upgrade method and apparatus.
  • the main purpose of the present invention is to provide a differential fallback upgrade method and device, which is to solve the problem that the version cannot be rolled back in time after the upgrade fails.
  • a differential fallback upgrade method includes:
  • the application to be upgraded is rolled back according to the generated differential backoff package.
  • the step of generating a differential backoff packet according to the obtained backoff information includes:
  • the step of generating the differential backoff packet according to the path information includes:
  • the obtained application data segment is encapsulated and digitally signed to generate the differential backoff packet.
  • the method further includes:
  • the differential backoff packet is stored.
  • the method further includes:
  • a differential fallback upgrade device includes an acquisition module, a generation module, an upgrade module, and a first fallback module, where:
  • the obtaining module is configured to: obtain an upgrade package and rollback information corresponding to the upgrade package;
  • the generating module is configured to: generate a differential back-off packet according to the obtained back-off information
  • the upgrade module is configured to: upgrade the application to be upgraded according to the obtained upgrade package;
  • the first back-off module is configured to perform a rollback operation on the to-be-upgraded application according to the generated differential back-off package when the upgrade fails.
  • the generating module includes a parsing unit and a generating unit, where:
  • the parsing unit is configured to: parse the obtained back information, and obtain path information according to the back information;
  • the generating unit is configured to: generate the differential backoff packet according to the path information.
  • the generating unit includes an extracting subunit and a compressing signature subunit, wherein:
  • the extracting subunit is configured to: extract an application data segment corresponding to the path information in application data corresponding to the to-be-upgraded application;
  • the compression signature subunit is configured to encapsulate and digitally sign the acquired application data segment to generate the differential backoff packet.
  • the device further includes:
  • the storage module is configured to: store the differential backoff package.
  • the device further includes a receiving module, an extracting module, and a second backing module, where:
  • the receiving module is configured to: after the upgrade is successful, receive a backoff instruction;
  • the extracting module is configured to: extract the differential back-off package corresponding to the received back-off instruction;
  • the second back-off module is configured to perform a rollback operation on the upgraded application to be upgraded according to the extracted differential back-off package.
  • a computer program comprising program instructions that, when executed by a terminal, cause the terminal to perform any of the differential fallback upgrade methods described above.
  • the differential back-off upgrade method and device obtaineds a differential upgrade package and a differential fallback script by using a complete upgrade data packet, and before the upgrade, a differential back-off package is created according to the differential fallback script, and the digital Sign and save to roll back after the upgrade fails; and if the user does not want to use the upgraded version after the upgrade is successful, you can call the generated differential fallback package to roll back to the pre-upgrade version at any time.
  • FIG. 1 is a flowchart of a first embodiment of a differential fallback upgrade method according to the present invention
  • FIG. 2 is a schematic diagram of a refinement process of step S20 in FIG. 1;
  • step S202 in FIG. 2 is a schematic diagram of a refinement process of step S202 in FIG. 2;
  • FIG. 4 is a flowchart of a second embodiment of a differential fallback upgrade method according to the present invention.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a differential fallback upgrade apparatus according to the present invention.
  • FIG. 6 is a schematic diagram of a refinement function module of the generation module in FIG. 5;
  • FIG. 7 is a schematic diagram of a refinement function module of the generating unit in FIG. 5;
  • FIG. 8 is a schematic diagram of functional modules of a second embodiment of a differential fallback upgrade apparatus according to the present invention.
  • the embodiment of the invention provides a differential fallback upgrade method.
  • FIG. 1 it is a flowchart of a first embodiment of a differential fallback upgrade method according to the present invention.
  • the differential fallback upgrade method includes:
  • Step S10 Obtain an upgrade package and rollback information corresponding to the upgrade package.
  • the upgrade package creation tool on the server to detect whether there is any difference.
  • the version difference is not detected, continue to obtain a comparison analysis between the new version application and the old version application;
  • the upgrade package file is generated according to the comparison result.
  • the rollback information is generated, and the rollback information can be packaged into the upgrade package when the upgrade package is generated by using the upgrade package creation tool.
  • the fallback information can also be saved separately and associated with the upgrade package, for example, it can be named with the same version number, or a method such as adding an identifier to the rollback information.
  • the upgrade package here may be a complete upgrade package, a differential upgrade package, or both upgrade packages, so that the user can enter the upgrade as needed. Line selection; Moreover, the upgrade here may be an upgrade of the operating system of the terminal, or an application software upgrade on the terminal, the principle is the same.
  • the full version of the data packet occupies a large memory and the upgrade speed is slow, and the differential upgrade package differentiates the new version file from the data of the old version application, and obtains the updated patch file.
  • the old version file has 5M
  • the new version file has 8M.
  • the updated part may only be about 3M (here, it should be noted that the differential packet size is not a simple subtraction, in fact, it needs to contain some context-related things), the benefits of using differential upgrade are obvious, users do not need to download the complete 8M
  • the file only needs to download the update part, and the update part may only have 3-4M, which can greatly reduce the loss of traffic. Therefore, in this embodiment, it is preferable to generate a differential upgrade package for upgrading.
  • the backoff information includes the path information of the old version data segment corresponding to the difference data applied by the new and old versions, for example, “xx/xx/filename”, because the difference file generally includes multiple, so back
  • the content of the return information can be:
  • the rollback information may be defined in other manners.
  • the rollback information may include the identifier information of the old version file corresponding to the difference file of the new and old version files, so as to extract corresponding data segments according to the flag information. .
  • Step S20 Generate a differential backoff packet according to the obtained backoff information.
  • step S20 includes the following refinement steps:
  • Step S201 analyzes the obtained back-off information, and acquires path information according to the back-off information.
  • Step S202 generating the differential backoff packet according to the path information. As shown in FIG. 3, step S202 includes the following refinement steps:
  • Step S211 Extract an application data segment corresponding to the path information in the application data corresponding to the to-be-upgraded application.
  • Step S212 the obtained application data segment is encapsulated and digitally signed to generate the differential backoff packet.
  • the information about the corresponding application data segment is included in the rollback information, and the corresponding application data segment is obtained from the terminal system file in the order of multiple fallback subcommands, and the obtained information is obtained after the rollback information line is executed. All the application data segments are encapsulated. After the encapsulation is completed, it can be compressed into a zip file or compressed in another compression format. According to the signature key sent by the server or the signature key preset by the terminal, the number is returned for the rollback packet. Signature, digital signature is a common technical means, and will not be repeated here.
  • step S30 the upgrade application is upgraded according to the obtained upgrade package.
  • Step S40 Perform a rollback operation on the to-be-upgraded application according to the generated differential back-off package when the upgrade fails.
  • An upgrade failure may occur during the upgrade.
  • the differential rollback package is automatically retrieved to roll back and the system is rolled back to the original state.
  • the differential back-off upgrade method proposed in this embodiment uses the data of the new and old versions to compare and obtain the upgrade package and the difference information. Before the upgrade, the differential back-off package is generated according to the difference information, and is digitally signed and saved. Roll back after the upgrade failed.
  • the method further includes:
  • Step S50 storing the differential backoff package.
  • step S60 after the upgrade is successful, a rollback command is received.
  • Step S70 extracting the differential back-off package corresponding to the received back-off instruction.
  • Step S80 Perform a rollback operation on the upgraded application to be upgraded according to the extracted differential backoff package.
  • the user may be provided with a selection interface. The user sends a back-off instruction based on the selection interface. After receiving the back-off instruction issued by the user, the user sends the differential back-off package corresponding to the received back-off instruction, and the application is to be upgraded. Perform a version rollback.
  • the previously generated differential backoff package can be called back to the version before the upgrade.
  • the embodiment of the invention further provides a differential back-off upgrade device.
  • FIG. 5 is a schematic diagram of a first embodiment of a differential fallback upgrade apparatus according to the present invention.
  • the differential fallback upgrade device includes:
  • the obtaining module 10 is configured to: obtain an upgrade package and rollback information corresponding to the upgrade package.
  • the upgrade package creation tool on the server to detect whether there is any difference.
  • the version difference is not detected, continue to obtain a comparison analysis between the new version application and the old version application;
  • the upgrade package file is generated according to the comparison result.
  • the rollback information is generated, and the rollback information can be packaged into the upgrade package when the upgrade package is generated by using the upgrade package creation tool.
  • the fallback information can also be saved separately and associated with the upgrade package, for example, it can be named with the same version number, or a method such as adding an identifier to the rollback information.
  • the upgrade package here may be a complete upgrade package, a differential upgrade package, or both upgrade packages, so that users can select them according to their needs when they need to upgrade.
  • the full version of the data packet occupies a large memory and the upgrade speed is slow, and the differential upgrade package differentiates the new version file from the data of the old version application, and obtains the updated patch file.
  • the old version file has 5M
  • the new version file has 8M.
  • the updated part may only be about 3M (here, it should be noted that the differential packet size is not a simple subtraction, in fact, it needs to contain some context-related things), the benefits of using differential upgrade are obvious, users do not need to download the complete 8M
  • the file only needs to download the update part, and the update part may only have 3-4M, which can greatly reduce the loss of traffic. Therefore, in this embodiment, it is preferable to generate a differential upgrade package for upgrading.
  • the backoff information includes the path information of the old version data segment corresponding to the difference data applied by the new and old versions, for example, “xx/xx/filename”, because the difference file generally includes multiple, so back
  • the content of the return information can be:
  • the rollback information may be defined in other manners.
  • the rollback information may include the identifier information of the old version data corresponding to the difference data of the new and old version applications, so that the corresponding file is subsequently extracted according to the identifier information. .
  • the generating module 20 is configured to: generate a differential back-off packet according to the obtained back-off information.
  • the generating module 20 includes the following units:
  • the parsing unit 210 is configured to: parse the acquired back information, and obtain path information according to the back information.
  • the parsing unit 210 analyzes the data in the rollback information, and obtains path information of the original version file corresponding to the upgrade package included therein.
  • the generating unit 220 is configured to: generate the differential backoff packet according to the path information.
  • the generating unit 220 generates a differential back-off packet according to the path information acquired by the parsing unit 210, and the specific process is as follows:
  • the generating unit 220 includes the following subunits:
  • the extraction sub-unit 221 is configured to: extract an application data segment corresponding to the path information in the application data corresponding to the to-be-upgraded application.
  • the compression signature sub-unit 222 is configured to: encapsulate and digitally sign the obtained application data segment to generate the differential back-off packet.
  • the extraction sub-unit 221 obtains the corresponding application data segment from the terminal system file in the order of the multiple fallback sub-commands, and the extraction sub-unit 221 obtains the corresponding application data segment from the terminal system file.
  • the compression signature sub-unit 222 encapsulates and compresses all the acquired application data segments.
  • the compression signature sub-unit 222 is configured according to the signature key sent by the server or the signature key preset by the terminal.
  • the back-off package is digitally signed, and the digital signature is a conventional technical means, and will not be described here.
  • the upgrade module 30 is configured to: upgrade the application to be upgraded according to the obtained upgrade package.
  • the first fallback module 40 when the upgrade fails, the application to be upgraded is rolled back according to the generated differential backoff package.
  • Upgrade failure may occur when upgrade module 30 upgrades the application to be upgraded. At this time, the first The rollback module 40 automatically retrieves the differential rollback package and rolls back the application to be upgraded, so that the system rolls back to the version before the upgrade.
  • the differential back-off upgrade device proposed in this embodiment obtains a differential upgrade package and a differential fallback script by using a complete upgrade data packet, and performs a differential fallback packet according to the differential fallback script before performing the upgrade, and digitally signs and saves the packet. In order to roll back after the application upgrade fails.
  • the apparatus further includes:
  • the storage module 50 is configured to: store the differential backoff package.
  • the receiving module 60 is configured to: after the upgrade is successful, receive a fallback command.
  • the extraction module 70 is configured to: extract the differential back-off package corresponding to the received back-off instruction.
  • the second back-off module 80 is configured to perform a rollback operation on the upgraded application to be upgraded according to the extracted differential back-off package.
  • the storage module 50 saves the generated differential back-off package to the terminal for subsequent use by the user. For example, after a successful upgrade, if there is a system error or an application error, the user does not want to use the current version. If you want to roll back the version, you can directly select the differential rollback package for version rollback. You do not need to download the complete rollback package from the server. , can achieve the purpose of rapid rollback.
  • the user may be provided with a selection interface, and the user sends a back-off instruction based on the selection interface.
  • the extraction module 70 extracts the differential back corresponding to the received back-off instruction.
  • the second back-off module 80 performs version rollback on the upgraded application to be upgraded according to the extracted back-off package.
  • first backoff module 40 and the second backoff module 80 may be the same module.
  • the differential upgrade device proposed in this embodiment can call the previously generated differential backoff package to roll back to the version before the upgrade if the user does not want to use the upgraded application version.
  • the embodiment of the invention also discloses a computer program, including program instructions, when the program instruction When executed by the terminal, the terminal can perform any of the above differential fallback upgrade methods.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the technical solution of the present invention Before the upgrade, the technical solution of the present invention generates a differential backoff packet according to the rollback information, so as to perform the rollback after the upgrade fails, and solves the problem that the version cannot be rolled back in time after the upgrade fails. Therefore, the present invention has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

L'invention concerne un procédé et un dispositif de mise à niveau de retour-arrière programmé différentiel. Le procédé comprend les étapes consistant : à acquérir un paquet de mise à niveau et des informations de retour-arrière programmé (S10) ; à générer, selon les informations de retour-arrière programmé, un paquet de retour-arrière programmé différentiel (S20) ; à mettre à niveau, selon le paquet de mise à niveau, une application devant être mise à niveau (S30) ; et lorsque la mise à niveau échoue, à effectuer un retour-arrière programmé, selon le paquet de retour-arrière programmé différentiel, de l'application devant être mise à niveau (S40). Avant la mise à niveau, un paquet de retour-arrière programmé différentiel est généré selon des informations de retour-arrière programmé de telle sorte qu'un retour-arrière programmé est effectué après que la mise à niveau échoue, ce qui permet de résoudre le problème d'un retour-arrière programmé de version retardé après que la mise à niveau échoue.
PCT/CN2016/073929 2015-06-15 2016-02-17 Procédé et dispositif de mise à niveau de retour-arrière programmé différentiel WO2016202000A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510330186.1 2015-06-15
CN201510330186.1A CN106325892A (zh) 2015-06-15 2015-06-15 差分回退升级方法及装置

Publications (1)

Publication Number Publication Date
WO2016202000A1 true WO2016202000A1 (fr) 2016-12-22

Family

ID=57544978

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073929 WO2016202000A1 (fr) 2015-06-15 2016-02-17 Procédé et dispositif de mise à niveau de retour-arrière programmé différentiel

Country Status (2)

Country Link
CN (1) CN106325892A (fr)
WO (1) WO2016202000A1 (fr)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710458A (zh) * 2018-12-13 2019-05-03 北京长城华冠汽车技术开发有限公司 一种通讯模块升级失败后的软件回滚方法和系统
CN110377322A (zh) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 数据处理方法、系统及设备
CN112398666A (zh) * 2019-08-13 2021-02-23 中兴通讯股份有限公司 软件差分升级方法、装置、设备及存储介质
CN112905221A (zh) * 2021-02-20 2021-06-04 百度在线网络技术(北京)有限公司 一种版本回退方法、装置、电子设备及存储介质
CN113574839A (zh) * 2020-02-28 2021-10-29 华为技术有限公司 一种软件版本回滚方法、装置及系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943511A (zh) * 2017-11-08 2018-04-20 上海青橙实业有限公司 升级方法及移动终端
CN108491225B (zh) * 2018-03-15 2021-10-12 维沃移动通信有限公司 一种更新包生成方法及移动终端
CN113094073B (zh) * 2021-04-29 2024-03-12 芜湖雄狮汽车科技有限公司 车辆远程升级方法、装置及服务器

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909693A (zh) * 2006-08-07 2007-02-07 华为技术有限公司 数据配置文件在不同软件版本间进行转换的方法及装置
CN101038549A (zh) * 2007-03-28 2007-09-19 北京启明星辰信息技术有限公司 一种可跨系统的软件升级方法
CN101169749A (zh) * 2007-11-20 2008-04-30 中兴通讯股份有限公司 软件版本升级管理装置和软件版本升级管理方法
CN101778376A (zh) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 一种实现固件无线更新的方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420431B (zh) * 2008-11-28 2012-07-04 中兴通讯股份有限公司 Fota服务器、终端及其软件版本的处理方法和系统
CN101782934A (zh) * 2009-01-16 2010-07-21 苏州市蜗牛电子有限公司 支持游戏客户端版本切换的更新方法
CN101593119B (zh) * 2009-05-26 2013-07-03 中兴通讯股份有限公司 一种独占闪存组合设备空中固件升级方法及装置
CN102609328B (zh) * 2012-01-29 2015-04-15 华为终端有限公司 系统差分升级方法和装置、移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909693A (zh) * 2006-08-07 2007-02-07 华为技术有限公司 数据配置文件在不同软件版本间进行转换的方法及装置
CN101038549A (zh) * 2007-03-28 2007-09-19 北京启明星辰信息技术有限公司 一种可跨系统的软件升级方法
CN101169749A (zh) * 2007-11-20 2008-04-30 中兴通讯股份有限公司 软件版本升级管理装置和软件版本升级管理方法
CN101778376A (zh) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 一种实现固件无线更新的方法及装置

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710458A (zh) * 2018-12-13 2019-05-03 北京长城华冠汽车技术开发有限公司 一种通讯模块升级失败后的软件回滚方法和系统
CN110377322A (zh) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 数据处理方法、系统及设备
CN112398666A (zh) * 2019-08-13 2021-02-23 中兴通讯股份有限公司 软件差分升级方法、装置、设备及存储介质
CN112398666B (zh) * 2019-08-13 2024-04-30 中兴通讯股份有限公司 软件差分升级方法、装置、设备及存储介质
CN113574839A (zh) * 2020-02-28 2021-10-29 华为技术有限公司 一种软件版本回滚方法、装置及系统
CN113574839B (zh) * 2020-02-28 2024-04-09 华为技术有限公司 一种软件版本回滚方法、装置及系统
CN112905221A (zh) * 2021-02-20 2021-06-04 百度在线网络技术(北京)有限公司 一种版本回退方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN106325892A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2016202000A1 (fr) Procédé et dispositif de mise à niveau de retour-arrière programmé différentiel
CN110058873B (zh) 应用页面更新方法、装置、设备和存储介质
WO2017166446A1 (fr) Procédé et dispositif de correction de vulnérabilités
CN111061643B (zh) Sdk集群的兼容性检测方法、装置、电子设备及存储介质
WO2019201039A1 (fr) Procédé et système de mise à jour d'application et serveur d'application
US9473356B2 (en) Automatic configuration of applications based on host metadata using application-specific templates
CN108650287B (zh) 物联网中的终端设备的升级方法、设备及计算机可读介质
WO2017036228A1 (fr) Procédé et appareil de mise en œuvre de la mise à niveau d'un système
CN110825399B (zh) 一种应用程序的部署方法及装置
US9355250B2 (en) Method and system for rapidly scanning files
WO2021121407A1 (fr) Procédé et appareil de changement de capacité pour machine virtuelle
CN114328029B (zh) 一种应用资源的备份方法、装置、电子设备及存储介质
US20190012159A1 (en) Systems and methods for uninstalling or upgrading software if package cache is removed or corrupted
US20190073198A1 (en) Multi-flavored software execution from a singular code base
US20150089018A1 (en) Centralized management of webservice resources in an enterprise
CN115080114B (zh) 应用程序的移植处理方法、装置和介质
US8959088B2 (en) Log management method, log management system, and information processing apparatus
CN112698842A (zh) 获取应用程序的额外信息的方法及装置
CN107092601B (zh) 资源文件构建方法、资源文件应用方法及装置
CN112667491B (zh) 虚拟机的功能测试方法及装置
US10038604B2 (en) Processing method and apparatus for signaling tracing
CN104407846B (zh) 一种信息处理方法及装置
WO2016173136A1 (fr) Procédé de traitement d'application de terminal et dispositif associé
JP6178119B2 (ja) データ移行システム、及びデータ移行方法
CN111198721A (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: 16810741

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: 16810741

Country of ref document: EP

Kind code of ref document: A1