A mode exit method and apparatus, device, and storage medium
By setting target authentication information in the terminal device, responding to the input operation of authentication information, determining whether it matches the target authentication information, and controlling the terminal device to exit the restricted mode when it matches, the problem of reduced restriction capability caused by the leakage of lock screen password is solved, and more efficient restricted mode management is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2026-03-31
AI Technical Summary
In existing technologies, the restriction modes of terminal devices are easily weakened by the leakage of lock screen passwords, making it impossible to effectively restrict usage time and functions.
By setting target authentication information in the terminal device, in response to the input operation of authentication information, it is determined whether it matches the target authentication information, and if they match, the terminal device is controlled to exit the restricted mode, thereby improving the security of authentication.
It improves the restriction capabilities of terminal devices during use, avoids the reduction of restriction capabilities due to password leakage, and enhances the security and effectiveness of mode exit.
Smart Images

Figure CN117201667B_ABST
Abstract
Description
Technical Field
[0001] This application relates to device security technology, including but not limited to a mode exit method and apparatus, device, and storage medium. Background Technology
[0002] In some scenarios when using mobile phones and other terminal devices, the user may not be the owner of the device. Therefore, it is usually necessary to set a restriction mode, such as a children's space, to limit the usage time and available functions of the device.
[0003] The restriction modes used in existing technologies usually rely on the terminal device's own password to exit, such as the lock screen password of a mobile phone.
[0004] However, in real-world scenarios, such as children's spaces which are usually used by the user's family members, the lock screen password is easily known. Exiting the mode based on the phone's lock screen password may prevent the terminal device from effectively restricting the use of functions and the duration of use, resulting in poor restriction capabilities of the terminal device. Summary of the Invention
[0005] In view of this, the mode exit method, apparatus, device, and storage medium provided in the embodiments of this application can improve the restriction capability of terminal devices during use. The mode exit method, apparatus, device, and storage medium provided in the embodiments of this application are implemented as follows:
[0006] The mode exit method provided in this application embodiment is applied to a terminal device, and the method includes:
[0007] When the terminal device is in restricted mode, in response to the input operation of authentication information, it is determined whether the authentication information matches the target authentication information. The target authentication information is the information set for mode exit authentication after the terminal device enters restricted mode. When the terminal device is in restricted mode, the applications that the terminal device can use are pre-configured applications, and / or the usage time that the terminal device can use is a pre-configured usage time.
[0008] If the authentication information matches the target authentication information, the control terminal device exits the restricted mode.
[0009] This application provides a mode exit device, which is applied to a terminal device. The device includes a response module and an exit module.
[0010] The response module is used to determine whether the authentication information matches the target authentication information in response to the input operation of authentication information when the terminal device is in restricted mode. The target authentication information is the information set for mode exit authentication after the terminal device enters restricted mode. When the terminal device is in restricted mode, the application that the terminal device can use is a pre-configured application, and / or the usage time that the terminal device can use is a pre-configured usage time.
[0011] The exit module is used to control the terminal device to exit the restricted mode when the authentication information matches the target authentication information.
[0012] The computer device provided in this application includes a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the program to implement the method of this application.
[0013] The computer-readable storage medium provided in this application embodiment stores a computer program thereon, which, when executed by a processor, implements the method provided in this application embodiment.
[0014] The mode exit method, apparatus, device, and storage medium provided in this application can, when a terminal device is in restricted mode, respond to an input operation of authentication information to determine whether the authentication information matches the target authentication information, and then control the terminal device to exit the restricted mode if the authentication information matches the target authentication information. Since the target authentication information is the information set for mode exit authentication after the terminal device enters restricted mode, using this target authentication information for mode exit authentication after entering restricted mode during identity verification can improve the restriction capability of the terminal device during use and avoid a reduction in restriction capability due to password leakage of the terminal device itself. Attached Figure Description
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.
[0016] Figure 1 A schematic diagram illustrating the limitation mode provided in the embodiments of this application;
[0017] Figure 2 A schematic flowchart illustrating the mode exit method provided in this application embodiment;
[0018] Figure 3 A flowchart illustrating the process of setting target authentication information in the mode exit method provided in this application embodiment;
[0019] Figure 4 A schematic diagram illustrating the process of entering management mode as provided in an embodiment of this application;
[0020] Figure 5 A schematic diagram illustrating the entry into management mode provided in an embodiment of this application;
[0021] Figure 6 This is another schematic diagram of the process for entering the management mode provided in an embodiment of this application;
[0022] Figure 7 Another schematic diagram showing the entry into management mode provided in an embodiment of this application;
[0023] Figure 8 Another flowchart illustrating the mode exit method provided in this application embodiment;
[0024] Figure 9 This is a schematic diagram of the structure of the mode exit device provided in the embodiments of this application;
[0025] Figure 10 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0028] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0029] It should be noted that the terms "first, second, third" used in the embodiments of this application are used to distinguish similar or different objects and do not represent a specific order of objects. It can be understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0030] In some scenarios when using mobile phones and other terminal devices, the user may not be the owner of the terminal device. Therefore, it is usually necessary to set a restriction mode, such as children's space, dual-use space, friends access space, and other feasible types of modes to restrict the usage time and available functions of the device.
[0031] The restriction modes used in related technologies are usually based on the terminal device's own password for exiting, such as the phone's lock screen password or lock screen gestures.
[0032] However, in real-world scenarios, such as children's spaces which are typically used by the user's family members, authentication information such as lock screen passwords or lock screen gestures used for exiting the mode can be easily obtained. If a lock screen password or lock screen gesture based on the phone is used for exiting the mode, the terminal device may not be able to effectively restrict the use of functions and the duration of use, resulting in poor restriction capabilities of the terminal device.
[0033] To address the aforementioned problems in the prior art, this application provides a mode exit method, and the following explains the display situation in the application scenarios of this mode exit method.
[0034] Figure 1 Please refer to the schematic diagram showing the limitation mode provided in the embodiments of this application. Figure 1 The restriction mode can be a mode of a terminal device, which may include, but is not limited to, mobile phones, wearable devices (such as smartwatches, smart bracelets, smart glasses, etc.), tablets, laptops, in-vehicle terminals, PCs (Personal Computers), etc. The functions implemented by this method can be achieved by the processor in the electronic device calling program code. Of course, the program code can be stored in computer storage media. Therefore, the terminal device includes at least a processor and storage media.
[0035] The terminal device may also include a display to show the interface of the terminal device. In the restricted mode, in addition to the content that can be displayed in the normal mode, the restricted mode restriction duration can also be displayed. For example, it can be displayed by a countdown of the remaining time or by the time already used. No specific restrictions are made here.
[0036] For example, when the terminal device is in restricted mode, the applications that the terminal device can use are pre-configured applications, and / or the usage time that the terminal device can use is the pre-configured usage time.
[0037] The duration and eligible applications for restricted mode can be pre-configured. Unavailable applications can be either not displayed in restricted mode, or displayed as currently unavailable. Figure 1 The image shown is an example of how the application is currently unavailable; it is not intended to be a limitation.
[0038] Restricted modes can include various types, such as a children's space for restricting children's behavior. After entering restricted mode, the user can hand the terminal device to the child. During the child's use, there will be restrictions on the duration of use and the applications that can be used. If the user does not want the child to use certain applications, they can configure some applications to be unavailable in the children's space in advance, thereby achieving the purpose of restricting the child's behavior.
[0039] In addition to children's spaces, other types of restriction modes can also be included, such as modes used when repairing a mobile phone or when handing the phone over to someone else, special modes entered to restrict the user's own behavior, or any other type of mode that restricts the duration of use of the terminal device and / or the use of applications.
[0040] exist Figure 1 The displayed interface shows the remaining usage time of the restricted mode in a countdown manner, and prompts are given for applications A and B that cannot be accessed in this mode.
[0041] In addition, if the terminal device is in normal mode, you can enter restricted mode by authentication methods such as lock screen password, lock screen gesture or fingerprint information.
[0042] In real-world usage scenarios, the device is typically handed over to the restricted user (e.g., a child) only after the user confirms that the device is in restricted mode. Therefore, using a lock screen password or lock screen gestures during the restricted mode phase will not affect the device's restriction capabilities.
[0043] Based on the above explanation of the display interface for the restricted modes of the terminal device, the specific implementation process of the mode exit method proposed in this application embodiment will be further explained below.
[0044] Figure 2 Please refer to the flowchart of the mode exit method provided in the embodiments of this application. Figure 2 The method includes:
[0045] S210: When the terminal device is in restricted mode, in response to the input operation of authentication information, determine whether the authentication information matches the target authentication information.
[0046] Among them, the target authentication information is the information set for exiting the restricted mode after the terminal device enters the restricted mode.
[0047] It should be noted that when a terminal device is in restricted mode, it means that the terminal device is in restricted mode from the moment it enters the restricted mode until it exits the restricted mode. During this period, the terminal device can be identified as being in restricted mode.
[0048] Authentication information can be passwords or gestures entered by the user of the terminal device for authentication; target authentication information can be information pre-stored in the terminal device, such as information set for exiting the restricted mode after the terminal device enters the restricted mode.
[0049] Since the restricted mode can be entered multiple times, the target authentication information can be set when entering the restricted mode for the first time, after the target authentication information expires, or when the target authentication information needs to be modified actively. After entering the restricted mode, if there is existing target authentication information, it does not need to be reset; if there is no existing target authentication information, the target authentication information can be set.
[0050] It should be noted that after responding to the input of authentication information, it can be determined whether the authentication information matches the target authentication information. Matching can mean that the authentication information and the target authentication information are the same, or it can mean that the authentication information and the target authentication information have a corresponding relationship, etc. There are no specific restrictions here, and one of the methods can be selected for configuration according to actual needs.
[0051] For example, if both the authentication information and the target authentication information are passwords, then if the target authentication information is the same as the authentication information, it can be determined that the authentication information matches the target authentication information; correspondingly, if the target authentication information is different from the authentication information, it can be determined that the authentication information does not match the target authentication information.
[0052] S220: If the authentication information matches the target authentication information, control the terminal device to exit the restricted mode.
[0053] Specifically, the corresponding result can be obtained by determining whether the authentication information matches the target authentication information. If the authentication information matches the target authentication information, the terminal device is controlled to exit the restricted mode; correspondingly, if the authentication information does not match the target authentication information, the terminal device remains in the restricted mode.
[0054] It should be noted that the above process is the process of actively exiting the restricted mode. In addition, after the usage time of the restricted mode ends, the terminal device will enter the screen-off state. In the screen-off state, it is necessary to authenticate through the target authentication information or user fingerprint authentication to unlock the screen and restore the normal mode.
[0055] The mode exit method provided in this application embodiment can, when the terminal device is in restricted mode, determine whether the authentication information matches the target authentication information in response to the input operation of authentication information, and then control the terminal device to exit the restricted mode if the authentication information matches the target authentication information. Since the target authentication information is the information set for mode exit authentication after the terminal device enters restricted mode, using this target authentication information for mode exit authentication after entering restricted mode during identity verification can improve the restriction capability of the terminal device during use, avoiding a reduction in restriction capability due to password leakage of the terminal device itself.
[0056] The following explains the implementation process of entering the management mode in the mode exit method provided in the embodiments of this application, as well as the corresponding settings performed in the management mode.
[0057] Figure 3 Please refer to the flowchart illustrating the setting of target authentication information in the mode exit method provided in this application embodiment. Figure 3 The method also includes:
[0058] S310: In response to the entry operation of management mode, determine that the terminal device has entered management mode.
[0059] The management mode is a device mode used to set the restriction mode.
[0060] It should be noted that the management mode can be a sub-mode of the restricted mode. In the management mode, relevant settings can be made for the restricted mode, such as setting restricted applications, setting restricted usage time, and setting the aforementioned target authentication information.
[0061] There are multiple ways to enter management mode, and once you enter management mode using any of these methods, you can set the restriction mode.
[0062] S320: When the terminal device is in management mode, in response to the setting operation for the target authentication information, determine the target authentication information.
[0063] When the terminal device is in management mode, target authentication information can be set. For example, a display interface can be configured, which may contain prompts for password input or gesture input, and the target authentication information can be determined based on the user's input.
[0064] For example: In this display interface, if password input is selected, the target authentication information can be determined based on the password entered by the user; if gesture input is selected, the gesture corresponding to the target authentication information can be determined based on the gesture entered by the user.
[0065] After determining the target authentication information using the above method, when it is necessary to exit the restricted mode, the input authentication information can be matched and verified based on the determined target authentication information.
[0066] The mode exit method provided in this application embodiment can determine that the terminal device has entered the management mode in response to the entry operation of the management mode; when the terminal device is in the management mode, it can determine the target authentication information in response to the setting operation of the target authentication information. Setting the target authentication information in the management mode can prevent the leakage of the target authentication information, thereby improving the restriction capability of the terminal device during use and avoiding a reduction in restriction capability due to the leakage of the terminal device's own password.
[0067] The following sections will explain the feasible implementation methods for entering management mode in the mode exit method provided in the embodiments of this application.
[0068] Figure 4 Please refer to the flowchart illustrating the process of entering management mode provided in this application embodiment. Figure 4 In response to the entry operation into management mode, determine that the terminal device has entered management mode, including:
[0069] S410: In response to a trigger action on a target control that has entered management mode, generate an authentication prompt.
[0070] It should be noted that since the management mode is a sub-mode of the restricted mode, the above steps must first be performed when the terminal device is in the restricted mode.
[0071] In the restricted mode display interface, a target control for entering management mode can be set. In response to a trigger action on this target control, an authentication prompt can be generated. This authentication prompt can instruct the user to authenticate themselves, for example, through fingerprint verification or facial recognition, to confirm the current user's identity.
[0072] Upon receiving an identity verification prompt, the user can proceed with the corresponding verification steps. For example, if fingerprint verification is used, the user will be required to enter their fingerprint.
[0073] S420: In response to the input of identity information prompted for authentication, if the identity information meets the authentication conditions, determine that the terminal device enters the management mode.
[0074] Specifically, it can respond to the user's input of identity information in response to the authentication prompt, obtain the input content, and perform corresponding authentication based on the input content.
[0075] It should be noted that the authentication method can be set according to actual needs. For example, if the restriction mode is a children's space, children may not have the ability to enter the management mode during use. In this case, you can set it to be verified by lock screen password or lock screen gesture. If the restriction mode is another method, for example, if the target of the restriction may have the ability to enter the management mode, you can set it to be verified by fingerprint, facial recognition or other verification information that only the user can verify successfully. No specific restrictions are set here.
[0076] If identity verification is successful, it can be determined that the identity information meets the verification conditions; conversely, if identity verification fails, it can be determined that the identity information does not meet the verification conditions.
[0077] If the identity information meets the verification conditions, the terminal device can switch from the restricted mode to its corresponding management mode.
[0078] The mode exit method provided in this application embodiment can generate an authentication prompt in response to a trigger operation on a target control entering the management mode; and in response to an authentication information input operation on the authentication prompt, determine that the terminal device has entered the management mode if the identity information meets the verification conditions. Entering the management mode through a target control is one feasible method, which allows users to easily set relevant information for the restricted mode and reset or update the target authentication information, thereby improving the restriction capabilities of the terminal device. Furthermore, authentication is performed during the entry into the management mode, thus preventing the target authentication information from being modified.
[0079] The following explains the content displayed on the terminal device's interface during the process of entering management mode using the above method.
[0080] Figure 5 This is a schematic diagram illustrating the entry into management mode provided in an embodiment of this application. Please refer to... Figure 5The terminal device's display interface can be configured with corresponding target controls 510.
[0081] It should be noted that users can enter management mode from the current restricted mode by triggering the target control 510, and then perform corresponding settings for the restricted mode.
[0082] The following explains another feasible implementation of the mode exit method for entering management mode provided in the embodiments of this application.
[0083] Figure 6 For another flowchart illustrating the process of entering management mode provided in this application embodiment, please refer to... Figure 6 In response to the entry operation into management mode, determine that the terminal device has entered management mode, including:
[0084] S610: After a preset time has elapsed since the terminal device entered restricted mode, a prompt to enter management mode is generated.
[0085] It should be noted that after the terminal device enters restricted mode, a pop-up window can be displayed on the display interface after a preset time to remind the user whether to enter management mode.
[0086] For example, within one second after the terminal device enters restricted mode, a pop-up window can be generated, which can display a prompt message such as "Do you want to enter management mode to make settings?"
[0087] The preset duration can be set based on actual needs.
[0088] S620: In response to the selection operation of the prompt to enter the management mode, confirm that the terminal device has entered the management mode.
[0089] It should be noted that you can choose to enter management mode or not based on the prompts for entering management mode.
[0090] If you choose not to enter management mode, you can remain in restricted mode and be verified using the default authentication information when exiting restricted mode; if you choose to enter management mode, you will be directly redirected to the corresponding management mode interface.
[0091] In practice, when entering restricted mode, the operation is usually performed by the user. Therefore, entering management mode during this process can be done directly without repeated verification. Alternatively, for greater security, to prevent unauthorized users from entering management mode, a similar identity verification process can be performed to enter management mode only after confirming that the current user is the user.
[0092] In the mode exit method provided in this application embodiment, a prompt to enter management mode can be generated after a preset time period when the terminal device has entered restricted mode; in response to the selection operation of entering management mode prompt, the terminal device is confirmed to have entered management mode. Entering management mode based on the prompt after a preset time period in restricted mode is one feasible method, which facilitates users in setting relevant information for restricted mode and allows for operations such as resetting and updating target authentication information, thereby improving the restriction capabilities of the terminal device.
[0093] The following explains the content displayed on the terminal device's interface during the process of entering management mode using the above method.
[0094] Figure 7 For another schematic diagram of entering the management mode provided in this application embodiment, please refer to... Figure 7 After a preset time has elapsed since entering restricted mode, a prompt to enter management mode (710) will be displayed on the terminal device's screen.
[0095] It should be noted that users can choose to enter or not enter management mode by triggering the entry prompt 710. If they choose not to enter management mode, they can continue in restricted mode; if they choose to enter management mode, they can enter management mode from restricted mode.
[0096] The following sections explain the relevant settings that can be made to the restricted mode when the terminal device is in management mode.
[0097] In one embodiment, when the terminal device is in management mode, the method further includes: determining the effective time of the target authentication information in response to a setting operation for the duration corresponding to the target authentication information.
[0098] It should be noted that the duration of the target authentication information can be set when or after the user sets the target authentication information. The duration of the target authentication information can refer to the effective time of the target authentication information. For example, if the duration of the target authentication information is set to 1 day, the user can exit the restricted mode based on the target authentication information within one day after the setting is completed. After the duration is exceeded, the target authentication information will not be effective, that is, the user cannot use the target authentication information to exit the restricted mode.
[0099] When setting the effective duration of the target authentication information, a preset duration can be configured in advance, such as 3 days. Users can change or keep the preset duration unchanged, thereby determining the effective time of the target authentication information at the same time as determining the target authentication information or after confirming the target authentication information.
[0100] In one embodiment, when the terminal device is in restricted mode, if the effective time of the target authentication information is close to its expiration by a preset time length, a first prompt message is generated. The first prompt message is used to indicate that the effective time of the target authentication information is about to expire.
[0101] It should be noted that the preset time length can be set according to actual needs. For example, it can be set after 90% of the total effective time has elapsed. For instance, if the duration of the target authentication information is 10 days, the first prompt message can be generated on the ninth day.
[0102] Alternatively, a first warning message can be generated one hour before the expiration date; no specific restrictions are imposed here.
[0103] The first prompt message may include text such as "The target authentication information will expire in X time," or it may use a prompt sound, prompt video, or time countdown as the first prompt message to inform the user that the validity period of the target authentication information is about to expire.
[0104] In one embodiment, when the terminal device is in management mode, the method further includes: determining the effective number of times the target authentication information is valid in response to a setting operation for the duration corresponding to the target authentication information.
[0105] Besides setting an effective time, you can also set the number of times the target authentication information can be used. When setting the target authentication information, or after setting it, you can set the duration of the target authentication information. The duration of the target authentication information refers to the number of times it can be used. For example, if the duration of the target authentication information is set to 10 times, then after setting it, when in restricted mode 10 times, you can exit restricted mode based on this target authentication information. Each exit from restricted mode consumes one duration. After the duration is exhausted, the target authentication information becomes ineffective, meaning it cannot be used to exit restricted mode.
[0106] When setting the number of times the target authentication information takes effect, a preset number of times can be configured, such as 3 times. Users can change or keep the preset number of times, so that the number of times the target authentication information takes effect can be determined at the same time as or after the target authentication information is confirmed.
[0107] In one embodiment, during the process of the terminal device exiting the restricted mode, if the number of times the target authentication information has been activated is less than or equal to the preset number of times it has been activated, a second prompt message is generated. The second prompt message is used to indicate that the number of times the target authentication information has been activated is about to be exhausted.
[0108] It should be noted that the preset number of activations can be set according to actual needs. For example, it can be set after 90% of the activations have been used. For instance, if the target authentication information lasts for 10 times, a second prompt message can be generated when exiting the restricted mode for the 9th time.
[0109] Alternatively, a second prompt message can be generated during the last exit from restricted mode before it expires; no specific restrictions are imposed here.
[0110] The second prompt message may include text such as "The target authentication information will expire after X times," or it may use a prompt sound, prompt video, or countdown timer to remind the user that the number of times the target authentication information can be used up is about to expire.
[0111] The following explains the implementation process of setting the exit method for restricted mode in the mode exit method provided in the embodiments of this application.
[0112] Figure 8 For another flowchart illustrating the mode exit method provided in this application embodiment, please refer to... Figure 8 When the terminal device is in management mode, the method further includes:
[0113] S810: In response to a setting operation for the exit method of restricted mode, determine the exit method of restricted mode.
[0114] The exit methods include at least one of the following: exiting based on target authentication information, exiting based on lock screen authentication information, and exiting based on fingerprint information.
[0115] It should be noted that in management mode, the exit method for restricted mode can also be configured. The exit method will be determined in response to the configuration settings for restricted mode. One or more exit methods can be selected; by default, exiting based on lock screen authentication information and exiting based on fingerprint information are allowed. Users can also select to exit based on target authentication information.
[0116] Among them, exiting based on target authentication information is the same as steps S210-S220 above. Exiting based on lock screen authentication information is the same as exiting based on lock screen password or lock screen gesture in related technologies. Exiting based on fingerprint information is the same as exiting based on the fingerprint pre-registered by the user. In actual selection, exiting based on fingerprint information can be an exit method that is always effective. Exiting based on target authentication information and exiting based on lock screen authentication information can be selected to use one of them.
[0117] When the terminal device is in restricted mode, in response to the input of authentication information, it determines whether the authentication information matches the target authentication information, including:
[0118] S820: After determining that the exit method of the restricted mode includes exiting based on the target authentication information, when the terminal device is in the restricted mode, in response to the input operation of the authentication information, determine whether the authentication information matches the target authentication information.
[0119] It should be noted that if the user selects exit method that includes exiting based on target authentication information, then step S210 can be executed. That is, when the terminal device is in restricted mode, in response to the input operation of authentication information, it is determined whether the authentication information matches the target authentication information.
[0120] For example, without target authentication information, the default exit method can be exit based on lock screen authentication information or exit based on fingerprint information; after setting target authentication information, the exit method can be changed to exit based on target authentication information or exit based on fingerprint information.
[0121] The mode exit method provided in this application embodiment can determine the exit method of the restricted mode in response to a setting operation for the exit method of the restricted mode; after determining that the exit method of the restricted mode includes exiting based on target authentication information, when the terminal device is in restricted mode, it can determine whether the authentication information matches the target authentication information in response to an input operation of authentication information. By selecting the exit method of the restricted mode, the flexibility of mode exit can be improved, thereby making it more adaptable to different usage scenarios and improving the applicability of the mode exit method.
[0122] In one embodiment, after determining that the exit method of the restricted mode includes exiting based on the target authentication information, the method further includes: in the event of an abnormal event occurring on the terminal device, determining whether the target authentication information is corrupted, the abnormal event including: abnormal shutdown of the terminal device, abnormal exit of the restricted mode; if so, adjusting the exit method of the restricted mode to a preset exit method, and generating a third prompt message, the third prompt message being used to indicate that the exit method of the restricted mode has changed.
[0123] It should be noted that during the use of the terminal device, abnormal events may occur due to external force majeure, such as: abnormal shutdown of the terminal device or abnormal exit from restricted mode; abnormal shutdown of the terminal device may be caused by the battery running out of power or by certain applications; abnormal exit from restricted mode may be caused by exiting restricted mode through a non-configured exit method.
[0124] If an abnormal event is determined to have occurred on the terminal device, it can be determined whether the target authentication information is corrupted. If it is not corrupted, the selected exit method can be retained; if it is corrupted, the exit method can be adjusted to a preset exit method, such as exiting based on lock screen authentication information or exiting based on fingerprint information.
[0125] It can also generate a third prompt message, such as displaying text prompts like "Restore the default exit method for the current restricted mode," etc. No specific restrictions are made here.
[0126] In one embodiment, when the terminal device is in a restricted mode, the method further includes: generating a shutdown record in response to a shutdown operation on the terminal device, the shutdown record being used to instruct the terminal device to shut down in the restricted mode, the shutdown record being a record that cannot be actively deleted.
[0127] It should be noted that, in order to prevent users from forgetting the target authentication information, the restricted mode can be exited by shutting down the device. For example, after the terminal device is shut down in restricted mode, it can exit the restricted mode and enter the normal usage mode.
[0128] Furthermore, when the device is powered off, a shutdown record can be generated in response to a shutdown operation on the terminal device. The shutdown record can record the specific shutdown time, such as "exited restricted mode by powering off at time X".
[0129] It should be noted that shutdown records cannot be manually deleted. These records will be saved for a preset period and then automatically deleted; this preset period can be set according to actual needs. Furthermore, these shutdown records cannot be manually deleted by the user; users can actively view these shutdown records.
[0130] In other words, when a user forgets the password or gesture corresponding to the target authentication information, they can exit the restricted mode by shutting down the device. Since the shutdown process saves the shutdown record, the user can view the shutdown record to prevent the user from bypassing the restrictions of the restricted mode by shutting down the device. This can improve the completeness of the boundary case handling of the mode exit method.
[0131] The following explains a feasible process of the mode exit method provided in the embodiments of this application:
[0132] During the process of entering restricted mode, users can enter voluntarily. After entering restricted mode, users can enter management mode by setting a preset duration or by setting an entry control. In management mode, users can choose the mode exit method. If the authentication method based on target authentication information is selected, the target authentication information and the corresponding effective duration or number of times can be set. In addition, the applications that can be used in restricted mode and the duration of use can also be set accordingly.
[0133] After completing the above settings, you can return to the restricted mode. In the restricted mode, if the usage time is exhausted, it will enter the screen-off mode. If you exit based on the target authentication information, you can control the terminal device to exit the restricted mode if the authentication information matches the target authentication information.
[0134] It should be understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0135] Based on the foregoing embodiments, this application provides a mode exit device, which includes various modules and units included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), etc.
[0136] Figure 9 Please refer to the schematic diagram of the mode exit device provided in the embodiments of this application. Figure 9 The device includes a response module 910 and an exit module 920;
[0137] The response module 910 is used to determine whether the authentication information matches the target authentication information in response to the input operation of authentication information when the terminal device is in the restricted mode. The target authentication information is the information set for mode exit authentication after the terminal device enters the restricted mode. When the terminal device is in the restricted mode, the application that the terminal device can use is a pre-configured application, and / or the usage time that the terminal device can use is a pre-configured usage time.
[0138] The exit module 920 is used to control the terminal device to exit the restricted mode when the authentication information matches the target authentication information.
[0139] In one embodiment, the response module 910 is further configured to determine that the terminal device has entered a management mode in response to an entry operation of the management mode, wherein the management mode is a device mode for setting the restriction mode; and, when the terminal device is in the management mode, determine the target authentication information in response to a setting operation for the target authentication information.
[0140] In one embodiment, the response module 910 is further configured to generate an authentication prompt in response to a trigger operation on a target control that enters the management mode; and in response to an authentication information input operation on the authentication prompt, determine that the terminal device has entered the management mode if the authentication information meets the verification conditions.
[0141] In one embodiment, the response module 910 is specifically configured to generate an entry prompt for the management mode after a preset time has elapsed since the terminal device entered the restricted mode; and to determine that the terminal device has entered the management mode in response to a selection operation for the entry prompt for the management mode.
[0142] In one embodiment, the response module 910 is specifically configured to determine the effective time of the target authentication information in response to a setting operation for the duration corresponding to the target authentication information.
[0143] In one embodiment, the response module 910 is further configured to generate a first prompt message if the effective time of the target authentication information is about to expire when the terminal device is in a restricted mode and the time between its expiration and expiration meets a preset time length. The first prompt message is used to indicate that the effective time of the target authentication information is about to expire.
[0144] In one embodiment, the response module 910 is further configured to determine the effective number of the target authentication information in response to a setting operation for the duration corresponding to the target authentication information.
[0145] In one embodiment, the response module 910 is further configured to generate a second prompt message if the number of times the target authentication information has been activated is less than or equal to a preset number of activations during the process of the terminal device exiting the restricted mode. The second prompt message is used to indicate that the number of times the target authentication information has been activated is about to be exhausted.
[0146] In one embodiment, the response module 910 is further configured to determine the exit method of the restricted mode in response to a setting operation for the exit method of the restricted mode, the exit method including at least one of the following: exiting based on the target authentication information, exiting based on lock screen authentication information, and exiting based on fingerprint information; after determining that the exit method of the restricted mode includes exiting based on the target authentication information, when the terminal device is in the restricted mode, in response to an input operation of authentication information, determine whether the authentication information matches the target authentication information.
[0147] In one embodiment, the response module 910 is further configured to determine whether the target authentication information is corrupted when an abnormal event occurs on the terminal device, the abnormal event including: abnormal shutdown of the terminal device, abnormal exit of the restriction mode; if so, adjust the exit method of the restriction mode to a preset exit method and generate a third prompt message, the third prompt message being used to indicate that the exit method of the restriction mode has changed.
[0148] In one embodiment, the response module 910 is further configured to generate a shutdown record in response to a shutdown operation on the terminal device, the shutdown record being used to instruct the terminal device to shut down in the restricted mode, the shutdown record being a record that cannot be actively deleted.
[0149] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0150] It should be noted that, in the embodiments of this application... Figure 9 The module division shown in the mode exit device is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, exist as separate physical units, or be integrated into one unit with two or more units. The integrated units can be implemented in hardware, as software functional units, or a combination of both.
[0151] It should be noted that, in the embodiments of this application, if the above-described methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0152] Figure 10 Please refer to the schematic diagram of the computer device provided in the embodiments of this application. Figure 10 This application provides a computer device, which can be the aforementioned terminal device, and its internal structure diagram can be as follows. Figure 10 As shown, the computer device includes a processor 1020, memory, and a network interface 1040 connected via a system bus 1010. The processor 1020 provides computing and control capabilities. The memory includes a non-volatile storage medium 1031 and internal memory 1032. The non-volatile storage medium 1031 stores an operating system, computer programs, and a database. The internal memory 1032 provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database is used to store data. The network interface 1040 is used to communicate with external terminals via a network connection. When the computer program is executed by the processor 1020, it implements the aforementioned methods.
[0153] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method provided in the above embodiments.
[0154] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the method provided in the above-described method embodiments.
[0155] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0156] In one embodiment, the mode exit device provided in this application can be implemented as a computer program, and the computer program can be implemented as follows: Figure 10 The device operates on the computer device shown. The memory of the computer device can store the various program modules that make up the above-described apparatus. The computer program, composed of the various program modules, causes the processor to execute the steps of the methods in the various embodiments of this application described in this specification.
[0157] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0158] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0159] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0160] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0161] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.
[0162] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0163] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.
[0164] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0165] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0166] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0167] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0168] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0169] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A mode exit method, characterized by, The method is applied to a terminal device, and the method comprises: In a case where it is determined that the exit mode of the limitation mode of the terminal device comprises exiting based on target authentication information and the terminal device is in the limitation mode, in response to an input operation of authentication information, it is determined whether the authentication information matches the target authentication information, the target authentication information being information set for mode-exit authentication after the terminal device enters the limitation mode, wherein when the terminal device is in the limitation mode, the application programs available to the terminal device are preconfigured application programs, and / or the use duration available to the terminal device is a preconfigured use duration, and the authentication information is an input password or gesture; In a case where the authentication information matches the target authentication information, the terminal device is controlled to exit the limitation mode; In a case where an abnormal event occurs to the terminal device, it is determined whether the target authentication information is damaged, the abnormal event comprising abnormal shutdown of the terminal device and abnormal exit of the limitation mode; If yes, the exit mode of the limitation mode is adjusted to a preset exit mode, and third prompt information is generated, the third prompt information being used to prompt that the exit mode of the limitation mode has changed.
2. The method of claim 1, wherein, The method further comprises: In response to an entering operation of a management mode, it is determined that the terminal device enters the management mode, the management mode being a device mode used to set the limitation mode; In a case where the terminal device is in the management mode, in response to a setting operation of the target authentication information, the target authentication information is determined.
3. The method of claim 2, wherein, The response to the entering operation of the management mode and the determination that the terminal device enters the management mode comprise: In response to a triggering operation of a target control for entering the management mode, identity verification prompt is generated; In response to an identity information input operation for the identity verification prompt, in a case where the identity information meets verification conditions, it is determined that the terminal device enters the management mode.
4. The method of claim 2, wherein, The response to the entering operation of the management mode and the determination that the terminal device enters the management mode comprise: After a preset duration that the terminal device enters the limitation mode, entering prompt of the management mode is generated; In response to a selection entering operation for the entering prompt of the management mode, it is determined that the terminal device enters the management mode.
5. The method of claim 2, wherein, In a case where the terminal device is in the management mode, the method further comprises: In response to a setting operation of a duration corresponding to the target authentication information, the validity time of the target authentication information is determined.
6. The method of claim 5, wherein, The method further comprises: In a case where the terminal device is in the limitation mode, if the validity time of the target authentication information is away from invalidation by a preset time length, first prompt information is generated, the first prompt information being used to prompt that the validity time of the target authentication information is about to be exhausted.
7. The method of claim 2, wherein, In a case where the terminal device is in the management mode, the method further comprises: In response to a setting operation of a number of times corresponding to the target authentication information, the validity number of times of the target authentication information is determined.
8. The method of claim 7, wherein, The method further comprises: In a process of exiting the limited mode of the terminal device, if the number of valid times of the target authentication information is less than or equal to a preset number of valid times, second prompt information is generated, and the second prompt information is used to prompt that the number of valid times of the target authentication information is about to be exhausted.
9. The method of claim 2, wherein, In a case where the terminal device is in the management mode, the method further includes: In response to a setting operation for an exiting manner of the limited mode, an exiting manner of the limited mode is determined, and the exiting manner includes at least one of the following: exiting based on the target authentication information, exiting based on lock screen authentication information, and exiting based on fingerprint information.
10. The method of claim 1, wherein, In a case where the terminal device is in the limited mode, the method further includes: In response to a shutdown operation of the terminal device, a shutdown record is generated, the shutdown record is used to indicate that the terminal device is shut down in the limited mode, and the shutdown record is a record that cannot be actively deleted.
11. A mode exit device, characterized by The device is applied to a terminal device, and the device includes a response module and an exiting module. The response module is configured to, in a case where the exiting manner of the limited mode of the terminal device includes exiting based on target authentication information and the terminal device is in the limited mode, determine whether authentication information matches the target authentication information in response to an input operation of the authentication information, the target authentication information being information set for mode exiting authentication after the terminal device enters the limited mode, wherein when the terminal device is in the limited mode, the application that can be used by the terminal device is a preconfigured application, and / or the use duration that can be used by the terminal device is a preconfigured use duration, and the authentication information is an input password or gesture. The exiting module is configured to control the terminal device to exit the limited mode in a case where the authentication information matches the target authentication information. The response module is further configured to, in a case where an abnormal event occurs in the terminal device, determine whether the target authentication information is damaged, the abnormal event including abnormal shutdown of the terminal device and abnormal exiting of the limited mode, and if so, adjust the exiting manner of the limited mode to a preset exiting manner, and generate third prompt information, the third prompt information being used to prompt that the exiting manner of the limited mode is changed.
12. A computer device comprising a memory and a processor, the memory storing a computer program capable of running on the processor, characterized in that, The processor implements the steps of the method in any one of claims 1 to 10 when executing the program.
13. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the method in any one of claims 1 to 10. The computer program is executed by the processor to implement the method in any one of claims 1 to 10.
Citation Information
Patent Citations
Child mode control method and device, vehicle and storage medium
CN115906026A