Disclosure of Invention
The invention mainly solves the technical problem of providing a mobile terminal and an operating system switching method thereof, which can reduce the resource consumption of the terminal and improve the operating system switching efficiency.
In order to solve the technical problems, the invention adopts a technical scheme that: a method for switching an operating system of a mobile terminal is provided, and the method comprises the following steps: acquiring identity information of a user; judging whether the identity information is matched with a current operating system of the mobile terminal; and when the identity information is not matched with the current operating system of the mobile terminal, switching the operating system of the mobile terminal to the operating system matched with the identity information.
Before obtaining the identity information of the user, the method further comprises the following steps: receiving and storing pre-recorded identity information; receiving and storing the preset corresponding relation between the identity information and the mobile terminal operating system; the corresponding relation is used for judging whether the identity information is matched with the current operating system of the mobile terminal.
Wherein, judge whether identity information and mobile terminal's current operating system match, include: judging whether the similarity between the identity information and one of the pre-input identity information meets a preset condition or not; when the similarity between the identity information and one of the pre-input identity information meets a preset condition, reading an operating system corresponding to the identity information in a preset corresponding relationship; and judging whether the operating system corresponding to the identity information is consistent with the current operating system of the mobile terminal, if not, mismatching the identity information with the current operating system of the mobile terminal.
Before obtaining the identity information of the user, the method further comprises the following steps: and receiving a user instruction to start an operating system switching function.
When the identity information is not matched with the current operating system of the mobile terminal, the operating system of the mobile terminal is switched to the operating system matched with the identity information, and the method specifically comprises the following steps: when the identity information is not matched with the current operating system of the mobile terminal, the process and the operating system parameters of the current operating system of the mobile terminal are saved, and the operating system of the mobile terminal is switched to the operating system matched with the identity information.
Wherein, the identity information is fingerprint information.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a mobile terminal including: the acquisition module is used for acquiring the identity information of the user; the judging module is used for judging whether the identity information is matched with the current operating system of the mobile terminal; and the switching module is used for switching the operating system of the mobile terminal to the operating system matched with the identity information when the identity information is not matched with the current operating system of the mobile terminal.
Wherein, still include: the receiving module is used for receiving pre-input identity information; receiving the preset corresponding relation between the identity information and the mobile terminal operating system; the storage module is used for storing the pre-input identity information; and storing the corresponding relation between the preset identity information and the mobile terminal operating system; the corresponding relation is used for judging whether the identity information is matched with the current operating system of the mobile terminal.
Wherein, the judging module is specifically used for: judging whether the similarity between the identity information and one of the pre-input identity information meets a preset condition or not; when the similarity between the identity information and one of the pre-input identity information meets a preset condition, reading an operating system corresponding to the identity information in a preset corresponding relationship; and judging whether the operating system corresponding to the identity information is consistent with the current operating system of the mobile terminal, if not, mismatching the identity information with the current operating system of the mobile terminal.
The function starting module is used for receiving a user instruction to start the switching function of the operating system.
The invention has the beneficial effects that: different from the prior art, the method for switching the operating system of the mobile terminal comprises the following steps: acquiring identity information of a user; judging whether the identity information is matched with a current operating system of the mobile terminal; and when the identity information is not matched with the current operating system of the mobile terminal, switching the operating system of the mobile terminal to the operating system matched with the identity information. Through the mode, the complicated procedures of the switching of the operating system in the prior art can be avoided, on one hand, the resource consumption of the terminal can be reduced, and on the other hand, the switching efficiency of the operating system can be improved.
Detailed Description
Referring to fig. 1, a flowchart of a first embodiment of a method for switching an operating system of a mobile terminal according to the present invention is shown, where the method includes:
s11: and acquiring the identity information of the user.
Optionally, the identity information may be password information such as a digital password and a gesture password input by the user, or may also be identity information such as a facial feature, a pupil, voice, and a fingerprint that embody the identity of the user.
The method for acquiring the identity information of the user can be different according to different identity information. For example, if the identity information is password information, the identity information can be obtained by accepting a password input by a user or a gesture touched on a touch screen; if the identity information is facial features or pupil features, the identity information can be obtained by shooting through a camera; if the identity information is voice information, the identity information can be acquired through a microphone; if the identity information is a fingerprint, the identity information can be acquired through a special fingerprint sensor.
S12: and judging whether the identity information is matched with the current operating system of the mobile terminal.
Optionally, whether the identity information is matched with the current operating system of the mobile terminal may be determined according to a preset correspondence between the identity information and the operating system. Of course, the correspondence relationship between the identity information and the operating system may not be one-to-one, that is, one operating system may correspond to a plurality of identity information, so that a plurality of users can use the same operating system.
Specifically, in an embodiment, the identity information corresponding to the current operating system of the mobile terminal may be determined first, and then it may be determined whether the acquired identity information matches with the identity information corresponding to the current operating system. Here, whether the two identity information are matched or not is judged, and whether the two identity information are the same or similar or not can be judged; if the identity information is a password, the two identity information must be the same to be matched; if the identity information is facial features, voice or fingerprints, the two identity information can be considered to be matched only when the similarity of the two identity information needs to be judged to reach a certain value.
S13: and when the identity information is not matched with the current operating system of the mobile terminal, switching the operating system of the mobile terminal to the operating system matched with the identity information.
Generally, the mobile terminal is restarted after being shut down to switch the operating system, and the operating system to be entered is selected again, and the specific implementation process is the prior art and is not described herein again.
Different from the prior art, the method for switching the operating system of the mobile terminal in the embodiment includes: acquiring identity information of a user; judging whether the identity information is matched with a current operating system of the mobile terminal; and when the identity information is not matched with the current operating system of the mobile terminal, switching the operating system of the mobile terminal to the operating system matched with the identity information. Through the mode, the complicated procedures of the switching of the operating system in the prior art can be avoided, on one hand, the resource consumption of the terminal can be reduced, and on the other hand, the switching efficiency of the operating system can be improved.
Referring to fig. 2, a flowchart of a second embodiment of the method for switching the operating system of the mobile terminal according to the present invention includes:
s21: and receiving and storing the pre-recorded identity information.
S22: and receiving and storing the preset corresponding relation between the identity information and the mobile terminal operating system.
The corresponding relation is used for judging whether the identity information is matched with the current operating system of the mobile terminal.
Optionally, the received pre-entered identity information and the preset correspondence between the identity information and the mobile terminal operating system may be received by obtaining an instruction of the user, or may be received by receiving the identity information and the correspondence between the identity information and the mobile terminal operating system sent by other devices.
Optionally, S21 and S22 may be executed simultaneously, that is, the terminal receives the corresponding relationship between the identity information and the operating system of the mobile terminal while receiving the identity information, and then stores the received identity information and the corresponding relationship between the identity information and the operating system of the mobile terminal.
S23: and receiving a user instruction to start an operating system switching function.
Alternatively, the operating system switching function may be turned on by a mechanical key on the mobile terminal, for example, a mechanical key may be added to the side of the mobile phone, and when an instruction that the user touches the mechanical key is received, the operating system switching function is turned on, and then S24 is performed. Of course, other ways of turning on may be used, such as voice activated turning on or shaking, flipping the mobile terminal.
S24: and acquiring the identity information of the user.
S25: and judging whether the similarity between the identity information and one of the pre-input identity information meets a preset condition or not. If yes, proceed to S26, otherwise, go back to S23.
Since identity information of fingerprints, sounds, facial features, etc. may not be identical every time, the similarity here may be set according to general requirements, for example 80%. For the specific comparison of identity information, reference may be made to the prior art, which is not described herein again.
S26: and when the similarity between the identity information and one of the pre-input identity information meets a preset condition, reading the operating system corresponding to the identity information in the preset corresponding relationship.
S27: and judging whether the operating system corresponding to the identity information is consistent with the current operating system of the mobile terminal. If not, the process proceeds to S28, and if so, the process proceeds to S29.
If the operating system corresponding to the identity information is inconsistent with the current operating system of the mobile terminal, it can be determined that the identity information is not matched with the current operating system of the mobile terminal.
S28: when the identity information is not matched with the current operating system of the mobile terminal, the process and the operating system parameters of the current operating system of the mobile terminal are saved, and the operating system of the mobile terminal is switched to the operating system matched with the identity information.
Optionally, in an embodiment, when the identity information is not matched with the current operating system of the mobile terminal, a dialog box may pop up on the display interface, so that the user can select whether to perform system switching, so as to prevent a misoperation of the user.
S29: the existing operating system is maintained.
The following describes embodiments of the present invention in detail by taking an example of switching an operating system of a mobile phone by using fingerprint information:
the user inputs fingerprints of two fingers, namely a fingerprint A and a fingerprint B, in advance through a fingerprint sensor of the mobile phone, and establishes a corresponding relation between the two fingerprints and an operating system: the fingerprint A corresponds to an Android system, and the fingerprint B corresponds to a Win10Mobile system.
When a user wants to switch to the Win10Mobile system while using the Android system, the fingerprint sensor is touched with a finger having a fingerprint C.
The Mobile phone compares the fingerprint C with a fingerprint A and a fingerprint B which are input in advance, the similarity between the fingerprint C and the fingerprint B meets the preset requirement, then an operating system corresponding to the fingerprint B is read to be a Win10Mobile system, and then the current operating system Android system is determined to be inconsistent with the Win10Mobile system.
The display of the Mobile phone displays a dialog box "do you switch to the Win10Mobile system? After a positive instruction of a user is obtained, the process of the Android system and the operating system parameters of the Mobile phone are saved, the Mobile phone is restarted, and the Mobile phone enters a Win10Mobile system.
Referring to fig. 3, a schematic structural diagram of a first embodiment of the mobile terminal of the present invention includes an obtainingmodule 31, a determiningmodule 32, and aswitching module 33.
The obtainingmodule 31 is configured to obtain identity information of a user.
And the judgingmodule 32 is configured to judge whether the identity information matches with the current operating system of the mobile terminal.
And aswitching module 33, configured to switch the operating system of the mobile terminal to the operating system matched with the identity information when the identity information does not match with the current operating system of the mobile terminal.
The embodiment is mainly based on the mobile terminal of S11-S13, and the specific implementation process is similar and will not be described herein again.
Referring to fig. 4, a schematic structural diagram of a second embodiment of the mobile terminal according to the present invention includes a receivingmodule 41, a storingmodule 42, afunction starting module 43, an obtainingmodule 44, a determiningmodule 45, and aswitching module 46.
A receivingmodule 41, configured to receive pre-entered identity information; and receiving the preset corresponding relation between the identity information and the mobile terminal operating system.
Thestorage module 42 is used for storing the pre-entered identity information; and storing the preset corresponding relation between the identity information and the mobile terminal operating system. The corresponding relation is used for judging whether the identity information is matched with the current operating system of the mobile terminal.
And afunction starting module 43, configured to receive a user instruction to start an operating system switching function.
And an obtainingmodule 44, configured to obtain identity information of the user.
The judgingmodule 45 is configured to: judging whether the similarity between the identity information and one of the pre-input identity information meets a preset condition or not; when the similarity between the identity information and one of the pre-input identity information meets a preset condition, reading the operating system corresponding to the identity information in a preset corresponding relationship; and judging whether the operating system corresponding to the identity information is consistent with the current operating system of the mobile terminal, if not, the identity information is not matched with the current operating system of the mobile terminal.
And aswitching module 46, configured to switch the operating system of the mobile terminal to the operating system matched with the identity information after thestorage module 42 stores the process and the operating system parameters of the current operating system of the mobile terminal when the identity information does not match the current operating system of the mobile terminal.
Referring to fig. 5, a schematic structural diagram of an embodiment of a mobile device according to the present invention includes areceiver 51, aprocessor 52 and amemory 53.
Optionally, thereceiver 51, theprocessor 52 and thememory 53 are connected by a bus.
Thememory 53 is used for storing system files, application software, and corresponding relationships between identity information, and operating system.
Thereceiver 51 is configured to receive identity information entered by a user, and receive a corresponding relationship between the identity information and an operating system.
Optionally, if the identity information is fingerprint information, thereceiver 51 may be a fingerprint sensor; if the identity information is a facial feature of the user, thereceiver 51 may be a camera; if the identity information is voice information of the user, thereceiver 51 may be a microphone.
Theprocessor 52 is specifically configured to perform the following steps:
acquiring identity information of a user; judging whether the identity information is matched with a current operating system of the mobile terminal; and when the identity information is not matched with the current operating system of the mobile terminal, switching the operating system of the mobile terminal to the operating system matched with the identity information.
Optionally, in other embodiments, theprocessor 52 is further configured to: judging whether the similarity between the identity information and one of the pre-input identity information meets a preset condition or not; when the similarity between the identity information and one of the pre-input identity information meets a preset condition, reading an operating system corresponding to the identity information in a preset corresponding relationship; and judging whether the operating system corresponding to the identity information is consistent with the current operating system of the mobile terminal, if not, mismatching the identity information with the current operating system of the mobile terminal.
Optionally, in other embodiments, theprocessor 52 is further configured to: when the identity information is not matched with the current operating system of the mobile terminal, the process and the operating system parameters of the current operating system of the mobile terminal are saved, and the operating system of the mobile terminal is switched to the operating system matched with the identity information.
In the embodiments provided in the present invention, it should be understood that the disclosed method and apparatus can be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units in the other embodiments described above may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.