Disclosure of Invention
The invention aims to solve the technical problems that the unlocking method based on the intelligent terminal, the intelligent terminal and the storage medium are provided for overcoming the defects in the prior art, and aims to solve the problem that the intelligent terminal cannot be unlocked when a user forgets a complete pattern in the prior art.
The technical scheme adopted for solving the technical problems is as follows:
an unlocking method based on an intelligent terminal, which comprises the following steps:
the intelligent terminal starts an unlocking interface with a plurality of endpoints, receives an unlocking track input by a user, and judges whether unlocking is successful or not;
when the unlocking is unsuccessful, receiving pre-stored unlocking information sent by an external memory, and comparing the unlocking information with an unlocking track input by a user;
and when the unlocking track is the same as at least two groups of adjacent endpoints on the unlocking information, the intelligent terminal is successfully unlocked.
Further, the intelligent terminal opens an unlocking interface with a plurality of endpoints, receives an unlocking track input by a user, and judges whether the unlocking is successful or not, which specifically comprises:
the intelligent terminal starts an unlocking interface with a plurality of endpoints and receives an unlocking track input by a user;
and judging whether the unlocking track is correct or not, and if not, unlocking is unsuccessful.
Further, when the unlocking is unsuccessful, receiving the pre-stored unlocking information sent by the external memory, and comparing the unlocking information with the unlocking track input by the user specifically includes:
when unlocking is unsuccessful, the intelligent terminal is externally connected with an external memory;
the intelligent terminal receives prestored unlocking information sent by the external memory;
and the intelligent terminal acquires the unlocking information and compares the endpoint position in the unlocking information with the endpoint position in the unlocking track input by the user.
Further, when the unlocking track is the same as at least two groups of adjacent endpoints on the unlocking information, the successful unlocking of the intelligent terminal specifically includes:
and according to a comparison result of the end point position on the unlocking track and the end point position on the unlocking information, when at least two groups of adjacent end points are the same on the unlocking track and the unlocking information, the intelligent terminal is successfully unlocked.
Further, when the unlocking is unsuccessful, the method further includes the steps of:
when the unlocking track is the same as the unlocking information without adjacent endpoints or with only one group of adjacent endpoints, the intelligent terminal is not successfully unlocked;
and displaying information of unsuccessful unlocking on the intelligent terminal.
The invention also provides an intelligent terminal, which comprises a processor and a memory connected with the processor, wherein the memory stores an unlocking program based on the intelligent terminal, and the unlocking program based on the intelligent terminal realizes the following steps when being executed by the processor:
the intelligent terminal starts an unlocking interface with a plurality of endpoints, receives an unlocking track input by a user, and judges whether unlocking is successful or not;
when the unlocking is unsuccessful, receiving pre-stored unlocking information sent by an external memory, and comparing the unlocking information with an unlocking track input by a user;
when the unlocking track is the same as at least two groups of adjacent endpoints on the unlocking information, the intelligent terminal is successfully unlocked;
and the processor is used for calling the unlocking program instruction based on the intelligent terminal.
Further, when the unlocking program based on the intelligent terminal is executed by the processor, the following steps are further implemented:
the intelligent terminal starts an unlocking interface with a plurality of endpoints and receives an unlocking track input by a user;
and judging whether the unlocking track is correct or not, and if not, unlocking is unsuccessful.
Further, when the unlocking program based on the intelligent terminal is executed by the processor, the following steps are further implemented:
when unlocking is unsuccessful, the intelligent terminal is externally connected with an external memory;
the intelligent terminal receives prestored unlocking information sent by the external memory;
and the intelligent terminal acquires the unlocking information and compares the endpoint position in the unlocking information with the endpoint position in the unlocking track input by the user.
Further, when the unlocking program based on the intelligent terminal is executed by the processor, the following steps are further implemented:
according to the comparison result of the end point position on the unlocking track and the end point position on the unlocking information, when at least two groups of adjacent end points are the same on the unlocking track and the unlocking information, the intelligent terminal is successfully unlocked;
when the unlocking track is the same as the unlocking information without adjacent endpoints or with only one group of adjacent endpoints, the intelligent terminal is not successfully unlocked;
and displaying information of unsuccessful unlocking on the intelligent terminal.
The present invention also provides a storage medium storing a computer program executable for implementing the smart terminal-based unlocking method as described above.
The invention provides an unlocking method based on an intelligent terminal, the intelligent terminal and a storage medium, which comprise the following steps: the intelligent terminal starts an unlocking interface with a plurality of endpoints, receives an unlocking track input by a user, and judges whether unlocking is successful or not; when the unlocking is unsuccessful, receiving pre-stored unlocking information sent by an external memory, and comparing the unlocking information with an unlocking track input by a user; and when the unlocking track is the same as at least two groups of adjacent endpoints on the unlocking information, the intelligent terminal is successfully unlocked. According to the invention, the pre-stored unlocking information is obtained from the external memory and is compared with the unlocking track input by the user, when two groups of adjacent endpoints are identical, the unlocking is performed, the problem that the user forgets part of the unlocking information is solved, the unlocking is assisted by the user, the unlocking is prevented from being performed by improper operation of other people, and the convenience and safety of the unlocking are improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear and clear, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of an unlocking method based on an intelligent terminal in the present invention. As shown in fig. 1, an unlocking method based on an intelligent terminal according to an embodiment of the present invention includes the following steps:
s100, the intelligent terminal starts an unlocking interface with a plurality of endpoints, receives an unlocking track input by a user, and judges whether unlocking is successful or not.
The step S100 specifically includes:
s110, the intelligent terminal starts an unlocking interface with a plurality of endpoints and receives an unlocking track input by a user;
s120, judging whether the unlocking track is correct, and if not, unlocking is unsuccessful.
The invention is directed to an unlocking interface, such as a nine-grid unlocking interface, on an intelligent terminal, which is provided with a plurality of endpoints. When the user performs unlocking, the correct unlocking pattern is input, and the interface is unlocked. When other people obtain the intelligent terminal of the user by using illegal means and open the intelligent terminal, the intelligent terminal cannot be opened because the intelligent terminal is not known to the correct unlocking track, so that the personal privacy and property safety of the user are greatly protected, and the safety of the intelligent terminal is improved. However, when the user forgets the complete unlocking pattern, the input unlocking track is wrong, and at this time, the unlocking is unsuccessful, the intelligent terminal cannot be normally opened, and the method is very inconvenient.
And S200, when the unlocking is unsuccessful, receiving pre-stored unlocking information sent by the external memory, and comparing the unlocking information with an unlocking track input by a user.
The step S200 specifically includes:
s210, when unlocking is unsuccessful, an external memory is externally connected to the intelligent terminal;
s220, the intelligent terminal receives pre-stored unlocking information sent by the external memory;
s230, the intelligent terminal acquires the unlocking information, and compares the endpoint position in the unlocking information with the endpoint position in the unlocking track input by the user.
In the preferred embodiment of the present invention, the correct unlocking information, i.e., the unlocking track preset by the user, is stored in an external memory in advance. And when the unlocking of the user is unsuccessful, connecting the external memory with the intelligent terminal. It can be understood that, after the intelligent terminal is connected to the external memory, the user inputs the unlock track stored in the external memory, and the intelligent terminal cannot unlock, at this time, the intelligent terminal obtains the pre-stored unlock information from the external memory, and compares the endpoint position in the unlock information with the endpoint position in the unlock track input by the user.
It can be understood that the purpose of the invention is to connect an external memory, so that when a user forgets a part of unlocking track, the user can call the complete unlocking information from the external memory to unlock. If the memory of the intelligent terminal is used, on one hand, the CPU of the intelligent terminal is occupied, and on the other hand, the privacy and safety of the user cannot be protected. Because when other people acquire the intelligent terminal of the user by using an improper means, the probability of unlocking is greatly increased, and the external memory is used by the invention, the unlocking is assisted by connecting the intelligent terminal only when the user forgets to unlock the track, and the probability of acquiring the external memory is very small when other people acquire the intelligent terminal of the user, so that the unlocking is assisted by the invention, and the improper operation of other people can be prevented from being unlocked at the same time.
And S300, when the unlocking track is the same as at least two groups of adjacent endpoints on the unlocking information, the intelligent terminal is successfully unlocked.
The step S300 specifically includes: and according to a comparison result of the end point position on the unlocking track and the end point position on the unlocking information, when at least two groups of adjacent end points are the same on the unlocking track and the unlocking information, the intelligent terminal is successfully unlocked.
Specifically, the unlocking information stored in the external memory includes each endpoint on the correct unlocking track, each endpoint corresponds to a respective storage position, each endpoint is arranged according to the sequence of the correct unlocking track, and adjacent endpoints on the correct unlocking track have adjacent storage positions. The distance between two adjacent storage locations is defined as DeltaL, and the distance between any two adjacent storage locations is DeltaL.
And acquiring an unlocking track input by a user, and comparing the unlocking track with stored unlocking information according to the sequence of each endpoint on the unlocking track. For example, the respective endpoints on the unlock trajectory input by the user are endpoint a, endpoint b, endpoint c, endpoint d, endpoint e in order. Then, the first set of adjacent endpoints on the unlock trajectory is obtained as: endpoint a, endpoint b; at this time, it is queried whether the endpoint a and the endpoint b in the unlock information are neighboring endpoints. Specifically, a distance Δl (1) between the end point a and the end point b in the unlock information is acquired and compared with Δl. If Δl (1) is greater than Δl, proving that endpoint a and endpoint b in the unlocking information are not two adjacent endpoints; when Δl (1) is less than or equal to Δl, then it is proved that endpoint a and endpoint b in the unlock information are two adjacent endpoints.
Continuing to acquire a second set of adjacent endpoints on the unlock trajectory: endpoint b, endpoint c; at this time, it is queried whether the endpoint b and the endpoint c in the unlock information are neighboring endpoints. Specifically, a distance Δl (2) between the end point b and the end point c in the unlock information is acquired and compared with Δl. If DeltaL (2) is larger than DeltaL, proving that the endpoint b and the endpoint c in the unlocking information are not adjacent two endpoints; when Δl (2) is less than or equal to Δl, then it is proved that endpoint b and endpoint c in the unlock information are two adjacent endpoints.
Judging a third group of adjacent endpoints on the unlocking track in the same way: endpoint c, endpoint d, fourth set of neighboring endpoints: endpoint d, endpoint e. After the judgment is completed, the fact that the adjacent endpoints which are the same as the adjacent endpoints in the unlocking track in the unlocking information share a plurality of groups is obtained, and when two groups or more than two groups of adjacent endpoints are the same, the correct unlocking information is called to unlock the unlocking interface.
Of course, when two groups of adjacent endpoints are the same, the unlocking is directly performed without continuing to detect, and the unlocking efficiency is improved.
When two or more groups of adjacent endpoints are the same, the purpose of unlocking the unlocking interface by calling the correct unlocking information is to improve the safety of pattern unlocking, and if only one group of adjacent endpoints are the same, the unlocking can be performed, so that the safety is greatly reduced.
Further, the step S300 further includes:
s410, when the unlocking track is the same as the unlocking information in which no adjacent endpoint or only one group of adjacent endpoints are the same, the intelligent terminal is not successfully unlocked;
s420, displaying information of unsuccessful unlocking on the intelligent terminal.
In the preferred embodiment of the present invention, when there are less than two groups of adjacent endpoints that are the same, i.e., no adjacent endpoint is the same or only one group of adjacent endpoints is the same, the correct unlocking information cannot be invoked to unlock the unlocking interface, and the unlocking fails. At this time, an attempt to unlock the trajectory cannot be made again, and correct unlock information cannot be called again; that is, the invention allows the user to use the same unlocking information less than twice, and prompts the user to unlock through the correct and complete unlocking information if the unlocking is unsuccessful. Therefore, the security of the intelligent terminal is ensured, the situation that other people acquire the intelligent terminal and the external memory by using illegal means and try to open for many times is prevented, and the personal privacy and security of the user are further protected.
As shown in fig. 2, the embodiment of the invention further provides an intelligent terminal, such as a smart phone, a tablet, and the like. The intelligent terminal comprises a processor 10 and a memory 20 connected with the processor 10, wherein the memory 20 stores an unlocking program based on the intelligent terminal, and the unlocking program based on the intelligent terminal realizes the following steps when being executed by the processor 10:
the intelligent terminal starts an unlocking interface with a plurality of endpoints, receives an unlocking track input by a user, and judges whether unlocking is successful or not;
when the unlocking is unsuccessful, receiving pre-stored unlocking information sent by the external memory 20, and comparing the unlocking information with an unlocking track input by a user;
when the unlocking track is the same as at least two groups of adjacent endpoints on the unlocking information, the intelligent terminal is successfully unlocked;
the processor 10 is configured to invoke the unlocking program instruction based on the intelligent terminal; as described in detail above.
Further, when the unlocking program based on the intelligent terminal is executed by the processor 10, the following steps are also implemented:
the intelligent terminal starts an unlocking interface with a plurality of endpoints and receives an unlocking track input by a user;
judging whether the unlocking track is correct or not, and if not, unlocking is unsuccessful; as described in detail above.
Further, when the unlocking program based on the intelligent terminal is executed by the processor 10, the following steps are also implemented:
when the unlocking is unsuccessful, the external memory 20 is externally connected to the intelligent terminal;
the intelligent terminal receives the pre-stored unlocking information sent by the external memory 20;
the intelligent terminal acquires the unlocking information and compares the endpoint position in the unlocking information with the endpoint position in the unlocking track input by the user; as described in detail above.
Further, when the unlocking program based on the intelligent terminal is executed by the processor 10, the following steps are also implemented:
according to the comparison result of the end point position on the unlocking track and the end point position on the unlocking information, when at least two groups of adjacent end points are the same on the unlocking track and the unlocking information, the intelligent terminal is successfully unlocked;
when the unlocking track is the same as the unlocking information without adjacent endpoints or with only one group of adjacent endpoints, the intelligent terminal is not successfully unlocked;
displaying information of unsuccessful unlocking on the intelligent terminal; as described in detail above.
The present invention also provides a storage medium storing a computer program executable for implementing the smart terminal-based unlocking method as described above; as described in detail above.
In summary, the unlocking method based on the intelligent terminal, the intelligent terminal and the storage medium disclosed by the invention comprise the following steps: the intelligent terminal starts an unlocking interface with a plurality of endpoints, receives an unlocking track input by a user, and judges whether unlocking is successful or not; when the unlocking is unsuccessful, receiving pre-stored unlocking information sent by an external memory, and comparing the unlocking information with an unlocking track input by a user; and when the unlocking track is the same as at least two groups of adjacent endpoints on the unlocking information, the intelligent terminal is successfully unlocked. According to the invention, the pre-stored unlocking information is obtained from the external memory and is compared with the unlocking track input by the user, when two groups of adjacent endpoints are identical, the unlocking is performed, the problem that the user forgets part of the unlocking information is solved, the unlocking is assisted by the user, the unlocking is prevented from being performed by improper operation of other people, and the convenience and safety of the unlocking are improved.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.