Multi-user account switching method, device, electronic device and storage medium

By monitoring wake-up events in electronic devices, obtaining biometric information and switching user accounts based on mapping relationships, the problem of cumbersome multi-user account switching operations in the prior art is solved, and a more convenient user experience is achieved.

CN112084478BActive Publication Date: 2025-05-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010916925.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-03
Publication Date
2025-05-27
Estimated Expiration
2040-09-03

AI Technical Summary

Technical Problem

When existing electronic devices switch to log in with multiple user accounts, users need to manually enter their account name and password, which is cumbersome and has poor user experience.

Method used

By enabling wake-up event monitoring for multi-user accounts, the user's biometric information is obtained, the corresponding user account is found based on the preset mapping relationship, and when the electronic device has logged into the second user account and the first user account does not match the second user account, switch to the first user account.

Benefits of technology

It realizes the rapid switching of multi-user accounts through biometric information, making multi-user switching of electronic devices more convenient and fast, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112084478B_ABST
    Figure CN112084478B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device, and storage medium for switching multi-user accounts, which relates to the technical field of electronic devices. The method is applied to an electronic device, and the method includes: enabling listening for a wake-up event for a multi-user account, when a wake-up event triggered by a user is detected, obtaining the biometric information of the user, based on a preset mapping relationship, searching for a first user account corresponding to the biometric information of the user, and when the electronic device has logged in to a second user account and the first user account and the second user account do not match, switching the electronic device from logging in to the second user account to logging in to the first user account. The embodiments of the present application perform multi-user switching through biometric information, making the multi-user switching of the electronic device convenient and fast, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of electronic devices, and more specifically, to a method, apparatus, electronic device, and storage medium for switching between multiple user accounts. Background Art

[0002] With the development of science and technology, electronic devices are used more and more widely and have more and more functions, and have become one of the necessities in people's daily lives. At present, electronic devices have entered the era of multiple users, that is, electronic devices can switch between multiple user accounts. However, when an electronic device switches and logs in to multiple user accounts, the user needs to manually enter the account name and password to perform the switching and logging in, and the operation process is cumbersome, resulting in a poor user experience. Summary of the Invention

[0003] In view of the above problems, this application proposes a method, apparatus, electronic device, and storage medium for switching between multiple user accounts to solve the above problems.

[0004] In a first aspect, an embodiment of this application provides a method for switching between multiple user accounts, which is applied to an electronic device. The method includes: enabling listening for a wake-up event for multiple user accounts; when a wake-up event triggered by a user is detected, obtaining biometric information of the user; based on a preset mapping relationship, searching for a first user account corresponding to the biometric information of the user; when the electronic device has logged in to a second user account and the first user account does not match the second user account, switching the electronic device from logging in to the second user account to logging in to the first user account.

[0005] In a second aspect, an embodiment of this application provides a device for switching between multiple user accounts, which is applied to an electronic device. The device includes: a wake-up event listening module for enabling listening for a wake-up event for multiple user accounts; a feature information obtaining module for obtaining biometric information of the user when a wake-up event triggered by a user is detected; a user account searching module for searching for a first user account corresponding to the biometric information of the user based on a preset mapping relationship; and a user account switching module for switching the electronic device from logging in to the second user account to logging in to the first user account when the electronic device has logged in to a second user account and the first user account does not match the second user account.

[0006] In a third aspect, an embodiment of this application provides an electronic device, including a memory and a processor. The memory is coupled to the processor, and the memory stores instructions. When the instructions are executed by the processor, the processor executes the above method.

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

[0008] The multi-user account switching method, device, electronic device and storage medium provided by the embodiments of the present application monitor the wake-up event for the multi-user account. When the wake-up event triggered by the user is monitored, the biometric information of the user is obtained. Based on the preset mapping relationship, the first user account corresponding to the biometric information of the user is found. When the electronic device has logged in to the second user account and the first user account does not match the second user account, the electronic device is switched from logging in to the second user account to logging in to the first user account, so as to perform multi-user switching through biometric information, making the multi-user switching of the electronic device convenient and fast and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings without creative efforts based on these drawings.

[0010] Figure 1 The flowchart showing the multi-user account switching method provided by an embodiment of the present application;

[0011] Figure 2 The flowchart showing the multi-user account switching method provided by another embodiment of the present application;

[0012] Figure 3 Showing the Figure 2 Flowchart of an embodiment of step S230 of the multi-user account switching method shown in the present application;

[0013] Figure 4 Showing the Figure 2 Flowchart of another embodiment of step S230 of the multi-user account switching method shown in the present application;

[0014] Figure 5 The flowchart showing the multi-user account switching method provided by still another embodiment of the present application;

[0015] Figure 6 Showing the Figure 5 Flowchart of step S350 of the multi-user account switching method shown in the present application;

[0016] Figure 7The flowchart shows the method for switching multi-user accounts provided by another embodiment of the present application;

[0017] Figure 8 The flowchart shows the method for switching multi-user accounts provided by yet another embodiment of the present application;

[0018] Figure 9 shows the Figure 8 The flowchart of step S520 of the method for switching multi-user accounts shown;

[0019] Figure 10 The block diagram shows the multi-user account switching device provided by an embodiment of the present application;

[0020] Figure 11 The block diagram shows the electronic device for executing the method for switching multi-user accounts according to an embodiment of the present application;

[0021] Figure 12 shows the storage unit for storing or carrying the program code for implementing the method for switching multi-user accounts according to an embodiment of the present application. Detailed implementation manners

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

[0023] Currently, when an electronic device switches and logs in to multi-user accounts, it is necessary to operate by clicking the multi-user switching button on the settings interface. This switching operation is relatively cumbersome and cannot meet the user's need to quickly switch multi-user accounts, resulting in a poor user experience.

[0024] In view of the above problems, the inventors have found through long-term research and proposed a method, device, electronic device, and storage medium for switching multi-user accounts provided by an embodiment of the present application. By using biometric information for multi-user switching, the multi-user switching of the electronic device is made convenient and fast to improve the user experience. Among them, the specific method for switching multi-user accounts will be described in detail in the subsequent embodiments.

[0025] Please refer to Figure 1 , Figure 1 The flowchart shows the method for switching multi-user accounts provided by an embodiment of the present application. The method for switching multi-user accounts is used to switch multi-users through biometric information, making the multi-user switching of the electronic device convenient and fast and improving the user experience. In a specific embodiment, the method for switching multi-user accounts is applied to, for example, Figure 10The multi-user account switching device 200 shown and the electronic device 100 configured with the multi-user account switching device 200( Figure 11 ). Hereinafter, taking the electronic device as an example, the specific process of this embodiment will be described. Of course, it can be understood that the electronic device to which this embodiment is applied can be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited herein. The following will be directed to Figure 1 the process shown for a detailed description. The multi-user account switching method may specifically include the following steps:

[0026] Step S110: Enable listening for wake-up events for multi-user accounts.

[0027] In this embodiment, the electronic device can enable listening for wake-up events for multi-user accounts. Among them, the electronic device can enable listening for wake-up events for multi-user accounts when the user account is not logged in, or can also enable listening for wake-up events for multi-user accounts when the user account is logged in. In some embodiments, after the electronic device enables listening for wake-up events for multi-user accounts, it can listen for wake-up events for multi-user accounts in real time to respond to wake-up events for multi-user accounts in a timely manner based on the listening results.

[0028] In some embodiments, the wake-up events for multi-user accounts may include biometric information input events such as fingerprint information input events for multi-user accounts, voice information input events for multi-user accounts, and face information input events for multi-user accounts, or may also include non-biometric information input events such as touch events for multi-user accounts on the touch screen and touch events for multi-user accounts on physical buttons, which is not limited herein.

[0029] Step S120: When a wake-up event triggered by a user is detected, obtain the biometric information of the user.

[0030] In this embodiment, when a wake-up event triggered by a user is detected, the biometric information of the user can be obtained. For example, the face information, fingerprint information, voiceprint information, etc. of the user can be obtained, which is not limited herein.

[0031] As a way, when the acquired biometric information of the user is the user's face information, the user's face information can be acquired through the camera of the electronic device. Herein, the camera can be a front camera or a rear camera, and no limitation is made here. As another way, when the acquired biometric information of the user is the user's fingerprint information, the user's fingerprint information can be acquired through the fingerprint acquisition module of the electronic device. As yet another way, when the acquired biometric information of the user is the user's voiceprint information, the user's voiceprint information can be acquired by analyzing the voice information collected by the microphone or recording device of the electronic device.

[0032] Step S130: Based on the preset mapping relationship, search for the first user account corresponding to the biometric information of the user.

[0033] In this embodiment, the electronic device can set and store the biometric information of multiple users and multiple user accounts, and store the corresponding relationship between the biometric information of multiple users and multiple user accounts as a preset mapping relationship. Herein, the corresponding relationship can be that the biometric information of one user corresponds to one or more user accounts. Among them, the corresponding relationship between the biometric information of the user and the user account can be preset by the user and then stored in the electronic device.

[0034] As a way, the electronic device can create a mapping relationship table as a preset mapping relationship table. The preset mapping relationship table can include the corresponding relationship between the biometric information of multiple users and multiple user accounts. For example, the preset mapping relationship table can be as shown in Table 1. Herein, the biometric information of the user is represented by A, and the user account is represented by B. Then, through the mapping relationship table, the electronic device can correspondingly set the corresponding relationship between the biometric information of the user and the user account and store it locally in the electronic device.

[0035] Table 1

[0036] User's biometric information User account A1 B1 A2 B2 A3 B3 A4 B4

[0037] Further, in this embodiment, after obtaining the biometric information of the user of the wake-up event, the biometric information of the user that is consistent with the biometric information of the user of the wake-up event can be found from the preset mapping relation table. Then, based on the corresponding relationship between the biometric information of the user in the preset mapping relation table and the user account, the user account corresponding to the biometric information of the user that is consistent with the biometric information of the user of the wake-up event can be found and determined as the first user account corresponding to the biometric information of the user of the wake-up event. For example, when the biometric information of the user of the wake-up event is consistent with the biometric information A1 of the user, the user account B1 corresponding to the biometric information A1 of the user can be further determined based on the mapping relation table, and the user account B1 is determined as the first user account corresponding to the biometric information of the user of the wake-up event.

[0038] Step S140: When the electronic device has logged in to the second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account.

[0039] In this embodiment, the electronic device can be logged in to the second user account. In this embodiment, after obtaining the first user account, the first user account and the second user account can be compared to determine whether the first user account and the second user account match. Among them, when the comparison result indicates that the first user account and the second user account do not match, it indicates that the currently logged-in second user account of the electronic device is not the user account indicated by the wake-up event. Then, the multi-user switching interface can be called to switch the user account logged in by the electronic device, that is, switch the electronic device from logging in to the second user account to logging in to the first user account, so as to perform multi-user switching through biometric information, making the multi-user switching of the electronic device convenient and fast and improving the user experience.

[0040] The multi-user account switching method provided by an embodiment of the present application enables listening for wake-up events for multi-user accounts. When a wake-up event triggered by a user is detected, the biometric information of the user is obtained. Based on a preset mapping relation, the first user account corresponding to the biometric information of the user is found. When the electronic device has logged in to the second user account and the first user account does not match the second user account, the electronic device is switched from logging in to the second user account to logging in to the first user account, so as to perform multi-user switching through biometric information, making the multi-user switching of the electronic device convenient and fast and improving the user experience.

[0041] Please refer to Figure 2 , Figure 2 which shows a schematic flowchart of a multi-user account switching method provided by another embodiment of the present application. This method is applied to the above-mentioned electronic device. Next, it will be directed toFigure 2 The following steps will elaborate in detail on the process shown. The method for switching multi-user accounts may specifically include the following steps:

[0042] Step S210: Enable listening for wake-up events for multi-user accounts.

[0043] Step S220: When a wake-up event triggered by a user is detected, obtain the biometric information of the user.

[0044] For the specific descriptions of steps S210 - S220, please refer to steps S110 - S120, which will not be elaborated here.

[0045] Step S230: Obtain the wake-up information corresponding to the wake-up event.

[0046] In this embodiment, the electronic device may also obtain the wake-up information corresponding to the wake-up event. Among them, the order of the electronic device obtaining the biometric information of the user and obtaining the wake-up information corresponding to the wake-up event can be set arbitrarily according to requirements. For example, the electronic device may first obtain the biometric information of the user and then obtain the wake-up information corresponding to the wake-up event, or it may first obtain the wake-up information corresponding to the wake-up event and then obtain the biometric information of the user, or it may also obtain the biometric information of the user and the wake-up information corresponding to the wake-up event simultaneously. This is not limited here.

[0047] Please refer to Figure 3 , Figure 3 which shows Figure 2 a schematic flowchart of an embodiment of step S230 of the method for switching multi-user accounts shown in the present application. The following will elaborate in detail on Figure 3 the process shown. The method may specifically include the following steps:

[0048] Step S231A: Obtain the number of user accounts corresponding to the biometric information.

[0049] In some embodiments, the electronic device also supports multiple user accounts corresponding to the same user, that is, the same user may also correspond to multiple user accounts on the electronic device. And when the user corresponds to multiple user accounts on the electronic device, it is impossible to determine the user account corresponding to the wake-up event from the multiple user accounts corresponding to the user only through the biometric information of the user. Therefore, in this embodiment, the wake-up information corresponding to the wake-up event may also be obtained to jointly confirm and wake up the user account.

[0050] In some embodiments, after obtaining the biometric information of the user, the number of user accounts corresponding to the biometric information of the user can be obtained. As a way, based on a preset mapping relationship, the number of user accounts corresponding to the biometric information of the user can be obtained. For example, when the user accounts corresponding to the biometric information of the user include user account B1 and user account B2, it can be determined that the number of user accounts corresponding to the biometric information of the user is two.

[0051] Step S232A: When the number of user accounts corresponding to the biometric information is multiple, obtain the wake-up information corresponding to the wake-up event.

[0052] In some embodiments, when the number of user accounts corresponding to the biometric information of the user is multiple, that is, the number of user accounts corresponding to the biometric information of the user is more than one and the user accounts corresponding to the biometric information of the user are not unique, it indicates that the user account corresponding to the wake-up event cannot be determined from the multiple user accounts corresponding to the user only through the biometric information of the user. Then, the wake-up information corresponding to the wake-up event can be obtained, so as to obtain the user account corresponding to the wake-up event from the multiple user accounts corresponding to the biometric information of the user through the biometric information of the user and the wake-up information corresponding to the wake-up event.

[0053] In some embodiments, the wake-up information may include wake-up words. For example, the wake-up words may include "Xiaobu Xiaobu" and "Hello Xiaobu", and "Xiaobu Xiaobu" is bound to the user's account B1, and "Hello Xiaobu" is bound to the user's account B2. Then, when the wake-up information is "Xiaobu Xiaobu", it can be determined that the user account corresponding to the wake-up event from user account B1 and user account B2 is user account B1, and when the wake-up information is "Hello Xiaobu", it can be determined that the user account corresponding to the wake-up event from user account B1 and user account B2 is user account B2.

[0054] Please refer to Figure 4 , Figure 4 which shows Figure 2 a schematic flowchart of another embodiment of step S230 of the multi-user account switching method shown in the present application. In this embodiment, the biometric information is voiceprint information. The following will elaborate in detail on the Figure 4 flow shown. The method may specifically include the following steps:

[0055] Step S231B: Obtain the wake-up voice corresponding to the wake-up event.

[0056] In this embodiment, the biometric information is voiceprint information. Among them, a voiceprint is a sound wave spectrum carrying speech information that can be displayed by electroacoustic instruments. It is understandable that the generation of human language is a complex physiological and physical process between the human language center and the vocal organs. When a person speaks, the vocal organs used - the tongue, teeth, larynx, lungs, and nasal cavity - vary greatly in size and shape for each person. Therefore, the voiceprint spectra of any two people are different. Each person's voice acoustic characteristics have both relative stability and variability, and are not absolute and immutable. This variability can come from physiology, pathology, psychology, simulation, disguise, and is also related to environmental interference. Nevertheless, since each person's pronunciation organs are different, generally speaking, people can still distinguish the voices of different people or determine whether it is the voice of the same person.

[0057] In some embodiments, the electronic device can also obtain a wake-up voice corresponding to a wake-up event. Among them, the wake-up voice can be a passage, one or more words, etc., and is not limited here.

[0058] Step S232B: Extract the keyword in the wake-up voice, and use the keyword as the wake-up information corresponding to the wake-up event.

[0059] In some embodiments, after obtaining the wake-up voice, the keyword in the wake-up voice can be extracted, and the extracted keyword can be used as the wake-up information corresponding to the wake-up event. As one way, the sentence corresponding to the wake-up voice can be segmented first to obtain multiple phrases, and then it is determined whether each of the multiple phrases contains a keyword indicating wake-up, and the keyword is extracted; as another way, the sentence corresponding to the wake-up voice can be directly recognized to determine whether the sentence contains a keyword indicating wake-up, and the keyword is extracted.

[0060] Step S240: Based on the preset mapping relationship, search for the first user account corresponding to the user's biometric information and the wake-up information.

[0061] In this embodiment, the electronic device can set and store the biometric information of multiple users, multiple wake-up information, and multiple user accounts, and store the corresponding relationship between the biometric information of multiple users, multiple wake-up words, and multiple user accounts as a preset mapping relationship. Among them, the corresponding relationship can be that the biometric information of one user corresponds to multiple wake-up information, and one wake-up information corresponds to one user account. Among them, the corresponding relationship between the biometric information, wake-up information, and user account of the user can be preset by the user and stored in the electronic device.

[0062] As a way, the electronic device can create a mapping relation table as a preset mapping relation table. The preset mapping relation table can include the corresponding relations of biometric information of multiple users, multiple wake-up information, and multiple user accounts. For example, the preset mapping relation table can be shown in Table 2. Among them, the biometric information of the user is represented by A, the user account is represented by B, and the wake-up information is represented by C. Then, through the mapping relation table, the electronic device can correspondingly set the corresponding relations of the biometric information, wake-up information, and user account of the user and store them locally in the electronic device.

[0063] Table 2

[0064]

[0065]

[0066] Further, in this embodiment, after obtaining the biometric information of the user of the wake-up event and the wake-up information corresponding to the wake-up event, the biometric information of the user that is consistent with the biometric information of the user of the wake-up event can be searched from the preset mapping relation table, and then the wake-up information that is consistent with the wake-up information corresponding to the wake-up event can be searched from the preset mapping relation table. Based on the corresponding relations of the biometric information, wake-up information, and user account in the preset mapping relation table, the user account corresponding to the wake-up information that is consistent with the biometric information of the user of the wake-up event and is consistent with the wake-up information corresponding to the wake-up event can be searched and determined as the first user account corresponding to the biometric information of the user of the wake-up event and the wake-up information corresponding to the wake-up event. For example, when the biometric information of the user of the wake-up event is consistent with the biometric information A1 of the user, and the wake-up information corresponding to the wake-up event is consistent with the wake-up information C1, the user account B11 can be determined as the first user account corresponding to the biometric information of the user of the wake-up event and the wake-up information of the wake-up event.

[0067] Step S250: When the electronic device has logged in to the second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account.

[0068] For the specific description of step S250, please refer to step S140 and will not be elaborated here.

[0069] Step S260: When the electronic device is not logged in to a user account, log in the electronic device to the first user account.

[0070] In this embodiment, after obtaining the first user account, if the electronic device is not logged in to any user account, the electronic device can be directly controlled to log in to the first user account to achieve fast login of the user account.

[0071] Another embodiment of the present application provides a method for switching multi-user accounts. Listen for the wake-up event for multi-user accounts. When a wake-up event triggered by the user is detected, obtain the biometric information of the user, obtain the wake-up information corresponding to the wake-up event, and based on the preset mapping relationship, find the first user account corresponding to the biometric information and wake-up information of the user. When the electronic device is already logged in to the second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account. When the electronic device is not logged in to any user account, log in the electronic device to the first user account. Compared with Figure 1 the multi-user account switching method shown, this embodiment also performs multi-user switching through biometric information and wake-up information, making the multi-user switching of the electronic device convenient and fast, improving the user experience. In addition, in this embodiment, when the electronic device is not logged in to any user account, the electronic device is logged in to the first user account to achieve fast login of the user account.

[0072] Please refer to Figure 5 , Figure 5 which shows a schematic flowchart of a multi-user account switching method provided by another embodiment of the present application. This method is applied to the above-mentioned electronic device. The following will elaborate in detail on the Figure 5 process shown. The multi-user account switching method may specifically include the following steps:

[0073] Step S310: Listen for the wake-up event for multi-user accounts.

[0074] Step S320: When a wake-up event triggered by the user is detected, obtain the biometric information of the user.

[0075] Step S330: Based on the preset mapping relationship, find the first user account corresponding to the biometric information of the user.

[0076] Step S340: When the electronic device is already logged in to the second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account.

[0077] For the specific descriptions of steps S310 - S340, please refer to steps S110 - S140, which will not be elaborated here.

[0078] Step S350: Control the electronic device to be in the locked screen state and receive the first unlock verification information.

[0079] In some embodiments, in order to enhance the security of user account information, after switching the electronic device from logging in to the second user account to logging in to the first user account, control the electronic device to be in the locked screen state. Among them, if the electronic device is in the locked screen state when switching from logging in to the second user account to logging in to the first user account, the electronic device can be kept in the locked screen state. If the electronic device is in the unlocked state when switching from logging in to the second user account to logging in to the first user account, the electronic device can be controlled to enter the locked screen state from the unlocked state.

[0080] In some embodiments, when the electronic device is in the locked screen state, it can receive the first unlock verification information input by the user. Among them, the first unlock verification information input by the user can include: digital password information, fingerprint information, face information, gesture information, etc., which are not limited here.

[0081] Please refer to Figure 6 , Figure 6 which shows Figure 5 the schematic flowchart of step S350 of the multi-user account switching method shown in the present application. The following will elaborate in detail on Figure 6 the process shown. The method can specifically include the following steps:

[0082] Step S351: When the biometric information is voiceprint information, control the electronic device to be in the locked screen state and receive the first unlock verification information.

[0083] Among them, the biometric information can include voiceprint information, face information, and fingerprint information. Among them, the accuracy of voiceprint information in user identification is lower than that of face information and fingerprint information in user identification.

[0084] In some embodiments, when the biometric information is voiceprint information, the electronic device can be controlled to be in the locked screen state to reduce the possibility of the user account information being illegally obtained, and receive the first unlock verification information for secondary user identification to ensure that legitimate users can verify and use it normally. Among them, the first unlock verification information is non-voiceprint information.

[0085] Step S352: When the biometric information is face information or fingerprint information, control the electronic device to be in the unlocked state.

[0086] In some embodiments, when the biometric information is face or fingerprint information, it indicates that the accuracy rate in user identification through biometric information is already relatively high. The user can be considered as a legitimate user of the user account, and the electronic device can be directly controlled to be in an unlocked state to avoid the processes of locking the screen and secondary verification, reducing the power consumption of the electronic device and enhancing the user experience.

[0087] Step S360: When the first unlock verification information matches the preset unlock information corresponding to the first user account, unlock the screen of the electronic device.

[0088] In some embodiments, the electronic device can pre-collect and store the unlock information corresponding to the first user account as the preset unlock information, and the preset unlock information corresponding to the first user account is used as the basis for judging the first unlock verification information. Therefore, in this embodiment, after obtaining the first unlock verification information, the first unlock verification information can be compared with the preset unlock information corresponding to the first user account to determine whether the first unlock verification information matches the preset unlock information corresponding to the first user account. Among them, when the judgment result indicates that the first unlock verification information matches the preset unlock information corresponding to the first user account, it indicates that the user is indeed a legitimate user of the first user account, and the screen of the electronic device can be unlocked.

[0089] Another embodiment of the present application provides a method for switching multi-user accounts. Listen for the wake-up event for the multi-user accounts. When a wake-up event triggered by the user is detected, obtain the biometric information of the user. Based on the preset mapping relationship, find the first user account corresponding to the biometric information of the user. When the electronic device has logged in to the second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account, control the electronic device to be in a locked screen state, and receive the first unlock verification information. When the first unlock verification information matches the preset unlock information corresponding to the first user account, unlock the screen of the electronic device. Compared with Figure 1 the method for switching multi-user accounts shown, this embodiment also determines whether to unlock the screen of the electronic device by collecting the unlock verification information and matching it with the preset unlock information of the switched user account after the electronic device switches the user account login, so as to enhance the information security of the user account.

[0090] Please refer to Figure 7 , Figure 7 shows a schematic flowchart of a method for switching multi-user accounts provided by another embodiment of the present application. This method is applied to the above-mentioned electronic device. The following will elaborate in detail on the Figure 7 shown process. The method for switching multi-user accounts may specifically include the following steps:

[0091] Step S410: Enable the monitoring of wake-up events for multiple user accounts.

[0092] Step S420: When a wake-up event triggered by a user is monitored, obtain the biometric information of the user.

[0093] Step S430: Based on a preset mapping relationship, search for the first user account corresponding to the biometric information of the user.

[0094] Step S440: When the electronic device has logged in to a second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account.

[0095] For the specific descriptions of steps S410 - S420, please refer to steps S110 - S140 and will not be elaborated here.

[0096] Step S450: When the electronic device has logged in to a second user account and the first user account matches the second user account, keep the electronic device logged in to the second user account.

[0097] In this embodiment, the electronic device has logged in to a second user account. After obtaining the first user account, the first user account and the second user account can be compared to determine whether the first user account and the second user account match. Among them, when the comparison result indicates that the first user account and the second user account match, it means that the second user account currently logged in to the electronic device is the user account indicated by the wake-up event, then the electronic device can be kept logged in to the second user account and the second user account can be woken up.

[0098] Step S460: Control the electronic device to be in a locked screen state and receive second unlocking verification information.

[0099] In some embodiments, to improve the security of user account information, after keeping the electronic device logged in to the first user account and waking up the first user account, the electronic device can be controlled to be in a locked screen state. Among them, if the electronic device is in a locked screen state when waking up the first user account, the electronic device can be kept in a locked screen state. If the electronic device is in an unlocked state when waking up the first user account, the electronic device can be controlled to enter the locked screen state from the unlocked state.

[0100] In some embodiments, when the electronic device is in a locked screen state, the electronic device can receive second unlocking verification information input by the user. Among them, the second unlocking verification information input by the user can include: digital password information, fingerprint information, face information, gesture information, etc., which are not limited here.

[0101] Step S470: When the second unlocking verification information matches the preset unlocking information corresponding to the second user account, unlock the screen of the electronic device.

[0102] In some embodiments, the electronic device may pre-collect and store the unlocking information corresponding to the first user account as the preset unlocking information, and the preset unlocking information corresponding to the second user account is used as the basis for judging the second unlocking verification information. Therefore, in this embodiment, after obtaining the second unlocking verification information, the second unlocking verification information can be compared with the preset unlocking information corresponding to the second user account to determine whether the second unlocking verification information matches the preset unlocking information corresponding to the second user account. Among them, when the judgment result indicates that the second unlocking verification information matches the preset unlocking information corresponding to the second user account, it indicates that the user is indeed a legitimate user of the second user account, and then the screen of the electronic device can be unlocked.

[0103] Another embodiment of the present application provides a multi-user account switching method, which enables listening for wake-up events for multi-user accounts. When it is detected that the user triggers a wake-up event, obtain the biometric information of the user, and based on a preset mapping relationship, find the first user account corresponding to the biometric information of the user. When the electronic device has logged in to the second user account and the first user account and the second user account match, keep the electronic device logged in to the second user account, control the electronic device to be in a locked screen state, and receive the second unlocking verification information. When the second unlocking verification information matches the preset unlocking information corresponding to the second user account, unlock the screen of the electronic device. Compared with Figure 1 the multi-user account switching method shown, this embodiment also keeps the electronic device logged in to the second user account and wakes up the unlocking based on the second user account when the electronic device has logged in to the second user account and the first user account and the first user account match, so as to improve the wake-up efficiency and convenience of the user account.

[0104] Please refer to Figure 8 , Figure 8 which shows a schematic flowchart of a multi-user account switching method provided by still another embodiment of the present application. This method is applied to the above-mentioned electronic device, and the following will elaborate in detail on the Figure 8 shown process. The multi-user account switching method may specifically include the following steps:

[0105] Step S510: When it is detected that the user triggers an event for adding a third user account, collect the biometric information of the user.

[0106] In some implementations, a user can add a user account on an electronic device. Accordingly, when the electronic device monitors the user adding a user account, it actively collects the user's biometric information and establishes a mapping relationship between the biometric information and the user account added by the user. Therefore, in this embodiment, when it is monitored that the user triggers an add event for a third user account, the user's biometric information is collected.

[0107] As a method, the electronic device may display a multi-user interface, and when it is detected that the user adds a third user account in the multi-user interface, it may be determined that an adding event for the third user account is monitored that is triggered by the user.

[0108] As a method, when the electronic device monitors that the user triggers an event to add a third user account, it can output a prompt message to prompt the user to turn on the biometric information collection device, for example, prompting the user to turn on the camera, prompting the user to turn on the microphone, etc.

[0109] Step S520: Establish a mapping relationship between the user's biometric information and the third user account, and add it to the preset mapping relationship.

[0110] In some embodiments, after obtaining the user's biometric information, a mapping relationship between the user's biometric information and a third user account can be established, and the established mapping relationship between the user's biometric information and the third user account can be added to the preset mapping relationship to provide a search basis for subsequent switching of user accounts.

[0111] See also Figure 9 , Figure 9 This application shows Figure 8 The flowchart of step S520 of the method for switching multiple user accounts is shown in FIG. Figure 9 The process shown is described in detail, and the method may specifically include the following steps:

[0112] Step S521: When the biometric information of the user has been bound to other user accounts, the wake-up information of the user for the third user account is collected.

[0113] In some embodiments, after obtaining the user's biometric information, it can be determined whether the user's biometric information has been bound to other user accounts. For example, it can be determined whether the user's biometric information has been bound to other user accounts based on a preset mapping relationship. When the judgment result indicates that the user's biometric information has been bound to other user accounts, the user's wake-up information for a third user account can be collected. When the judgment result indicates that the user's biometric information has not been bound to other user accounts, a mapping relationship between the user's biometric information and the third user account can be established and added to the preset mapping relationship.

[0114] Step S522: Establish a mapping relationship among the biometric information of the user, the wake-up information of the user for the third user account, and the third user account, and add it to a preset mapping relationship.

[0115] In some embodiments, after obtaining the wake-up information of the user for the third user account, a mapping relationship among the biometric information of the user, the wake-up information of the user for the third user account, and the third user account can be established, and the established mapping relationship among the biometric information of the user, the wake-up information of the user for the third user account, and the third user account can be added to a preset mapping relationship to provide a search basis for subsequent user account switching for a user including multiple user accounts.

[0116] In some embodiments, when the wake-up information of the user for the third user account has been bound to another user account, a prompt message can be output, where the prompt message is used to prompt to change the wake-up information. As a way, when obtaining the wake-up information of the user for the third user account, it can be determined whether the user has bound the wake-up information to another user account. Among them, when the determination result indicates that the user has bound the wake-up information to another user account, a prompt message can be output. When the determination result indicates that the user has not bound the wake-up information to another user, a mapping relationship among the biometric information of the user, the wake-up information of the user for the third user account, and the third user account can be established and added to a preset mapping relationship.

[0117] Step S530: Start listening for wake-up events for multi-user accounts.

[0118] Step S540: When a wake-up event triggered by a user is monitored, obtain the biometric information of the user.

[0119] Step S550: Based on the preset mapping relationship, search for the first user account corresponding to the biometric information of the user.

[0120] Step S560: When the electronic device has logged in to the second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account.

[0121] Among them, for the specific descriptions of steps S510 - S560, please refer to steps S110 - S140, which will not be elaborated here.

[0122] The multi-user account switching method provided by another embodiment of this application, when it detects that the user triggers an event for adding a third user account, collects the user's biometric information, establishes a mapping relationship between the user's biometric information and the third user account, and adds it to the preset mapping relationship, and starts listening for the wake-up event for the multi-user account. When it detects the wake-up event triggered by the user, it obtains the user's biometric information, and based on the preset mapping relationship, searches for the first user account corresponding to the user's biometric information. When the electronic device has logged in to the second user account and the first user account does not match the second user account, it switches the electronic device from logging in to the second user account to logging in to the first user account. Compared with Figure 1 the multi-user account switching method shown, in this embodiment, when the user triggers an event for adding a user account, it also obtains the user's biometric information and establishes a mapping relationship with the user account to provide a switching basis for subsequent multi-user switching.

[0123] Please refer to Figure 10 , Figure 10 which shows the module block diagram of the multi-user account switching device provided by the embodiment of this application. The multi-user account switching device 200 is applied to the above-mentioned electronic device. Next, it will be described with respect to Figure 10 the block diagram shown. The multi-user account switching device 200 includes: a wake-up event listening module 210, a feature information obtaining module 220, a user account searching module 230, and a user account switching module 240, where:

[0124] The wake-up event listening module 210 is used to start listening for the wake-up event for the multi-user account.

[0125] The feature information obtaining module 220 is used to obtain the user's biometric information when it detects the wake-up event triggered by the user.

[0126] The user account searching module 230 is used to search for the first user account corresponding to the user's biometric information based on the preset mapping relationship.

[0127] Further, the user account searching module includes: a wake-up information obtaining sub-module and a user account searching sub-module, where:

[0128] The wake-up information obtaining sub-module is used to obtain the wake-up information corresponding to the wake-up event.

[0129] Further, the wake-up information obtaining sub-module includes: an account number obtaining unit and a first wake-up information obtaining unit, where:

[0130] The account number obtaining unit is used to obtain the number of user accounts corresponding to the biometric information.

[0131] The first wake-up information acquisition unit is configured to acquire the wake-up information corresponding to the wake-up event when the number of user accounts corresponding to the biometric information is multiple.

[0132] Further, the biometric information is voiceprint information, and the wake-up information acquisition sub-module includes: a wake-up voice acquisition unit and a second wake-up information acquisition unit, where:

[0133] The wake-up voice acquisition unit is configured to acquire the wake-up voice corresponding to the wake-up event.

[0134] The second wake-up information acquisition unit is configured to extract keywords from the wake-up voice and use the keywords as the wake-up information corresponding to the wake-up event.

[0135] The user account lookup sub-module is configured to, based on the preset mapping relationship, look up the first user account corresponding to the biometric information of the user and the wake-up information.

[0136] The user account switching module 240 is configured to, when the electronic device has logged in to a second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account.

[0137] Further, the multi-user account switching device 200 includes:

[0138] The account login module is configured to, when the electronic device has not logged in to a user account, log in the electronic device to the first user account.

[0139] Further, the multi-user account switching device 200 includes: a first unlock verification information acquisition module and a first screen unlock module, where:

[0140] The first unlock verification information acquisition module is configured to control the electronic device to be in a locked screen state and receive the first unlock verification information.

[0141] Further, the first unlock verification information acquisition module includes: a first unlock verification information acquisition sub-module and an unlock control sub-module, where:

[0142] The first unlock verification information acquisition sub-module is configured to, when the biometric information is voiceprint information, control the electronic device to be in a locked screen state and receive the first unlock verification information.

[0143] The unlock control sub-module is configured to, when the biometric information is face information or fingerprint information, control the electronic device to be in an unlocked state.

[0144] The first screen unlocking module is used to unlock the screen of the electronic device when the first unlocking verification information matches the preset unlocking information corresponding to the first user account.

[0145] Further, the multi-user account switching device 200 further includes: a user account maintaining module, a second unlocking verification information receiving module, and a second screen unlocking module, where:

[0146] The user account maintaining module is used to keep the electronic device logged in to the second user account when the electronic device has logged in to the second user account and the first user account matches the second user account.

[0147] The second unlocking verification information receiving module is used to control the electronic device to be in the locked screen state and receive the second unlocking verification information.

[0148] The second screen unlocking module is used to unlock the screen of the electronic device when the second unlocking verification information matches the preset unlocking information corresponding to the second user account.

[0149] Further, the multi-user account switching device 200 further includes: a biometric information collection module and a mapping relationship establishment module, where:

[0150] The biometric information collection module is used to collect the biometric information of the user when it is detected that the user triggers an event for adding a third user account.

[0151] The mapping relationship establishment module is used to establish a mapping relationship between the biometric information of the user and the third user account, and add it to the preset mapping relationship.

[0152] Further, the mapping relationship establishment module includes: a wake-up information collection sub-module and a mapping relationship establishment sub-module, where:

[0153] The wake-up information collection sub-module is used to collect the wake-up information of the user for the third user account when the biometric information of the user is already bound to another user account.

[0154] The mapping relationship establishment sub-module is used to establish a mapping relationship between the biometric information of the user, the wake-up information of the user for the third user account, and the third user account, and add it to the preset mapping relationship.

[0155] Further, the mapping relationship establishment module further includes: a prompt information output sub-module, where:

[0156] A prompt message output sub-module, configured to output a prompt message when the wake-up message of the third user account has been bound to another user account, where the prompt message is used to prompt to change the wake-up message.

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

[0158] In several embodiments provided in the present application, the coupling between modules can be electrical, mechanical or other forms of coupling.

[0159] In addition, in each embodiment of the present application, each functional module can be integrated in a processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0160] Please refer to Figure 11 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 can be an electronic device such as a smart phone, a tablet computer, an e-book, etc. that can run application programs. The electronic device 100 in the present application can include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more application programs, where one or more application programs can be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method described in the foregoing method embodiments.

[0161] Among them, the processor 110 may include one or more processing cores. The processor 110 connects various parts within the entire electronic device 100 through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by invoking data stored in the memory 120, it executes various functions of the electronic device 100 and processes data. Optionally, the processor 110 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 110 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented separately through a communication chip.

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

[0163] The touch screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the touch screen 130 may be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited herein.

[0164] Please refer to Figure 12, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 300, and the program code can be called by a processor to execute the method described in the above method embodiment.

[0165] The computer-readable storage medium 300 can be an electronic memory such as a flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has a storage space for the program code 310 that executes any method step in the above method. These program codes can be read from or written into one or more computer program products. The program code 310 can be compressed in an appropriate form, for example.

[0166] In summary, the multi-user account switching method, device, electronic device, and storage medium provided by the embodiments of the present application enable the listening for wake-up events for multi-user accounts. When a wake-up event triggered by a user is detected, the biometric information of the user is obtained. Based on a preset mapping relationship, the first user account corresponding to the biometric information of the user is searched. When the electronic device has logged in to a second user account and the first user account does not match the second user account, the electronic device is switched from logging in to the second user account to logging in to the first user account, thereby realizing the switching of multiple users through biometric information, making the multi-user switching of the electronic device convenient and fast, and improving the user experience.

[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for switching multi-user accounts, characterized in that, applied to an electronic device, the method includes: When it is monitored that the user triggers an event for adding a third user account, collect the user's voiceprint information; When the user's voiceprint information is already bound to another user account, collect the user's wake-up information for the third user account; Establish a mapping relationship among the user's voiceprint information, the user's wake-up information for the third user account, and the third user account, and add it to a preset mapping relationship; When the user's wake-up information for the third user account is already bound to another user account, output a prompt message, where the prompt message is used to prompt to change the wake-up information; Enable monitoring of wake-up events for multi-user accounts; When it is monitored that the user triggers a wake-up event through a voice input event, obtain the user's biometric information, where the user's biometric information includes the user's voiceprint information; Obtain the wake-up information corresponding to the wake-up event; Based on the preset mapping relationship, search for the first user account corresponding to the user's voiceprint information and the wake-up information; When the electronic device has logged in to a second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account.

2. The method according to claim 1, characterized in that, the method further includes: When the electronic device has not logged in to a user account, log in the electronic device to the first user account.

3. The method according to claim 1, characterized in that, the obtaining the wake-up information corresponding to the wake-up event includes: Obtain the number of user accounts corresponding to the biometric information; When the number of user accounts corresponding to the biometric information is multiple, obtain the wake-up information corresponding to the wake-up event.

4. The method according to claim 3, characterized in that, the obtaining the wake-up information corresponding to the wake-up event includes: Obtain the wake-up voice corresponding to the wake-up event; Extract the keywords in the wake-up voice, and use the keywords as the wake-up information corresponding to the wake-up event.

5. The method according to any one of claims 1-4, characterized in that, after the step of when the electronic device has logged in to a second user account and the first user account does not match the second user account, switch the electronic device from logging in to the second user account to logging in to the first user account, further includes: Control the electronic device to be in a locked screen state and receive first unlock verification information; When the first unlock verification information matches the preset unlock information corresponding to the first user account, unlock the screen of the electronic device.

6. The method according to claim 5, characterized in that, the controlling the electronic device to be in a locked screen state and receiving first unlock verification information includes: When the biometric information is voiceprint information, control the electronic device to be in a locked screen state and receive the first unlock verification information; When the biometric information is face information or fingerprint information, control the electronic device to be in an unlocked state.

7. The method according to any one of claims 1-4, wherein, the method further includes: When the electronic device has logged in to a second user account and the first user account and the second user account match, keep the electronic device logged in to the second user account; Control the electronic device to be in a locked screen state and receive second unlocking verification information; When the second unlocking verification information matches the preset unlocking information corresponding to the second user account, unlock the screen of the electronic device.

8. A multi-user account switching device, wherein, applied to an electronic device, the device includes: A biometric information collection module, configured to collect the user's voiceprint information when it is detected that the user triggers an event for adding a third user account; A wake-up information collection sub-module, configured to collect the user's wake-up information for the third user account when the user's voiceprint information is already bound to another user account; A mapping relationship establishment sub-module, configured to establish a mapping relationship among the user's voiceprint information, the user's wake-up information for the third user account, and the third user account, and add it to a preset mapping relationship; A prompt information output sub-module, configured to output prompt information when the user's wake-up information for the third user account is already bound to another user account, where the prompt information is used to prompt to change the wake-up information; A wake-up event monitoring module, configured to start monitoring wake-up events for multi-user accounts; A feature information acquisition module, configured to acquire the user's biometric information when it is detected that a wake-up event triggered by a voice input event by the user, where the user's biometric information includes the user's voiceprint information; A wake-up information acquisition sub-module, configured to acquire the wake-up information corresponding to the wake-up event; A user account search sub-module, configured to search for a first user account corresponding to the user's voiceprint information and the wake-up information based on the preset mapping relationship; A user account switching module, configured to switch the electronic device from logging in to the second user account to logging in to the first user account when the electronic device has logged in to the second user account and the first user account and the second user account do not match.

9. An electronic device, wherein, including a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1-7.

10. A computer-readable storage medium, wherein, the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • User account switching method and device

    CN106302342A