Component hot update method and device, equipment and storage medium

Through the component hot update method for terminals, component update packages are obtained and generated, which solves the problems of complex and long cycles of the entire machine software system upgrade process in the prior art, and achieves fast and efficient component updates and fault repairs.

CN119645447APending Publication Date: 2025-03-18TCL COMM TECH (CHENGDU) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411572094.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, the process of upgrading the terminal's entire software system is complicated and the cycle is long. It is impossible to promptly repair system component failure problems that occur during operation, and the update cost is high.

Method used

By responding to component hot update requests for target system components, obtaining the initial component package and generating component update packages based on update configuration information, the hot update of target system components is achieved.

Benefits of technology

It realizes rapid repair of component abnormal problems in the equipment operation cycle, improves component update efficiency, and reduces component update costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645447A_ABST
    Figure CN119645447A_ABST
Patent Text Reader

Abstract

The invention provides a component hot update method and device, equipment and a storage medium, the component hot update method in the application comprises the following steps: in response to a component hot update request for a target system component, obtaining an initial component package associated with the target system component, the initial component package being in an APEX file format; generating a component update package of the target system component according to update configuration information of the target system component and the initial component package; and performing hot update on the target system component according to the initial component package and the component update package to obtain an updated system component. According to the technical scheme, the system components can be packaged into the initial component package corresponding to the APEX file format, and hot update is performed on the customized target system component by using the component update package corresponding to the target system component, so that the component exception problem in the equipment operation cycle can be quickly repaired; the component updating efficiency is improved, and the component updating cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a component hot update method, device, equipment and storage medium. Background Art

[0002] At present, as smart mobile terminals such as mobile phones and corresponding smart operating systems are becoming more and more intelligent, the operation and maintenance cycle of mobile terminals and corresponding smart operating systems by terminal manufacturers has also been lengthened. During the life cycle of the mobile terminal, the terminal manufacturer will fully upgrade the system version of the mobile terminal's operating system, thereby updating the system components of the mobile terminal. This update method has a complex process and a long cycle, and cannot promptly repair system component failure problems that occur during operation, and the cost of this update method is relatively high. Summary of the invention

[0003] The embodiments of the present application provide a component hot update method, device, equipment and storage medium, which are intended to solve the technical problem in the prior art that the whole terminal software system upgrade process is complicated and the cycle is long.

[0004] In one aspect, an embodiment of the present application provides a component hot update method, the component hot update method comprising the following steps:

[0005] In response to a component hot update request for a target system component, an initial component package associated with the target system component is obtained, wherein the initial component package is in an APEX file format;

[0006] Generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package;

[0007] The target system component is hot-updated according to the initial component package and the component update package to obtain an updated system component.

[0008] In a possible implementation of the present application, the step of obtaining the initial component package associated with the target system component includes:

[0009] Pre-embedding a component base package of the target system component in a target update device;

[0010] Component parameter information corresponding to the target system component is obtained, and the component basic package is compiled using the component parameter information to obtain an initial component package.

[0011] In a possible implementation of the present application, determining the component update package corresponding to the initial component package according to the update configuration information of the target system component includes:

[0012] Access the cloud push platform and upload the initial component package corresponding to the target system component;

[0013] Driving the cloud push platform to perform update configuration according to the update configuration information of the target system component and the initial component package to obtain a component update package;

[0014] Respond to the component update request triggered by the cloud push platform, and receive the component update package pushed by the cloud push platform.

[0015] In a possible implementation of the present application, hot updating the target system component according to the initial component package and the component update package to obtain an updated system component includes:

[0016] Using the initial component package to perform update verification on the component update package to obtain an update verification result;

[0017] If the update verification result is a verification pass result, the target system component is hot updated using the component update package to obtain an updated system component.

[0018] In a possible implementation of the present application, the using the initial component package to perform update verification on the component update package to obtain an update verification result includes:

[0019] Obtaining a first key in the initial component package and a second key in the component update package;

[0020] If the first key and the second key do not match, outputting an updated verification result corresponding to the verification failure result;

[0021] If the first key and the second key match, an updated verification result corresponding to successful verification is output.

[0022] In a possible implementation of the present application, the hot updating of the target system component by using the component update package to obtain the updated system component includes:

[0023] Using the component update package to create a loopback device component corresponding to the target system component;

[0024] Creating a device mapper corresponding to the target system component using the loopback device component;

[0025] According to the component update package, the device mapper is loaded into the target loading path corresponding to the target system component to perform component hot update, thereby obtaining an updated system component.

[0026] In a possible implementation of the present application, the step of loading the device mapper to a target loading path corresponding to the target system component according to the component update package to perform component hot update to obtain an updated system component includes:

[0027] Driving the target system component to obtain the updated container configuration in the target loading path;

[0028] The target system component is driven to load the update container configuration to obtain an updated system component.

[0029] On the other hand, the present application provides a component thermal update device, the component thermal update device comprising:

[0030] A data acquisition module is configured to respond to a component hot update request for a target system component and acquire an initial component package associated with the target system component, wherein the initial component package is in an APEX file format;

[0031] A region identification module, configured to generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package;

[0032] The collaborative display module is configured to perform a hot update on the target system component according to the initial component package and the component update package to obtain an updated system component.

[0033] On the other hand, the present application also provides a component hot update device, the component hot update device comprising:

[0034] one or more processors;

[0035] Memory; and

[0036] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the steps of the component hot update method.

[0037] On the other hand, the present application also provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the component hot update method.

[0038] In this application, by responding to a component hot update request for a target system component, an initial component package associated with the target system component is obtained, and the initial component package is in APEX file format; a component update package of the target system component is generated according to the update configuration information of the target system component and the initial component package; the target system component is hot updated according to the initial component package and the component update package to obtain an updated system component. This is achieved by packaging the system component into an initial component package corresponding to the APEX file format, and using the component update package corresponding to the target system component to hot update the customized target system component, thereby quickly repairing component abnormalities in the equipment operation cycle, improving component update efficiency, and reducing component update costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 A schematic diagram of a scenario of a component hot update method according to an embodiment of the present application;

[0041] Figure 2 A schematic diagram of a flow chart of an embodiment of a component hot update method in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of a flow chart of an embodiment of hot updating a target system component in a component hot updating method provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of the structure of an embodiment of a component hot update device provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of the structure of an embodiment of a component hot update device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0046] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0047] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0048] At present, as smart mobile terminals such as mobile phones and corresponding smart operating systems are becoming more and more intelligent, the operation and maintenance cycle of mobile terminals and corresponding smart operating systems by terminal manufacturers has also been lengthened. During the life cycle of the mobile terminal, the terminal manufacturer will fully upgrade the system version of the mobile terminal's operating system, thereby updating the system components of the mobile terminal. This update method has a complex process and a long cycle, and cannot promptly repair system component failure problems that occur during operation, and the cost of this update method is relatively high.

[0049] Based on this, the present application proposes a component hot update method, device, equipment and computer-readable storage medium to solve the technical problem in the prior art that the whole terminal software system upgrade process is complicated and the cycle is long.

[0050] The component hot update method in the embodiment of the present invention is applied to a component hot update device, which is arranged in the component hot update equipment. The component hot update equipment is provided with one or more processors, memories, and one or more applications, wherein the one or more applications are stored in the memories and are configured to be executed by the processors to implement the component hot update method; wherein the component hot update equipment can be an intelligent terminal, such as a mobile phone, a tablet computer, a network device, and a smart computer, etc.; optionally, the component hot update equipment can also be a server, or a service cluster composed of multiple servers.

[0051] like Figure 1 As shown, Figure 1 The schematic diagram of the scene of the component hot update method of the embodiment of the present application, the component hot update scene in the embodiment of the present invention includes a component hot update device 100 (the component hot update device 100 is integrated with a component hot update device) and a target update device 200, and the component hot update device 100 runs a computer-readable storage medium corresponding to the component hot update method to execute the steps of the component hot update method. The target update device 200 is an intelligent terminal that communicates and interacts with the component hot update device 100 and can perform component hot update operations.

[0052] Understandably, Figure 1 The component hot update equipment in the component hot update method scenario shown, or the devices included in the component hot update equipment, does not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices of the component hot update equipment included in the component hot update method scenario, or the number of devices and types of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected by the embodiments of the present invention.

[0053] The component hot update device 100 in the embodiment of the present invention is mainly used to: respond to a component hot update request for a target system component, obtain an initial component package associated with the target system component, and the initial component package is in an APEX file format;

[0054] Generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package;

[0055] The target system component is hot-updated according to the initial component package and the component update package to obtain an updated system component.

[0056] The component hot update device 100 in the embodiment of the present invention can be an independent component hot update device, such as a smart terminal such as a mobile phone, tablet computer, network device, server and smart computer, or it can be a component hot update network or component hot update cluster composed of multiple component hot update devices.

[0057] The embodiments of the present application provide a component hot update method, apparatus, device, and computer-readable storage medium, which are described in detail below.

[0058] It can be understood by those skilled in the art that Figure 1 The application environment shown in is only one of the application scenarios related to the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer component hot update devices, or component hot update network connection relationships shown, such as Figure 1 Only one component hot update device is shown. It can be understood that the scenario of the component hot update method can also include one or more component hot update devices, which is not specifically limited here. The component hot update device 100 can also include a memory for storing component configuration data and other data.

[0059] It should be noted that Figure 1 The scenario diagram of the component hot update method shown is only an example. The scenario of the component hot update method described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.

[0060] Based on the scenario of the above-mentioned component hot update method, various embodiments of the component hot update method disclosed in the present invention are proposed.

[0061] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a component hot update method in an embodiment of the present application. The component hot update method includes the following steps 201 to 203:

[0062] 201. Responding to a component hot update request for a target system component, obtaining an initial component package associated with the target system component;

[0063] The component hot update method in this embodiment is applied to component hot update devices, and the type and quantity of component hot update devices are not specifically limited, that is, the component hot update device can be one or more smart terminals or servers. In a specific embodiment, the component hot update device is a smart computer.

[0064] Specifically, during operation, the terminal responds to a component hot update request for a target system component, wherein the component hot update request is an operation instruction that drives the terminal to perform a separate component hot update on a specified target system component. The triggering method of the component hot update request is not specifically limited here, that is, the component hot update request can be actively triggered by a user. For example, in a specific embodiment, the user is a component developer, who selects a target system component by clicking a component hot update button in a component hot update device, and triggers a component hot update request for the target system component. In addition, in another specific embodiment, the component hot update request can also be actively triggered by the terminal. For example, a component update process is preset in the component update device, and after detecting component update configuration information that meets the requirements, a component hot update request for the target system component is automatically triggered.

[0065] Specifically, the target system component can be a customized system module component in the target update device. The initial component package associated with the target system component is an apex file package containing the configuration information of the target system component. In a specific embodiment, since the apex file cannot be installed directly, the terminal pre-embeds the component base package corresponding to the target system component in the target update device when the target update device leaves the factory, and obtains the component parameter information corresponding to the target system component, and compiles the component base package using the component parameter information to obtain the initial component package. Among them, the terminal can package the customized system module component in the corresponding device into an initial component package in the apex file format, and use the initial component package to update and upgrade the target system component separately in subsequent steps, thereby reducing the upgrade cost of the target system component and improving the upgrade efficiency of the target system component. Among them, the component parameter information includes parameter information such as component package name, version number, component characteristic parameters and preset constraints.

[0066] Specifically, in a specific embodiment, the target update device can be the same terminal device as the component hot update device, or, in other embodiments, the component hot update device can be a component upgrade server of the terminal manufacturer, and the target update device is a mobile terminal or other smart terminal issued by the terminal manufacturer.

[0067] The target system component can also access the target update component in the target update device, wherein the target update component is a system component set in the terminal and capable of performing apex hot update on the accessed system component. In a specific embodiment, the target update component is a com.xxx.fwk.stub.apex component. In a specific embodiment, the target update component includes modules such as init, apexd, and ApexManager, and the target update component can realize the update and mounting of each customized system component through modules such as init, apexd, and ApexManager.

[0068] 202. Generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package;

[0069] Specifically, after obtaining the initial component package associated with the target system component, the terminal also generates a component update package of the target system according to the update configuration information of the target system and the initial component package, wherein the component update package is an Apex update package configured with the update configuration information of the target system component and capable of performing a separate component hot update on the target system component. The update configuration information may be system source code data corresponding to the updated version of the target system component.

[0070] Specifically, after obtaining the component update request corresponding to the target system component, the terminal also accesses the cloud push platform, obtains the update configuration information associated with the target system component in the cloud push platform, and compiles the initial component package corresponding to the target system component using the update configuration information to generate a compiled component package, and uploads the compiled component package to the designated signature platform for signing to obtain the signed compiled component package. In a specific embodiment, the compiled component package may be a com.tcl.fwk.stub.apex file.

[0071] Specifically, after obtaining the signed compiled component package, the terminal can also configure the signed compiled component package according to the update project information in the update configuration information to obtain a component update package, and use the component update package to perform component hot update on the target system component.

[0072] Optionally, in another specific embodiment, the terminal can also use the cloud push platform to push the component update package. That is, the terminal accesses the cloud push platform, uploads the initial component package corresponding to the target system component to be updated to the cloud push platform, and drives the cloud push platform to update and configure the initial component package according to the update configuration information corresponding to the target system component to obtain the component upgrade package.

[0073] Specifically, after uploading the initial component package to the cloud push platform, the terminal can also use the preset component upgrade detection interface to communicate with the cloud push platform, obtain the component upgrade package corresponding to the target component configuration that meets the requirements of the target system component, and respond to the component update request triggered by the cloud push platform, receive the component update package pushed by the cloud push platform, or download the component upgrade package according to the download address corresponding to the component upgrade package.

[0074] 203. Hot update the target system component according to the initial component package and the component update package to obtain an updated system component.

[0075] Specifically, after obtaining the component update package corresponding to the target system component to be updated, the terminal or the target update device performs a hot update on the target system component according to the initial component package and the component update package to obtain an updated system component.

[0076] Specifically, after downloading the component update package corresponding to the target system component to be updated, the target update device also restarts the target update device, and after restarting, performs update verification on the component update package using the initial component package to obtain an update verification result.

[0077] Specifically, the terminal obtains the first key in the initial component package and the second key in the component update package, and performs update verification on the component update package using the first key, the second key and a preset verification command to obtain an update verification result. Optionally, in a specific embodiment, the preset verification command is apexd verification --publish_key=<pub l i c_key> --apex=<apex_f i l e_name> Order.

[0078] Optionally, if the first key and the second key do not match, the terminal outputs an update verification result corresponding to the verification failure result, and the terminal terminates the component hot update operation on the target system component.

[0079] Optionally, if the first key and the second key match, an updated verification result corresponding to successful verification is output.

[0080] Specifically, after determining that the update verification result is a verification pass result, the terminal uses the component update package to perform a component hot update operation on the target system component to obtain an updated system component.

[0081] Specifically, the terminal updates the target system component using the component update package, drives the target system component to read the update container configuration in the target loading path, and drives the target system component to load the update container configuration to obtain the updated system component.

[0082] In this embodiment, the component hot update device responds to the component hot update request for the target system component, obtains the initial component package associated with the target system component, and the initial component package is in APEX file format; generates the component update package of the target system component according to the update configuration information of the target system component and the initial component package; hot updates the target system component according to the initial component package and the component update package to obtain an updated system component. This is achieved by packaging the system component into an initial component package corresponding to the APEX file format, and using the component update package corresponding to the target system component to hot update the customized target system component, thereby achieving rapid repair of component abnormalities in the equipment operation cycle, improving component update efficiency, and reducing component update costs.

[0083] like Figure 3 As shown, Figure 3 This is a flow chart of an embodiment of hot updating a target system component in a component hot update method provided in an embodiment of the present application. Specifically, in this embodiment, the component hot update method further includes steps 301 to 303:

[0084] 301. Create a loopback device component corresponding to the target system component using the component update package;

[0085] 302. Create a device mapper corresponding to the target system component using the loopback device component;

[0086] 303. According to the component update package, the device mapper is loaded into a target loading path corresponding to the target system component to perform component hot update, thereby obtaining an updated system component.

[0087] Based on the above embodiments, in this embodiment, specifically, after the terminal or target update device obtains the component update package corresponding to the target system component to be updated, it hot updates the target system component according to the initial component package and the component update package to obtain the updated system component.

[0088] Specifically, after installing the component update package, the terminal connects the target system component to the target update component, and uses the component update package to create a loopback device component corresponding to the target system component. The loopback device component is a virtual device component that can treat the component update package as a block device. Specifically, after the terminal uses the component update package to create the loopback device component corresponding to the target system component, the terminal binds the component update package to the loopback device component, thereby using the loopback device component to perform corresponding operations such as mounting, reading data, and writing data.

[0089] Specifically, after the terminal uses the component update package to create the loopback device component corresponding to the target system component, it also uses the loopback device component to create the device mapper corresponding to the target system component. The device mapper is a block device for providing logical volume management (LVM) and device mapping functions. That is, after creating the loopback mapper, the terminal also uses a preset mapper creation instruction to create a device mapper block device, thereby creating a device mapper block device on the loopback device.

[0090] Specifically, after creating the device mapper corresponding to the target system component, the terminal also loads the device mapper to the target loading path corresponding to the target system component according to the component update package to perform component hot update, thereby obtaining an updated system component. The target loading path is the loading path corresponding to the target system component, and in a specific embodiment, the target loading path is / apex / com.xxx.fwk.stub.

[0091] Specifically, the terminal updates the target system component using the component update package, drives the target system component to read the update container configuration in the target loading path, and drives the target system component to load the update container configuration to obtain the updated system component.

[0092] In this embodiment, the component hot update device creates a loopback device component corresponding to the target system component by using the component update package; creates a device mapper corresponding to the target system component by using the loopback device component; and loads the device mapper to the target loading path corresponding to the target system component according to the component update package to perform component hot update, thereby obtaining an updated system component. The Apex update package corresponding to the target system component to be updated is loaded and configured to achieve independent hot update of the target system component, thereby improving the efficiency of hot update.

[0093] In order to better implement the component hot update method in the embodiment of the present application, based on the component hot update method, the embodiment of the present application also provides a component hot update device, such as Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of a component hot update device provided in an embodiment of the present application. Specifically, the component hot update device 400 includes:

[0094] The data acquisition module 401 is configured to respond to a component hot update request for a target system component and acquire an initial component package associated with the target system component, wherein the initial component package is in an APEX file format;

[0095] A region identification module 402 is configured to generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package;

[0096] The collaborative display module 403 is configured to perform a hot update on the target system component according to the initial component package and the component update package to obtain an updated system component.

[0097] In a possible implementation of this embodiment, the component hot update device obtains the initial component package associated with the target system component, including:

[0098] Pre-embedding a component base package of the target system component in a target update device;

[0099] Component parameter information corresponding to the target system component is obtained, and the component basic package is compiled using the component parameter information to obtain an initial component package.

[0100] In a possible implementation of this embodiment, the component hot update device determines the component update package corresponding to the initial component package according to the update configuration information of the target system component, including:

[0101] Access the cloud push platform and upload the initial component package corresponding to the target system component;

[0102] Driving the cloud push platform to perform update configuration according to the update configuration information of the target system component and the initial component package to obtain a component update package;

[0103] Respond to the component update request triggered by the cloud push platform, and receive the component update package pushed by the cloud push platform.

[0104] In a possible implementation of this embodiment, the component hot update device performs hot update on the target system component according to the initial component package and the component update package to obtain an updated system component, including:

[0105] Using the initial component package to perform update verification on the component update package to obtain an update verification result;

[0106] If the update verification result is a verification pass result, the target system component is hot updated using the component update package to obtain an updated system component.

[0107] In a possible implementation of this embodiment, the component hot update device uses the initial component package to perform update verification on the component update package to obtain an update verification result, including:

[0108] Obtaining a first key in the initial component package and a second key in the component update package;

[0109] If the first key and the second key do not match, outputting an updated verification result corresponding to the verification failure result;

[0110] If the first key and the second key match, an updated verification result corresponding to successful verification is output.

[0111] In a possible implementation of this embodiment, the component hot update device uses the component update package to hot update the target system component to obtain an updated system component, including:

[0112] Using the component update package to create a loopback device component corresponding to the target system component;

[0113] Creating a device mapper corresponding to the target system component using the loopback device component;

[0114] According to the component update package, the device mapper is loaded into the target loading path corresponding to the target system component to perform component hot update, thereby obtaining an updated system component.

[0115] In a possible implementation of this embodiment, the component hot update apparatus loads the device mapper to the target loading path corresponding to the target system component according to the component update package to perform component hot update to obtain an updated system component, including:

[0116] Driving the target system component to obtain the updated container configuration in the target loading path;

[0117] The target system component is driven to load the update container configuration to obtain an updated system component.

[0118] In this embodiment, the component hot update device obtains the initial component package associated with the target system component by responding to the component hot update request for the target system component, and the initial component package is in APEX file format; generates a component update package of the target system component according to the update configuration information of the target system component and the initial component package; hot updates the target system component according to the initial component package and the component update package to obtain an updated system component. This is achieved by packaging the system component into an initial component package corresponding to the APEX file format, and using the component update package corresponding to the target system component to hot update the customized target system component, thereby achieving rapid repair of component abnormality problems in the equipment operation cycle, improving component update efficiency, and reducing component update costs.

[0119] The embodiment of the present invention also provides a component hot update device, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of an embodiment of a component hot update device provided in an embodiment of the present application.

[0120] The component hot update device integrates any component hot update device provided in the embodiment of the present invention, and the component hot update device includes:

[0121] one or more processors;

[0122] Memory; and

[0123] One or more applications, wherein the one or more applications are stored in the memory and are configured so that the processor executes the steps of the component hot update method described in any of the above-mentioned component hot update method embodiments.

[0124] Specifically, the component hot update device may include one or more processing core processors 501, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504 and other components. Those skilled in the art will understand that Figure 5 The component hot update device structure shown in the figure does not constitute a limitation on the component hot update device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0125] The processor 501 is the control center of the component hot update device. It uses various interfaces and lines to connect various parts of the entire component hot update device. By running or executing software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, it executes various functions of the component hot update device and processes data, thereby monitoring the component hot update device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.

[0126] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of a component hot update device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0127] The component hot update device also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 503 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0128] The component hot update device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0129] Although not shown, the component hot update device may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 501 in the component hot update device will load the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application program stored in the memory 502, thereby realizing various functions, as follows:

[0130] In response to a component hot update request for a target system component, an initial component package associated with the target system component is obtained, wherein the initial component package is in an APEX file format;

[0131] Generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package;

[0132] The target system component is hot-updated according to the initial component package and the component update package to obtain an updated system component.

[0133] To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any component hot update method provided in an embodiment of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:

[0134] In response to a component hot update request for a target system component, an initial component package associated with the target system component is obtained, wherein the initial component package is in an APEX file format;

[0135] Generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package;

[0136] The target system component is hot-updated according to the initial component package and the component update package to obtain an updated system component.

[0137] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0138] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0139] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0140] The above is a detailed introduction to a component hot update method provided in an embodiment of the present application. Specific embodiments are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A component hot update method, characterized in that: The component hot update method comprises: In response to a component hot update request for a target system component, an initial component package associated with the target system component is obtained, wherein the initial component package is in an APEX file format; Generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package; The target system component is hot-updated according to the initial component package and the component update package to obtain an updated system component.

2. The component hot update method according to claim 1, characterized in that: The obtaining of the initial component package associated with the target system component includes: Pre-embedding a component base package of the target system component in a target update device; Component parameter information corresponding to the target system component is obtained, and the component basic package is compiled using the component parameter information to obtain an initial component package.

3. The component hot update method according to claim 1, characterized in that: The step of generating the component update package of the target system component according to the update configuration information of the target system component and the initial component package includes: Access the cloud push platform and upload the initial component package corresponding to the target system component; Driving the cloud push platform to perform update configuration according to the update configuration information of the target system component and the initial component package to obtain a component update package; Respond to the component update request triggered by the cloud push platform, and receive the component update package pushed by the cloud push platform.

4. The component hot update method according to claim 1, characterized in that: The step of hot updating the target system component according to the initial component package and the component update package to obtain an updated system component includes: Using the initial component package to perform update verification on the component update package to obtain an update verification result; If the update verification result is a verification pass result, the target system component is hot updated using the component update package to obtain an updated system component.

5. The component hot update method according to claim 4, characterized in that: The using the initial component package to perform update verification on the component update package to obtain an update verification result includes: Obtaining a first key in the initial component package and a second key in the component update package; If the first key and the second key do not match, outputting an updated verification result corresponding to the verification failure result; If the first key and the second key match, an updated verification result corresponding to successful verification is output.

6. The component hot update method according to claim 4, characterized in that: The step of hot updating the target system component by using the component update package to obtain an updated system component includes: Using the component update package to create a loopback device component corresponding to the target system component; Creating a device mapper corresponding to the target system component using the loopback device component; According to the component update package, the device mapper is loaded into the target loading path corresponding to the target system component to perform component hot update, thereby obtaining an updated system component.

7. The component hot update method according to claim 6, characterized in that: The step of loading the device mapper to a target loading path corresponding to the target system component according to the component update package to perform component hot update to obtain an updated system component includes: Driving the target system component to obtain the updated container configuration in the target loading path; The target system component is driven to load the update container configuration to obtain an updated system component.

8. A component hot update device, characterized in that: The component hot update device comprises: A data acquisition module is configured to respond to a component hot update request for a target system component and acquire an initial component package associated with the target system component, wherein the initial component package is in an APEX file format; A region identification module, configured to generate a component update package of the target system component according to the update configuration information of the target system component and the initial component package; The collaborative display module is configured to perform a hot update on the target system component according to the initial component package and the component update package to obtain an updated system component.

9. A component hot update device, characterized in that: The component hot update device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and are configured to be executed by the processor to implement the steps of the component hot update method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps of the component hot update method according to any one of claims 1 to 7.