CN114296764A - System upgrading method and device, storage medium and electronic equipment - Google Patents

System upgrading method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114296764A
CN114296764A CN202111654685.8A CN202111654685A CN114296764A CN 114296764 A CN114296764 A CN 114296764A CN 202111654685 A CN202111654685 A CN 202111654685A CN 114296764 A CN114296764 A CN 114296764A
Authority
CN
China
Prior art keywords
image file
upgrade
package
data partition
upgrading
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
CN202111654685.8A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202111654685.8A priority Critical patent/CN114296764A/en
Publication of CN114296764A publication Critical patent/CN114296764A/en
Pending legal-status Critical Current

Links

Images

Abstract

The disclosure relates to a system upgrading method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring an image file upgrading package, wherein the image file upgrading package is an upgrading package of a subsystem in an operating system of electronic equipment; storing the image file upgrade package in a designated data partition on a memory of the electronic device, the designated data partition being different from a default data partition on the memory, the default data partition being used to store original files of the subsystem; and restarting the electronic equipment, and loading the image file upgrading package from the specified data partition so as to upgrade the corresponding subsystem.

Description

System upgrading method and device, storage medium and electronic equipment
Technical Field
The disclosed embodiments relate to the field of computer technologies, and in particular, to a system upgrade method, a system upgrade apparatus, and a computer-readable storage medium and an electronic device for implementing the system upgrade method.
Background
At present, with the version update of an operating system of a terminal, such as an Android system, the operating system of the terminal needs to be upgraded. The current upgrading mode of the Android system is mainly the upgrading of Over-the-air technology (OTA). The OTA upgrading is realized by sending an upgrading package mirror image or a mirror image differential package to a terminal through the OTA, and then automatically or manually completing the upgrading operation by a user. OTA upgrading is usually to send the complete upgrade package to the whole operating system, so the upgrade package is often bigger, the upgrade speed is slow, and the upgrade mode is not flexible and convenient.
For this reason, the related art provides an upgrade manner for a subsystem, such as firmware, of an operating system of the terminal, for example, the Android subsystem upgrade may be to download an upgrade package of the subsystem, such as firmware, to the terminal through OTA, and then update the upgrade. However, the existing upgrading mode is to directly decompress a subsystem image (image) file corresponding to an upgrading packet and then cover the original subsystem image file, and once the memory fails to be erased or powered off in the upgrading process, the upgrading of the subsystem, such as firmware, fails and the subsystem cannot be started.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present disclosure provide a system upgrade method, a system upgrade apparatus, and a computer-readable storage medium and an electronic device implementing the system upgrade method.
In a first aspect, an embodiment of the present disclosure provides a system upgrade method, including:
acquiring an image file upgrading package, wherein the image file upgrading package is an upgrading package of a subsystem in an operating system of electronic equipment;
storing the image file upgrade package in a designated data partition on a memory of the electronic device, the designated data partition being different from a default data partition on the memory, the default data partition being used to store original files of the subsystem;
and restarting the electronic equipment, and loading the image file upgrading package from the specified data partition so as to upgrade the corresponding subsystem.
Optionally, in an embodiment of the present disclosure, the storing the image file upgrade package in a designated data partition on a memory of the electronic device includes:
establishing a designated folder in the designated data partition;
and storing the image file upgrading package in the specified folder.
Optionally, in an embodiment of the present disclosure, the loading the image file upgrade package from the designated data partition to upgrade a corresponding subsystem includes:
and loading the image file upgrading package from the specified folder to upgrade the corresponding subsystem.
Optionally, in an embodiment of the present disclosure, the method further includes:
and if the loading of the image file upgrade package from the specified folder fails, loading the original file from the default data partition.
Optionally, in an embodiment of the present disclosure, the method further includes:
judging whether the specified folder has the image file upgrading package or not;
if yes, loading the image file upgrading package from the specified folder to upgrade the corresponding subsystem;
and if not, loading the original file from the default data partition.
Optionally, in an embodiment of the present disclosure, the method further includes:
and if the loading of the image file upgrade package from the specified folder fails, loading the original file from the default data partition.
Optionally, in an embodiment of the present disclosure, the method further includes:
acquiring a first version identifier of the image file upgrade package;
acquiring a second version identifier of the original file;
judging whether the version of the image file upgrade package is higher than that of the original file or not based on the first version identification and the second version identification;
if yes, storing the image file upgrading package in the specified data partition;
if not, displaying prompt information, wherein the prompt information indicates to acquire the image file upgrade package again.
Optionally, in an embodiment of the present disclosure, the obtaining an upgrade package of an image file includes:
establishing connection with an upgrade server through an air interface of a mobile communication network;
acquiring the image file upgrading package from the upgrading server based on an over-the-air downloading technology;
alternatively, the first and second electrodes may be,
and downloading the image file upgrading package through a specified application program, wherein the specified application program is used for displaying and downloading software applicable to the electronic equipment.
In a second aspect, an embodiment of the present disclosure provides a system upgrade apparatus, including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an image file upgrading package which is an upgrading package of a subsystem in an operating system of the electronic equipment;
the storage module is used for storing the image file upgrade package in a designated data partition on a memory of the electronic equipment, wherein the designated data partition is different from a default data partition on the memory, and the default data partition is used for storing an original file of the subsystem;
and the upgrading module is used for restarting the electronic equipment and loading the image file upgrading package from the specified data partition so as to upgrade the corresponding subsystem.
In a third aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the system upgrade method described in any one of the above embodiments.
In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including:
a processor; and
a memory for storing a computer program;
wherein the processor is configured to perform the steps of the system upgrade method of any of the above embodiments via execution of the computer program.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
the system upgrading method, the device, the storage medium and the electronic equipment provided by the embodiment of the disclosure acquire an image file upgrading package, wherein the image file upgrading package is an upgrading package of a subsystem in an operating system of the electronic equipment; storing the image file upgrade package in a designated data partition on a memory of the electronic device, the designated data partition being different from a default data partition on the memory, the default data partition being used to store original files of the subsystem; and restarting the electronic equipment, and loading the image file upgrading package from the specified data partition so as to upgrade the corresponding subsystem. In this way, the upgrade method in this embodiment is to store the image file upgrade package in a special designated data partition, and then load the image file upgrade package from the designated data partition to implement upgrade, without covering the original subsystem image file, such as the original file of the default data partition, so that the subsystem, such as the firmware, cannot be started due to the failure of the upgrade of the firmware if the memory, such as the Flash memory, fails to erase or is powered off during the upgrade process. In addition, the subsystem of the operating system can be upgraded, the upgrading speed is high, and the upgrading mode is flexible and convenient.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flowchart of a system upgrade method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of a system upgrade method according to another embodiment of the present disclosure;
FIG. 3 is a flowchart of a system upgrade method according to yet another embodiment of the present disclosure;
FIG. 4 is a flowchart of a system upgrade method according to yet another embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a system upgrade apparatus according to an embodiment of the disclosure;
fig. 6 is a schematic diagram of an electronic device for implementing a system upgrade method according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
It is to be understood that, hereinafter, "at least one" means one or more, "a plurality" means two or more. "and/or" is used to describe the association relationship of the associated objects, meaning that there may be three relationships, for example, "a and/or B" may mean: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
Fig. 1 is a flowchart of a system upgrade method shown in an embodiment of the present disclosure, where the method may be applied to an electronic device, and specifically may include the following steps:
step S101: an image file upgrade package is obtained, wherein the image file upgrade package is an upgrade package of a subsystem in an operating system of the electronic equipment.
For example, the electronic device may be a smart phone, a smart television, a vehicle-mounted smart device, and the like, which is not limited in this embodiment. The subsystem may be, but is not limited to, one of the operating systems of the electronic device, such as the Android operating system, for example, a sensor subsystem, a modem subsystem, a sound subsystem, a resource power consumption subsystem, and the like. Taking the sound subsystem as an example, for example, if the sound subsystem adopts an ADSP digital signal processing chip, the firmware of the ADSP digital signal processing chip may be upgraded, and at this time, the image file upgrade package may be an upgrade package for the sound subsystem, that is, an upgrade package for the firmware.
Specifically, as an example, the upgrade package of the image file may be obtained, for example, from the upgrade server by an OTA method. The upgrade server can store an image file upgrade package of new version software, such as firmware, uploaded and released by developers and aiming at subsystem upgrade of an operating system of the electronic equipment.
Step S102: and storing the image file upgrade package in a designated data partition on a memory of the electronic equipment, wherein the designated data partition is different from a default data partition on the memory, and the default data partition is used for storing the original file of the subsystem.
Illustratively, the memory may be a Flash memory. In this embodiment, a special designated data partition is set on the memory, and then the acquired image file upgrade package is written into the designated data partition on the memory. The designated data partition is different from the default data partition on memory, i.e., the partition of the original file of the storage subsystem, such as the sound subsystem.
Step S103: and restarting the electronic equipment, and loading the image file upgrade package from the specified data partition so as to upgrade the corresponding subsystem.
Illustratively, after writing the acquired image file upgrade package to the designated data partition on the memory, the electronic device is restarted, and then the image file upgrade package is loaded from the designated data partition to upgrade the corresponding subsystem, such as a sound subsystem.
In the related art upgrading mode, the original file in the default data partition is covered by the image file in the image file upgrading package, and the original file does not exist after upgrading.
The upgrading method in this embodiment is to store the image file upgrade package in a special designated data partition, and then load the image file upgrade package from the designated data partition to implement upgrading without covering the original subsystem image file, such as the original file of the default data partition, and the original image file of the default data partition still exists, so that the electronic device cannot be started if the erasing and writing of the memory, such as a Flash memory, fails or the power failure does not cause the upgrading failure of the subsystem, such as firmware. In addition, the subsystem of the operating system can be upgraded, the upgrading speed is high, and the upgrading mode is flexible and convenient.
Optionally, in an embodiment of the present disclosure, the obtaining of the image file upgrade package in step S101 may specifically include: establishing connection with an upgrade server through an air interface of a mobile communication network; and acquiring an image file upgrade package from an upgrade server based on an over-the-air technology OTA. The obtaining of the upgrade package of the image file by the OTA method can be understood by referring to the prior art, and is not described herein again.
Optionally, in another embodiment of the present disclosure, the obtaining of the image file upgrade package in step S101 may specifically include: and downloading the image file upgrade package through the appointed application program, wherein the appointed application program is used for displaying and downloading the software applicable to the electronic equipment.
Illustratively, the designated application program is an application store, which serves as a platform for displaying and downloading software suitable for the electronic device, such as an image file upgrade package of subsystem upgrade. The user can operate to download the corresponding image file upgrade package in the application store.
In the embodiment of the disclosure, the image file upgrade package of the subsystem can be downloaded through an application store or an OTA method, and the upgrade method is more flexible.
Optionally, on the basis of any of the above embodiments, as shown in fig. 2, in an embodiment of the present disclosure, the step S102 of storing the image file upgrade package in the specified data partition on the memory of the electronic device may specifically include the following steps:
step S201: a specified folder is established in a specified data partition.
Illustratively, as shown in connection with FIG. 3, a dedicated designated folder such as "/data/sub _ img" is established in a designated data partition 301, such as a data partition, of the memory. Step S201 is executed after step S101.
Step S202: and storing the image file upgrading package in a specified folder.
Illustratively, a specified folder such as "/data/sub _ img" may store therein an acquired image file upgrade package such as an image file upgrade package (the upgrade package name is, for example, modem) of firmware of a modem subsystem, and a corresponding file storage path is, for example, "/data/sub _ img/modem".
In an embodiment of the present disclosure, after the electronic device is restarted in step S103, an image file upgrade package is loaded from the specified data partition to upgrade a corresponding subsystem, which may specifically be step S103': and loading the image file upgrading package from the specified folder to upgrade the corresponding subsystem.
Illustratively, a "modem", i.e., an image file upgrade package, is loaded from a specified folder, such as "/data/sub _ img", to upgrade the corresponding subsystem. For example, loading the image file in the image file upgrade package into the memory to upgrade the corresponding subsystem, such as the modem subsystem.
Optionally, in an embodiment of the present disclosure, in step S103', if the loading of the image file upgrade package from the specified folder, such as "/data/sub _ img", fails, the original file is loaded from the default data partition 302.
The upgrade method of this embodiment is to store the image file upgrade package in a specific folder in the specific designated data partition 301, and then load the image file upgrade package from the specific folder to implement upgrade, without covering the original subsystem image file such as the original file of the default data partition 302, and the original image file of the default data partition 302 still exists, so that if the erase and write of the designated data partition of the memory such as a Flash memory fails or the power failure causes the failure of loading the image file upgrade package during the upgrade process, the original file can be loaded from the default data partition to start, and the failure of starting the electronic device due to the failure of upgrading the firmware of the subsystem is not caused. In addition, the subsystem of the operating system can be upgraded, the upgrading speed is high, and the upgrading mode is flexible and convenient.
Optionally, on the basis of the embodiment shown in fig. 2, in another embodiment of the present disclosure, the method of this embodiment may further include the following steps:
step a): and judging whether the specified folder has the image file upgrading package or not.
Illustratively, a designated folder such as "/data/sub _ img" can be written to store the acquired image file upgrade package such as the image file upgrade package modem of the firmware of the modem subsystem, and a storage path such as "/data/sub _ img/modem".
However, there may be a problem of misoperation or write failure during writing, which results in that the image file upgrade package modem of firmware of the modem subsystem, for example, is not written correctly in the designated folder. Therefore, in this embodiment, before loading, it is first determined whether the specified folder, such as "/data/sub _ img", has the obtained image file upgrade package.
Step b): and if so, loading the image file upgrading package from the specified folder to upgrade the corresponding subsystem.
Illustratively, when the acquired image file upgrading package is judged to be really in the specified folder such as "/data/sub _ img", the image file upgrading package is loaded from the specified folder such as "/data/sub _ img" to upgrade the corresponding subsystem.
Step c): and if not, loading the original file from the default data partition.
Illustratively, when it is determined that there is no image file upgrade package acquired in the designated folder, such as "/data/sub _ img", the original file corresponding to the subsystem is loaded from the default data partition 302.
The upgrade method of this embodiment is to store the image file upgrade package in a specific folder in the specific designated data partition 301, and then load the image file upgrade package from the specific folder to implement upgrade, without covering the original subsystem image file such as the original file of the default data partition 302, and the original image file of the default data partition 302 still exists, so that if the erase and write of the designated data partition 301 of the memory such as a Flash memory fails or the power failure causes the failure of loading the image file upgrade package during the upgrade process, the original file can be loaded from the default data partition to start, and the failure of starting the electronic device due to the failure of upgrading the firmware of the subsystem cannot be caused. In addition, the method judges before loading to determine whether the obtained image file upgrade package is loaded in the appointed folder, so that the accuracy of loading the image file upgrade package can be improved, invalid loading is avoided, and the reliability of system upgrade operation is improved.
Optionally, in an embodiment of the present disclosure, in step b), if the loading of the image file upgrade package from the specified folder fails, the original file is loaded from the default data partition. For example, the specified folder such as "/data/sub _ img" has the acquired image file upgrade package, but if the loading fails when the image file upgrade package is loaded from the specified folder such as "/data/sub _ img", the original file may also be loaded from the default data partition. Therefore, if the loading of the image file upgrade package fails in the upgrade process, the original file can be loaded from the default data partition to start the electronic equipment, and the electronic equipment cannot be started due to the fact that the subsystem fails to update firmware.
Optionally, on the basis of any one of the above embodiments, as shown in fig. 4, in an embodiment of the present disclosure, the method of this embodiment may further include the following steps:
step S401: and acquiring a first version identifier of the image file upgrade package.
For example, the first version identifier may be a version number or other unique identifier, which is not limited in this respect. In this embodiment, the first version number of the image file upgrade package may be obtained. Step S401 may be performed after step S101.
Step S402: and acquiring a second version identification of the original file.
The second version identifier may also be a version number or other unique identifier, which is not limited in this regard. In this embodiment, the second version number of the original file may be obtained. Step S402 may be executed simultaneously with step S401, or may be executed sequentially, and the execution order of both is not limited.
Step S403: and judging whether the version of the image file upgrading package is higher than that of the original file or not based on the first version identification and the second version identification.
Illustratively, whether the version of the image file upgrade package is higher than the version of the original file is determined based on the first version number and the second version number, for example, if the first version number is x.8.2 and the second version number is x.8.1, it is determined that the version of the image file upgrade package is higher than the version of the original file, and if the first version number is x.8.1 and the second version number is x.8.2, it is determined that the version of the image file upgrade package is lower than the version of the original file. It is to be understood that this is by way of example only and that the version determination is not limited in this manner.
Step S404: and if so, storing the image file upgrade package in the specified data partition.
For example, when the version of the obtained image file upgrade package is higher than the version of the original file, that is, the image file upgrade package is the latest version, the image file upgrade package is stored in the specified data partition, for example, in a specified folder of the specified data partition, such as "/data/sub _ img/modem". Step S103 is performed after step S404.
Step S405: if not, displaying prompt information, and indicating to acquire the image file upgrade package again by the prompt information.
Illustratively, when the version of the obtained image file upgrade package is lower than the version of the original file, that is, the image file upgrade package is not the latest version, a prompt message is displayed to instruct the user to re-obtain the image file upgrade package, that is, to obtain the image file upgrade package of the latest version. The prompt message may be, but is not limited to, a text message such as "you download the image file that is not the latest version and please download the image file upgrade package of the latest version again".
The upgrading mode in this embodiment is to store the image file upgrade package in a special designated data partition, and then load the image file upgrade package from the designated data partition to implement upgrading without covering the original subsystem image file such as the original file of the default data partition, so that the subsystem cannot be started due to the failure of firmware upgrade if the erasing and writing of the memory such as a Flash memory fails or the power failure occurs in the upgrading process. In addition, the subsystem of the operating system can be upgraded, the upgrading speed is high, and the upgrading mode is flexible and convenient. In addition, before the image file upgrading package is stored in the special designated data partition, the subsequent steps are executed to realize upgrading by judging the version heights of the image file upgrading package and the original file when the version height of the image file upgrading package is high, so that the error upgrading is avoided, and the accuracy of upgrading operation is improved. And when the version of the image file upgrade package is low, prompt information is given, so that a user can be prompted to download the image file upgrade package again for upgrading conveniently and timely, and the user experience is improved.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc. Additionally, it will also be readily appreciated that the steps may be performed synchronously or asynchronously, e.g., among multiple modules/processes/threads.
An embodiment of the present disclosure further provides a system upgrading apparatus, and as shown in fig. 5, the system upgrading apparatus may include:
an obtaining module 501, configured to obtain an image file upgrade package, where the image file upgrade package is an upgrade package of a subsystem in an operating system of an electronic device;
a storage module 502, configured to store the image file upgrade package in a designated data partition on a memory of the electronic device, where the designated data partition is different from a default data partition on the memory, and the default data partition is used to store an original file of the subsystem;
the upgrade module 503 is configured to restart the electronic device, and load the image file upgrade package from the specified data partition to upgrade a corresponding subsystem.
The upgrading mode in this embodiment is to store the image file upgrade package in a special designated data partition, and then load the image file upgrade package from the designated data partition to implement upgrading without covering the original subsystem image file such as the original file of the default data partition, so that the subsystem cannot be started due to the failure of firmware upgrade if the erasing and writing of the memory such as a Flash memory fails or the power failure occurs in the upgrading process. In addition, the subsystem of the operating system can be upgraded, the upgrading speed is high, and the upgrading mode is flexible and convenient.
Optionally, in an embodiment of the present disclosure, the storage module 502 is configured to: establishing a designated folder in the designated data partition; and storing the image file upgrading package in the specified folder.
Optionally, in an embodiment of the present disclosure, the upgrade module 503 is configured to: and loading the image file upgrading package from the specified folder to upgrade the corresponding subsystem.
Optionally, in an embodiment of the present disclosure, the upgrade module 503 is further configured to load the original file from the default data partition if the loading of the image file upgrade package from the designated folder fails.
Optionally, in another embodiment of the present disclosure, the upgrade module 503 is further configured to determine whether the specified folder has the image file upgrade package; if yes, loading the image file upgrading package from the specified folder to upgrade the corresponding subsystem; and if not, loading the original file from the default data partition.
Further, on the basis of the foregoing embodiment, the upgrade module 503 is further configured to load the original file from the default data partition if the loading of the image file upgrade package from the specified folder fails.
Optionally, in an embodiment of the present disclosure, the apparatus may further include a first identifier obtaining module, a second identifier obtaining module, a version determining module, and a display module: the first identifier acquisition module is used for acquiring a first version identifier of the image file upgrade package; the second identification acquisition module is used for acquiring a second version identification of the original file; the version judgment module is used for judging whether the version of the image file upgrade package is higher than the version of the original file or not based on the first version identification and the second version identification; a storage module 502, configured to store the image file upgrade package in the specified data partition if the determination result of the version determination module is yes; and the display module is used for displaying prompt information if the judgment result of the version judgment module is negative, wherein the prompt information indicates that the image file upgrade package is obtained again.
Optionally, in an embodiment of the present disclosure, the obtaining module 501 obtains the upgrade package of the image file, which specifically includes: establishing connection with an upgrade server through an air interface of a mobile communication network; acquiring the image file upgrading package from the upgrading server based on an over-the-air downloading technology; or downloading the image file upgrade package through a specified application program, wherein the specified application program is used for displaying and downloading software applicable to the electronic equipment.
The specific manner in which the above-mentioned embodiments of the apparatus, and the corresponding technical effects brought about by the operations performed by the respective modules, have been described in detail in the embodiments related to the method, and will not be described in detail herein.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units. The components shown as modules or units may or may not be physical units, i.e. may be located in one place or may also be distributed over a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the wood-disclosed scheme. One of ordinary skill in the art can understand and implement it without inventive effort.
The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the system upgrading method according to any one of the embodiments.
By way of example, and not limitation, such readable storage media can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
An embodiment of the present disclosure also provides an electronic device, including a processor and a memory for storing a computer program. Wherein the processor is configured to perform the steps of the system upgrade method of any one of the above embodiments via execution of the computer program.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 5. The electronic device 600 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the system upgrade method section above in this specification. For example, the processing unit 610 may perform the steps of the system upgrade method as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above system upgrading method according to the embodiments of the present disclosure.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A method for system upgrade, comprising:
acquiring an image file upgrading package, wherein the image file upgrading package is an upgrading package of a subsystem in an operating system of electronic equipment;
storing the image file upgrade package in a designated data partition on a memory of the electronic device, the designated data partition being different from a default data partition on the memory, the default data partition being used to store original files of the subsystem;
and restarting the electronic equipment, and loading the image file upgrading package from the specified data partition so as to upgrade the corresponding subsystem.
2. The system upgrade method according to claim 1, wherein the storing the image file upgrade package in a designated data partition on a memory of the electronic device comprises:
establishing a designated folder in the designated data partition;
and storing the image file upgrading package in the specified folder.
3. The system upgrade method according to claim 2, wherein the loading the image file upgrade package from the specified data partition to upgrade a corresponding subsystem comprises:
and loading the image file upgrading package from the specified folder to upgrade the corresponding subsystem.
4. The system upgrade method according to claim 3, further comprising:
and if the loading of the image file upgrade package from the specified folder fails, loading the original file from the default data partition.
5. The system upgrade method according to claim 3, further comprising:
judging whether the specified folder has the image file upgrading package or not;
if yes, loading the image file upgrading package from the specified folder to upgrade the corresponding subsystem;
and if not, loading the original file from the default data partition.
6. The system upgrade method according to claim 5, further comprising:
and if the loading of the image file upgrade package from the specified folder fails, loading the original file from the default data partition.
7. The system upgrade method according to any one of claims 1 to 6, further comprising:
acquiring a first version identifier of the image file upgrade package;
acquiring a second version identifier of the original file;
judging whether the version of the image file upgrade package is higher than that of the original file or not based on the first version identification and the second version identification;
if yes, storing the image file upgrading package in the specified data partition;
if not, displaying prompt information, wherein the prompt information indicates to acquire the image file upgrade package again.
8. The system upgrading method according to any one of claims 1 to 6, wherein the obtaining of the image file upgrade package comprises:
establishing connection with an upgrade server through an air interface of a mobile communication network;
acquiring the image file upgrading package from the upgrading server based on an over-the-air downloading technology;
alternatively, the first and second electrodes may be,
and downloading the image file upgrading package through a specified application program, wherein the specified application program is used for displaying and downloading software applicable to the electronic equipment.
9. A system upgrade apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an image file upgrading package which is an upgrading package of a subsystem in an operating system of the electronic equipment;
the storage module is used for storing the image file upgrade package in a designated data partition on a memory of the electronic equipment, wherein the designated data partition is different from a default data partition on the memory, and the default data partition is used for storing an original file of the subsystem;
and the upgrading module is used for restarting the electronic equipment and loading the image file upgrading package from the specified data partition so as to upgrade the corresponding subsystem.
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 system upgrade method according to any one of claims 1 to 8.
11. An electronic device, comprising:
a processor; and
a memory for storing a computer program;
wherein the processor is configured to perform the steps of the system upgrade method of any one of claims 1 to 8 via execution of the computer program.
CN202111654685.8A 2021-12-30 2021-12-30 System upgrading method and device, storage medium and electronic equipment Pending CN114296764A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111654685.8A CN114296764A (en) 2021-12-30 2021-12-30 System upgrading method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111654685.8A CN114296764A (en) 2021-12-30 2021-12-30 System upgrading method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114296764A true CN114296764A (en) 2022-04-08

Family

ID=80974499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111654685.8A Pending CN114296764A (en) 2021-12-30 2021-12-30 System upgrading method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114296764A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116603245A (en) * 2023-07-21 2023-08-18 腾讯科技(深圳)有限公司 Program version adjustment method, device, equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116603245A (en) * 2023-07-21 2023-08-18 腾讯科技(深圳)有限公司 Program version adjustment method, device, equipment and readable storage medium
CN116603245B (en) * 2023-07-21 2023-09-29 腾讯科技(深圳)有限公司 Program version adjustment method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN106293507B (en) Electronic device with external memory and method of operating the same
US9804832B2 (en) Method, apparatus, and communication device for updating firmware
CN110597542B (en) Software automatic OTA (over the air) upgrading method and device and electronic equipment
CN107179909A (en) Method for upgrading software, device and computer-readable recording medium
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
CN104123153A (en) Apparatus and method for firmware upgrade using USB
KR20200090010A (en) Method for updating firmware, electronic device and storage medium therefor
CN112612417B (en) Data migration method, device, equipment and storage medium
CN104598237B (en) A kind of method and apparatus that user interface is generated under upgrade mode
CN110580167A (en) system upgrading method, intelligent device and server
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
CN110750280A (en) Application upgrading method and system based on Android platform and storage medium
CN112667265A (en) Method and device for updating bootstrap program
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment
CN114745268A (en) Method for online updating and loading algorithm library of network camera
CN113190244A (en) Method and device for upgrading wireless module, computer equipment and storage medium
CN112817622A (en) BIOS refreshing method and device, electronic equipment and storage medium
CN105278993A (en) Linux system based drive module upgrading method and apparatus
CN117270914B (en) System upgrading method, device, equipment and medium of terminal equipment
CN114443582B (en) File system mounting method, device, equipment and medium on operating system
CN116954674A (en) eMMC firmware upgrading method, firmware upgrading equipment and storage device
CN114090028A (en) System upgrading method, electronic device and storage medium
CN108664259B (en) Method and terminal for installing application

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