CN106302342B - User account switching method and device - Google Patents

User account switching method and device Download PDF

Info

Publication number
CN106302342B
CN106302342B CN201510276323.8A CN201510276323A CN106302342B CN 106302342 B CN106302342 B CN 106302342B CN 201510276323 A CN201510276323 A CN 201510276323A CN 106302342 B CN106302342 B CN 106302342B
Authority
CN
China
Prior art keywords
account
operating system
target
key
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510276323.8A
Other languages
Chinese (zh)
Other versions
CN106302342A (en
Inventor
王向东
孙伟
王吉同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Xiaomi Inc
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc, Beijing Xiaomi Mobile Software Co Ltd filed Critical Xiaomi Inc
Priority to CN201510276323.8A priority Critical patent/CN106302342B/en
Publication of CN106302342A publication Critical patent/CN106302342A/en
Application granted granted Critical
Publication of CN106302342B publication Critical patent/CN106302342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a method and a device for switching user accounts, wherein the method comprises the following steps: receiving a key instruction input by a user; when the key instruction is an instruction for awakening the account list, displaying the account list, wherein the account list at least comprises a current account of a logged-in operating system and a target account of an unregistered operating system; and when receiving an instruction of logging in a target account in the account list, logging out the current account from the operating system, and logging in the target account in the operating system. When a key instruction is received and the key instruction is an instruction for waking up an account list, the account list is displayed, a user can switch the current account of the login operating system to a target account only by inputting a click instruction in the displayed target account in the account list, and the user can realize the switching of the user account only by inputting two instructions, so that the scheme provided by the invention can reduce the operation amount of the user and save time.

Description

User account switching method and device
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for switching user accounts.
Background
Currently, in order to make it more convenient for a plurality of users to use the same mobile terminal, a user account function is added to an operating system of the mobile terminal.
The user can select the account created by the user to log in the operating system on the mobile terminal, and particularly, under the condition that a plurality of people use one mobile terminal, for example, a plurality of members of a family use one tablet computer together, each family member can select the account created by the user to log in the operating system when using the tablet computer, so that information such as personalized configuration, application programs, interfaces and data in the operating system can accord with personal habits, and the function of switching the user account is particularly important.
When a user account is switched in an operating system of the mobile terminal, a user needs to click a main menu, then click a setting option under an interface of the main menu, click a user account option under an interface for entering the setting option, and click an account list under the interface of the user account, at this time, the user can select an account created by the user in the interface of the account list so as to log in the operating system of the mobile terminal.
Although the user account can be switched through the process, the user can only input the click command for many times, so that the operation process is complicated, the operation amount of the user is increased, and the precious time of the user is wasted.
Disclosure of Invention
In order to overcome the problems in the related art, the invention provides a method and a device for switching user accounts, so as to realize the quick and convenient switching of the user accounts of a mobile terminal.
According to a first aspect of the embodiments of the present invention, there is provided a method for switching a user account, including:
receiving a key instruction input by a user;
when the key instruction is an instruction for awakening an account list, displaying the account list, wherein the account list at least comprises a current account logged in with an operating system and a target account not logged in with the operating system;
and when an instruction for logging in the target account in the account list is received, logging out the current account from the operating system, and logging in the target account in the operating system.
Optionally, when the target account in the account list receives a click instruction input by a user, the method includes the steps of logging out the current account from the operating system and logging in the target account to the operating system, where the method includes:
displaying a password input box when an instruction for logging in the target account in the account list is received;
receiving target password information input by a user by using the password input box;
and when the target password information is matched with the target account, the current account is logged out of the operating system, and the target account is logged in the operating system.
Optionally, the method further includes:
displaying an account input box when an instruction of adding an account is received;
when a designated account input by a user is received in the account input box, displaying a password input box;
when the password input box is used for receiving the appointed password information input by the user, establishing the corresponding relation between the appointed account and the appointed password information, and storing the appointed account in the account list.
Optionally, after the logging the target account into the operating system, the method further includes:
displaying a password input box when an instruction for deleting a target account of the logged-in operating system in the account list is received;
receiving target password information input by a user by using the password input box;
when the target password information is matched with the target account, the target account is logged out of the operating system, and the administrator account is logged in the operating system;
deleting the target account in the account list.
Optionally, after the logging the target account into the operating system, the method further includes:
displaying a password input box when an instruction for deleting a specific account which is not logged in the operating system in the account list is received;
receiving specific password information input by a user by using the password input box;
deleting the specific account in the account list when the specific password information matches the specific account.
According to a second aspect of the embodiments of the present invention, there is provided a device for switching user accounts, including:
the first receiving module is used for receiving a key instruction input by a user;
the first display module is used for displaying the account list when the key instruction is an instruction for awakening the account list, wherein the account list at least comprises a current account of a logged-in operating system and a target account of the operating system which is not logged-in;
and the first account switching module is used for quitting the current account from the operating system and logging the target account into the operating system when receiving an instruction of logging in the target account in the account list.
Optionally, the first account switching module includes:
the display sub-module is used for displaying a password input box when receiving an instruction of logging in the target account in the account list;
the receiving submodule is used for receiving target password information input by a user by using the password input box;
and the switching submodule is used for quitting the current account from the operating system and logging the target account in the operating system when the target password information is matched with the target account.
Optionally, the apparatus further comprises:
the second display module is used for displaying the account input box when receiving an instruction of adding the account;
the third display module is used for displaying the password input box when the specified account input by the user is received in the account input box;
and the account adding module is used for establishing the corresponding relation between the designated account and the designated password information when the designated password information input by the user is received by using the password input box, and storing the designated account in the account list.
Optionally, the apparatus further comprises:
the fourth display module is used for displaying a password input box when receiving an instruction of deleting a target account of the logged-in operating system in the account list;
the second receiving module is used for receiving target password information input by a user by using the password input box;
the second account switching module is used for quitting the target account from the operating system and logging the administrator account in the operating system when the target password information is matched with the target account;
a first deletion module to delete the target account in the account list.
Optionally, the apparatus further comprises:
the fifth display module is used for displaying a password input box when receiving an instruction of deleting a specific account which is not logged in the operating system in the account list;
the third receiving module is used for receiving specific password information input by a user by using the password input box;
a second deleting module, configured to delete the specific account in the account list when the specific password information matches the specific account.
According to a third aspect of the embodiments of the present invention, there is provided a device for switching user accounts, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a key instruction input by a user;
when the key instruction is an instruction for awakening an account list, displaying the account list, wherein the account list at least comprises a current account logged in with an operating system and a target account not logged in with the operating system;
and when an instruction for logging in the target account in the account list is received, logging out the current account from the operating system, and logging in the target account in the operating system.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: when a key instruction is received and the key instruction is an instruction for waking up an account list, the account list is displayed, a user can switch the current account of the login operating system to a target account only by inputting a click instruction in the displayed target account in the account list, and the user can realize the switching of the user account only by inputting two instructions, so that the scheme provided by the invention can reduce the operation amount of the user and save time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a method for switching a user account according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating another method of switching user accounts according to an example embodiment.
Fig. 3 is a flowchart illustrating yet another method for switching user accounts according to an example embodiment.
Fig. 4 is a flowchart illustrating yet another method for switching user accounts according to an example embodiment.
Fig. 5 is a flowchart illustrating yet another method for switching user accounts according to an example embodiment.
Fig. 6 is a schematic diagram illustrating a switching apparatus for a user account according to an exemplary embodiment.
Fig. 7 is a schematic diagram illustrating another means for switching user accounts according to an example embodiment.
Fig. 8 is a schematic diagram illustrating yet another apparatus for switching user accounts according to an example embodiment.
Fig. 9 is a schematic diagram illustrating yet another apparatus for switching user accounts according to an example embodiment.
Fig. 10 is a schematic diagram illustrating yet another apparatus for switching user accounts according to an example embodiment.
Fig. 11 is a block diagram illustrating a switching device of a user account according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for switching a user account according to an exemplary embodiment, where as shown in fig. 1, the method for switching a user account shown in fig. 1 may be used in a mobile terminal. The switching method of the user account provided by the invention can realize the fast and convenient switching of the user account of the mobile terminal, so as to reduce the operation amount of the user and save the time. The method comprises the following steps.
In step S11, a key instruction input by the user is received.
The method provided by the invention can be applied to a mobile terminal, and the mobile terminal can be a smart phone or a tablet computer and other equipment.
When the mobile terminal receives a key instruction input by a user, the mobile terminal needs to determine what the function of the key instruction is. When the mobile terminal determines that the key instruction is an instruction for waking up an account list set in the mobile terminal in advance by the user, the mobile terminal needs to display the account list by using the display screen according to the key instruction.
In general, a mobile terminal has keys such as a menu key, a home key, a return key, a search key, a power key, a volume up key, and a volume down key, which have original functions, and in order to wake up an account list quickly, the existing keys can be used as shortcut keys, so that a user can input a key instruction to the mobile terminal by using the shortcut keys.
For example, the original function of the menu key is to return to the menu page, and when the user clicks the menu key quickly, the mobile terminal displays the menu page. In order to use the existing menu key as a shortcut key for waking up the account list and make the menu key have an original function, the user may set a long press of the menu key for 1 second as a shortcut key for waking up the account list. After the setting is finished, when a user presses the menu key for 1 second for a long time, the mobile terminal receives a key instruction which is input by the user and is pressed for 1 second for the menu key for the long time, and when the mobile terminal determines that the key instruction which is pressed for 1 second for the menu key for the long time is an instruction for awakening the account list, the mobile terminal displays the account list no matter what interface the mobile terminal is currently under for the user to use.
For another example, the original function of the volume up key is to increase the volume of the mobile terminal, and when the user presses the volume up key, the mobile terminal increases the volume. In order to use the existing volume up key as a shortcut key for waking up the account list and make the volume up key have the original function, the user may set the long press of the volume up key for 1 second as a shortcut key for waking up the account list. After the setting is completed, when the user presses the volume up key for 1 second for a long time, the mobile terminal receives a key instruction of pressing the volume up key for 1 second for the long time, which is input by the user, and when the mobile terminal determines that the key instruction of pressing the volume up key for 1 second is an instruction for waking up the account list, the mobile terminal displays the account list no matter what interface the mobile terminal is currently under for the user to use.
For another example, the original function of the search key is to search the text information input by the user, and when the user clicks the search key quickly, the mobile terminal will display a search box for the user to input the text information to be searched in the search box. In order to use the existing search key as a shortcut key for waking up the account list and make the search key also have the original function, the user may set the long search key for 1 second as the shortcut key for waking up the account list. After the setting is completed, when the user presses the search key for 1 second, the mobile terminal receives a key instruction of pressing the search key for 1 second, which is input by the user, and when the mobile terminal determines that the key instruction of pressing the search key for 1 second is an instruction for waking up the account list, the mobile terminal displays the account list no matter what interface the mobile terminal is currently in for the user to use.
In addition, the mobile terminal has many other keys besides a menu key, a volume up key and a search key, such as a home key, a return key, a power key and a volume down key, and each key on the mobile terminal can be set as a shortcut key for waking up an account list. Of course, in order to distinguish the original functions of the above-mentioned keys, the input mode may be changed, for example, the original function of the return key is to return to the upper menu, and the input mode is to quickly click, so that in order to distinguish the original functions of the return key, a long-time-pressing of the return key for one second may be set as a shortcut key for waking up the account list, or two consecutive clicks of the return key may be set as a shortcut key for waking up the account list, so that the basic function and the additional function of the return key may be distinguished.
In order to facilitate the user to wake up the account list by using different input modes, other input modes can be set as a shortcut key for waking up the account list. For example, in the state that the mobile terminal is locked, shaking the mobile terminal left and right twice is set as a shortcut key for waking up an account list; for another example, in the state of locking the screen of the mobile terminal, continuously clicking twice a shortcut key set as a wake-up account list at the designated position of the touch screen of the mobile terminal; for another example, in the state that the screen of the mobile terminal is locked, a desired pattern is drawn on the touch screen of the mobile terminal to set as a shortcut key of the wake-up account list. Of course, the specific input method is not limited to the above-mentioned input method, and other input methods may be used, so as to make the wake-up account list in various ways, so that the user can input the instruction for waking up the account list to the mobile terminal quickly.
In step S12, when the key instruction is an instruction to wake up an account list, the account list is displayed, and the account list at least includes a current account of a logged-in operating system and a target account of a logged-in operating system.
When the mobile terminal determines that the received key instruction is the instruction for waking up the account list, the mobile terminal displays the account list. In the account list, all pre-established accounts are displayed. In order to ensure that the mobile terminal can realize the function of switching multiple accounts, at least two accounts should be included in the account list for the user to switch.
For example, suppose that a user establishes two accounts on a mobile terminal in advance, one account is an account a, the other account is an account B, the account a is an account currently logged in an operating system, and the account B is an account not currently logged in the operating system. When the mobile terminal determines that the key instruction is an instruction for waking up the account list, the mobile terminal displays the account list, and the account list displays the account A, the account B and the login states of the account A and the account B, namely the account A is in the login state and the account B is in the non-login state.
In step S13, when an instruction to log in to a target account in the account list is received, the current account is logged out of the operating system, and the target account is logged in to the operating system.
After the mobile terminal displays the account list, the user can see the current account logged in, the target account not logged in and other accounts not logged in through the account list. When the user wants to log in the operating system by using the target account, the user can click the target account in the account list displayed by the mobile terminal. When the mobile terminal receives an instruction of clicking a target account in the account list input by a user, the mobile terminal logs the current account out of the operating system and logs the target account in the operating system, so that the rapid switching between accounts is realized.
For example, suppose that a user establishes two accounts on a mobile terminal in advance, one account is an account a, the other account is an account B, the account a is a current account logged in an operating system, and the account B is a target account not currently logged in the operating system. When the mobile terminal determines that the key instruction is an instruction for waking up the account list, the mobile terminal displays the account list, and the account list displays the account A, the account B and the login states of the account A and the account B, namely the account A is in the login state and the account B is in the non-login state. When the mobile terminal receives an instruction of clicking an account B in the account list input by a user, the mobile terminal logs the account A out of the operating system and logs the account B in the operating system.
In summary, in the embodiment shown in fig. 1, when the mobile terminal receives a key instruction and the key instruction is an instruction to wake up an account list, the account list is displayed, and a user only needs to input a click instruction to a target account in the displayed account list, so that a current account logged in an operating system can be switched to the target account, and the user only needs to input two instructions to implement switching of user accounts.
Fig. 2 is a flowchart illustrating another method for switching a user account according to an exemplary embodiment, where as shown in fig. 2, the method for switching a user account shown in fig. 2 may be used in a mobile terminal. Fig. 2 is an alternative embodiment based on fig. 1, and in the embodiment shown in fig. 2, the same parts as those of the embodiment shown in fig. 1 can be introduced and explained with reference to the embodiment shown in fig. 1. The method shown in fig. 2 comprises the following steps.
In step S21, a key instruction input by the user is received.
In step S22, when the key instruction is an instruction to wake up an account list, the account list is displayed, and the account list at least includes a current account of a logged-in operating system and a target account of a logged-in operating system.
In step S23, upon receiving an instruction to log in to a target account in the account list, a password input box is displayed.
In order to improve account security, when the mobile terminal receives a command for logging in a target account in an account list, whether a current user is a legal user needs to be verified, so that a password input box is displayed to verify the validity of the current user. If the password information input by the current user in the password input box is correct, the current user is a legal user, and the mobile terminal executes a target account login instruction input by the user; if the password information input by the current user in the password input box is wrong, the current user is an illegal user, and the mobile terminal cannot execute the instruction input by the user for logging in the target account.
In step S24, target password information input by the user is received using the password input box.
After the mobile terminal displays the password input box, the user can input the target password information corresponding to the target account in the password input box displayed by the mobile terminal. When the target account is created in advance, the mobile terminal stores the target password information corresponding to the target account input by the user, so that the mobile terminal needs to compare whether the target password information input by the user is the same as the target password information corresponding to the target account.
In step S25, when the target password information matches the target account, the current account is logged out of the operating system, and the target account is logged into the operating system.
After the mobile terminal receives target password information input by a user by using the password input box, the mobile terminal calls the prestored target password information corresponding to the target account, compares and judges whether the target password information input by the user is the same as the target password information corresponding to the target account, if so, the target password information input by the user is matched with the target account, the mobile terminal confirms the validity of the current user, quits the current account from an operating system, and logs in the target account to the operating system; if not, the target password information input by the user is not matched with the target account, the mobile terminal confirms the illegal user of the current user and does not execute the instruction of logging in the target account in the account list.
Fig. 3 is a flowchart illustrating a further method for switching a user account according to an exemplary embodiment, where as shown in fig. 3, the method for switching a user account shown in fig. 3 may be used in a mobile terminal. Fig. 3 is an alternative embodiment based on fig. 1, and in the embodiment shown in fig. 3, the same parts as those of the embodiment shown in fig. 1 can be introduced and explained with reference to the embodiment shown in fig. 1. The method shown in fig. 3 comprises the following steps.
In step S31, a key instruction input by the user is received.
In step S32, when the key instruction is an instruction to wake up an account list, the account list is displayed, and the account list at least includes a current account of a logged-in operating system and a target account of a logged-in operating system.
In step S33, when an instruction to log in to a target account in the account list is received, the current account is logged out of the operating system, and the target account is logged in to the operating system.
In step S34, upon receiving an instruction to add an account, an account input box is displayed.
The scheme provided by the invention can also add some new accounts on the basis of the original accounts. When the mobile terminal receives an instruction of adding an account, the mobile terminal displays an account input box so that a user can input the name of a newly-built account.
In step S35, when the designated account input by the user is received in the account input box, the password input box is displayed.
After the mobile terminal displays the account input box, the user can input the account name of the newly-built account in the account input box. When the appointed account input by the user is received in the account input frame displayed by the mobile terminal, the mobile terminal displays the password input frame so as to establish the corresponding relation between the newly-built account and the password information, and therefore the newly-built account is safer.
In step S36, upon receiving the designated password information input by the user using the password input box, the correspondence between the designated account and the designated password information is established, and the designated account is stored in the account list.
After the mobile terminal displays the password input box, the user can input the appointed password information corresponding to the appointed account in the password input box. When a password input box of the mobile terminal receives the appointed password information input by the user, the mobile terminal establishes the corresponding relation between the appointed account and the appointed password information so that the appointed account is safer. Then, the mobile terminal stores the designated account in the account list, so that the user can see the newly-created designated account later when waking up the account list.
For example, when a user inputs an instruction to add an account to the mobile terminal, the mobile terminal may display an account input box, and then the user inputs an account name "admin" in the account input box and inputs a determination instruction to the mobile terminal. At this time, the mobile terminal displays a password input box, and the user inputs password information "123456" in the password input box and inputs a determination instruction to the mobile terminal. When the password information input by the user is received as '123456', the mobile terminal establishes a corresponding relation between 'admin' and '123456', and stores 'admin' in the account list.
Fig. 4 is a flowchart illustrating a further method for switching a user account according to an exemplary embodiment, where as shown in fig. 4, the method for switching a user account shown in fig. 4 may be used in a mobile terminal. Fig. 4 is an alternative embodiment based on fig. 1, and in the embodiment shown in fig. 4, the same parts as those of the embodiment shown in fig. 1 can be introduced and explained with reference to the embodiment shown in fig. 1. The method shown in fig. 4 comprises the following steps.
In step S41, a key instruction input by the user is received.
In step S42, when the key instruction is an instruction to wake up an account list, the account list is displayed, and the account list at least includes a current account of a logged-in operating system and a target account of a logged-in operating system.
In step S43, when an instruction to log in to a target account in the account list is received, the current account is logged out of the operating system, and the target account is logged in to the operating system.
In step S44, when an instruction to delete a target account to which the operating system has been logged in the account list is received, a password input box is displayed.
The scheme provided by the invention can also delete the account established in advance. When the mobile terminal receives an instruction of deleting the target account of the logged-in operating system in the account list, the mobile terminal displays a password input box to judge the validity of the current user.
In step S45, target password information input by the user is received using the password input box.
After the mobile terminal displays the password input box, the user can input target password information in the password input box.
In step S46, when the target password information matches the target account, the target account is logged out of the operating system and the administrator account is logged into the operating system.
After the mobile terminal receives the target password information input by the user through the password input box, the mobile terminal calls the target password information corresponding to the pre-stored target account and judges whether the target password information corresponding to the pre-stored target account is the same as the target password information received by the password input box, if yes, the target password information received by the password input box is matched with the target account, and the current user is a legal user, the mobile terminal executes an instruction of deleting the target account logged in the operating system in the account list, logs the target account out of the operating system, logs in the operating system with the administrator account, and finally deletes the target account in the account list.
In addition, the administrator account is also created by the user on the mobile terminal in advance, and the authority of the administrator account is also the highest. No matter how many accounts are in the account list, when the target account of the logged-in operating system is successfully deleted, the mobile terminal can automatically log the administrator account in the operating system.
In step S47, the target account in the account list is deleted.
After the target account in the account list is deleted, the mobile terminal deletes the target account, the target password information and the corresponding relation between the target password information and the target account in the database.
Fig. 5 is a flowchart illustrating a further method for switching a user account according to an exemplary embodiment, where as shown in fig. 5, the method for switching a user account shown in fig. 5 may be used in a mobile terminal. Fig. 5 is an alternative embodiment based on fig. 1, and in the embodiment shown in fig. 5, the same parts as those of the embodiment shown in fig. 1 can be introduced and explained with reference to the embodiment shown in fig. 1. The method shown in fig. 5 comprises the following steps.
In step S51, a key instruction input by the user is received.
In step S52, when the key instruction is an instruction to wake up an account list, the account list is displayed, and the account list at least includes a current account of a logged-in operating system and a target account of a logged-in operating system.
In step S53, when an instruction to log in to a target account in the account list is received, the current account is logged out of the operating system, and the target account is logged in to the operating system.
In step S54, upon receiving an instruction to delete a specific account in the account list for which the operating system is not registered, a password input box is displayed.
The scheme provided by the invention can also delete the account established in advance. When the mobile terminal receives an instruction of deleting a specific account which is not logged in the operating system in the account list, the mobile terminal displays a password input box to judge the validity of the current user.
In step S55, the specific password information input by the user is received using the password input box.
After the mobile terminal displays the password input box, the user can input specific password information in the password input box.
In step S56, when the specific password information matches with the specific account, the specific account in the account list is deleted.
After the mobile terminal receives the specific password information input by the user through the password input box, the mobile terminal calls the specific password information corresponding to the pre-stored specific account and judges whether the specific password information corresponding to the pre-stored specific account is the same as the specific password information received by the password input box, if yes, the specific password information received by the password input box is matched with the target account, and the current user is a legal user, the mobile terminal executes an instruction for deleting the target account which is not logged in the operating system in the account list, and deletes the specific account in the account list.
Fig. 6 is a schematic diagram illustrating a switching apparatus for a user account according to an exemplary embodiment. The switching device of the user account provided by the invention can realize the fast and convenient switching of the user account of the mobile terminal, so as to reduce the operation amount of the user and save the time. Referring to fig. 6, the apparatus includes a first receiving module 11, a first display module 12, and a first account switching module 13. Wherein:
the first receiving module 11 is configured to receive a key instruction input by a user.
The first display module 12 is configured to display an account list when the key instruction is an instruction to wake up the account list, where the account list at least includes a current account of a logged-in operating system and a target account of an unregistered operating system.
The first account switching module 13 is configured to, when receiving an instruction to log in a target account in the account list, log out the current account from the operating system, and log in the target account to the operating system.
Fig. 7 is a schematic diagram illustrating another means for switching user accounts according to an example embodiment. The switching device of the user account provided by the invention can realize the fast and convenient switching of the user account of the mobile terminal, so as to reduce the operation amount of the user and save the time. Referring to fig. 7, the apparatus includes a first receiving module 21, a first display module 22, and a first account switching module 23, and the first account switching module 23 includes a display submodule 231, a receiving submodule 232, and a switching submodule 233. Wherein:
the first receiving module 21 is configured to receive a key instruction input by a user.
The first display module 22 is configured to display an account list when the key instruction is an instruction to wake up the account list, where the account list at least includes a current account of a logged-in operating system and a target account of an unregistered operating system.
The first account switching module 23 is configured to, when receiving an instruction to log in a target account in the account list, log out the current account from the operating system, and log in the target account to the operating system.
The display sub-module 231 is configured to display a password input box when receiving an instruction to log in a target account in the account list.
The receiving submodule 232 is configured to receive target password information input by a user through the password input box.
And the switching submodule 233 is configured to, when the target password information matches the target account, log the current account out of the operating system and log the target account in the operating system.
Fig. 8 is a schematic diagram illustrating yet another apparatus for switching user accounts according to an example embodiment. The switching device of the user account provided by the invention can realize the fast and convenient switching of the user account of the mobile terminal, so as to reduce the operation amount of the user and save the time. Referring to fig. 8, the apparatus includes a first receiving module 31, a first display module 32, a first account switching module 33, a second display module 34, a third display module 35, and an account adding module 36. Wherein:
the first receiving module 31 is configured to receive a key instruction input by a user.
The first display module 32 is configured to display an account list when the key instruction is an instruction to wake up the account list, where the account list at least includes a current account of a logged-in operating system and a target account of an unregistered operating system.
The first account switching module 33 is configured to, when receiving an instruction to log in a target account in the account list, log out the current account from the operating system, and log in the target account to the operating system.
And the second display module 34 is configured to display the account input box when an instruction to add an account is received.
And a third display module 35, configured to display the password input box when the specified account input by the user is received in the account input box.
And the account adding module 36 is configured to, when the specified password information input by the user is received by using the password input box, establish a corresponding relationship between the specified account and the specified password information, and store the specified account in the account list.
Fig. 9 is a schematic diagram illustrating yet another apparatus for switching user accounts according to an example embodiment. The switching device of the user account provided by the invention can realize the fast and convenient switching of the user account of the mobile terminal, so as to reduce the operation amount of the user and save the time. Referring to fig. 9, the apparatus includes a first receiving module 41, a first display module 42, a first account switching module 43, a fourth display module 44, a second receiving module 45, a second account switching module 46, and a first deleting module 47. Wherein:
the first receiving module 41 is configured to receive a key instruction input by a user.
The first display module 42 is configured to display an account list when the key instruction is an instruction to wake up the account list, where the account list at least includes a current account of a logged-in operating system and a target account of an unregistered operating system.
The first account switching module 43 is configured to, when receiving an instruction to log in a target account in the account list, log out the current account from the operating system, and log in the target account to the operating system.
And the fourth display module 44 is configured to display the password input box when receiving an instruction to delete the target account of the operating system logged in the account list.
And a second receiving module 45, configured to receive, by using the password input box, target password information input by the user.
And the second account switching module 46 is configured to log the target account out of the operating system and log the administrator account in the operating system when the target password information matches the target account.
A first deleting module 47, configured to delete the target account in the account list.
Fig. 10 is a schematic diagram illustrating yet another apparatus for switching user accounts according to an example embodiment. The switching device of the user account provided by the invention can realize the fast and convenient switching of the user account of the mobile terminal, so as to reduce the operation amount of the user and save the time. Referring to fig. 10, the apparatus includes a first receiving module 51, a first display module 52, a first account switching module 53, a fifth display module 54, a third receiving module 55, and a second deleting module 56. Wherein:
the first receiving module 51 is configured to receive a key instruction input by a user.
The first display module 52 is configured to display an account list when the key instruction is an instruction to wake up the account list, where the account list at least includes a current account of a logged-in operating system and a target account of an unregistered operating system.
The first account switching module 53 is configured to, when receiving an instruction to log in a target account in the account list, log out the current account from the operating system, and log in the target account to the operating system.
And a fifth display module 54, configured to display a password input box when receiving an instruction to delete a specific account in the account list that is not logged in to the operating system.
And a third receiving module 55, configured to receive, by using the password input box, specific password information input by the user.
And a second deleting module 56, configured to delete the specific account in the account list when the specific password information matches the specific account.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating a switching device of a user account according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 11, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of switching user accounts, the method comprising: receiving a key instruction input by a user; when the key instruction is an instruction for awakening the account list, displaying the account list, wherein the account list at least comprises a current account of a logged-in operating system and a target account of an unregistered operating system; and when receiving an instruction of logging in a target account in the account list, logging out the current account from the operating system, and logging in the target account in the operating system.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (7)

1. A method for switching user accounts is characterized by comprising the following steps:
receiving a key instruction input by a user; the key instruction is input through a shortcut key, and the shortcut key comprises any one or more of the following components: a menu key, a home key, a return key, a search key, a power key, a volume up key and a volume down key;
when the key instruction is an instruction for awakening an account list, displaying the account list, wherein the account list at least comprises a current account logged in with an operating system and a target account not logged in with the operating system;
when an instruction for logging in the target account in the account list is received, logging out the current account from the operating system, and logging in the target account in the operating system;
the key instruction comprises a target account of a logged-in operating system in the account list or a specific account of a logged-in operating system in the account list;
when an instruction for deleting the target account of the logged-in operating system in the account list is received, the method further comprises the following steps:
displaying a password input box;
receiving target password information input by a user by using the password input box;
when the target password information is matched with the target account, the target account is quitted from the operating system, and an administrator account is logged in the operating system;
deleting the target account in the account list;
when an instruction for deleting a specific account of the account list, to which the operating system is not logged in, is received, the method further includes:
displaying a password input box;
receiving specific password information input by a user by using the password input box;
deleting the specific account in the account list when the specific password information matches the specific account.
2. The method for switching the user account according to claim 1, wherein the step of logging out the current account from the operating system and logging in the target account to the operating system when the target account in the account list receives a click instruction input by a user comprises:
displaying a password input box when an instruction for logging in the target account in the account list is received;
receiving target password information input by a user by using the password input box;
and when the target password information is matched with the target account, the current account is logged out of the operating system, and the target account is logged in the operating system.
3. The method for switching user accounts according to claim 1, further comprising:
displaying an account input box when an instruction of adding an account is received;
when a designated account input by a user is received in the account input box, displaying a password input box;
when the password input box is used for receiving the appointed password information input by the user, establishing the corresponding relation between the appointed account and the appointed password information, and storing the appointed account in the account list.
4. A device for switching user accounts, comprising:
the first receiving module is used for receiving a key instruction input by a user; the key instruction is input through a shortcut key, and the shortcut key comprises any one or more of the following components: a menu key, a home key, a return key, a search key, a power key, a volume up key and a volume down key;
the first display module is used for displaying the account list when the key instruction is an instruction for awakening the account list, wherein the account list at least comprises a current account of a logged-in operating system and a target account of the operating system which is not logged-in;
the first account switching module is used for quitting the current account from the operating system and logging the target account into the operating system when receiving an instruction of logging in the target account in the account list;
the key instruction comprises a target account of a logged-in operating system in the account list or a specific account of a logged-in operating system in the account list;
the device further comprises:
the fourth display module is used for displaying a password input box when receiving an instruction of deleting a target account of the logged-in operating system in the account list;
the second receiving module is used for receiving target password information input by a user by using the password input box;
the second account switching module is used for quitting the target account from the operating system and logging an administrator account in the operating system when the target password information is matched with the target account;
a first deletion module for deleting the target account in the account list;
the device further comprises:
the fifth display module is used for displaying a password input box when receiving an instruction of deleting a specific account which is not logged in the operating system in the account list;
the third receiving module is used for receiving specific password information input by a user by using the password input box;
a second deleting module, configured to delete the specific account in the account list when the specific password information matches the specific account.
5. The apparatus of claim 4, wherein the first account switching module comprises:
the display sub-module is used for displaying a password input box when receiving an instruction of logging in the target account in the account list;
the receiving submodule is used for receiving target password information input by a user by using the password input box;
and the switching submodule is used for quitting the current account from the operating system and logging the target account in the operating system when the target password information is matched with the target account.
6. The apparatus for switching user accounts according to claim 4, further comprising:
the second display module is used for displaying the account input box when receiving an instruction of adding the account;
the third display module is used for displaying the password input box when the specified account input by the user is received in the account input box;
and the account adding module is used for establishing the corresponding relation between the designated account and the designated password information when the designated password information input by the user is received by using the password input box, and storing the designated account in the account list.
7. A device for switching user accounts, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a key instruction input by a user; the key instruction is input through a shortcut key, and the shortcut key comprises any one or more of the following components: a menu key, a home key, a return key, a search key, a power key, a volume up key and a volume down key;
when the key instruction is an instruction for awakening an account list, displaying the account list, wherein the account list at least comprises a current account logged in with an operating system and a target account not logged in with the operating system;
when an instruction for logging in the target account in the account list is received, logging out the current account from the operating system, and logging in the target account in the operating system;
the key instruction comprises a target account of a logged-in operating system in the account list or a specific account of a logged-in operating system in the account list;
wherein, upon receiving an instruction to delete a target account of a logged-in operating system in the account list, the processor is further configured to:
displaying a password input box;
receiving target password information input by a user by using the password input box;
when the target password information is matched with the target account, the target account is quitted from the operating system, and an administrator account is logged in the operating system;
deleting the target account in the account list;
wherein, upon receiving an instruction to delete a particular account in the account list that is not logged into the operating system, the processor is further configured to:
displaying a password input box;
receiving specific password information input by a user by using the password input box;
deleting the specific account in the account list when the specific password information matches the specific account.
CN201510276323.8A 2015-05-26 2015-05-26 User account switching method and device Active CN106302342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510276323.8A CN106302342B (en) 2015-05-26 2015-05-26 User account switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510276323.8A CN106302342B (en) 2015-05-26 2015-05-26 User account switching method and device

Publications (2)

Publication Number Publication Date
CN106302342A CN106302342A (en) 2017-01-04
CN106302342B true CN106302342B (en) 2020-10-27

Family

ID=57634948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510276323.8A Active CN106302342B (en) 2015-05-26 2015-05-26 User account switching method and device

Country Status (1)

Country Link
CN (1) CN106302342B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109033874B (en) * 2018-07-19 2021-12-10 数海信息技术有限公司 Multi-role login method and system for Android program of digital sea information based on SQlite database
CN111131619B (en) * 2019-12-30 2021-04-27 广州酷狗计算机科技有限公司 Account switching processing method, device and system
CN112084478A (en) * 2020-09-03 2020-12-15 Oppo广东移动通信有限公司 Multi-user account switching method and device, electronic equipment and storage medium
CN113852618B (en) * 2021-09-18 2024-04-19 博泰车联网科技(上海)股份有限公司 Account isolation method, device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551837B (en) * 2008-03-31 2012-01-25 联想(北京)有限公司 Method for switching user accounts and computer
TW201015912A (en) * 2008-10-01 2010-04-16 Avermedia Tech Inc Network communication method, dispatch server and server
KR20130136173A (en) * 2012-06-04 2013-12-12 삼성전자주식회사 Method for providing fingerprint based shortcut key, machine-readable storage medium and portable terminal
CN103713829B (en) * 2012-09-29 2018-08-10 联想(北京)有限公司 System switching method, device and electronic equipment
CN102968343A (en) * 2012-11-14 2013-03-13 广东欧珀移动通信有限公司 Method and system for switching users
CN103927119B (en) * 2014-04-16 2017-06-16 广东欧珀移动通信有限公司 Switch to the method and system at account interface

Also Published As

Publication number Publication date
CN106302342A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106709399B (en) Fingerprint identification method and device
EP3133851B1 (en) Method and device for acquiring using authority
CN106170004B (en) Method and device for processing verification code
CN106528081B (en) Operation execution method and device
CN107102772B (en) Touch control method and device
CN107229411B (en) Method and device for controlling split screen state
CN106156561B (en) Application locking method, application unlocking method and device
US9807219B2 (en) Method and terminal for executing user instructions
CN106357934B (en) Screen locking control method and device
WO2018000710A1 (en) Method and device for displaying wifi signal icon and mobile terminal
WO2016065760A1 (en) Device connection prompt method and apparatus
CN106302342B (en) User account switching method and device
CN106775377B (en) Gesture recognition device, equipment and control method of gesture recognition device
CN108011990B (en) Contact management method and device
CN107132983B (en) Split-screen window operation method and device
US10263925B2 (en) Method, device and medium for sending message
CN108984098B (en) Information display control method and device based on social software
CN104951522B (en) Method and device for searching
CN113992928A (en) Live broadcast room display method and device, electronic equipment and storage medium
CN111541922B (en) Method, device and storage medium for displaying interface input information
CN106506808B (en) Method and device for prompting communication message
CN110764847B (en) User information processing method, device, electronic equipment and storage medium
CN110290526B (en) Data access method, device and medium
CN110121148B (en) Interphone team method and device
CN109558016B (en) Input method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200921

Address after: No.018, floor 8, building 6, yard 33, middle Xierqi Road, Haidian District, Beijing 100085

Applicant after: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

Applicant after: Xiaomi Technology Co.,Ltd.

Address before: 100085, Haidian District, Beijing Qinghe Street No. 68, Huarun colorful city shopping center two, 13 layers

Applicant before: Xiaomi Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant