CN112416406A - Terminal equipment upgrading method and device, terminal equipment and medium - Google Patents
Terminal equipment upgrading method and device, terminal equipment and medium Download PDFInfo
- Publication number
- CN112416406A CN112416406A CN202011376388.7A CN202011376388A CN112416406A CN 112416406 A CN112416406 A CN 112416406A CN 202011376388 A CN202011376388 A CN 202011376388A CN 112416406 A CN112416406 A CN 112416406A
- Authority
- CN
- China
- Prior art keywords
- version
- upgrading
- upgrade
- packet
- package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to a terminal equipment upgrading method, a terminal equipment upgrading device, terminal equipment, computer equipment and a storage medium. The method in one embodiment comprises: under the state of running the first operating system, restoring the system version of the second operating system which is not in the running state to the system basic version by using the stored basic installation package of the system basic version; and upgrading the second operating system restored to the system base version by using a system upgrading differential package, and upgrading the second operating system to the system latest version, wherein the system upgrading differential package is a differential package between the base installation package and the installation package of the system latest version. By adopting the method, the maintenance cost of the difference packet can be reduced, the silent upgrade is realized, and the disaster tolerance is high.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a terminal device upgrading method, a terminal device upgrading apparatus, a terminal device, a computer device, and a storage medium.
Background
With the development of computer technology, in the use process of the terminal device, the situation that a system used by the terminal device needs to be upgraded can be involved. In a conventional scheme for upgrading a terminal device, after the terminal device is powered on, the terminal device communicates with a server and compares whether a local version of the terminal device is consistent with a latest version of the server to determine whether upgrading is required. And if the upgrade is needed, downloading an upgrade package from the server for upgrading. In a conventional upgrade technique, when an upgrade patch is downloaded from a server by a terminal device, the server usually finds a difference patch between an old version of an installed system of the terminal device and a new version of a new system of the server based on the old version, and sends the difference patch to the terminal device for updating. However, different terminal devices are updated frequently, and some terminal devices may be updated after a server issues a plurality of different new versions, so that system versions of different terminal devices are different, so that the server needs to maintain delta packets between different versions, and the maintenance cost of the delta packets is high.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a terminal device upgrading method, apparatus, terminal device, computer device and storage medium for solving the above technical problems.
A method for upgrading a terminal device, the method comprising:
under the state of running the first operating system, restoring the system version of the second operating system which is not in the running state to the system basic version by using the stored basic installation package of the system basic version;
and upgrading the second operating system restored to the system base version by using a system upgrading differential package, and upgrading the second operating system to the system latest version, wherein the system upgrading differential package is a differential package between the base installation package and the installation package of the system latest version.
In one embodiment, before restoring the system version of the second operating system, which is not currently in a running state, to the system base version using the stored base installation package of the system base version, the method further includes the steps of:
and acquiring a system upgrading difference packet, and storing the system upgrading difference packet into a difference packet storage area.
In one embodiment, the upgrade script is a shell script.
In one embodiment, after acquiring the system upgrade delta package and before storing the system upgrade delta package in the delta package storage area, the method further includes:
and carrying out validity check on the obtained system upgrading difference packet.
A method for upgrading a terminal device, the method comprising:
detecting a differential packet issuing triggering condition;
when a triggering condition of sending a differential packet is met, acquiring a system upgrading differential packet, wherein the system upgrading differential packet is a differential packet between a basic installation packet of a system basic version and an installation packet of a system latest version;
and sending the system upgrading difference packet to the terminal equipment.
In one embodiment, when a system upgrade request sent by the terminal device is received, it is determined that a differential packet issuing trigger condition is satisfied.
In one embodiment, when it is determined that a new system version is released and the corresponding system upgrade delta package is generated, it is determined that a delta package issuing triggering condition is satisfied.
In one embodiment, the method further comprises the steps of: and using the generated system upgrading differential quantity packet to cover the stored system upgrading differential quantity packet.
An apparatus for upgrading a terminal device, the apparatus comprising:
the version recovery module is used for recovering the system version of the second operating system which is not in the running state to the system basic version by using the stored basic installation package of the system basic version under the state of running the first operating system;
the upgrading module is used for upgrading the second operating system restored to the system basic version by using a system upgrading differential package, and upgrading the second operating system to the system latest version, wherein the system upgrading differential package is a differential package between the basic installation package and the installation package of the system latest version.
An apparatus for upgrading a terminal device, the apparatus comprising:
the issuing condition detection module is used for detecting the difference packet issuing triggering condition;
the system comprises a differential packet acquisition module, a differential packet processing module and a differential packet processing module, wherein the differential packet acquisition module is used for acquiring a system upgrading differential packet when a differential packet issuing triggering condition is met, and the system upgrading differential packet is a differential packet between a basic installation packet of a system basic version and an installation packet of a system latest version;
and the sending module is used for sending the system upgrading difference packet to the terminal equipment.
A terminal device, the terminal device comprising: the system comprises a processor, a first operating system storage area, a second operating system storage area, a difference package storage area and a base package storage area, wherein the first operating system storage area stores a first operating system, the second operating system storage area stores a second operating system, the difference package storage area is used for storing a system upgrading difference package, and the base package storage area is used for storing an installation package of a system base version, and the system upgrading difference package is a difference package between an installation package of a latest version of the system and the installation package of the system base version;
and under the state that the first operating system is operated, the processor restores the system version of the second operating system to the system base version by using the base installation package, and upgrades the second operating system restored to the system base version to the latest version of the system by using the system upgrading delta package.
In one embodiment, the upgrade script is a shell script.
In one embodiment, the processor executes a pre-upgrade script, decompresses the system upgrade delta packet via the pre-upgrade script, and invokes an upgrade script within the system upgrade delta packet to upgrade, upgrading the second operating system from the system base version to the system latest version.
In one embodiment, after the processor upgrades the second operating system to the latest version of the system, the processor modifies device boot system parameters or modifies a flag bit of a predetermined disk location so that the second operating system is run at the next boot.
In one embodiment, when the processor runs in the second operating system at the next boot, if a system rollback instruction is received, the processor modifies a device boot system parameter or modifies a flag bit of a predetermined disk position according to the system rollback instruction, so that the processor runs in the first operating system at the next boot, and deletes the stored system upgrade delta packet according to the system rollback instruction.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method when executing the computer program:
detecting a differential packet issuing triggering condition;
when a triggering condition of sending a differential packet is met, acquiring a system upgrading differential packet, wherein the system upgrading differential packet is a differential packet between a basic installation packet of a system basic version and an installation packet of a system latest version;
and sending the system upgrading difference packet to the terminal equipment.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above embodiments.
When the terminal needs to be upgraded, the server provides the system upgrade difference packet between the latest version and the basic version of the system for the terminal, and when the terminal is upgraded, the terminal firstly restores the second operating system which is not in the running state to the basic version of the system and then upgrades the second operating system to the latest version of the system by using the system upgrade difference packet, so that the terminal can be upgraded to the latest version of the system by using the system upgrade difference packet no matter what the current version of the terminal is, but the server only needs to maintain the system upgrade difference packet between the latest version and the basic version of the system, the maintenance cost of the difference packet is low, and the running use of the first operating system which is currently running is not influenced in the upgrading process of the terminal, so that the silent upgrade is realized, the disaster tolerance is high.
Drawings
Fig. 1 is an application environment diagram of a terminal device upgrade method in an embodiment;
fig. 2 is a schematic flowchart of a method for upgrading a terminal device in an embodiment;
fig. 3 is a schematic flowchart of a terminal device upgrading method in another embodiment;
fig. 4 is a schematic view of an interaction flow when a terminal device is upgraded in an embodiment;
fig. 5 is a schematic diagram illustrating a comparison between the upgrade method of the terminal device according to an embodiment and the conventional method;
FIG. 6 is a block diagram showing the configuration of an upgrading apparatus for a terminal device according to an embodiment;
fig. 7 is a block diagram showing the configuration of an upgrading apparatus for a terminal device in another embodiment;
FIG. 8 is a diagram of memory partitions of a terminal device in one embodiment;
FIG. 9 is a diagram illustrating a comparison of memory partitions of a terminal device of an embodiment with a conventional terminal device;
fig. 10 is a schematic internal configuration diagram of a terminal device of an embodiment;
FIG. 11 is a diagram showing an internal configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The terminal device upgrading method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal device 102 communicates with the server 104 over a network. When the terminal device 102 leaves the factory, an operating system is installed, so that the terminal device 102 can run the operating system to implement the related functions of the terminal device. An operating system run by the terminal device 102 may need to be updated based on various needs such as development and function update, and the server 104 determines a system upgrade delta package between the latest version of the operating system and the basic version of the operating system based on the latest version of the operating system, and sends the system upgrade delta package to the terminal device 102, so that the terminal device 102 updates its operating system based on the system upgrade delta package. The terminal device 102 stores two operating systems, and when one of the operating systems is running, the other operating system is used as a backup. After receiving the system upgrade difference packet, the terminal device 102 upgrades the operating system that is not in the running state, without affecting the running of the terminal device 102. The terminal 102 may be any possible terminal device, and in some embodiments of the present application, the terminal 102 may be a dedicated device such as a car machine. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In one embodiment, as shown in fig. 2, a terminal device upgrading method is provided, which is described by taking the method as an example applied to the terminal device 102 in fig. 1, and includes the following steps S201 and S202.
Step S201: and under the state of running the first operating system, restoring the system version of the second operating system which is not in the running state to the system base version by using the stored base installation package of the system base version.
The terminal device stores two operating systems, and when one operating system runs, the other operating system is used as a backup. The first operating system refers to an operating system currently running on the terminal device, and the second operating system refers to an operating system in a backup state and not running on the terminal device. The system base version refers to a system version which is the earliest released by the operating system, and is usually installed on the terminal device when the terminal device leaves a factory.
The basic installation package is an installation package of a system basic version, refers to an installation package corresponding to a system version that is issued by the operating system at the earliest time, and generally refers to an installation package of an operating system that is installed on the terminal device when the terminal device leaves a factory. When the terminal device leaves the factory, besides the basic system version is installed, an installation package of the basic system version is stored on the terminal device, so that the terminal device can restore the factory settings based on the basic installation package, and the upgrading operation of the application is executed based on the basic installation package.
In some embodiments, before restoring the system version of the second operating system that is not currently in a running state to the system base version using the stored base installation package of the system base version, the method further comprises the steps of:
and acquiring a system upgrading difference packet, and storing the system upgrading difference packet into a difference packet storage area.
Thus, the upgrade process can be performed after the system upgrade delta package is determined and obtained and stored in the delta package storage area.
When the system upgrade delta package is acquired, the terminal device may directly communicate with the server to acquire the system upgrade delta package, or may store the system upgrade delta package in a mobile storage device, such as a usb disk or a mobile hard disk, and then when the terminal device detects that the system upgrade delta package exists in the mobile storage device, acquire the system upgrade delta package from the mobile storage device. The embodiment of the application does not specifically limit the way in which the terminal device obtains the system upgrade delta packet. In the following related embodiments, the system upgrade delta package obtained from the server is taken as an example for explanation.
After the system upgrade difference packet is acquired, validity check can be performed on the acquired system upgrade difference packet, and after the validity check is passed, the system upgrade difference packet is stored in a difference packet storage area. To ensure that the obtained and stored system upgrade delta package is a legitimate delta package. The validity check may specifically include various possible check manners, such as checking the integrity of the system upgrade delta packet, checking the system upgrade delta packet and the validity server sends the system upgrade delta packet and the validity server. The specific checking method may adopt any possible checking method, for example, when the integrity of the system upgrade difference packet is checked, the server may obtain a check code by performing operation on the generated system upgrade difference packet, and carry the check code in the system upgrade difference packet. When the terminal equipment receives the system upgrading difference packet, the check code is calculated in the same way for the received system upgrading difference packet, and is compared with the check code carried by the system upgrading difference packet, and if the comparison is consistent, the system upgrading difference packet is regarded as complete. For example, when the validity of the server is checked, the third party may issue a certificate for the server, and the validity may be verified by using the certificate carried in the system upgrade difference packet sent by the server. It is understood that in other embodiments, other verification methods may be used, and other content to be verified may be verified.
When the validity check is not passed, the system upgrade delta packet can be obtained from the server again, and the specific time for obtaining again is not limited. In addition, in the process of downloading the system upgrade difference amount packet from the server, if the terminal device is powered off or restarted, the system upgrade difference amount packet may be downloaded again or continuously after the terminal device is powered on, specifically, the system upgrade difference amount packet may be downloaded in a breakpoint continuous transmission manner. The method comprises the following steps of downloading a terminal, wherein the terminal continuously transmits the terminal, namely, a downloading task is divided into a plurality of parts during downloading, and each part is uploaded or downloaded by adopting one thread. If a failure is encountered, the uncompleted section can be uploaded and downloaded from the section that has been uploaded or downloaded, and the download does not need to be uploaded from the beginning, so that time is saved and speed is increased.
When the stored basic installation package of the system basic version is used to restore the system version of the second operating system that is not currently in the running state to the system basic version, the system basic version may be restored in any possible manner, for example, in a manner of restoring the second operating system to factory settings.
Step S202: and upgrading the second operating system restored to the system base version by using a system upgrading differential package, and upgrading the second operating system to the system latest version, wherein the system upgrading differential package is a differential package between the base installation package and the installation package of the system latest version.
The latest version of the system refers to the latest system version developed by a developer for the operating system, and new functions are usually added to the original system version, and/or related performances are optimized.
In one embodiment, upgrading the second operating system restored to the system base version using a system upgrade delta package to upgrade the second operating system to a system latest version may include:
and executing a pre-upgrade script, decompressing the system upgrade delta packet through the pre-upgrade script, calling an upgrade script in the system upgrade delta packet for upgrading, and upgrading the second operating system from the system basic version to the system latest version.
The pre-upgrade script is also called a pre-upgrade script in the embodiment of the application, so that the pre-upgrade script is executed before the upgrade script in the system upgrade delta packet is called, the upgrade packet is decompressed through the pre-upgrade script, and the upgrade script in the upgrade packet is called for upgrading, so that the upgrade script is graded, and the method is more flexible and convenient.
In one embodiment, after upgrading the second operating system to the latest version of the system, the method further includes: and modifying the parameters of the equipment starting system so as to operate in the second operating system when the equipment is started next time. Therefore, after the second operating system is upgraded to the latest version of the system, the device start system parameters also need to be modified, so that the terminal device can operate the second operating system upgraded to the latest version of the system when being started next time. If the device start system parameters are not modified, the terminal device still runs in the first operating system when being started next time.
In some embodiments, after upgrading the second operating system to the latest version of the system, the method further comprises: and writing a flag bit in a preset disk position, so that the second operating system is operated when the flag bit is read in the preset disk position when the computer is started next time. Therefore, after the second operating system is upgraded to the latest version of the system, a flag bit can be written in a predetermined disk position, and the flag bit is used for identifying that the second operating system is upgraded to the new version, so that the second operating system upgraded to the latest version of the system can be operated when the system is started next time. If the flag bit is not written in the predetermined disk position, the terminal device still operates in the first operating system when the terminal device is started next time. The predetermined disk location may be any possible disk location, as long as the predetermined disk location is accessed before a specific operating system is run during the boot process of the terminal device.
It is understood that, in other embodiments, the marking may be performed in the terminal device in other manners, and the information of the marking is read when the terminal device is powered on, so that the terminal device is indicated to run in the second operating system through the marking. In the following related embodiments, the following description will be given by taking an example of modifying the device start-up system parameters. In the case of other markings, the processing can be carried out in a similar manner.
In some embodiments, when the device start system parameter is modified or the flag bit of the predetermined disk position is modified, and the terminal device runs in the second operating system upgraded to the latest version of the system at the next start, if a system rollback instruction is received, the device start system parameter is modified or the flag bit of the predetermined disk position is modified according to the system rollback instruction, so that the device start system parameter is run in the first operating system at the next start, and the stored system upgrade delta packet is deleted according to the system rollback instruction. Therefore, when the newly released system version has problems and needs to be recalled, the system rollback instruction of the server can be received, the equipment starting parameter can be modified, the system version can be directly operated in the first operating system when the system version is started next time, the system version can be conveniently rolled back to an earlier version, and the system version can be rolled back remotely.
After the device boot system parameter is modified or the flag bit of the predetermined disk position is modified according to the system rollback instruction, when the device boot system is started and operated in the first operating system next time, the system version of the second operating system which is not in the operating state at this time can be restored to the system base version based on the stored base installation package of the system base version for the second operating system which is updated.
In some embodiments, after modifying the device boot system parameter or modifying the flag bit of the predetermined disk location according to the system rollback instruction, or when the device boot system is running in the first operating system next time, the system version of the second operating system is updated to the updated system version after the system version passes the test or after the updated system version is redistributed, in the manner described in the above embodiments, based on the latest system upgrade delta package corresponding to the system base version and the system version after the test passes or after the updated system version passes the test, the system version of the second operating system is updated to the updated system version after the system version passes the test or after the updated system version is redistributed. As described above, in the embodiment of the present application, when performing an update, the base version is restored first, and then the system upgrade delta packet is updated to the latest version, so that the normal use of the device is not affected in the update process, the possible effect of directly performing an update on the basis of the system version with problems is avoided, and the processing manner is convenient and simple.
In one embodiment, the first operating system and the second operating system are of the same system type, and when the second operating system upgraded to the latest system version is run when the terminal device is powered on next time, the first operating system which is not in a running state may not be upgraded by using the system upgrade delta package. Therefore, under the condition that the system types of the first operating system and the second operating system are the same, when the terminal device runs in the second operating system when the terminal device is started next time, the first operating system is in a backup state, and the second operating system is updated, so that the first operating system can be updated without the system upgrade difference packet, and when the latest version of the system has a problem, the first operating system in an earlier version can be quickly returned to, and the system can not be returned to the basic version of the system.
In one embodiment, the system upgrade delta packet may also be deleted after the upgrade process is completed to modify the device boot system parameters or modify the flag bits of the predetermined disk location. Therefore, when the terminal device is started up next time and the second operating system upgraded to the latest version of the system is operated, the first operating system in the backup state cannot be updated because the stored system upgrade difference packet does not exist and the second operating system in operation is the latest version of the system. So that it can quickly fall back to the first operating system of an earlier version when a problem arises with the latest version of the system.
It should be understood that, when the terminal device runs in the process of upgrading to the second operating system of the latest version of the system, if the server issues an updated system version again, for example, the latest version of the system of the second operating system is V3.0, and the server distributes the updated system version V4.0, the server will issue the latest system upgrade delta package between the installation package of the updated system version V4.0 and the basic installation package, and at this time, the first operating system in the backup state may be updated by using the latest system upgrade delta package by using the method of the embodiment of the present application as described above. At this time, the first operating system in the backup state is actually equivalent to the second operating system that has not been upgraded in the above embodiment.
In one embodiment, as shown in fig. 3, a terminal device upgrading method is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps S301 and S302.
Step S301: detecting a delta packet issuing triggering condition.
The differential packet issuing triggering condition is a condition for triggering the server to send the system upgrading differential packet to the terminal device. Based on different actual technical requirements, different delta packet issuing triggering conditions can be set.
In some embodiments, it may be determined that the delta packet issuing trigger condition is satisfied when the server receives a system upgrade request sent by the terminal device.
The method comprises the steps that when the terminal device learns that a server issues a new system version and determines that the version of the terminal device is lower than the latest version of the system, a system upgrading request is sent to the server. Therefore, when the server receives the system upgrading request of the terminal equipment, the server can determine the differential packet to send the triggering condition, and can directly enter the subsequent steps. For example, the terminal device may periodically send a latest version query request to the server to know the latest version of the system of the server. The server may also actively send the information of the latest version of the system to the terminal device when a new system version is released. After obtaining the information of the latest version of the system of the server, the terminal device may compare the version with its own version to confirm whether a system upgrade request needs to be sent to the server.
In another implementation manner, the terminal device may send a system upgrade request to the server periodically, and carry the current system version information of the terminal device in the system upgrade request. And the server compares the system version information with the information of the latest version of the system, if the system version information is inconsistent with the information of the latest version of the system, the terminal equipment is considered to be required to be updated, and the condition that the triggering condition for sending the differential packet is met is determined, so that the subsequent processing process is started. When the system versions of the first operating system and the second operating system stored in the terminal device are different, the carried current system version information of the terminal device may be system version information with a higher version. For example, if the system version information of the first operating system is V2.3 and the system version information of the second operating system is V2.0, and the version with the higher number is newer, the current system version information of the terminal device to be carried should be V2.3.
In some embodiments, when a new system version is released and it is determined in the recorded related information that a system upgrade delta packet has not been sent to the terminal device, it may be considered that a delta packet sending trigger condition is satisfied, so as to actively send the system upgrade delta packet of the latest version of the system to the terminal device.
Step S302: and when the triggering condition of sending the differential packet is met, acquiring a system upgrading differential packet, wherein the system upgrading differential packet is a differential packet between a basic installation packet of a basic version of the system and an installation packet of a latest version of the system.
The system base version refers to a system version which is the earliest released by the operating system, and is usually installed on the terminal device when the terminal device leaves a factory. The basic installation package is an installation package of a system basic version, refers to an installation package corresponding to a system version which is released by the operating system at the earliest time, and generally refers to an installation package of an operating system which is installed on the terminal device when the terminal device leaves a factory. When the terminal device leaves the factory, besides the basic system version is installed, an installation package of the basic system version is stored on the terminal device, so that the terminal device can restore the factory settings based on the basic installation package, and the upgrading operation of the application is executed based on the basic installation package.
The latest version of the system refers to the latest system version developed by a developer for the operating system, and new functions are usually added to the original system version, and/or related performances are optimized.
Before the system upgrade delta package is obtained, the system upgrade delta package needs to be generated and stored, and in an embodiment, the generation manner of the system upgrade delta package may include the following steps S3021 to S3024.
Step S3021: and generating an original differential quantity package based on the latest version of the system installation package and the basic installation package.
When the original differential quantity package is generated based on the installation package of the latest version and the basic installation package of the system, any differential quantity between the installation package of the latest version and the basic installation package of the system can be obtained, and the differential quantity upgrading package of the latest version and the basic installation package of the system can be obtained. Taking an operating system as an example, the Android system is taken as an example, and when the basic installation package is generated, all system installation packages can be obtained by using a make attach tool of the Android system. When the system or the application needs to be upgraded after being modified, a new system installation package, namely the installation package of the latest version of the system, can be obtained by using the make otapack tool. Then, a ta _ from _ target _ files tool of the Android system can be used to obtain a difference packet between the ta _ from _ target _ files tool and the original difference packet. The basic installation package is marked as base.zip, the installation package of the latest version of the system is marked as target.zip, and the original differential package obtained by using a ta _ from _ target _ files tool can be marked as update _ src _ ota.zip.
Step S3022: and decompressing the original delta packet to obtain an original upgrading script in the original delta packet.
The complete original delta packet obtained above can be decompressed to obtain the content contained in the decompressed packet, such as the original upgrade script. It will be appreciated that the decompressed original delta packet will contain other content, such as system directories, in addition to the original upgrade script.
Step S3023: and rewriting the grammar in the original upgrading script into a shell script to obtain a rewritten upgrading script.
Taking the system type of the operating system as an Android system as an example, it can be found that in the generated original upgrade script, the syntax thereof is similar to the syntax of the shell script, and the shell script can be applied to a plurality of different systems, such as a Linux system, an Android system, a QNX system, and the like.
Specifically, when rewriting, the syntax structure of the original upgrade script and the shell script may be rewritten in combination, for example:
for the command of deleting the file/data/init.log, the grammatical content in the original script file is as follows: delete ("/data/init.log"). And rewriting the script into a shell script, so that the grammar content in the shell script becomes: log rm-f/data/init
For the command of deleting the folder/data/dalvik-cache, the grammar content in the original script file is as follows: delete _ recovery ("/data/dalvik-cache"). And rewriting the script into a shell script, so that the grammar content in the shell script becomes: rm-rf/data/dalvik-cache.
For a command for decompressing a my. zip file to/system in a ROM packet, the syntax content in the original script file is as follows: package _ extract _ file ("my. And rewriting the script into a shell script, so that the grammar content in the shell script becomes: tar-zxvf my. zip-C/system.
It is understood that the rewriting may be performed in a similar manner for other commands, and the embodiments of the present application are not exhaustive.
Step S3024: and repacking the updated upgrading script to generate the system upgrading difference packet.
After the rewritten upgrade script is obtained, it can be repackaged based on the rewritten upgrade script to generate a final system upgrade delta package. When repackaging, the upgrade script will contain the decompressed content, except the rewritten upgrade script, which will also contain the decompressed content that has not been processed after decompression.
After the system upgrade delta package is generated, the newly generated system upgrade delta package can be further used to cover the already stored system upgrade delta package, that is, the delta package between the latest system version and the system base version is ensured to be stored on the side of the server, so that the maintenance cost of the server is reduced. In some embodiments, the newly generated system upgrade delta package may be stored first, and the previously stored system upgrade delta package may still be retained for a period of time, and deleted after the new system is stabilized.
Step S303: and sending the system upgrading difference packet to the terminal equipment.
When the system upgrade difference packet is sent to the terminal device, the system upgrade difference packet may be sent based on a communication mode between the server and the terminal device, and may be sent in a breakpoint continuous transmission mode, so as to save time and improve speed.
In one embodiment, after sending the system upgrade delta package to the terminal device, the method may further include the steps of:
and sending a system rollback instruction to the terminal equipment, wherein the system rollback instruction is used for indicating the terminal equipment to modify equipment starting system parameters or modify a flag bit of a preset disk position, so that the terminal equipment runs a first operating system which is not updated by using the system upgrade difference packet when being started next time.
Therefore, when the newly released system version has problems and needs to be recalled, the system rollback instruction can be sent to the terminal equipment to indicate the terminal equipment to directly run in the first operating system when the terminal equipment is started next time by modifying the equipment starting parameter, so that the terminal equipment can conveniently rollback to an earlier version, and can remotely indicate the terminal equipment to rollback the system version.
Based on the above embodiments, fig. 4 shows an interaction diagram of the terminal device in an embodiment when the terminal device is upgraded.
In practical technical use, a basic installation package base.zip of a system basic version of an operating system needs to be manufactured, the system basic version can be installed on released terminal equipment, and meanwhile, the basic installation package can be simultaneously written in a storage area of the terminal equipment. When the terminal device has two partitions for storing the operating systems, namely a first operating system storage area and a second operating system storage area, the system with the basic version of the system and the operating systems written in the two operating system storage areas are the same in the first operating system storage area and the second operating system storage area. Meanwhile, under the condition that the terminal equipment has two different partitions to respectively store the basic installation package and the system upgrade difference amount package, the basic installation package base. At this time, the differential package storage area of the terminal device for storing the system upgrade differential package does not store any installation package.
In the actual startup and use process after the terminal device leaves the factory, the operating systems for burning the two operating system storage areas are the same, so that the terminal device can be operated by using any one of the first operating system and the second operating system. Typically, which operating system to run may be specified in advance, for example by setting a UBoot parameter to indicate which operating system to start when the device is powered on.
After the terminal device leaves the factory for a period of time, the operating system used by the terminal device may need to be modified, a new system version is released, and a difference package between the installation package of the latest version of the system and the basic installation package is generated for downloading by each terminal device.
For example, the Android system is an operating system, and the server may obtain a base installation package base. When the system or the application needs to be upgraded after being modified, the target. Then, a ta _ from _ target _ files tool of the Android system can be used to obtain a delta original delta packet update _ src _ ota.
The server then decompresses the original delta packet update _ src _ ota. zip, and the resulting directory structure in one embodiment is as follows:
in the directory structure, the system directory is mainly used to update some applications of the system or some libraries and so on that the applications will use, and the update-script is the original upgrade script. Further analysis of the update-script upgrade script shows that the syntax structure is very similar to the shell script syntax under linux/android/qnx, so that the original upgrade script is rewritten into the shell script by rewriting the same. For example:
for the command of deleting the file/data/init.log, the grammatical content in the original script file is as follows: delete ("/data/init.log"). And rewriting the script into a shell script, so that the grammar content in the shell script becomes: log rm-f/data/init
For the command of deleting the folder/data/dalvik-cache, the grammar content in the original script file is as follows: delete _ recovery ("/data/dalvik-cache"). And rewriting the script into a shell script, so that the grammar content in the shell script becomes: rm-rf/data/dalvik-cache.
For a command for decompressing a my. zip file to/system in a ROM packet, the syntax content in the original script file is as follows: package _ extract _ file ("my. And rewriting the script into a shell script, so that the grammar content in the shell script becomes: tar-zxvf my. zip-C/system.
Therefore, after the update-script in the decompressed update-src-ota-zip is rewritten, the update-script is repacked, and a more universal and flexible upgrade package update-dst-ota-zip is obtained.
In the process of using the terminal equipment after being started, the latest version information of the system is inquired from the server at regular time or based on the received instruction. And comparing the obtained information of the latest version of the system of the server with the information of the version of the system with the highest version stored by the server, and when the two are not consistent, indicating that the system needs to be upgraded, so as to send a system upgrade request to the server, obtain a system upgrade differential packet update _ dst _ ota.zip of the latest version of the system from the server, and store the system upgrade differential packet update _ dst _ ota.zip in a differential packet storage area of the terminal device.
After the system upgrade difference packet update _ dst _ ota.zip is downloaded, because the terminal equipment is a dual-system partition, when the upgrade packet is verified to be qualified, the terminal equipment can be upgraded without restarting the system, the upgrade is completely silent, and the vehicle machine can be normally used in the upgrade process. Namely, the terminal device is currently running the first operating system, in the process of running the first operating system, executing a pre-upgrade script, decompressing the system upgrade delta packet through the pre-upgrade script, calling the upgrade script in the system upgrade delta packet to upgrade, firstly using a base installation packet base.zip of a stored system base version to restore the system version of the second operating system which is not currently in a running state to the system base version, and then using the system upgrade delta packet update _ dst _ ota.zip stored in a delta packet storage area to upgrade the second operating system to the latest system version.
Through the process, the server only needs to maintain a difference package of the latest installation package of the latest version of the system and the base installation package base. For example, assuming that the system upgrade versions are sequentially recorded as A, B, C, D, E, i.e., the system version is upgraded to the B version, the delta package Δ BA may be maintained. When the system version is upgraded again to the C version, only the differential packet Δ CA needs to be maintained, the differential packet Δ BA does not need to be maintained, and so on. When the terminal equipment is upgraded, the system basic version is returned to first, and then the latest version is upgraded, so that even if the terminal equipment misses the opportunity of upgrading the A version to the B version, the C version can be completely and directly obtained from upgrading the A version. As can be seen from the comparison of the flow shown in fig. 5, compared with the conventional upgrading method, the method needs to prompt the user, restart the device after the user agrees, call the upgrading script to decompress the upgrading packet after restarting the device, and then upgrade the upgrading packet by using the decompressed upgrading packet. The mode of this application embodiment need not to restart, and the complete silence is upgraded, and terminal equipment can normal use in the upgrading process, and in the upgrading process, carries out a pre upgrade script earlier in addition, and this upgrades in order decompressing the upgrade package and transferring the upgrade script in the upgrade package to carry out the grade to the upgrade script, specific upgrading process is in the script of upgrade package, and is more nimble convenient. The upgrade script is a rewritten shell script and can be used for systems such as linux, android and qnx systems, and the universality of the scheme of the embodiment of the application can be improved in a cross-platform mode.
After the second operating system is upgraded to the latest version of the system, the device start system parameter Uboot needs to be modified or the flag bit of the predetermined disk position needs to be modified, so that the terminal device runs in the second operating system upgraded to the latest version of the system when the terminal device is started next time. Under the condition that the equipment starting system parameter Uboot is modified or the zone bit of the preset disk position is modified, the terminal equipment can run in a second operating system which is upgraded to the latest version of the system when being started next time.
The method for upgrading the terminal device provided by the embodiment of the application greatly improves disaster tolerance in the process of upgrading the terminal device, for example:
if the system upgrade difference packet is power-off or the terminal device is restarted in the downloading process, the system upgrade difference packet cannot pass the verification because of being incomplete, the system upgrade difference packet still runs by the first operating system when the system is started next time, and the system upgrade difference packet which is not downloaded can be subjected to breakpoint continuous transmission.
If the System is powered off or restarted during the upgrade process using the System upgrade delta packet, for example, the System currently runs in the first operating System Sytem1, during the upgrade process of the second operating System2, because the upgrade process is not completed, the device boot System parameter UBoot or the flag bit of the predetermined disk position is not modified, and the delta packet is still stored in the delta packet storage area, after the System is booted next time, the System still enters the first operating System1, and the upgrade script is executed again, so that the situation that the System cannot be booted does not occur.
If the upgrade fails due to unknown reasons, for example, the upgrade is currently performed on the first operating System Sytem1, the second operating System2 is upgraded, because the upgrade process is not completed, the device start System parameter UBoot or the flag bit of the predetermined disk position is not modified, the differential packet storage area still stores the differential packet, and after the System is started next time, the System still enters the first operating System1 and re-executes the upgrade script, so that the condition that the terminal device becomes a board brick does not occur.
In the case of no network, if the terminal device is restored to factory settings, for example, the first operating System Sytem1 and the second operating System2 are flushed to the System base version, since the delta packet storage area still stores the delta packet, the upgrade script can still be executed to upgrade to a new version.
If the newly released version has a problem, the server can also issue a command to the vehicle machine, rewrite the device start System parameter UBoot or the flag bit of the preset disk position, and automatically switch to the first operating System1 with a more stable version when the vehicle machine is started next time, so that the purpose of remotely backing the version is achieved.
It should be understood that, although the steps in the flowcharts related to the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in these flowcharts may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the steps or stages in other steps.
In one embodiment, as shown in fig. 6, there is provided a terminal device upgrading apparatus, which may be provided to a terminal device, including:
the version recovery module 601 is configured to recover, in a state where the first operating system is running, the system version of the second operating system that is not currently in the running state to the system base version by using the stored base installation package of the system base version;
an upgrade module 602, configured to upgrade the second operating system restored to the system base version by using a system upgrade delta package, and upgrade the second operating system to a system latest version, where the system upgrade delta package is a delta package between the base installation package and an installation package of the system latest version.
In one embodiment, the upgrade module 602 executes a pre-upgrade script, decompresses the system upgrade delta packet through the pre-upgrade script, and invokes an upgrade script in the system upgrade delta packet to perform upgrade, so as to upgrade the second operating system from the system base version to the system latest version.
In one embodiment, the upgrade script is a shell script.
In one embodiment, the upgrade module 602, after upgrading the second operating system to the latest version of the system, modifies device boot system parameters so that the second operating system is run at the next boot.
In one embodiment, the upgrading module 602 writes a flag bit in a predetermined disk location after upgrading the second operating system to the latest version of the system, so that the second operating system is run when the flag bit is read in the predetermined disk location at the next boot.
In one embodiment, the system backup module is further configured to, when the terminal device runs in the second operating system, modify the device start-up system parameter or modify the flag bit of the predetermined disk position according to a system backup instruction if the terminal device receives the system backup instruction, so that the terminal device runs in the first operating system when the terminal device is started next time, and delete the stored system upgrade delta packet according to the system backup instruction.
In one embodiment, the upgrade module 602 deletes the system upgrade delta package after modifying the device boot system parameters or modifying the flag bits of the predetermined disk locations.
In one embodiment, as shown in fig. 7, there is provided a terminal device upgrading apparatus, which may be provided in a server, including:
an issue condition detection module 701, configured to detect a delta packet issue trigger condition;
a difference package obtaining module 702, configured to obtain a system upgrade difference package when a trigger condition for sending the difference package is met, where the system upgrade difference package is a difference package between a basic installation package of a basic version of the system and an installation package of a latest version of the system;
a sending module 703, configured to send the system upgrade delta packet to the terminal device.
In one embodiment, the system further comprises a delta package generation module for generating the system upgrade delta package.
In one embodiment, the delta packet generation module comprises:
an original package generation module, configured to generate an original differential package based on the installation package of the latest version of the system and the basic installation package;
the decompression module is used for decompressing the original differential packet to obtain an original upgrading script in the original differential packet;
the rewriting module is used for rewriting the grammar in the original upgrading script into a shell script to obtain a rewritten upgrading script;
and the repacking module is used for repacking the rewritten upgrading script to generate the system upgrading residual quantity package.
In one embodiment, the delta package generation module further uses the generated system upgrade delta package to overwrite a stored system upgrade delta package.
In an embodiment, the system backup method further includes sending a system backup instruction to the terminal device, where the system backup instruction is used to instruct the terminal device to modify a device start system parameter or modify a flag bit of a predetermined disk position, so that the terminal device runs a first operating system that is not updated using the system upgrade delta packet when the terminal device is powered on next time.
For the specific definition of the terminal device upgrading apparatus, reference may be made to the above definition of the terminal device upgrading method, which is not described herein again. All or part of each module in the terminal equipment upgrading device can be 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.
In one embodiment, there is provided a terminal device, including a processor and a storage area, wherein, as shown in fig. 8, the storage area includes: the system upgrade system comprises a first operating system storage area for storing a first operating system, a second operating system storage area for storing a second operating system, a difference package storage area for storing a system upgrade difference package, and a base package storage area for storing an installation package of a system base version, wherein the system upgrade difference package is a difference package between an installation package of a system latest version and an installation package of the system base version.
Wherein the processor restores the system version of the second operating system to the system base version using the base installation package and upgrades the second operating system restored to the system base version to the system latest version using the system upgrade delta package in a state where the first operating system is running.
Fig. 9 is a schematic diagram illustrating a comparison between memory partitions of a terminal device of the present application and a conventional terminal device in one embodiment. As shown in fig. 9-1, the conventional terminal device has a UBOOT storage area, a UBOOT Flag Param storage area, a SyStem sysstem 1 storage area, a User Config Data storage area, and a factory SyStem package storage area to store a UBOOT parameter, a UBOOT Flag Param, an operating SyStem sysstem 1, User configuration Data User Config Data, and a basic packet base. Only one system memory area exists, so that the operation of the terminal equipment can be influenced in the equipment upgrading process, and the system is required to be restarted.
As shown in fig. 9-2, the terminal device according to the embodiment of the present invention includes a UBOOT storage area, a UBOOT Flag Param storage area, a first operating SyStem storage area SyStem1, a second operating SyStem storage area SyStem2, a User Config Data storage area, an OTA delta packet storage area, and a factory SyStem storage area, so as to store a UBOOT parameter, a UBOOT Flag Param, one of the operating systems SyStem1, the other operating SyStem2, User configuration Data User Config Data, a SyStem upgrade delta packet, and a base packet base. Therefore, due to the double-system partition, when the system upgrading differential quantity packet is verified to be qualified, the upgrading can be carried out without restarting the system, the upgrading is completely silent, and the vehicle machine can be normally used in the upgrading process. Moreover, by setting the system upgrading differential quantity packet, the breakpoint continuous transmission of the system upgrading differential quantity packet can be downloaded, and if a fault occurs in the upgrading process, the terminal equipment can be upgraded again after the next startup, so that the normal use of the terminal equipment is not influenced.
In one embodiment, the processor executes a pre-upgrade script, decompresses the system upgrade delta packet via the pre-upgrade script, and invokes an upgrade script within the system upgrade delta packet to upgrade, upgrading the second operating system from the system base version to the system latest version.
In one embodiment, the upgrade script is a shell script.
In one embodiment, after the processor upgrades the second operating system to the latest version of the system, the processor modifies device boot system parameters or modifies a flag bit of a predetermined disk location so that the second operating system is run at the next boot.
In one embodiment, when the processor runs in the second operating system at the next boot, if a system rollback instruction is received, the processor modifies the device boot system parameter or modifies the flag bit of the predetermined disk position according to the system rollback instruction, so that the processor runs in the first operating system at the next boot, and deletes the stored system upgrade delta packet according to the system rollback instruction.
For specific limitations when upgrading the processor of the terminal device, reference may be made to the above limitations on the terminal device upgrading method, which is not described herein again. The internal structure of the terminal device in one embodiment may be as shown in fig. 10. The computer device comprises a processor, a memory, a communication interface connected by a system bus, and in some possible product forms, the terminal device may also comprise a display screen and an input device. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores a first operating system, a second operating system, a computer program, a system upgrade delta package, and a base installation package. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external server, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a terminal device upgrade method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing a system upgrade delta package between the latest version and the basic version of the system. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a terminal device upgrade method.
It will be appreciated by those skilled in the art that the configurations shown in fig. 10 and 11 are block diagrams of only some of the configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory having stored therein a computer program and a processor performing the server processing steps associated with a terminal device upgrade as described above.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, performs the steps performed by a terminal device or a server as described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
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 can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as 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 scope of the invention. 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 terminal equipment is characterized by comprising the following steps:
under the state of running the first operating system, restoring the system version of the second operating system which is not in the running state to the system basic version by using the stored basic installation package of the system basic version;
and upgrading the second operating system restored to the system base version by using a system upgrading differential package, and upgrading the second operating system to the system latest version, wherein the system upgrading differential package is a differential package between the base installation package and the installation package of the system latest version.
2. The method of claim 1, wherein upgrading the second operating system restored to the base version of the system to a latest version of the system using a system upgrade delta package comprises:
and executing a pre-upgrade script, decompressing the system upgrade delta packet through the pre-upgrade script, calling an upgrade script in the system upgrade delta packet for upgrading, and upgrading the second operating system from the system basic version to the system latest version.
3. The method of claim 1 or 2, wherein upgrading the second operating system to a system latest version further comprises:
modifying the parameters of the equipment starting system to enable the equipment starting system to run in the second operating system when the equipment is started next time;
or
And writing a flag bit in a preset disk position, so that the second operating system is operated when the flag bit is read in the preset disk position when the computer is started next time.
4. The method of claim 3, further comprising the step of:
and when the system is operated in the second operating system during next startup, if a system rollback instruction is received, modifying the equipment starting system parameter or modifying the zone bit of the preset disk position according to the system rollback instruction, so that the system is operated in the first operating system during next startup, and deleting the stored system upgrade difference packet according to the system rollback instruction.
5. The method of claim 3, wherein the first operating system and the second operating system are of the same system type, further comprising:
deleting the system upgrading differential quantity packet after modifying the starting system parameters of the equipment or modifying the zone bit of the preset disk position;
or
And when the system is operated in the second operating system when the system is started next time, the system upgrading differential quantity packet is not used for upgrading the first operating system.
6. A method for upgrading terminal equipment is characterized by comprising the following steps:
detecting a differential packet issuing triggering condition;
when a triggering condition of sending a differential packet is met, acquiring a system upgrading differential packet, wherein the system upgrading differential packet is a differential packet between a basic installation packet of a system basic version and an installation packet of a system latest version;
and sending the system upgrading difference packet to the terminal equipment.
7. The method of claim 6, wherein the system upgrade delta package is generated in a manner comprising:
generating an original differential quantity package based on the installation package of the latest version of the system and the basic installation package;
decompressing the original delta packet to obtain an original upgrade script in the original delta packet;
rewriting the grammar in the original upgrading script into a shell script to obtain a rewritten upgrading script;
and repacking the updated upgrading script to generate the system upgrading difference packet.
8. The method of claim 6, further comprising the step of:
and sending a system rollback instruction to the terminal equipment, wherein the system rollback instruction is used for indicating the terminal equipment to modify equipment starting system parameters or modify a flag bit of a preset disk position, so that the terminal equipment runs a first operating system which is not updated by using the system upgrade difference packet when being started next time.
9. A terminal device, the terminal device comprising: a processor, characterized in that it further comprises: the system upgrade system comprises a first operating system storage area for storing a first operating system, a second operating system storage area for storing a second operating system, a difference package storage area for storing a system upgrade difference package, and a base package storage area for storing an installation package of a system base version, wherein the system upgrade difference package is a difference package between an installation package of a system latest version and an installation package of the system base version;
and under the state that the first operating system is operated, the processor restores the system version of the second operating system to the system base version by using the base installation package, and upgrades the second operating system restored to the system base version to the latest version of the system by using the system upgrading delta package.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011376388.7A CN112416406B (en) | 2020-11-30 | 2020-11-30 | Terminal equipment upgrading method, device, terminal equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011376388.7A CN112416406B (en) | 2020-11-30 | 2020-11-30 | Terminal equipment upgrading method, device, terminal equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112416406A true CN112416406A (en) | 2021-02-26 |
CN112416406B CN112416406B (en) | 2023-06-23 |
Family
ID=74829020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011376388.7A Active CN112416406B (en) | 2020-11-30 | 2020-11-30 | Terminal equipment upgrading method, device, terminal equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112416406B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988246A (en) * | 2021-03-03 | 2021-06-18 | Oppo广东移动通信有限公司 | System switching method and device, electronic equipment and storage medium |
CN113419756A (en) * | 2021-06-18 | 2021-09-21 | 杭州海康威视数字技术股份有限公司 | File upgrading method and device and electronic equipment |
CN113721959A (en) * | 2021-08-30 | 2021-11-30 | 联想(北京)有限公司 | Information processing method and device and electronic equipment |
CN114268941A (en) * | 2021-12-27 | 2022-04-01 | 北京自如信息科技有限公司 | Target equipment upgrading method, device, equipment and storage medium |
CN114389951A (en) * | 2022-03-02 | 2022-04-22 | 深圳震有科技股份有限公司 | Seamless upgrading method under 5G network, network equipment and storage medium |
CN115729586A (en) * | 2021-06-15 | 2023-03-03 | 荣耀终端有限公司 | Operating system upgrade method, apparatus, storage medium, and computer program product |
CN115756554A (en) * | 2023-02-13 | 2023-03-07 | 美云智数科技有限公司 | Version upgrading method and device |
WO2024131151A1 (en) * | 2022-12-22 | 2024-06-27 | 荣耀终端有限公司 | Method for upgrading operating system, and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668081A (en) * | 2009-09-24 | 2010-03-10 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and automatic upgrading method thereof |
CN104391728A (en) * | 2014-12-12 | 2015-03-04 | 北京奇虎科技有限公司 | Software upgrading delta pack acquiring method, corresponding upgrading method and device |
US20150156091A1 (en) * | 2009-07-31 | 2015-06-04 | Hewlett-Packard Development Company, L.P. | Marking program files as belonging to an application |
CN106293814A (en) * | 2016-07-29 | 2017-01-04 | 北京小米移动软件有限公司 | Upgrade method and device |
-
2020
- 2020-11-30 CN CN202011376388.7A patent/CN112416406B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150156091A1 (en) * | 2009-07-31 | 2015-06-04 | Hewlett-Packard Development Company, L.P. | Marking program files as belonging to an application |
CN101668081A (en) * | 2009-09-24 | 2010-03-10 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and automatic upgrading method thereof |
CN104391728A (en) * | 2014-12-12 | 2015-03-04 | 北京奇虎科技有限公司 | Software upgrading delta pack acquiring method, corresponding upgrading method and device |
CN106293814A (en) * | 2016-07-29 | 2017-01-04 | 北京小米移动软件有限公司 | Upgrade method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988246A (en) * | 2021-03-03 | 2021-06-18 | Oppo广东移动通信有限公司 | System switching method and device, electronic equipment and storage medium |
CN115729586A (en) * | 2021-06-15 | 2023-03-03 | 荣耀终端有限公司 | Operating system upgrade method, apparatus, storage medium, and computer program product |
CN115729586B (en) * | 2021-06-15 | 2023-10-20 | 荣耀终端有限公司 | Operating system upgrade method, device, storage medium and computer program product |
CN113419756A (en) * | 2021-06-18 | 2021-09-21 | 杭州海康威视数字技术股份有限公司 | File upgrading method and device and electronic equipment |
CN113721959A (en) * | 2021-08-30 | 2021-11-30 | 联想(北京)有限公司 | Information processing method and device and electronic equipment |
CN114268941A (en) * | 2021-12-27 | 2022-04-01 | 北京自如信息科技有限公司 | Target equipment upgrading method, device, equipment and storage medium |
CN114389951A (en) * | 2022-03-02 | 2022-04-22 | 深圳震有科技股份有限公司 | Seamless upgrading method under 5G network, network equipment and storage medium |
WO2024131151A1 (en) * | 2022-12-22 | 2024-06-27 | 荣耀终端有限公司 | Method for upgrading operating system, and electronic device |
CN115756554A (en) * | 2023-02-13 | 2023-03-07 | 美云智数科技有限公司 | Version upgrading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112416406B (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112416406B (en) | Terminal equipment upgrading method, device, terminal equipment and medium | |
US7275153B2 (en) | Booting and boot code update system using boot strapper code to select between a loader and a duplicate backup loader | |
US20100169709A1 (en) | System Of Updating Firmware And Method Thereof, And Method Of Creating Firmware | |
CN101329631B (en) | Method and apparatus for automatically detecting and recovering start-up of embedded system | |
TWI839587B (en) | Method and device for managing software updates , and non-transitory computer readable storage medium | |
CN111158719B (en) | Application software upgrading method and device | |
CN106951284B (en) | User interface upgrading method and device based on android system application and intelligent terminal | |
US20170052779A1 (en) | Method and Device for Running Version File | |
CN106843947B (en) | Method and device for processing code defects | |
CN112650515A (en) | Software upgrading and downgrading method based on tag list | |
CN114020526A (en) | Firmware upgrading method and device and computer storage medium | |
CN111651304A (en) | Software recovery method and device based on double-core intelligent electric meter and computer equipment | |
JP7484791B2 (en) | OTA master, update control method, and update control program | |
CN111913733A (en) | Method and device for making automatic upgrade package, computer equipment and storage medium | |
CN111782236A (en) | System software upgrading method and device, storage medium and all-in-one machine equipment | |
CN114844874B (en) | OTA manager, update control method, non-transitory storage medium, and vehicle | |
CN113791814B (en) | Method, device, equipment and medium for updating production presets on Android platform | |
US20220035620A1 (en) | Software update device, update control method, non-transitory storage medium, and server | |
CN113672258A (en) | System upgrading method and device for vehicle, computer equipment and storage medium | |
CN113766554A (en) | Method and device for acquiring WiFi calibration data and WiFi equipment calibration test system | |
CN112860287A (en) | System program upgrading method and device, computer equipment and storage medium | |
CN107015827B (en) | Embedded system and method for automatically operating third-party extension program thereof | |
US20210326125A1 (en) | Installing application program code on a vehicle control system | |
CN113127022A (en) | Automatic code updating method and device, computer equipment and storage medium | |
CN110825406A (en) | Software upgrading method and related equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |