CN112988246A - System switching method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112988246A
CN112988246A CN202110237126.0A CN202110237126A CN112988246A CN 112988246 A CN112988246 A CN 112988246A CN 202110237126 A CN202110237126 A CN 202110237126A CN 112988246 A CN112988246 A CN 112988246A
Authority
CN
China
Prior art keywords
electronic device
electronic equipment
instruction
upgrading
upgraded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110237126.0A
Other languages
Chinese (zh)
Inventor
孔景滔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110237126.0A priority Critical patent/CN112988246A/en
Publication of CN112988246A publication Critical patent/CN112988246A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Abstract

The application discloses a system switching method, a system switching device, electronic equipment and a storage medium, which are applied to the electronic equipment provided with an operating system, wherein the operating system comprises a first system and a second system which are the same in system type. When the electronic equipment operates the first system and receives a standby instruction, the upgrading state of the second system is detected, when the second system is detected to be upgraded, the electronic equipment is controlled to be powered off, the system version of the first system is lower than that of the upgraded second system, and when the power-on instruction is received, the electronic equipment is controlled to be powered on and operate the second system. According to the method and the device, when the second system is upgraded in the process of operating the first system, the standby instruction is responded to control the electronic equipment to be shut down, the starting instruction is responded to control the electronic equipment to be started and the second system is operated, so that the switching of the systems is completed, some system defects or new functions are synchronized to the electronic equipment under the condition that a user feels no sense, and the use experience of the user is improved.

Description

System switching method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic device technologies, and in particular, to a system switching method and apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic equipment is more and more widely used and has more and more functions, and the electronic equipment becomes one of the necessary things in daily life of people. At present, electronic devices generally prompt users to perform corresponding system updating operations in a scene in which the users are using, and complete system updating according to the system updating operations of the users. However, frequent system updates result in a large number of cumbersome operations, which can greatly reduce the user experience.
Disclosure of Invention
In view of the foregoing problems, the present application provides a system switching method, apparatus, electronic device and storage medium to solve the foregoing problems.
In a first aspect, an embodiment of the present application provides a system switching method, which is applied to an electronic device, where an operating system is installed on the electronic device, the operating system includes a first system and a second system, and system types of the first system and the second system are the same, and the method includes: when the electronic equipment operates the first system and receives a standby instruction, detecting the upgrading state of the second system; when the fact that the second system is upgraded is detected, controlling the electronic equipment to be powered off, wherein the system version of the first system is lower than the system version of the second system after upgrading; and when a starting-up instruction is received, controlling the electronic equipment to start up and operate the second system.
In a second aspect, an embodiment of the present application provides a system switching apparatus, which is applied to an electronic device, where an operating system is installed on the electronic device, the operating system includes a first system and a second system, and the system types of the first system and the second system are the same, and the apparatus includes: the upgrading state detection module is used for detecting the upgrading state of the second system when the electronic equipment runs the first system and receives a standby instruction; the shutdown control module is used for controlling the electronic equipment to shutdown when the second system is detected to be upgraded, wherein the system version of the first system is lower than the system version of the second system after upgrading; and the system switching module is used for controlling the electronic equipment to be started and operating the second system when a starting instruction is received.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the above method when the instructions are executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
In the system switching method, the apparatus, the electronic device and the storage medium provided in the embodiments of the present application, when the electronic device runs the first system and receives the standby instruction, detecting the upgrading state of the second system, controlling the electronic equipment to be powered off when detecting that the second system finishes upgrading, wherein the system version of the first system is lower than the system version of the upgraded second system, when the start-up instruction is received, the electronic equipment is controlled to start up and operate the second system, thereby controlling the electronic equipment to shut down in response to the standby instruction when the upgrade of the second system is completed in the process of operating the first system, and responding to the boot instruction to control the electronic device to boot and operate the second system to complete the system switching, therefore, some system defects or new functions are synchronized to the electronic equipment under the condition that a user feels no, and the use experience of the user is 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 some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a smart television that can be used in a system switching method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an application environment that can be used in the system switching method provided by the embodiment of the present application;
FIG. 3 is a schematic diagram of another application environment that can be used in the system switching method provided by the embodiment of the present application;
fig. 4 is a flowchart illustrating a system handover method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a system handover method according to another embodiment of the present application;
fig. 6 is a flowchart illustrating a system handover method according to still another embodiment of the present application;
fig. 7 is a flowchart illustrating step S320 of the system switching method illustrated in fig. 6 of the present application;
fig. 8 is a flowchart illustrating a system handover method according to another embodiment of the present application;
fig. 9 is a flowchart illustrating a system handover method according to yet another embodiment of the present application;
fig. 10 is a flowchart illustrating a system handover method according to yet another embodiment of the present application;
fig. 11 shows a block diagram of a system switching device provided in an embodiment of the present application;
fig. 12 is a block diagram of an electronic device for executing a system switching method according to an embodiment of the present application;
fig. 13 illustrates a storage unit for storing or carrying program codes for implementing a system switching method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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.
At present, electronic equipment generally prompts a user to perform corresponding system updating operation in a scene in which the user is using, and completes system updating according to the system updating operation of the user, however, frequent system updating causes a large amount of cumbersome operations, and thus the use experience of the user can be greatly reduced.
The inventor finds that the electronic device with the operating system can perform system upgrade in a non-inductive upgrade mode to solve the above problems, and specifically, the operating system of the electronic device can be set to include two systems, namely a first system and a second system, which are the same and independent in type, when a user normally uses one of the systems, such as the first system, when a system upgrade package can be used for system upgrade, the system upgrade is performed on the other system, such as the second system, but after the system upgrade is completed, the electronic device needs to be powered off and then powered on to enter the upgraded second system. In the system upgrading mode, a shutdown and startup process needs to be executed once, namely, the electronic equipment can be restarted to enter the upgraded second system, and for the smart television, in the practical use process of the smart television, a function which is used by a user more frequently is to directly control the smart television to enter a standby state by pressing a power key, and the standby state cannot go through the shutdown and startup processes, so that the second system is upgraded.
In view of the above problems, the inventors have found through long-term research and provide a system switching method, an apparatus, an electronic device, and a storage medium provided in an embodiment of the present application, where when upgrading of a second system is completed in a process of operating a first system, a standby instruction is responded to control the electronic device to be powered off, and a power-on instruction is responded to control the electronic device to be powered on and operate the second system, so as to complete system switching, so that some system defects or new functions are synchronized to the electronic device under the condition that a user feels no sense, and the user experience is improved. The specific system switching method is described in detail in the following embodiments.
In the present embodiment, the electronic device is installed with an operating system including a first system and a second system. The first system and the second system have the same system type, and the first system and the second system may be systems partitioned by two systems of the electronic device. In some scenarios, the electronic device 100 may be an intelligent television as shown in fig. 1, and a user may send a corresponding instruction, such as a standby instruction, a wake-up instruction, a power-on instruction, a power-off instruction, and the like, to the intelligent television 100 through a television remote controller.
It will be appreciated that the first system and the second system rely on a processor for operation.
In some embodiments, referring to fig. 2, fig. 2 is a schematic diagram illustrating an application environment that can be used in the system switching method provided in this embodiment of the present application, as shown in fig. 2, a first system and a second system are run by the same processor 110, for example, when an operating system run by an electronic device is the first system, the processor 110 runs the first system; when the operating system run by the electronic device is the second system, the processor 100 runs the second system.
In other embodiments, referring to fig. 3, fig. 3 is a schematic diagram illustrating another application environment that can be used for the system handover method provided by the embodiment of the present application. As shown in fig. 3, the first operating system and the second operating system respectively run in different processors, for example, the processors include a first processor 111 and a second processor 112, the first processor 111 is connected to the second processor 112, when the operating system run by the electronic device is the first system, the first processor 111 runs the first system, and when the operating system run by the electronic device is the second system, the second processor 112 runs the second system.
Referring to fig. 4, fig. 4 is a flowchart illustrating a system switching method according to an embodiment of the present application. The system switching method is used for responding to the standby instruction to control the electronic equipment to be powered off when the second system is upgraded in the process of operating the first system, responding to the power-on instruction to control the electronic equipment to be powered on and operating the second system so as to complete the system switching, so that some system defects or new functions are synchronized to the electronic equipment under the condition that a user feels no sense, and the use experience of the user is improved. In a specific embodiment, the system switching method is applied to the system switching apparatus 200 shown in fig. 11 and the electronic device 100 (fig. 12) configured with the system switching apparatus 200. The specific process of the present embodiment will be described below by taking an electronic device as an example, and it is understood that the electronic device applied in the present embodiment may include a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 4, in this embodiment, the operating system of the electronic device includes a first system and a second system, and the system types of the first system and the second system are the same, and the system switching method may specifically include the following steps:
step S110: and when the electronic equipment operates the first system and receives a standby instruction, detecting the upgrading state of the second system.
In this embodiment, the installed operating system of 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, both the first system and the second system are android systems. In some embodiments, since the operating system installed in the electronic device includes a first system and a second system, the operating system currently run by the electronic device may be the first system or the second system, which is not limited herein. When the operating system currently operated by the electronic device is the first system, the second system may be in a sleep state or an off state, and when the operating system currently operated by the electronic device is the second system, the first system may be in the sleep state or the off state, which is not limited herein.
In this embodiment, whether the operating system currently operated by the electronic device is the first system or the second system may be detected, where when it is detected that the operating system currently operated by the electronic device is the first system, the standby instruction may be monitored under the first system, and when it is detected that the operating system currently operated by the electronic device is the second system, the standby instruction may be monitored under the second system. The standby instruction refers to an instruction for indicating standby received when the electronic device is in an awake state, for example, when the electronic device is a smart television, the standby instruction refers to an instruction received by the smart television when the smart television is in the awake state and a user presses a power key for a short time by using a television remote controller, and for example, when the electronic device is a smart phone, the standby instruction refers to an instruction triggered when the user presses the power key for a short time when the smart phone is in the awake state.
As one mode, the electronic device may preset a state value corresponding to the operating system to be run, for example, the electronic device may preset a first state value when the operating system is run as a first system, and preset a second state when the operating system is run as a second system. Then, a state value of the electronic device may be detected, where when the electronic device is detected to be in the first state value, the operating system of the electronic device may be determined to be the first system, and when the electronic device is detected to be in the second state value, the operating system of the electronic device may be determined to be the second system.
As another way, the system desktop of the electronic device may be detected, when it is detected that the system desktop of the electronic device is dominated by a first system (corresponding to the first system), the operating system run by the electronic device may be determined to be the first system, and when it is detected that the system desktop of the electronic device is dominated by a second system (corresponding to the second system), the operating system run by the electronic device may be determined to be the second system.
As another way, states of a first system and a second system installed in the electronic device may be detected, where when it is detected that the first system is in an awake state, and the second system is in a sleep state or an off state, it may be determined that the electronic device operates the first system, and when it is detected that the first system is in the sleep state and the second system is in the awake state, it may be determined that the electronic device operates the second system.
Of course, the embodiment may also include other ways of detecting whether the operating system of the electronic device is the first system or the second system, which are not described herein again.
In this embodiment, when it is determined that the electronic device operates the first system and receives the standby instruction, the upgrade state of the second system may be detected. By one approach, the upgrade status of the second system may include a completed upgrade and an incomplete upgrade, wherein an incomplete upgrade may include: no upgrade was performed and the upgrade was performed and failed.
In some embodiments, when it is determined that the electronic device operates the first system and receives the standby instruction, information written in a designated flag bit of the electronic device may be detected, when it is detected that the written information of the designated flag bit of the electronic device is preset information, it may be determined that the second system has completed upgrading, and when it is detected that the designated flag bit of the electronic device has not written information or the written information is non-preset information, it may be determined that the second system has not completed upgrading.
In some embodiments, when it is determined that the electronic device operates the first system and receives the standby instruction, the system version of the first system may be detected to obtain a first system version, and the system version of the second system may be detected to obtain a second system version, when the first system version is not lower than the second system version, it may be determined that the second system has not completed upgrading, and when the first system version is lower than the second system version, it may be determined that the second system has completed upgrading.
Step S120: and when the second system is detected to be upgraded, controlling the electronic equipment to be powered off, wherein the system version of the first system is lower than the system version of the upgraded second system.
In this embodiment, when it is detected that the second system has been upgraded, it may 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 may be controlled to be powered off. That is, when it is detected that the second system has been upgraded, the user only needs to trigger the standby instruction, and the electronic device executes an operation corresponding to the shutdown instruction to shutdown, so as to control the electronic device to shutdown based on the daily usage habit (trigger standby) of the user.
In some embodiments, when it is detected that the second system has completed upgrading, it may be determined that the system version of the first system is lower than the upgraded system version of the second system at this time, and the electronic device may be controlled to be powered off in response to the standby instruction. As a manner, when it is detected that the second system has been upgraded, it may 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 may be converted into a shutdown instruction, and the electronic device may be controlled to be shut down in response to the shutdown instruction.
Step S130: and when a starting-up instruction is received, controlling the electronic equipment to start up and operate the second system.
In this embodiment, when the electronic device receives the power-on command in the power-off state, the electronic device may be controlled to power on and operate the second system in response to the power-on command. The power-on instruction refers to an instruction for instructing to power on when the electronic device is in a power-off state, for example, when the electronic device is an intelligent television, the power-on instruction refers to an instruction received by the intelligent television after a user presses a power key for a short time by using a television remote controller when the intelligent television is in the power-off state, and for example, when the electronic device is an intelligent mobile phone, the power-on instruction refers to an instruction triggered by the user pressing the power key for a long time when the intelligent mobile phone is in the power-off state.
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 a power-on instruction in a power-off state, the electronic device can be controlled to power on and operate the second system, that is, the electronic device can be controlled to switch from operating the first system to operating the second system, so that the electronic device can timely operate a system with a higher system version, some major defects or new functions can be synchronized to the electronic device under the condition that a user feels no sense, and the use experience of the user is improved.
In some embodiments, 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 sleep state or an off state, which is not limited specifically herein.
In some embodiments, when the electronic device runs the second system and receives a standby instruction, the upgrade state of the first system may be detected, and when it is detected that the first system has been upgraded, the electronic device may be controlled to be powered off, where a system version of the second system is lower than a system version of the upgraded first system, and when a power-on instruction is received, the electronic device may be controlled to be powered on and run the first system.
According to the system switching method provided by one embodiment of the application, when the electronic device runs a first system and receives a standby instruction, the upgrade state of a second system is detected, and when the second system is detected to be upgraded, the electronic device is controlled to be shut down, wherein the system version of the first system is lower than the system version of the upgraded second system, and when the start instruction is received, the electronic device is controlled to be started and run the second system, so that when the upgrade of the second system is completed in the process of running the first system, the electronic device is controlled to be shut down in response to the standby instruction, and the electronic device is controlled to be started and run the second system in response to the start instruction, so that the system switching is completed, some system defects or new functions are synchronized to the electronic device under the condition that a user feels no, and the use experience of the user is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a system handover method according to another embodiment of the present application. The method is applied to the electronic equipment, the electronic equipment is provided with an operating system, the operating system comprises a first system and a second system, and the system types of the first system and the second system are the same. As will be described in detail with respect to the flow shown in fig. 5, the system switching method may specifically include the following steps:
step S210: and when the electronic equipment operates the first system and receives a standby instruction, detecting the upgrading state of the second system.
For detailed description of step S210, please refer to step S110, which is not described herein again.
Step S220: and when the second system is detected to be upgraded, switching the standby instruction into a shutdown instruction, wherein the system version of the first system is lower than the upgraded system version of the second system.
In this embodiment, when it is detected that the second system has been upgraded, it may 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 may be switched to the shutdown instruction. For example, when the electronic device is a smart phone, the shutdown instruction refers to an instruction received by the smart tv after a user presses a power key for a long time to generate a shutdown menu and select a shutdown option, and when the electronic device is a smart phone, the shutdown instruction refers to an instruction triggered by the user pressing the power key for a long time when the smart phone is in an environment state.
In some embodiments, the electronic device may include a power management module, and when it is detected that the second system has been upgraded, it may 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 may be internally switched to the shutdown instruction by the power management module of the electronic device, so as to implement the non-inductive switching of the instruction.
Step S230: and responding to the shutdown instruction, and controlling the electronic equipment to shut down.
In this implementation, after the electronic device switches the standby instruction to the shutdown instruction, the electronic device may respond to the shutdown instruction to control the electronic device to shutdown.
Step S240: and when a starting-up instruction is received, controlling the electronic equipment to start up and operate the second system.
For a detailed description of step S240, please refer to step S130, which is not described herein again.
In another embodiment of the present application, a system switching method is provided, where when an electronic device operates a first system and receives a standby instruction, an upgrade state of a second system is detected, and when it is detected that the second system has been upgraded, the standby instruction is switched to a shutdown instruction, where a system version of the first system is lower than a system version of the upgraded second system, and the electronic device is controlled to shutdown in response to the shutdown instruction, and when a startup instruction is received, the electronic device is controlled to operate the second system. Compared with the system switching method shown in fig. 4, in this embodiment, when the second system has been upgraded, the standby instruction is switched to the shutdown instruction, and the electronic device is controlled to be shut down in response to the shutdown instruction, so that the system is switched to be non-inductive, and the user experience is improved.
Referring to fig. 6, fig. 6 is a flowchart illustrating a system switching method according to still another embodiment of the present application. The method is applied to the electronic equipment, the electronic equipment is provided with an operating system, the operating system comprises a first system and a second system, and the system types of the first system and the second system are the same. As will be described in detail with respect to the flow shown in fig. 6, the system switching method may specifically include the following steps:
step S310: and acquiring a system upgrade package.
In some embodiments, the electronic device may connect with a server and obtain a system upgrade package from the server. The electronic device may be connected to the server through a data network or a wireless network, wherein when the electronic device is connected to the server through the data network, the electronic device may be connected to the server through 2G/3G/4G/5G, and when the electronic device is connected to the server through the wireless network, the electronic device may be connected to the server through WiFi, which is not limited herein. As a mode, when a new system upgrade package exists in the server, the system upgrade package may be directly issued to the electronic device, and accordingly, the electronic device obtains the system upgrade package. As another mode, the electronic device may send request information to the server at regular time or in real time, where the request information is used to request the server to issue when a new system upgrade package exists, and therefore, when the server has the new system upgrade package and receives the request information, the system upgrade package may be issued to the electronic device, and accordingly, the electronic device obtains the system upgrade package.
In some embodiments, the electronic device may include a system upgrade module, and the system upgrade package may be obtained by the system upgrade module, for example, obtaining the system upgrade package from a server may be performed by the system upgrade module. At this time, the electronic device runs the first system, so that the system upgrade package can be acquired by the first system.
Step S320: and upgrading the second system based on the system upgrading package.
In this embodiment, after the system upgrade package is obtained, the second system may be upgraded based on the system upgrade package, where the first system may obtain the system upgrade package and upgrade the second system based on the system upgrade package because the electronic device runs the first system at this time. In some embodiments, if the electronic device runs the second system at this time, the system upgrade package may be acquired by the second system, and the second system upgrades the first system based on the system upgrade package.
Referring to fig. 7, fig. 7 is a flowchart illustrating step S320 of the system handover method illustrated in fig. 6 according to the present application. As will be explained in detail with respect to the flow shown in fig. 7, the method may specifically include the following steps:
step S321: and acquiring the height relation between the system version corresponding to the system upgrade package and the system version of the first system.
In some embodiments, after the system upgrade package is obtained, a system version corresponding to the system upgrade package and a system version of the first system may be obtained, and the system version corresponding to the system upgrade package is compared with the system version of the first system, so as to obtain a height relationship between the system version corresponding to the system upgrade package and the system version of the first system according to a comparison result. As a manner, after the system upgrade package is obtained, the version number of the system version corresponding to the system upgrade package and the version number of the system version of the first system may be obtained, and the version number of the system version corresponding to the system upgrade package is compared with the version number of the system version of the first system, so as to obtain the height relationship between the system version corresponding to the system upgrade package and the system version of the first system according to the comparison result.
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.
Step S322: and when the system version corresponding to the system upgrading package is higher than the system version of the first system, upgrading the second system based on the system upgrading package.
In some embodiments, when the 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 higher than the system version of the first system, the second system may be upgraded based on the system upgrade package.
In some embodiments, when the 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, the upgrading of the second system based on the system upgrade package may be abandoned, and the local deletion of the electronic device may delete the system upgrade package, so as to release the storage space of the electronic device.
In some embodiments, when the 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, the upgrading of the second system based on the system upgrade package may be abandoned, and the local deletion of the electronic device may delete the system upgrade package, so as to release the storage space of the electronic device.
Step S330: and when the electronic equipment operates the first system and receives a standby instruction, detecting the upgrading state of the second system.
Step S340: and when the second system is detected to be upgraded, controlling the electronic equipment to be powered off, wherein the system version of the first system is lower than the system version of the upgraded second system.
Step S350: and when a starting-up instruction is received, controlling the electronic equipment to start up and operate the second system.
For the detailed description of steps S330 to S350, refer to steps S110 to S130, which are not described herein again.
A system switching method according to another embodiment of the present application obtains a system upgrade package, upgrades a second system based on the system upgrade package, detects an upgrade status of the second system when an electronic device operates a first system and receives a standby instruction, switches the standby instruction to a shutdown instruction when it is detected that the second system has been upgraded, where a system version of the first system is lower than a system version of the upgraded second system, responds to the shutdown instruction, controls the electronic device to shutdown, and controls the electronic device to start and operate the second system when the startup instruction is received. Compared with the system switching method shown in fig. 4, in this embodiment, the system upgrade package is obtained during the operation of the first system to upgrade the second system, so as to implement wireless upgrade and switching of the system, and improve the user experience.
Referring to fig. 8, fig. 8 is a flowchart illustrating a system switching method according to another embodiment of the present application. The method is applied to the electronic equipment, the electronic equipment is provided with an operating system, the operating system comprises a first system and a second system, and the system types of the first system and the second system are the same. As will be described in detail with respect to the flow shown in fig. 8, the system switching method may specifically include the following steps:
step S410: when the second system is upgraded, writing preset information into a designated zone bit of the electronic equipment, wherein the preset information is used for representing that the second system is upgraded.
In some embodiments, when the electronic device runs the first system, the system upgrade package may be obtained, and the second system is upgraded based on the system upgrade package, where when the second system has been upgraded based on the system upgrade package, preset information for indicating that the second system has been upgraded may be written in the designated flag update of the electronic device.
Specifically, the electronic device may create a designated flag bit in the storage area in advance, and preset information for indicating that the second system has completed upgrading, where the designated flag bit is used for writing the preset information. That is, when the second system has completed upgrading, preset information for indicating that the second system has completed upgrading may be written in the designated flag bit previously created in the storage area by the electronic device, and when the second system has not completed upgrading, information for indicating that the second system has not completed upgrading may be written in the designated flag bit previously created in the storage area by the electronic device, or information (leaving the designated flag bit blank) may not be written in the designated flag bit previously created in the storage area by the electronic device, so as to identify the upgrading state of the second system. For example, the preset information may be "1".
Step S420: and when the electronic equipment operates the first system and receives the standby instruction, detecting the written information of the designated zone bit of the electronic equipment.
In this embodiment, when it is determined that the electronic device operates the first system and receives the standby instruction, the written information of the designated flag bit of the electronic device may be detected. In some embodiments, when it is determined that the electronic device operates the first system and receives the standby instruction, the write information of the designated zone bit of the electronic device may be acquired, and the acquired write information of the designated zone bit may be identified, so as to implement detection of the write information of the designated zone bit of the electronic device.
Step S430: and when the write-in information of the designated zone bit of the electronic equipment is detected to be the preset information, determining that the second system is upgraded.
In some embodiments, when it is detected that the written information of the designated flag bit of the electronic device is preset information, it may be determined that the second system has completed upgrading.
In some embodiments, when it is detected that the written information of the designated flag bit of the electronic device is non-preset information, it may be determined that the second system does not complete the upgrade.
In some embodiments, when a designated flag of the electronic device is detected to be empty, it may be determined that the second system has not completed the upgrade.
Step S440: and when the second system is detected to be upgraded, controlling the electronic equipment to be powered off, wherein the system version of the first system is lower than the system version of the upgraded second system.
Step S450: and when a starting-up instruction is received, controlling the electronic equipment to start up and operate the second system.
For detailed description of steps S440 to S450, please refer to steps S120 to S130, which are not described herein again.
In another embodiment of the present application, when the second system has been upgraded, preset information is written in a designated flag of the electronic device, where the preset information is used to represent that the second system has been upgraded, when the electronic device operates the first system and receives a standby instruction, the written information of the designated flag of the electronic device is detected, when the written information of the designated flag of the electronic device is detected to be the preset information, it is determined that the second system has been upgraded, and when it is detected that the second system has been upgraded, the standby instruction is switched to a shutdown instruction, where a system version of the first system is lower than a system version of the upgraded second system, and the electronic device is controlled to shutdown in response to a shutdown instruction, and when the startup instruction is received, the electronic device is controlled to start up and operate the second system. Compared with the system switching method shown in fig. 4, in this embodiment, when the second system has been upgraded, the predetermined information is written in the designated flag bit of the electronic device to identify that the second system is upgraded successfully, so as to improve the success rate of system upgrade identification.
Referring to fig. 9, fig. 9 is a schematic flowchart illustrating a system handover method according to yet another embodiment of the present application. The method is applied to the electronic equipment, the electronic equipment is provided with an operating system, the operating system comprises a first system and a second system, and the system types of the first system and the second system are the same. As will be described in detail with respect to the flow shown in fig. 9, the system switching method may specifically include the following steps:
step S510: and when the electronic equipment operates the first system and receives a shutdown instruction, controlling the electronic equipment to shut down.
In this embodiment, when it is determined that the electronic device operates the first system and receives the shutdown instruction, the electronic device may be controlled to shutdown in response to the shutdown instruction.
Step S520: and when a starting-up instruction is received, detecting the upgrading state of the second system.
In this embodiment, when the electronic device receives the power-on command in the power-off state, the upgrade state answered by the second system may be detected. By one approach, the upgrade status of the second system may include a completed upgrade and an incomplete upgrade, wherein an incomplete upgrade may include: no upgrade was performed and the upgrade was performed and failed.
In some embodiments, when the electronic device receives a power-on instruction in a power-off state, information written in a designated flag bit of the electronic device may be detected, when it is detected that the written information of the designated flag bit of the electronic device is preset information, it may be determined that the second system has completed upgrading, and when it is detected that the designated flag bit of the electronic device has not written information or the written information is non-preset information, it may be determined that the second system has not completed upgrading.
In some embodiments, when the electronic device receives a power-on instruction in a power-off state, the system version of the first system may be detected to obtain a first system version, and the system version of the second system may be detected to obtain a second system version, when the first system version is not lower than the second system version, it may be determined that the second system has not completed upgrading, and when the first system version is lower than the second system version, it may be determined that the second system has completed upgrading.
Step S530: and when detecting that the second system is upgraded, controlling the electronic equipment to start and operate the second system.
In this embodiment, when it is detected that the second system has been upgraded, the electronic device may be controlled to start and operate the second system in response to the start instruction. 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 a power-on instruction in a power-off state, the electronic device can be controlled to power on and operate the second system, that is, the electronic device can be controlled to switch from operating the first system to operating the second system, so that the electronic device can timely operate a system with a higher system version, some major defects or new functions can be synchronized to the electronic device under the condition that a user feels no sense, and the use experience of the user is improved.
In this embodiment, when it is detected that the second system does not complete the upgrade, the electronic device may be controlled to start up and continue to operate the first system in response to the start-up instruction. 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 a power-on instruction in a power-off state, the electronic device may be controlled to power on and operate the first system, that is, the electronic device may be controlled to operate the first system with a higher system version, so as to improve the user experience.
In another embodiment of the system switching method provided in the present application, when the electronic device operates the first system and receives a shutdown instruction, the electronic device is controlled to shutdown, when the startup instruction is received, the upgrade status of the second system is detected, and when it is detected that the second system has been upgraded, the electronic device is controlled to start and operate the second system. Compared with the system switching method shown in fig. 4, in this embodiment, when the upgrade of the second system is completed in the process of operating the first system, the electronic device is controlled to be powered off in response to the power-off instruction, and the electronic device is controlled to be powered on in response to the power-on instruction and the second system is operated to complete the system switching, so that some system defects or new functions are synchronized to the electronic device under the condition that a user feels nothing, and the use experience of the user is improved.
Referring to fig. 10, fig. 10 is a schematic flow chart illustrating a system handover method according to yet another embodiment of the present application. The method is applied to the electronic equipment, the electronic equipment is provided with an operating system, the operating system comprises a first system and a second system, and the system types of the first system and the second system are the same. As will be described in detail with respect to the flow shown in fig. 10, the system switching method may specifically include the following steps:
step S610: and when the electronic equipment operates the first system and receives a standby instruction, detecting the upgrading state of the second system.
For detailed description of step S610, please refer to step S110, which is not described herein again.
Step S620: and when the second system is detected to be upgraded, acquiring the number of users in the preset range of the electronic equipment.
In this embodiment, when it is detected that the second system has completed upgrading, it may be determined that the system version of the first system is lower than the system version of the upgraded second system, and then the number of users in the preset range of the electronic device may be obtained.
In some embodiments, the electronic device may include a device body and a camera, and the camera is mounted on the device body, and the preset range may be a visual range of the camera, so that when it is detected that the second system has completed upgrading, the number of users in the visual range of the camera of the electronic device may be obtained. By one approach, the camera may include, but is not limited to: leading camera, rotation camera.
Step S630: and when the number of the users is less than the preset number, controlling the electronic equipment to be powered off.
In some embodiments, the electronic device may preset and store a preset number, where the preset number is used as a basis for determining the number of users located within a preset range of the electronic device. Therefore, in this embodiment, after the number of users is obtained, the number of users may be compared with the preset number to determine whether the number of users is smaller than the preset number and obtain a determination result.
When the judgment result represents that the number of the users is smaller than the preset number, the number of the users watching the display content of the electronic equipment is considered to be small, and therefore, even if the time consumption for controlling the electronic equipment to be powered off and then powered on is long, the range of the users affected by the time consumption is small, the problem that a large number of users wait for the electronic equipment to be powered on for a long time is avoided, and the electronic equipment can be controlled to be powered off to perform system switching. For example, taking the electronic device as an example of an intelligent television, when the judgment result represents that the number of users is smaller than the preset number, the number of users watching television content of the intelligent television is considered to be small, and even if the time consumption for controlling the intelligent television to be powered off and powered on again is long, the problem that the few users wait for the intelligent television to be powered on for a long time is caused, and the intelligent television can be controlled to be powered off to perform system switching.
Step S640: and when the number of the users is not less than the preset number, continuously acquiring the change condition of the number of the users in a preset time period.
As a manner, when the judgment result represents that the number of users is not less than the preset number, it may be considered that the number of users watching the content displayed by the electronic device is large, and then, if it takes a long time to control the electronic device to be powered off and then powered on, the range of the affected users is wide, which may cause a problem that a large number of users wait for the electronic device to be powered on for a long time. The wake-up instruction refers to an instruction for receiving and displaying an instruction when the electronic device is in a standby state, for example, when the electronic device is a smart television, the wake-up instruction refers to an instruction received by the smart television after a user presses a power key for a short time by using a television remote controller, and when the electronic device is a smart phone, the wake-up instruction refers to an instruction triggered by the user pressing the power key for a short time when the smart phone is in the standby state.
As another way, when the determination result represents that the number of users is not less than the preset number, it may be considered that the number of users watching the content displayed by the electronic device is large, and then if it takes a long time to control the electronic device to power off and then power on, the range of the affected users is wide, which may cause a problem that a large number of users wait for the electronic device to power on for a long time, and in order to avoid a problem that a large number of users wait for the electronic device to power on for a long time, a change condition of the number of users may be continuously obtained within a preset time period, where the preset time period may be automatically set by the electronic device or set by a user means, and the change condition of: the number of users remains unchanged, the number of users decreases, and the number of users increases.
Step S650: and when the user number is acquired to be changed to be smaller than the preset number in the preset time period, controlling the electronic equipment to be powered off.
In some embodiments, when the number of the acquired users changes to be smaller than the preset number within the preset time period, it may be considered that the number of the users watching the display content of the electronic device has been reduced to a small number, and even if the time consumption is long when the electronic device is controlled to be powered off and then powered on, the range of the users affected by the time consumption is small, that is, the problem that a large number of users wait for the electronic device to be powered on for a long time is not caused, and the electronic device may be controlled to be powered off to perform system switching.
Step S660: and when a starting-up instruction is received, controlling the electronic equipment to start up and operate the second system.
For detailed description of step S660, please refer to step S130, which is not described herein again.
Step S670: and when the user number is not less than the preset number all the time within the preset time period, controlling the electronic equipment to be in standby.
As a manner, when the number of users is not less than the preset number all the time within the preset time period, it may be considered that the number of users watching the content displayed by the electronic device is always large, and then, if it takes a long time to control the electronic device to be powered off and powered on again, the affected user range is wide, which may cause a problem that a large number of users wait for the electronic device to be powered on for a long time. For example, taking an electronic device as an example of a smart tv, when the number of users obtained in a preset time period is not less than the preset number all the time, it may be considered that the number of users watching tv content of the smart tv is always large, and then if it takes a long time to control the smart tv to turn off and then turn on, the affected user range is wide, which may cause a problem that a large number of users wait for the smart tv to turn on for a long time.
Step S680: and when a wake-up instruction is received, controlling the electronic equipment to wake up and operate the first system.
In some embodiments, when the electronic device receives a wake-up command in the standby state, the electronic device may be controlled to wake up and run the first system in response to the wake-up command.
In another embodiment of the present application, a system switching method is provided, which detects an upgrade status of a second system when an electronic device operates a first system and receives a standby instruction, acquires a number of users in a preset range of the electronic device when it is detected that the second system has been upgraded, controls the electronic device to shut down when the number of users is less than a preset number, continuously acquires a change of the number of users in a preset time period when the number of users is not less than the preset number, controls the electronic device to shut down when the number of users acquired in the preset time period changes to be less than the preset number, controls the electronic device to shut down and operate the second system when the power-on instruction is received, controls the electronic device to standby when the number of users acquired in the preset time period is not less than the preset number all the time, and when the wake-up instruction is received, the control electronics wake up and run the first system. Compared with the system switching method shown in fig. 4, in this embodiment, when the number of users in the preset range of the electronic device is smaller than the preset number, the electronic device is controlled to be powered off in response to the standby instruction, so that the use experience brought to the users by the system switching is improved. In addition, in this embodiment, when the number of users in the preset range of the electronic device is not less than the preset number, the electronic device is controlled to be in standby by responding to the standby instruction, so that the influence of too long startup time on the use experience of multiple users is avoided.
Referring to fig. 11, fig. 11 is a block diagram illustrating a system switching device according to an embodiment of the present disclosure. The system switching apparatus 200 is applied to the electronic device, which is installed with an operating system, the operating system includes a first system and a second system, and the system types of the first system and the second system are the same. As will be explained below with respect to the block diagram shown in fig. 11, the system switching apparatus 200 includes: an upgrade status detection module 210, a shutdown control module 220, and a system switching module 230, wherein:
the upgrade status detection module 210 is configured to detect an upgrade status of the second system when the electronic device operates the first system and receives a standby instruction.
Further, the upgrade status detection module 210 includes: write-in information detection submodule and upgrade determination submodule, wherein:
and the written information detection submodule is used for detecting the written information of the designated zone bit of the electronic equipment when the electronic equipment operates the first system and receives the standby instruction.
And the upgrading determining submodule is used for determining that the second system is upgraded when the fact that the written information of the designated zone bit of the electronic equipment is the preset information is detected.
A shutdown control module 220, configured to control the electronic device to shutdown when it is detected that the second system has been upgraded, where a system version of the first system is lower than a system version of the second system after the second system is upgraded.
Further, the shutdown control module 220 includes: the command switching submodule and the first shutdown control submodule, wherein:
and the instruction switching submodule is used for switching the standby instruction into a shutdown instruction when the second system is detected to be upgraded.
And the first shutdown control submodule is used for responding to the shutdown instruction and controlling the electronic equipment to be shut down.
Further, the shutdown control module 220 includes: the user quantity acquisition submodule and the second shutdown control submodule, wherein:
and the user number obtaining submodule is used for obtaining the number of users in the preset range of the electronic equipment when the second system is detected to be upgraded.
And the second shutdown control submodule is used for controlling the electronic equipment to be shut down when the number of the users is less than the preset number.
Further, the shutdown control module 220 includes: the change situation acquisition submodule, the third pass control submodule and the standby control submodule, wherein:
and the change condition acquisition submodule is used for continuously acquiring the change condition of the number of the users in a preset time period when the number of the users is not less than the preset number.
And the third shutdown control submodule is used for controlling the electronic equipment to shut down when the number of the acquired users is changed to be smaller than the preset number in the preset time period.
And the standby control submodule is used for controlling the electronic equipment to be in standby when the number of the users is not less than the preset number all the time within the preset time period.
The system switching module 230 is configured to control the electronic device to start and operate the second system when receiving a start instruction.
Further, the system switching apparatus 200 further includes: system upgrade package acquisition module and system upgrade module, wherein:
and the system upgrade package acquisition module is used for acquiring the system upgrade package.
And the system upgrading module is used for upgrading the second system based on the system upgrading package.
Further, the system upgrade module includes: a high-low relationship obtaining submodule and a system upgrading submodule, wherein:
and the high-low relationship obtaining submodule is used for obtaining the high-low relationship between the system version corresponding to the system upgrade package and the system version of the first system.
And the system upgrading submodule is used for upgrading the second system based on the system upgrading package when the system version corresponding to the system upgrading package is higher than the system version of the first system.
Further, the system switching apparatus 200 further includes: an information writing module, wherein:
and the information writing module is used for writing preset information in a designated zone bit of the electronic equipment when the second system is upgraded, wherein the preset information is used for representing that the second system is upgraded.
Further, the system switching apparatus 200 further includes: shutdown module, upgrading detection module and switching module, wherein:
and the shutdown module is used for controlling the electronic equipment to shut down when the electronic equipment runs the first system and receives a shutdown instruction.
And the upgrade detection module is used for detecting the upgrade state of the second system when a starting-up instruction is received.
And the switching module is used for controlling the electronic equipment to start and operate the second system when detecting that the second system is upgraded.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 12, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. 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 the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may 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-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
In summary, according to the system switching method, apparatus, electronic device and storage medium provided in the embodiments of the present application, when the electronic device runs the first system and receives the standby instruction, detecting the upgrading state of the second system, controlling the electronic equipment to be powered off when detecting that the second system finishes upgrading, wherein the system version of the first system is lower than the system version of the upgraded second system, when the start-up instruction is received, the electronic equipment is controlled to start up and operate the second system, thereby controlling the electronic equipment to shut down in response to the standby instruction when the upgrade of the second system is completed in the process of operating the first system, and responding to the boot instruction to control the electronic device to boot and operate the second system to complete the system switching, therefore, some system defects or new functions are synchronized to the electronic equipment under the condition that a user feels no, and the use experience of the user is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (12)

1. A system switching method is applied to an electronic device, wherein an operating system is installed on the electronic device, the operating system comprises a first system and a second system, and the first system and the second system are of the same system type, and the method comprises the following steps:
when the electronic equipment operates the first system and receives a standby instruction, detecting the upgrading state of the second system;
when the fact that the second system is upgraded is detected, controlling the electronic equipment to be powered off, wherein the system version of the first system is lower than the system version of the second system after upgrading;
and when a starting-up instruction is received, controlling the electronic equipment to start up and operate the second system.
2. The method of claim 1, wherein controlling the electronic device to shut down when it is detected that the second system has completed upgrading comprises:
when the second system is detected to be upgraded, switching the standby instruction into a shutdown instruction;
and responding to the shutdown instruction, and controlling the electronic equipment to shut down.
3. The method according to claim 1, wherein before detecting the upgrade status of the second system when the electronic device runs the first system and receives the standby instruction, the method further comprises:
acquiring a system upgrade package;
and upgrading the second system based on the system upgrading package.
4. The method of claim 3, wherein upgrading the second system based on the system upgrade package comprises:
acquiring the height relation between the system version corresponding to the system upgrade package and the system version of the first system;
and when the system version corresponding to the system upgrading package is higher than the system version of the first system, upgrading the second system based on the system upgrading package.
5. The method according to claim 1, wherein before detecting the upgrade status of the second system when the electronic device runs the first system and receives the standby instruction, the method further comprises:
when the second system is upgraded, writing preset information into a designated zone bit of the electronic equipment, wherein the preset information is used for representing that the second system is upgraded.
6. The method of claim 5, wherein detecting the upgrade status of the second system when the electronic device runs the first system and receives a standby instruction comprises:
when the electronic equipment operates the first system and receives the standby instruction, detecting the written information of the designated zone bit of the electronic equipment;
and when the write-in information of the designated zone bit of the electronic equipment is detected to be the preset information, determining that the second system is upgraded.
7. The method according to any one of claims 1-6, further comprising:
when the electronic equipment operates the first system and receives a shutdown instruction, controlling the electronic equipment to be shut down;
when a starting-up instruction is received, detecting the upgrading state of the second system;
and when detecting that the second system is upgraded, controlling the electronic equipment to start and operate the second system.
8. The method according to any one of claims 1-6, wherein the controlling the electronic device to shut down when it is detected that the second system has completed upgrading comprises:
when the second system is detected to be upgraded, acquiring the number of users in a preset range of the electronic equipment;
and when the number of the users is less than the preset number, controlling the electronic equipment to be powered off.
9. The method of claim 8, further comprising:
when the number of the users is not less than the preset number, continuously acquiring the change condition of the number of the users in a preset time period;
when the fact that the number of the users is changed to be smaller than the preset number is obtained within the preset time period, controlling the electronic equipment to be powered off;
and when the user number is not less than the preset number all the time within the preset time period, controlling the electronic equipment to be in standby.
10. A system switching apparatus, 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:
the upgrading state detection module is used for detecting the upgrading state of the second system when the electronic equipment runs the first system and receives a standby instruction;
the shutdown control module is used for controlling the electronic equipment to shutdown when the second system is detected to be upgraded, wherein the system version of the first system is lower than the system version of the second system after upgrading;
and the system switching module is used for controlling the electronic equipment to be started and operating the second system when a starting instruction is received.
11. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
CN202110237126.0A 2021-03-03 2021-03-03 System switching method and device, electronic equipment and storage medium Pending CN112988246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110237126.0A CN112988246A (en) 2021-03-03 2021-03-03 System switching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110237126.0A CN112988246A (en) 2021-03-03 2021-03-03 System switching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112988246A true CN112988246A (en) 2021-06-18

Family

ID=76352460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110237126.0A Pending CN112988246A (en) 2021-03-03 2021-03-03 System switching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112988246A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113721959A (en) * 2021-08-30 2021-11-30 联想(北京)有限公司 Information processing method and device and electronic equipment
WO2023246181A1 (en) * 2022-06-23 2023-12-28 中兴通讯股份有限公司 System switching method, and terminal device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113721959A (en) * 2021-08-30 2021-11-30 联想(北京)有限公司 Information processing method and device and electronic equipment
WO2023246181A1 (en) * 2022-06-23 2023-12-28 中兴通讯股份有限公司 System switching method, and terminal device and storage medium

Similar Documents

Publication Publication Date Title
US8543164B2 (en) Sleep method, wake method and mobile terminal device
CN109542744B (en) Method, device, storage medium and terminal for detecting abnormal starting problem of terminal
WO2019233241A1 (en) Method and apparatus for starting application program, and storage medium and terminal
US20190034074A1 (en) Method for recognizing a screen-off gesture, and storage medium and terminal thereof
CN112988246A (en) System switching method and device, electronic equipment and storage medium
CN114302132A (en) Display device and operation mode setting method
EP3435215B1 (en) Method, device, storage medium and mobile terminal for recognizing an off-screen gesture
CN111930410A (en) Display device and idle time upgrading method
CN106776259B (en) Mobile terminal frame rate detection method and device and mobile terminal
CN113342415B (en) Timed task execution method and display device
CN115775560A (en) Prompting method of awakening response and display equipment
CN113064645B (en) Startup interface control method and display device
CN107766218A (en) system optimization method, device, storage medium and terminal device
CN109976790B (en) Application updating method, device, terminal and storage medium
CN106843440B (en) A kind of mobile terminal restarts control method, device and mobile terminal
CN111045738B (en) Electronic equipment control method and device, electronic equipment and storage medium
CN112616090A (en) Display equipment system upgrading method and display equipment
CN114258047B (en) Network awakening method, device, display equipment and storage medium
CN111316660B (en) Display device and method for operating the same
CN114610349A (en) Display device and upgrading method
CN114786048A (en) Display device and wake-up control method
WO2023124658A1 (en) Shared hardware calling method, apparatus, electronic device, and storage medium
CN117857887A (en) Display equipment and upgrading method
CN115344283A (en) Display device, player upgrading method and storage medium
CN115242991A (en) Standby method and device of smart television, smart television and computer medium

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