Mode switching method, device, electronic device, storage medium and program product
By automatically obtaining and analyzing the value of the target parameters, the electronic device can automatically determine and switch modes, solving the problem of low mode switching efficiency and accuracy in the prior art, and achieving more efficient and accurate mode switching.
Patent Information
- Application Number
- CN202210109141.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-28
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-01-28
AI Technical Summary
The existing mode switching methods are inefficient and have low accuracy, and users need to enter an unlock password to determine the mode of the electronic device.
By obtaining the value of the target parameters related to the mode switching conditions, and automatically determining the target mode based on these values and the preset mapping relationship, mode switching of the electronic device is achieved.
Improve the efficiency and accuracy of mode switching, avoiding problems caused by inaccurate unlocking passwords for users' memory or the same unlocking passwords for different modes.
Smart Images

Figure CN116567142B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to computer technology, and in particular to a mode switching method, device, electronic device, storage medium and program product. Background Art
[0002] Two modes can be set in an electronic device (such as a mobile phone), for example, the first mode is a normal mode and the second mode is a privacy mode. The electronic device can switch between the two modes.
[0003] When using the existing mode switching method to switch modes, different unlock passwords are required for different modes. The electronic device first needs to receive the password entered by the user. Then, the electronic device needs to determine the mode of the electronic device according to the password entered by the user, and then start loading the operating data corresponding to the mode. After the electronic device completes loading the operating data corresponding to the mode, the electronic device can switch modes.
[0004] However, the existing mode switching method has the problems of low efficiency and low accuracy. Summary of the invention
[0005] The present application provides a mode switching method, device, electronic device, storage medium and program product to improve the efficiency and accuracy of mode switching.
[0006] In a first aspect, the present application provides a mode switching method, the method being applied to an electronic device, the electronic device having a first mode and a second mode, a first data storage space used by the electronic device to store data in the first mode being independent of a second data storage space used by the electronic device to store data in the second mode, the electronic device being currently in the first mode, the method comprising:
[0007] Acquire a value of at least one target parameter of the electronic device; the at least one target parameter is related to a mode switching condition;
[0008] Determining a target mode of the electronic device according to a value of the at least one target parameter and a mapping relationship between each value of the at least one target parameter and an identifier of a mode; the target mode is the first mode or the second mode;
[0009] If the target mode is the second mode, the electronic device is switched from the first mode to the second mode.
[0010] Optionally, before switching the electronic device from the first mode to the second mode, the method further includes:
[0011] Determining whether the electronic device is in a target state; the target state is a state that allows the electronic device to switch modes;
[0012] If it is determined that the electronic device is in the target state, then loading target operation data, where the target operation data is used to support the electronic device to operate in the second mode;
[0013] The electronic device is switched from the first mode to the second mode using the target operation data.
[0014] Optionally, the target state is a standby state.
[0015] Optionally, if it is determined that the electronic device is not in the target state, the method further includes:
[0016] Outputting first prompt information; the first prompt information is used to prompt the user to trigger an operation of switching the electronic device from the first mode to the second mode.
[0017] Optionally, the method further includes:
[0018] In response to an operation triggered by the user to switch the electronic device from the first mode to the second mode, switching the electronic device from the first mode to the second mode;
[0019] or,
[0020] In response to the user-triggered operation of not switching the electronic device from the first mode to the second mode, the electronic device is maintained in the first mode.
[0021] Optionally, after switching the electronic device from the first mode to the second mode, the method further includes:
[0022] In response to the user inputting the first unlock password, the interface corresponding to the second mode is displayed; the first unlock password is the password required for the electronic device to enter the first mode and the second mode; the first unlock passwords corresponding to the first mode and the second mode are the same.
[0023] Optionally, after switching the electronic device from the first mode to the second mode, the method further includes:
[0024] In response to a user inputting an operation of inputting a second unlocking password corresponding to the target mode, an interface corresponding to the target mode is displayed; the second unlocking password corresponding to the first mode is different from the second unlocking password corresponding to the second mode.
[0025] Optionally, the method further includes:
[0026] In response to a mode switching function setting request triggered by a user, displaying a mode switching function setting interface;
[0027] For any target parameter of the at least one target parameter, a mapping relationship between each value of the target parameter and a mode identifier input by the user is received through the mode switching function setting interface.
[0028] In a second aspect, the present application provides a mode switching device, the device being applied to an electronic device, the electronic device having a first mode and a second mode, the first data storage space used by the electronic device to store data in the first mode being independent of the second data storage space used by the electronic device to store data in the second mode, the electronic device being currently in the first mode, the device comprising:
[0029] An acquisition module, used to acquire a value of at least one target parameter of the electronic device; the at least one target parameter is related to a mode switching condition;
[0030] A processing module, used to determine the target mode of the electronic device according to the value of the at least one target parameter and the mapping relationship between the values of the at least one target parameter and the identifier of the mode; when the target mode is the second mode, switch the electronic device from the first mode to the second mode; the target mode is the first mode or the second mode.
[0031] In a third aspect, the present application provides an electronic device, including: at least one processor and a memory;
[0032] The memory stores computer-executable instructions;
[0033] The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device performs any one of the methods described in the first aspect.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium, on which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the method described in any one of the first aspects is implemented.
[0035] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in any one of the first aspects when executed by a processor.
[0036] The mode switching method, device, electronic device, storage medium and program product provided by the present application, through the value of at least one target parameter related to the mode switching condition, the electronic device can automatically determine the target mode of the electronic device. Compared with the existing method that needs to receive the unlock password input by the user to determine the mode of the electronic device, the present application improves the efficiency of determining the mode of the electronic device, thereby improving the efficiency of mode switching. Then, when the target mode is the second mode, the electronic device can be switched from the first mode to the second mode. Through the above method, the electronic device does not require user operation in the process of switching from the first mode to the second mode, thereby avoiding the problem caused by the user's inaccurate memory of the unlock password or the same unlock password for different modes, and achieving the effect of improving the accuracy of mode switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] Figure 1 A schematic diagram of an application scenario of an existing mode switching method;
[0039] Figure 2 A flowchart of a mode switching method provided by the present application;
[0040] Figure 3 A schematic diagram of an interface display of an electronic device provided in this application;
[0041] Figure 4 A schematic diagram of an interface display of another electronic device provided in this application;
[0042] Figure 5 A flowchart of another mode switching method provided by the present application;
[0043] Figure 6 A flowchart of another mode switching method provided by the present application;
[0044] Figure 7 A flowchart of another mode switching method provided by the present application;
[0045] Figure 8 A flowchart of another mode switching method provided by the present application;
[0046] Fig. 9 A flowchart of another mode switching method provided by the present application;
[0047] Fig.10 A flowchart of another mode switching method provided by the present application;
[0048] Fig.11 A schematic diagram of the structure of a mode switching device provided in this application;
[0049] Fig.12 A schematic diagram of the structure of an electronic device provided in this application.
[0050] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] Taking the electronic device as an example that can run the first mode and the second mode, the first data storage space used by the electronic device to store data in the first mode is independent of the second data storage space used by the electronic device to store data in the second mode. That is to say, when the electronic device is in the first mode, the electronic device cannot call the data in the second data storage space. When the electronic device is in the second mode, the electronic device cannot call the data in the first data storage space. Exemplarily, taking the electronic device as a mobile phone as an example, the above-mentioned first mode can be, for example, the standard mode of the mobile phone, and the above-mentioned second mode can be, for example, the privacy mode of the mobile phone, or the security mode of the mobile phone, etc.
[0053] Take the electronic device as a mobile phone or tablet as an example. Figure 1 FIG. 1 is a schematic diagram of an application scenario of an existing mode switching method. Figure 1 As shown, the electronic device can display an interface for receiving an unlock password in response to a user's request to turn on the electronic device. The unlock password refers to a password required for the electronic device to enter the first mode, or a password required for the electronic device to enter the second mode.
[0054] After receiving the unlock password input by the user, the electronic device Figure 1As shown, the electronic device can, for example, output an interface for prompting that a mode switch is in progress. In addition, the electronic device needs to first determine the mode corresponding to the unlock password based on the unlock password, and then load the operating data corresponding to the mode. After the electronic device completes loading the operating data corresponding to the mode, the electronic device can switch modes. With the above method, the user is required to enter the unlock password, and the user needs to wait for a period of time after entering the unlock password before the electronic device can complete the mode switch. In other words, the above existing mode switching method has the problem of low efficiency.
[0055] In addition, when using the existing mode switching method to switch modes, because the electronic device needs to determine the mode to switch to based on the unlock password input by the user, different modes need to have different unlock passwords corresponding to the modes, and the user needs to remember the unlock passwords of different modes. For example, in the case of using face recognition as the unlock password, because a user only has one characteristic face for unlocking, the accuracy of the above-mentioned existing mode switching method may be low. Alternatively, if the user does not accurately remember the unlock passwords of different modes, the accuracy of the above-mentioned existing mode switching method may also be low.
[0056] Therefore, the existing mode switching method has the problems of low efficiency and low accuracy.
[0057] Considering that the reason why the existing mode switching method has the above problems is that the electronic device needs to enter the unlock password after the user enters the unlock password, and then switches the mode according to the unlock password entered by the user, the present application proposes a method in which the electronic device can automatically switch the mode without the need for the unlock password. Through the above method, the electronic device can automatically determine the mode to be switched to and automatically implement the mode switching, without the need for the user to enter the unlock password before switching the mode, thereby improving the efficiency and accuracy of the mode switching.
[0058] It should be understood that Figure 1 This is just an exemplary description using a mobile phone or a tablet computer as an example, and the present application does not limit the type of the electronic device. Optionally, the electronic device can be any terminal with processing function, or a server, etc.
[0059] In addition, it should be understood that the present application takes the switching between the first mode and the second mode in an electronic device as an example to exemplify the mode switching method provided in the present application, and the present application does not limit the number of modes of the electronic device.
[0060] The following takes the case where the electronic device has a first mode and a second mode, and the electronic device is currently in the first mode as an example, and describes the technical solution of the present application in detail in combination with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0061] It should be understood that the present application does not limit the specific content of the corresponding first mode and the second mode. Exemplarily, the first mode or the second mode may be, for example, a security mode, a privacy mode, a youth mode, an entertainment mode, or a common mode. In some embodiments, the first mode or the second mode may be pre-developed by the user and stored in the electronic device, or may be a mode established by a user using the electronic device through customization.
[0062] Figure 2 A schematic diagram of a mode switching method provided in this application. Figure 2 As shown, the method may include the following steps:
[0063] S101: Obtain a value of at least one target parameter of an electronic device.
[0064] The at least one target parameter is related to the mode switching condition. Exemplarily, the target parameter may include at least one of the following:
[0065] The identification of the area where the electronic device is located, the current time of the electronic device, the identification of the network to which the electronic device is connected, the identification of the device connected to the electronic device by Bluetooth, the first detection result used to characterize whether the electronic device has detected the target field, the second detection result used to characterize whether the electronic device has detected the target user behavior, etc.
[0066] Taking the above target parameter as an identification of the area where the electronic device is located as an example, the electronic device can obtain the location information of the electronic device, and then determine the identification of the area where the electronic device is located according to the location information.
[0067] Taking the above target parameter as the first detection result for characterizing whether the electronic device detects the target field as an example, the present application does not limit how the electronic device detects the target field. Exemplarily, the electronic device can detect the target field through near field communication (NFC).
[0068] Taking the above target parameter as the second detection result for characterizing whether the electronic device detects the target user behavior as an example, this application does not limit how the electronic device detects the target user behavior. Exemplarily, the target user behavior can be, for example, a combination of physical buttons set on the electronic device, a pressing action at a target position of a pressure-sensitive screen, a target shaking trajectory of the electronic device, a screen-off gesture for the electronic device, a target voice keyword, etc.
[0069] S102: Determine a target mode of the electronic device according to a value of at least one target parameter.
[0070] The target mode may be the first mode or the second mode.
[0071] Taking the example of an electronic device determining a target mode of the electronic device according to a value of a target parameter, the electronic device may pre-store a mapping relationship between the value of the target parameter and the identifier of the mode. After obtaining the value of the target parameter, the electronic device may determine the identifier of the mode corresponding to the value of the target parameter according to the value of the target parameter and the mapping relationship between the value of the target parameter and the identifier of the mode, thereby determining the target mode of the electronic device.
[0072] Taking the example of an electronic device determining a target mode of an electronic device according to the values of multiple target parameters, the electronic device may, for example, first determine multiple initial modes according to the values of the multiple target parameters. Then, the electronic device may use the mode that appears the most times among the above multiple initial modes as the target mode of the electronic device. Alternatively, the electronic device may also perform the following steps S103-S104 after the multiple initial modes determined according to the values of the multiple target parameters are all the same mode to improve the accuracy of mode switching. In this implementation, if the multiple initial modes determined according to the values of the multiple target parameters are not the same mode, the electronic device may, for example, optionally remain in the first mode.
[0073] S103: Determine whether the target mode is the second mode.
[0074] Exemplarily, the electronic device can determine whether the target mode is the second mode by the identifier of the target mode and the identifier of the second mode. Optionally, if the identifier of the target mode is the same as the identifier of the second mode, the electronic device can determine that the target mode is the second mode. If the identifier of the target mode is different from the identifier of the second mode, the electronic device can determine that the target mode is not the second mode.
[0075] If the target mode is determined to be the second mode, the electronic device may execute step S104 to switch from the first mode to the second mode. If the target mode is not the second mode, the electronic device may not perform mode switching, that is, the electronic device may remain in the first mode, for example.
[0076] S104: Switch the electronic device from the first mode to the second mode.
[0077] Optionally, after determining that the target mode is the second mode, the electronic device may load operating data for supporting the electronic device to operate in the second mode, and then use the operating data to switch the electronic device from the first mode to the second mode.
[0078] In this embodiment, through the value of at least one target parameter related to the mode switching condition, the electronic device can automatically determine the target mode of the electronic device. Compared with the existing method that needs to receive the unlock password input by the user to determine the mode of the electronic device, the present application improves the efficiency of determining the mode of the electronic device, thereby improving the efficiency of mode switching. Then, when the target mode is the second mode, the electronic device can be switched from the first mode to the second mode. Through the above method, the electronic device does not require user operation in the process of switching from the first mode to the second mode, thereby avoiding the problem caused by the user's inaccurate memory of the unlock password or the same unlock password for different modes, and achieving the effect of improving the accuracy of mode switching.
[0079] As a possible implementation, before switching the electronic device from the first mode to the second mode, the electronic device may also determine whether the electronic device is in a target state, and perform mode switching when it is determined that the electronic device is in the target state, so as to improve the efficiency of mode switching. The target state is a state that allows the electronic device to perform mode switching.
[0080] Optionally, the target state may be, for example, a standby state. Optionally, the standby state may, for example, mean that the electronic device is not running any application and is in a locked screen state. By switching the mode of the electronic device when the electronic device is in the standby state, it is avoided that the user's use of the electronic device is affected, and the user's misoperation of the mode switching process is avoided, thereby improving the user experience and the accuracy of the mode switching. Alternatively, the target state may also be other preset states, etc. Exemplarily, the preset state may, for example, be within a preset time period (e.g., 2 a.m. to 3 a.m.).
[0081] It should be understood that the present application does not limit how the electronic device determines whether the electronic device is in the target state. For example, taking the above-mentioned target state as the standby state as an example, the electronic device can determine that the electronic device is in the target state when the electronic device is in the locked screen state and no application is running.
[0082] If it is determined that the electronic device is in the target state, indicating that the electronic device is allowed to switch modes, the electronic device can load target operation data for supporting the electronic device to run the second mode, and then use the target operation data to switch the electronic device from the first mode to the second mode.
[0083] It should be understood that the present application does not limit how the electronic device loads the above-mentioned target operation data. Exemplarily, the above-mentioned target operation data may be pre-stored in the electronic device. In this implementation, the electronic device may read the above-mentioned target operation data from the data stored in itself to load the target operation data. Alternatively, the above-mentioned target operation data may also be stored in other servers or databases. In this implementation, the electronic device may obtain the target operation data from the server or database storing the target operation data to load the target operation data.
[0084] If it is determined that the electronic device is not in the target state, the electronic device may, for example, optionally output a first prompt message for prompting the user to trigger an operation to switch the electronic device from the first mode to the second mode. By outputting the first prompt message, the user can know that the mode switch can be performed, thereby improving the user experience. For example, taking the electronic device provided with a display device as an example, the electronic device may, for example, output the first prompt message through the display device.
[0085] In this implementation, optionally, after the electronic device outputs the above-mentioned first prompt information, the electronic device may also switch the electronic device from the first mode to the second mode in response to an operation triggered by the user to switch the electronic device from the first mode to the second mode. Alternatively, the electronic device may also respond to an operation triggered by the user not to switch the electronic device from the first mode to the second mode, and optionally, the electronic device may keep the electronic device in the first mode.
[0086] Still taking the electronic device as a mobile phone or a tablet computer as an example, for example, Figure 3 This is a schematic diagram of an interface display of an electronic device provided by this application. Figure 3 As shown, when it is determined that the electronic device is not in the target state, the electronic device can display an interface including the first prompt information. It should be understood that the present application does not limit the specific content of the first prompt information. Figure 3 In addition, in the interface displaying the first prompt information, the electronic device may also display a first control (such as Figure 3 ), a second control for indicating that the electronic device is not switched from the first mode to the second mode (such as Figure 3 )
[0087] The user can trigger the operation of switching the electronic device from the first mode to the second mode by clicking the first control, and the electronic device can respond to the operation and switch the electronic device from the first mode to the second mode. The user can trigger the operation of not switching the electronic device from the first mode to the second mode by clicking the second control, and the electronic device remains in the first mode.
[0088] In this embodiment, before the electronic device switches from the first mode to the second mode, it also determines whether the electronic device is in the target state, and performs mode switching when it is determined that the electronic device is in the target state, thereby improving the efficiency of mode switching and avoiding interference with the user's use of the electronic device, further improving the user experience.
[0089] As a possible implementation, after the electronic device is switched from the first mode to the second mode, in some embodiments, the electronic device can directly display the interface corresponding to the second mode in response to a user-triggered request to wake up the electronic device. It should be understood that the present application does not limit the method for waking up the electronic device.
[0090] In some embodiments, the electronic device may also display the interface corresponding to the second mode after receiving the unlock password input by the user. In the mode switching method provided in this embodiment, the unlock password corresponding to the first mode and the unlock password corresponding to the second mode may be the same or different, thereby improving the flexibility of mode switching.
[0091] Taking the first unlock password corresponding to the first mode as the same as the first unlock password corresponding to the second mode as an example, the electronic device can display the interface corresponding to the second mode in response to the operation of the first unlock password input by the user. The first unlock password is the password required for the electronic device to enter the first mode and the second mode. That is to say, in this embodiment, through the automatic mode switching of the electronic device, different modes can correspond to the same unlock password, so that the user does not need to remember the passwords corresponding to different modes, which improves the accuracy of the mode switching of the electronic device and further improves the user experience.
[0092] Taking the second unlock password corresponding to the first mode as an example and the second unlock password corresponding to the second mode as an example, after the electronic device is switched from the first mode to the second mode, the electronic device can respond to the user inputting the second unlock password corresponding to the target mode and display the interface corresponding to the target mode. Through the above method, the electronic device can not only perform automatic mode switching, but also determine the interface corresponding to the target mode to be displayed according to the user operation, thereby improving the flexibility of the electronic device.
[0093] In this implementation, illustratively, the electronic device, for example, first receives the operation of the first unlock password input by the user and displays the interface corresponding to the second mode. Then, the electronic device can display the mode switching interface in response to the mode switching request initiated by the user when in the second mode. Through the mode switching interface, the electronic device can receive the second unlock password corresponding to the target mode input by the user. Then, the electronic device can display the interface corresponding to the target mode in response to the operation of the second unlock password corresponding to the target mode input by the user.
[0094] As a possible implementation, the electronic device may also receive a "mapping relationship between each value of the target parameter and the identifier of the mode" input by the user for determining the target mode of the electronic device. By receiving the above mapping relationship input by the user and determining the target mode of the electronic device based on the mapping relationship, the electronic device can receive the above mapping relationship customized by the user, thereby improving the accuracy of determining the target mode based on the mapping relationship.
[0095] Optionally, the electronic device may, for example, display a mode switching function setting interface in response to a mode switching function setting request triggered by a user. For any of the at least one target parameter, the electronic device may receive a mapping relationship between each value of the target parameter and the mode identifier input by the user through the mode switching function setting interface.
[0096] For example, still taking the electronic device as a mobile phone or a tablet computer as an example, Figure 4 This is a schematic diagram of an interface display of another electronic device provided by this application. Figure 4 As shown, the setting interface of the electronic device may display a variety of function setting options including mode switching function setting. The user may trigger a mode switching function setting request by clicking on the mode switching function setting option. In response to the request, the electronic device may display the mode switching function setting interface.
[0097] For example, the target parameter is the identifier of the network to which the electronic device is connected. Figure 4 As shown, in the mode switching function setting interface, multiple mode identifiers and input boxes corresponding to the identifiers of each mode can be displayed. For any mode, the electronic device can receive the identifier of the network connected to the electronic device corresponding to the mode input by the user through the input box corresponding to the mode. Then, the electronic device can generate a mapping relationship between each value of the above-mentioned target parameter and the identifier of the mode according to the identifier of the network connected to the electronic device corresponding to each mode input by the user.
[0098] In this implementation, optionally, the aforementioned step S102 may include, for example: determining the target mode of the electronic device according to the value of at least one target parameter and the mapping relationship between each value of at least one target parameter and the identifier of the mode.
[0099] Exemplarily, for any target parameter, the mapping relationship between each value of the target parameter and the identifier of the mode may be as shown in the following Table 1, for example:
[0100] Table 1
[0101] The values of the target parameters Identification of the mode Value 1 Logo 1 Value 2 Logo 1 Value 3 Logo 2 … …
[0102] If the electronic device determines that the value of the target parameter is value 1, according to the mapping relationship shown in Table 1, it can be determined that the identifier of the target mode is identifier 1.
[0103] For example, the electronic device is a terminal (such as a mobile phone), and the target parameter is an identifier of the area where the electronic device is located. Figure 5 This is a flow chart of another mode switching method provided by this application. Figure 5 As shown, the electronic device can first create parameters and modes, that is, create a mapping relationship between the values of the above-mentioned target parameters and the identifiers of the modes. The user can set the target geo-fence through the function setting interface of the electronic device. For example, the user can circle one or more closed areas on the map displayed by the electronic device as the target geo-fence. Then set the target mode corresponding to each target geo-fence, that is, as shown in FIG. Figure 5 The electronic device can write the above mapping relationship between the area and the mode into the configuration information of the electronic device.
[0104] During the mode switching stage, the terminal can read the mapping relationship between the area and the mode in the configuration information, and compare the terminal's geographical location with the mapping relationship between the area and the mode according to the change in geographical location to determine whether the terminal has entered the set area. If so, it is further determined whether the terminal meets the mode switching conditions, that is, whether the terminal is in the aforementioned target state. If the terminal meets the mode switching conditions, the terminal is switched to the mode corresponding to the area. If the terminal does not meet the mode switching conditions, it can wait for the next time the conditions are met, or output a prompt message prompting the user to manually confirm the mode switch. (It should be understood that Figure 5-Figure 10 Y in the table means "yes" and N means "no"
[0105] When the mode is used, the terminal can receive the unlock password, fingerprint, or face input by the user, directly enter the switched mode, and then the user can use the terminal (such as a mobile phone) normally. Optionally, the terminal can also receive the user's manual operation control to exit the current mode. In some embodiments, when the terminal cannot obtain the geographic location, the terminal may not switch modes and maintain the current mode.
[0106] Take the electronic device as a terminal (such as a mobile phone) and the target parameter as the current moment of the electronic device as an example. Figure 6 A flow chart of another mode switching method provided by the present application is shown in FIG. Figure 6 As shown, the electronic device can first create parameters and modes, that is, create a mapping relationship between the values of the above target parameters and the identifiers of the modes. The user can create time intervals through the function setting interface of setting the time range. Then the user can set the target mode corresponding to each time interval, that is, Figure 6 The mapping relationship between time and mode is shown in .
[0107] In the mode switching stage, the terminal can determine whether the terminal meets the mode switching condition when the timer of the current mode times out, that is, determine whether the terminal is in the aforementioned target state. If the terminal meets the mode switching condition, the terminal is switched to the mode corresponding to the area. If the terminal does not meet the mode switching condition, it can wait for the next time the condition is met, or output a prompt message prompting the user to manually confirm the mode switch.
[0108] When the mode is used, the terminal execution steps can refer to the above-mentioned embodiment and will not be repeated here.
[0109] For example, the electronic device is a terminal (such as a mobile phone), and the target parameter is the identifier of the network to which the electronic device is connected. Figure 7 A flow chart of another mode switching method provided by the present application is shown in FIG. Figure 7 As shown, the electronic device can first create parameters and modes, that is, create a mapping relationship between the values of the above-mentioned target parameters and the identifiers of the modes. The user can set the target wireless network identifier through the function setting interface of the electronic device to set the wireless network associated with each mode and write it into the configuration information of the electronic device.
[0110] In the mode switching stage, the terminal can read the mapping relationship between the wireless network identifier and the mode in the configuration information, and compare it with the mapping relationship between the wireless network identifier and the mode according to the identifier of the wireless network connected to the terminal. Figure 7After that, the terminal determines whether the currently connected network is stable. If it is stable, it determines whether the terminal meets the mode switching condition, that is, determines whether the terminal is in the aforementioned target state. If the terminal meets the mode switching condition, the terminal is switched to the mode corresponding to the wireless network identifier. If the terminal does not meet the mode switching condition, it can wait for the next time the condition is met, or output a prompt message prompting the user to manually confirm the mode switch.
[0111] When the mode is used, the terminal execution steps can refer to the above-mentioned embodiment and will not be repeated here.
[0112] For example, an electronic device is a terminal (such as a mobile phone), and the target parameter is an identifier of a device connected to the electronic device by Bluetooth. Figure 8 A flow chart of another mode switching method provided by the present application is shown in FIG. Figure 8 As shown, the electronic device can first create parameters and modes, that is, create a mapping relationship between each value of the above-mentioned target parameter and the identifier of the mode. The user can set the Bluetooth identifier of the target device through the function setting interface of the electronic device. Then set the identifier of the Bluetooth device associated with each mode, that is, the mapping relationship between the identifier of the Bluetooth device and the mode. The electronic device can write the mapping relationship between the identifier of the above-mentioned Bluetooth device and the mode into the configuration information of the electronic device.
[0113] In the mode switching stage, the terminal can read the mapping relationship between the identification of the Bluetooth device and the mode in the configuration information, and compare the identification of the wireless network connected to the terminal with the mapping relationship between the identification of the Bluetooth device and the mode according to the identification of the wireless network connected to the terminal, and determine whether the identification of the Bluetooth device connected to the terminal is in the mapping relationship (that is, Figure 8 After that, the terminal determines whether the currently connected Bluetooth device is stable. If it is stable, it determines whether the terminal meets the mode switching condition, that is, determines whether the terminal is in the aforementioned target state. If the terminal meets the mode switching condition, the terminal is switched to the mode corresponding to the identifier of the Bluetooth device. If the terminal does not meet the mode switching condition, it can wait until the next time the condition is met, or output a prompt message prompting the user to manually confirm the mode switch.
[0114] When the mode is used, the terminal execution steps can refer to the above-mentioned embodiment and will not be repeated here.
[0115] Taking the electronic device as a terminal (such as a mobile phone), and the target parameter as a first detection result used to characterize whether the electronic device detects the target field as an example, Fig. 9 A flow chart of another mode switching method provided by the present application is shown in FIG. Fig. 9As shown, the electronic device can first create parameters and modes, that is, create a mapping relationship between each value of the above-mentioned target parameter and the identifier of the mode. The user can set the target field through the function setting interface of the electronic device, and then set the NFC tag (or NFC field) associated with each mode, that is, the mapping relationship between the NFC tag and the mode. The electronic device can write the mapping relationship between the NFC tag and the mode into the NFC tag storage module of the electronic device.
[0116] In the mode switching stage, the terminal can read the mapping relationship between the NFC tag and the mode in the NFC tag storage module. When the terminal (such as a mobile phone) is close to the NFC tag, the mobile phone can read the information of the NFC tag. According to the mapping relationship between the NFC tag and the mode, it is determined whether the information of the NFC tag read by the mobile phone is the preset switching situation. If so, it is determined whether the terminal meets the mode switching condition, that is, whether the terminal is in the aforementioned target state. If the terminal meets the mode switching condition, the terminal is switched to the mode corresponding to the information of the NFC tag. If the terminal does not meet the mode switching condition, it can wait for the next time the condition is met, or output a prompt message prompting the user to manually confirm the mode switch.
[0117] When the mode is used, the terminal execution steps can refer to the above-mentioned embodiment and will not be repeated here.
[0118] Taking the electronic device as a terminal (such as a mobile phone), and the target parameter as a second detection result used to characterize whether the electronic device detects the target user behavior as an example, Fig.10 A flow chart of another mode switching method provided by the present application is shown in FIG. Fig.10 As shown, the electronic device can first create parameters and modes, that is, create a mapping relationship between each value of the above target parameter and the identifier of the mode. The user can set the user behavior through the function setting interface of the electronic device to set the user behavior action that triggers the switching, that is, the mapping relationship between the user behavior and the mode.
[0119] In the mode switching stage, after detecting a specific user behavior through the system detection function, the terminal can determine whether the terminal meets the mode switching condition, that is, determine whether the terminal is in the aforementioned target state. If the terminal meets the mode switching condition, the terminal is switched to the mode corresponding to the user behavior. If the terminal does not meet the mode switching condition, a prompt message can be output to prompt the user to manually confirm the mode switch.
[0120] When the mode is used, the terminal execution steps can refer to the above-mentioned embodiment and will not be repeated here.
[0121] Fig.11This is a schematic diagram of the structure of a mode switching device provided by the present application. The device is applied to the aforementioned electronic device. The electronic device has a first mode and a second mode, and the electronic device is currently in the first mode. Fig.11 As shown, the device includes: an acquisition module 21, and a processing module 22. Among them,
[0122] The acquisition module 21 is used to acquire a value of at least one target parameter of the electronic device, wherein the at least one target parameter is related to a mode switching condition.
[0123] The processing module 22 is used to determine the target mode of the electronic device according to the value of the at least one target parameter and the mapping relationship between each value of the at least one target parameter and the identifier of the mode; when the target mode is the second mode, switch the electronic device from the first mode to the second mode. The target mode is the first mode or the second mode.
[0124] Optionally, the processing module 22 is further used to determine whether the electronic device is in a target state before switching the electronic device from the first mode to the second mode; when it is determined that the electronic device is in the target state, load target operation data, and use the target operation data to switch the electronic device from the first mode to the second mode. The target state is a state that allows the electronic device to switch modes; the target operation data is used to support the electronic device to operate in the second mode.
[0125] Optionally, the target state is a standby state.
[0126] Optionally, the device may further include an output module 23, configured to output first prompt information when it is determined that the electronic device is not in the target state, wherein the first prompt information is used to prompt the user to trigger an operation of switching the electronic device from the first mode to the second mode.
[0127] Optionally, the processing module 22 is further configured to, in response to an operation triggered by the user to switch the electronic device from the first mode to the second mode, switch the electronic device from the first mode to the second mode. Alternatively, the processing module 22 is further configured to, in response to an operation triggered by the user not to switch the electronic device from the first mode to the second mode, keep the electronic device in the first mode.
[0128] Optionally, the processing module 22 is further configured to display an interface corresponding to the second mode in response to a user inputting a first unlock password after the electronic device is switched from the first mode to the second mode. The first unlock password is a password required for the electronic device to enter the first mode and the second mode; the first unlock passwords corresponding to the first mode and the second mode are the same.
[0129] Optionally, the processing module 22 is further configured to, after switching the electronic device from the first mode to the second mode, display an interface corresponding to the target mode in response to a user inputting a second unlock password corresponding to the target mode, wherein the second unlock password corresponding to the first mode is different from the second unlock password corresponding to the second mode.
[0130] Optionally, the device may further include a display module 24, which is used to display a mode switching function setting interface in response to a mode switching function setting request triggered by a user. In this implementation, the acquisition module 21 may also be used to receive, for any target parameter of the at least one target parameter, a mapping relationship between each value of the target parameter input by the user and the identification of the mode through the mode switching function setting interface. In this implementation, optionally, the processing module 22 is also used to determine the target mode of the electronic device based on the value of the at least one target parameter and the mapping relationship between each value of the at least one target parameter and the identification of the mode.
[0131] The mode switching device provided in the present application is used to execute the aforementioned mode switching method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0132] Fig.12 This is a schematic diagram of the structure of an electronic device provided in this application. Fig.12 As shown, the electronic device 300 may include: at least one processor 301 and a memory 302 .
[0133] The memory 302 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions.
[0134] The memory 302 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0135] The processor 301 is used to execute the computer-executable instructions stored in the memory 302 to implement the mode switching method described in the above method embodiment. The processor 301 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0136] Optionally, the electronic device 300 may further include a communication interface 303. In a specific implementation, if the communication interface 303, the memory 302 and the processor 301 are implemented independently, the communication interface 303, the memory 302 and the processor 301 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0137] Optionally, in a specific implementation, if the communication interface 303, the memory 302 and the processor 301 are integrated on a chip, the communication interface 303, the memory 302 and the processor 301 can complete communication through an internal interface.
[0138] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used for the methods in the above embodiments.
[0139] The present application also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of the electronic device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the electronic device implements the mode switching method provided by the various embodiments described above.
[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A mode switching method, characterized in that: The method is applied to an electronic device, the electronic device has a first mode and a second mode, a first data storage space used by the electronic device to store data in the first mode is independent of a second data storage space used by the electronic device to store data in the second mode, and the electronic device is currently in the first mode, the method comprising: Acquire a value of at least one target parameter of the electronic device; the at least one target parameter is related to a mode switching condition; Determining a target mode of the electronic device according to a value of the at least one target parameter and a mapping relationship between each value of the at least one target parameter and an identifier of a mode; the target mode is a first mode or a second mode; If the target mode is the second mode, switching the electronic device from the first mode to the second mode; The method further comprises: In response to a mode switching function setting request triggered by a user, displaying a mode switching function setting interface; For any target parameter of the at least one target parameter, a mapping relationship between each value of the target parameter and the mode identifier input by the user is received through the mode switching function setting interface.
2. The method according to claim 1, characterized in that Before switching the electronic device from the first mode to the second mode, the method further includes: Determining whether the electronic device is in a target state; the target state is a state that allows the electronic device to switch modes; If it is determined that the electronic device is in the target state, then loading target operation data, where the target operation data is used to support the electronic device to operate in the second mode; The electronic device is switched from the first mode to the second mode using the target operation data.
3. The method according to claim 2, characterized in that The target state is a standby state.
4. The method according to claim 2 or 3, characterized in that: If it is determined that the electronic device is not in the target state, the method further includes: Outputting first prompt information; the first prompt information is used to prompt the user to trigger an operation of switching the electronic device from the first mode to the second mode.
5. The method according to claim 4, characterized in that The method further comprises: In response to an operation triggered by the user to switch the electronic device from the first mode to the second mode, switching the electronic device from the first mode to the second mode; or, In response to the user-triggered operation of not switching the electronic device from the first mode to the second mode, the electronic device is maintained in the first mode.
6. The method according to any one of claims 1 to 3, characterized in that: After switching the electronic device from the first mode to the second mode, the method further includes: In response to the user inputting the first unlock password, the interface corresponding to the second mode is displayed; the first unlock password is the password required for the electronic device to enter the first mode and the second mode; the first unlock passwords corresponding to the first mode and the second mode are the same.
7. The method according to any one of claims 1 to 3, characterized in that: After switching the electronic device from the first mode to the second mode, the method further includes: In response to a user inputting an operation of inputting a second unlocking password corresponding to the target mode, an interface corresponding to the target mode is displayed; the second unlocking password corresponding to the first mode is different from the second unlocking password corresponding to the second mode.
8. A mode switching device, characterized in that: The device is applied to an electronic device, the electronic device has a first mode and a second mode, a first data storage space used by the electronic device to store data in the first mode is independent of a second data storage space used by the electronic device to store data in the second mode, and the electronic device is currently in the first mode, and the device includes: An acquisition module, used to acquire a value of at least one target parameter of the electronic device; the at least one target parameter is related to a mode switching condition; a processing module, configured to determine a target mode of the electronic device according to a value of the at least one target parameter and a mapping relationship between each value of the at least one target parameter and an identifier of a mode; and when the target mode is the second mode, switch the electronic device from the first mode to the second mode; the target mode is the first mode or the second mode; The device further comprises a display module, configured to display a mode switching function setting interface in response to a mode switching function setting request triggered by a user; The acquisition module is further used to receive, for any target parameter among the at least one target parameter, a mapping relationship between each value of the target parameter and a mode identifier input by the user through the mode switching function setting interface.
9. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method described in any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Information processing method and first electronic equipment
CN103970399A
Terminal, and method and device for processing multiple users of terminal
CN104573541A