Electronic equipment control method and device, electronic equipment and readable storage medium

By switching to the second operating system foreground to run when the operating system is updated, the problem of users being unable to use electronic devices is solved, and an unconscious update operation is achieved, which improves the user experience.

CN119415127APending Publication Date: 2025-02-11VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411434919.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

During the operating system update process, users are unable to use electronic devices, resulting in poor user experience.

Method used

By controlling the first operating system to exit the foreground operation when the system update package of the first operating system is downloaded, the first operating system is updated, and switching to the second operating system foreground operation during this process, ensuring that the user can continue to use the electronic device .

Benefits of technology

It realizes the update operation without perception when the operating system is updated, avoiding the problem of users being unable to use electronic devices and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415127A_ABST
    Figure CN119415127A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic equipment control method and device, electronic equipment and a readable storage medium, and belongs to the technical field of electronic equipment. The control method of the electronic equipment comprises the following steps: running a first operating system in a foreground of the electronic equipment; and under the condition that the system update package of the first operating system is downloaded, controlling the first operating system to quit foreground running, updating the first operating system, and controlling the foreground of the electronic equipment to run a second operating system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a control method and device of an electronic equipment, an electronic equipment, and a readable storage medium. Background Art

[0002] With the continuous development of mobile Internet, electronic equipment manufacturers are actively promoting the upgrade of operating systems. In related technologies, after an electronic device downloads a complete system update package, it upgrades the operating system according to the system update package. When the operating system is upgraded, it is necessary to terminate all operations in the operating system, exit the operating system, restart the operating system and enter the system update page. Only after the operating system update is completed and restarted can the operating system be restarted. During the update process, users cannot use the electronic device. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a control method and device for an electronic device, an electronic device, and a readable storage medium, which can solve the problem that a user cannot use the electronic device during an operating system update.

[0004] In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, the method comprising:

[0005] Running a first operating system in the foreground of the electronic device;

[0006] When the system update package of the first operating system is downloaded completely, the first operating system is controlled to exit the foreground operation, the first operating system is updated, and the electronic device is controlled to run the second operating system in the foreground.

[0007] In a second aspect, an embodiment of the present application provides a control device, including:

[0008] A first operating module, used to run a first operating system in the foreground of the electronic device;

[0009] The update module controls the first operating system to exit the foreground operation, updates the first operating system, and controls the electronic device to run the second operating system in the foreground when the system update package of the first operating system is downloaded.

[0010] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.

[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.

[0014] In an embodiment of the present application, by setting up a situation where the system update package of the first operating system is downloaded, the first operating system is controlled to exit the foreground operation, the first operating system is updated, and the electronic device is controlled to run the second operating system in the foreground, so that during the process of updating the first operating system, the user can continue to use the second operating system to operate the electronic device, and the first operating system can be updated without the user being aware of the update operation of the first operating system. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a flow chart of a control method of an electronic device provided in an embodiment of the present application;

[0016] Figure 2 is a schematic diagram of changes in the screen display interface of an electronic device provided in an embodiment of the present application;

[0017] Figure 3 This is one of the schematic diagrams of changes in the operation of the first operating system and the second operating system provided in one embodiment of the present application;

[0018] Figure 4 is a schematic diagram of a setting interface of a second operating system provided in an embodiment of the present application;

[0019] Figure 5 This is the second schematic diagram of the changes in the operation of the first operating system and the second operating system provided in an embodiment of the present application;

[0020] Figure 6 is a schematic diagram of the structure of a control device provided in an embodiment of the present application;

[0021] Figure 7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0022] Figure 8 It is a schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] In conjunction with the accompanying drawings, the control method, device, electronic device, readable storage medium and computer program product of the electronic device provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0026] See also Figure 1 , an embodiment of the present application provides a control method of an electronic device, the method comprising:

[0027] S110, running a first operating system in the foreground of the electronic device;

[0028] At least two operating systems are pre-installed in the electronic device, and the at least two operating systems include a first operating system and a second operating system. The first operating system and the second operating system may be operating systems based on different technologies or operating systems based on the same technology. For example, the first operating system and the second operating system are both Android operating systems. For another example, the first operating system is the Android operating system and the second operating system is the BlueOS operating system.

[0029] In a possible implementation, the electronic device is provided with a first processor and a second processor, wherein the first processor runs a first operating system and the second processor runs a second operating system.

[0030] In another possible implementation, a single processor is provided in the electronic device, and the first operating system and the second operating system respectively run on different cores of the processor.

[0031] The screen of the electronic device at least displays the operation interface of the operating system running in the foreground. The first operating system and the second operating system installed in the electronic device may be in a closed state, and the other may be in a running state. In this case, the operation interface of the operating system in the running state is displayed on the screen of the electronic device. The first operating system and the second operating system installed in the electronic device may also be both in a running state, one running in the foreground and the other running in the background. In this case, the screen of the electronic device displays the operation interface of the operating system running in the foreground.

[0032] S120, when the system update package of the first operating system is downloaded completely, control the first operating system to exit the foreground operation, update the first operating system, and control the electronic device to run the second operating system in the foreground.

[0033] Before S120, a system update instruction may be received, and system update prompt information may be displayed according to the system update instruction; a first input made by a user in response to the system update prompt information may be received; and in response to the first input, a system update package corresponding to the system update instruction may be started to be downloaded.

[0034] The server used by the service provider of the first operating system may send the system update instruction and the system update package to the electronic device. The electronic device downloads the update data required for the update, that is, the electronic device downloads the system update package.

[0035] The first input may be a single click, double click, long press, or the like made on a control, icon, or the like displayed by the first operating system, or may be a specific sliding gesture made, a voice command issued, or the like.

[0036] The first input is used to instruct the first operating system to update. The first input can also be received when the program interface of the first application of the first operating system is displayed, indicating that the user is using the first application in the first operating system, the first operating system is in a running state rather than a standby state, and the user has a need to operate the electronic device.

[0037] The first operating system is controlled to exit the foreground operation, and the first operating system is in the background operation. The first operating system in the background operation can update the first operating system through the pre-downloaded system update package. The process of updating the first operating system is run in the background, so that the user has no perception of shutting down the system, restarting the system, and displaying the update interface involved in the process of updating the first operating system.

[0038] When the first operating system is being updated in the background, the second operating system is switched to run in the foreground and the operation interface of the second operating system is displayed, that is, the user can operate the second operating system, thereby avoiding the user being unable to use the electronic device normally due to the update of the first operating system.

[0039] In the control method of the electronic device provided in the present application, by setting up a situation where the system update package of the first operating system is downloaded, the first operating system is controlled to exit the foreground operation, the first operating system is updated, and the electronic device is controlled to run the second operating system in the foreground, so that during the process of updating the first operating system, the user can continue to use the second operating system to operate the electronic device, and the update of the first operating system can be achieved without the user being aware of the update operation of the first operating system.

[0040] In some embodiments, S110 includes:

[0041] S210, running a first operating system in the foreground of the electronic device, and displaying an interface of a first application in the first operating system;

[0042] In S120, controlling the electronic device to run the second operating system in the foreground includes:

[0043] S220, controlling the electronic device to run the second operating system in the foreground, and displaying the interface of the second application in the second operating system.

[0044] The first application is an application installed in the first operating system, and the second application is an application installed in the second operating system. The first application and the second application can be the same application or different applications. The second application is the same application as the first application, so that the user can continue the operation of the first application in the first operating system through the second application in the second operating system. The second application can also be a pre-set application, or the most frequently used application in the second operating system, or the application used by the user in the second operating system before the user exits the foreground operation in the second operating system. By directly displaying the program interface of the second application in the second operating system, the operation of the user to find and start the second application in the second operating system is reduced.

[0045] In some embodiments, the first application and the second application are the same application; before S120, the steps include:

[0046] S310, synchronizing the running data of the first application to the second application;

[0047] In S220, displaying the interface of the second application in the second operating system includes:

[0048] S320: Displaying an interface of a second application program in a second operating system according to the running data.

[0049] The operation data of the first application includes text, images, audio and video files browsed by the user through the first application, the browsing location for the file, setting information of the first application, login account of the first application, etc.

[0050] The first application and the second application can be the same application provided by the same program service provider and adapted to different operating systems, and the first application and the second application can also be the same application provided by the same program service provider and adapted to the same operating system. The first application and the second application are the same applications installed in different operating systems, which can be understood as the first application and the second application being exactly the same or highly similar. Since the first application and the second application are exactly the same or highly similar, the operation data of the first application can be used for the second application, so that the interface of the second application in the second operating system displayed according to the operation data is consistent with the first application. For example: the first application and the second application can be an instant messaging program installed in the first operating system and an instant messaging program installed in the second operating system, or a video player installed in the first operating system and a video player installed in the second operating system, or an audio player installed in the first operating system and an audio player installed in the second operating system, or a browser installed in the first operating system and a browser installed in the second operating system.

[0051] The first operating system is updated in the background using the downloaded system update package, and the second application is run in the foreground. The interface of the second application is displayed based on the running data so that the display of the second application is consistent with or similar to the first application operated by the user in the first operating system, thereby reducing the operations performed by the user in order to restore the operation progress in the first application in the second application when switching from the first operating system to the second operating system.

[0052] For example: See Figure 2 ,like Figure 2 As shown in (a), the screen displays the program interface of the instant messaging program A1, and user A communicates with user B through text messages through the instant messaging program A1 in the first operating system. The system update package of the first operating system is downloaded, and the operation data of the instant messaging program A1 in the first operating system is obtained, and the operation data includes the account information of user A logging into the instant messaging program A1, the account information of user B communicating with user A through text messages, the historical communication information of user A and user B displayed in the dialog box 12, and the to-be-sent information input by user A in the text box 11 of the instant messaging program A1 but not sent.

[0053] like Figure 2As shown in (b), the second operating system is switched to run in the foreground, and the first operating system is updated in the background through the system update package. The screen displays the program interface of the instant messaging program A2, and according to the running data of the instant messaging program A1, the instant messaging program A2 logs in to the account of user A in the second operating system, displays the dialog box 12 and historical communication information with user B, and displays the information to be sent in the text box 11.

[0054] In some embodiments, before S110, the steps include:

[0055] S410, when the first operating system is running in the foreground of the electronic device, in response to the completion of downloading the system update package of the first operating system, obtaining first running data of the first application program;

[0056] S420, updating the running state of the second application in the background according to the first running data;

[0057] S430, displaying update prompt information;

[0058] S120 includes:

[0059] S440, in response to the second input of the update prompt information, obtain the second running data of the first application, control the first operating system to exit the foreground operation, update the first operating system, and control the electronic device to run the second operating system in the foreground, and display the interface of the second application in the second operating system according to the second running data.

[0060] In S410 and S420, after downloading the system update package of the first operating system, the first operating data of the first application running in the foreground is obtained, and the operating state of the second application is updated according to the first operating data, so that the second application running in the background can maintain the same operating state as the first application running in the foreground.

[0061] The update prompt information can be displayed in a floating window, notification bar, etc. The update prompt information is used to prompt the user that the update data download is complete, and the user can update the first operating system at any time through the downloaded update data. The first input can be a click, long press, etc. on the location where the update prompt information is displayed. After receiving the first input, the second operation data of the first application is obtained again. Compared with the first operation data, the second operation data is obtained later and can more accurately reflect the real-time status of the first application.

[0062] In S440, the first operating system is updated in the background using the downloaded update data, the second application is run in the foreground, and the running state of the second application is updated again according to the second running data, so that the display of the second application is consistent with or similar to the first application operated by the user in the first operating system, so as to reduce the operation performed by the user in switching from the first operating system to the second operating system to restore the operation progress of the first application in the second application. The second application is updated twice using the first running data and the second running data, so as to avoid the situation where the user does not make the first input immediately after the update prompt information is displayed, resulting in the running state of the second application being displayed being different from the running state of the first application.

[0063] For example: See Figure 3 , among which Figure 3 As shown in (a), the user watches video file A through video program A1 in the first operating system. After downloading the update data of the first operating system, the update prompt information 51 is displayed, and the first operation data of the video program A1 in the first operating system is obtained, the first operation data includes video file A, the progress of watching video file A is 5:30, and the viewing setting parameters corresponding to watching video file A. The viewing setting parameters corresponding to watching video file A can be volume, brightness, contrast, whether to open the barrage, etc. Video program A2 is started in the background and the running state is adjusted to play video file A to 5:30, and the viewing setting parameters are adjusted to be consistent with video program A1.

[0064] like Figure 3 As shown in (b), after receiving the first input of the update prompt information 51, the second operation data of the video program A1 in the first operating system is obtained, and the second operation data includes the video file A, the progress of watching the video file A is 10:05, and the viewing setting parameters corresponding to watching the video file A.

[0065] like Figure 3 As shown in (c), the second operating system is switched to run in the foreground, the first operating system is updated in the background by updating data, the video program A2 in the second operating system is displayed in the foreground, and according to the second running data of the video program A1, the video program A2 is adjusted to play the video file A to 10:05.

[0066] In some embodiments, the first application and the second application are the same application; in S220, displaying the interface of the second application in the second operating system includes:

[0067] S510: If the second application is not installed in the second operating system, download and install the second application, and display the interface of the second application in the second operating system.

[0068] Since the first operating system and the second operating system can run independently, different applications can be installed independently, that is, when the first operating system downloads an update program, the second operating system may not have installed the same program as the first application running in the first operating system.

[0069] In S510, the second application can be searched in the second operating system by using the identification information of the acquired first application. The identification information of the first application can be the program name, version number, etc. of the first application, so that different applications provided by different program service providers can be distinguished by the identification information. If the second application is found in the second operating system, it means that the second operating system has installed the second application, and the second application can be directly started to display the interface of the second application. If the second application is not found in the second operating system, it means that the second operating system has not installed the second application. In this embodiment, if the second application is not installed in the second operating system, the second application is downloaded and installed, and then the second application is started to display the interface of the second application. Therefore, when the first operating system completes the download of the system update package, regardless of whether the user installs the second application in the second operating system, the interface of the second application can be displayed when the first operating system is updated.

[0070] See also Figure 4 In some embodiments, a first control 61 is provided in the second operating system; when the second application is not installed in the second operating system and the setting item of the first control 61 is to allow background upgrades to temporarily install the application in use, the second application is downloaded and installed, and the second application is started; when the second application is not installed in the second operating system and the setting item of the first control is to allow background upgrades not to temporarily install the application in use, no processing is performed; until the system update package of the first operating system is downloaded, S120 is executed to display the desktop interface of the second operating system.

[0071] In some embodiments, the second operating system has a shutdown state and a standby state; and before S510, the steps include:

[0072] S610, when the second operating system is in a closed state, start the second operating system, and search the second operating system for a second application corresponding to the identification information;

[0073] S620: When the second operating system is in a standby state, wake up the second operating system and search the second operating system for a second application corresponding to the identification information.

[0074] When the first operating system is running in the foreground, the second operating system can be in a closed state or in a standby state to reduce energy consumption. After the update data is downloaded, the state of the second operating system is detected. If the second operating system is in a closed state, the second operating system is started in the background, so that the second application corresponding to the identification information can be queried in the second operating system; if the second operating system is in a standby state, the second operating system is awakened in the background, so that the second application corresponding to the identification information can be queried in the second operating system.

[0075] Starting or waking up the second operating system, querying the second application, downloading and installing the second application are all performed in the background, and the first operating system is kept running in the foreground to reduce user perception or make the user unaware.

[0076] In some embodiments, the control method further comprises:

[0077] S710, when the first operating system is updated, uninstall the second application in the second operating system, control the second operating system to exit the foreground, and control the electronic device to run the updated first operating system in the foreground.

[0078] In some embodiments, S710 includes:

[0079] When the first operating system is updated, obtaining third running data of the second application running in the second operating system;

[0080] Control the second operating system to exit the foreground operation, and control the electronic device to run the updated first operating system in the foreground, and display the interface of the first application in the first operating system according to the third operation data;

[0081] The second application in the second operating system is deleted in the background.

[0082] After completing the update of the first operating system, the third running data of the second application running in the second operating system can be obtained; when the first operating system is switched to run in the foreground, the running state of the first application is updated according to the third running data, so as to switch back to the first operating system to run in the foreground, and keep the running state of the first application consistent with the running state of the second application before switching back to the first operating system to run in the foreground. The second application in the second operating system is deleted, thereby avoiding the second application from occupying the memory.

[0083] In some embodiments, after S710, the second operating system may be shut down or set to be in a standby state.

[0084] For example: See Figure 5 , among which Figure 5As shown in (a), the second operating system is running in the foreground, and the first operating system is updated in the background by updating data, and the video program A2 in the second operating system is displayed in the foreground, and according to the third running data of the video program A1, the video program A2 is adjusted to play the video file A to 10:05.

[0085] like Figure 5 As shown in (b), in response to the completion of the update of the first operating system, a system update completion prompt message 71 is displayed, an input of the system update completion prompt message 71 is received, and in response to the input, third operating data of the second application running in the second operating system is obtained, the third operating data including video file A, the progress of watching video file A is 20:50, and the viewing setting parameters corresponding to watching video file A.

[0086] like Figure 5 As shown in (c), the first operating system is switched to run in the foreground, the running state of the first application is adjusted and updated according to the third running data until the progress of watching the video file A is at 20:50, and the second operating system is closed.

[0087] In some other embodiments, S120 includes:

[0088] When the system update package of the first operating system is downloaded, the first operating system is controlled to exit the foreground operation, the first operating system is updated, and the electronic device is controlled to run the second operating system in the foreground to display the interface of the second application corresponding to the preset application identifier.

[0089] A program setting page is provided in the second operating system, and one or more application program identifiers installed in the second operating system are displayed on the program setting page. The user can select any one of them as the preset application identifier. Figure 4 , a program setting page 62 is provided in the second operating system, and application A, application B, application C, etc. are displayed in the program setting page 62 for the user to select. When the user selects application B, when the first operating system is updated, application B in the second operating system is started together.

[0090] When the preset application identifier is obtained, in S120, the first operating system is updated and the program interface of the second application corresponding to the preset application identifier is displayed, so that when the first operating system is updated, the second operating system running in the foreground can automatically start and display the second application.

[0091] The control method of the electronic device provided in the embodiment of the present application can be executed by a control device. In the embodiment of the present application, the control device provided in the embodiment of the present application is described by taking the control method of the electronic device executed by the control device as an example.

[0092] See also Figure 6, Figure 6 is a schematic diagram of the structure of a control device provided by another embodiment of the present application, such as Figure 6 As shown, the control device may include:

[0093] A first running module 811, used to run a first operating system in the foreground of the electronic device;

[0094] The update module 812 controls the first operating system to exit the foreground operation, updates the first operating system, and controls the electronic device to run the second operating system in the foreground when the system update package of the first operating system is downloaded.

[0095] In an optional example, the first operation module 811 includes:

[0096] A first display unit, used to run a first operating system in the foreground of the electronic device and display an interface of a first application in the first operating system;

[0097] The update module 812 includes:

[0098] The second display unit is used to control the electronic device to run the second operating system in the foreground and display the interface of the second application in the second operating system.

[0099] In an optional example, the first application and the second application are the same application, and the control device further includes:

[0100] A synchronization module 813, used to synchronize the running data of the first application to the second application;

[0101] The second display unit is further configured to display an interface of a second application program in the second operating system according to the operating data.

[0102] In an optional example, the first application and the second application are the same application, and the second display unit is further used to download and install the second application and display the interface of the second application in the second operating system when the second application is not installed in the second operating system.

[0103] In an optional example, the control device further includes:

[0104] The restoration module 814 is used to uninstall the second application in the second operating system when the first operating system is updated, control the second operating system to exit the foreground, and control the electronic device to run the updated first operating system in the foreground.

[0105] The control device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), an ATM or a self-service machine, etc., and augmented reality (augmented reality, AR), virtual reality (virtual reality, VR) devices, etc., which are not specifically limited in the embodiment of the present application.

[0106] The control device in the embodiment of the present application may be a device having at least two operating systems. The at least two operating systems may include an Android operating system, an iOS operating system, a BlueOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0107] The control device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0108] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 100, including a processor 101 and a memory 102, wherein the memory 102 stores programs or instructions that can be executed on the processor 101, and when the program or instructions are executed by the processor 101, the various steps of the control method embodiment of the above-mentioned electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0109] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0110] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0111] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210.

[0112] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1210 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0113] The processor 1210 is used to run the first operating system in the foreground of the electronic device;

[0114] The processor 1210 is used to control the first operating system to exit the foreground operation, update the first operating system, and control the electronic device to run the second operating system in the foreground when the system update package of the first operating system is downloaded.

[0115] Optionally, the processor 1210 is configured to run a first operating system in the foreground of the electronic device and display an interface of a first application in the first operating system;

[0116] The processor 1210 is used to control the electronic device to run the second operating system in the foreground and display the interface of the second application in the second operating system.

[0117] Optionally, the first application and the second application are the same application, and the processor 1210 is used to synchronize the running data of the first application to the second application;

[0118] The processor 1210 is configured to display an interface of a second application program in the second operating system according to the running data.

[0119] Optionally, the first application and the second application are the same application, and the processor 1210 is used to download and install the second application and display the interface of the second application in the second operating system when the second application is not installed in the second operating system.

[0120] Optionally, the processor 1210 is used to uninstall the second application in the second operating system when the first operating system is updated, control the second operating system to exit the foreground, and control the electronic device to run the updated first operating system in the foreground.

[0121] It should be understood that in the embodiment of the present application, the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and at least one of other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0122] The memory 1209 can be used to store software programs and various data. The memory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1209 may include a volatile memory or a non-volatile memory, or the memory 1209 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1209 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0123] The processor 1210 may include one or more processing units; optionally, the processor 1210 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1210.

[0124] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0125] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0126] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0127] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0128] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the electronic device as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0129] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0131] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A control method for an electronic device, characterized in that: include: Running a first operating system in the foreground of the electronic device; When the system update package of the first operating system is downloaded completely, the first operating system is controlled to exit the foreground operation, the first operating system is updated, and the electronic device is controlled to run a second operating system in the foreground.

2. The control method of the electronic device according to claim 1, characterized in that: The step of running the first operating system in the foreground of the electronic device includes: Running a first operating system in the foreground of the electronic device and displaying an interface of a first application in the first operating system; The controlling the electronic device to run the second operating system in the foreground includes: The electronic device is controlled to run a second operating system in the foreground, and an interface of a second application in the second operating system is displayed.

3. The control method of the electronic device according to claim 2, characterized in that: The first application and the second application are the same application. Before displaying the interface of the second application in the second operating system, the method further includes: Synchronizing the running data of the first application to the second application; The displaying the interface of the second application in the second operating system includes: The interface of the second application program in the second operating system is displayed according to the running data.

4. The control method of the electronic device according to claim 2, characterized in that: The first application and the second application are the same application, and the displaying of the interface of the second application in the second operating system includes: If the second operating system does not have the second application installed, the second application is downloaded and installed, and the interface of the second application in the second operating system is displayed.

5. The control method of the electronic device according to claim 4, characterized in that: The method further comprises: When the update of the first operating system is completed, the second application in the second operating system is uninstalled, the second operating system is controlled to exit the foreground, and the electronic device is controlled to run the updated first operating system in the foreground.

6. A control device, characterized in that: include: A first operating module, used to run a first operating system in the foreground of the electronic device; The update module controls the first operating system to exit the foreground operation, updates the first operating system, and controls the electronic device to run a second operating system in the foreground when the system update package of the first operating system is downloaded.

7. The control device according to claim 6, characterized in that: The first operation module includes: A first display unit, configured to run a first operating system in the foreground of the electronic device and display an interface of a first application in the first operating system; The update module includes: The second display unit is used to control the electronic device to run a second operating system in the foreground and display an interface of a second application in the second operating system.

8. The control device according to claim 7, characterized in that: The first application and the second application are the same application, and the control device further includes: A synchronization module, used to synchronize the running data of the first application to the second application; The second display unit is further configured to display an interface of a second application in the second operating system according to the operating data.

9. The control device according to claim 7, characterized in that: The first application and the second application are the same application; the second display unit is also used to download and install the second application when the second operating system has not installed the second application, and to display the interface of the second application in the second operating system.

10. The control device according to claim 9, characterized in that: The control device also includes: The restoration module is used to uninstall the second application in the second operating system when the first operating system is updated, control the second operating system to exit the foreground, and control the electronic device to run the updated first operating system in the foreground.

11. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device as described in any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device according to any one of claims 1 to 5 are implemented.