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

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

Info

Publication number
CN114398089A
CN114398089A CN202111645809.6A CN202111645809A CN114398089A CN 114398089 A CN114398089 A CN 114398089A CN 202111645809 A CN202111645809 A CN 202111645809A CN 114398089 A CN114398089 A CN 114398089A
Authority
CN
China
Prior art keywords
operating system
electronic device
user
target
standby
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.)
Withdrawn
Application number
CN202111645809.6A
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.)
Apollo Zhilian Beijing Technology Co Ltd
Original Assignee
Apollo Zhilian Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apollo Zhilian Beijing Technology Co Ltd filed Critical Apollo Zhilian Beijing Technology Co Ltd
Priority to CN202111645809.6A priority Critical patent/CN114398089A/en
Publication of CN114398089A publication Critical patent/CN114398089A/en
Withdrawn 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a system switching method and device, electronic equipment and a medium, and relates to the technical field of computers, in particular to the technical field of car networking and intelligent cabins. The implementation scheme is as follows: in response to a system switching operation of a user in a current operating system, determining a target operating system from at least one standby operating system; setting the value of the starting flag bit as the identification of a target operating system; and restarting the electronic device to run the target operating system based on the start flag.

Description

System switching method and device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of car networking and intelligent cabin technologies, and in particular, to a system switching method and apparatus for an electronic device, a computer-readable storage medium, and a computer program product.
Background
The electronic equipment provides great convenience for the life of people. The electronic device may provide various functions to a user through a program installed therein. The operating system is a system program for managing hardware and software resources of the electronic device, and is a basis for running application programs (apps) such as navigation, shopping, photographing, video browsing and the like. During the use of electronic devices, the operating system typically needs to be updated and upgraded many times.
The approaches described in this section are not necessarily approaches that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, unless otherwise indicated, the problems mentioned in this section should not be considered as having been acknowledged in any prior art.
Disclosure of Invention
The present disclosure provides a system switching method and apparatus for an electronic device, a computer-readable storage medium, and a computer program product.
According to an aspect of the present disclosure, a system switching method for an electronic device is provided, where the electronic device stores a start flag, a current operating system, and at least one standby operating system, and the start flag is used to indicate an operating system run by the electronic device, and the method includes: determining a target operating system from the at least one standby operating system in response to a system switching operation of a user in the current operating system; setting the value of the starting flag bit as the identification of the target operating system; restarting the electronic device to run the target operating system based on the start flag.
According to an aspect of the present disclosure, a system switching apparatus for an electronic device is provided, where the electronic device stores a start flag, a current operating system, and at least one standby operating system, and the start flag is used to indicate an operating system run by the electronic device, the apparatus includes: an interaction module configured to determine a target operating system from the at least one standby operating system in response to a system switching operation of a user in the current operating system; a setting module configured to set a value of the start flag bit to an identification of the target operating system; and a start module configured to restart the electronic device so as to run the target operating system based on the start flag.
According to an aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor, the memory storing instructions executable by the at least one processor to enable the at least one processor to perform the method.
According to an aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the above-described method.
According to an aspect of the disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the above-described method.
According to one or more embodiments of the disclosure, the quick switching of the operating system of the electronic equipment is realized, so that a user can flexibly and conveniently select and use the required operating system.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the embodiments and, together with the description, serve to explain the exemplary implementations of the embodiments. The illustrated embodiments are for purposes of illustration only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements.
Fig. 1 shows a flow diagram of a system switching method for an electronic device according to an embodiment of the present disclosure;
2A-2F illustrate schematic diagrams of exemplary interaction interfaces, according to embodiments of the present disclosure;
FIG. 3 shows a flow diagram of a system handover process according to an embodiment of the present disclosure;
fig. 4 shows a block diagram of a system switching apparatus for an electronic device according to an embodiment of the present disclosure; and
FIG. 5 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, the timing relationship, or the importance relationship of the elements, and such terms are used only to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, and in some cases, based on the context, they may also refer to different instances.
The terminology used in the description of the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the elements may be one or more. Furthermore, the term "and/or" as used in this disclosure is intended to encompass any and all possible combinations of the listed items.
In the disclosure, the processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the related users are all in accordance with the regulations of related laws and regulations, and do not violate the customs of the public order.
The operating system of an electronic device typically needs to be updated and upgraded many times. However, the current electronic devices do not provide an operating system switching function. After the electronic equipment is upgraded to the operating system of the new version, the electronic equipment cannot be returned to the operating system of the old version for use.
If a user finds that a new version of the operating system is incompatible with some applications or that a fatal problem exists with the new version of the operating system that does not meet the user's normal usage requirements, the new version of the operating system is not as good as the old version, and the user may wish to rollback the operating system to the old version. However, as mentioned above, since the electronic device does not provide the os switching function, the user can only implement the system version rollback by means of a flush (i.e., reinstalling the system).
The technical threshold of the brushing machine is high, and the operation is complex. If the user swipes himself, it is likely that the machine will fail to be swiped, so that the electronic device cannot be normally started (namely, the device is colloquially called to be changed into a brick). If the user sends the electronic device to the after-sales service place for refreshing, the user needs to consume a large amount of waiting time because the time period of the after-sales service is usually long, and the problems of user data privacy and security exist.
Therefore, the embodiment of the disclosure provides a system switching method for an electronic device, which can enable a user to conveniently and quickly switch an operating system of the electronic device, and meet the use requirements of the user. The system switching method of the embodiment of the disclosure can switch the operating system of the electronic device from a new version to an old version, thereby realizing system rollback; the operating system of the electronic equipment can be switched from the old version to the new version, so that system upgrading is realized.
Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 shows a flow diagram of a system switching method 100 for an electronic device according to an embodiment of the disclosure. The method 100 is performed in an electronic device.
The electronic devices may be various types of computer devices, such as portable handheld devices (including cell phones, tablets, Personal Digital Assistants (PDAs), etc.), general purpose computers (such as personal computers and laptops), workstation computers, wearable devices (including smart watches, smart glasses, etc.), in-vehicle smart devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, and so forth. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux, or Linux-like operating systems (e.g., GOOGLE Chrome OS); or include various Mobile operating systems such as Android, iOS, MICROSOFT Windows Mobile OS, Windows Phone, etc.
As shown in fig. 1, the method 100 includes:
step 110, responding to the system switching operation of a user in the current operating system, and determining a target operating system from at least one standby operating system;
step 120, setting the value of the start flag bit as the identifier of the target operating system; and
and step 130, restarting the electronic equipment so as to operate the target operating system based on the starting flag bit.
According to the embodiment of the disclosure, the starting flag bit can be modified and the electronic device can be restarted based on the system switching operation of the user, so that the quick switching of the operating system is realized, the user can flexibly and conveniently select the required operating system, and the use experience of the user on the electronic device is improved.
In an embodiment of the present disclosure, a storage space of a memory of an electronic device is divided into a plurality of areas, each area for storing a specific type of data. For example, the memory space of the electronic device may be divided into a boot partition (bootloader) for storing a boot program and a boot parameter, at least two system partitions (slots) for storing an operating system, a user data partition (userdata) for storing user data including an application installed by a user and data generated when the application is used, and the like. Each system partition is used to store an operating system. It should be noted that the operating systems stored by different system partitions may be the same or different.
At least two operating systems are stored in the electronic device. The at least two operating systems include a currently running operating system (i.e., a "current operating system") and at least one currently non-running available operating system (i.e., a "standby operating system"). As described above, the current operating system and each of the standby operating systems are stored in the corresponding system partitions.
The electronic equipment also stores a starting zone bit. The start flag is used for indicating an operating system operated by the electronic equipment. The value of the start flag bit may be modified during the current operating system run. After the value of the start flag is modified, the start flag is used to indicate an operating system that is run when the electronic device is started next time, that is, the operating system that is run after the electronic device is restarted. The boot flag, which is one of the boot parameters, is stored in the boot partition.
In step 110, a target operating system is determined from the at least one standby operating system in response to a system switch operation by a user in the current operating system.
The system switching operation may be any Graphical User Interface (GUI) interaction, such as clicking, long-pressing, dragging, and the like.
According to some embodiments, in a case where only one standby operating system is stored in the electronic device (accordingly, the electronic device includes two system partitions), a system switching component may be provided in the interactive interface of the current operating system, and accordingly, the standby operating system may be determined as the target operating system in response to the user's interactive operation on the system switching component. Therefore, the switching function between the two operating systems can be realized, namely, the current operating system is switched to the standby operating system.
Specifically, an event to be monitored may be bound for the system switching component, and a callback function to be executed when the event occurs may be set. The event to be monitored is the interactive operation of the user for the system switching component, and the callback function defines a series of operations to be executed after the interactive operation of the user for the system switching component is monitored, such as determining a target operating system (step 110), modifying a start flag (step 120), restarting the electronic device (step 130), and the like.
The system switch component may be, for example, a Button (Button), a view component (e.g., text view, image view ImageView), or the like. The interaction operation may be, for example, a click operation. Accordingly, an onClick click event can be bound for Button (or TextView, ImageView). When the user clicks the Button (or TextView or ImageView), the user is considered to initiate a system switching request, and the standby operating system is used as a target operating system to be switched to.
Fig. 2A, 2B show schematic diagrams of the interactive interfaces 210, 220 in case the electronic device has only one standby operating system stored.
As shown in FIG. 2A, interactive interface 210 is a "system setup" interface for an electronic device. The interface 210 includes components 211 and 216, each of which corresponds to a system functionality option. The user can set the corresponding system function by clicking on the component. For example, the user may click on the "date and time" component 212 to enter a date and time setting interface to set the date and time.
In fig. 2A, a "system switch" component 214 is used to implement the system switching method of the embodiment of the present disclosure, which can switch the electronic device from the current operating system to the standby operating system. Specifically, in the case where the version number of the current operating system is higher than the version number of the standby operating system, system rollback (i.e., switching from the high-version system to the low-version system) may be implemented; in the event that the version number of the current operating system is lower than the version number of the alternate operating system, a system upgrade (i.e., a switch from a low-version system to a high-version system) may be implemented.
The component 214 binds an onClick event that the electronic device continues to listen for. When the user clicks the component 214, a click event of the component 214 is triggered, and after the electronic device monitors the click event, step 110 may be executed, in response to the click operation of the user, the standby operating system is determined as the target operating system to be switched to, and system switching is completed through subsequent steps 120 and 130.
According to other embodiments, after the electronic device monitors the click event of the component 214, the interface 220 shown in fig. 2B may be further entered to present a prompt message 221 to the user for prompting the user about the version number of the target operating system to which the user is going to switch. When the user clicks the "ok" button 223 (the button 223 is bound with a click event), step 110 may be performed, in response to the user's click operation, determining the standby operating system (2.0 version system) as the target operating system, and completing the system switching through the subsequent steps 120, 130. When the user clicks the "cancel" button 222 (the button 222 is bound with a click event), the user returns to the interface 210 and continues to monitor the click operation of the "system switch" component 214 by the user.
According to other embodiments, in a case that at least two standby operating systems are stored in the electronic device (accordingly, the electronic device includes at least three system partitions), a standby system list may be displayed in the interactive interface of the current operating system, the standby system list including a plurality of list items, each list item corresponding to one standby operating system. Correspondingly, in response to the selection operation of the user on the list item in the standby system list, the standby operating system corresponding to the list item is determined as the target operating system. Thus, a switching function between a plurality of operating systems can be realized.
For example, FIG. 2C shows a schematic view of interactive interface 230 in the case where the electronic device stores two alternate operating systems. The interface 230 may be displayed, for example, after the user clicks on the "system toggle" component 214 in the aforementioned interface 210.
As shown in fig. 2C, a prompt message 231 is displayed in the interface 230 for prompting the user about the version number (2.2 version) of the current operating system and the operation that the user can perform (i.e., selecting the version of the system that the user wishes to switch to). A standby system list is displayed in interface 230 and includes list items 232 and 233. List item 232 corresponds to alternate operating system 1 version 2.0 and list item 233 corresponds to alternate operating system 2 version 2.3. The user can select the standby operating system to which the user wants to switch by clicking the corresponding list item, and the standby operating system selected by the user is the target operating system.
According to some embodiments, the version number of the target operating system can be lower than that of the current operating system, so that the version rollback of the operating system can be realized, and a user can fast and conveniently rollback to an old version system for use when the new version system has problems and cannot meet the use requirements, without waiting for the next system upgrade and repair problems or flashing.
According to some embodiments, in a case that a system upgrade function already exists in an electronic device, considering that a user may easily implement system switching from an old version to a new version (for example, a manner of detecting a new version system and performing OTA download upgrade may be implemented), the system switching method according to the embodiments of the present disclosure may be implemented only as a system rollback method, and a system rollback function is provided, that is, a system is switched from a new version system to an old version system.
2D-2F illustrate schematic diagrams of the electronic device interaction interface 240 and 260 in a system fallback scenario.
As shown in FIG. 2D, interface 240 is a "system setup" interface for an electronic device. The interface 240 includes components 241-246, each of which corresponds to a system functionality option. The user can set the corresponding system function by clicking on the component.
In FIG. 2D, a "system rollback" component 244 is used to implement the system rollback method of embodiments of the present disclosure. Component 244 has bound an onClick event that the electronic device continues to listen for.
In the event that only one alternate operating system is stored in the electronic device and the alternate operating system has a version number lower than the current operating system, the "system rollback" component 244 in the interface 240 may click. When the user clicks on component 244, a click event of component 244 is triggered. After monitoring the click event, the electronic device may execute step 110, determine the standby operating system as the target operating system to be rolled back to in response to the click operation of the user, and complete the system rolling back through subsequent steps 120 and 130.
According to other embodiments, after the electronic device hears the click event of the component 244, the interface 250 as shown in fig. 2E may be further entered to present a prompt message 251 to the user for prompting the user for the version number of the target operating system to which the user is going to rollback. When the user clicks the "ok" button 253 (the button 253 is bound with a click event), step 110 may be performed, in response to the user's click operation, determining the standby operating system (2.0 version system) as the target operating system, and completing the system rollback through the subsequent steps 120, 130. When the user clicks the "cancel" button 252 (the button 252 is bound with a click event), the user returns to the interface 240, and continues to monitor the clicking operation of the "system rollback" component 244 by the user.
In the case where only one standby operating system is stored in the electronic device and the version number of the standby operating system is higher than that of the current operating system, since an operating system of a version lower than that of the current operating system does not exist in the electronic device, system rollback cannot be performed. In this case, the "system rollback" component 244 in the interface 240 may be set to grey and may not be clickable, according to some embodiments.
In the case where at least two alternate operating systems are stored in the electronic device, interface 260 may be entered when the user clicks on "system rollback" component 244 in interface 240. A prompt message 261 is displayed in the interface 260 to prompt the user for the version number of the current operating system (version 2.2) and the operations that the user can perform (i.e., select the version of the system that the user wishes to rollback to). A standby system list is displayed in interface 260 and includes list items 262 and 263. List item 262 corresponds to alternate operating system 1 version 2.0 and list item 263 corresponds to alternate operating system 2 version 2.3.
The backup operating system may have a version number lower or higher than the current operating system. According to some embodiments, in the standby system list, the status of the list item corresponding to the standby operating system with the version number lower than that of the current operating system is set to be selectable, and the status of the list item corresponding to the standby operating system with the version number higher than that of the current operating system is set to be unselected and displayed in grey, so that the user is prompted about the system version which can be currently backed up.
For example, in the interface 260, the version number 2.0 of the standby operating system 1 corresponding to the list item 262 is lower than the version number 2.2 of the current operating system, so the status of the list item 262 is optional, that is, the user may click on the selected list item 262, in response to the selection operation of the user, determine the standby operating system 1 as the target operating system to be rolled back to, and complete the system rolling back through the subsequent steps 120 and 130. The version number 2.3 of the standby operating system 2 corresponding to the list item 263 is higher than the version number 2.2 of the current operating system, so the status of the list item 263 is grey and unselected.
In step 120, the value of the start flag bit is set to the identity of the target operating system. According to some embodiments, the identification of the target operating system may be the address of the system partition in which the target operating system is located (i.e., the target system partition), i.e., the value of the start flag is set to the address of the target system partition. Therefore, after the electronic equipment is restarted, jumping to the target system partition to execute the code of the target operating system, and running the target operating system.
According to some embodiments, the method 100 further comprises: before restarting the electronic device, the cache data and the user data in the electronic device are cleared. Therefore, the problem of compatibility caused by the existence of data in the operating system before switching after the electronic equipment is restarted can be avoided, and the operating system after switching can be ensured to run normally and stably.
Fig. 3 shows a flow diagram of a system handover procedure 300 (fallback procedure) according to an embodiment of the present disclosure. Before the process 300 is executed, a "system fallback" component may be set in a "system setup" interface, an onClick click event is bound to the system fallback component, and a callback function that needs to be called when the click event occurs is set. In the Android system, the callback function may be implemented as an HIDL (hal (hardware Abstraction layer) Interface Description Language) Interface (hereinafter, abbreviated as "HIDL Interface") of the Framework layer.
The HIDL interface is used for modifying a start flag bit, cleaning a cache and user data, and restarting the electronic equipment. It can be understood that the HIDL interface has an access right (i.e., a read-write right) to start the flag bit by adjusting the SELinux policy of the Android system.
In the embodiment shown in fig. 3, two operating systems (i.e., a current operating system and a standby operating system) are stored in the electronic device, and the version number of the current operating system is higher than that of the standby operating system, i.e., the current operating system is a new version system and the standby operating system is an old version system.
As shown in FIG. 3, in step 301, the user clicks the "System Back" button in the "System settings" interface in the current operating system (new version system), triggering an onClick event.
In step 302, in response to the onClick event, the HIDL interface corresponding to the onClick event is called.
In step 303, the boot flag in the BootLoader boot program is rewritten, and the value of the boot flag is modified to the address of the system partition where the old version system is located.
In step 304, a request is made to enter a Recovery system (Recovery system is a piece of program code for data cleaning) for data cleaning.
In step 305, the Recovery system is entered to perform data cleaning to clean data such as user data, App cache, Framework cache, and the like.
In step 306, the Recovery system completes data cleaning and restarts the electronic device.
In step 307, after the electronic device is restarted, the BootLoader bootstrap program is loaded and executed first.
In step 308, the BootLoader bootstrap program reads the value of the boot flag, and determines the address of the target system partition to be booted.
In step 309, the BootLoader bootstrap program loads the operating system code (i.e., the old version system) in the target system partition as indicated by the boot flag.
In step 310, the loaded code is executed, thereby starting and running the old version system.
According to the embodiment of the disclosure, a system switching device for an electronic device is also provided. The electronic equipment stores a starting zone bit, a current operating system and at least one standby operating system, and the starting zone bit is used for indicating the operating system operated by the electronic equipment. Fig. 4 shows a block diagram of a system switching apparatus 400 for an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the apparatus 400 includes:
an interaction module 410 configured to determine a target operating system from the at least one standby operating system in response to a system switching operation of a user in the current operating system;
a setting module 420 configured to set a value of the launch flag bit to an identification of the target operating system; and
a start module 430 configured to restart the electronic device to run the target operating system based on the start flag.
According to the embodiment of the disclosure, the starting flag bit can be modified and the electronic device can be restarted based on the system switching operation of the user, so that the quick switching of the operating system is realized, the user can flexibly and conveniently select the required operating system, and the use experience of the user on the electronic device is improved.
According to some embodiments, the electronic device stores a standby operating system, and the interaction module 410 is further configured to: and in response to the interactive operation of the system switching component by the user, determining the standby operating system as the target operating system.
According to some embodiments, the electronic device stores at least two alternate operating systems, the interaction module 410 is further configured to: and responding to the selection operation of a user on list items in the standby system list, and determining the standby operating system corresponding to the list items as the target operating system.
According to some embodiments, the version number of the target operating system is lower than the version number of the current operating system.
According to some embodiments, the setup module 420 is further configured to: and setting the value of the starting zone bit as the address of a target system partition, wherein the target system partition is the system partition where the target operating system is located.
According to some embodiments, the apparatus 400 further comprises: a clearing module configured to clear the cached data and the user data in the electronic device before restarting the electronic device.
It should be understood that the various modules or units of the apparatus 400 shown in fig. 4 may correspond to the various steps in the method 100 described with reference to fig. 1. Thus, the operations, features and advantages described above with respect to the method 100 are equally applicable to the apparatus 400 and the modules and units comprised thereby. Certain operations, features and advantages may not be described in detail herein for the sake of brevity.
Although specific functionality is discussed above with reference to particular modules, it should be noted that the functionality of the various modules discussed herein may be divided into multiple modules and/or at least some of the functionality of multiple modules may be combined into a single module. For example, the setup module 420 and the launch module 430 described above may be combined into a single module in some embodiments.
It should also be appreciated that various techniques may be described herein in the general context of software, hardware elements, or program modules. The various modules described above with respect to fig. 4 may be implemented in hardware or in hardware in combination with software and/or firmware. For example, the modules may be implemented as computer program code/instructions configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, the modules may be implemented as hardware logic/circuitry. For example, in some embodiments, one or more of the modules 410-430 may be implemented together in a System on a Chip (SoC). The SoC may include an integrated circuit chip (which includes one or more components of a Processor (e.g., a Central Processing Unit (CPU), microcontroller, microprocessor, Digital Signal Processor (DSP), etc.), memory, one or more communication interfaces, and/or other circuitry), and may optionally execute received program code and/or include embedded firmware to perform functions.
According to an embodiment of the present disclosure, there is also provided an electronic device, a readable storage medium, and a computer program product.
Referring to fig. 5, a block diagram of a structure of an electronic device 500, which may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM502, and the RAM503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the electronic device 500 are connected to the I/O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 may be any type of device capable of inputting information to the device 500, and the input unit 506 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and/or a remote controller. Output unit 507 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 508 may include, but is not limited to, a magnetic disk, an optical disk. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and/or a chipset, such as bluetoothTMDevices, 802.11 devices, Wi-Fi devices, WiMAX devices, cellular communication devices, and/or the like.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 501 performs the various methods and processes described above, such as the method 100. For example, in some embodiments, the method 100 may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM502 and/or the communication unit 509. When loaded into RAM503 and executed by the computing unit 501, may perform one or more of the steps of the method 100 described above. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the method 100 by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be performed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the above-described methods, systems and apparatus are merely exemplary embodiments or examples and that the scope of the present invention is not limited by these embodiments or examples, but only by the claims as issued and their equivalents. Various elements in the embodiments or examples may be omitted or may be replaced with equivalents thereof. Further, the steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced with equivalent elements that appear after the present disclosure.

Claims (15)

1. A system switching method for an electronic device, the electronic device storing a start flag, a current operating system and at least one standby operating system, the start flag indicating an operating system run by the electronic device, the method comprising:
determining a target operating system from the at least one standby operating system in response to a system switching operation of a user in the current operating system;
setting the value of the starting flag bit as the identification of the target operating system; and
restarting the electronic device to run the target operating system based on the start flag.
2. The method of claim 1, wherein the electronic device stores a standby operating system, and wherein determining a target operating system from the at least one standby operating system in response to a system switch operation by a user in the current operating system comprises:
and in response to the interactive operation of the system switching component by the user, determining the standby operating system as the target operating system.
3. The method of claim 1, wherein the electronic device stores at least two alternate operating systems, and wherein determining a target operating system from the at least one alternate operating system in response to a system switch operation by a user in the current operating system comprises:
and responding to the selection operation of a user on list items in the standby system list, and determining the standby operating system corresponding to the list items as the target operating system.
4. The method of claim 2 or 3, wherein the version number of the target operating system is lower than the version number of the current operating system.
5. The method of any of claims 1-4, wherein setting the value of the launch flag bit to the identity of the target operating system comprises:
and setting the value of the starting zone bit as the address of a target system partition, wherein the target system partition is the system partition where the target operating system is located.
6. The method of any of claims 1-5, further comprising:
and before restarting the electronic equipment, clearing the cache data and the user data in the electronic equipment.
7. A system switching apparatus for an electronic device, the electronic device storing a start flag, a current operating system and at least one standby operating system, the start flag indicating an operating system run by the electronic device, the apparatus comprising:
an interaction module configured to determine a target operating system from the at least one standby operating system in response to a system switching operation of a user in the current operating system;
a setting module configured to set a value of the start flag bit to an identification of the target operating system; and
a boot module configured to reboot the electronic device to run the target operating system based on the boot flag.
8. The apparatus of claim 7, wherein the electronic device stores a standby operating system, the interaction module further configured to:
and in response to the interactive operation of the system switching component by the user, determining the standby operating system as the target operating system.
9. The apparatus of claim 7, wherein the electronic device stores at least two alternate operating systems, the interaction module further configured to:
and responding to the selection operation of a user on list items in the standby system list, and determining the standby operating system corresponding to the list items as the target operating system.
10. The apparatus of claim 8 or 9, wherein the version number of the target operating system is lower than the version number of the current operating system.
11. The apparatus of any of claims 7-10, wherein the setup module is further configured to:
and setting the value of the starting zone bit as the address of a target system partition, wherein the target system partition is the system partition where the target operating system is located.
12. The apparatus of any of claims 7-11, further comprising:
a clearing module configured to clear the cached data and the user data in the electronic device before restarting the electronic device.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program, wherein the computer program realizes the method of any one of claims 1-6 when executed by a processor.
CN202111645809.6A 2021-12-30 2021-12-30 System switching method and device, electronic equipment and medium Withdrawn CN114398089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111645809.6A CN114398089A (en) 2021-12-30 2021-12-30 System switching method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111645809.6A CN114398089A (en) 2021-12-30 2021-12-30 System switching method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114398089A true CN114398089A (en) 2022-04-26

Family

ID=81229931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111645809.6A Withdrawn CN114398089A (en) 2021-12-30 2021-12-30 System switching method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114398089A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033790A (en) * 2010-12-15 2011-04-27 中兴通讯股份有限公司 Method and device for upgrading embedded-type system BOOTROM
CN107643949A (en) * 2017-10-19 2018-01-30 西安小喵信息科技有限公司 Application program switching system and method, storage medium and electronic equipment
CN107967141A (en) * 2017-11-27 2018-04-27 北京小米移动软件有限公司 Operating system update method, apparatus and terminal
CN109032846A (en) * 2018-08-08 2018-12-18 京信通信系统(中国)有限公司 Equipment remote backup upgrade method, device, computer storage medium and equipment
CN109189485A (en) * 2018-08-08 2019-01-11 烽火通信科技股份有限公司 A kind of system starting management of embedded device, operating system configuration method
CN110998517A (en) * 2017-08-02 2020-04-10 万事达卡国际公司 System and method for customized operating system translation
CN112612524A (en) * 2020-12-22 2021-04-06 西人马(西安)测控科技有限公司 Method, device and equipment for starting Linux system and storage medium
CN112860297A (en) * 2021-01-19 2021-05-28 北京中科慧眼科技有限公司 Storage system based on automobile binocular camera and system updating method
CN113407318A (en) * 2021-06-04 2021-09-17 Oppo广东移动通信有限公司 Operating system switching method and device, computer readable medium and electronic equipment
CN113721959A (en) * 2021-08-30 2021-11-30 联想(北京)有限公司 Information processing method and device and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033790A (en) * 2010-12-15 2011-04-27 中兴通讯股份有限公司 Method and device for upgrading embedded-type system BOOTROM
CN110998517A (en) * 2017-08-02 2020-04-10 万事达卡国际公司 System and method for customized operating system translation
CN107643949A (en) * 2017-10-19 2018-01-30 西安小喵信息科技有限公司 Application program switching system and method, storage medium and electronic equipment
CN107967141A (en) * 2017-11-27 2018-04-27 北京小米移动软件有限公司 Operating system update method, apparatus and terminal
CN109032846A (en) * 2018-08-08 2018-12-18 京信通信系统(中国)有限公司 Equipment remote backup upgrade method, device, computer storage medium and equipment
CN109189485A (en) * 2018-08-08 2019-01-11 烽火通信科技股份有限公司 A kind of system starting management of embedded device, operating system configuration method
CN112612524A (en) * 2020-12-22 2021-04-06 西人马(西安)测控科技有限公司 Method, device and equipment for starting Linux system and storage medium
CN112860297A (en) * 2021-01-19 2021-05-28 北京中科慧眼科技有限公司 Storage system based on automobile binocular camera and system updating method
CN113407318A (en) * 2021-06-04 2021-09-17 Oppo广东移动通信有限公司 Operating system switching method and device, computer readable medium and electronic equipment
CN113721959A (en) * 2021-08-30 2021-11-30 联想(北京)有限公司 Information processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN106951335B (en) Process daemon method and mobile terminal
US10470133B2 (en) Electronic device and method for controlling application and component
US20110061056A1 (en) Portable device and method for providing shortcuts in the portable device
US10474329B2 (en) Selective generation and display of interfaces of a website or program
EP2261799A1 (en) Electronic device, computer-implemented system, and application display control method therefor
CN114625391B (en) Optimizing device update schedules
EP3571584B1 (en) Computers with bios optimization
CN109783149A (en) Start-up control method, device, mobile terminal and storage medium
CN112882734A (en) Upgrading method and device, computer equipment and medium
CN112465466A (en) Flow task execution method and device, computer equipment and storage medium
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN115629785A (en) Upgrading method, electronic device and storage medium
CN114398089A (en) System switching method and device, electronic equipment and medium
CN115033261A (en) Program updating method, device, equipment and storage medium
US11204749B2 (en) State machines for installation management
CN115357355A (en) Method, device and equipment for software cross-system migration and readable storage medium
CN113656063A (en) System version replacing method, device, equipment and computer readable medium
CN114228745A (en) Driving system module control method, device, equipment, medium, product and vehicle
US11606457B2 (en) Technology and method for selectively providing network function to application of device
CN112988554B (en) SDK detection method, device, SDK program, device, and storage medium
CN108595281B (en) Moving object processing method, moving object processing device, storage medium and terminal
CN112015617A (en) Cloud computing-based application program multitask monitoring method and system
CN116149819A (en) Application management method and device, electronic equipment and storage medium
CN110221896A (en) Interface display method and device
CN113360236A (en) Page processing method, device, equipment, storage medium and program product

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220426

WW01 Invention patent application withdrawn after publication