CN112860287A - System program upgrading method and device, computer equipment and storage medium - Google Patents

System program upgrading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112860287A
CN112860287A CN202110060026.5A CN202110060026A CN112860287A CN 112860287 A CN112860287 A CN 112860287A CN 202110060026 A CN202110060026 A CN 202110060026A CN 112860287 A CN112860287 A CN 112860287A
Authority
CN
China
Prior art keywords
system program
upgrading
upgrade
package
functional component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110060026.5A
Other languages
Chinese (zh)
Inventor
艾浩峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realme Mobile Telecommunications Shenzhen Co Ltd
Original Assignee
Realme Mobile Telecommunications Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realme Mobile Telecommunications Shenzhen Co Ltd filed Critical Realme Mobile Telecommunications Shenzhen Co Ltd
Priority to CN202110060026.5A priority Critical patent/CN112860287A/en
Publication of CN112860287A publication Critical patent/CN112860287A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/66Updates of program code stored in read-only memory [ROM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Abstract

The application discloses a system program upgrading method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: receiving a system program upgrading package sent by a server, wherein the system program upgrading package comprises storage position indication information and an upgrading file of a functional component to be upgraded corresponding to the system program upgrading package, and the functional component to be upgraded corresponding to the system program upgrading package is one of a plurality of functional components included in a system program; and upgrading the functional component to be upgraded corresponding to the system program upgrading package based on the system program upgrading package. The technical scheme provided by the embodiment of the application can improve the efficiency of upgrading the system program and the flexibility of upgrading the system program.

Description

System program upgrading method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for upgrading a system program, a computer device, and a storage medium.
Background
OTA (Over-the-Air) is a technology in which a computer device downloads a system program upgrade package deployed in a server through a wireless network and upgrades a system program of the computer using the downloaded system program upgrade package.
However, in the prior art, the system program upgrade package generally includes a large amount of contents and data, which results in a low system program upgrade efficiency and a low flexibility of system program upgrade.
Disclosure of Invention
Based on this, the embodiments of the present application provide a method and an apparatus for upgrading a system program, a computer device, and a storage medium, which can improve the efficiency of upgrading the system program and the flexibility of upgrading the system program.
In a first aspect, a method for upgrading a system program is provided, where the method includes:
receiving a system program upgrading package sent by a server, wherein the system program upgrading package comprises storage position indication information and an upgrading file of a functional component to be upgraded corresponding to the system program upgrading package, and the functional component to be upgraded corresponding to the system program upgrading package is one of a plurality of functional components included in a system program; and upgrading the functional component to be upgraded corresponding to the system program upgrading package based on the system program upgrading package.
In a second aspect, there is provided a system program upgrade apparatus, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a system program upgrading package sent by a server, the system program upgrading package comprises storage position indication information and an upgrading file of a functional component to be upgraded corresponding to the system program upgrading package, and the functional component to be upgraded corresponding to the system program upgrading package is one of a plurality of functional components included in a system program;
and the upgrading module is used for upgrading the functional component to be upgraded corresponding to the system program upgrading package based on the system program upgrading package.
In a third aspect, a computer device is provided, which includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement the system program upgrading method according to the first aspect.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the system program upgrade method as described in the first aspect above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
by dividing the system program into a plurality of functional components, receiving a system program upgrading package which is sent by a server and corresponds to a functional component to be upgraded for a certain functional component to be upgraded, wherein the system program upgrade package comprises storage location indication information and an upgrade file of the functional component to be upgraded, then, the functional component to be upgraded is upgraded based on the system program upgrade package, so that the functional component with the upgrade requirement in the system program can be upgraded independently in a targeted manner, since only the functional components in the system program are individually upgraded, the system program upgrade package may include only the contents corresponding to the functional components to be upgraded, and thus, the content included by the system program upgrading package can be greatly reduced, the data volume of the system program upgrading package is reduced, and then the efficiency of system program upgrading and the flexibility of system program upgrading can be improved.
Drawings
Fig. 1 is a flowchart of a system program upgrading method according to an embodiment of the present application;
fig. 2 is a flowchart of a system program upgrading method according to an embodiment of the present application;
fig. 3 is a block diagram of a system program upgrading apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
OTA (Over-the-Air) is a technology in which a computer device downloads a system program upgrade package deployed in a server through a wireless network and upgrades a system program of the computer using the downloaded system program upgrade package.
Taking the android system as an example, the storage space of the computer device can be generally divided into SRAM, Nand Flash, SDRAM, and peripheral address space. In the OTA technology, we mainly focus on the system partition and the boot partition, because OTA upgrade is mainly to update the data.
Generally, a system program upgrade package in the OTA technology may include a boot.img directory in which files required for updating a boot partition are stored and a system directory in which files required for updating a system partition are stored.
In the process of upgrading the system program by using the system program upgrade package, files under the boot.
However, in the process of deeply researching the OTA technology, the inventor of the present application finds that the existing OTA technology is used for upgrading the entire system program, and in the process of upgrading, data updating is performed on the entire storage partition corresponding to the system program, so that in the existing OTA technology, the system program upgrade package often needs to include more content, and the data size is larger, which results in lower system program upgrade efficiency and, at the same time, poor flexibility of system program upgrade.
In view of this, embodiments of the present application provide a system program upgrading method, which can improve efficiency of system program upgrading and flexibility of system program upgrading.
It should be noted that, in the method for upgrading a system program provided in the embodiments of the present application, an execution main body of the method may be a system program upgrading apparatus, and the system program upgrading apparatus may be implemented as part of or all of a computer device by software, hardware, or a combination of software and hardware. In the following method embodiments, an execution subject is taken as an example to describe, where the computer device in the present application embodiment may be a smart phone, a tablet computer, a notebook computer, or the like, and the computer device in the present application embodiment may be installed with an android system, an IOS system, or the like, and the present application embodiment does not specifically limit a specific type of the computer device and a system installed in the computer device.
Referring to fig. 1, a flowchart of a system program upgrading method provided in an embodiment of the present application is shown, where the system program upgrading method may be applied to a computer device. As shown in fig. 1, the system program upgrading method may include the following steps:
step 101, a computer device receives a system program upgrade package sent by a server.
The system program upgrading package corresponds to a functional component to be upgraded and comprises storage position indication information and an upgrading file of the functional component to be upgraded.
It is to be noted that the functional component to be upgraded may be one of a plurality of functional components included in the system program.
In the embodiment of the application, the system program can be subjected to componentization transformation, and the system program can be split into a plurality of functional components through the componentization transformation, for example, files related to the audio and video functions in the original system program can be placed in one functional component, and files related to the camera functions in the original system program can be placed in one functional component through the componentization transformation.
In general, a plurality of functional components obtained by componentization transformation of a system program are relatively independent and can be independently issued, and each functional component can provide a call interface to the outside so that other functional components or an application program calls the functional component based on the call interface.
In this embodiment of the present application, functional components included in a system program may be upgraded separately, and optionally, a technician may create a system program upgrade package corresponding to the functional component to be upgraded, and deploy the system program upgrade package in a server.
The computer device may periodically detect the server, and if a new system program upgrade package is detected, the computer device may request the server for the system program upgrade package, and the server may send the system program upgrade package to the computer device after receiving the request of the computer device.
And 102, the computer equipment carries out upgrading treatment on the functional component to be upgraded corresponding to the system program upgrading package based on the system program upgrading package.
As described above, the system program upgrade package may include the storage location indication information and the upgrade file of the functional component to be upgraded corresponding to the system program upgrade package.
In this embodiment of the application, the computer device may determine, based on the storage location indication information, a storage location of the functional component to be upgraded corresponding to the system program upgrade package, and then, the computer device may write the upgrade file in the storage location, thereby implementing the upgrade of the functional component.
It should be noted that, in this embodiment of the present application, the system program upgrade package may further include an upgrade script, and the computer device may execute the upgrade script in the system program upgrade package to implement the technical process of "determining, based on the storage location indication information, a storage location of the functional component to be upgraded corresponding to the system program upgrade package, and writing an upgrade file at the storage location" described above.
In the embodiment of the application, the computer device may perform full upgrade on the functional components based on the system program upgrade package, or perform incremental upgrade on the functional components based on the system program upgrade package.
In the process of carrying out full upgrading, the computer equipment can format the functional components stored in the storage positions of the functional components to be upgraded corresponding to the system program upgrading packages, and after the formatting, the computer equipment can write the upgrading files into the storage positions, so that the whole functional components are upgraded.
In the process of incremental upgrading, the computer equipment can determine the field position corresponding to the upgrading file in the system program upgrading package, and then the computer equipment can edit the field content corresponding to the field position in the storage position of the functional component to be upgraded corresponding to the system program upgrading package according to the upgrading file, so that the field content of some field positions in the functional component is locally upgraded.
The system program upgrading method provided by the embodiment of the application divides a system program into a plurality of functional components, receives a system program upgrading package corresponding to a functional component to be upgraded and sent by a server for the functional component to be upgraded, wherein the system program upgrading package comprises storage position indication information and an upgrading file of the functional component to be upgraded, and then upgrades the functional component to be upgraded based on the system program upgrading package, so that the functional component with upgrading requirement in the system program can be upgraded independently, and only the functional component in the system program is upgraded independently, so that the system program upgrading package can only comprise content corresponding to the functional component to be upgraded, the content of the system program upgrading package can be greatly reduced, and the data volume of the system program upgrading package is reduced, and then the efficiency of upgrading the system program and the flexibility of upgrading the system program can be improved.
In practical application, a plurality of different functional components which need to be upgraded may exist in a system program at the same time, and in this case, the computer device may download a system program upgrade package corresponding to each functional component which needs to be upgraded from the server, and upgrade the functional component corresponding to each system program upgrade package based on each system program upgrade package obtained by downloading. This process will be exemplarily described below in the embodiments of the present application.
Referring to fig. 2, a flowchart of a method for upgrading a functional component corresponding to each system program upgrade package based on each system program upgrade package is shown, as shown in fig. 2, the method includes the following steps:
step 201, the computer device controls itself to enter a Recovery mode.
The Recovery mode is a backup, restoration and upgrade mode that a computer device, especially a computer device installed with an android system has, in the Recovery mode, a system program in the computer device may be backed up, upgraded or restored, and the Recovery mode is similar to a DOS mode in a windows system.
In an optional embodiment of the present application, the computer device may automatically enter the Recovery mode after receiving the system program upgrade package sent by the server, or may enter the Recovery mode under the control of the user, for example, the computer device may enter the Recovery mode after detecting that the user has long pressed the power-on key and the volume key at the same time.
Step 202, in the Recovery mode, the computer device performs an upgrade process on the functional component to be upgraded corresponding to the ith system program upgrade package based on the ith system program upgrade package in the plurality of system program upgrade packages, and generates an upgrade process result corresponding to the ith system program upgrade package.
And step 203, if the upgrading processing result corresponding to the ith system program upgrading packet is successful, prohibiting the computer equipment from exiting the Recovery mode, and upgrading the functional component to be upgraded corresponding to the (i + 1) th system program upgrading packet based on the (i + 1) th system program upgrading packet in the plurality of system program upgrading packets.
In the existing upgrade logic, after the computer device completes the upgrade process based on the system program upgrade package, the computer device may exit the Recovery mode, and restart the computer device to return to the normal operating mode of the computer device.
Because the existing OTA technology is used for upgrading the whole system program, the upgrading of the system program can be realized only by using one system program upgrading package, and therefore, the mode that the computer device exits the Recovery mode after finishing the upgrading processing based on the system program upgrading package does not bring adverse effects to the upgrading of the existing system program.
However, as described above, in the embodiment of the present application, a plurality of different functional components that need to be upgraded may exist in the system program at the same time, in this case, the computer device needs to download the system program upgrade package corresponding to each functional component that needs to be upgraded from the server, and upgrade the functional component corresponding to each system program upgrade package based on each system program upgrade package obtained by downloading. In this case, if the Recovery mode is exited and the computer device is restarted and returns to the normal operating mode of the computer device after the upgrade processing is completed based on the system program upgrade package in the existing manner, the computer device may be restarted many times during the system program upgrade process, thereby affecting the efficiency of the system program upgrade.
For example, if a functional component a, a functional component B, and a functional component C need to be upgraded in a system program, the computer device may download a system program upgrade package corresponding to the functional component a, the functional component B, and the functional component C from the server, then, the computer device may upgrade the functional component a based on the system program upgrade package corresponding to the functional component a in the Recovery mode, after the upgrade processing of the functional component a is completed, the computer device may exit the Recovery mode, restart the computer device, return to the normal operating mode of the computer device, then, the computer device may enter the Recovery mode again, upgrade the functional component B based on the system program upgrade package corresponding to the functional component B in the Recovery mode, and after the upgrade processing of the functional component B is completed, the computer device may exit the Recovery mode, and restarting the computer device, returning to the normal working mode of the computer device, then, the computer device can enter the Recovery mode again, upgrading the functional component C in the Recovery mode based on the system program upgrading packet corresponding to the functional component C, after finishing upgrading the functional component C, the computer device can exit the Recovery mode, restart the computer device, and return to the normal working mode of the computer device.
As can be seen from the above description, in the above example, the computer device performs three reboots in the system program upgrade process, which may adversely affect the efficiency of the system program upgrade.
In view of this, in this embodiment of the application, the computer device may perform, in the Recovery mode, an upgrade process on a to-be-upgraded functional component corresponding to an ith system program upgrade package based on the ith system program upgrade package, and generate an upgrade process result corresponding to the ith system program upgrade package, if the upgrade process result corresponding to the ith system program upgrade package is that the upgrade is successful, the computer device prohibits itself from exiting the Recovery mode, and performs an upgrade process on a to-be-upgraded functional component corresponding to an i +1 th system program upgrade package based on an i +1 th system program upgrade package in the plurality of system program upgrade packages.
In other words, in this embodiment of the present application, the computer device may sequentially perform, based on each system program upgrade package, upgrade processing on the to-be-upgraded functional components corresponding to each system program upgrade package, and after each upgrade processing, detect whether the upgrade processing is successful, if the upgrade processing is successful, the computer device prohibits itself from exiting the Recovery mode, and continues to perform upgrade processing on the functional components corresponding to the next system program upgrade package by using the next system program upgrade package.
For example, if a functional component a, a functional component B, and a functional component C need to be upgraded in a system program, the computer device may download a system program upgrade package corresponding to the functional component a, the functional component B, and the functional component C from the server, then, the computer device may perform upgrade processing on the functional component a based on the system program upgrade package corresponding to the functional component a in the Recovery mode, after the upgrade processing on the functional component a is completed, the computer device may generate an upgrade processing result of the system program upgrade package corresponding to the functional component a, if the upgrade processing result is successful, the computer device may prohibit itself from exiting the Recovery mode, and continue to perform upgrade processing on the functional component B based on the system program upgrade package corresponding to the functional component B in the Recovery mode, after the upgrade processing on the functional component B is completed, the computer device may generate an upgrade processing result of the system program upgrade package corresponding to the functional component B, and if the upgrade processing result is successful, the computer device may prohibit itself from exiting the Recovery mode, continue to perform upgrade processing on the functional component C based on the system program upgrade package corresponding to the functional component C in the Recovery mode, and after the upgrade processing on the functional component C is completed, the computer device may exit the Recovery mode, restart the computer device, and return to the normal operating mode of the computer device.
Therefore, the computer equipment is restarted once in the process of upgrading the system program, and therefore the efficiency of upgrading the system program can be greatly improved.
In an alternative embodiment of the present application, the computer device may read each system program upgrade package downloaded from the server and create a circulator based on each system program upgrade package downloaded from the server, and the computer device may perform the technical processes of step 202 and step 203 based on the created circulator.
In an optional embodiment of the present application, if an upgrade processing result corresponding to the ith system program upgrade package is an upgrade failure, the computer device may control itself to exit the Recovery mode, or, if the i +1 system program upgrade packages are the last system program upgrade packages of the plurality of system program upgrade packages, the computer device may control itself to exit the Recovery mode.
Referring to fig. 3, a block diagram of a system program upgrading apparatus 300 according to an embodiment of the present application is shown, where the system program upgrading apparatus 300 may be configured in a computer device. As shown in fig. 3, the system program upgrading apparatus 300 may include: a receiving module 301 and an upgrading module 302.
The receiving module 301 is configured to receive a system program upgrade package sent by a server, where the system program upgrade package includes storage location indication information and an upgrade file of a to-be-upgraded functional component corresponding to the system program upgrade package, and the to-be-upgraded functional component corresponding to the system program upgrade package is one of a plurality of functional components included in a system program.
The upgrading module 302 is configured to upgrade, based on the system program upgrade package, a functional component to be upgraded corresponding to the system program upgrade package.
In an optional embodiment of the present application, the number of the system program upgrade packages is multiple, and the functional components to be upgraded corresponding to each system program upgrade package are different from each other, and the upgrade module 302 is specifically configured to: controlling the computer equipment to enter a Recovery mode; in a Recovery mode, upgrading the functional components to be upgraded corresponding to the ith system program upgrading package based on the ith system program upgrading package in the plurality of system program upgrading packages, and generating upgrading processing results corresponding to the ith system program upgrading package; and if the upgrading processing result corresponding to the ith system program upgrading packet is successful, forbidding to exit the Recovery mode, and upgrading the functional component to be upgraded corresponding to the (i + 1) th system program upgrading packet based on the (i + 1) th system program upgrading packet in the plurality of system program upgrading packets.
In an optional embodiment of the present application, the upgrade module 302 is further configured to: and if the upgrading processing result corresponding to the ith system program upgrading packet is upgrading failure, controlling the computer equipment to exit a Recovery mode.
In an optional embodiment of the present application, the upgrade module 302 is further configured to: and if the i +1 system program upgrading packages are the last system program upgrading packages in the plurality of system program upgrading packages, controlling the computer equipment to exit a Recovery mode.
In an optional embodiment of the present application, the upgrade module 302 is specifically configured to: determining the storage position of the functional component to be upgraded corresponding to the system program upgrading package based on the storage position indication information; the upgrade file is written at the storage location.
In an optional embodiment of the present application, the upgrade module 302 is specifically configured to: formatting the functional components stored in the storage position; after the formatting process, the upgrade file is written to the storage location.
In an optional embodiment of the present application, the upgrade module 302 is specifically configured to: determining a field position corresponding to the upgrade file; and editing the field content corresponding to the field position in the storage position according to the upgrade file.
The system program upgrading device provided by the embodiment of the application can realize the method embodiment, the realization principle and the technical effect are similar, and details are not repeated herein.
For specific limitations of the system program upgrading device, reference may be made to the above limitations of the system program upgrading method, which are not described herein again. The modules in the system program upgrading device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
FIG. 4 is a diagram showing an internal configuration of a computer device according to an embodiment. As shown in fig. 4, the computer device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a system program upgrading method provided by the above embodiments. The internal memory provides a cached execution environment for the operating system and computer programs in the non-volatile storage medium.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
receiving a system program upgrading package sent by a server, wherein the system program upgrading package comprises storage position indication information and an upgrading file of a functional component to be upgraded corresponding to the system program upgrading package, and the functional component to be upgraded corresponding to the system program upgrading package is one of a plurality of functional components included in a system program; and upgrading the functional component to be upgraded corresponding to the system program upgrading package based on the system program upgrading package.
In an embodiment of the present application, the number of the system program upgrade packages is multiple, and the functional components to be upgraded corresponding to each system program upgrade package are different from each other, and the processor further implements the following steps when executing the computer program: controlling the computer equipment to enter a Recovery mode; in a Recovery mode, upgrading the functional components to be upgraded corresponding to the ith system program upgrading package based on the ith system program upgrading package in the plurality of system program upgrading packages, and generating upgrading processing results corresponding to the ith system program upgrading package; and if the upgrading processing result corresponding to the ith system program upgrading packet is successful, forbidding to exit the Recovery mode, and upgrading the functional component to be upgraded corresponding to the (i + 1) th system program upgrading packet based on the (i + 1) th system program upgrading packet in the plurality of system program upgrading packets.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and if the upgrading processing result corresponding to the ith system program upgrading packet is upgrading failure, controlling the computer equipment to exit a Recovery mode.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and if the i +1 system program upgrading packages are the last system program upgrading packages in the plurality of system program upgrading packages, controlling the computer equipment to exit a Recovery mode.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: determining the storage position of the functional component to be upgraded corresponding to the system program upgrading package based on the storage position indication information; the upgrade file is written at the storage location.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: formatting the functional components stored in the storage position; after the formatting process, the upgrade file is written to the storage location.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: determining a field position corresponding to the upgrade file; and editing the field content corresponding to the field position in the storage position according to the upgrade file.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
receiving a system program upgrading package sent by a server, wherein the system program upgrading package comprises storage position indication information and an upgrading file of a functional component to be upgraded corresponding to the system program upgrading package, and the functional component to be upgraded corresponding to the system program upgrading package is one of a plurality of functional components included in a system program; and upgrading the functional component to be upgraded corresponding to the system program upgrading package based on the system program upgrading package.
In an embodiment of the present application, the number of the system program upgrade packages is multiple, and the functional components to be upgraded corresponding to each system program upgrade package are different from each other, and when being executed by the processor, the computer program further implements the following steps: controlling the computer equipment to enter a Recovery mode; in a Recovery mode, upgrading the functional components to be upgraded corresponding to the ith system program upgrading package based on the ith system program upgrading package in the plurality of system program upgrading packages, and generating upgrading processing results corresponding to the ith system program upgrading package; and if the upgrading processing result corresponding to the ith system program upgrading packet is successful, forbidding to exit the Recovery mode, and upgrading the functional component to be upgraded corresponding to the (i + 1) th system program upgrading packet based on the (i + 1) th system program upgrading packet in the plurality of system program upgrading packets.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and if the upgrading processing result corresponding to the ith system program upgrading packet is upgrading failure, controlling the computer equipment to exit a Recovery mode.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and if the i +1 system program upgrading packages are the last system program upgrading packages in the plurality of system program upgrading packages, controlling the computer equipment to exit a Recovery mode.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: determining the storage position of the functional component to be upgraded corresponding to the system program upgrading package based on the storage position indication information; the upgrade file is written at the storage location.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: formatting the functional components stored in the storage position; after the formatting process, the upgrade file is written to the storage location.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: determining a field position corresponding to the upgrade file; and editing the field content corresponding to the field position in the storage position according to the upgrade file.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in M forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (SyMchliMk) DRAM (SLDRAM), RaMbus (RaMbus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for upgrading a system program, the method comprising:
receiving a system program upgrading package sent by a server, wherein the system program upgrading package comprises storage position indication information and an upgrading file of a functional component to be upgraded corresponding to the system program upgrading package, and the functional component to be upgraded corresponding to the system program upgrading package is one of a plurality of functional components included in a system program;
and upgrading the functional component to be upgraded corresponding to the system program upgrading package based on the system program upgrading package.
2. The method according to claim 1, wherein the number of the system program upgrade packages is plural, and the functional components to be upgraded corresponding to each of the system program upgrade packages are different from each other, and performing the upgrade processing on the functional components to be upgraded corresponding to the system program upgrade packages based on the system program upgrade packages includes:
controlling the computer equipment to enter a Recovery mode;
in a Recovery mode, upgrading the functional component to be upgraded corresponding to the ith system program upgrading package based on the ith system program upgrading package in the plurality of system program upgrading packages, and generating an upgrading processing result corresponding to the ith system program upgrading package;
and if the upgrading processing result corresponding to the ith system program upgrading packet is successful, forbidding to exit the Recovery mode, and upgrading the functional component to be upgraded corresponding to the (i + 1) th system program upgrading packet based on the (i + 1) th system program upgrading packet in the plurality of system program upgrading packets.
3. The method of claim 2, further comprising:
and if the upgrading processing result corresponding to the ith system program upgrading packet is upgrading failure, controlling the computer equipment to exit a Recovery mode.
4. The method according to claim 2, wherein after the functional component to be upgraded corresponding to the i +1 th system program upgrade package is upgraded based on the i +1 th system program upgrade package in the plurality of system program upgrade packages, the method further comprises:
and if the i +1 system program upgrading packages are the last system program upgrading packages in the plurality of system program upgrading packages, controlling the computer equipment to exit a Recovery mode.
5. The method according to claim 1, wherein the upgrading the functional component to be upgraded corresponding to the system program upgrade package based on the system program upgrade package comprises:
determining the storage position of the functional component to be upgraded corresponding to the system program upgrading package based on the storage position indication information;
writing the upgrade file at the storage location.
6. The method of claim 5, wherein said writing the upgrade file at the storage location comprises:
formatting the functional components stored in the storage positions;
after the formatting process, writing the upgrade file to the storage location.
7. The method of claim 5, wherein said writing the upgrade file at the storage location comprises:
determining a field position corresponding to the upgrade file;
and editing the field content corresponding to the field position in the storage position according to the upgrading file.
8. A system program upgrade apparatus, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a system program upgrading package sent by a server, the system program upgrading package comprises storage position indication information and an upgrading file of a functional component to be upgraded corresponding to the system program upgrading package, and the functional component to be upgraded corresponding to the system program upgrading package is one of a plurality of functional components included in a system program;
and the upgrading module is used for upgrading the functional components to be upgraded corresponding to the system program upgrading package based on the system program upgrading package.
9. A computer device comprising a processor and a memory, the memory having stored therein a computer program, the processor implementing the system program upgrade method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the system program upgrade method according to any one of claims 1 to 7.
CN202110060026.5A 2021-01-18 2021-01-18 System program upgrading method and device, computer equipment and storage medium Pending CN112860287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110060026.5A CN112860287A (en) 2021-01-18 2021-01-18 System program upgrading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110060026.5A CN112860287A (en) 2021-01-18 2021-01-18 System program upgrading method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112860287A true CN112860287A (en) 2021-05-28

Family

ID=76006111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110060026.5A Pending CN112860287A (en) 2021-01-18 2021-01-18 System program upgrading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112860287A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640687A (en) * 2022-03-15 2022-06-17 北京中交兴路信息科技有限公司 Software upgrading method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201552A (en) * 2016-07-22 2016-12-07 北京智能管家科技有限公司 A kind of method for upgrading software, client, server and system
CN106293802A (en) * 2016-07-07 2017-01-04 北京海誉动想科技股份有限公司 The upgrade method of agency in instance system and instance system
CN106658475A (en) * 2015-10-30 2017-05-10 上海中兴软件有限责任公司 Over-the-air technology upgrading method an over-the-air technology upgrading device
CN107526608A (en) * 2017-06-08 2017-12-29 青岛海信移动通信技术股份有限公司 A kind of OTA AKUs upgrade method and equipment
CN109842523A (en) * 2019-02-14 2019-06-04 上海华测导航技术股份有限公司 A kind of firmware upgrade method, device, equipment and storage medium
CN109947456A (en) * 2019-03-27 2019-06-28 深圳Tcl数字技术有限公司 Upgrade method and its update device, the computer storage medium of operating system
CN110231948A (en) * 2019-06-10 2019-09-13 腾讯科技(成都)有限公司 Application program method, apparatus, system, storage medium and computer equipment
CN111327475A (en) * 2020-02-20 2020-06-23 杭州涂鸦信息技术有限公司 Method, system and device for upgrading embedded equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658475A (en) * 2015-10-30 2017-05-10 上海中兴软件有限责任公司 Over-the-air technology upgrading method an over-the-air technology upgrading device
CN106293802A (en) * 2016-07-07 2017-01-04 北京海誉动想科技股份有限公司 The upgrade method of agency in instance system and instance system
CN106201552A (en) * 2016-07-22 2016-12-07 北京智能管家科技有限公司 A kind of method for upgrading software, client, server and system
CN107526608A (en) * 2017-06-08 2017-12-29 青岛海信移动通信技术股份有限公司 A kind of OTA AKUs upgrade method and equipment
CN109842523A (en) * 2019-02-14 2019-06-04 上海华测导航技术股份有限公司 A kind of firmware upgrade method, device, equipment and storage medium
CN109947456A (en) * 2019-03-27 2019-06-28 深圳Tcl数字技术有限公司 Upgrade method and its update device, the computer storage medium of operating system
CN110231948A (en) * 2019-06-10 2019-09-13 腾讯科技(成都)有限公司 Application program method, apparatus, system, storage medium and computer equipment
CN111327475A (en) * 2020-02-20 2020-06-23 杭州涂鸦信息技术有限公司 Method, system and device for upgrading embedded equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张宇杰: ""基于Android平台智能手机在线升级技术的改进与实现"", 《电子质量》, pages 55 - 58 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640687A (en) * 2022-03-15 2022-06-17 北京中交兴路信息科技有限公司 Software upgrading method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN111309364B (en) Chip program upgrading method and device and storage medium
US7657886B1 (en) Mobile device with a MMU for faster firmware updates in a wireless network
KR100584338B1 (en) Method and system for updating software
US7275153B2 (en) Booting and boot code update system using boot strapper code to select between a loader and a duplicate backup loader
CN112416406B (en) Terminal equipment upgrading method, device, terminal equipment and medium
CN110471690B (en) Loading method and device for SO file of dynamic link library and storage medium
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
EP2962243A1 (en) A method for software anti-rollback recovery
WO2016101503A1 (en) Hot patching realization method and apparatus
CN107678762B (en) System version upgrading method and device
CN107566169B (en) Firmware upgrading method based on openwrt and router
CN108228077B (en) Storage area management method, operation method, device, equipment and readable medium
CN110955448A (en) Intelligent contract separation method, contract processing method, apparatus, device and medium
CN110874237A (en) Software upgrading method, device, terminal and readable storage medium
CN110209420A (en) A kind of method and device updating bootstrap loader
CN108984200A (en) A kind of timing updates the method and device of firmware
KR100986487B1 (en) Mobile handset with a fault tolerant update agent
CN112860287A (en) System program upgrading method and device, computer equipment and storage medium
CN111026417A (en) Embedded equipment upgrading method and embedded equipment
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN111176671B (en) Method for automatically and continuously updating system, mobile terminal and storage medium
CN107656747B (en) Data upgrading method and mobile terminal
CN109614128B (en) Program upgrading method and device, computer equipment and storage medium
CN113641449B (en) Mirror image downloading control method and device, equipment and storage medium
CN113986318A (en) Firmware upgrading method and device based on solid state disk, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination