System switching method, device, electronic device and storage medium

By detecting the upgrade status of the second system when the electronic device is running the first system and shutting down in response to the standby command, and turning on when receiving the power-on command, the problem of reduced user experience caused by frequent system updates is solved, and the system version's imperceptible upgrade and function synchronization are achieved.

CN112988246BActive Publication Date: 2025-09-09GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110237126.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-03
Publication Date
2025-09-09
Estimated Expiration
2041-03-03

AI Technical Summary

Technical Problem

Frequent system update operations lead to a degraded user experience, especially when the user does not actively shut down and restart the computer, resulting in system upgrade failure or untimely synchronization of functions.

Method used

By detecting the upgrade status of the second system during the operation of the first system and controlling the electronic device to shut down in response to the standby instruction, and controlling the electronic device to start up when receiving the power-on instruction, the system switching is realized, thereby completing the system upgrade without the user's perception.

Benefits of technology

It improves the user experience and allows system defects or new functions to be synchronized to electronic devices without the user's perception, ensuring timely updates of the system version.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112988246B_ABST
    Figure CN112988246B_ABST
Patent Text Reader

Abstract

The present application discloses a system switching method, device, electronic device and storage medium, which are applied to an electronic device installed with an operating system, wherein the operating system includes a first system and a second system of the same system type. When the electronic device runs the first system and receives a standby instruction, the upgrade status of the second system is detected. When it is detected that the second system has completed the upgrade, the electronic device is controlled to shut down. The system version of the first system is lower than the system version of the upgraded second system. When a power-on instruction is received, the electronic device is controlled to start up and run the second system. The present application completes the system switching by controlling the electronic device to shut down in response to the standby instruction when the upgrade of the second system is completed during the operation of the first system, and controlling the electronic device to start up and run the second system in response to the power-on instruction, so that some system defects or new functions are synchronized to the electronic device without the user noticing, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a system switching method, device, electronic device, and storage medium. Background Art

[0002] With the advancement of science and technology, electronic devices are becoming increasingly common and feature more and more functions, making them a necessity in our daily lives. Currently, electronic devices typically prompt users to perform system updates while they are in use, and then complete the system update based on the user's system update operation. However, frequent system updates result in numerous tedious operations, significantly reducing the user experience. Summary of the Invention

[0003] In view of the above problems, the present application proposes a system switching method, device, electronic device and storage medium to solve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a system switching method, which is applied to an electronic device, wherein the electronic device is installed with an operating system, the operating system including a first system and a second system, the first system and the second system having the same system type, the method comprising: when the electronic device runs the first system and receives a standby instruction, detecting the upgrade status of the second system; when it is detected that the second system has completed the upgrade, controlling the electronic device to shut down, wherein the system version of the first system is lower than the system version of the upgraded second system; and when a power-on instruction is received, controlling the electronic device to power on and run the second system.

[0005] In a second aspect, an embodiment of the present application provides a system switching device, which is applied to an electronic device, wherein the electronic device is installed with an operating system, the operating system including a first system and a second system, the first system and the second system having the same system type, the device including: an upgrade status detection module, for detecting the upgrade status of the second system when the electronic device runs the first system and receives a standby instruction; a shutdown control module, for controlling the electronic device to shut down when it detects that the second system has completed the upgrade, wherein the system version of the first system is lower than the system version of the upgraded second system; a system switching module, for controlling the electronic device to start up and run the second system when a power-on instruction is received.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the above method.

[0008] The system switching method, device, electronic device and storage medium provided in the embodiments of the present application detect the upgrade status of the second system when the electronic device runs the first system and receives a standby instruction, and controls the electronic device to shut down when it detects that the upgrade of the second system has been completed, wherein the system version of the first system is lower than the system version of the upgraded second system, and controls the electronic device to boot up and run the second system when a power-on instruction is received. Thus, when the upgrade of the second system is completed during the operation of the first system, the electronic device is controlled to shut down in response to the standby instruction, and is controlled to boot up and run the second system in response to the power-on instruction, so as to complete the system switching, so that some system defects or new functions are synchronized to the electronic device without the user noticing, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram showing a smart TV that can be used for the system switching method provided in an embodiment of the present application is shown;

[0011] Figure 2 A schematic diagram of an application environment that can be used for the system switching method provided in an embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram of another application environment that can be used for the system switching method provided in an embodiment of the present application is shown;

[0013] Figure 4 A schematic diagram of a system switching method according to an embodiment of the present application is shown;

[0014] Figure 5 A schematic diagram showing a flow chart of a system switching method provided in yet another embodiment of the present application is shown;

[0015] Figure 6 A schematic diagram of a flow chart of a system switching method provided in yet another embodiment of the present application is shown;

[0016] Figure 7 Shows the application Figure 6Schematic diagram of the process of step S320 of the system switching method shown;

[0017] Figure 8 A schematic diagram showing a flow chart of a system switching method provided by another embodiment of the present application is shown;

[0018] Figure 9 A schematic flow chart of a system switching method provided in yet another embodiment of the present application is shown;

[0019] Figure 10 A schematic diagram showing a flow chart of a system switching method provided in yet another embodiment of the present application is shown;

[0020] Figure 11 A module block diagram of a system switching device provided in an embodiment of the present application is shown;

[0021] Figure 12 A block diagram of an electronic device for executing a system switching method according to an embodiment of the present application is shown;

[0022] Figure 13 A storage unit for storing or carrying program codes for implementing the system switching method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0024] Currently, electronic devices generally prompt users to perform corresponding system update operations when the users are using the devices, and complete the system update according to the users' system update operations. However, frequent system updates will cause a large number of tedious operations, which will greatly reduce the user experience.

[0025] After research, the inventors discovered that electronic devices equipped with operating systems can use a seamless upgrade method to perform system upgrades to address the above-mentioned issues. Specifically, the operating system of the electronic device can be configured to include two independent systems of the same system type, a first system and a second system. When a user normally uses one system, such as the first system, and a system upgrade package is available for system upgrade, the system upgrade is performed on the other system, such as the second system. However, after the system upgrade is completed, the electronic device needs to be shut down and restarted to enter the upgraded second system. This system upgrade method requires a shutdown and restart process, that is, restarting the electronic device to enter the upgraded second system. In the actual use of smart TVs, users often use the power button to directly control the smart TV to enter standby mode. The standby mode does not go through the shutdown and startup process. Therefore, the second system has already been upgraded. Since the user does not actively choose to shut down and restart the system, the system remains on the first system that has not been upgraded, and cannot enter the upgraded second system for a long time, resulting in some urgent problems or new functions not being synchronized to the electronic device in a timely manner.

[0026] In response to the above problems, the inventors, after long-term research, have discovered and proposed the system switching method, device, electronic device, and storage medium provided in the embodiments of this application. By responding to a standby command to control the electronic device to shut down when the second system is upgraded during the operation of the first system, and responding to a power-on command to control the electronic device to start up and run the second system, the system switching is completed. This allows some system defects or new functions to be synchronized to the electronic device without the user noticing, thereby improving the user experience. The specific system switching method is described in detail in the subsequent embodiments.

[0027] In this embodiment, the electronic device is installed with an operating system, which includes a first system and a second system. The first system and the second system are of the same system type, and the first system and the second system can be two system partitions of the electronic device. In some scenarios, the electronic device 100 can be Figure 1 As shown in the smart TV, the user can send corresponding commands to the smart TV 100 through the TV remote control, such as standby command, wake-up command, power-on command, power-off command, etc.

[0028] It can be understood that the first system and the second system rely on a processor to perform operations.

[0029] In some embodiments, see Figure 2 , Figure 2 A schematic diagram of an application environment for the system switching method provided in an embodiment of the present application is shown. Figure 2As shown, the first system and the second system are run by the same processor 110. For example, when the operating system running on the electronic device is the first system, the processor 110 runs the first system; when the operating system running on the electronic device is the second system, the processor 100 runs the second system.

[0030] In other embodiments, see Figure 3 , Figure 3 FIG. 1 shows another application environment diagram of the system switching method provided in the embodiment of the present application. Figure 3 As shown, the first operating system and the second operating system run in different processors respectively. For example, the processor includes a first processor 111 and a second processor 112. The first processor 111 is connected to the second processor 112. When the operating system running on the electronic device is the first system, the first processor 111 runs the first system. When the operating system running on the electronic device is the second system, the second processor 112 runs the second system.

[0031] See also Figure 4 , Figure 4 The flowchart of the system switching method provided by an embodiment of the present application is shown. The system switching method is used to control the electronic device to shut down in response to a standby instruction when the upgrade of the second system is completed during the operation of the first system, and to control the electronic device to start up and run the second system in response to a power-on instruction to complete the system switching, so that some system defects or new functions are synchronized to the electronic device without the user noticing, thereby improving the user experience. In a specific embodiment, the system switching method is applied to Figure 11 The system switching device 200 and the electronic device 100 equipped with the system switching device 200 ( Figure 12 ). The following will take electronic devices as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic devices used in this embodiment can include smart phones, tablet computers, wearable electronic devices, etc., which are not limited here. Figure 4 The process shown is described in detail. In this embodiment, the operating system of the electronic device includes a first system and a second system, and the first system and the second system are of the same system type. The system switching method may specifically include the following steps:

[0032] Step S110: When the electronic device runs the first system and receives a standby instruction, the upgrade status of the second system is detected.

[0033] In this embodiment, the operating system installed on the electronic device may include a first system and a second system, and the system types of the first system and the second system are the same, for example, the first system and the second system are both Android systems. In some embodiments, since the operating system installed on the electronic device includes the first system and the second system, the operating system currently running on the electronic device may be the first system or the second system, which is not limited here. When the operating system currently running on the electronic device is the first system, the second system may be in a dormant state or in a closed state; when the operating system currently running on the electronic device is the second system, the first system may be in a dormant state or in a closed state, which is not limited here.

[0034] In this embodiment, it is possible to detect whether the operating system currently running on the electronic device is the first system or the second system, wherein, when it is detected that the operating system currently running on the electronic device is the first system, the standby instruction can be monitored under the first system, and when it is detected that the operating system currently running on the electronic device is the second system, the standby instruction can be monitored under the second system. The standby instruction refers to an instruction indicating standby received by the electronic device when it is in an awake state. For example, when the electronic device is a smart TV, the standby instruction refers to an instruction received by the smart TV after the user short presses the power button of the TV remote control when the smart TV is in an awake state. For another example, when the electronic device is a smart phone, the standby instruction refers to an instruction triggered by the user short pressing the power button of the smart phone when the smart phone is in an awake state.

[0035] As a method, the electronic device can pre-set the state value corresponding to the operating system it is running. For example, the electronic device can pre-set the state value when running the first operating system and pre-set the state value when running the second operating system. Then, the state value of the electronic device can be detected. When the electronic device is detected to be in the first state value, it can be determined that the operating system of the electronic device is the first system. When the electronic device is detected to be in the second state value, it can be determined that the operating system of the electronic device is the second system.

[0036] As another method, the system desktop of the electronic device can be detected. When it is detected that the system desktop of the electronic device is dominated by the first system (corresponding to the first system), it can be determined that the operating system running on the electronic device is the first system. When it is detected that the system desktop of the electronic device is dominated by the second system (corresponding to the second system), it can be determined that the operating system running on the electronic device is the second system.

[0037] As another method, the status of the first system and the second system installed in the electronic device can be detected. When it is detected that the first system is in an awake state and the second system is in a dormant state or a closed state, it can be determined that the electronic device is running the first system. When it is detected that the first system is in a dormant state or a closed state and the second system is in an awake state, it can be determined that the electronic device is running the second system.

[0038] Of course, this embodiment may also include other ways of detecting whether the operating system running on the electronic device is the first system or the second system, which will not be described in detail here.

[0039] In this embodiment, when it is determined that the electronic device is running the first system and receives a standby instruction, the upgrade status of the second system can be detected. As an approach, the upgrade status of the second system can include completed upgrade and incomplete upgrade, where incomplete upgrade can include: no upgrade and upgrade failed.

[0040] In some embodiments, when it is determined that the electronic device is running the first system and receives a standby instruction, the information written in the designated flag bit of the electronic device can be detected. When it is detected that the information written in the designated flag bit of the electronic device is preset information, it can be determined that the second system has completed the upgrade. When it is detected that no information is written in the designated flag bit of the electronic device or the written information is non-preset information, it can be determined that the second system has not completed the upgrade.

[0041] In some embodiments, when it is determined that the electronic device is running a first system and receives a standby instruction, the system version of the first system can be detected to obtain the first system version, and the system version of the second system can be detected to obtain the second system version. When the first system version is not lower than the second system version, it can be determined that the second system has not completed the upgrade. When the first system version is lower than the second system version, it can be determined that the second system has completed the upgrade.

[0042] Step S120: When it is detected that the second system has completed upgrading, the electronic device is controlled to shut down, wherein the system version of the first system is lower than the system version of the upgraded second system.

[0043] In this embodiment, when it is detected that the second system has been upgraded, it can be determined that the system version of the first system is lower than the system version of the upgraded second system, and the electronic device can be controlled to shut down. In other words, when it is detected that the second system has been upgraded, the user only needs to trigger the standby command, and the electronic device will execute the operation corresponding to the shutdown command to shut down, thereby controlling the electronic device to shut down based on the user's daily usage habits (triggering standby).

[0044] In some embodiments, when it is detected that the second system has been upgraded, it can be determined that the system version of the first system is lower than the system version of the upgraded second system, and the electronic device can be controlled to shut down in response to the standby instruction. As an alternative, when it is detected that the second system has been upgraded, it can be determined that the system version of the first system is lower than the system version of the upgraded second system, and the standby instruction can be converted into a shutdown instruction, and the electronic device can be controlled to shut down in response to the shutdown instruction.

[0045] Step S130: When a power-on instruction is received, the electronic device is controlled to power on and run the second system.

[0046] In this embodiment, when the electronic device receives a power-on command while in the off state, the electronic device can be controlled to power on and run the second system in response to the power-on command. The power-on command refers to a command instructing the electronic device to power on when it is in the off state. For example, when the electronic device is a smart TV, the power-on command refers to a command received by the smart TV after a user briefly presses the power button on a TV remote control while the smart TV is in the off state. For another example, when the electronic device is a smartphone, the power-on command refers to a command triggered by a user long-pressing the power button on the smartphone while the smartphone is in the off state.

[0047] In some embodiments, since the system version of the first system is lower than the system version of the upgraded second system, when the electronic device receives a power-on command while in the shutdown state, the electronic device can be controlled to power on and run the second system, that is, the electronic device can be controlled to switch from running the first system to running the second system, so that the electronic device can run the system with a higher system version in a timely manner, so that some major defects or new functions can be synchronized to the electronic device without the user noticing, thereby improving the user experience.

[0048] In some implementations, when the electronic device is powered on and runs the second system, the second system is in an awake state, and the first system may be in a dormant state or in an off state, which is not specifically limited herein.

[0049] In some embodiments, when the electronic device is running the second system and receives a standby command, the upgrade status of the first system can be detected. When it is detected that the first system has completed the upgrade, the electronic device is controlled to shut down, wherein the system version of the second system is lower than the system version of the upgraded first system. When a power-on command is received, the electronic device can be controlled to power on and run the first system.

[0050] An embodiment of the present application provides a system switching method. When an electronic device runs a first system and receives a standby command, the upgrade status of the second system is detected. When it is detected that the second system has completed the upgrade, the electronic device is controlled to shut down, wherein the system version of the first system is lower than the system version of the upgraded second system. When a power-on command is received, the electronic device is controlled to power on and run the second system. Thus, when the upgrade of the second system is completed during the operation of the first system, the electronic device is controlled to shut down in response to the standby command, and is controlled to power on and run the second system in response to the power-on command, so as to complete the system switching, so that some system defects or new functions are synchronized to the electronic device without the user noticing, thereby improving the user experience.

[0051] See also Figure 5 , Figure 5 The flowchart of the system switching method provided by another embodiment of the present application is shown. The method is applied to the above-mentioned electronic device, which is installed with an operating system, which includes a first system and a second system, and the system types of the first system and the second system are the same. Figure 5 The process shown in FIG. 1 is described in detail. Specifically, the system switching method may include the following steps:

[0052] Step S210: When the electronic device runs the first system and receives a standby instruction, the upgrade status of the second system is detected.

[0053] The detailed description of step S210 can be found in step S110 and will not be repeated here.

[0054] Step S220: When it is detected that the second system has completed upgrading, the standby instruction is switched to a shutdown instruction, wherein the system version of the first system is lower than the system version of the upgraded second system.

[0055] In this embodiment, when it is detected that the second system has completed the upgrade, it can be determined that the system version of the first system is lower than the system version of the upgraded second system, and the standby command can be switched to a shutdown command. The shutdown command refers to the electronic device receiving a shutdown instruction when it is in an awake state. For example, when the electronic device is a smart TV, the shutdown command refers to the smart TV receiving a shutdown menu after the user presses and holds the power button on the TV remote control when the smart TV is in an awake state and selects the shutdown option. For another example, when the electronic device is a smart phone, the shutdown command refers to the command triggered by the user pressing and holding the power button on the smart phone when the smart phone is in an ambient state.

[0056] In some embodiments, the electronic device may include a power management module. When it is detected that the second system has completed the upgrade, it can be determined that the system version of the first system is lower than the system version of the upgraded second system. The power management module of the electronic device can then internally switch the standby instruction to a shutdown instruction to achieve seamless switching of instructions.

[0057] Step S230: Responding to the shutdown instruction, controlling the electronic device to shut down.

[0058] In this embodiment, after the electronic device switches the standby instruction to the shutdown instruction, it can respond to the shutdown instruction and control the electronic device to shut down.

[0059] Step S240: When a power-on instruction is received, the electronic device is controlled to power on and run the second system.

[0060] The detailed description of step S240 can be found in step S130 and will not be repeated here.

[0061] Another embodiment of the present application provides a system switching method, which detects the upgrade status of the second system when the electronic device is running the first system and receives a standby command. When it is detected that the second system has completed the upgrade, the standby command is switched to a shutdown command. The system version of the first system is lower than the system version of the upgraded second system. In response to the shutdown command, the electronic device is controlled to shut down. When a power-on command is received, the electronic device is controlled to power on and run the second system. Compared with Figure 4 The system switching method shown in this embodiment also switches the standby instruction to a shutdown instruction when the second system has completed the upgrade, and controls the electronic device to shut down in response to the shutdown instruction, thereby achieving seamless switching of the system and improving the user experience.

[0062] See also Figure 6 , Figure 6 The flowchart of the system switching method provided by another embodiment of the present application is shown. The method is applied to the above-mentioned electronic device, which is installed with an operating system, which includes a first system and a second system, and the system types of the first system and the second system are the same. Figure 6 The process shown in FIG. 1 is described in detail. Specifically, the system switching method may include the following steps:

[0063] Step S310: Obtain a system upgrade package.

[0064] In some embodiments, the electronic device can be connected to the server and obtain a system upgrade package from the server. The electronic device can be connected to the server through a data network or a wireless network. When the electronic device is connected to the server through a data network, the electronic device can be connected to the server through 2G / 3G / 4G / 5G, etc. When the electronic device is connected to the server through a wireless network, the electronic device can be connected to the server through WiFi, etc., which is not limited here. As one way, when there is a new system upgrade package on the server, the system upgrade package can be directly sent to the electronic device, and accordingly, the electronic device obtains the system upgrade package. As another way, the electronic device can send a request message to the server periodically or in real time. The request message is used to request the server to send it when there is a new system upgrade package. Therefore, when there is a new system upgrade package on the server and the request message is received, the system upgrade package can be sent to the electronic device, and accordingly, the electronic device obtains the system upgrade package.

[0065] In some embodiments, the electronic device may include a system upgrade module, and the system upgrade package may be obtained through the system upgrade module. For example, the system upgrade module may include obtaining the system upgrade package from a server. Since the electronic device is currently running a first system, the system upgrade package may be obtained by the first system.

[0066] Step S320: Upgrading the second system based on the system upgrade package.

[0067] In this embodiment, after obtaining the system upgrade package, the second system can be upgraded based on the system upgrade package. Since the electronic device is currently running the first system, the system upgrade package can be obtained by the first system, and the second system can be upgraded based on the system upgrade package. In some embodiments, if the electronic device is currently running the second system, the system upgrade package can be obtained by the second system, and the first system can be upgraded based on the system upgrade package.

[0068] See also Figure 7 , Figure 7 Shows the application Figure 6 The flow chart of step S320 of the system switching method shown in FIG. Figure 7 The process shown is described in detail, and the method may specifically include the following steps:

[0069] Step S321: Obtain the relationship between the system version corresponding to the system upgrade package and the system version of the first system.

[0070] In some embodiments, after obtaining a system upgrade package, the system version corresponding to the system upgrade package can be obtained and the system version of the first system can be obtained, and the system version corresponding to the system upgrade package can be compared with the system version of the first system to obtain the relative order of the system version corresponding to the system upgrade package and the system version of the first system according to the comparison result. As one approach, after obtaining a system upgrade package, the version number of the system version corresponding to the system upgrade package can be obtained and the version number of the system version of the first system can be obtained, and the version number of the system version corresponding to the system upgrade package can be compared with the version number of the system version of the first system to obtain the relative order of the system version corresponding to the system upgrade package and the system version of the first system according to the comparison result.

[0071] Among them, the relationship between the system version corresponding to the system upgrade package and the system version of the first system may include: the system version corresponding to the system upgrade package is lower than the system version of the first system, the system version corresponding to the system upgrade package is equal to the system version of the first system, and the system version corresponding to the system upgrade package is higher than the system version of the first system.

[0072] Step S322: When the system version corresponding to the system upgrade package is higher than the system version of the first system, the second system is upgraded based on the system upgrade package.

[0073] In some implementations, when the system version of the system upgrade package and the system version of the first system indicate that the system version corresponding to the system upgrade package is higher than the system version of the first system, the second system can be upgraded based on the system upgrade package.

[0074] In some embodiments, when the high-low relationship between the system version of the system upgrade package and the system version of the first system indicates that the system version corresponding to the system upgrade package is equal to the system version of the first system, it is possible to abandon upgrading the second system based on the system upgrade package and delete the system upgrade package locally on the electronic device to free up storage space on the electronic device.

[0075] In some embodiments, when the high-low relationship between the system version of the system upgrade package and the system version of the first system indicates that the system version corresponding to the system upgrade package is lower than the system version of the first system, it is possible to abandon upgrading the second system based on the system upgrade package and delete the system upgrade package locally on the electronic device to free up storage space of the electronic device.

[0076] Step S330: When the electronic device runs the first system and receives a standby instruction, the upgrade status of the second system is detected.

[0077] Step S340: When it is detected that the second system has completed upgrading, the electronic device is controlled to shut down, wherein the system version of the first system is lower than the system version of the upgraded second system.

[0078] Step S350: When a power-on instruction is received, the electronic device is controlled to power on and run the second system.

[0079] For the detailed description of steps S330 to S350 , please refer to steps S110 to S130 , which will not be repeated here.

[0080] Another embodiment of the present application provides a system switching method, which obtains a system upgrade package, upgrades the second system based on the system upgrade package, and detects the upgrade status of the second system when the electronic device is running the first system and receives a standby command. When it is detected that the second system has completed the upgrade, the standby command is switched to a shutdown command, wherein the system version of the first system is lower than the system version of the upgraded second system. In response to the shutdown command, the electronic device is controlled to shut down. When a power-on command is received, the electronic device is controlled to power on and run the second system. Compared with Figure 4 The system switching method shown in this embodiment also obtains a system upgrade package to upgrade the second system during the operation of the first system, so as to realize wireless upgrade and switching of the system and improve the user experience.

[0081] See also Figure 8 , Figure 8 The flowchart of the system switching method provided by another embodiment of the present application is shown. The method is applied to the above-mentioned electronic device, which is installed with an operating system, which includes a first system and a second system, and the system types of the first system and the second system are the same. Figure 8 The process shown in FIG. 1 is described in detail. Specifically, the system switching method may include the following steps:

[0082] Step S410: When the second system has completed the upgrade, preset information is written into a designated flag of the electronic device, wherein the preset information is used to indicate that the second system has completed the upgrade.

[0083] In some embodiments, when the electronic device is running the first system, it can obtain a system upgrade package and upgrade the second system based on the system upgrade package. When the second system has completed the upgrade based on the system upgrade package, preset information indicating that the second system has completed the upgrade can be written into the designated flag update of the electronic device.

[0084] Specifically, the electronic device can pre-create a designated flag in the storage area and pre-set preset information for indicating that the second system has completed the upgrade, and the designated flag is used to write the preset information. That is, when the second system has completed the upgrade, the preset information for indicating that the second system has completed the upgrade can be written into the designated flag pre-created by the electronic device in the storage area. When the second system has not completed the upgrade, the information for indicating that the second system has not completed the upgrade can be written into the designated flag pre-created by the electronic device in the storage area, or no information is written into the designated flag pre-created by the electronic device in the storage area (leaving the designated flag blank) to identify the upgrade status of the second system. For example, the preset information can be "1".

[0085] Step S420: When the electronic device runs the first system and receives the standby instruction, the written information of the designated flag bit of the electronic device is detected.

[0086] In this embodiment, when it is determined that the electronic device is running the first system and has received a standby instruction, the information written to the designated flag bit of the electronic device can be detected. In some embodiments, when it is determined that the electronic device is running the first system and has received a standby instruction, the information written to the designated flag bit of the electronic device can be obtained, and the obtained information written to the designated flag bit can be identified to detect the information written to the designated flag bit of the electronic device.

[0087] Step S430: When it is detected that the information written into the designated flag of the electronic device is the preset information, it is determined that the second system has completed the upgrade.

[0088] In some implementations, when it is detected that the information written to the designated flag bit of the electronic device is preset information, it can be determined that the second system has completed the upgrade.

[0089] In some implementations, when it is detected that the information written to the designated flag of the electronic device is non-preset information, it can be determined that the second system has not completed the upgrade.

[0090] In some implementations, when it is detected that the designated flag of the electronic device is blank, it can be determined that the second system has not completed the upgrade.

[0091] Step S440: When it is detected that the second system has completed upgrading, the electronic device is controlled to shut down, wherein the system version of the first system is lower than the system version of the upgraded second system.

[0092] Step S450: When a power-on instruction is received, the electronic device is controlled to power on and run the second system.

[0093] For the detailed description of steps S440 to S450 , please refer to steps S120 to S130 , which will not be repeated here.

[0094] Another embodiment of the present application provides a system switching method, which writes preset information to a designated flag of the electronic device when the second system has completed the upgrade, wherein the preset information is used to indicate that the second system has completed the upgrade. When the electronic device runs the first system and receives a standby instruction, the written information of the designated flag of the electronic device is detected. When it is detected that the written information of the designated flag of the electronic device is preset information, it is determined that the second system has completed the upgrade. When it is detected that the second system has completed the upgrade, the standby instruction is switched to a shutdown instruction, wherein the system version of the first system is lower than the system version of the upgraded second system. In response to the shutdown instruction, the electronic device is controlled to shut down. When a power-on instruction is received, the electronic device is controlled to power on and run the second system. Compared to Figure 4 In the system switching method shown in this embodiment, when the second system has completed the upgrade, preset information is written into a designated flag of the electronic device to identify the success of the second system upgrade, thereby improving the success rate of system upgrade identification.

[0095] See also Figure 9 , Figure 9 The flowchart of the system switching method provided by another embodiment of the present application is shown. The method is applied to the above-mentioned electronic device, which is installed with an operating system, which includes a first system and a second system, and the system types of the first system and the second system are the same. Figure 9 The process shown in FIG. 1 is described in detail. Specifically, the system switching method may include the following steps:

[0096] Step S510: When the electronic device runs the first system and receives a shutdown instruction, the electronic device is controlled to shut down.

[0097] In this embodiment, when it is determined that the electronic device is running the first system and receives a shutdown instruction, the electronic device may be controlled to shut down in response to the shutdown instruction.

[0098] Step S520: When the power-on instruction is received, the upgrade status of the second system is detected.

[0099] In this embodiment, when the electronic device receives a power-on command while in a powered-off state, the upgrade status of the second system can be detected. As an approach, the upgrade status of the second system can include completed upgrade and incomplete upgrade, where incomplete upgrade can include: no upgrade and upgrade failed.

[0100] In some embodiments, when an electronic device receives a power-on command while in a shutdown state, information written to a designated flag of the electronic device can be detected. When it is detected that the information written to the designated flag of the electronic device is preset information, it can be determined that the second system has completed the upgrade. When it is detected that no information is written to the designated flag of the electronic device or the written information is non-preset information, it can be determined that the second system has not completed the upgrade.

[0101] In some embodiments, when the electronic device is in a shutdown state and receives a power-on command, the system version of the first system can be detected to obtain the first system version, and the system version of the second system can be detected to obtain the second system version. When the first system version is not lower than the second system version, it can be determined that the second system has not completed the upgrade. When the first system version is lower than the second system version, it can be determined that the second system has completed the upgrade.

[0102] Step S530: When it is detected that the second system has completed upgrading, the electronic device is controlled to start up and run the second system.

[0103] In this embodiment, when it is detected that the second system has been upgraded, the electronic device can be controlled to power on and run the second system in response to the power-on command. In some embodiments, because the system version of the first system is lower than the system version of the upgraded second system, when the electronic device receives the power-on command while in the off state, the electronic device can be controlled to power on and run the second system. That is, the electronic device can be controlled to switch from running the first system to running the second system, thereby enabling the electronic device to promptly run the system with a higher system version, so that some major defects or new functions can be synchronized to the electronic device without the user noticing, thereby improving the user experience.

[0104] In this embodiment, when it is detected that the second system has not been upgraded, the electronic device can be controlled to power on and continue to run the first system in response to the power-on command. In some embodiments, because the system version of the first system is higher than the system version of the second system before the upgrade, when the electronic device receives the power-on command while in the off state, the electronic device can be controlled to power on and run the first system, that is, the electronic device can be controlled to run the first system with the higher system version, thereby improving the user experience.

[0105] Another embodiment of the present application provides a system switching method, which controls the electronic device to shut down when it is running the first system and receives a shutdown command. When it receives a power-on command, it detects the upgrade status of the second system. When it detects that the second system has completed the upgrade, it controls the electronic device to start up and run the second system. Figure 4The system switching method shown in this embodiment also completes the upgrade of the second system during the operation of the first system, responds to the shutdown instruction to control the electronic device to shut down, and responds to the power-on instruction to control the electronic device to start up and run the second system to complete the system switching, so that some system defects or new functions are synchronized to the electronic device without the user noticing, thereby improving the user experience.

[0106] See also Figure 10 , Figure 10 The flowchart of the system switching method provided by another embodiment of the present application is shown. The method is applied to the above-mentioned electronic device, which is installed with an operating system, which includes a first system and a second system, and the system types of the first system and the second system are the same. Figure 10 The process shown in FIG. 1 is described in detail. Specifically, the system switching method may include the following steps:

[0107] Step S610: When the electronic device runs the first system and receives a standby instruction, the upgrade status of the second system is detected.

[0108] The detailed description of step S610 can be found in step S110 and will not be repeated here.

[0109] Step S620: When it is detected that the second system has completed upgrading, the number of users located within a preset range of the electronic device is obtained.

[0110] In this embodiment, when it is detected that the second system has completed the upgrade, it can be determined that the system version of the first system is lower than the system version of the upgraded second system, and the number of users within the preset range of the electronic device can be obtained.

[0111] In some embodiments, the electronic device may include a device body and a camera, the camera being mounted on the device body. The preset range may be the field of view of the camera. Therefore, when it is detected that the second system has completed the upgrade, the number of users within the field of view of the camera of the electronic device may be obtained. As one approach, the camera may include, but is not limited to, a front-facing camera and a rotating camera.

[0112] Step S630: When the number of users is less than a preset number, the electronic device is controlled to shut down.

[0113] In some embodiments, the electronic device may be pre-set and stored with a preset number, which is used as a basis for determining the number of users within a preset range of the electronic device. Therefore, in this embodiment, after obtaining the number of users, the number of users may be compared with the preset number to determine whether the number of users is less than the preset number and obtain a determination result.

[0114] Among them, when the judgment result indicates that the number of users is less than a preset number, it can be considered that the number of users viewing the content displayed by the electronic device is small. Therefore, even if it takes a long time to control the electronic device to shut down and then restart, the range of users affected is small, that is, it will not cause a large number of users to wait for a long time for the electronic device to start up, and the electronic device can be controlled to shut down to perform the system switch. For example, taking the electronic device as an example, when the judgment result indicates that the number of users is less than a preset number, it can be considered that the number of users viewing the television content on the smart TV is small. Therefore, even if it takes a long time to control the smart TV to shut down and then restart, it will only cause a small number of users to wait for a long time for the smart TV to start up, and the smart TV can be controlled to shut down to perform the system switch.

[0115] Step S640: When the number of users is not less than a preset number, continuously obtaining a change in the number of users within a preset time period.

[0116] As a method, when the judgment result indicates that the number of users is not less than a preset number, it can be considered that the number of users viewing the content displayed by the electronic device is large. Then, if it takes a long time to control the electronic device to shut down and then restart, the range of users affected is wide, which will cause a large number of users to wait for a long time for the electronic device to start up. In order to avoid the problem of a large number of users waiting for a long time for the electronic device to start up, the electronic device can be directly controlled to be in standby mode, so that the electronic device can quickly wake up the electronic device when it receives a wake-up command next time, thereby reducing the waiting time of a large number of users. Among them, the wake-up command refers to the electronic device receiving an instruction to indicate display when it is in standby mode. For example, when the electronic device is a smart TV, the wake-up command refers to the instruction received by the smart TV after the user uses the TV remote control to short press the power button when the smart TV is in standby mode. For another example, when the electronic device is a smart phone, the wake-up command refers to the instruction triggered by the user short pressing the power button when the smart phone is in standby mode.

[0117] As another way, when the judgment result indicates that the number of users is not less than a preset number, it can be considered that the number of users watching the content displayed by the electronic device is large. Then, if it takes a long time to control the electronic device to shut down and then restart, the range of users affected is wide, which will cause a large number of users to wait for a long time for the electronic device to start up. In order to avoid the problem of a large number of users waiting for a long time for the electronic device to start up, the change in the number of users can be continuously obtained within a preset time period, where the preset time period can be automatically set by the electronic device or set by user means. The change in the number of users includes: the number of users remains unchanged, the number of users decreases, and the number of users increases.

[0118] Step S650: When it is obtained within the preset time period that the number of users changes to be less than the preset number, the electronic device is controlled to shut down.

[0119] In some embodiments, when the number of users obtained within a preset time period changes to less than a preset number, it can be considered that the number of users watching the displayed content of the electronic device has been reduced to a small number. Then, even if it takes a long time to control the electronic device to shut down and then restart, the range of users affected is small, that is, it will not cause the problem of a large number of users waiting for a long time for the electronic device to start up, and the electronic device can be controlled to shut down to switch the system.

[0120] Step S660: When a power-on instruction is received, the electronic device is controlled to power on and run the second system.

[0121] The detailed description of step S660 can be found in step S130 and will not be repeated here.

[0122] Step S670: When it is determined that the number of users is always not less than the preset number within the preset time period, the electronic device is controlled to be in standby mode.

[0123] As a method, when the number of users obtained within a preset time period is always not less than a preset number, it can be considered that the number of users viewing the content displayed on the electronic device is always large. If the time required to control the electronic device to shut down and then restart is long, the range of users affected is wide, which will cause a large number of users to wait for a long time for the electronic device to start up. To avoid this problem of a large number of users waiting for the electronic device to start up, the electronic device can be directly controlled to be in standby mode so that the electronic device can quickly wake up the electronic device the next time it receives a wake-up command, thereby reducing the waiting time for a large number of users. For example, taking the electronic device as a smart TV as an example, when the number of users obtained within a preset time period is always not less than a preset number, it can be considered that the number of users viewing the television content on the smart TV is always large. If the time required to control the smart TV to shut down and then restart is long, the range of users affected is wide, which will cause a large number of users to wait for a long time for the smart TV to start up. To avoid this problem of a large number of users waiting for the smart TV to start up, the smart TV can be directly controlled to be in standby mode so that the smart TV can quickly wake up the smart TV the next time it receives a wake-up command, thereby reducing the waiting time for a large number of users.

[0124] Step S680: When the wake-up instruction is received, control the electronic device to wake up and run the first system.

[0125] In some implementations, when the electronic device receives a wake-up instruction in the standby state, the electronic device may be controlled to wake up and run the first system in response to the wake-up instruction.

[0126] Another embodiment of the present application provides a system switching method, which detects the upgrade status of the second system when the electronic device is running the first system and receives a standby command. When it is detected that the second system has completed the upgrade, the number of users within a preset range of the electronic device is obtained. When the number of users is less than the preset number, the electronic device is controlled to shut down. When the number of users is not less than the preset number, the change in the number of users is continuously obtained within a preset time period. When the number of users obtained changes to less than the preset number within the preset time period, the electronic device is controlled to shut down. When a power-on command is received, the electronic device is controlled to power on and run the second system. When the number of users obtained within the preset time period is always not less than the preset number, the electronic device is controlled to standby. When a wake-up command is received, the electronic device is controlled to wake up and run the first system. Compared to Figure 4 In the system switching method shown in this embodiment, when the number of users within a preset range of the electronic device is less than a preset number, the electronic device is shut down in response to a standby instruction, thereby improving the user experience brought by system switching. In addition, when the number of users within the preset range of the electronic device is not less than a preset number, the electronic device is put into standby in response to a standby instruction, thereby preventing the prolonged startup time from affecting the user experience of multiple users.

[0127] See also Figure 11 , Figure 11 The module block diagram of the system switching device provided by the embodiment of the present application is shown. The system switching device 200 is applied to the above-mentioned electronic device, which is installed with an operating system, which includes a first system and a second system, and the system types of the first system and the second system are the same. Figure 11 The system switching device 200 includes an upgrade status detection module 210, a shutdown control module 220, and a system switching module 230, wherein:

[0128] The upgrade status detection module 210 is configured to detect the upgrade status of the second system when the electronic device is running the first system and receives a standby instruction.

[0129] Furthermore, the upgrade status detection module 210 includes: a write information detection submodule and an upgrade determination submodule, wherein:

[0130] The writing information detection submodule is used to detect the writing information of the designated flag bit of the electronic device when the electronic device runs the first system and receives the standby instruction.

[0131] The upgrade determination submodule is configured to determine that the second system has completed the upgrade when it is detected that the information written to the designated flag bit of the electronic device is the preset information.

[0132] The shutdown control module 220 is configured to control the electronic device to shut down when it is detected that the second system has completed upgrading, wherein the system version of the first system is lower than the system version of the upgraded second system.

[0133] Furthermore, the shutdown control module 220 includes: an instruction switching submodule and a first shutdown control submodule, wherein:

[0134] The instruction switching submodule is used to switch the standby instruction to a shutdown instruction when it is detected that the second system has completed the upgrade.

[0135] The first shutdown control submodule is configured to respond to the shutdown instruction and control the electronic device to shut down.

[0136] Furthermore, the shutdown control module 220 includes: a user number acquisition submodule and a second shutdown control submodule, wherein:

[0137] The user number acquisition submodule is configured to acquire the number of users within a preset range of the electronic device when it is detected that the second system has completed upgrading.

[0138] The second shutdown control submodule is used to control the electronic device to shut down when the number of users is less than a preset number.

[0139] Furthermore, the shutdown control module 220 includes: a change status acquisition submodule, a third shutdown control submodule, and a standby control submodule, wherein:

[0140] The change status acquisition submodule is used to continuously acquire the change status of the number of users within a preset time period when the number of users is not less than a preset number.

[0141] The third shutdown control submodule is configured to control the electronic device to shut down when the number of users obtained within the preset time period changes to be less than the preset number.

[0142] The standby control submodule is configured to control the electronic device to enter standby mode when the number of users obtained within the preset time period is always not less than the preset number.

[0143] The system switching module 230 is configured to control the electronic device to start up and run the second system when receiving a power-on instruction.

[0144] Furthermore, the system switching device 200 further includes: a system upgrade package acquisition module and a system upgrade module, wherein:

[0145] The system upgrade package acquisition module is used to obtain the system upgrade package.

[0146] A system upgrade module is used to upgrade the second system based on the system upgrade package.

[0147] Furthermore, the system upgrade module includes: a high-low relationship acquisition submodule and a system upgrade submodule, wherein:

[0148] The high-low relationship acquisition submodule is used to obtain the high-low relationship between the system version corresponding to the system upgrade package and the system version of the first system.

[0149] The system upgrade submodule is configured to upgrade the second system based on the system upgrade package when the system version corresponding to the system upgrade package is higher than the system version of the first system.

[0150] Furthermore, the system switching device 200 further includes: an information writing module, wherein:

[0151] The information writing module is used to write preset information into a designated flag of the electronic device when the second system has completed the upgrade, wherein the preset information is used to indicate that the second system has completed the upgrade.

[0152] Furthermore, the system switching device 200 further includes: a shutdown module, an upgrade detection module and a switching module, wherein:

[0153] The shutdown module is used to control the electronic device to shut down when the electronic device runs the first system and receives a shutdown instruction.

[0154] The upgrade detection module is used to detect the upgrade status of the second system when receiving the power-on instruction.

[0155] The switching module is used to control the electronic device to start up and run the second system when it is detected that the second system has completed upgrading.

[0156] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0157] In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0158] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0159] See also Figure 12 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 can be an electronic device capable of running applications, such as a smartphone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0160] The processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and circuits to connect various components within the electronic device 100. It executes instructions, programs, code sets, or instruction sets stored in the memory 120, and accesses data stored in the memory 120 to perform various functions and process data within the electronic device 100. Optionally, the processor 110 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing displayed content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 110 and may be implemented separately via a communication chip.

[0161] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the electronic device 100 during use (such as a phone book, audio and video data, chat history data), etc.

[0162] See also Figure 13 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 stores program code, which can be called by a processor to execute the method described in the above method embodiment.

[0163] The computer-readable storage medium 300 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for program code 310 for executing any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in a suitable form.

[0164] In summary, the system switching method, device, electronic device and storage medium provided in the embodiments of the present application detect the upgrade status of the second system when the electronic device runs the first system and receives a standby instruction, and controls the electronic device to shut down when it detects that the upgrade of the second system has been completed, wherein the system version of the first system is lower than the system version of the upgraded second system, and when a power-on instruction is received, controls the electronic device to start up and run the second system, thereby completing the system switching by controlling the electronic device to shut down in response to the standby instruction and controlling the electronic device to start up and run the second system in response to the power-on instruction when the upgrade of the second system is completed during the operation of the first system, so that some system defects or new functions are synchronized to the electronic device without the user noticing, thereby improving the user experience.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A system switching method, characterized in that: Applied to an electronic device, the electronic device having an operating system installed thereon, the operating system including a first system and a second system, the first system and the second system being of the same system type, the method comprising: When the electronic device is running the first system and receives a standby instruction, detecting the upgrade status of the second system, wherein the standby instruction refers to an instruction received by the electronic device in an awake state to enter a standby state, and the electronic device does not perform a shutdown and startup process in the standby state; When detecting that the second system has completed upgrading, responding to the standby instruction and switching the standby instruction to a shutdown instruction; In response to the shutdown instruction, controlling the electronic device to shut down, wherein the system version of the first system is lower than the system version of the upgraded second system; When a power-on instruction is received, the electronic device is controlled to power on and run the second system.

2. The method according to claim 1, characterized in that When the electronic device runs the first system and receives a standby instruction, before detecting the upgrade status of the second system, the method further includes: Get the system upgrade package; The second system is upgraded based on the system upgrade package.

3. The method according to claim 2, characterized in that The upgrading of the second system based on the system upgrade package includes: Obtaining the relationship between the system version corresponding to the system upgrade package and the system version of the first system; When the system version corresponding to the system upgrade package is higher than the system version of the first system, the second system is upgraded based on the system upgrade package.

4. The method according to claim 1, wherein When the electronic device runs the first system and receives a standby instruction, before detecting the upgrade status of the second system, the method further includes: When the second system has completed the upgrade, preset information is written into a designated flag of the electronic device, wherein the preset information is used to indicate that the second system has completed the upgrade.

5. The method according to claim 4, characterized in that When the electronic device runs the first system and receives a standby instruction, detecting the upgrade status of the second system includes: When the electronic device runs the first system and receives the standby instruction, detecting the written information of the designated flag bit of the electronic device; When it is detected that the written information of the designated flag bit of the electronic device is the preset information, it is determined that the second system has completed the upgrade.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the electronic device runs the first system and receives a shutdown instruction, controlling the electronic device to shut down; When receiving the power-on instruction, detecting the upgrade status of the second system; When it is detected that the second system has completed upgrading, the electronic device is controlled to start up and run the second system.

7. The method according to any one of claims 1 to 5, characterized in that When it is detected that the second system has completed the upgrade, controlling the electronic device to shut down includes: When it is detected that the second system has completed upgrading, obtaining the number of users within a preset range of the electronic device; When the number of users is less than a preset number, the electronic device is controlled to shut down.

8. The method according to claim 7, characterized in that The method further comprises: When the number of users is not less than a preset number, continuously obtaining a change in the number of users within a preset time period; When the number of users obtained within the preset time period changes to less than the preset number, controlling the electronic device to shut down; When it is determined that the number of users is always not less than the preset number within the preset time period, the electronic device is controlled to be in standby mode.

9. A system switching device, characterized in that: Applied to an electronic device, the electronic device being installed with an operating system, the operating system including a first system and a second system, the first system and the second system being of the same system type, the apparatus comprising: an upgrade status detection module, configured to detect the upgrade status of the second system when the electronic device is running the first system and receives a standby instruction, wherein the standby instruction refers to an instruction received by the electronic device in an awake state to instruct it to enter a standby state, and the electronic device does not perform a shutdown and startup process in the standby state; a shutdown control module, configured to, when detecting that the second system has completed upgrading, respond to the standby instruction and switch the standby instruction to a shutdown instruction, and control the electronic device to shut down in response to the shutdown instruction, wherein the system version of the first system is lower than the system version of the upgraded second system; The system switching module is used to control the electronic device to start up and run the second system when receiving a power-on instruction.

10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor and stores instructions. When the instructions are executed by the processor, the processor performs the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device for upgrading operation system

    CN104918114A