CN111782236A - System software upgrading method and device, storage medium and all-in-one machine equipment - Google Patents
System software upgrading method and device, storage medium and all-in-one machine equipment Download PDFInfo
- Publication number
- CN111782236A CN111782236A CN202010394015.6A CN202010394015A CN111782236A CN 111782236 A CN111782236 A CN 111782236A CN 202010394015 A CN202010394015 A CN 202010394015A CN 111782236 A CN111782236 A CN 111782236A
- Authority
- CN
- China
- Prior art keywords
- file
- upgrading
- system software
- upgrade
- corresponding configuration
- 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
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
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
-
- 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
- G06F8/658—Incremental updates; Differential updates
-
- 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)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a system software upgrading method and device of all-in-one machine equipment, a storage medium and the all-in-one machine equipment, wherein the method comprises the following steps: when the all-in-one machine equipment detects that the server contains a corresponding configuration file of the system upgrading file, downloading the corresponding configuration file on the server; analyzing the corresponding configuration file, confirming that the analyzed corresponding configuration file can be used for upgrading system software on a system of the all-in-one machine equipment, and backing up an original file which is correspondingly described by the upgrading file in the corresponding configuration file; decompressing the upgrade file in the corresponding configuration file, and replacing the decompressed upgrade file into the corresponding file in the system software to update and upgrade; confirming whether the upgraded system software operates normally and/or repairing the corresponding system problem; if not, returning the upgrading file based on the backup original file and ending. In the embodiment of the invention, the system software is high in upgrading speed and safe in upgrading.
Description
Technical Field
The invention relates to the technical field of all-in-one machine equipment, in particular to a method and a device for upgrading system software of all-in-one machine equipment, a storage medium and all-in-one machine equipment.
Background
In the delivered product of the all-in-one machine equipment, the running system software may have some problems, and the problems can be solved by only replacing one or more files (the file types are generally a so file, an executable file, a script, a jar package, an apk and the like and some common files); however, in the existing technical scheme, when the system software is upgraded, the whole upgrading mode is quite large, several hundred mega or even G, the requirement on the network speed is high, an upgraded firmware is manufactured, the general service and compilation needs more than ten minutes and even more than half an hour, and the system software before upgrading is difficult to quit after upgrading fails.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a device for upgrading system software of all-in-one machine equipment, a storage medium and the all-in-one machine equipment, wherein the system software is high in upgrading speed and safe in upgrading.
In order to solve the above technical problem, an embodiment of the present invention provides a method for upgrading system software of an all-in-one machine device, where the method includes:
when detecting that a server contains a corresponding configuration file of a system upgrading file, the all-in-one machine device downloads the corresponding configuration file on the server based on an HTTP communication protocol, wherein the corresponding configuration file contains an upgrading file, and the upgrading file is a compressed file;
analyzing the corresponding configuration file, and backing up an original file which is described correspondingly by the upgrading file in the corresponding configuration file if the analyzed corresponding configuration file can be used for upgrading system software on a system of the all-in-one machine equipment;
decompressing the upgrade file in the corresponding configuration file, and replacing the decompressed upgrade file into the corresponding file in the system software to update and upgrade;
restarting the system of the all-in-one machine equipment, and confirming whether the upgraded system software operates normally and/or repairing the corresponding system problem;
if not, returning the upgrading file based on the backup original file and ending.
Optionally, when detecting that the server includes a configuration file corresponding to the system upgrade file, the all-in-one device includes:
the all-in-one machine equipment acquires current upgrading version information of system software running in the all-in-one machine equipment and described in a server file, and confirms whether the current upgrading version information is higher than the system version information or not according to the comparison of the current upgrading version information and the system version information of the all-in-one machine equipment;
and if so, the all-in-one machine equipment detects a corresponding configuration file containing the system upgrading file on the server.
Optionally, the file format of the corresponding configuration file is update.
Optionally, the backing up the original file correspondingly described by the upgrade file in the corresponding configuration file includes:
opening up a safe storage partition on a memory of the all-in-one machine equipment;
backing up original files correspondingly described by the upgrading files in the corresponding configuration files to the opened storage partitions for backup;
the original files of the backup are stored under the update directory, and a corresponding directory is created under the update directory according to the description of the update _ loacl _ path.
Optionally, the replacing the decompressed upgrade file into a corresponding file in the system software for update and upgrade processing includes:
obtaining a file path field in the corresponding configuration file where the upgrade file is located, and obtaining a corresponding original file path field in a system of the all-in-one machine according to the file path field;
and replacing the original file path field with the upgrade file into the system software according to the original file path field, and performing update and upgrade processing.
Optionally, the replacing the upgrade file into the system software according to the original file path field includes:
replacing the upgrade file into the system software by using a CP command according to the original file path field in the all-in-one machine equipment system;
the file path field is update _ remote _ path; the file path field is connected with the corresponding configuration file through a & character.
Optionally, returning the original file based on the backup to the upgrade file and ending, including:
inserting an external memory into the all-in-one machine equipment, replacing the upgrade file by using the backup original file pair based on the external memory, and finishing;
and a recovery file is stored in the external storage.
In addition, an embodiment of the present invention further provides a device for upgrading system software of an all-in-one machine device, where the device includes:
a detection downloading module: the method comprises the steps that when all-in-one machine equipment detects that a server contains a corresponding configuration file of a system upgrading file, the corresponding configuration file is downloaded on the server based on an HTTP communication protocol, the corresponding configuration file contains an upgrading file, and the upgrading file is a compressed file;
the analysis backup module: the backup device is used for analyzing the corresponding configuration file, confirming that the analyzed corresponding configuration file can be used for upgrading system software on a system of the all-in-one machine equipment, and backing up an original file which is correspondingly described by the upgrading file in the corresponding configuration file;
replacing the upgrading module: the system software is used for decompressing the upgrade file in the corresponding configuration file and replacing the decompressed upgrade file into the corresponding file in the system software for updating and upgrading;
a judgment and confirmation module: the system is used for restarting the all-in-one machine equipment, and whether the upgraded system software runs normally and/or the corresponding system problem is repaired is determined;
a return module: and if the file is determined to be not the upgrade file, returning the upgrade file based on the backup original file and ending.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the system software upgrading method described in any one of the above.
In addition, an embodiment of the present invention further provides an all-in-one machine device, which includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: performing a system software upgrade method according to any one of the above.
In the embodiment of the invention, the upgrade files in the corresponding configuration files are adopted to replace original files in the system software, and the original files are backed up, so that the upgrade speed is high, and the sizes of the files can be reduced only by upgrading problematic files; the upgrade package manufacturing block only needs to arrange the upgraded files and does not need to perform corresponding compiling processing; the upgrade is safe, the upgraded file does not influence the system operation, once the upgraded file is detected to have problems or the corresponding problems of the system cannot be repaired, the original file can be replaced and returned for upgrade through backup, and the state of the system software before upgrade is restored.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a system software upgrading method of an all-in-one machine device according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a system software upgrading device of the all-in-one machine device in the embodiment of the present invention;
fig. 3 is a schematic structural composition diagram of the all-in-one machine device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
Referring to fig. 1, fig. 1 is a schematic flow chart of a system software upgrading method of an all-in-one machine device according to an embodiment of the present invention.
As shown in fig. 1, a method for upgrading system software of an all-in-one machine device includes:
s11: when detecting that a server contains a corresponding configuration file of a system software upgrading file, the all-in-one machine device downloads the corresponding configuration file on the server based on an HTTP communication protocol, wherein the corresponding configuration file contains an upgrading file, and the upgrading file is a compressed file;
in a specific implementation process of the present invention, when detecting that the server includes a configuration file corresponding to a system upgrade file, the all-in-one device includes: the all-in-one machine equipment acquires current upgrading version information of system software running in the all-in-one machine equipment and described in a server file, and confirms whether the current upgrading version information is higher than the system version information or not according to the comparison of the current upgrading version information and the system version information of the all-in-one machine equipment; and if so, the all-in-one machine equipment detects a corresponding configuration file containing the system upgrading file on the server.
Further, the file format of the corresponding configuration file is update.
Specifically, after the all-in-one machine device is started, the system software running on the all-in-one machine device accesses to the server in a network connection mode, and then whether the upgrade file of the system software is on the server is detected, or the upgrade file of the system software can be automatically pushed by the server after the system software running on the all-in-one machine device accesses to the server in the network connection mode; then the system software on the all-in-one machine equipment confirms the upgrade file of the system software on the server, obtains the current upgrade version information of the system running on the all-in-one machine equipment described in the upgrade file, compares the current upgrade version information with the system version information of the all-in-one machine equipment, and detects the corresponding configuration file containing the system upgrade file on the server for the all-in-one machine equipment when confirming whether the current upgrade version information is higher than the system version information; for example, the file format of the corresponding configuration file in the server is obtained by the all-in-one device is update.ini, Version information describing the current upgrade package is contained in the update.ini, for example, Version is 1.0, and if the Version of the general server is higher than the system Version, it is indicated that the server has the upgrade package which needs to upgrade the specified file.
When the corresponding configuration file of the system software upgrading file on the server is confirmed, the corresponding configuration file is downloaded to the all-in-one machine equipment on the server through an HTTP communication protocol; the corresponding configuration file contains an upgrade file, the upgrade file is a compressed file, and the compressed file can be a Zip or other type compressed file.
S12: analyzing the corresponding configuration file, and backing up an original file which is described correspondingly by the upgrading file in the corresponding configuration file if the analyzed corresponding configuration file can be used for upgrading system software on a system of the all-in-one machine equipment;
in a specific implementation process of the present invention, the backing up the original file correspondingly described by the upgrade file in the corresponding configuration file includes: opening up a safe storage partition on a memory of the all-in-one machine equipment; backing up original files correspondingly described by the upgrading files in the corresponding configuration files to the opened storage partitions for backup; the original files of the backup are stored under the update directory, and a corresponding directory is created under the update directory according to the description of the update _ loacl _ path.
Specifically, the corresponding configuration file is analyzed, and the analyzed corresponding configuration file is obtained through analysis, so that whether the analyzed corresponding configuration file can be used for upgrading the system software of the all-in-one machine equipment or not can be confirmed in the system software of the all-in-one machine equipment, and when the system software is confirmed to be available, the original file described corresponding to the upgrade file in the corresponding configuration file needs to be backed up.
Before backup, a safe storage partition needs to be created in a storage in the all-in-one machine device again, and then original files correspondingly described by the upgrade files in the corresponding configuration files are backed up to the created storage partition for backup; the original file of the backup is stored under the update directory, and a corresponding directory is created under the update directory according to the description of the update _ loacl _ path.
S13: decompressing the upgrade file in the corresponding configuration file, and replacing the decompressed upgrade file into the corresponding file in the system software to update and upgrade;
in a specific implementation process of the present invention, the replacing the decompressed upgrade file into a corresponding file in the system software for update and upgrade processing includes: obtaining a file path field in the corresponding configuration file where the upgrade file is located, and obtaining a corresponding original file path field in a system of the all-in-one machine according to the file path field; and replacing the original file path field with the upgrade file into the system software according to the original file path field, and performing update and upgrade processing.
Further, the replacing the upgrade file into the system software according to the original file path field includes: replacing the upgrade file into the system software by using a CP command according to the original file path field in the all-in-one machine equipment system; the file path field is update _ remote _ path; the file path field is connected with the corresponding configuration file through a & character.
Specifically, the upgrade file in the corresponding configuration file is decompressed, the file path field of the upgrade file in the corresponding configuration file is obtained in the decompressed upgrade file, and then the corresponding original file path field is obtained in the system software of the all-in-one machine device according to the file path field; and replacing the original file path field with an upgrade file into the system software, and performing update and upgrade processing.
Ini, the file format in the corresponding configuration file is update, a file path to be upgraded will be described in the corresponding configuration file, for example, a file field to be upgraded is update _ local _ path (representing a file path keyword to be upgraded), a field update _ remote _ path (representing a new file path keyword), and the file path field is connected with the corresponding configuration file through a & character; the corresponding configuration file can directly pass through tar-czvf update. tar. gzout/target/product/xxx/vendor/lib/libauudiomanager _ jni. so, note that xxx represents some platform quotient, such as: sugarcane, this indicates the name of a certain scheme of MTK.
For example:
if there are multiple files, there are multiple rows of records, and if there are multiple files, the files are replaced by the out/target/product/xxx/vendor/library _ jni.e. so and the file in the system is represented by the out/target/library _ manager _ jni.e. so; replacing the cp command directly using the android system; note that update.tar.gz describes the corresponding download path by describing it at update.ini.
S14: restarting the system of the all-in-one machine equipment, and confirming whether the upgraded system software operates normally and/or repairing the corresponding system problem;
in the specific implementation process of the invention, after the replacement in the steps is completed, the system of the all-in-one machine equipment needs to be restarted, the updating and upgrading of the system software can be realized in the restarting process, and after the restarting is completed, whether the upgraded system software operates normally or not and/or the corresponding system problem is repaired is confirmed in a manual or software detection mode.
S15: if not, returning the upgrading file based on the backup original file;
in a specific embodiment of the present invention, returning the backup-based original file to the upgrade file and ending the returning includes: inserting an external memory into the all-in-one machine equipment, replacing the upgrade file by using the backup original file pair based on the external memory, and finishing; and a recovery file is stored in the external storage.
When the upgraded system software is determined to be incapable of operating normally and/or repairing the corresponding system problem, inserting an external memory into the all-in-one machine equipment, replacing the upgraded file by using the backed-up original file pair according to the external memory, and ending; the external storage is internally provided with a recovery file, and the external storage can be a U disk.
Before upgrading a file described in update. ini, copying the corresponding file to a designated directory update directory of an independent storage space for backup, and creating the corresponding directory under the update according to the description of the update _ local _ path, such as: and (2) a vendor/lib, copying the file specified in the update _ loacl _ path to the directory of the vendor/lib, and replacing the vendor/lib/libaudiomanager _ jni.so when a recovery file is detected in the U disk.
S16: and (6) ending.
In the embodiment of the invention, the upgrade files in the corresponding configuration files are adopted to replace original files in the system software, and the original files are backed up, so that the upgrade speed is high, and the sizes of the files can be reduced only by upgrading problematic files; the upgrade package manufacturing block only needs to arrange the upgraded files and does not need to perform corresponding compiling processing; the upgrade is safe, the upgraded file does not influence the system operation, once the upgraded file is detected to have problems or the corresponding problems of the system cannot be repaired, the original file can be replaced and returned for upgrade through backup, and the state of the system software before upgrade is restored.
Examples
Referring to fig. 2, fig. 2 is a schematic structural composition diagram of a system software upgrading device of an all-in-one machine device according to an embodiment of the present invention.
As shown in fig. 2, a system software upgrading apparatus for an all-in-one machine device includes:
the detection downloading module 21: the method comprises the steps that when all-in-one machine equipment detects that a server contains a corresponding configuration file of a system upgrading file, the corresponding configuration file is downloaded on the server based on an HTTP communication protocol, the corresponding configuration file contains an upgrading file, and the upgrading file is a compressed file;
in a specific implementation process of the present invention, when detecting that the server includes a configuration file corresponding to a system upgrade file, the all-in-one device includes: the all-in-one machine equipment acquires current upgrading version information of system software running in the all-in-one machine equipment and described in a server file, and confirms whether the current upgrading version information is higher than the system version information or not according to the comparison of the current upgrading version information and the system version information of the all-in-one machine equipment; and if so, the all-in-one machine equipment detects a corresponding configuration file containing the system upgrading file on the server.
Further, the file format of the corresponding configuration file is update.
Specifically, after the all-in-one machine device is started, the system software running on the all-in-one machine device accesses to the server in a network connection mode, and then whether the upgrade file of the system software is on the server is detected, or the upgrade file of the system software can be automatically pushed by the server after the system software running on the all-in-one machine device accesses to the server in the network connection mode; then the system software on the all-in-one machine equipment confirms the upgrade file of the system software on the server, obtains the current upgrade version information of the system running on the all-in-one machine equipment described in the upgrade file, compares the current upgrade version information with the system version information of the all-in-one machine equipment, and detects the corresponding configuration file containing the system upgrade file on the server for the all-in-one machine equipment when confirming whether the current upgrade version information is higher than the system version information; for example, the file format of the corresponding configuration file in the server is obtained by the all-in-one device is update.ini, Version information describing the current upgrade package is contained in the update.ini, for example, Version is 1.0, and if the Version of the general server is higher than the system Version, it is indicated that the server has the upgrade package which needs to upgrade the specified file.
When the corresponding configuration file of the system software upgrading file on the server is confirmed, the corresponding configuration file is downloaded to the all-in-one machine equipment on the server through an HTTP communication protocol; the corresponding configuration file contains an upgrade file, the upgrade file is a compressed file, and the compressed file can be a Zip or other type compressed file.
The analysis backup module 22: the backup device is used for analyzing the corresponding configuration file, confirming that the analyzed corresponding configuration file can be used for upgrading system software on a system of the all-in-one machine equipment, and backing up an original file which is correspondingly described by the upgrading file in the corresponding configuration file;
in a specific implementation process of the present invention, the backing up the original file correspondingly described by the upgrade file in the corresponding configuration file includes: opening up a safe storage partition on a memory of the all-in-one machine equipment; backing up original files correspondingly described by the upgrading files in the corresponding configuration files to the opened storage partitions for backup; the original files of the backup are stored under the update directory, and a corresponding directory is created under the update directory according to the description of the update _ loacl _ path.
Specifically, the corresponding configuration file is analyzed, and the analyzed corresponding configuration file is obtained through analysis, so that whether the analyzed corresponding configuration file can be used for upgrading the system software of the all-in-one machine equipment or not can be confirmed in the system software of the all-in-one machine equipment, and when the system software is confirmed to be available, the original file described corresponding to the upgrade file in the corresponding configuration file needs to be backed up.
Before backup, a safe storage partition needs to be created in a storage in the all-in-one machine device again, and then original files correspondingly described by the upgrade files in the corresponding configuration files are backed up to the created storage partition for backup; the original file of the backup is stored under the update directory, and a corresponding directory is created under the update directory according to the description of the update _ loacl _ path.
Replacement upgrade module 23: the system software is used for decompressing the upgrade file in the corresponding configuration file and replacing the decompressed upgrade file into the corresponding file in the system software for updating and upgrading;
in a specific implementation process of the present invention, the replacing the decompressed upgrade file into a corresponding file in the system software for update and upgrade processing includes: obtaining a file path field in the corresponding configuration file where the upgrade file is located, and obtaining a corresponding original file path field in a system of the all-in-one machine according to the file path field; and replacing the original file path field with the upgrade file into the system software according to the original file path field, and performing update and upgrade processing.
Further, the replacing the upgrade file into the system software according to the original file path field includes: replacing the upgrade file into the system software by using a CP command according to the original file path field in the all-in-one machine equipment system; the file path field is update _ remote _ path; the file path field is connected with the corresponding configuration file through a & character.
Specifically, the upgrade file in the corresponding configuration file is decompressed, the file path field of the upgrade file in the corresponding configuration file is obtained in the decompressed upgrade file, and then the corresponding original file path field is obtained in the system software of the all-in-one machine device according to the file path field; and replacing the original file path field with an upgrade file into the system software, and performing update and upgrade processing.
Ini, the file format in the corresponding configuration file is update, a file path to be upgraded will be described in the corresponding configuration file, for example, a file field to be upgraded is update _ local _ path (representing a file path keyword to be upgraded), a field update _ remote _ path (representing a new file path keyword), and the file path field is connected with the corresponding configuration file through a & character; the corresponding configuration file can directly pass through tar-czvf update. tar. gzout/target/product/xxx/vendor/lib/libauudiomanager _ jni. so, note that xxx represents some platform quotient, such as: sugarcane, this indicates the name of a certain scheme of MTK.
For example:
if there are multiple files, there are multiple rows of records, and if there are multiple files, the files are replaced by the out/target/product/xxx/vendor/library _ jni.e. so and the file in the system is represented by the out/target/library _ manager _ jni.e. so; replacing the cp command directly using the android system; note that update.tar.gz describes the corresponding download path by describing it at update.ini.
The judgment confirmation module 24: the system is used for restarting the all-in-one machine equipment, and whether the upgraded system software runs normally and/or the corresponding system problem is repaired is determined;
in the specific implementation process of the invention, after the replacement in the steps is completed, the system of the all-in-one machine equipment needs to be restarted, the updating and upgrading of the system software can be realized in the restarting process, and after the restarting is completed, whether the upgraded system software operates normally or not and/or the corresponding system problem is repaired is confirmed in a manual or software detection mode.
The return module 25: and if the file is determined to be not the upgrade file, returning the upgrade file based on the backup original file and ending.
In a specific embodiment of the present invention, returning the backup-based original file to the upgrade file and ending the returning includes: inserting an external memory into the all-in-one machine equipment, replacing the upgrade file by using the backup original file pair based on the external memory, and finishing; and a recovery file is stored in the external storage.
When the upgraded system software is determined to be incapable of operating normally and/or repairing the corresponding system problem, inserting an external memory into the all-in-one machine equipment, replacing the upgraded file by using the backed-up original file pair according to the external memory, and ending; the external storage is internally provided with a recovery file, and the external storage can be a U disk.
Before upgrading a file described in update. ini, copying the corresponding file to a designated directory update directory of an independent storage space for backup, and creating the corresponding directory under the update according to the description of the update _ local _ path, such as: and (2) a vendor/lib, copying the file specified in the update _ loacl _ path to the directory of the vendor/lib, and replacing the vendor/lib/libaudiomanager _ jni.so when a recovery file is detected in the U disk.
In the embodiment of the invention, the upgrade files in the corresponding configuration files are adopted to replace original files in the system software, and the original files are backed up, so that the upgrade speed is high, and the sizes of the files can be reduced only by upgrading problematic files; the upgrade package manufacturing block only needs to arrange the upgraded files and does not need to perform corresponding compiling processing; the upgrade is safe, the upgraded file does not influence the system operation, once the upgraded file is detected to have problems or the corresponding problems of the system cannot be repaired, the original file can be replaced and returned for upgrade through backup, and the state of the system software before upgrade is restored.
The computer-readable storage medium provided by the embodiments of the present invention stores a computer program thereon, and when the computer program is executed by a processor, the computer program implements the system software upgrading method according to any one of the embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the system software upgrading method of any one of the embodiments.
In addition, fig. 3 is a schematic structural composition diagram of the all-in-one machine device in the embodiment of the present invention.
The embodiment of the invention also provides a large-screen all-in-one machine, which is shown in figure 3. The large-screen all-in-one machine comprises a processor 302, a memory 303, an input unit 304, a display unit 305 and the like. Those skilled in the art will appreciate that the device configuration means shown in fig. 3 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory.
As an embodiment, the large screen all-in-one machine comprises: one or more processors 302, a memory 303, one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, and wherein the one or more applications 301 are configured to perform the method of upgrading system software of any of the above embodiments.
In the embodiment of the invention, the upgrade files in the corresponding configuration files are adopted to replace original files in the system software, and the original files are backed up, so that the upgrade speed is high, and the sizes of the files can be reduced only by upgrading problematic files; the upgrade package manufacturing block only needs to arrange the upgraded files and does not need to perform corresponding compiling processing; the upgrade is safe, the upgraded file does not influence the system operation, once the upgraded file is detected to have problems or the corresponding problems of the system cannot be repaired, the original file can be replaced and returned for upgrade through backup, and the state of the system software before upgrade is restored.
In addition, the method, the apparatus, the storage medium, and the all-in-one machine device for upgrading system software according to the embodiment of the present invention are described in detail, and a specific example is used herein to explain the principle and the implementation of the present invention, and the description of the embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A system software upgrading method of all-in-one machine equipment is characterized by comprising the following steps:
when detecting that a server contains a corresponding configuration file of a system upgrading file, the all-in-one machine device downloads the corresponding configuration file on the server based on an HTTP communication protocol, wherein the corresponding configuration file contains an upgrading file, and the upgrading file is a compressed file;
analyzing the corresponding configuration file, and backing up an original file which is described correspondingly by the upgrading file in the corresponding configuration file if the analyzed corresponding configuration file can be used for upgrading system software on a system of the all-in-one machine equipment;
decompressing the upgrade file in the corresponding configuration file, and replacing the decompressed upgrade file into the corresponding file in the system software to update and upgrade;
restarting the system of the all-in-one machine equipment, and confirming whether the upgraded system software operates normally and/or repairing the corresponding system problem;
if not, returning the upgrading file based on the backup original file and ending.
2. The system software upgrading method according to claim 1, wherein when detecting that the server includes a corresponding configuration file of the system upgrade file, the all-in-one machine device includes:
the all-in-one machine equipment acquires current upgrading version information of system software running in the all-in-one machine equipment and described in a server file, and confirms whether the current upgrading version information is higher than the system version information or not according to the comparison of the current upgrading version information and the system version information of the all-in-one machine equipment;
and if so, the all-in-one machine equipment detects a corresponding configuration file containing the system upgrading file on the server.
3. The system software upgrading method according to claim 2, wherein the file format of the corresponding configuration file is update.
4. The method for upgrading system software according to claim 1, wherein backing up an original file correspondingly described by an upgrade file in the corresponding configuration file comprises:
opening up a safe storage partition on a memory of the all-in-one machine equipment;
backing up original files correspondingly described by the upgrading files in the corresponding configuration files to the opened storage partitions for backup;
the original files of the backup are stored under the update directory, and a corresponding directory is created under the update directory according to the description of the update _ loacl _ path.
5. The method for upgrading system software according to claim 1, wherein the replacing the decompressed upgrade file into a corresponding file in the system software for update and upgrade processing includes:
obtaining a file path field in the corresponding configuration file where the upgrade file is located, and obtaining a corresponding original file path field in a system of the all-in-one machine according to the file path field;
and replacing the original file path field with the upgrade file into the system software according to the original file path field, and performing update and upgrade processing.
6. The method for upgrading system software according to claim 5, wherein the replacing the upgrade file into the system software according to the original file path field includes:
replacing the upgrade file into the system software by using a CP command according to the original file path field in the all-in-one machine equipment system;
the file path field is update _ remote _ path; the file path field is connected with the corresponding configuration file through a & character.
7. The system software upgrading method of claim 1, wherein the backing up of the original file based on backup to the upgrade file and ending comprises:
inserting an external memory into the all-in-one machine equipment, replacing the upgrade file by using the backup original file pair based on the external memory, and finishing;
and a recovery file is stored in the external storage.
8. A system software upgrading device of all-in-one machine equipment is characterized by comprising:
a detection downloading module: the method comprises the steps that when all-in-one machine equipment detects that a server contains a corresponding configuration file of a system upgrading file, the corresponding configuration file is downloaded on the server based on an HTTP communication protocol, the corresponding configuration file contains an upgrading file, and the upgrading file is a compressed file;
the analysis backup module: the backup device is used for analyzing the corresponding configuration file, confirming that the analyzed corresponding configuration file can be used for upgrading system software on a system of the all-in-one machine equipment, and backing up an original file which is correspondingly described by the upgrading file in the corresponding configuration file;
replacing the upgrading module: the system software is used for decompressing the upgrade file in the corresponding configuration file and replacing the decompressed upgrade file into the corresponding file in the system software for updating and upgrading;
a judgment and confirmation module: the system is used for restarting the all-in-one machine equipment, and whether the upgraded system software runs normally and/or the corresponding system problem is repaired is determined;
a return module: and if the file is determined to be not the upgrade file, returning the upgrade file based on the backup original file and ending.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for upgrading system software according to any one of claims 1 to 7.
10. An all-in-one machine device, characterized in that it comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: -performing the system software upgrade method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010394015.6A CN111782236A (en) | 2020-05-11 | 2020-05-11 | System software upgrading method and device, storage medium and all-in-one machine equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010394015.6A CN111782236A (en) | 2020-05-11 | 2020-05-11 | System software upgrading method and device, storage medium and all-in-one machine equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111782236A true CN111782236A (en) | 2020-10-16 |
Family
ID=72753579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010394015.6A Pending CN111782236A (en) | 2020-05-11 | 2020-05-11 | System software upgrading method and device, storage medium and all-in-one machine equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111782236A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113438322A (en) * | 2021-08-24 | 2021-09-24 | 广州朗国电子科技股份有限公司 | Quick upgrading system method and device, storage medium and education all-in-one machine |
CN113778739A (en) * | 2021-11-08 | 2021-12-10 | 广州朗国电子科技股份有限公司 | System repair method, system, equipment and storage medium of all-in-one machine |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1858704A (en) * | 2006-02-07 | 2006-11-08 | 华为技术有限公司 | Method of upgrading sequence |
CN101938470A (en) * | 2010-08-12 | 2011-01-05 | 漳州市顺和达软件有限公司 | Upgrading system and method of client software |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
CN108108181A (en) * | 2017-12-14 | 2018-06-01 | 深圳市雷鸟信息科技有限公司 | The function renewal method, apparatus and computer readable storage medium of application program |
CN108874436A (en) * | 2018-06-13 | 2018-11-23 | 珠海市君天电子科技有限公司 | A kind of method for upgrading software, device, terminal device and medium |
CN110012082A (en) * | 2019-03-22 | 2019-07-12 | 上海联影医疗科技有限公司 | Embedded device and its upgrade method, controlling terminal |
CN110908681A (en) * | 2018-09-18 | 2020-03-24 | 北京京东尚科信息技术有限公司 | Method and device for upgrading software |
-
2020
- 2020-05-11 CN CN202010394015.6A patent/CN111782236A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1858704A (en) * | 2006-02-07 | 2006-11-08 | 华为技术有限公司 | Method of upgrading sequence |
CN101938470A (en) * | 2010-08-12 | 2011-01-05 | 漳州市顺和达软件有限公司 | Upgrading system and method of client software |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
CN108108181A (en) * | 2017-12-14 | 2018-06-01 | 深圳市雷鸟信息科技有限公司 | The function renewal method, apparatus and computer readable storage medium of application program |
CN108874436A (en) * | 2018-06-13 | 2018-11-23 | 珠海市君天电子科技有限公司 | A kind of method for upgrading software, device, terminal device and medium |
CN110908681A (en) * | 2018-09-18 | 2020-03-24 | 北京京东尚科信息技术有限公司 | Method and device for upgrading software |
CN110012082A (en) * | 2019-03-22 | 2019-07-12 | 上海联影医疗科技有限公司 | Embedded device and its upgrade method, controlling terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113438322A (en) * | 2021-08-24 | 2021-09-24 | 广州朗国电子科技股份有限公司 | Quick upgrading system method and device, storage medium and education all-in-one machine |
CN113778739A (en) * | 2021-11-08 | 2021-12-10 | 广州朗国电子科技股份有限公司 | System repair method, system, equipment and storage medium of all-in-one machine |
CN113778739B (en) * | 2021-11-08 | 2022-03-04 | 广州朗国电子科技股份有限公司 | System repair method, system, equipment and storage medium of all-in-one machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7237238B2 (en) | Method and apparatus for automated operating systems upgrade | |
US7694165B2 (en) | Automation of bare metal recoveries | |
CN107992308B (en) | Plug-in management method for android terminal application program | |
CN110597544A (en) | Software system upgrading method and device | |
CN111782236A (en) | System software upgrading method and device, storage medium and all-in-one machine equipment | |
CN114115984A (en) | Server firmware upgrading method, storage device and terminal | |
CN115202686A (en) | Virtualization system upgrading method and device, electronic equipment and storage medium | |
CN107220085B (en) | Method for automatically upgrading RAID card firmware | |
CN105335195A (en) | Device driver upgrading method and device and electronic device | |
CN112416394B (en) | Service upgrading method and device, storage medium and electronic equipment | |
EP3260981B1 (en) | Information processing apparatus, information processing system, and information processing method for updating firmware | |
CN112732285A (en) | Upgrading method and device suitable for cloud computing linux operating system and electronic equipment | |
CN116048644B (en) | System migration method, device and readable storage medium | |
CN106933604B (en) | System upgrading method and device | |
CN113656063A (en) | System version replacing method, device, equipment and computer readable medium | |
CN113900693A (en) | Firmware upgrading method, device and system, electronic equipment and storage medium | |
CN114296764A (en) | System upgrading method and device, storage medium and electronic equipment | |
CN112379943A (en) | Plug-in application method and device of Electron application program and storage medium | |
CN112527327A (en) | Method, system, terminal and storage medium for factory restoration of UOS operating system | |
CN109428936B (en) | APP upgrading method, device, system, electronic equipment and storage medium | |
CN112925549A (en) | System application upgrading system based on android frame | |
CN112083939A (en) | Batch upgrading method, device, system and medium | |
CN116383093B (en) | Windows test environment deployment method and device, readable storage medium and electronic equipment | |
CN111949278B (en) | Method, system, terminal and storage medium for automatically installing MCS system | |
CN105282614B (en) | A kind of upgrade method of module TV, module TV and upgrade-system |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000 Applicant after: Guangzhou langguo Electronic Technology Co.,Ltd. Address before: 510000 unit a and B, zone 02, 4th floor, No. 136, Gaopu Road, high tech Development Zone, Tianhe District, Guangzhou City, Guangdong Province Applicant before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201016 |