[go: up one dir, main page]

WO2016090862A1 - Method, apparatus and terminal device for hotfix upgrade at process initialization stage - Google Patents

Method, apparatus and terminal device for hotfix upgrade at process initialization stage Download PDF

Info

Publication number
WO2016090862A1
WO2016090862A1 PCT/CN2015/080178 CN2015080178W WO2016090862A1 WO 2016090862 A1 WO2016090862 A1 WO 2016090862A1 CN 2015080178 W CN2015080178 W CN 2015080178W WO 2016090862 A1 WO2016090862 A1 WO 2016090862A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
upgraded
patch
hot patch
upgrade package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/080178
Other languages
French (fr)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2016090862A1 publication Critical patent/WO2016090862A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal device for a hot patch upgrade in a process initialization phase.
  • the process hot patch upgrade used in the version upgrade is to directly modify the problematic code segment through the patch. It is a method of partially modifying a system program without interrupting the operation of the system. This method does not affect the business and meets the need for seamless upgrade without disrupting the business.
  • the process hot patch upgrade is generally implemented by the patch thread inside the process. After the patch thread is powered on, it receives the application patch message from the server and repairs the code of the problem thread in the process. After the repair is completed, the service is provided. End response.
  • this process hot patch upgrade method has certain limitations. Since the process can only apply the patch after the patch thread is powered on, the initialization of other threads of the process is completed, so it can only fix the problem during the running phase of the process. The hot patch upgrade method cannot be solved for the problem that occurs during the process power-on initialization. It can only be repaired by replacing the version or process.
  • the embodiment of the invention provides a method, a device and a terminal device for the hot patch upgrade in the process initialization phase, so as to at least implement the hot patch upgrade package and also the problem that occurs during the initialization phase of the process.
  • the embodiment of the present invention provides a method for hot patch upgrade in a process initialization phase, which is applied to a terminal device side, and the method includes:
  • the process to be upgraded is suspended on the terminal device to stop the process to be upgraded from being powered on;
  • the terminal device client After the terminal device client receives the instruction of applying the hot patch upgrade package sent by the terminal device server, the terminal device client performs an instruction according to the application hot patch upgrade package and a pre-configured hot patch.
  • the upgrade package repairs the process to be upgraded;
  • the process of the to-be-upgraded process is performed on the terminal device client according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package, which specifically includes:
  • the powering on the process to be upgraded is completed on the terminal device, which includes:
  • the method further includes:
  • the embodiment of the present invention further provides a device for upgrading a hot patch in a process initialization phase, which is applied to a terminal device side, and the device includes:
  • control module configured to: when the process to be upgraded is first powered on, stop the process to be upgraded on the terminal device to stop powering on the process to be upgraded;
  • a repairing module configured to: after the terminal device client receives an instruction to apply the hot patch upgrade package delivered by the terminal device server, according to the instruction of the application hot patch upgrade package on the terminal device client
  • the pre-configured hot patch upgrade package repairs the process to be upgraded
  • the power-on module is configured to perform power-on of the process to be upgraded on the terminal device after the repair of the process to be upgraded is completed.
  • the power-on module is further configured to:
  • the patch thread in the process to be upgraded is powered on on the terminal device until the patch thread is powered on.
  • repair module is set to:
  • the power-on module is configured to:
  • the repair module After the repairing module repairs the process to be upgraded according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package, the repair module further includes:
  • a sending module configured to send, on the terminal device client, a message to the terminal device server that the repair of the process to be upgraded by the hot patch upgrade package is successful, by the terminal device server The message is received and the message is fed back to the user.
  • the embodiment of the present invention further provides a terminal device, including the device for performing hot patch upgrade in the process initialization phase.
  • the method, the device, and the terminal device for the hot patch upgrade in the process initialization phase of the embodiment of the present invention restart the process to be upgraded before the process is powered on, stop the process to be upgraded, stop the power-on, and then apply the hot patch upgrade.
  • the package repairs the process to be upgraded. After the repair is complete, the process continues to be powered on.
  • the above solution of the present invention breaks the limitation of the current process hot patch upgrade method, and the process hot patch can also repair the problems occurring in the process initialization phase.
  • FIG. 1 is a schematic diagram showing a method for repairing a problematic code in a process to be upgraded by a hot patch thread
  • FIG. 2 is a schematic diagram showing the steps of a hot patch upgrade method in a process initialization phase according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram showing the steps of repairing a process to be upgraded by a hot patch upgrade package according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram showing specific steps of powering up the upgrade process after the repair process is completed in the embodiment of the present invention
  • FIG. 5 is a block diagram showing the composition of a hot patch upgrading apparatus in a process initialization phase according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram showing steps of repairing a problematic code in a process to be upgraded by a patch thread in an embodiment of the present invention
  • FIG. 7 is a schematic diagram showing the steps of repairing the process to be upgraded by the hot patch upgrade package in the embodiment of the present invention.
  • the present invention provides a method, a device and a terminal device for hot patch upgrade in a process initialization phase, in view of the fact that the current hot patch cannot repair the problem that occurs during the initialization phase of the process.
  • an embodiment of the present invention provides a method for hot patch upgrade in a process initialization phase, which is applied to a terminal device side, and the method includes:
  • Step S11 Restart the process to be upgraded on the terminal device.
  • Step S12 When the process to be upgraded is first powered on, the process to be upgraded is suspended on the terminal device to stop the process to be upgraded from being powered on;
  • Step S13 After the terminal device client receives the instruction of applying the hot patch upgrade package delivered by the terminal device server, the command and pre-configuration according to the application hot patch upgrade package are performed on the terminal device client.
  • the hot patch upgrade package fixes the process to be upgraded;
  • the hot patch upgrade package is pre-configured on the terminal device, the process initialization phase patch code is written on the computer, the hot patch file is compiled, and the process hot patch upgrade package is generated by the packaging tool. After the patch upgrade package is created, copy it to the device and enter the command to apply the patch upgrade package at the device terminal.
  • the process to be upgraded when the process to be upgraded is initially powered on, the process is hung to stop power-on, and the application process hot patch package can repair the problem occurring in the process initialization phase.
  • Step S14 After the repair of the process to be upgraded is completed, powering on the process to be upgraded is completed on the terminal device.
  • the principle is implemented: before the process is powered on, the process to be upgraded is hung, and then the hot patch upgrade package is used to repair the upgrade process. After the repair is completed, the process is powered on. .
  • Step S131 Powering on the patch thread in the upgrade process on the terminal device client, until the patch thread is powered on;
  • Step S132 detecting, on the terminal device client, a code that does not implement an expected function in the process to be upgraded;
  • Step S133 Apply the patch package on the terminal device client to repair the code that does not implement the expected function in the process to be upgraded by using the patch thread after the power-on is completed.
  • the method further includes:
  • Step S141 determining, on the terminal device, whether the patch thread successfully repairs the code that does not implement the expected function in the process to be upgraded;
  • Step S142 If it is determined that the code of the to-be-upgraded process is not successfully repaired, the power-on of the process to be upgraded is completed on the terminal device;
  • Step S143 If it is determined that the repair of the code that does not implement the expected function in the process to be upgraded fails, the process to be upgraded is continued to be restarted on the terminal device, and the process returns to step S11 or the upgrade is stopped.
  • the terminal device client needs to be further To
  • the terminal device server sends a message that the repair of the process to be upgraded by the hot patch upgrade package is successful, and the terminal device server receives the message and feeds the message back to the user.
  • the process to be upgraded is hung, and then the patch package is applied to repair the code that does not implement the expected function during the upgrade process, and the code that does not implement the expected function may also be understood as having The code of the problem, after the repair is completed, continue the power-on of the process, specifically, as shown in Figure 6:
  • the patch thread in the process to be upgraded starts to be initialized, and the patch thread is powered on.
  • the server sends a patch thread to the repair command after the power-on is completed, and the patch thread starts to repair the problematic code until the repair is completed.
  • the embodiment of the present invention further provides a device for upgrading a hot patch in a process initialization phase, which is applied to a terminal device side, where the device includes:
  • the restarting module 21 is configured to restart the process to be upgraded on the terminal device
  • the control module 22 is configured to: when the process to be upgraded is first powered on, stop the process to be upgraded on the terminal device to stop powering on the process to be upgraded;
  • the repair module 23 is configured to: after the terminal device client receives the instruction of applying the hot patch upgrade package delivered by the server, according to the instruction of the application hot patch upgrade package and the pre-configured on the terminal device client
  • the hot patch upgrade package repairs the process to be upgraded
  • the power-on module 24 is configured to complete power-on of the process to be upgraded on the terminal device after the repair of the process to be upgraded is completed.
  • the restarting module restarts the process to be upgraded on the terminal device, and the control module hangs the process to be upgraded to stop power-on, and then the repair module applies the hot patch upgrade package to upgrade. The process is repaired. After the repair is complete, the power-on module continues to power on the process.
  • the repair module 23 is configured to:
  • Detecting, in the terminal device, a code that does not implement the expected function in the process to be upgraded; and applying the patch package on the terminal device to repair the process to be upgraded by using the patch thread after the power-on is completed The code of the expected function, in which the patch thread in the process of being upgraded by the power-on module 24 is powered on.
  • the power-on module 24 is configured to:
  • the repair module 23 After the repairing module 23 repairs the process to be upgraded according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package, the repair module 23 further includes a sending module, which is set to be in the Sending, by the terminal device client, a message to the device server that the repair of the process to be upgraded by the hot patch upgrade package is successful, the device server receives the message and the message Feedback to the user.
  • a sending module which is set to be in the Sending, by the terminal device client, a message to the device server that the repair of the process to be upgraded by the hot patch upgrade package is successful, the device server receives the message and the message Feedback to the user.
  • an embodiment of the present invention further provides a terminal device, including the foregoing device for performing hot patch upgrade in a process initialization phase.
  • the embodiment of the present invention provides a specific solution, including:
  • Step S101 Making a hot patch version. Write hot patch source code on the computer and compile and make the hot patch file, and generate the hot patch upgrade package through the packaging tool;
  • Step S102 Add an upgrade package to the terminal device.
  • Step S103 input a restart command on the terminal device, and restart the process to be upgraded;
  • Step S104 input a pause command in the terminal device, and hang the process to be upgraded that is restarted in step S103, and stop power-on;
  • Step S105 input an activation command at the terminal device, and apply a hot patch upgrade package.
  • the server After receiving the command, the server sends the command to the corresponding client, and the terminal device receives the command to apply the patch, and after the application is completed, the device server responds;
  • Step S106 Check the printing prompt of the terminal device, confirm whether the hot patch is applied, and check whether the patch is successfully applied by using the command. If yes, go to step S107, otherwise go to step S108;
  • Step S107 input a continuation command in the terminal device, and continue to power on the process;
  • Step S108 input a rollback command at the terminal device, restart the process, and return to step S103 or terminate the upgrade;
  • Step S109 Input a viewing command on the terminal device to check whether the power-on is completed after the process restarts.
  • the process is verified by the process-related service. For example, the packet forwarding management process verifies whether the process is normal.
  • the method, the device, and the terminal device of the hot-patch upgrade in the process initialization phase of the foregoing embodiment of the present invention restart the process to be upgraded on the terminal device before the process is powered on, and the process to be upgraded is stopped and powered on, and then Apply the hot patch upgrade package to repair the upgraded process. After the repair is complete, continue to power on the process and feed back the repair status to the user in time to facilitate the user's next operation.
  • the above solution of the present invention breaks the limitation of the current process hot patch upgrade method, and the process hot patch can also repair the problems occurring in the process initialization phase.
  • the method, device, and terminal device for the hot patch upgrade in the process initialization phase provided by the embodiment of the present invention have the following beneficial effects: the limitation of the process hot patch upgrade method used in the related technology can be broken, and the process heat is hot. The patch also fixes problems in the process initialization phase.

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)

Abstract

Disclosed are a method, apparatus and terminal device for hotfix upgrade at a process initiation stage, wherein the method is applied to the terminal device side and comprises: restarting a process to be upgraded on the terminal device (S11); at the very beginning of powering on the process to be upgraded, suspending the process to be upgraded on the terminal device to stop powering on the process to be upgraded (S12); after a client of the terminal device receives an instruction of applying a hotfix upgrade package sent by a server of the terminal device, repairing the process to be upgraded on the client of the terminal device according to the instruction of applying the hotfix upgrade package and a preconfigured hotfix upgrade package (S13); and upon completion of repair of the process to be upgraded, completing powering on the process to be upgraded on the terminal device (S14). The method, apparatus and terminal device for hotfix upgrade at a process initiation stage break the limitations in current process hotfix upgrade methods, and the problems occurring at the process initiation stage can also be repaired by process hotfix.

Description

一种进程初始化阶段热补丁升级的方法、装置及终端设备Method, device and terminal device for hot patch upgrade in process initialization phase 技术领域Technical field

本发明涉及通信技术领域,特别涉及一种进程初始化阶段热补丁升级的方法、装置及终端设备。The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal device for a hot patch upgrade in a process initialization phase.

背景技术Background technique

目前,版本升级所用的进程热补丁升级,是通过补丁直接修改有问题的代码段。它是一种在不中断系统运行的情况下,局部修改系统程序的方法。这种方法对业务不产生影响,满足不中断业务的情况下进行无缝升级的需求。Currently, the process hot patch upgrade used in the version upgrade is to directly modify the problematic code segment through the patch. It is a method of partially modifying a system program without interrupting the operation of the system. This method does not affect the business and meets the need for seamless upgrade without disrupting the business.

如图1所示,进程热补丁升级一般是通过进程内部的补丁线程来实现,补丁线程上电完成后接收到服务端的应用补丁消息,并修复进程内有问题线程的代码,修复完成后给服务端应答。目前这种进程热补丁升级方法,有一定的局限性。由于进程要在补丁线程上电完成后才能应用补丁,此时进程的其他线程的初始化也已经完成,所以它只能对进程运行阶段的问题进行修复。对于进程上电初始化阶段出现的问题,热补丁升级方法无法解决,只能通过替换版本或者进程的方式来修复。As shown in Figure 1, the process hot patch upgrade is generally implemented by the patch thread inside the process. After the patch thread is powered on, it receives the application patch message from the server and repairs the code of the problem thread in the process. After the repair is completed, the service is provided. End response. At present, this process hot patch upgrade method has certain limitations. Since the process can only apply the patch after the patch thread is powered on, the initialization of other threads of the process is completed, so it can only fix the problem during the running phase of the process. The hot patch upgrade method cannot be solved for the problem that occurs during the process power-on initialization. It can only be repaired by replacing the version or process.

发明内容Summary of the invention

本发明实施例提供了一种进程初始化阶段热补丁升级的方法、装置及终端设备,以至少实现热补丁升级包也能够修复进程初始化阶段出现的问题。The embodiment of the invention provides a method, a device and a terminal device for the hot patch upgrade in the process initialization phase, so as to at least implement the hot patch upgrade package and also the problem that occurs during the initialization phase of the process.

为了解决上述问题,本发明实施例提供了一种进程初始化阶段热补丁升级的方法,应用于终端设备侧,所述方法包括:In order to solve the above problem, the embodiment of the present invention provides a method for hot patch upgrade in a process initialization phase, which is applied to a terminal device side, and the method includes:

在所述终端设备上重启待升级的进程;Restarting the process to be upgraded on the terminal device;

在所述待升级的进程刚开始上电时,在所述终端设备上将所述待升级的进程挂住停止所述待升级的进程上电;When the process to be upgraded is first powered on, the process to be upgraded is suspended on the terminal device to stop the process to be upgraded from being powered on;

在所述终端设备客户端接收所述终端设备服务端下发的应用热补丁升级包的指令后,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程; After the terminal device client receives the instruction of applying the hot patch upgrade package sent by the terminal device server, the terminal device client performs an instruction according to the application hot patch upgrade package and a pre-configured hot patch. The upgrade package repairs the process to be upgraded;

在完成对所述待升级的进程的修复后,在所述终端设备上完成对所述待升级的进程的上电。After the repair of the process to be upgraded is completed, power-on of the process to be upgraded is completed on the terminal device.

其中,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程,具体包括:The process of the to-be-upgraded process is performed on the terminal device client according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package, which specifically includes:

在所述终端设备上对热补丁进程中的补丁线程上电,直到对所述补丁线程上电完成;Powering up the patch thread in the hot patch process on the terminal device until the patch thread is powered on;

在所述终端设备客户端检测所述待升级的进程中未实现预期功能的代码;Detecting, in the terminal device client, a code that does not implement an expected function in the process to be upgraded;

在所述终端设备客户端应用补丁包通过所述上电完成后的补丁线程修复所述待升级的进程中未实现预期功能的代码。Applying the patch package to the terminal device client to repair the code that does not implement the expected function in the process to be upgraded by using the patch thread after the power-on is completed.

其中,在完成对所述待升级的进程的修复后,在所述终端设备上完成对所述待升级的进程的上电,具体包括:After the repairing of the process to be upgraded is completed, the powering on the process to be upgraded is completed on the terminal device, which includes:

在所述终端设备上判断所述补丁线程对所述待升级的进程中未实现预期功能的代码修复是否成功,若判断为对所述待升级的进程中未实现预期功能的代码修复成功,则在所述终端设备上完成对所述待升级的进程的上电;若判断为对所述待升级的进程中未实现预期功能的代码修复失败,则在所述终端设备上重新启动所述待升级的进程。Determining, on the terminal device, that the patch thread successfully repairs the code that does not implement the expected function in the process to be upgraded, and if it is determined that the code that is not implemented in the process to be upgraded is successfully repaired, And performing power-on of the to-be-upgraded process on the terminal device; if it is determined that the code repairing of the process that is not implemented in the process to be upgraded fails, the device is restarted on the terminal device. The process of upgrading.

其中,在所述终端设备上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程后,所述方法还包括:After the process of the application of the hot patch upgrade package and the pre-configured hot patch upgrade package to repair the process to be upgraded, the method further includes:

在所述终端设备客户端上向所述终端设备服务端发送一应用所述热补丁升级包对所述待升级的进程的修复是否成功的消息,由所述终端设备服务端接收所述消息并将所述消息反馈给用户。Sending, by the terminal device client, a message to the terminal device server, whether the repair of the process to be upgraded by the hot patch upgrade package is successful, and receiving, by the terminal device server, the message The message is fed back to the user.

此外,本发明实施例还提供了一种进程初始化阶段热补丁升级的装置,应用于终端设备侧,所述装置包括:In addition, the embodiment of the present invention further provides a device for upgrading a hot patch in a process initialization phase, which is applied to a terminal device side, and the device includes:

重启模块,设置为在所述终端设备上重启待升级的进程;Restarting the module, and setting to restart the process to be upgraded on the terminal device;

控制模块,设置为在所述待升级的进程刚开始上电时,在所述终端设备上将所述待升级的进程挂住停止对所述待升级的进程上电; a control module, configured to: when the process to be upgraded is first powered on, stop the process to be upgraded on the terminal device to stop powering on the process to be upgraded;

修复模块,设置为在所述终端设备客户端接收所述终端设备服务端下发的应用热补丁升级包的指令后,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程;a repairing module, configured to: after the terminal device client receives an instruction to apply the hot patch upgrade package delivered by the terminal device server, according to the instruction of the application hot patch upgrade package on the terminal device client The pre-configured hot patch upgrade package repairs the process to be upgraded;

上电模块,设置为在完成对所述待升级的进程的修复后,在所述终端设备上完成对所述待升级的进程的上电。The power-on module is configured to perform power-on of the process to be upgraded on the terminal device after the repair of the process to be upgraded is completed.

其中,所述上电模块还设置为:The power-on module is further configured to:

在所述终端设备上对待升级进程中的补丁线程上电,直到对所述补丁线程上电完成。The patch thread in the process to be upgraded is powered on on the terminal device until the patch thread is powered on.

其中,所述修复模块设置为:Wherein the repair module is set to:

在所述终端设备客户端上检测所述待升级的进程中未实现预期功能的代码;在所述终端设备客户端上应用所述上电完成后的补丁线程修复所述待升级的进程中未实现预期功能的代码。Detecting, in the terminal device client, a code that does not implement the expected function in the process to be upgraded; applying the patch thread after the power-on is completed on the terminal device client to repair the process to be upgraded The code that implements the intended functionality.

其中,所述上电模块设置为:The power-on module is configured to:

在所述终端设备上判断所述补丁线程对所述待升级的进程中未实现预期功能的代码修复是否成功,若判断为对所述待升级的进程中未实现预期功能的代码修复成功,则在所述终端设备上完成对所述待升级的进程的上电;若判断为对所述待升级的进程中未实现预期功能的代码修复失败,则在所述终端设备上重新启动所述待升级的进程。Determining, on the terminal device, that the patch thread successfully repairs the code that does not implement the expected function in the process to be upgraded, and if it is determined that the code that is not implemented in the process to be upgraded is successfully repaired, And performing power-on of the to-be-upgraded process on the terminal device; if it is determined that the code repairing of the process that is not implemented in the process to be upgraded fails, the device is restarted on the terminal device. The process of upgrading.

其中,所述修复模块在所述终端设备上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程后,还包括:After the repairing module repairs the process to be upgraded according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package, the repair module further includes:

发送模块,设置为在所述终端设备客户端上向所述终端设备服务端发送一应用所述热补丁升级包对所述待升级的进程的修复是否成功的消息,由所述终端设备服务端接收所述消息并将所述消息反馈给用户。a sending module, configured to send, on the terminal device client, a message to the terminal device server that the repair of the process to be upgraded by the hot patch upgrade package is successful, by the terminal device server The message is received and the message is fed back to the user.

最后,本发明实施例还提供了一种终端设备,包括上述的进程初始化阶段热补丁升级的装置。Finally, the embodiment of the present invention further provides a terminal device, including the device for performing hot patch upgrade in the process initialization phase.

本发明的上述技术方案至少具有如下有益效果:The above technical solution of the present invention has at least the following beneficial effects:

本发明实施例的进程初始化阶段热补丁升级的方法、装置及终端设备,在进程上电完成前,重启待升级的进程,将待升级的进程挂住停止上电,然后应用热补丁升级 包对其待升级的进程进行修复,待修复完成后,继续进程的上电。本发明的上述方案打破了目前进程热补丁升级方法的局限性,进程热补丁也能够修复进程初始化阶段出现的问题。The method, the device, and the terminal device for the hot patch upgrade in the process initialization phase of the embodiment of the present invention restart the process to be upgraded before the process is powered on, stop the process to be upgraded, stop the power-on, and then apply the hot patch upgrade. The package repairs the process to be upgraded. After the repair is complete, the process continues to be powered on. The above solution of the present invention breaks the limitation of the current process hot patch upgrade method, and the process hot patch can also repair the problems occurring in the process initialization phase.

附图说明DRAWINGS

图1表示目前热补丁线程修复待升级进程中有问题代码的方法示意图;FIG. 1 is a schematic diagram showing a method for repairing a problematic code in a process to be upgraded by a hot patch thread;

图2表示本发明实施例中进程初始化阶段热补丁升级方法的步骤示意图;2 is a schematic diagram showing the steps of a hot patch upgrade method in a process initialization phase according to an embodiment of the present invention;

图3表示本发明实施例中热补丁升级包修复待升级的进程的步骤示意图;FIG. 3 is a schematic diagram showing the steps of repairing a process to be upgraded by a hot patch upgrade package according to an embodiment of the present invention;

图4表示本发明实施例中完成对待升级进程的修复后,对待升级进程上电的具体步骤示意图;FIG. 4 is a schematic diagram showing specific steps of powering up the upgrade process after the repair process is completed in the embodiment of the present invention;

图5表示本发明实施例中进程初始化阶段热补丁升级装置的组成框图;FIG. 5 is a block diagram showing the composition of a hot patch upgrading apparatus in a process initialization phase according to an embodiment of the present invention;

图6表示本发明实施例中补丁线程修复待升级进程中有问题代码的步骤示意图;6 is a schematic diagram showing steps of repairing a problematic code in a process to be upgraded by a patch thread in an embodiment of the present invention;

图7表示本发明实施例中热补丁升级包修复待升级的进程的步骤示意图。FIG. 7 is a schematic diagram showing the steps of repairing the process to be upgraded by the hot patch upgrade package in the embodiment of the present invention.

具体实施方式detailed description

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。The technical problems, the technical solutions, and the advantages of the present invention will be more clearly described in the following description.

本发明针对目前热补丁不能修复进程初始化阶段出现的问题的情况,提供了一种进程初始化阶段热补丁升级的方法、装置及终端设备。The present invention provides a method, a device and a terminal device for hot patch upgrade in a process initialization phase, in view of the fact that the current hot patch cannot repair the problem that occurs during the initialization phase of the process.

如图2所示,本发明实施例提供了一种进程初始化阶段热补丁升级的方法,应用于终端设备侧,所述方法包括:As shown in FIG. 2, an embodiment of the present invention provides a method for hot patch upgrade in a process initialization phase, which is applied to a terminal device side, and the method includes:

步骤S11:在所述终端设备上重启待升级的进程;Step S11: Restart the process to be upgraded on the terminal device.

步骤S12:在所述待升级的进程刚开始上电时,在所述终端设备上将所述待升级的进程挂住停止所述待升级的进程上电;Step S12: When the process to be upgraded is first powered on, the process to be upgraded is suspended on the terminal device to stop the process to be upgraded from being powered on;

步骤S13:在所述终端设备客户端接收所述终端设备服务端下发的应用热补丁升级包的指令后,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程; Step S13: After the terminal device client receives the instruction of applying the hot patch upgrade package delivered by the terminal device server, the command and pre-configuration according to the application hot patch upgrade package are performed on the terminal device client. The hot patch upgrade package fixes the process to be upgraded;

应当说明的是,热补丁升级包在终端设备上预先配置的过程,在计算机上编写进程初始化阶段补丁代码,并编译制作热补丁文件,然后用打包工具生成进程热补丁升级包。补丁升级包制作完成后拷贝到设备,在设备终端输入命令应用补丁升级包。It should be noted that the hot patch upgrade package is pre-configured on the terminal device, the process initialization phase patch code is written on the computer, the hot patch file is compiled, and the process hot patch upgrade package is generated by the packaging tool. After the patch upgrade package is created, copy it to the device and enter the command to apply the patch upgrade package at the device terminal.

本发明的上述实施例中,在待升级进程刚开始上电时,将进程挂住停止上电,应用进程热补丁包即能够修复进程初始化阶段出现的问题。In the above embodiment of the present invention, when the process to be upgraded is initially powered on, the process is hung to stop power-on, and the application process hot patch package can repair the problem occurring in the process initialization phase.

步骤S14:在完成对所述待升级的进程的修复后,在所述终端设备上完成对所述待升级的进程的上电。Step S14: After the repair of the process to be upgraded is completed, powering on the process to be upgraded is completed on the terminal device.

本发明的上述实施例中,实现的原理是在进程上电完成前,将待升级的进程挂住,然后应用热补丁升级包对待升级的进程进行修复,待修复完成后,继续进程的上电。In the foregoing embodiment of the present invention, the principle is implemented: before the process is powered on, the process to be upgraded is hung, and then the hot patch upgrade package is used to repair the upgrade process. After the repair is completed, the process is powered on. .

为了更具体的表达在所述终端设备上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程,如图3所示,将修复的过程又划分了几个步骤:To further specifically express the process to be upgraded according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package on the terminal device, as shown in FIG. 3, the process of repairing is further divided. Several steps:

步骤S131:在所述终端设备客户端上对待升级进程中的补丁线程上电,直到对所述补丁线程上电完成;Step S131: Powering on the patch thread in the upgrade process on the terminal device client, until the patch thread is powered on;

步骤S132:在所述终端设备客户端上检测所述待升级的进程中未实现预期功能的代码;Step S132: detecting, on the terminal device client, a code that does not implement an expected function in the process to be upgraded;

步骤S133:在所述终端设备客户端上应用补丁包通过所述上电完成后的补丁线程修复所述待升级的进程中未实现预期功能的代码。Step S133: Apply the patch package on the terminal device client to repair the code that does not implement the expected function in the process to be upgraded by using the patch thread after the power-on is completed.

进一步地,在完成对所述待升级的进程的修复后,如图4所示,所述方法还包括:Further, after the repair of the process to be upgraded is completed, as shown in FIG. 4, the method further includes:

步骤S141:在所述终端设备上判断所述补丁线程对所述待升级的进程中未实现预期功能的代码修复是否成功;Step S141: determining, on the terminal device, whether the patch thread successfully repairs the code that does not implement the expected function in the process to be upgraded;

步骤S142:若判断为对所述待升级的进程中未实现预期功能的代码修复成功,则在所述终端设备上完成对所述待升级的进程的上电;Step S142: If it is determined that the code of the to-be-upgraded process is not successfully repaired, the power-on of the process to be upgraded is completed on the terminal device;

步骤S143:若判断为对所述待升级的进程中未实现预期功能的代码修复失败,则在所述终端设备上继续重新启动所述待升级的进程,返回至步骤S11或者停止升级。Step S143: If it is determined that the repair of the code that does not implement the expected function in the process to be upgraded fails, the process to be upgraded is continued to be restarted on the terminal device, and the process returns to step S11 or the upgrade is stopped.

应当补充的是,在所述终端设备上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程后,还需进一步地,在所述终端设备客户端向 所述终端设备服务端发送一应用所述热补丁升级包对所述待升级的进程的修复是否成功的消息,由所述终端设备服务端接收所述消息并将所述消息反馈给用户。It should be added that after the process of the application of the hot patch upgrade package and the pre-configured hot patch upgrade package are used to repair the process to be upgraded, the terminal device client needs to be further To The terminal device server sends a message that the repair of the process to be upgraded by the hot patch upgrade package is successful, and the terminal device server receives the message and feeds the message back to the user.

本发明的上述实施例中,在进程上电完成前,将待升级的进程挂住,然后应用补丁包修复待升级过程中未实现预期功能的代码,未实现预期功能的代码也可以理解为有问题的代码,待修复完成后,继续进程的上电,具体地,如图6所示:In the foregoing embodiment of the present invention, before the process is powered on, the process to be upgraded is hung, and then the patch package is applied to repair the code that does not implement the expected function during the upgrade process, and the code that does not implement the expected function may also be understood as having The code of the problem, after the repair is completed, continue the power-on of the process, specifically, as shown in Figure 6:

1.在终端设备客户端上,对待升级进程上电,将有问题的应用线程挂住并停止上电。1. On the terminal device client, power on the upgrade process, and hang the problematic application thread and stop powering on.

2.在终端设备客户端上,对待升级进程中的补丁线程开始初始化,待补丁线程上电完成。2. On the terminal device client, the patch thread in the process to be upgraded starts to be initialized, and the patch thread is powered on.

3.服务端给上电完成后的补丁线程一修复指令,补丁线程开始修复有问题的代码,直到修复完成。3. The server sends a patch thread to the repair command after the power-on is completed, and the patch thread starts to repair the problematic code until the repair is completed.

4.补丁线程修复完成有问题的代码后,将修复完成的消息反馈给服务端。4. After the patch thread repairs the problematic code, the repaired message is fed back to the server.

5.修复完成后完成对待升级进程的上电。5. After the repair is completed, complete the power-on of the upgrade process.

此外,如图5所示,本发明实施例还提供了一种进程初始化阶段热补丁升级的装置,应用于终端设备侧,所述装置包括:In addition, as shown in FIG. 5, the embodiment of the present invention further provides a device for upgrading a hot patch in a process initialization phase, which is applied to a terminal device side, where the device includes:

重启模块21,设置为在所述终端设备上重启待升级的进程;The restarting module 21 is configured to restart the process to be upgraded on the terminal device;

控制模块22,设置为在所述待升级的进程刚开始上电时,在所述终端设备上将所述待升级的进程挂住停止对所述待升级的进程上电;The control module 22 is configured to: when the process to be upgraded is first powered on, stop the process to be upgraded on the terminal device to stop powering on the process to be upgraded;

修复模块23,设置为在所述终端设备客户端接收服务端下发的应用热补丁升级包的指令后,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程;The repair module 23 is configured to: after the terminal device client receives the instruction of applying the hot patch upgrade package delivered by the server, according to the instruction of the application hot patch upgrade package and the pre-configured on the terminal device client The hot patch upgrade package repairs the process to be upgraded;

上电模块24,设置为在完成对所述待升级的进程的修复后,在所述终端设备上完成对所述待升级的进程的上电。The power-on module 24 is configured to complete power-on of the process to be upgraded on the terminal device after the repair of the process to be upgraded is completed.

本发明的上述实施例中,在进程上电完成前,重启模块在终端设备上重启待升级的进程,控制模块将待升级的进程挂住停止上电,然后修复模块应用热补丁升级包对待升级的进程进行修复,待修复完成后,上电模块继续进程的上电。 In the foregoing embodiment of the present invention, before the process is powered on, the restarting module restarts the process to be upgraded on the terminal device, and the control module hangs the process to be upgraded to stop power-on, and then the repair module applies the hot patch upgrade package to upgrade. The process is repaired. After the repair is complete, the power-on module continues to power on the process.

具体地,所述修复模块23设置为:Specifically, the repair module 23 is configured to:

在所述终端设备上检测所述待升级的进程中未实现预期功能的代码;在所述终端设备上应用补丁包通过所述上电完成后的补丁线程修复所述待升级的进程中未实现预期功能的代码,其中由上电模块24对待升级进程中的补丁线程上电。Detecting, in the terminal device, a code that does not implement the expected function in the process to be upgraded; and applying the patch package on the terminal device to repair the process to be upgraded by using the patch thread after the power-on is completed The code of the expected function, in which the patch thread in the process of being upgraded by the power-on module 24 is powered on.

具体地,所述上电模块24设置为:Specifically, the power-on module 24 is configured to:

在所述终端设备上判断所述补丁线程对所述待升级的进程中未实现预期功能的代码修复是否成功,若判断为对所述待升级的进程中未实现预期功能的代码修复成功,则在所述终端设备上完成对所述待升级的进程的上电;若判断为对所述待升级的进程中未实现预期功能的代码修复失败,则在所述终端设备上重新启动所述待升级的进程。Determining, on the terminal device, that the patch thread successfully repairs the code that does not implement the expected function in the process to be upgraded, and if it is determined that the code that is not implemented in the process to be upgraded is successfully repaired, And performing power-on of the to-be-upgraded process on the terminal device; if it is determined that the code repairing of the process that is not implemented in the process to be upgraded fails, the device is restarted on the terminal device. The process of upgrading.

所述修复模块23在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程后,还包括一发送模块,设置为在所述终端设备客户端上向所述设备服务端发送一应用所述热补丁升级包对所述待升级的进程的修复是否成功的消息,由所述设备服务端接收所述消息并将所述消息反馈给用户。After the repairing module 23 repairs the process to be upgraded according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package, the repair module 23 further includes a sending module, which is set to be in the Sending, by the terminal device client, a message to the device server that the repair of the process to be upgraded by the hot patch upgrade package is successful, the device server receives the message and the message Feedback to the user.

进一步地,本发明实施例还提供了一种终端设备,包括上述的进程初始化阶段热补丁升级的装置。Further, an embodiment of the present invention further provides a terminal device, including the foregoing device for performing hot patch upgrade in a process initialization phase.

为了更清楚的实现上述目的,如图7所示,本发明实施例提供了一具体的方案,包括:In order to achieve the above purpose, as shown in FIG. 7, the embodiment of the present invention provides a specific solution, including:

步骤S101:制作热补丁版本。在计算机上编写热补丁源代码并编译制作热补丁文件,通过打包工具生成热补丁升级包;Step S101: Making a hot patch version. Write hot patch source code on the computer and compile and make the hot patch file, and generate the hot patch upgrade package through the packaging tool;

步骤S102:在终端设备添加升级包;Step S102: Add an upgrade package to the terminal device.

步骤S103:在终端设备输入重启命令,重启待升级的进程;Step S103: input a restart command on the terminal device, and restart the process to be upgraded;

步骤S104:在终端设备输入暂停命令,挂住步骤S103中重启的待升级的进程,停止上电;Step S104: input a pause command in the terminal device, and hang the process to be upgraded that is restarted in step S103, and stop power-on;

步骤S105:在终端设备输入激活命令,应用热补丁升级包。服务端收到指令后将指令下发给相应的客户端,终端设备收到指令应用补丁,应用完成后并给设备服务端应答; Step S105: input an activation command at the terminal device, and apply a hot patch upgrade package. After receiving the command, the server sends the command to the corresponding client, and the terminal device receives the command to apply the patch, and after the application is completed, the device server responds;

步骤S106:查看终端设备的打印提示,确认热补丁是否应用完成,并通过命令查看补丁是否应用成功,成功则执行步骤S107,否则执行步骤S108;Step S106: Check the printing prompt of the terminal device, confirm whether the hot patch is applied, and check whether the patch is successfully applied by using the command. If yes, go to step S107, otherwise go to step S108;

步骤S107:在终端设备输入继续命令,继续完成进程的上电;Step S107: input a continuation command in the terminal device, and continue to power on the process;

步骤S108:在终端设备输入回退命令,重启进程,回退至步骤S103或者终止升级;Step S108: input a rollback command at the terminal device, restart the process, and return to step S103 or terminate the upgrade;

步骤S109:在终端设备输入查看命令,查看进程重启后上电是否完成。Step S109: Input a viewing command on the terminal device to check whether the power-on is completed after the process restarts.

完成后通过进程相关的业务来验证,如报文转发管理进程通过发流验证进程是否正常。After the completion, the process is verified by the process-related service. For example, the packet forwarding management process verifies whether the process is normal.

上述发明实施例的一种进程初始化阶段热补丁升级的方法、装置及终端设备,在进程上电完成前,在终端设备上重启待升级的进程,将待升级的进程挂住停止上电,然后应用热补丁升级包对待升级的进程进行修复,待修复完成后,继续进程的上电,且及时将修复的情况反馈给用户,方便用户下一步的操作。本发明的上述方案打破了目前进程热补丁升级方法的局限性,进程热补丁也能够修复进程初始化阶段出现的问题。The method, the device, and the terminal device of the hot-patch upgrade in the process initialization phase of the foregoing embodiment of the present invention restart the process to be upgraded on the terminal device before the process is powered on, and the process to be upgraded is stopped and powered on, and then Apply the hot patch upgrade package to repair the upgraded process. After the repair is complete, continue to power on the process and feed back the repair status to the user in time to facilitate the user's next operation. The above solution of the present invention breaks the limitation of the current process hot patch upgrade method, and the process hot patch can also repair the problems occurring in the process initialization phase.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

工业实用性Industrial applicability

如上所述,本发明实施例提供的一种进程初始化阶段热补丁升级的方法、装置及终端设备具有以下有益效果:能够突破相关技术中所采用的进程热补丁升级方法的局限性,同时进程热补丁也能够修复进程初始化阶段出现的问题。 As described above, the method, device, and terminal device for the hot patch upgrade in the process initialization phase provided by the embodiment of the present invention have the following beneficial effects: the limitation of the process hot patch upgrade method used in the related technology can be broken, and the process heat is hot. The patch also fixes problems in the process initialization phase.

Claims (10)

一种进程初始化阶段热补丁升级的方法,应用于终端设备侧,所述方法包括:A method for hot patch upgrade in a process initialization phase is applied to a terminal device side, and the method includes: 在所述终端设备上重启待升级的进程;Restarting the process to be upgraded on the terminal device; 在所述待升级的进程刚开始上电时,在所述终端设备上将所述待升级的进程挂住停止所述待升级的进程上电;When the process to be upgraded is first powered on, the process to be upgraded is suspended on the terminal device to stop the process to be upgraded from being powered on; 在所述终端设备客户端接收所述终端设备服务端下发的应用热补丁升级包的指令后,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程;After the terminal device client receives the instruction of applying the hot patch upgrade package sent by the terminal device server, the terminal device client performs an instruction according to the application hot patch upgrade package and a pre-configured hot patch. The upgrade package repairs the process to be upgraded; 在完成对所述待升级的进程的修复后,在所述终端设备上完成对所述待升级的进程的上电。After the repair of the process to be upgraded is completed, power-on of the process to be upgraded is completed on the terminal device. 根据权利要求1所述的方法,其中,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程包括:The method according to claim 1, wherein the repairing the process to be upgraded according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package on the terminal device client includes: 在所述终端设备客户端上对待升级进程中的补丁线程上电,直到对所述补丁线程上电完成;On the terminal device client, the patch thread in the process to be upgraded is powered on, until the patch thread is powered on; 在所述终端设备客户端上检测所述待升级的进程中未实现预期功能的代码;Detecting, on the terminal device client, a code that does not implement an expected function in the process to be upgraded; 在所述终端设备客户端上应用补丁包通过所述上电完成后的补丁线程修复所述待升级的进程中未实现预期功能的代码。Applying the patch package on the terminal device client to repair the code that does not implement the expected function in the process to be upgraded by using the patch thread after the power-on is completed. 根据权利要求2所述的方法,其中,在完成对所述待升级的进程的修复后,在所述终端设备上完成对所述待升级的进程的上电包括:The method of claim 2, wherein after the repairing the process to be upgraded is completed, the powering on the process to be upgraded on the terminal device includes: 在所述终端设备上判断所述补丁线程对所述待升级的进程中未实现预期功能的代码修复是否成功,若判断为对所述待升级的进程中未实现预期功能的代码修复成功,则在所述终端设备上完成对所述待升级的进程的上电;Determining, on the terminal device, that the patch thread successfully repairs the code that does not implement the expected function in the process to be upgraded, and if it is determined that the code that is not implemented in the process to be upgraded is successfully repaired, Powering on the process to be upgraded on the terminal device; 若判断为对所述待升级的进程中未实现预期功能的代码修复失败,则在所述终端设备上重新启动所述待升级的进程。If it is determined that the code repair fails to implement the expected function in the process to be upgraded, the process to be upgraded is restarted on the terminal device. 根据权利要求1所述的方法,其中,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程后,所述方法还包括: The method according to claim 1, wherein after the process of applying the hot patch upgrade package and the pre-configured hot patch upgrade package to repair the process to be upgraded on the terminal device client, the method further Includes: 在所述终端设备客户端上向所述终端设备服务端发送一应用所述热补丁升级包对所述待升级的进程的修复是否成功的消息,由所述终端设备服务端接收所述消息并将所述消息反馈给用户。Sending, by the terminal device client, a message to the terminal device server, whether the repair of the process to be upgraded by the hot patch upgrade package is successful, and receiving, by the terminal device server, the message The message is fed back to the user. 一种进程初始化阶段热补丁升级的装置,应用于终端设备侧,所述装置包括:A device for performing a hot patch upgrade in a process initialization phase is applied to a terminal device side, and the device includes: 重启模块,设置为在所述终端设备上重启待升级的进程;Restarting the module, and setting to restart the process to be upgraded on the terminal device; 控制模块,设置为在所述待升级的进程刚开始上电时,在所述终端设备上将所述待升级的进程挂住停止对所述待升级的进程上电;a control module, configured to: when the process to be upgraded is first powered on, stop the process to be upgraded on the terminal device to stop powering on the process to be upgraded; 修复模块,设置为在所述终端设备客户端接收所述终端设备服务端下发的应用热补丁升级包的指令后,在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程;a repairing module, configured to: after the terminal device client receives an instruction to apply the hot patch upgrade package delivered by the terminal device server, according to the instruction of the application hot patch upgrade package on the terminal device client The pre-configured hot patch upgrade package repairs the process to be upgraded; 上电模块,设置为在完成对所述待升级的进程的修复后,在所述终端设备上完成对所述待升级的进程的上电。The power-on module is configured to perform power-on of the process to be upgraded on the terminal device after the repair of the process to be upgraded is completed. 根据权利要求5所述的装置,其中,所述上电模块还设置为:The device according to claim 5, wherein the power-on module is further configured to: 在所述终端设备客户端上对待升级进程中的补丁线程上电,直到对所述补丁线程上电完成。The patch thread in the upgrade process is powered on on the terminal device client until the patch thread is powered on. 根据权利要求6所述的装置,其中,所述修复模块设置为:The apparatus of claim 6 wherein said repair module is configured to: 在所述终端设备客户端上检测所述待升级的进程中未实现预期功能的代码;在所述终端设备客户端上应用补丁包通过所述上电完成后的补丁线程修复所述待升级的进程中未实现预期功能的代码。Detecting, on the terminal device client, a code that does not implement the expected function in the process to be upgraded; applying a patch package on the terminal device client to repair the to-be-upgraded by using the patch thread after the power-on is completed Code that does not implement the expected functionality in the process. 根据权利要求6所述的装置,其中,所述上电模块还设置为:The device according to claim 6, wherein the power-on module is further configured to: 在所述终端设备上判断所述补丁线程对所述待升级的进程中未实现预期功能的代码修复是否成功,若判断为对所述待升级的进程中未实现预期功能的代码修复成功,则在所述终端设备上完成对所述待升级的进程的上电;若判断为对所述待升级的进程中未实现预期功能的代码修复失败,则在所述终端设备上重新启动所述待升级的进程。Determining, on the terminal device, that the patch thread successfully repairs the code that does not implement the expected function in the process to be upgraded, and if it is determined that the code that is not implemented in the process to be upgraded is successfully repaired, And performing power-on of the to-be-upgraded process on the terminal device; if it is determined that the code repairing of the process that is not implemented in the process to be upgraded fails, the device is restarted on the terminal device. The process of upgrading. 根据权利要求5所述的装置,其中,所述修复模块在所述终端设备客户端上根据所述应用热补丁升级包的指令和预先配置的热补丁升级包修复所述待升级的进程后,还包括: The device according to claim 5, wherein the repair module repairs the process to be upgraded according to the instruction of the application hot patch upgrade package and the pre-configured hot patch upgrade package on the terminal device client, Also includes: 发送模块,设置为在所述终端设备客户端上向所述终端设备服务端发送一应用所述热补丁升级包对所述待升级的进程的修复是否成功的消息,由所述终端设备服务端接收所述消息并将所述消息反馈给用户。a sending module, configured to send, on the terminal device client, a message to the terminal device server that the repair of the process to be upgraded by the hot patch upgrade package is successful, by the terminal device server The message is received and the message is fed back to the user. 一种终端设备,包括:如权利要求5至权利要求9任一项所述的进程初始化阶段热补丁升级的装置。 A terminal device comprising: a device for hot patch upgrade in a process initialization phase according to any one of claims 5 to 9.
PCT/CN2015/080178 2014-12-10 2015-05-29 Method, apparatus and terminal device for hotfix upgrade at process initialization stage Ceased WO2016090862A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410755978.9 2014-12-10
CN201410755978.9A CN105740001A (en) 2014-12-10 2014-12-10 Method and apparatus for hot patch upgrading in process initialization stage, and terminal device

Publications (1)

Publication Number Publication Date
WO2016090862A1 true WO2016090862A1 (en) 2016-06-16

Family

ID=56106573

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080178 Ceased WO2016090862A1 (en) 2014-12-10 2015-05-29 Method, apparatus and terminal device for hotfix upgrade at process initialization stage

Country Status (2)

Country Link
CN (1) CN105740001A (en)
WO (1) WO2016090862A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924777A (en) * 2021-12-17 2022-08-19 杭州有赞科技有限公司 Hot repair method, system, device and readable storage medium
CN115658152A (en) * 2022-08-31 2023-01-31 浙江大华技术股份有限公司 Firmware upgrading method, firmware, electronic device and computer readable storage medium
CN117873534A (en) * 2024-02-01 2024-04-12 重庆赛力斯凤凰智创科技有限公司 Vehicle software upgrade method, device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775873B (en) * 2016-12-20 2021-02-23 北京五八信息技术有限公司 Method and equipment for updating mobile phone software and acquiring patch file
CN107844306B (en) * 2017-08-09 2020-04-03 平安壹钱包电子商务有限公司 Application program repairing method and device, storage medium and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593118A (en) * 2009-02-24 2009-12-02 浪潮集团山东通用软件有限公司 A kind of software upgrade method flexibly
CN101753351A (en) * 2008-12-11 2010-06-23 大唐移动通信设备有限公司 Method for extending and de-extending management information base, method and equipment for searching management object
CN102609241A (en) * 2012-01-19 2012-07-25 中兴通讯股份有限公司 Hot patching method and device
CN103942073A (en) * 2014-04-08 2014-07-23 北京奇虎科技有限公司 Method and device for realizing system hot patching
US20140317731A1 (en) * 2013-04-19 2014-10-23 Crowdstrike, Inc. Executable Component Injection Utilizing Hotpatch Mechanisms

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073508A (en) * 2009-11-20 2011-05-25 Tcl集团股份有限公司 Method and apparatus for upgrading terminals and software thereof
CN103345412B (en) * 2013-07-10 2016-08-24 华为技术有限公司 The method and device of patch installing
CN103677909A (en) * 2013-12-05 2014-03-26 北京大唐智能卡技术有限公司 Method and device for achieving mask card patch mechanism

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753351A (en) * 2008-12-11 2010-06-23 大唐移动通信设备有限公司 Method for extending and de-extending management information base, method and equipment for searching management object
CN101593118A (en) * 2009-02-24 2009-12-02 浪潮集团山东通用软件有限公司 A kind of software upgrade method flexibly
CN102609241A (en) * 2012-01-19 2012-07-25 中兴通讯股份有限公司 Hot patching method and device
US20140317731A1 (en) * 2013-04-19 2014-10-23 Crowdstrike, Inc. Executable Component Injection Utilizing Hotpatch Mechanisms
CN103942073A (en) * 2014-04-08 2014-07-23 北京奇虎科技有限公司 Method and device for realizing system hot patching

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924777A (en) * 2021-12-17 2022-08-19 杭州有赞科技有限公司 Hot repair method, system, device and readable storage medium
CN115658152A (en) * 2022-08-31 2023-01-31 浙江大华技术股份有限公司 Firmware upgrading method, firmware, electronic device and computer readable storage medium
CN117873534A (en) * 2024-02-01 2024-04-12 重庆赛力斯凤凰智创科技有限公司 Vehicle software upgrade method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105740001A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
WO2016090862A1 (en) Method, apparatus and terminal device for hotfix upgrade at process initialization stage
TWI633487B (en) Method and computer system for automatically recovering the bios image file
TWI533216B (en) Operating system updating method
CN105260209A (en) Hot-update solution of program
CN101533356A (en) A method, a device and a system for realizing software online upgrade
CN105278998A (en) Single-chip microcomputer hardware upgrading method
CN103488498A (en) Computer booting method and computer
WO2017161947A1 (en) Multi-system ota upgrade method and multi-system device
CN102945177A (en) Programmable logic controller (PLC) firmware upgrading system and method
CN106528214B (en) OS installation method, server and system
CN103353846A (en) Project automatic-deployment plug-in
CN109361542B (en) Client fault processing method, device, system, terminal and server
CN105407475B (en) configuration file enables processing method and eUICC
CN108021427A (en) Information system deployment and updating management method based on Docker
CN115086287A (en) Method and system for automatic deployment of software products
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
WO2020107436A1 (en) Program upgrade method and embedded device
CN103150203B (en) A kind of virtual machine control system, virtual machine controller and control method
CN109992280A (en) An embedded software upgrade method, terminal device and storage device
CN106161086A (en) Control method that master control borad is restarted and device
CN104899061A (en) Method for automatically refreshing FRU information
CN105204898A (en) Application deployment system and method and control server
CN116133011A (en) Method, system and device for upgrading vehicle-mounted system
CN103713911B (en) A kind of single version upgrade method and device
JP2008242679A (en) Server system and patch processing method

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

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

Country of ref document: EP

Kind code of ref document: A1