CN113721959A - Information processing method and device and electronic equipment - Google Patents
Information processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN113721959A CN113721959A CN202111007172.8A CN202111007172A CN113721959A CN 113721959 A CN113721959 A CN 113721959A CN 202111007172 A CN202111007172 A CN 202111007172A CN 113721959 A CN113721959 A CN 113721959A
- Authority
- CN
- China
- Prior art keywords
- operating system
- upgrading
- storage area
- version identifier
- target storage
- 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
- 230000010365 information processing Effects 0.000 title claims abstract description 19
- 238000003672 processing method Methods 0.000 title claims abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 75
- 230000004044 response Effects 0.000 claims abstract description 11
- 230000000694 effects Effects 0.000 abstract description 7
- 230000006870 function Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 3
- 230000009977 dual effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
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/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses an information processing method, an information processing device and electronic equipment, wherein when the electronic equipment is provided with a first operating system and a second operating system, an operating system upgrade package is obtained in response to the operation process of the first operating system; and in the process of upgrading the second operating system based on the operating system upgrading package, the control guide system updates the information of the target storage area with the version identification so as to finish upgrading the second operating system. The updating of the version identifier of the operating system is completed by the guide system in the upgrading process of the operating system of the electronic equipment with the double operating systems, the electronic equipment does not need to be restarted after the upgrading is completed to realize the updating of the version identifier, the restarting operation of the electronic equipment is reduced, and the system stability and the user experience effect are improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to an information processing method and apparatus, and an electronic device.
Background
Along with the development of electronic equipment technology, the functions of the electronic equipment are more complete. Taking system upgrade of electronic devices as an example, the upgrade has been developed from local upgrade to OTA (Over-the-Air Technology), which is an upgrade method for data download Over a wireless network. For example, an a/B system upgrade (also referred to as seamless update) occurs in an electronic device of an android operating system, which means that two systems exist, and a system capable of operating normally is ensured in the upgrade process. However, in the upgrading process, the upgrading can be completed only by means of restarting the electronic device, and the restarting can cause interruption and easily causes system abnormity, thereby reducing the experience effect of a user.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
an information processing method is applied to an electronic device, the electronic device is provided with a first operating system and a second operating system, and the method comprises the following steps:
responding to the running process of the first operating system, and acquiring an operating system upgrade package;
and in the process of upgrading the second operating system based on the operating system upgrading package, controlling a boot system to update information of a target storage area with a version identifier so as to complete upgrading of the second operating system, wherein the first operating system and the second operating system are mutually independent operating systems, and the boot system is used for guiding the operating systems to execute target operation.
Optionally, the obtaining the operating system upgrade includes:
responding to the starting of the electronic equipment, and receiving the upgrade of the operating system from a server;
or, generating an acquisition request of the operating system upgrade package;
and obtaining an operating system upgrade package based on the obtaining request.
Optionally, the method further comprises:
and if the second operating system fails to be upgraded, controlling the boot system to load the version information before the second operating system is upgraded.
Optionally, the controlling and guiding system updates information of the target storage area with the version identifier, including:
the control guidance system respectively acquires the updated version identification corresponding to the second operating system and the version identification of the target storage area;
and if the version identification corresponding to the second operating system is different from the version identification of the target storage area, controlling the guide system to update the information of the target storage area.
Optionally, the controlling the guidance system to update the information of the target storage area includes:
if the level value of the updated version identifier corresponding to the second operating system is higher than the level of the version identifier of the target storage area, updating the version identifier of the target storage area to the updated version identifier corresponding to the second operating system;
if the level value of the version identifier corresponding to the updated second operating system is lower than the level value of the version identifier of the target storage area, the version identifier of the target storage area is not updated;
and generating prompt information, wherein the prompt information is used for prompting the upgrade failure of the second operating system.
Optionally, the method further comprises:
and if the level value of the version identifier corresponding to the updated second operating system is the same as the level value of the version identifier of the target storage area, acquiring information to be upgraded in the operating system upgrade package, and performing incremental upgrade on the second operating system through the information to be upgraded.
Optionally, the method further comprises:
and responding to the starting of the electronic equipment to load the operating system, and controlling the boot system to switch the first operating system to the updated second operating system.
Optionally, the method further comprises:
and responding to the updated second operating system in the running process, and updating the first operating system based on the operating system upgrade package.
An information processing apparatus applied to an electronic device provided with a first operating system and a second operating system, the apparatus comprising:
the obtaining unit is used for responding to the operation process of the first operating system and obtaining the operating system upgrade package;
and the control unit is used for controlling a boot program to update information of a target storage area with a version identifier in the process of upgrading the second operating system based on the operating system upgrade package so as to finish upgrading the second operating system, wherein the first operating system and the second operating system are mutually independent operating systems, and the boot system is used for booting the operating systems to execute target operation.
An electronic device, comprising:
a memory for storing a program;
a processor configured to execute the program, the program specifically configured to:
responding to the operation process of the first operating system, and acquiring an operating system upgrade package; and in the process of upgrading the second operating system based on the operating system upgrading package, controlling a boot system to update information of a target storage area with a version identifier so as to complete upgrading of the second operating system, wherein the first operating system and the second operating system are mutually independent operating systems, and the boot system is used for guiding the operating systems to execute target operation.
According to the technical scheme, the application discloses an information processing method, an information processing device and electronic equipment, wherein when the electronic equipment is provided with a first operating system and a second operating system, an operating system upgrade package is obtained in response to the operation process of the first operating system; and in the process of upgrading the second operating system based on the operating system upgrading package, the control guide system updates the information of the target storage area with the version identification so as to finish upgrading the second operating system. The updating of the version identifier of the operating system is completed by the guide system in the upgrading process of the operating system of the electronic equipment with the double operating systems, the electronic equipment does not need to be restarted after the upgrading is completed to realize the updating of the version identifier, the restarting operation of the electronic equipment is reduced, and the system stability and the user experience effect are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating an information updating method applied to an operating system upgrade according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an information processing apparatus according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The electronic device in the embodiments of the present application may be any reasonable device having at least two operating systems and a boot system. Such as cell-phone, notebook computer, panel computer, all-in-one, desktop, can also be wearing equipment such as intelligent wrist-watch, intelligent glasses. Correspondingly, the electronic device in the embodiment of the application can also be an intelligent household appliance, such as an intelligent television. The operating system is a set of system software which controls other programs to run, manages hardware and software resources of the electronic equipment and provides an operating interface for a user. Operating systems for electronic device configurations include, but are not limited to, the Android operating system (Android), the Microsoft Windows operating system (Microsoft Windows), the apple operating system (Mac OS), the Linux system, the Chrome OS system, the UNIX operating system, and other operating systems. The Boot System is configured to Boot an operating System to perform a target operation, such as booting the operating System to start, update, enter a low power consumption mode, and the like, and specifically, the Boot System includes, but is not limited to, a Basic Input Output System (BIOS), a Unified Extensible Firmware Interface (UEFI), a Master Boot Record (MBR), and the like.
It should be noted that, in the embodiment of the present application, at least two operating systems are configured for the electronic device, for example, the operating systems include a first operating system and a second operating system, and the two operating systems are independent operating systems, both of which may be applied by the electronic device, and usually, corresponding information of the two operating systems is the same, but only one operating system is used as a running operating system, and the other operating system is used as a standby operating system. The boot system boots the operating system through a boot loader (boot loader). For convenience of explanation, the electronic device in the embodiment of the present application is preferably a mobile phone.
Referring to fig. 1, which shows a flowchart of an information processing method provided in an embodiment of the present application, the method is applied to an electronic device, the electronic device is configured with a first operating system and a second operating system, and correspondingly, the information processing method may include the following steps:
s101, responding to the operation process of the first operating system, and acquiring an operating system upgrade package.
Because the electronic system has two operating systems, one of the operating systems is a main operating system, the other operating system is a secondary operating system, the main operating system is an operating system running in the current electronic device, and when the main operating system goes wrong or the information is upgraded, the secondary operating system can be started to ensure the normal running of the electronic device. The two operating systems are independent of each other, i.e. a problem with one operating system does not affect the start-up and use of the other operating system.
When the first operating system runs, it is known that the current operating system of the electronic device is the first operating system, at this time, an operating system upgrade package can be obtained through related information pushed by the server or based on a requirement for upgrading the operating system, and the operating system upgrade package can be used for upgrading the operating system of the electronic device. The operating system upgrade package may be a full upgrade package or an incremental upgrade package.
S102, in the process of upgrading the second operating system based on the operating system upgrading package, controlling the guide system to update the information of the target storage area with the version identification so as to finish upgrading the second operating system.
The electronic equipment is provided with two operating systems which are respectively a first operating system, and when the first operating system is a currently running operating system, the upgrading of the operating system is to upgrade a second operating system so as to ensure the normal running of the electronic equipment.
The electronic equipment is used as a mobile phone, and the operating system of the mobile phone is an Android operating system to explain the dual operating systems of the mobile phone. The mobile phone is provided with a virtual A/B system, namely two systems correspondingly have two storage spaces A/B on a mobile phone disk, so that if a system capable of normally running is ensured in the upgrading process of an operating system, the system can be ensured to normally run after being electrified again even if the mobile phone is powered off in the updating process of the operating system of the mobile phone.
Generally, after the second operating system is upgraded, the electronic device needs to be restarted to ensure that the update of the version identifier corresponding to the operating system is completed. However, some uncertain interference factors are easily generated in the restarting process of the electronic device, for example, the restarting causes a break and a system abnormality, so that normal application of the electronic device after restarting cannot be guaranteed. Therefore, in the embodiment of the application, the electronic device does not need to be restarted again after the second operating system is upgraded, but the boot system is controlled to update the information of the target storage area with the version identifier in the process of upgrading the second operating system through the operating system upgrade package, so that the upgrade of the second operating system is completed. Namely, the process of restarting and updating the version identification is moved to the process of upgrading, and the boot system can be controlled to check and update the version identification in the process of upgrading without restarting.
The boot program can boot the operating system to perform a target operation, such as booting the operating system, updating the operating system, or processing some information. In the embodiment of the present application, the booting of the boot system is a boot loader (loader) phase of booting the electronic device. The target storage area is an area corresponding to the version identifier of the operating system, and may be a one-time storage area of a mobile phone, for example, the storage area can be written only once, so as to ensure the security of written information.
The embodiment of the application discloses an information processing method, when an electronic device is provided with a first operating system and a second operating system, an operating system upgrade package is obtained in response to the operation process of the first operating system; and in the process of upgrading the second operating system based on the operating system upgrading package, the control guide system updates the information of the target storage area with the version identification so as to finish upgrading the second operating system. The updating of the version identifier of the operating system is completed by the guide system in the upgrading process of the operating system of the electronic equipment with the double operating systems, the electronic equipment does not need to be restarted after the upgrading is completed to realize the updating of the version identifier, the restarting operation of the electronic equipment is reduced, and the user experience effect is improved.
In an implementation manner of the embodiment of the application, the operating system upgrade package may be actively pushed to the electronic device by the server, or the operating system upgrade package may be generated by the electronic device and obtained based on the obtaining request. Correspondingly, the obtaining of the operating system upgrade package includes:
and receiving an operating system upgrade package from the server in response to the startup of the electronic equipment.
Or,
generating an acquisition request of an operating system upgrade package; and obtaining the operating system upgrade package based on the obtaining request.
In a possible implementation manner, the operating system upgrade package of the electronic device may be set to automatically acquire corresponding configuration information, that is, when the electronic device is networked, the server may acquire a version identifier of an operating system of the current electronic device, and if the operating system upgrade package corresponding to the current version identifier exists, the server may push the operating system upgrade package to the electronic device, so that a user of the electronic device may obtain prompt information corresponding to the received operating system upgrade package, and download the operating system upgrade package according to the prompt information, thereby completing an upgrade process.
Another possible implementation manner is that the object used by the electronic device may generate an obtaining request of the operating system upgrade package through the electronic device, and send the obtaining request to the server, and if an operating system upgrade package corresponding to the obtaining request exists, the obtaining request may be fed back to the electronic device through the server. For example, an instruction for detecting whether the current operating system is the latest operating system may be generated, and if feedback information corresponding to the instruction is received to indicate that the version of the current operating system is not the latest version, an obtaining request of the operating system upgrade package may be generated so as to obtain the operating system upgrade package and upgrade the operating system.
For example, in an actual application scenario, the upgrade of the operating system may be an OTA technology based upgrade. The Over-the-Air Technology (OTA Over-the-Air Technology) Technology is a Technology for downloading data through a wireless network, and is applied to network upgrade of electronic devices with an android operating system, such as smart televisions, mobile phones and tablet computers. A user of the electronic equipment downloads the upgrade package aiming at the version of the operating system of the current electronic equipment and provided by the server, and updates the upgrade package into the current operating system, thereby realizing OTA upgrade.
Further, when downloading the OTA upgrade data package, a full download or incremental download manner may be adopted, for example, if a part of functions is added to the target function of the latest version, the newly added function upgrade data may be downloaded in an incremental download manner; if the target function of the latest version is different from the new target function in structure, the update of the target function and the update of the operating system including the target function can be completed in a full-download manner.
In an implementation manner of the embodiment of the present application, if the second operating system fails to be upgraded, the boot system is controlled to load the version information before the second operating system is upgraded.
Because the electronic device in the embodiment of the application has dual operating systems, that is, the upgrade process of one operating system does not affect the currently running operating system. Thus, the upgrade process allows for upgradings and rollback of operating system versions. The upgrade is that if the second operating system is upgraded based on the operating system upgrade package successfully, the version identifier of the second operating system has higher-level information than the previous version identifier. For example, the version identification of the second operating system before the upgrade is 9.0.0, and correspondingly, the version identification after the upgrade may be 10.0.0. The version rollback refers to the rollback corresponding to the version to be upgraded, that is, the version identifier before the upgrade is maintained, and if the second operating system fails to upgrade to the version 10.0.0, the control boot system does not update the version identifier of the second operating system, which is still recorded as 9.0.0. Therefore, the second operating system can still return to the previous version after the upgrade fails, and the subsequent operation of the second operating system of the electronic equipment is not influenced.
Referring to fig. 2, a schematic flowchart of an information updating method applied to an operating system upgrade provided by an embodiment of the present application is shown, where the process includes:
s201, in response to the operation process of the first operating system, acquiring an operating system upgrade package.
S202, in the process of upgrading the second operating system based on the operating system upgrading package, the control guiding system respectively obtains the version identification corresponding to the second operating system after being updated and the version identification of the target storage area.
S203, if the version identification corresponding to the second operating system is different from the version identification of the target storage area, controlling the guide system to update the information of the target storage area.
In this embodiment, in the process of running the first operating system of the electronic device, the operating system upgrade package is obtained, and in order to ensure the normal running of the electronic device, the running first operating system is not upgraded, but the second operating system which is not applied is upgraded. How successful upgrade of the second operating system can be determined, and the operating system can be switched to the updated second operating system after the electronic device is restarted. It is necessary to determine that the electronic device has been upgraded successfully by starting up the electronic device next time after the electronic device is upgraded, that is, the boot system of the electronic device can obtain the version identification information of the electronic device that has been upgraded. Therefore, the version identification information corresponding to the operating system is stored in the target storage area, so that the bootstrap program can obtain the version identification to boot and start the correspondingly updated operating system.
After the operating system upgrade package is obtained, the boot system can be controlled to analyze the operating system upgrade package to obtain the version identifier of the operating system corresponding to the operating system upgrade package, and then the boot system can be controlled to read the information about the current operating system stored in the target storage area, mainly to obtain the version identifier of the current operating system. After the second operating system is upgraded and updated by the operating system upgrade package, the version identifier corresponding to the updated second operating system is the version identifier corresponding to the operating system upgrade package, and it should be noted that the updating of the operating system in the embodiment of the present application refers to the upgrading of the operating system.
And if the version identification of the updated operating system is different from the version identification of the target storage area, controlling the guide system to update the information of the target storage area, namely writing the new version identification into the target storage area.
Specifically, if the level of the version identifier corresponding to the updated second operating system is higher than the level value of the version identifier of the target storage area, the version identifier of the target storage area is updated to the version identifier corresponding to the updated second operating system.
For example, the current version identification of the second operating system stored in the target storage area is 9.0.0, and the updated version identification of the second operating system is 10.0.0, the version identification of the target storage area is updated to 10.0.0.
If the level value of the version identifier corresponding to the updated second operating system is lower than the level value of the version identifier of the target storage area, the version identifier of the target storage area is not updated; and prompt information may be generated. The prompt message is used for prompting the upgrade failure of the second operating system.
When the second operating system is upgraded, if the obtained version identifier is lower than the version identifier of the target storage area, it is proved that the upgrade failure of the second operating system is subjected to version rollback, so that the version identifier of the target storage area is not updated, and when the subsequent boot system reads the information, the upgrade failure can be determined, and the higher-level update of the version identifier is not realized.
Further, if the level value of the version identifier corresponding to the updated second operating system is the same as the level value of the version identifier of the target storage area, the information to be upgraded in the operating system upgrade package is acquired, so that the second operating system is upgraded in an incremental manner through the information to be upgraded.
The method corresponds to an application scene with partial functions added on the basis of the original operating system, and the newly added functional data is downloaded in an incremental downloading mode and updated to the version of the current operating system in a patching mode. Therefore, the version identification corresponding to the operating system can be unchanged before and after upgrading. That is, if the level values of the version identifiers before and after updating are analyzed to be the same, it can be known that incremental updating is performed, and the updating can be performed only through the information to be updated in the operating system updating package.
Because the electronic equipment comprises two independent operating systems, namely a first operating system and a second operating system, when the first operating system runs, the second operating system is upgraded. After the second operating system is completed, the electronic device still uses the first operating system as the main operating system to complete the corresponding operation and control of the electronic device under the condition that no operating system switching instruction exists, and if an operating system switching instruction exists, the first operating system is switched to the updated second operating system in response to the instruction so as to ensure the optimal running state of the electronic device.
Generally, an electronic device loads an operating system through a boot system when the electronic device is booted, and thus, if an update of an operating system is completed before the electronic device is booted, the updated operating system is automatically loaded. The method comprises the steps of responding to the starting of the electronic equipment to load an operating system, and controlling a guide system to switch a first operating system to an updated second operating system.
When the updated second operating system serves as the current main operating system of the electronic device, the first operating system which is not updated is also updated correspondingly, so that the two operating systems of the electronic device are both the latest version, and better control experience is provided for the electronic device. Specifically, in response to the updated second operating system running process, the first operating system is updated based on the operating system upgrade package.
The information processing method according to the embodiment of the present application is described below by taking an example that an operating system is an Android system and OTA upgrade is performed on virtual a/B of a mobile phone, where the current operating system of the mobile phone is virtual a.
At the stage of booting a system boot node, i.e., a boot loader, when the mobile phone boots, the mobile phone detects a security version identifier (security version) value of a currently loaded operating system and a security version identifier (security version) value stored in a one-time storage area of the mobile phone, and transmits the security version identifier (security version) value to the android system after booting through a kernel command (kernel command line).
After the mobile phone is started, if it is recognized that OTA upgrading is needed during starting, a thread is started through a guide system to compare a value corresponding to a mirror image file corresponding to current upgrading information and a value corresponding to a security version identifier of a one-time storage area during upgrading of virtual B, and if the security version identifier is recognized to be changed, the security version identifier value stored in the one-time storage area of the mobile phone is updated.
It should be noted that what is to be done is updating of the operating system, so the value of the secure version identifier should be updated, that is, the more the level value of the version identifier corresponding to the update is, the higher the level value of the version identifier is, if the value of the version identifier is degraded, it may prompt that the OTA update fails, and the OTA is returned to the previous version according to the original virtual a/B policy.
Through the upgrading mode, the updating of the safe version identification can be completed without restarting the mobile phone, but in the upgrading process, the bootstrap program starts an independent thread to complete the updating of the safe version identification of the disposable storage area, the problem of system abnormity caused by a restart gap of the mobile phone is avoided, and the stability of the system after user experience reading and OTA upgrading is improved.
Referring to fig. 3, it shows an information processing apparatus provided in the second embodiment of the present application, where the apparatus may be configured on an electronic device, and the electronic device is further configured with a first operating system and a second operating system. The technical scheme in the embodiment is mainly used for reducing the restarting operation of the electronic equipment when the operating system is upgraded, and improving the system stability and the user experience effect.
Specifically, the apparatus in this embodiment may include the following units:
an obtaining unit 301, configured to, in response to a running process of a first operating system, obtain an operating system upgrade package;
a control unit 302, configured to control a boot system to update information of a target storage area with a version identifier in a process of upgrading the second operating system based on the operating system upgrade package, so as to complete upgrading of the second operating system, where the first operating system and the second operating system are independent operating systems, and the boot system is configured to boot the operating systems to perform target operations.
It can be seen from the foregoing technical solutions that, in the information processing apparatus provided in the second embodiment of the present application, which is applied to an electronic device having a first operating system and a second operating system, an obtaining unit obtains an operating system upgrade package in response to a running process of the first operating system; and the control unit controls the guide system to update the information of the target storage area with the version identification in the process of upgrading the second operating system based on the operating system upgrading package so as to finish upgrading the second operating system. The updating of the version identifier of the operating system is completed by the guide system in the upgrading process of the operating system of the electronic equipment with the double operating systems, the electronic equipment does not need to be restarted after the upgrading is completed to realize the updating of the version identifier, the restarting operation of the electronic equipment is reduced, and the user experience effect is improved.
In one implementation, the obtaining unit 301 includes:
the first obtaining subunit is used for responding to the starting of the electronic equipment and receiving an operating system upgrade package from a server;
or,
the second acquisition subunit is used for generating an acquisition request of the operating system upgrade package; and obtaining an operating system upgrade package based on the obtaining request.
In one implementation, the control unit 302 is further configured to:
and if the second operating system fails to be upgraded, controlling the boot system to load the version information before the second operating system is upgraded.
Optionally, the control unit 302 includes:
the first control subunit is used for controlling the boot system to respectively acquire the updated version identifier corresponding to the second operating system and the version identifier of the target storage area;
and the second control subunit is configured to control the boot system to update the information of the target storage area if the version identifier corresponding to the second operating system is different from the version identifier of the target storage area.
Further, the second control subunit is specifically configured to:
if the level value of the version identifier corresponding to the updated second operating system is higher than the level value of the version identifier of the target storage area, updating the version identifier of the target storage area to the updated version identifier corresponding to the second operating system;
if the level value of the version identifier corresponding to the updated second operating system is lower than the level value of the version identifier of the target storage area, the version identifier of the target storage area is not updated;
and generating prompt information, wherein the prompt information is used for prompting the upgrade failure of the second operating system.
In one implementation, the apparatus further comprises:
and the information acquisition unit is used for acquiring the information to be upgraded in the operating system upgrade package if the level value of the version identifier corresponding to the updated second operating system is the same as the level value of the version identifier of the target storage area, so as to perform incremental upgrade on the second operating system through the information to be upgraded.
Optionally, the control unit is further configured to:
and responding to the starting of the electronic equipment to load the operating system, and controlling the boot system to switch the first operating system to the updated second operating system.
Further, the apparatus further comprises:
and the upgrading unit is used for responding to the updated second operating system in the running process and upgrading the first operating system based on the operating system upgrading package.
It should be noted that, for the specific implementation of each unit in the present embodiment, reference may be made to the corresponding content in the foregoing, and details are not described here.
Referring to fig. 4, a schematic structural diagram of an electronic device provided in the third embodiment of the present application is shown, where the electronic device has a first operating system and a second operating system, and the technical solution of this embodiment is mainly used to reduce a restart operation of the electronic device when the operating system is upgraded, and improve system stability and user experience.
Specifically, the electronic device in this embodiment may include the following structure:
a memory 401 for storing a program;
a processor 402 configured to execute the program, the program specifically configured to:
responding to the operation process of the first operating system, and acquiring an operating system upgrade package; and in the process of upgrading the second operating system based on the operating system upgrading package, controlling a boot system to update information of a target storage area with a version identifier so as to complete upgrading of the second operating system, wherein the first operating system and the second operating system are mutually independent operating systems, and the boot system is used for guiding the operating systems to execute target operation.
It can be seen from the foregoing technical solutions that, in the electronic device provided in the third embodiment of the present application, in response to the operation of the first operating system, an operating system upgrade package is obtained; and in the process of upgrading the second operating system based on the operating system upgrading package, the control guide system updates the information of the target storage area with the version identification so as to finish upgrading the second operating system. The updating of the version identifier of the operating system is completed by the guide system in the upgrading process of the operating system of the electronic equipment with the double operating systems, the electronic equipment does not need to be restarted after the upgrading is completed to realize the updating of the version identifier, the restarting operation of the electronic equipment is reduced, and the system stability and the user experience effect are improved.
It should be noted that, in the present embodiment, reference may be made to the corresponding contents in the foregoing, and details are not described here.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. 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 application. Thus, the present application 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 (10)
1. An information processing method is applied to an electronic device, the electronic device is provided with a first operating system and a second operating system, and the method comprises the following steps:
responding to the operation process of the first operating system, and acquiring an operating system upgrade package;
and in the process of upgrading the second operating system based on the operating system upgrading package, controlling a boot system to update information of a target storage area with a version identifier so as to complete upgrading of the second operating system, wherein the first operating system and the second operating system are mutually independent operating systems, and the boot system is used for guiding the operating systems to execute target operation.
2. The method of claim 1, the obtaining an operating system upgrade package, comprising:
responding to the starting of the electronic equipment, and receiving an operating system upgrade package from a server;
or, generating an acquisition request of the operating system upgrade package;
and obtaining an operating system upgrade package based on the obtaining request.
3. The method of claim 1, further comprising:
and if the second operating system fails to be upgraded, controlling the boot system to load the version information before the second operating system is upgraded.
4. The method of claim 1, wherein the controlling and guiding system updates the information of the target storage area with the version identifier, and comprises:
the control guidance system respectively acquires the updated version identification corresponding to the second operating system and the version identification of the target storage area;
and if the version identification corresponding to the second operating system is different from the version identification of the target storage area, controlling the guide system to update the information of the target storage area.
5. The method of claim 4, the controlling the boot system to update the information of the target storage area comprising:
if the level value of the version identifier corresponding to the updated second operating system is higher than the level value of the version identifier of the target storage area, updating the version identifier of the target storage area to the updated version identifier corresponding to the second operating system;
if the level value of the version identifier corresponding to the updated second operating system is lower than the level value of the version identifier of the target storage area, the version identifier of the target storage area is not updated;
and generating prompt information, wherein the prompt information is used for prompting the upgrade failure of the second operating system.
6. The method of claim 5, further comprising:
and if the level value of the version identifier corresponding to the updated second operating system is the same as the level value of the version identifier of the target storage area, acquiring information to be upgraded in the operating system upgrade package, and performing incremental upgrade on the second operating system through the information to be upgraded.
7. The method of claim 1, further comprising:
and responding to the starting of the electronic equipment to load the operating system, and controlling the boot system to switch the first operating system to the updated second operating system.
8. The method of claim 7, further comprising:
and in response to the running process of the updated second operating system, upgrading the first operating system based on the operating system upgrading package.
9. An information processing apparatus applied to an electronic device provided with a first operating system and a second operating system, the apparatus comprising:
the obtaining unit is used for responding to the operation process of the first operating system and obtaining the operating system upgrade package;
and the control unit is used for controlling a boot system to update information of a target storage area with a version identifier in the process of upgrading the second operating system based on the operating system upgrade package so as to finish upgrading the second operating system, wherein the first operating system and the second operating system are mutually independent operating systems, and the boot system is used for booting the operating systems to execute target operation.
10. An electronic device, comprising:
a memory for storing a program;
a processor configured to execute the program, the program specifically configured to:
responding to the operation process of the first operating system, and acquiring an operating system upgrade package; and in the process of upgrading the second operating system based on the operating system upgrading package, controlling a boot system to update information of a target storage area with a version identifier so as to complete upgrading of the second operating system, wherein the first operating system and the second operating system are mutually independent operating systems, and the boot system is used for guiding the operating systems to execute target operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111007172.8A CN113721959A (en) | 2021-08-30 | 2021-08-30 | Information processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111007172.8A CN113721959A (en) | 2021-08-30 | 2021-08-30 | Information processing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113721959A true CN113721959A (en) | 2021-11-30 |
Family
ID=78679322
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111007172.8A Pending CN113721959A (en) | 2021-08-30 | 2021-08-30 | Information processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113721959A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114398089A (en) * | 2021-12-30 | 2022-04-26 | 阿波罗智联(北京)科技有限公司 | System switching method and device, electronic equipment and medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247268A (en) * | 2008-02-26 | 2008-08-20 | 中兴通讯股份有限公司 | Synchronization method and apparatus of terminal system version |
CN105677409A (en) * | 2015-12-31 | 2016-06-15 | 中科创达软件股份有限公司 | System upgrading method and device |
CN107291505A (en) * | 2017-06-28 | 2017-10-24 | 郑州云海信息技术有限公司 | A kind of method and device of controller system memory upgrading |
CN107479927A (en) * | 2017-08-14 | 2017-12-15 | 青岛海信宽带多媒体技术有限公司 | The firmware upgrade method and device of pattern of fusion all-in-one |
CN107967141A (en) * | 2017-11-27 | 2018-04-27 | 北京小米移动软件有限公司 | Operating system update method, apparatus and terminal |
CN111506326A (en) * | 2020-04-07 | 2020-08-07 | Oppo(重庆)智能科技有限公司 | Method, device and equipment for upgrading terminal equipment and storage medium |
CN112416406A (en) * | 2020-11-30 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Terminal equipment upgrading method and device, terminal equipment and medium |
CN112817625A (en) * | 2021-01-29 | 2021-05-18 | 青岛海信移动通信技术股份有限公司 | System upgrading method and device, electronic equipment and storage medium |
CN112988246A (en) * | 2021-03-03 | 2021-06-18 | Oppo广东移动通信有限公司 | System switching method and device, electronic equipment and storage medium |
CN113219872A (en) * | 2021-05-10 | 2021-08-06 | 安徽大学 | Remote upgrading method of monitoring system of refrigerator car based on real-time perception |
-
2021
- 2021-08-30 CN CN202111007172.8A patent/CN113721959A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247268A (en) * | 2008-02-26 | 2008-08-20 | 中兴通讯股份有限公司 | Synchronization method and apparatus of terminal system version |
CN105677409A (en) * | 2015-12-31 | 2016-06-15 | 中科创达软件股份有限公司 | System upgrading method and device |
CN107291505A (en) * | 2017-06-28 | 2017-10-24 | 郑州云海信息技术有限公司 | A kind of method and device of controller system memory upgrading |
CN107479927A (en) * | 2017-08-14 | 2017-12-15 | 青岛海信宽带多媒体技术有限公司 | The firmware upgrade method and device of pattern of fusion all-in-one |
CN107967141A (en) * | 2017-11-27 | 2018-04-27 | 北京小米移动软件有限公司 | Operating system update method, apparatus and terminal |
CN111506326A (en) * | 2020-04-07 | 2020-08-07 | Oppo(重庆)智能科技有限公司 | Method, device and equipment for upgrading terminal equipment and storage medium |
CN112416406A (en) * | 2020-11-30 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Terminal equipment upgrading method and device, terminal equipment and medium |
CN112817625A (en) * | 2021-01-29 | 2021-05-18 | 青岛海信移动通信技术股份有限公司 | System upgrading method and device, electronic equipment and storage medium |
CN112988246A (en) * | 2021-03-03 | 2021-06-18 | Oppo广东移动通信有限公司 | System switching method and device, electronic equipment and storage medium |
CN113219872A (en) * | 2021-05-10 | 2021-08-06 | 安徽大学 | Remote upgrading method of monitoring system of refrigerator car based on real-time perception |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114398089A (en) * | 2021-12-30 | 2022-04-26 | 阿波罗智联(北京)科技有限公司 | System switching method and device, electronic equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11010172B2 (en) | Software upgrade and disaster recovery on a computing device | |
EP2831722B1 (en) | Method and system for verifying proper operation of a computing device after a system change | |
EP3399408B1 (en) | Information processing apparatus and computer readable storage medium | |
US8171276B2 (en) | Minimal startup mode for performing multiple-reboot configuration | |
US20100132042A1 (en) | Method for upgrading antivirus software and terminal and system thereof | |
CN103106092A (en) | System software updating method and device in terminal appliance | |
CN109582372B (en) | System starting method and device | |
WO2017219861A1 (en) | Method and device for controlling system start-up mode | |
CN108874459B (en) | Quick start method and device based on virtualization technology | |
CN116820841A (en) | Starting method, device, equipment, medium and product of terminal equipment | |
CN113721959A (en) | Information processing method and device and electronic equipment | |
CN114115958A (en) | Program starting method and terminal equipment | |
CN114237722A (en) | System starting method, device, equipment and engineering vehicle | |
US7991390B2 (en) | Program updating method of wireless communication terminal and wireless communication terminal using the same | |
CN114168169A (en) | Microcode update method, device, device and storage medium | |
CN109271191B (en) | Information processing method and electronic equipment | |
US9081727B2 (en) | Method, apparatus and computer program for loading files during a boot-up process | |
CN113791810B (en) | ZYNQ platform-based remote upgrading method, device and system | |
KR100876748B1 (en) | How to Update Boot Code | |
CN115756540A (en) | Firmware upgrading method, electronic equipment and storage medium | |
CN109445831B (en) | Welding machine system upgrading method and welding machine | |
CN117873676A (en) | Method and device for starting control system, control system and computer program product | |
CN116166291A (en) | System upgrading method, display device and server | |
CN119788515A (en) | Device configuration method, device, electronic device and computer readable storage medium | |
CN113608773A (en) | Method and device for upgrading and updating component and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |