Multi-desktop switching method, electronic device, and readable storage medium
By implementing the function of directly switching from the first desktop to the second desktop on the terminal device, the problems of complex operations and low efficiency in the existing technology are solved, the switching efficiency is improved, and data security is ensured.
Patent Information
- Application Number
- PCT/CN2024/087533
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-23
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-31
AI Technical Summary
When switching the desktops of different accounts on existing terminal devices, you need to exit to the lock screen interface and then log in again, which is complex and inefficient.
Provide a multi-desktop switching method that allows users to directly switch to the second desktop on the first desktop without exiting to the lock screen interface. Switching is achieved by triggering specific operations or password verification, and utilizes multiple file managers and operating environment isolation. Different types of desktop data to ensure security.
It simplifies the desktop switching process, improves operational efficiency, enhances user experience, and ensures data security through the isolation mechanism of the running environment and file manager.
Smart Images

Figure CN2024087533_31102024_PF_FP_ABST
Abstract
Description
Multi-desktop switching method, electronic device, and readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 23, 2023, with application number 202310451930.8 and application name “Multi-desktop switching method, electronic device and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of computer technology, and in particular to a multi-desktop switching method, an electronic device, and a readable storage medium. Background Art
[0003] With the widespread use of terminal devices, users have increasing demands for the functions of terminal devices. For example, if an enterprise requires a terminal device to separate work and life, users also have the need to separate life and work on their own terminal devices.
[0004] Currently, you can create personal and corporate accounts on a terminal device. Different accounts can display different desktops, allowing you to separate work and personal areas on a single device. However, after logging into a personal account on a terminal device, if the user wants to switch to the corporate desktop, they must log out to the lock screen and then log back into the corporate account, which is complex and inefficient.
[0005] Summary of the Invention
[0006] The embodiment of the present application provides a multi-desktop switching method, an electronic device, and a readable storage medium. The method can be operated directly on the first desktop and switch directly to the second desktop without exiting to the lock screen interface to switch the desktop. The operation is simple and efficient.
[0007] In a first aspect, embodiments of the present application provide a method for switching between multiple desktops. The method may be performed by a terminal device or a chip within the terminal device. The following description uses a terminal device as an example. In this method, a terminal device logs in to a first account and can display a first desktop, where the first desktop includes content with a first attribute. In response to a first operation on the first desktop, the terminal device can switch to a second desktop, where the second desktop includes content with a second attribute.
[0008] The second desktop can be the desktop corresponding to the first account, or the second desktop can be the desktop corresponding to the second account, and the first account and the second account are different. In other words, the embodiment of the present application can realize switching between different desktops under the same account, and can also realize switching between different desktops under different accounts.
[0009] In the embodiment of the present application, the user can directly operate on the first desktop to trigger switching to the second desktop without having to exit to the lock screen interface to switch desktops. The operation is simple and efficient.
[0010] In one embodiment, a first desktop with content of a first attribute and a second desktop with content of a second attribute can be referred to as different types of desktops. For example, a first desktop with content of the first attribute can be referred to as a first type of desktop, and a second desktop with content of the second attribute can be referred to as a second type of desktop.
[0011] In a possible implementation, at least one content in the first desktop and the second desktop is different. In a possible implementation, the content in the first desktop and the second desktop is completely different.
[0012] For example, the first desktop may be a corporate desktop that includes icons for office applications, meeting cards, to-do cards, etc., allowing users to work on the first desktop. The second desktop may be a personal desktop that includes icons for video and audio applications, allowing users to enjoy personal entertainment.
[0013] In the embodiment of the present application, different desktops can meet different needs of users, and switching between multiple desktops is simple and efficient.
[0014] The following is an example of the first operation:
[0015] In one possible implementation, the first desktop may include a task view control. In response to an operation on the task view control, the terminal device may display an identifier of the first desktop and an identifier of the second desktop. In response to an operation on the identifier of the second desktop, the terminal device may directly switch to the second desktop. In this embodiment, the user can switch desktops by operating controls, identifiers, etc. on the first desktop.
[0016] In a possible implementation, the first operation is a sliding operation on the first desktop, or the first operation is performing a preset gesture on the first desktop, or the first operation is a preset password.
[0017] In this implementation, the user can use a variety of operating methods on the first desktop, all of which can achieve desktop switching. The user can choose a method that suits him or her, which can improve the user experience.
[0018] It should be understood that in the prior art, the terminal device only includes one file manager, which is used to manage desktops under different accounts. Therefore, when switching desktops, it is necessary to first exit to the lock screen interface and log in to another account before the file manager can manage another desktop. In the embodiment of the present application, different types of desktops can correspond to a file manager respectively. For example, the terminal device includes a first file manager and a second file manager. The first file manager is used to manage the first type of desktop, and the second file manager is used to manage the second type of desktop. Specifically, the first file manager can be used to manage the first desktop, and the second file manager can be used to manage the second desktop.
[0019] In this implementation, the first desktop and the second desktop each correspond to a desktop manager. After the desktop is switched, the desktop is managed by the corresponding file manager, which can assist in achieving direct switching of the desktop.
[0020] In one possible implementation, the terminal device includes a first operating environment and a second operating environment, the first desktop runs in the first operating environment, and the second desktop runs in the second operating environment. In one embodiment, the first type of desktop can run in the first operating environment, and the second type of desktop can run in the second operating environment.
[0021] In one embodiment, the first operating environment and the second operating environment are isolated, so that the data related to the first desktop and the data related to the second desktop are also isolated due to the isolation of the operating environments. The isolation of the data of the two desktops can ensure the data security of the desktops.
[0022] In one possible implementation, the security level of the first operating environment is higher than the security level of the second operating environment. Accordingly, the security level of the first desktop is higher than the security level of the second desktop. Before the terminal device switches from the first desktop to the second desktop, the user may be prompted to enter a password for desktop switching to ensure the security of desktop switching.
[0023] In response to a first operation on the first desktop, the terminal device may output a first prompt message, the first prompt message being used to prompt a user to enter a password. The terminal device may receive the first password entered by the user and verify the first password. If the first password verification succeeds, the desktop is switched to the second desktop. If the first password verification fails, the desktop is not switched.
[0024] Similarly, after the terminal device switches from the first desktop to the second desktop, the terminal device can switch back to the first desktop in response to a second operation on the second desktop. The second operation can refer to the relevant description of the first operation.
[0025] In this implementation, the user only needs to perform operations on the desktop to switch desktops, which is simple and efficient.
[0026] Similarly, before switching from the second desktop to the first desktop, the terminal device may further output a second prompt message, wherein the second prompt message is used to prompt the user to enter a password. The terminal device may receive the second password entered by the user and verify the second password. If the second password verification is successful, the terminal device switches to the first desktop. If the second password verification is unsuccessful, the desktop switch is not performed.
[0027] In this implementation, when the user triggers the terminal device to switch desktops, the terminal device can prompt the user to enter the password for desktop switching. If the password verification is passed, the desktop can be switched directly, which can ensure the security of desktop switching.
[0028] In one possible implementation, in order to reduce the number of times the user enters a password and improve the user experience when switching desktops while ensuring the security of the desktop switching, the terminal device can output the first prompt information when the preset conditions are met.
[0029] In one possible implementation, the preset condition is: after the terminal device is turned on, it does not switch from the first desktop to the second desktop; or, the preset condition is: after the terminal device switches from a screen-off state to a screen-on state, it does not switch from the first desktop to the second desktop.
[0030] In this implementation, when the terminal device switches from a first desktop with a high security level to a second desktop with a low security level, because the security level of the second desktop is low, each time the terminal device is turned on (or after the screen is turned on), the user may be prompted to enter a password the first time the device switches from the first desktop to the second desktop. The user may not be prompted to enter a password when the device switches from the first desktop to the second desktop subsequently. When the terminal device switches from the second desktop with a low security level to the first desktop with a high security level, because the security level of the first desktop is low, the terminal device may prompt the user to enter a password each time the device switches to avoid the security of the desktop with a high security level.
[0031] The following describes the process of switching desktops on a terminal device, starting from the lock screen interface of the terminal device:
[0032] For example, after the terminal device is turned on, a lock screen interface may be displayed, wherein the lock screen interface includes the identification of the first account. In response to an operation on the lock screen interface, the terminal device may log in to the first account and display the first desktop.
[0033] In one possible implementation, the lock screen includes a control for switching login modes. In response to an operation on the control for switching login modes, the terminal device displays an identifier for the first operating environment and an identifier for the second operating environment on the lock screen. In response to the operation on the identifier for the first operating environment, the terminal device logs in to the first account and displays the first desktop.
[0034] In this implementation, the user can select which desktop under the first account to display after the terminal device logs in to the first account on the lock screen interface. For example, the user can select the terminal device to display the first desktop or the second desktop by operating the identifier of the first operating environment or the identifier of the second operating environment.
[0035] In one possible implementation, the lock screen further includes an identifier of the second account, and the identifier of the first account is selected. When the identifier of the first account is selected, the user selecting the identifier of the first operating environment or the identifier of the second operating environment can trigger the terminal device to display the desktop of the first account.
[0036] Similarly, when the identifier of the second account is in the selected state, the user selects the identifier of the first operating environment or the identifier of the second operating environment, which can trigger the terminal device to display the desktop under the second account.
[0037] In one possible implementation, when the first desktop is the desktop corresponding to the first account and the second desktop is the desktop corresponding to the second account, the terminal device can first log in to the second account and switch to the second desktop in response to the first operation on the first desktop.
[0038] The second account is an account that the terminal device has logged in to. For example, if the terminal device has memorized the password of the second account, the terminal device can log in to the second account without verifying the password of the second account.
[0039] Alternatively, in response to the first operation on the first desktop, the terminal device may output a third prompt message, wherein the third prompt message is used to prompt the user to enter the password of the second account. The terminal device may receive the third password entered by the user, verify the third password, and log in to the second account if the third password is verified successfully.
[0040] In this implementation, when the terminal device switches desktops under different accounts, the terminal device can prompt the user to enter the password of the second account. When the password is verified, the user can switch to the desktop under the different account. This can ensure account security and prevent other malicious users from switching desktops at will, causing privacy leaks and other problems. In addition, when the terminal device has already logged into the second account, the terminal device can directly switch to the desktop under the second account without prompting the user to enter the password of the second account. This can improve the efficiency of desktop switching while ensuring account security.
[0041] In one possible implementation, the embodiment of the present application may also provide a function of creating a new desktop so that users can customize a desktop to meet their needs and improve the user experience.
[0042] In response to a third operation on the first desktop, the terminal device may display at least one preset desktop template. The third operation triggers the user to create a new desktop. In response to selecting a target desktop template from the at least one preset desktop template, the terminal device generates a third desktop, where the target desktop template includes preset recommended content. The third desktop is displayed, and the third desktop includes the preset recommended content.
[0043] For example, if the third desktop can be a learning desktop, the preset recommended content on the third desktop can include but is not limited to: icons of learning applications, icons of educational applications, course schedule cards, etc.
[0044] In one possible implementation, when creating a new desktop, the user can also select the type of the new desktop. The first desktop includes a new desktop control, and the third operation is an operation on the new desktop control. In response to the user's operation on the new desktop control, the terminal device can display at least one preset desktop template.
[0045] The at least one preset desktop template includes: a first type of preset desktop template and a second type of preset desktop template, the first type of preset desktop template includes preset content with a first attribute, and the second type of preset desktop template includes preset content with a second attribute.
[0046] In a possible implementation, at least one preset desktop template may further include preset content with a third attribute. That is, the user may create a new desktop of the first type or the second type, or other types of desktops that the terminal device may provide.
[0047] In the second aspect, an embodiment of the present application provides a multi-desktop switching method. The executing entity of the method may be a terminal device or a chip in the terminal device. The following description will be made using a terminal device as an example. The second aspect mainly describes a method for a terminal device to switch desktops under different accounts. In this method, the terminal device logs in to a first account and can display a first desktop. In response to a first operation on the first desktop, the terminal device may output a third prompt message, wherein the third prompt message is used to indicate a password for entering a second account, and the first operation is used to trigger the terminal device to switch to a second desktop corresponding to the second account. The terminal device may receive a third password entered by the user, and switch to the second desktop if the third password is verified successfully.
[0048] The terminal device can directly switch to the first desktop in response to the second operation on the second desktop. Since the terminal device has verified the password of the first account when logging into the first account, when switching from the second desktop to the first desktop, the terminal device can directly switch to the first desktop in response to the second operation.
[0049] Similarly, the terminal device responds to the first operation on the first desktop because the terminal device has verified the password of the second account when switching from the first desktop to the second desktop for the first time. Therefore, when switching from the first desktop to the second desktop, it can directly switch to the second desktop in response to the first operation.
[0050] In one possible implementation, the first desktop includes content with a first attribute, and the second desktop includes content with the first attribute; or, the first desktop includes content with the first attribute, and the second desktop includes content with a second attribute, or, the first desktop includes content with the second attribute, and the first desktop includes content with the first attribute.
[0051] That is to say, when the terminal device switches desktops under different accounts, the desktops under the different accounts can belong to the same type of desktops, or belong to different types of desktops. In the embodiment of the present application, the terminal device can switch between the same type of desktops under different accounts, and can also switch between different types of desktops under different accounts.
[0052] In a third aspect, embodiments of the present application provide an electronic device, which may include a processor and a memory. The memory is configured to store computer-executable program code, the program code including instructions; when the processor executes the instructions, the instructions cause the electronic device to perform the methods described in the first and second aspects.
[0053] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include a unit, module or circuit for executing the method provided in the first aspect or the second aspect.
[0054] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods in the first and second aspects above.
[0055] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enables the computer to execute the methods in the first and second aspects above.
[0056] The beneficial effects of the possible implementation methods of the second to sixth aspects mentioned above can be referred to the beneficial effects brought about by the first aspect mentioned above, and will not be elaborated here.
[0057] An embodiment of the present application provides a multi-desktop switching method, electronic device, and readable storage medium. In the method, a first account is logged in; a first desktop is displayed, the first desktop including content with a first attribute; and in response to a first operation on the first desktop, a second desktop is switched to, the second desktop including content with a second attribute, the second desktop being the desktop corresponding to the first account, or the second desktop being the desktop corresponding to the second account, the first account and the second account being different. In the present application, a user can directly operate on the first desktop to trigger a switch to the second desktop, without having to exit to the lock screen interface to switch desktops, resulting in simple operation and high efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] FIG1 is a schematic diagram of a terminal device switching desktop;
[0059] FIG2 is a flow chart of an embodiment of a multi-desktop switching method provided in an embodiment of the present application;
[0060] FIG3A is a schematic diagram of desktop switching provided in an embodiment of the present application;
[0061] FIG3B is another schematic diagram of desktop switching provided in an embodiment of the present application;
[0062] FIG4 is a schematic diagram of a structure of a terminal device provided in an embodiment of the present application;
[0063] FIG5 is a flow chart of another embodiment of a multi-desktop switching method provided in an embodiment of the present application;
[0064] FIG6 is a schematic diagram of desktop switching provided in an embodiment of the present application;
[0065] FIG7 is another schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0066] FIG8 is another schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0067] FIG9A is another schematic diagram of desktop switching provided in an embodiment of the present application;
[0068] FIG9B is another schematic diagram of desktop switching provided in an embodiment of the present application;
[0069] FIG9C is another schematic diagram of desktop switching provided in an embodiment of the present application;
[0070] FIG10 is another schematic diagram of desktop switching provided in an embodiment of the present application;
[0071] FIG11 is another schematic diagram of desktop switching provided in an embodiment of the present application;
[0072] FIG12 is a schematic diagram of creating a third desktop according to an embodiment of the present application;
[0073] FIG13 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] Definitions of terms involved in the embodiments of this application:
[0075] Domain account: In the embodiments of this application, it refers to the login account of the terminal device. The domain account can also be understood as a user account. In the following embodiments, the "domain account" can be referred to as the account.
[0076] The terminal device in the embodiments of the present application may be referred to as user equipment (UE), terminal, etc. For example, the terminal device may be a mobile phone, a portable Android device (PAD), a personal digital assistant (PDA), a laptop computer, a personal computer (PC), a handheld device with wireless communication capabilities, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in a smart home, etc. The embodiments of the present application do not specifically limit the form of the terminal device.
[0077] With the widespread use of terminal devices, users' demands for the functions of terminal devices are increasing. In one possible scenario, users can bring their own terminal devices to work, and the device they bring can be used for daily life and entertainment, and the company can configure a terminal device for the user to use for office work. In one possible scenario, some data in the enterprise has a higher security level and needs to be accessed using the enterprise intranet, and some data has a lower security level and can be accessed using the extranet. In this scenario, the enterprise can configure some terminal devices to access the intranet to access data with a higher security level, and the enterprise can configure another part of the terminal devices to access the extranet to access data with a lower security level. The embodiments of the present application do not list all scenarios exhaustively. Currently, users have diverse demands for the functions of terminal devices, but using different terminal devices to meet the different needs of users requires configuring multiple terminal devices, which is costly.
[0078] In one embodiment, in order to reduce the number of configured terminal devices and meet the diverse needs of users, multiple accounts can be set up in one terminal device. Among them, when the terminal device logs in to different accounts, the terminal device can provide different functional services to meet the diverse needs of users. Among them, different desktops can be displayed when the terminal device logs in to different accounts. For example, a corporate account and a user account can be set up in the terminal device. When the terminal device logs in to the corporate account, the corporate desktop can be displayed. The corporate desktop can include various office applications to meet the user's office needs. When the terminal device logs in to a personal account, a personal desktop can be displayed. The personal desktop can include audio applications, video applications, social applications, etc., to meet the user's life and entertainment needs.
[0079] However, in this embodiment, if the user needs to switch from the enterprise desktop to the personal desktop, the user must first log out of the enterprise account and log in to the personal account on the lock screen of the terminal device. The personal desktop can only be displayed after the terminal device logs in to the personal account. It should be understood that the personal account and the enterprise account can be understood as the login account of the terminal device, that is, the domain account.
[0080] For example, taking a PC as a terminal device, Figure 1 shows the PC's lock screen. Figure 1a illustrates a PC lock screen displaying corporate account 1 and personal account 2. A user operating corporate account 1 can trigger the PC to display corporate desktop 11. As shown in Figure 1b, corporate desktop 1 can display office applications, such as Office Application 1 and Office Application 2. If the user wishes to switch from the corporate desktop to the personal desktop, the user can restart the PC to display the PC's lock screen again. From the lock screen, the user can operate personal account 2, triggering the PC to display the personal desktop, as shown in Figures 1c and 1d. Alternatively, if the user wishes to switch from the corporate desktop to the personal desktop, the user can use a keyboard shortcut to trigger the PC to display the lock screen again. From the lock screen, the user can operate personal account 2, triggering the PC to display personal desktop 12. Figure 1d illustrates personal desktop 12, which includes life applications 1 and 2. Current methods for switching desktops on terminal devices are complex and inefficient. It should be understood that Figure 1 does not illustrate the process of a user triggering the PC to display the lock screen.
[0081] In order to facilitate users to quickly switch desktops, an embodiment of the present application provides a multi-desktop switching method. Users can operate on any desktop to trigger the terminal device to directly switch desktops without the need for the terminal device to return to the lock screen interface to achieve desktop switching. The operation is simple and efficient.
[0082] The following describes the multi-desktop switching method provided by the embodiment of the present application in conjunction with specific embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0083] FIG2 is a flow chart of an embodiment of a multi-desktop switching method provided by an embodiment of the present application. Referring to FIG2 , the multi-desktop switching method provided by an embodiment of the present application may include:
[0084] S201, the terminal device logs in to the first account.
[0085] The first account is a login account of the terminal device. Logging in the terminal device to the first account can trigger the terminal device to display the desktop of the terminal device.
[0086] After the terminal device is powered on, a lock screen may be displayed. The lock screen may include an identifier for the first account. The identifier for the first account may include, but is not limited to, a picture, name, or number of the first account. In one embodiment, when the terminal device includes multiple login accounts, the lock screen may include the identifiers of the multiple login accounts.
[0087] The user can operate the lock screen interface to trigger the terminal device to log in to the first account. For example, the user can click the logo of the first account to trigger the terminal device to log in to the first account. In one embodiment, if the terminal device may pre-store the password of the first account, when the user clicks the logo of the first account, the terminal device can log in to the first account.
[0088] In one embodiment, to ensure account security, after the user clicks the logo of the first account, the terminal device may prompt the user to enter the password of the first account. Alternatively, in one embodiment, the lock screen interface may include a password input area, and the user may enter the password of the first account in the password input area to trigger the terminal device to log in to the first account.
[0089] For example, referring to a in FIG3A , the lock screen interface may include an identifier 31 of a first account and a password input area 32. FIG3A a takes the identifier 31 of the first account as Account 1 as an example. The password input area 32 may include a login control 321. The user may enter the password of the first account in the password input area 32 and operate the login control 321 to trigger the terminal device to log in to the first account. It is understood that, in response to the user operating the login control 321, the terminal device may verify the password of the first account entered by the user. If the password of the first account passes the verification, the terminal device may log in to the first account. If the password of the first account fails the verification, the terminal device may prompt the user that the password input is incorrect.
[0090] In one embodiment, if the user has set the terminal device to remember the password of the first account, the terminal device may display the first account logo 31 when displaying the lock screen interface, and display the password of the first account stored in the terminal device in the password input area 32. The user can directly operate the login control 321 to trigger the terminal device to log in to the first account. It should be understood that to ensure the security of the password of the first account, the terminal device may display the password of the first account in cryptic form when displaying the password input area 32.
[0091] S202: The terminal device displays a first desktop, where the first desktop includes content with a first attribute.
[0092] When a terminal device logs in to the first account, the first desktop corresponding to the first account can be displayed. In the embodiment of the present application, the desktop under the first account and the desktop of the first account can both be regarded as the desktop corresponding to the first account.
[0093] In one embodiment, the first account may correspond to at least one desktop, and the first desktop is included in the at least one desktop. The first desktop may be any desktop in the at least one desktop, or the first desktop may be the desktop displayed before the terminal device was last shut down, or the first desktop may be a preset desktop in the at least one desktop, and this embodiment of the application is not limited to this.
[0094] The first desktop may include content with a first attribute. The content on the first desktop may be presented in the form of application icons, desktop cards, desktop components, etc. The content with the first attribute can be understood as content with a first characteristic, or content belonging to a certain type.
[0095] For example, taking the example of a desktop being divided into a personal desktop and an enterprise desktop, the first desktop can be either a personal desktop or an enterprise desktop. The personal desktop can include content with personal attributes, such as video playback applications, music playback applications, navigation applications, social applications, music service cards, and reading service cards. The enterprise desktop can include content with enterprise attributes, such as office applications, calendars, schedule cards, meeting cards, and to-do cards.
[0096] For example, taking the example of a desktop that can be divided into an entertainment desktop and a learning desktop, the first desktop can be the entertainment desktop or the learning desktop. The entertainment desktop can include content with entertainment attributes, such as video playback applications, music playback applications, navigation applications, social applications, and music service cards. The learning desktop can include content with learning attributes, such as educational applications, learning applications, calendars, class schedule cards, and reading cards.
[0097] For example, after the terminal logs in to the first account, the first desktop 301 corresponding to the first account can be displayed. b in Figure 3A takes the first desktop 301 as an enterprise desktop as an example. Referring to b in Figure 3A, the first desktop 301 can include an icon for office application 1, an icon for office application 2, a calendar card 33, and a meeting card 34.
[0098] In the embodiment of the present application, the user can customize the content of the first desktop.
[0099] S203, in response to the first operation on the first desktop, switching to the second desktop, the second desktop includes content with a second attribute, the second desktop is the desktop corresponding to the first account, or the second desktop is the desktop corresponding to the second account, and the first account and the second account are different.
[0100] When the terminal device displays the first desktop, the user can perform a first operation on the first desktop to trigger the terminal device to directly switch to the second desktop, that is, the terminal device does not display the first desktop but displays the second desktop. In this embodiment of the present application, the terminal device can switch desktops in response to the first operation without returning to the lock screen interface.
[0101] The second desktop can include content with a second attribute, where the first attribute and the second attribute are different. For example, taking the second desktop as a personal desktop, the second desktop can include content with personal attributes, such as video playback applications, music playback applications, navigation applications, social applications, music service cards, reading service cards, etc.
[0102] In one embodiment, the second desktop can be the desktop corresponding to the first account. In the embodiment of the present application, the first account can correspond to at least two desktops, such as the first desktop and the second desktop, so that the terminal device can switch between different desktops under the same account.
[0103] In one embodiment, the second desktop can be the desktop corresponding to the second account, and the first account and the second account are different. In the embodiment of the present application, the terminal device can log in to the second account in response to the first operation to switch to the second desktop. In one embodiment, the first account can correspond to at least one desktop (such as the first desktop), and the second account can correspond to at least one desktop (such as the second desktop), so that the terminal device can realize switching between different desktops under different accounts.
[0104] In one embodiment, a switching control may be displayed on the first desktop, and a user operating the switching control may trigger the terminal device to switch to the second desktop. The user operating the switching control may be regarded as the first operation.
[0105] In one example, when a terminal device includes at least two desktops, the terminal device can switch to a second desktop according to a preset order of the desktops in response to a user operating a switching control. It should be understood that the at least two desktops included in the terminal device can be understood as desktops corresponding to the same account and desktops corresponding to different accounts.
[0106] For example, if the terminal device includes desktop 1, desktop 2, desktop 3, and desktop 4, the preset order of the desktops is desktop 1, desktop 2, desktop 3, and desktop. When the first desktop is desktop 1, the terminal device can switch to desktop 2 in response to the user operating the switch control. When the first desktop is desktop 2, the terminal device can switch to desktop 3 in response to the user operating the switch control. In one example, taking the terminal device switching to desktop 2 as an example, a switch control can also be displayed on desktop 2. The user operates the switch control to trigger the terminal device to continue switching to desktop 3. In the embodiment of the present application, there is no limitation on the preset order of desktops. For example, the user can customize the preset order of desktops, or the terminal device can use the order in which the desktops are created as the preset order of desktops.
[0107] In order to facilitate the terminal device to switch to the desktop required by the user at one time and reduce the desktop switching time, in one example, the terminal device can display the identification of the desktop already included in the terminal device in response to the user operating the switching control. The user can operate the identification of the second desktop to trigger the terminal device to switch to the second desktop. The identification of the desktop may include but is not limited to the name, thumbnail, number, and other information used to distinguish different desktops, and the embodiments of the present application are not limited to this. In this example, the first operation may include: the user operating the switching control, and the user operating the identification of the second desktop.
[0108] Exemplarily, referring to b in FIG3A , a task view control 35 can be displayed on the first desktop 301, and the task view control can serve as a switching control 35. When the user operates the task view control 35, the terminal device can display a switching interface 302. As shown in c in FIG3A , the identification of the desktops already included in the terminal device can be displayed on the switching interface 302. FIG3A c takes the example of the identification of the desktops already included in the terminal device including "enterprise desktop, personal desktop". In one embodiment, the switching interface 302 can also display the tasks being executed by the terminal device on the enterprise desktop. FIG3A c takes the example of an interface with office application 1 displayed on the switching interface 302, indicating that the terminal device is running office application 1 on the enterprise desktop.
[0109] A user operating the personal desktop identifier can trigger the terminal device to display a second desktop 303, i.e., the personal desktop. As shown in FIG3A d, the personal desktop can display a task view control 35, as well as icons for personal application 1 and personal application 2, a music card 36, and a reading card 37. For example, the music service card 33 may include songs, song lists, and artist lists. Songs can be songs that were recently played on the terminal device. Song lists can include a list of songs played on the terminal device, a list of songs downloaded on the terminal device, or a list of songs recommended to the user. An artist list can include a list of singers the user follows, a list of singers corresponding to songs played on the terminal device, a list of singers corresponding to songs downloaded on the terminal device, or a list of singers recommended to the user. For example, the reading service card 34 may include a list of books, a book chart, etc. The book list can refer to the description of the song list. It should be understood that the content of the music card 36 and the reading card 37 is not shown in FIG3A d.
[0110] Similarly, the user operates the task view control 35 on the personal desktop, which can also trigger the terminal device to display the identification of the desktop already included in the terminal device, such as the enterprise desktop and the personal desktop. Accordingly, if the user operates the identification of the enterprise desktop, the terminal device can directly switch to the enterprise desktop.
[0111] In one embodiment, to further reduce the number of operations required by the user on the first desktop, the identifiers of existing desktops in the terminal device can be directly displayed on the first desktop. This allows the user to directly operate the identifier of the second desktop without having to operate the switching control, thereby triggering the terminal device to switch directly to the second desktop. In this embodiment, the user's operation of operating the identifier of the second desktop can be regarded as the first operation.
[0112] In one embodiment, when the terminal device displays the first desktop, the first operation can also be the user sliding the first desktop, or performing a preset gesture on the first desktop, or the user speaking a preset password, etc., all of which can trigger the terminal device to switch to the second desktop. The embodiment of the present application does not restrict the user's first operation on the first desktop. Compared with the method in the prior art where switching login accounts is required to switch desktops of the terminal device, in the embodiment of the present application, the user can perform the first operation on the first desktop to trigger the terminal device to directly switch desktops without the terminal device exiting to the lock screen interface. The operation is simple and the desktop switching efficiency is high.
[0113] In one embodiment, the first desktop may include a first taskbar, and the second desktop may include a second taskbar. When a user opens a file or application on the first desktop, the identifier of the file or the identifier of the application may be displayed in the first taskbar. When the user opens a file or application on the second desktop, the identifier of the file or the identifier of the application may be displayed in the second taskbar. For example, taking the example of a user opening file 1 on the first desktop and file 2 on the second desktop, when the terminal device displays the first desktop, the identifier of file 1 such as "File 1" may be displayed in the first taskbar 31A of the first desktop. When the user triggers the terminal device to switch from the first desktop to the second desktop, the terminal device may display the identifier of file 2 such as "File 2" in the second taskbar 32A of the second desktop, as shown in FIG3B .
[0114] In the embodiment of the present application, there is at least one difference in content between the first taskbar of the first desktop and the second taskbar of the second desktop.
[0115] In one embodiment, to ensure the security of desktop switching, the terminal device may further provide a password verification mechanism. In response to the first operation, the terminal device may output a first prompt message, prompting the user to enter a password, which may be understood as the password for switching desktops. If the password entered by the user is verified, the terminal device may directly switch to the second desktop. If the password entered by the user is not verified, the terminal device may not switch desktops.
[0116] The password for switching desktops may include, but is not limited to, a biometric password, a numeric password, an alphabetic password, and a symbolic password. Biometric passwords may include, but are not limited to, face, iris, fingerprint, palm print, etc. The process of the terminal device outputting the first prompt information and verifying the password entered by the user can be described with reference to the relevant descriptions in FIG9A and FIG9C.
[0117] In an embodiment of the present application, the user can perform a first operation on the first desktop to trigger the terminal device to directly switch to the second desktop. In this application, the terminal device can switch desktops without returning to the lock screen interface. The operation is simple, the desktop switching efficiency is high, and the user experience is high.
[0118] FIG4 is a schematic diagram of a terminal device provided in an embodiment of the present application. Referring to FIG4 , the terminal device may include a first file manager, a second file manager, a first storage space, and a second storage space. The first file manager is used to manage a first desktop, and the second file manager is used to manage a second desktop.
[0119] In one embodiment, the first storage space is used to store data for a first desktop, and the second storage space is used to store data for a second desktop. The data for the first desktop may include: content with a first attribute included on the first desktop, data on tasks currently being executed on the first desktop, etc. The data for the second desktop may include: content with a second attribute included on the second desktop, data on tasks currently being executed on the second desktop, etc.
[0120] The first file manager may store a first file path for accessing data of a first desktop in a first storage space, and the second file manager may store a second file path for accessing data of a second desktop in a second storage space.
[0121] When the user triggers the terminal device to display the first desktop, the first file manager can access the data of the first desktop in the first storage space based on the first file path, so as to display the first desktop based on the data of the first desktop. Similarly, when the user triggers the terminal device to display the second desktop, the second file manager can access the data of the second desktop in the second storage space based on the second file path, so as to display the second desktop based on the data of the second desktop.
[0122] In one embodiment, there may be at least one desktop including content of the first attribute, and the first file manager may be used to manage the at least one desktop including content of the first attribute. Accordingly, the first storage space is used to store data of the at least one desktop including content of the first attribute, and the first file manager may store the file path corresponding to each desktop including content of the first attribute, and the file path corresponding to each desktop including content of the first attribute is used to access the data of the corresponding desktop in the first storage space.
[0123] In one embodiment, there may be at least one desktop including content of the second attribute, and the second file manager may be used to manage the at least one desktop including content of the second attribute. Accordingly, the second storage space is used to store data of the at least one desktop including content of the second attribute, and the second file manager may store the file path corresponding to each desktop including content of the second attribute, and the file path corresponding to each desktop including content of the second attribute is used to access the data of the corresponding desktop in the second storage space.
[0124] In one embodiment, at least one desktop in the terminal device that includes content of the first attribute may belong to the same account or different accounts, and at least one desktop in the terminal device that includes content of the second attribute may belong to the same account or different accounts.
[0125] It should be understood that FIG2 uses an example of a terminal device desktop containing content with two attributes. In one embodiment, the terminal device may further include a desktop containing content with a third attribute. Accordingly, the terminal device may further include a third file manager and a third storage space. The third storage space is used to store data for the desktop containing content with the third attribute. The third file manager may store a third file path, which is used to access data for the desktop containing content with the third attribute in the third storage space.
[0126] In one embodiment, a desktop including content with a first attribute may be referred to as a first-type desktop, and a desktop including content with a second attribute may be referred to as a second-type desktop.
[0127] In one example, a first account may correspond to at least one desktop of the first type and at least one desktop of the second type. In this example, the terminal device can also implement switching between desktops of the same type under the first account. The switching method can refer to the description in Figures 2 and 3A. In other words, in this embodiment of the present application, the terminal device can implement switching between desktops of the same type under the first account, as well as switching between desktops of different types.
[0128] In one example, a first account may correspond to at least one desktop of the first type and at least one desktop of the second type, and a second account may correspond to at least one desktop of the first type and at least one desktop of the second type. In this exemplary embodiment, the terminal device can also implement switching between desktops of the same type under different accounts, and the switching method can refer to the description in Figures 2 and 3A. That is, in an embodiment of the present application, the terminal device can implement switching between desktops of the same type under different accounts, as well as switching between desktops of different types.
[0129] In one embodiment, for example, in the terminal device, the first account is set as the account of user 1, and the second account is set as the account of user 2. In order to ensure the privacy of the user and the security of the account, when switching between desktops under different accounts, the terminal device can verify the password of the account, so that when the password verification is passed, it can directly switch to the desktop under the different account.
[0130] The following describes the process of switching desktops corresponding to different accounts on a terminal device in conjunction with Figure 5. Referring to Figure 5, the multi-desktop switching method provided in the embodiment of the present application may include:
[0131] S501, log in to the first account.
[0132] S502: Display the first desktop.
[0133] S501-S502 may refer to the description in S201-S202.
[0134] S503: In response to the first operation on the first desktop, output third prompt information, where the third prompt information is used to prompt the user to enter the password of the second account.
[0135] In the embodiment of the present application, the process of switching desktops of different accounts by the terminal device is described by taking the switching of the terminal device from the first desktop corresponding to the first account to the second desktop corresponding to the second account as an example.
[0136] In one embodiment, the first desktop and the second desktop may be desktops of the same type, such as both the first desktop and the second desktop include content with the first attribute, or both include content with the second attribute. In one embodiment, the first desktop and the second desktop may be desktops of different types, for example, the first desktop includes content with the first attribute and the second desktop includes content with the second attribute, or the first desktop includes content with the second attribute and the second desktop includes content with the first attribute.
[0137] In an embodiment of the present application, the terminal device, in response to the first operation, may output a third prompt message to prompt the user to enter the password of the second account when determining to switch to the desktop corresponding to the second account. It should be understood that if the user has set the terminal device to remember the password of the second account, such as if the password of the second account is already stored in the terminal device, or the terminal device has verified the password of the second account, then the terminal device, in response to the first operation, may not output the third prompt message when determining to switch to the desktop corresponding to the second account, but may directly switch to the second desktop.
[0138] For example, taking the example of a first account corresponding to Enterprise Desktop 1 and Personal Desktop 1, and a second account corresponding to Enterprise Desktop 2 and Personal Desktop 2, as shown in FIG6a, when the terminal device displays the lock screen interface, it can display the identifier of the first account and the identifier of the second account. FIG6a takes the example of the first account identifier being Account 1 and the second account identifier being Account 2. In FIG6a, taking the example of a user selecting the first account and entering the password for the first account (or the terminal device already displaying the password for the first account), the terminal device can log in to the first account and display the first desktop 301, such as Enterprise Desktop 1, as shown in FIG6b. The user operates the task view control 35 on the first desktop 301, and the terminal device can display the switching interface 302. As shown in FIG6c, the switching interface 302 can display the identifiers of the desktops already included in the terminal device, namely Enterprise Desktop 1, Personal Desktop 1, Enterprise Desktop 2, and Personal Desktop 2. The user operating the identifier of Personal Desktop 2 can trigger the terminal device to output a third prompt message. It should be understood that the embodiment of the present application does not limit the manner in which the terminal device outputs the third prompt information. For example, the terminal device may display the third prompt information on the interface, or output the third prompt information in the form of voice.
[0139] As shown in d of FIG. 6 , the terminal device may display the identification of the second account, such as Account 2, a password input box 38, and a prompt message “Please enter the password for Account 2”.
[0140] S504: Receive a third password input by the user.
[0141] The user may enter a third password into the terminal device. For example, the user may enter the third password in the password input box 38. It should be understood that FIG6 does not show the process of the user entering the third password.
[0142] S505: Verify the third password, and if the third password is verified successfully, directly switch to the second desktop.
[0143] The terminal device can verify the third password in response to the user inputting the third password. The embodiment of the present application does not elaborate on the process of the terminal device verifying the password of the second account. Wherein, if the third password is verified, the terminal device can directly switch to the second desktop.
[0144] For example, the terminal device can switch to the second desktop corresponding to the second account, namely, personal desktop 2. Personal desktop 2 and personal desktop 1 can be desktops containing content with the same attributes. In one embodiment, the content contained in personal desktop 2 can be the same as or different from that of personal desktop 1. For example, as shown in Figure 6 (e), personal desktop 2 can include a task view control 35, as well as icons for personal application 3 and personal application 4.
[0145] S506: In response to the second operation on the second desktop, directly switch to the first desktop.
[0146] The second operation can refer to the description of the first operation. In the embodiment of the present application, the user can perform the first operation on the second desktop, which can trigger the terminal device to switch directly to the first desktop. It should be understood that because the terminal device has verified the password of the first account when logging into the first account, when the terminal device switches to the first desktop, the terminal device can no longer verify the password of the first account and can directly switch to the first desktop.
[0147] For example, if the user operates the task view control 35 on the second desktop and selects the logo of the enterprise desktop 1, the terminal device may be triggered to switch to the first desktop 301, ie, the enterprise desktop 1, as shown by fg in FIG6 .
[0148] Similarly, because the terminal device has already verified the password of the second account during the process of switching from the first desktop to the second desktop, when the user triggers the terminal device to switch from the first desktop corresponding to the first account to the second desktop corresponding to the second account again, the terminal device can respond to the first operation on the first desktop and directly switch to the second desktop without verifying the password of the second account. Accordingly, after S506, the terminal device can execute S507:
[0149] S507: In response to the first operation on the first desktop, directly switch to the second desktop.
[0150] For example, if the user operates the task view control 35 on the first desktop and selects the logo of the personal desktop 2, the terminal device may be triggered to switch to the second desktop, ie, the personal desktop 2, as shown by hi in FIG6 .
[0151] In an embodiment of the present application, when the terminal device switches from the first desktop corresponding to the first account to the second desktop corresponding to the second account, the user can be prompted to enter the password of the second account and verify the password of the second account. If the password of the second account is verified, the user can directly switch to the second desktop. When the password of the second account has been stored in the terminal device or the terminal device has verified the password of the second account, the terminal device can directly switch to the second desktop, thereby ensuring the security of desktop switching.
[0152] Figure 7 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application. Referring to Figure 7 , the software system of the terminal device can adopt a layered architecture. The layered architecture can divide the software system of the terminal device into several layers, each with clear roles and divisions of labor, and the layers can communicate with each other through software interfaces.
[0153] In one embodiment, the software system of the terminal device can be divided into three layers, namely, the application layer (applications), the application framework layer (application framework), and the system layer. The embodiment of the present application does not limit the layering of the software structure of the terminal device. The modules included in each layer in the following embodiment are the modules involved in the embodiment of the present application. The modules included in each layer below do not constitute a limitation on the structure of the terminal device, and the level of module deployment does not constitute a limitation on the structure of the terminal device. In one embodiment, the modules shown in Figure 7 can be deployed separately, or several modules can be deployed together. The division of modules in Figure 7 is an example.
[0154] The application layer includes application packages, which run applications by calling the application programming interface (API) provided by the application framework layer. For example, the application layer may include application packages such as camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, and short message.
[0155] Referring to Figure 7 , the application layer may include a first desktop application and a second desktop application. When a terminal device runs the first desktop application, the terminal device may display a first desktop. When a terminal device runs the second desktop application, the terminal device may display a second desktop. For example, if the first desktop application may be an enterprise desktop application, the first desktop may be an enterprise desktop. The second desktop application may be a personal desktop application, and the second desktop may be a personal desktop.
[0156] In one embodiment, when a terminal device runs a first desktop application, the terminal device may display a first-type desktop. When the terminal device runs a second desktop application, the terminal device may display a second-type desktop. Exemplarily, the first-type desktop may be a desktop with a high security level, such as the first-type desktop may include at least one enterprise desktop, such as Enterprise Desktop 1 and Enterprise Desktop 2. The second-type desktop may be a desktop with a low security level, such as the second-type desktop may include at least one personal desktop, such as Personal Desktop 1 and Personal Desktop 2.
[0157] In response to the user's operation, the terminal device can run the first desktop application to display the first type of desktop required by the user, such as Enterprise Desktop 1 or Enterprise Desktop 2. Similarly, the terminal device can run the second desktop application in response to the user's operation to display the second type of desktop required by the user, such as Personal Desktop 1 or Personal Desktop 2.
[0158] In one embodiment, the first desktop or the first type of desktop can be referred to as a high-density desktop, and the second desktop or the second type of desktop can be referred to as a low-density desktop. High-density can be understood as a high security level, and low-density can be understood as a low security level. The embodiment of the present application does not limit the definition of security level. The security level of the first type of desktop is higher than the security level of the second type of desktop. Therefore, the first desktop or the first type of desktop can be referred to as a high-density desktop, and the second desktop or the second type of desktop can be referred to as a low-density desktop.
[0159] In one embodiment, the application layer may further include more desktop applications, such as a third desktop application. The terminal device running the third desktop application may trigger the terminal device to display a third type of desktop, where the security level of the third type of desktop is different from that of the first type of desktop and the second type of desktop. The following embodiment uses the example of the application layer including the first desktop application and the second desktop application to illustrate the method for switching multiple desktops of a terminal device provided by the embodiments of the present application.
[0160] In one embodiment, when a terminal device runs a first desktop application, taking the terminal device displaying the first desktop as an example, the terminal device may also display a first message, which may be referred to as a high-density message. The high-density message may include a first application message and a first system message. The first application message may be, for example, a message pushed by an application displayed on the first desktop, and the first system message may be, for example, a message pushed by a first operating system. In addition, in response to a user operation, the terminal device may also display a first status bar, which may be referred to as a high-density status bar. The terminal device may display a high-density message in the high-density status bar.
[0161] Accordingly, when the terminal device runs the second desktop application, taking the terminal device displaying the second desktop as an example, the terminal device can also display a second message, which can be called a low-density message. Low-density messages can include second application messages and second system messages. Second application messages include messages pushed by the application displayed on the second desktop, and second system messages include messages pushed by the second operating system. In addition, in response to user operations, the terminal device can also display a second status bar, which can be called a low-density status bar. The terminal device can display low-density messages in the low-density status bar.
[0162] In one embodiment, the applications displayed on the first desktop may be different from the applications displayed on the second desktop. For example, the applications displayed on the first desktop may be completely different from or partially different from the applications displayed on the second desktop. In one embodiment, the first operating system may be the same as or different from the second operating system.
[0163] In one embodiment, referring to FIG7 , the application layer may further include: a first status bar application, a second status bar application, a first message center application, and a second message center application. The first status bar application is used to display a first status bar and a first message in the first status bar, and the second status bar application is used to display a second status bar and a second message in the second status bar. The first message center application is used to manage messages pushed by applications on the first desktop and messages pushed by the first operating system, and the second message center application is used to manage messages pushed by applications on the second desktop and messages pushed by the second operating system.
[0164] Among them, when the terminal device runs the first desktop application, it can also run the first status bar application and the first message center application. Accordingly, the terminal device can display the first desktop, and the terminal device can also display the first message in the first status bar. Similarly, when the terminal device runs the second desktop application, it can also run the second status bar application and the second message center application. Accordingly, the terminal device can display the second desktop, and the terminal device can also display the second message in the second status bar.
[0165] It should be understood that the dashed boxes in FIG. 7 represent an optional first status bar application, an optional second status bar application, an optional first message center application, and an optional second message center application.
[0166] In one embodiment, the application layer may further include a high-density desktop configuration application. For example, the user may configure data in the high-density desktop that can be accessed through the low-density desktop, or configure applications that are only displayed on the high-density desktop, etc. through the high-density desktop configuration application.
[0167] The application framework layer can provide an API and programming framework for applications in the application layer. In one embodiment, the application framework layer includes some predefined functions, features, or services. In the embodiment of the present application, the application framework layer is used to provide account authentication capabilities, the ability to manage different desktops, and the ability to manage access permissions for different desktops.
[0168] In one embodiment, referring to FIG7 , the application framework layer may include a high-density management component, a low-density management component, and a high- and low-density switching module. The high-density management component is used to manage high-density desktops and provide services such as account authentication and password authentication related to high-density desktops. The low-density management component is used to manage low-density desktops and provide services such as account authentication and password authentication related to low-density desktops. The high- and low-density switching module is used to implement switching between high- and low-density desktops.
[0169] In one embodiment, the high-density management component may include: a high-density account management module, a high-density account authentication module, a high-density exclusive service, a high-density configuration service, and a high-density configuration library. The high-density account management module is used to manage high-density accounts. The high-density account can be understood as a login account that triggers the terminal device to display the first desktop or the first type of desktop. Among them, when the terminal device logs in to the high-density account, the first desktop or the first type of desktop can be displayed. For example, taking the high-density account as an enterprise account as an example, when the terminal device logs in to the enterprise account, the enterprise desktop can be displayed. The high-density account authentication module is used to authenticate the high-density account. The high-density exclusive service can be understood as a service used by applications that are only displayed on the high-density desktop. Among them, the high-density configuration service is used to assist in configuring the high-density configuration library. The high-density configuration library may include but is not limited to: data in the high-density desktop that can be accessed by the pre-configured low-density desktop, or applications that are only displayed on the high-density desktop, etc.
[0170] In one embodiment, the high- and low-density switching module can access the high-density configuration library when switching desktops, so as to accurately display the correct application on the desktop.
[0171] The low-density management component may include: a low-density account management module, a low-density account authentication module, and a low-density general service. The low-density account management module is used to manage low-density accounts. The low-density account can be understood as a login account that triggers the terminal device to display the second desktop or the second type of desktop. Among them, the terminal device can access the low-density desktop by logging into the low-density account. For example, taking the low-density account as a personal account, the terminal device can display the personal desktop by logging into the personal account. The low-density account authentication module is used to authenticate the low-density account. Low-density general services can be understood as services used by applications displayed on the low-density desktop, such as low-density general services can include but are not limited to audio services audio, video services video, etc.
[0172] The system layer is used to provide application isolation and application data isolation capabilities, and can also provide shared storage space capabilities. Referring to Figure 7, the system layer may include: a first isolation space and a second isolation space.
[0173] Among them, the first isolation space can be understood as the resources allocated by the terminal device to the first desktop application.
[0174] In one embodiment, the first isolation space may include: a first sandbox. The first sandbox is used to isolate the first desktop application, data of the first desktop application, applications on the low-density desktop, and data of the applications on the low-density desktop.
[0175] In one embodiment, the first isolated space may further include: a secure boot module and a secure authentication module. When the terminal device is powered on, the secure boot module and the secure authentication module may be activated.
[0176] In one embodiment, the first isolated space may further include: a high-density exclusive storage space. The high-density exclusive storage space is used to store data during the running process of the first desktop application.
[0177] Among them, the second isolation space can be understood as the resources allocated by the terminal device to the second desktop application.
[0178] In one embodiment, the second isolation space may include a second sandbox for isolating the second desktop application, data of the second desktop application, applications on the high-density desktop, and data of the applications on the high-density desktop.
[0179] In one embodiment, the second isolated space may further include: a low-density general storage space. The low-density general storage space is used to store data during the running of the second desktop application.
[0180] In one embodiment, the terminal device may further include a hardware layer, and the hardware layer may not belong to the software system of the terminal device. Referring to Figure 7, the hardware layer may include a first storage space and a second storage space. The first storage space and the second storage space are isolated. Exemplarily, if a first hard disk and a second hard disk are provided in the terminal device, the first storage space is contained in the first hard disk, and the second storage space is contained in the second hard disk, the isolation of the first storage space and the second storage space can be achieved. Exemplarily, a first hard disk may be provided in the terminal device, and the first storage space and the second storage space are both contained in the first hard disk, but the first storage space and the second storage space are isolated.
[0181] The first storage space can be used to store data of the first desktop application and data of applications on the low-density desktop, etc. The second storage space can be used to store data of the second desktop application and data of applications on the low-density desktop, etc.
[0182] In one embodiment, referring to FIG7 , the first storage space can also be divided into: memory isolation storage space, secure boot storage space, secure authentication storage space, and high-density data storage space. Among them, the high-density data storage space is used to store data of the first desktop application and data of applications on the high-density desktop. The memory isolation storage space can be used to temporarily store data of the terminal device when running the second desktop application, as well as data exchanged with other memories. The secure boot storage space is used to store data of the secure boot module after startup. The secure authentication storage space is used to store data of the secure authentication module after startup.
[0183] In the embodiment of the present application, the application framework layer, system layer and hardware layer of the terminal device can be divided into at least two operating environments. Figure 7 and the following embodiments are illustrated by taking the at least two operating environments including two operating environments as an example, and the two operating environments are respectively a first operating environment and a second operating environment. It should be understood that, exemplarily, when the application layer of the terminal device includes a third desktop application, the terminal device can also divide an operating environment for the operation of the third desktop and the operation of the application on the third desktop at the application framework layer, system layer and hardware layer. The method of dividing the operating environment can refer to the relevant description of "dividing the first operating environment and the second operating environment".
[0184] In one embodiment, the security levels of at least two operating environments in the terminal device may be the same, such as the first operating environment and the second operating environment may both be used for the operation of the enterprise desktop, or both are used for the operation of the personal desktop. In one embodiment, the security levels of at least two operating environments in the terminal device may be different, such as the first operating environment is used for the operation of the enterprise desktop, the second operating environment is used for the operation of the personal desktop, and the security level of the operating environment of the enterprise desktop is higher than the security level of the operating environment of the personal desktop. Alternatively, if the first operating environment is used for the operation of the enterprise desktop, the second operating environment is used for the operation of the personal desktop, and the third operating environment is used for the operation of the home desktop, the security level of the operating environment of the enterprise desktop is higher than the security level of the operating environment of the personal desktop, and the security level of the operating environment of the personal desktop is higher than the security level of the operating environment of the home desktop.
[0185] In an embodiment of the present application, in the application framework layer, a high-density management component is allocated to the first operating environment, and a low-density management component is allocated to the second operating environment. Among them, the high-density and low-density switching module can be used as a module that can be called by both the first operating environment and the second operating environment to realize the switching of high-density desktop and low-density desktop. At the system layer, a first isolation space is allocated to the first operating environment, and a second isolation space is allocated to the second operating environment, which can realize the isolation of applications and application data. At the hardware layer, a first storage space is allocated to the first operating environment, and a second storage space is allocated to the second operating environment, which can realize the isolation of data storage. In other words, the embodiment of the present application can divide the terminal device into multiple operating environments that are isolated from each other, and can realize different applications running in corresponding operating environments, thereby realizing the isolation of applications and data.
[0186] Taking the terminal device running a first desktop application as an example, the terminal device can run the first desktop application in a first operating environment. Exemplarily, the terminal device can use a high-density management component and use a first isolation space and a first storage space to run the first desktop application to display a high-density desktop. Taking the terminal device running a second desktop application as an example, the terminal device can run the second desktop application in a second operating environment. Exemplarily, the terminal device can use a low-density management component and use a second isolation space and a second storage space to run the second desktop application to display a high-density desktop.
[0187] In the embodiment of the present application, the application framework layer, system layer, and hardware layer of the terminal device can be divided into a first operating environment and a second operating environment. When the terminal device runs different desktop applications, the corresponding modules can be called and the corresponding isolation space and storage space can be used in the different operating environments, thereby achieving isolation of the desktop applications and desktop data. Therefore, in the embodiment of the present application, the terminal device can provide a "one machine, multiple uses" function, that is, in a single terminal device, the terminal device can run corresponding desktop applications in different operating environments. In addition, because different operating environments can provide isolation functions for applications and application data, the operation security of the desktop applications can be guaranteed.
[0188] For example, a user can access an enterprise desktop and a personal desktop on a single terminal device, and the terminal device can isolate the data of the enterprise desktop and the personal desktop, thereby ensuring data security. In addition, in an embodiment of the present application, the terminal device may not isolate the application layer of the terminal device, such as the terminal device does not isolate the first desktop application and the second desktop application in the application layer, thereby providing the possibility for the terminal device to quickly switch desktops. In an embodiment of the present application, the terminal device displays a desktop, and the user can operate on the desktop to trigger the terminal device to switch to another desktop. The terminal device does not need to exit to the lock screen interface to switch desktops. The operation is convenient, the desktop switching efficiency is high, and a user experience can be provided.
[0189] In an embodiment of the present application, an interface can be provided for the desktop application in the application layer to call. The implementation logic of this interface can be that the high-density and low-density switching module switches the environment in which the desktop application runs according to the high-density configuration library to switch the desktop displayed on the terminal device. For example, during the desktop switching process, the desktop application calls this interface to perform operations such as account authentication, high-density service permission management, application isolation, application data isolation, and storage space isolation. In this way, developers only need to make simple adaptations in the desktop applications, status bar applications, and message center applications at the application layer to enable users to switch desktops. Other applications are basically unaware and do not need any adaptation. The implementation method is simple.
[0190] In one embodiment, the application framework layer and the system layer can also be merged into one layer, and the merged layer can realize the functions of the application framework layer and the system layer. In the embodiment of the present application, there is no restriction on the hierarchical division of the terminal device. In this embodiment, taking the layer after the application framework layer and the system layer are merged as the "system layer" as an example, with reference to Figure 8, the system layer can provide account authentication capabilities, network isolation capabilities, data isolation capabilities, application isolation capabilities, and management and control policy partitioning capabilities. Exemplarily, the account authentication capability can be implemented by a high-density account management module, a high-density account authentication module, a low-density account management module, and a low-density account authentication module. Network isolation capability, data isolation capability, and application isolation capability can be provided by the first isolation space, the second isolation space, the first storage space, and the second storage space. The management and control policy partitioning capability can be implemented by a high-low density switching module.
[0191] 8 , the application layer can provide management configuration policy capabilities and account identification capabilities. For example, referring to FIG7 , the management configuration policy capabilities can be implemented by the first desktop application and the second desktop application, and the account identification capability is used to identify an account.
[0192] Referring to Figures 7 and 8, in one embodiment, the cloud can also issue configuration policies to the terminal device, and the terminal device can store the configuration policies in the high-density configuration library. Configuration policies can include, for example, configuring data in the high-density desktop that can be accessed by the low-density desktop, or configuring applications that are only displayed on the high-density desktop. In one embodiment, referring to Figures 7 and 8, the cloud can include a configuration module for issuing configuration policies to the terminal device.
[0193] In one embodiment, the cloud can also send desktop templates to the terminal device so that the terminal device can provide user-selectable desktop templates to enable the user to create a new desktop. Please refer to the relevant description in the following embodiments.
[0194] In one embodiment, when a configuration policy or desktop template is updated, the cloud can send a download prompt to the terminal device so that the terminal device can obtain the new configuration policy and new desktop template from the cloud. In one embodiment, the terminal device can periodically access the cloud to detect whether there is a new configuration policy and new desktop template. When a new configuration policy and new desktop template exist, the terminal device can download the new configuration policy and new desktop template. The embodiments of the present application do not limit the manner in which the cloud sends configuration policies or desktop templates to the terminal device.
[0195] It is understood that the structures shown in Figures 7 and 8 do not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown, or combine or split some components, or arrange the components differently.
[0196] In the structure of the terminal device shown in Figures 7 and 8, applications and application data are isolated at the application framework layer, system layer, and hardware layer, so that the terminal device has application isolation capabilities and application data isolation capabilities.
[0197] In one embodiment, when the terminal device does not have the application isolation capability and the application data isolation capability, the desktop application can determine to call the module corresponding to the terminal device based on the current desktop to achieve application isolation and application data isolation. In this embodiment, in order to achieve application isolation and application data isolation, different encryption algorithms can be set so that the desktop application uses different encryption algorithms to access different modules. For example, referring to Figures 7 and 8, a first encryption algorithm can be set for the modules included in the first operating environment, and a second encryption algorithm can be set for the modules included in the second operating environment. In this way, when the terminal device runs the first desktop application, it can use the first encryption algorithm to call the module in the first operating environment, so that the terminal device can run a low-density desktop in the first operating environment to display a high-density desktop. Similarly, when the terminal device runs the second desktop application, it can use the second encryption algorithm to call the module in the second operating environment, so that the terminal device can run a high-density desktop in the second operating environment to display a low-density desktop.
[0198] The locked desktop switching method provided by an embodiment of the present application is described with reference to the structure of the terminal device shown in Figures 7 and 8. In one embodiment, the terminal device can display a first desktop. For example, the terminal device can log in to a first account and display the first desktop.
[0199] It should be understood that in Figures 7 and 8, the first operating environment is used to run a first desktop application, and the terminal device can display a high-density desktop, and the second operating environment is used to run a second desktop application, and the terminal device can display a low-density desktop. In one embodiment, the first operating environment can be used to run the first desktop application, and the terminal device can display a low-density desktop, and the second operating environment is used to run the second desktop application, and the terminal device can display a high-density desktop.
[0200] In an embodiment of the present application, a first desktop can be run in a first operating environment. For example, if a terminal device runs a first desktop application, the first desktop can be displayed. The first desktop can be a high-density desktop or a low-density desktop. For example, taking the example of a desktop including an enterprise desktop and a personal desktop, the enterprise desktop can be a high-density desktop, the personal desktop can be a low-density desktop, and the first desktop can be either an enterprise desktop or a personal desktop.
[0201] In one embodiment, a high-density desktop may include at least one desktop, and a low-density desktop may include at least one desktop. For example, the high-density desktop is an enterprise desktop, which may include Enterprise Desktop 1 and Enterprise Desktop 2, and the low-density desktop is a personal desktop, which may include Personal Desktop 1 and Personal Desktop 2. The first desktop may be any of the enterprise desktops, such as Enterprise Desktop 1 or Enterprise Desktop 2, or the first desktop may be any of the personal desktops, such as Personal Desktop 1 or Personal Desktop 2.
[0202] The terminal device switches to the second desktop in response to the first operation on the first desktop. The first operation can refer to the description in S203.
[0203] In an embodiment of the present application, the terminal device can implement switching between different types of desktops, and can also implement switching between desktops of the same type. The type of desktop can be distinguished based on the operating environment of the desktop. For example, taking the example of a terminal device including a first operating environment and a second operating environment, such as the security level of the first operating environment is higher than the security level of the second operating environment. Accordingly, the desktop running in the first operating environment can be called a high-density type desktop, referred to as a high-density desktop, and the desktop running in the second operating environment can be called a low-density type desktop, referred to as a low-density desktop.
[0204] In one embodiment, the first desktop and the second desktop can be the same type of desktop, such as both being low-density desktops or both being high-density desktops. For example, the first desktop can be Enterprise Desktop 1 and the second desktop can be Enterprise Desktop 2. Alternatively, the first desktop can be Personal Desktop 1 and the second desktop can be Personal Desktop 2.
[0205] In one embodiment, the first desktop and the second desktop can be different types of desktops, such as the first desktop is a high-density desktop and the second desktop is a low-density desktop. Alternatively, the first desktop is a low-density desktop and the second desktop is a high-density desktop.
[0206] In one embodiment, to ensure the security of desktop switching, the terminal device may also provide a password verification mechanism. Specifically, in response to a first operation, the terminal device may output a first prompt message, which prompts the user to enter a password. The password may be understood as the password for switching desktops. If the password entered by the user is verified, the terminal device may switch to the second desktop. If the password entered by the user is not verified, the terminal device may not switch desktops. Passwords may include, but are not limited to, biometric passwords, numeric passwords, alphabetic passwords, and symbolic passwords. Biometric passwords may include, but are not limited to, face, iris, fingerprint, palm print, etc. The following embodiments are described using a face as an example of a password.
[0207] In one embodiment, the password verification mechanism can be applied to the switching scenario of the same type of desktops, and / or the switching scenario of different types of desktops. Exemplarily, when the first desktop and the second desktop are both high-density desktops or both are low-density desktops, the terminal device can output a first prompt message in response to the first operation to prompt the user to enter a password. Exemplarily, when the first desktop is a high-density desktop and the second desktop is a low-density desktop, or when the first desktop is a low-density desktop and the second desktop is a high-density desktop, the terminal device can output a first prompt message in response to the first operation to prompt the user to enter a password.
[0208] In one embodiment, in order to reduce the number of password verifications and also ensure the security of desktop switching, the terminal device may provide a password verification mechanism when preset conditions are met.
[0209] In one embodiment, the preset condition may be the switching of different types of desktops. In this embodiment, different types of desktops run in different operating environments, and different operating environments have different security levels. Therefore, when different types of desktops are switched, the terminal device may output a first prompt message to prompt the user to enter a password to ensure the security of the desktop switching. Exemplarily, when the first desktop and the second desktop are both high-density desktops or both are low-density desktops, because the desktop switching is the switching of desktops of the same type, the terminal device may not output the first prompt message in response to the first operation, but directly switch the desktops. Exemplarily, when the first desktop is a high-density desktop and the second desktop is a low-density desktop, or when the first desktop is a low-density desktop and the second desktop is a high-density desktop, because the desktop switching is the switching of different types of desktops, in order to ensure the security of the desktop switching, the terminal device may output a first prompt message in response to the first operation to prompt the user to enter a password.
[0210] In an embodiment of the present application, after the terminal device outputs the first prompt information, the user can enter the first password based on the first prompt information. The terminal device can verify the first password entered by the user. If the first password verification is successful, the terminal device can switch to the second desktop. If the first password verification fails, the terminal device may not switch desktops. In one embodiment, if the first password verification fails, the terminal device can also output a message such as "Wrong Password" to prompt the user to re-enter the password or change the type of the password entered.
[0211] For example, as shown in ab in FIG9A , when a user operates the personal desktop identifier on the switching interface 302, the terminal device may output a first prompt message. For example, the terminal device may display a prompt interface 304, as shown in c in FIG9A . Prompt interface 304 may include a first prompt message of "Enter face for authentication." After the user enters their face (i.e., the first password), the terminal device may authenticate the first password and display an authentication interface 305. As shown in d in FIG9A , authentication interface 305 may include a prompt message of "Authorizing." After successful facial authentication, the terminal device may display an authentication success interface 306, as shown in e in FIG9A . Authentication success interface 306 may include a prompt message of "Authentication successful." Accordingly, after successful facial authentication, the terminal device may switch to the second desktop, i.e., the personal desktop, as shown in f in FIG9A . It should be understood that ab in FIG9A may refer to bc in FIG3A , and f in FIG9A may refer to d in FIG3A .
[0212] If the face authentication fails, for example, if the user enters an incorrect face, the terminal device may display an authentication failure interface 307, as shown in Figure 9C (e). This authentication failure interface 307 may include a prompt message stating "Authentication Failed." Accordingly, after the face authentication fails, the terminal device may display a switching interface 302, as shown in Figure 9C (b). It should be understood that "ad" in Figure 9C may be the same as "ad" in Figure 9A, and reference may be made to the relevant description in Figure 9A.
[0213] Because the security level of the high-density desktop is higher than that of the low-density desktop, while being able to further reduce the number of password verifications and ensure desktop security, in one embodiment, when the terminal device switches from the high-density desktop to the low-density desktop, because the security level of the low-density desktop is low, the password can be authenticated only once. For example, after the terminal device is turned on this time, or after switching from the screen-off state to the screen-on state, the terminal device switches from the high-density desktop to the low-density desktop, the terminal device can output the first prompt information once and authenticate the password only once. Accordingly, the preset condition for the terminal device to output the first prompt information can be: after the terminal device is turned on, it has not switched from the first desktop to the second desktop, or, after the terminal device switches from the screen-off state to the screen-on state, it has not switched from the first desktop to the second desktop. This preset condition can be understood as: after the terminal device is turned on, it switches from the first desktop to the second desktop for the first time, or, after the terminal device switches from the screen-off state to the screen-on state, it switches from the first desktop to the second desktop for the first time.
[0214] For example, the security level of the first operating environment is higher than the security level of the second operating environment. Accordingly, the security level of the first desktop is higher than the security level of the second desktop. The first desktop can be used as a high-density desktop, and the second desktop can be used as a low-density desktop. Taking the startup of a terminal device as an example, after the terminal device is powered on, if the terminal device switches from a high-density desktop to a low-density desktop for the first time, the terminal device can output a first prompt message to prompt the user to enter a password to verify the first password entered by the user, as shown in FIG9A . The process of the terminal device outputting the first prompt message and verifying the first password can refer to the verification process shown in FIG9A and FIG9C . If the terminal device switches from a high-density desktop to a low-density desktop again before shutting down, because the password verification has been performed once in the "switching from a high-density desktop to a low-density desktop" after the terminal device is powered on this time, when the terminal device switches from a high-density desktop to a low-density desktop again, the terminal device can not output the first prompt message, but directly switch to the second desktop, as shown in FIG9B .
[0215] Taking the case where the terminal device switches from the screen-off state to the screen-on state as an example, if the terminal device is turned on and enters the screen-off state, the terminal device can respond to the user's operation and switch from the screen-off state to the screen-on state. If the terminal device switches from the high-density desktop to the low-density desktop for the first time, the terminal device can output a first prompt message to prompt the user to enter a password to verify the first password entered by the user. This process can refer to the verification process shown in Figures 9A and 9C. If the terminal device switches from the screen-off state to the screen-on state this time and then switches from the high-density desktop to the low-density desktop, because the password verification has been performed once for "switching from the high-density desktop to the low-density desktop" after the terminal device turns on the screen this time, when the terminal device switches from the high-density desktop to the low-density desktop again, the terminal device may not output the first prompt message, but directly switch to the second desktop.
[0216] In one embodiment, when the terminal device switches from a low-density desktop to a high-density desktop, because the security level of the high-density desktop is high, the terminal device can output a first prompt message each time it switches from a low-density desktop to a high-density desktop to verify the password entered by the user, thereby ensuring the security of the high-density desktop.
[0217] For example, the security level of the first operating environment is higher than the security level of the second operating environment. Accordingly, the security level of the first desktop is higher than the security level of the second desktop. The first desktop can be used as a high-density desktop, and the second desktop can be used as a low-density desktop. Each time the terminal device switches from the low-density desktop to the high-density desktop, the terminal device can output a first prompt message to prompt the user to enter a password to verify the first password entered by the user. This process can refer to the verification process shown in Figures 9A and 9C.
[0218] Similarly, when the terminal device switches from the second desktop to the first desktop, the terminal device may also output a second prompt message to verify the password entered by the user according to the password authentication mechanism in the "switching from the first desktop to the second desktop" scenario. For example, the security level of the first operating environment is higher than the security level of the second operating environment. Accordingly, the security level of the first desktop is higher than the security level of the second desktop. The first desktop can be used as a high-density desktop, and the second desktop can be used as a low-density desktop.
[0219] After the terminal device switches to the second desktop, the user can perform a second operation on the second desktop to trigger the terminal device to switch to the first desktop. The second operation can refer to the description of the first operation. Similarly, in order to ensure the security of desktop switching, the terminal device can output a second prompt message in response to the second operation, and the second prompt message is used to prompt the user to enter a password. The user can enter a second password based on the second prompt message, and the terminal device can verify the second password. When the second password verification passes, the terminal device can switch to the first desktop, and when the second password verification fails, the terminal device may not switch the desktop. In one embodiment, when the second password verification fails, the terminal device can also output information such as "incorrect password" to prompt the user to re-enter the password or change the type of the entered password.
[0220] In the embodiment of the present application, a user can perform a first operation on a first desktop to trigger the terminal device to quickly switch to a second desktop. In this application, the terminal device can switch desktops without returning to the lock screen interface, which is simple to operate, highly efficient in desktop switching, and provides a high user experience. In addition, when switching desktops, the terminal device can also verify the password entered by the user. If the password verification is successful, the terminal device switches the desktop, which can ensure the security of desktop switching.
[0221] In one embodiment, the first desktop and the second desktop are the desktops of the first account logged into the terminal device. That is, in this application, the same account can correspond to multiple desktops. When the terminal device logs into an account, the present application can implement switching between different desktops of the terminal device in that account. For example, the first account can be a corporate account or a personal account. In this embodiment of the application, different login accounts can include desktops of different or the same type.
[0222] For example, taking the example of a first account being an enterprise account, the enterprise account can include a first desktop and a second desktop, which can be of the same or different types. For example, the first desktop is a high-density desktop, and the second desktop is a low-density desktop. After logging into the enterprise account, the terminal device can display the first desktop. A user performing a first operation on the first desktop can trigger the terminal device to switch to the second desktop.
[0223] In an embodiment of the present application, the terminal device can provide the user with a function of selecting a login account for the terminal device. In one embodiment, the terminal device can display the login account of the terminal device on the lock screen interface, so that the user can select the login account of the terminal device on the lock screen interface of the terminal device.
[0224] For example, referring to a in Figure 10 , the terminal device displays a lock screen interface 1001, which includes an identifier of the first account. Figure 10 a uses the example of the first account being a corporate account to illustrate that a user can operate the lock screen interface 1001 to trigger the terminal device to display the first desktop.
[0225] In one embodiment, the lock screen interface may include a control for switching the login mode. The user's operation to switch the login mode control may trigger the terminal device to display the identifier of the first operating environment and the identifier of the second operating environment on the lock screen interface. Taking the identifier of the first operating environment as an example, the identifier of the first operating environment may include, but is not limited to, the name of the first operating environment, the name and number of the desktop type, and other information used to distinguish desktops running in different operating environments. The identifier of the second operating environment may refer to the description of the identifier of the first operating environment.
[0226] The first desktop runs in the first operating environment, and the terminal device can display the first desktop in response to an operation to identify the first operating environment. In this embodiment, the first desktop and the second desktop can be the desktops of the terminal device for logging into the first account. The embodiment of the present application can implement switching between different desktops when the terminal device is logged into the first account.
[0227] Exemplarily, as shown in a of FIG10 , the lock screen interface 1001 can also display a control 101 for switching the login mode. When the user operates the control 101 for switching the login mode, the terminal device can be triggered to display the identifier of the first operating environment and the identifier of the second operating environment. Taking the security level of the first operating environment as higher than the security level of the second operating environment, and taking the enterprise account including the enterprise desktop 1 and the personal desktop 1 as an example, FIG10 b takes the identifier of the first operating environment as "enterprise domain" 102, and the identifier of the second operating environment as "personal domain" 103 as an example. Among them, when the user operates the "enterprise domain" 102, the terminal device can be triggered to display the enterprise desktop running in the first operating environment, and when the user operates the "personal domain" 103, the terminal device can be triggered to display the personal desktop running in the second operating environment. Exemplarily, as shown in b of FIG10 , taking the user operating the "enterprise domain" 102 as an example, the terminal device can display the first desktop, i.e., the enterprise desktop, as shown in c of FIG10 . It should be understood that in order to characterize the setting of the first account in the terminal device and the difference between setting the first account and the second account, c in Figure 10 takes the example of displaying the logo of the existing desktop in the terminal device on the first desktop.
[0228] In this embodiment, a user can perform a first operation on the first desktop, which can trigger the terminal device to switch to the personal desktop, as shown in Figures 9A and 9C. It should be noted that in the embodiment of the present application, when the terminal device displays the identifiers of the desktops already in the terminal device, it can display the identifiers of the desktops included in the first account, so that the terminal device can switch between different desktops under the first account. Figure 10c takes the example of displaying the identifier of the enterprise desktop and the identifier of the personal desktop on the enterprise desktop to illustrate that the terminal device can display the identifiers of the desktops included in the first account.
[0229] In one embodiment, if there are multiple desktops running in the first operating environment, the terminal device can display the first desktop in response to the user's operation to identify the first operating environment. The first desktop can be any desktop running in the first operating environment, or the last desktop running in the first operating environment before the last shutdown, or the desktop running the most times in the first operating environment, which is not limited in this embodiment of the present application.
[0230] It should be understood that when a terminal device is logged in to a first account, if the first account includes different types of desktops, the terminal device can switch between different types of desktops based on user operations. When the first account includes desktops of the same type, the terminal device can switch between the same type of desktops based on user operations. The process of switching desktops by the terminal device can refer to the description of the above embodiment.
[0231] In one embodiment, in order to facilitate user operations, the lock screen interface 1001 can directly display the logo of the first operating environment and the logo of the second operating environment. The user operates the logo of the operating environment to trigger the terminal device to display the desktop running in the operating environment. For example, taking the security level of the first operating environment as higher than the security level of the second operating environment, and taking the enterprise account as an example, which includes the enterprise desktop and the personal desktop, the user operates the logo of the first operating environment on the lock screen interface 1001 to trigger the terminal device to display the first desktop, that is, the enterprise desktop. In this embodiment, the user can perform the first operation on the first desktop, which can trigger the terminal device to switch to the personal desktop.
[0232] In one embodiment, the first desktop is the desktop of the terminal device when the first account is logged in, and the second desktop is the desktop of the terminal device when the second account is logged in, where the first account and the second account are different. In other words, in this application, the terminal device can log in to different accounts, and can switch desktops when the terminal device is logged in to different accounts, or in other words, in this application, it can switch desktops corresponding to different accounts.
[0233] Exemplarily, the first account may be account 1, and the second account may be account 2. Under account 1, desktops of different types or the same type may be included, and under account 2, desktops of different types or the same type may also be included. In an embodiment of the present application, the terminal device may realize switching of desktops of different accounts.
[0234] For example, referring to a in FIG11 , the terminal device displays a lock screen interface 1101, which includes an identifier for a first account and an identifier for a second account. FIG11 a is illustrated using an example in which the first account is account 1 and the second account is account 2. FIG11 a uses an example in which the first account is selected, meaning that the terminal device is about to log in to account 1. In this embodiment, a user can operate lock screen interface 1101 to trigger the terminal device to display the first desktop. The manner in which a user operates lock screen interface 1101 can refer to the description of the user operating lock screen interface 1001.
[0235] For example, taking the example of Account 1 corresponding to Enterprise Desktop 1 and Personal Desktop 1, and Account 2 corresponding to Enterprise Desktop 2 and Personal Desktop 2, as shown in Figure 11a, the lock screen interface 1101 can also display a switch login mode control 101. When the user operates the switch login mode control 101, it can trigger the terminal device to display the identifier of the first operating environment and the identifier of the second operating environment. Taking the example of the security level of the first operating environment being higher than the security level of the second operating environment, Figure 11b takes the identifier of the first operating environment as "Enterprise Domain" 102 and the identifier of the second operating environment as "Personal Domain" 103 as an example. Among them, when the user operates "Enterprise Domain" 102, it can trigger the terminal device to display Enterprise Desktop 1 running in the first operating environment, and when the user operates "Personal Domain" 103, it can trigger the terminal device to display Personal Desktop 1 running in the second operating environment. Similarly, when the user selects the second account "Account 2", the user operates the switch login mode control 101, which can also trigger the terminal device to display the identifier of the first operating environment "Enterprise Domain" 102 and the identifier of the second operating environment "Personal Domain" 103. Among them, under account 2, the user operates the "enterprise domain" 102, which can trigger the terminal device to display the enterprise desktop 2 running in the first operating environment, and the user operates the "personal domain" 103, which can trigger the terminal device to display the personal desktop 2 running in the second operating environment.
[0236] For example, as shown in FIG11(b), taking the first account "Account 1" being selected as an example, and the user operating "Enterprise Domain" 102 as an example, the terminal device can display the first desktop, i.e., Enterprise Desktop 1, as shown in FIG11(c). FIG11(c) shows an example of displaying the identifier of an existing desktop on the terminal device on the first desktop.
[0237] In this embodiment, the user can perform a first operation on the first desktop, which can trigger the terminal device to switch desktops. The switching process can be shown in Figures 9A and 9C.
[0238] It should be noted that in the embodiments of the present application, when displaying the identifiers of existing desktops in the terminal device, the terminal device can display the identifier of the desktop under the first account and the identifier of the desktop under the second account, so that the terminal device can switch between desktops under different accounts. Figure 11c shows the example of displaying the identifier of enterprise desktop 1, the identifier of personal desktop 1, the identifier of enterprise desktop 2, and the identifier of personal desktop 2 on enterprise desktop 1, illustrating that the terminal device can display the identifier of the desktop in the first account and the identifier of the desktop in the second account.
[0239] In an embodiment of the present application, at least one login account can be set in the terminal device, and each login account can include at least two desktops, which can be of the same type or different types. Accordingly, the present application can realize switching of desktops under the same account, and can also realize switching of desktops under different accounts, and has a wide range of applications.
[0240] Here, in conjunction with the structures of the terminal devices shown in FIG7 and FIG8 , the interaction process between the modules in the terminal device when the terminal device switches desktops is described:
[0241] Scenario 1: Switching desktops when the terminal device is logged in to the first account.
[0242] Exemplarily, the terminal device switches from the first desktop in the first account to the second desktop in the first account. Taking the second desktop and the first desktop as examples of different types, the terminal device runs the first desktop application in the first operating environment and can display the first desktop. In response to the user's first operation, the terminal device can switch to the second desktop. Among them, the first desktop application can call the interface to trigger the high-low density switching module to execute the desktop switch. In response to the first operation, the high-low density switching module can access the high-density configuration library to determine the data in the high-density desktop that can be accessed by the second desktop, as well as the applications that are not displayed on the second desktop. Accordingly, the high-low density switching module can also notify the first desktop application to output the first prompt information so that the user can enter the first password. The high-low density switching module can also notify the low-density management component to verify the first password, and when the first password verification is passed, notify the second desktop application to start, so as to trigger the terminal device to display the second desktop.
[0243] In one embodiment, the second storage space can store a password for switching from the first desktop to the second desktop. When the low-security management component verifies the first password, it can compare it with the password stored in the second storage space to verify the first password. For example, when the first password is the same as the password stored in the second storage space, it can be determined that the first password verification has passed. When the first password is different from the password stored in the second storage space, it can be determined that the first password verification has failed. This embodiment of the application does not elaborate on the password verification process.
[0244] In one embodiment, the passwords for switching between different desktops may be the same or different. In one embodiment, the passwords for switching between different types of desktops may be the same or different.
[0245] Scenario 2: The terminal device switches desktops between different accounts. For example, if the terminal device switches from a first desktop in a first account to a second desktop in a second account, the interaction process of the internal modules of the terminal device when switching desktops between different accounts can refer to the relevant description in Scenario 1.
[0246] In one embodiment, when a terminal device switches from a first desktop in a first account to a second desktop in a second account, the terminal device may also verify the second account. Accordingly, the low-security management component may also verify the account number entered by the user, and when the account number entered by the user is verified, notify the second desktop application to start, thereby triggering the terminal device to display the second desktop in the second account.
[0247] In one embodiment, the present application can also provide users with a function of creating a new desktop. In this way, users can create a desktop according to their needs, which not only enriches the desktop but also meets the diverse needs of users.
[0248] In one embodiment, a terminal device may perform a third operation on the desktop displayed on the terminal device, which may trigger the terminal device to create a new desktop. Taking the terminal device displaying a first desktop as an example, when the terminal device displays the first desktop, the terminal device may perform a third operation on the first desktop, triggering the terminal device to display at least one preset desktop template. It should be understood that the preset desktop template may include preset recommended content.
[0249] The user may select a target desktop template from the at least one preset desktop template to trigger the terminal device to generate a new desktop. For example, if the terminal device includes a first desktop and a second desktop, the new desktop may be referred to as a third desktop. In response to the selection of the target desktop template from the at least one preset desktop template, the terminal device may generate and display the third desktop based on the target desktop template.
[0250] In one embodiment, the third operation may include but is not limited to executing a gesture or a voice command on the first desktop, and the third operation is different from the first operation.
[0251] In one embodiment, taking the terminal device displaying a first desktop as an example, the first desktop may include a create desktop control. The third operation is an operation on the create desktop control. In response to the user operating the create desktop control, the terminal device may display at least one preset desktop template.
[0252] In one embodiment, as shown in FIG9A , a user operating a task view control on the first desktop may trigger the terminal device to display a switching interface 302, which may display a new desktop control. In this embodiment, the third operation includes: the user operating the task view control on the first desktop and the user operating the new desktop control on the switching interface 302.
[0253] The at least one preset desktop template may include: a first type of preset desktop template and a second type of preset desktop template, wherein the first type of preset desktop template corresponds to the first operating environment, and the second type of preset desktop template corresponds to the second operating environment. The first type of preset desktop template includes preset content with a first attribute, and the second type of preset desktop template includes preset content with a second attribute.
[0254] Exemplarily, the first type of preset desktop template can be a high-density type preset desktop template, and the second type of preset desktop template can be a low-density type preset desktop template. The high-density type preset desktop template corresponds to the first operating environment, and the low-density type preset desktop template corresponds to the second operating environment. The security level of the first operating environment is higher than the security level of the second operating environment.
[0255] Taking the first type of preset desktop template, an enterprise desktop, as an example, the first type of preset desktop template may include preset content such as Office Application 1, Office Application 2, a meeting card, and a to-do card with a first attribute. Taking the second type of preset desktop template, a personal desktop, as an example, the second type of preset desktop template may include preset content such as Personal Application 1, Personal Application 2, a music card, and a reading card with a second attribute.
[0256] In one embodiment, when displaying at least one preset desktop template, the terminal device may distinguish different types of preset desktop templates by type. For example, the terminal device may display an identifier of the desktop type and the preset desktop template corresponding to the desktop type.
[0257] Exemplarily, referring to a in Figure 12, taking the first desktop as enterprise desktop 1, and office application 1 and office application 2 displayed on enterprise desktop 1 as an example, a task view control 35 can be displayed on the first desktop 301. The user operates the task view control 35, and the terminal device can display the switching interface 302. Referring to b in Figure 12, a new desktop control 121 can be displayed on the switching interface 302. The user operates the new desktop control 121, and the terminal device can display the desktop type identifier and the preset desktop template corresponding to each desktop type. Referring to c in Figure 12, if the terminal device can display the identifier of the "enterprise desktop" type and the identifier of the "personal desktop" type, the "enterprise desktop" type can be understood as a high-density desktop, and the "personal desktop" type can be understood as a low-density desktop.
[0258] Due to the limitation of the display size of the terminal device and in order to make it easier for users to select preset desktop templates in different desktop types, the terminal device can first display a preset desktop template in the desktop type. The user can trigger the terminal device to display the next preset desktop template in the desktop type by sliding the desktop or other operations.
[0259] Referring to c in FIG12 , taking the example of a terminal device displaying a preset desktop template of the “Enterprise Desktop” type, the terminal device may also display a “Previous” control 122 and a “Next” control 123. By operating the “Previous” control 122 and the “Next” control 123, the user may trigger the terminal device to switch to displaying the preset desktop template of the “Enterprise Desktop” type. It should be understood that the user may operate the identifier of the “Personal Desktop” type to trigger the terminal device to display the preset desktop template of the “Enterprise Desktop” type. This process may refer to the process of the user creating the third desktop of the “Enterprise Desktop” type in FIG12 .
[0260] When displaying a preset desktop template, the terminal device may also display an "Add Desktop" control 124. After the user selects a target preset desktop template from at least one preset desktop template, the user may operate the "Add Desktop" control 124 to trigger the terminal device to create and display a third desktop based on the target preset desktop template selected by the user. The content contained in the third desktop may be the same as the content contained in the target preset desktop template. The third desktop is shown in d in FIG12 . d in FIG12 takes the example of a third desktop including the identifier of Office Application 1, the identifier of Office Application 2, and a calendar card.
[0261] In one embodiment, taking the first account of a terminal device as an example, the first account may be associated with a first desktop and a second desktop by default, and the first desktop and the second desktop are of different types. Alternatively, in one embodiment, taking the first account of a terminal device as an example, the first account may be associated with no desktop by default, and the user may create a first desktop and a second desktop corresponding to the first account.
[0262] In an embodiment of the present application, desktop templates can be pre-stored in the terminal device, and the desktop templates stored in the terminal device can be updated according to the update of the desktop templates in the cloud. The user can perform a third operation on the first desktop to trigger the terminal device to display at least one preset desktop template, so that the user can select a desktop template to create a new desktop, which can enrich the desktop and improve the user experience.
[0263] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0264] In one embodiment, the embodiment of the present application further provides an electronic device, which may be the terminal device described in the above embodiment. Referring to Figure 13, the electronic device may include: a processor 1301 (e.g., a CPU) and a memory 1302. The memory 1302 may include a high-speed random access memory (RAM) and may also include a non-volatile memory (NVM), such as at least one disk storage. Various instructions may be stored in the memory 1302 to perform various processing functions and implement the method steps of the present application.
[0265] Optionally, the electronic device involved in this application may further include: a power supply 1303, a communication bus 1304, and a communication port 1305. The communication port 1305 is used to enable communication between the electronic device and other peripheral devices. In the embodiment of the present application, the memory 1302 is used to store computer-executable program code, which includes instructions; when the processor 1301 executes the instructions, the instructions cause the processor 1301 of the electronic device to perform the actions in the above-mentioned method embodiment. The implementation principles and technical effects are similar and will not be repeated here.
[0266] Optionally, the electronic device involved in this application may further include: a display screen 1306. The display screen 1306 is used to display an interface of the electronic device.
[0267] It should be noted that the modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), one or more microprocessors (digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code through a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code, such as a controller. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0268] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0269] The term "plurality" in this article refers to two or more. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0270] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.
[0271] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Claims
1. A multi-desktop switching method, characterized in that: Applied to a terminal device, the method comprises: Log in to the first account; Displaying a first desktop, wherein the first desktop includes content having a first attribute; In response to a first operation on the first desktop, switch to the second desktop, the second desktop includes content with a second attribute, the second desktop is the desktop corresponding to the first account, or the second desktop is the desktop corresponding to the second account, and the first account and the second account are different.
2. The method according to claim 1, characterized in that There is at least one different content between the first desktop and the second desktop.
3. The method according to claim 1 or 2, characterized in that: The first desktop includes a task view control, and the switching to the second desktop in response to a first operation on the first desktop includes: In response to an operation on the task view control, displaying an identifier of the first desktop and an identifier of the second desktop; In response to an identification of operating the second desktop, directly switch to the second desktop.
4. The method according to claim 1 or 2, characterized in that: The first operation is a sliding operation on the first desktop, or the first operation is executing a preset gesture on the first desktop, or the first operation is a preset password.
5. The method according to any one of claims 1 to 4, characterized in that The terminal device includes a first file manager and a second file manager, the first file manager is used to manage the first desktop, and the second file manager is used to manage the second desktop.
6. The method according to claim 1 or 2, characterized in that: The terminal device includes a first operating environment and a second operating environment, the first desktop runs in the first operating environment, and the second desktop runs in the second operating environment.
7. The method according to claim 6, characterized in that The security level of the first operating environment is higher than the security level of the second operating environment, and before switching to the second desktop, the method further includes: Outputting first prompt information, where the first prompt information is used to prompt the user to enter a password; receiving a first password input by the user; verifying the first password; The switching to the second desktop includes: When the first password verification is passed, switch to the second desktop.
8. The method according to claim 7, characterized in that The outputting of the first prompt information includes: When the preset condition is met, the first prompt information is output.
9. The method according to claim 8, characterized in that The preset condition is: after the terminal device is turned on, it does not switch from the first desktop to the second desktop; or The preset condition is: after the terminal device switches from the screen-off state to the screen-on state, it does not switch from the first desktop to the second desktop.
10. The method according to any one of claims 1 to 9, characterized in that After switching to the second desktop, the method further includes: In response to a second operation on the second desktop, switch to the first desktop.
11. The method according to claim 10, characterized in that Before switching to the first desktop, the method further includes: Outputting second prompt information, where the second prompt information is used to prompt the user to enter a password; receiving a second password input by the user; verifying the second password; The switching to the first desktop includes: When the second password verification is passed, switch to the first desktop.
12. The method according to claim 1 or 2, characterized in that: Before logging into the first account, the method further includes: Displaying a lock screen interface, wherein the lock screen interface includes an identifier of the first account; The displaying of the first desktop includes: In response to an operation on the lock screen interface, the first account is logged in and the first desktop is displayed.
13. The method according to claim 12, characterized in that The lock screen interface includes a control for switching login modes, and in response to an operation on the lock screen interface, logging into the first account and displaying the first desktop includes: In response to an operation on the control for switching the login mode, displaying an identifier of the first operating environment and an identifier of the second operating environment on the lock screen interface; In response to the operation of identifying the first operating environment, the first account is logged in and the first desktop is displayed.
14. The method according to claim 12, characterized in that The lock screen interface also includes an identifier of a second account, and the identifier of the first account is in a selected state.
15. The method according to claim 1 or 2, characterized in that: When the second desktop is the desktop corresponding to the second account, the step of switching to the second desktop in response to the first operation on the first desktop includes: In response to the first operation, the second account is logged in and the second desktop is switched.
16. The method according to claim 15, characterized in that The second account is an account that the terminal device has logged in; or, Before logging into the second account, the method further includes: Outputting a third prompt message, wherein the third prompt message is used to prompt the user to enter the password of the second account; receiving a third password input by a user, and verifying the third password; The logging into the second account includes: When the third password is verified successfully, log in to the second account.
17. The method according to claim 1, characterized in that After displaying the first desktop, the method further includes: In response to a third operation on the first desktop, displaying at least one preset desktop template; In response to a selection operation of a target desktop template in the at least one preset desktop template, a third desktop is generated, wherein the target desktop template includes: preset recommended content; The third desktop is displayed.
18. The method according to claim 17, characterized in that The first desktop includes a new desktop control, the third operation is an operation on the new desktop control, and the at least one preset desktop template includes: a first type of preset desktop template and a second type of preset desktop template, the first type of preset desktop template includes preset content with a first attribute, and the second type of preset desktop template includes preset content with a second attribute.
19. A multi-desktop switching method, characterized in that: Applied to a terminal device, the method comprises: Log in to the first account; Display the first desktop; In response to a first operation on the first desktop, outputting a third prompt information, the third prompt information being used to indicate a password for entering a second account, the first operation being used to trigger the terminal device to switch to a second desktop corresponding to the second account; receiving a third password input by a user; If the third password verification is successful, switch to the second desktop; In response to a second operation on the second desktop, switching to the first desktop; In response to the first operation on the first desktop, switch to the second desktop.
20. The method according to claim 19, characterized in that The first desktop includes content with a first attribute, and the second desktop includes content with the first attribute; or The first desktop includes content with the first attribute, and the second desktop includes content with the second attribute, or the first desktop includes content with the second attribute, and the first desktop includes content with the first attribute.
21. An electronic device, characterized in that: include: Processor and memory; The memory stores computer instructions; The processor executes the computer instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 20.
22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method according to any one of claims 1 to 20 is implemented.
Citation Information
Patent Citations
Method for displaying browser interface on mobile equipment
CN102243662A
Desktop cloud login method based on Software Defined Network (SDN), terminal, SDN controller, and system
CN109302414A
Login method of intelligent terminal and electronic equipment
CN110276177A
Multi-desktop dynamic switching system and method
CN110806901A
Electronic equipment login account switching method and electronic equipment
CN115017487A
