The content of the invention
The present invention solves the technical problem of provide a kind of unlocking method and mobile terminal based on pattern screen locking, energy
Enough security performances for further improving screen lock.
In order to solve the above technical problems, one aspect of the present invention is:There is provided a kind of based on pattern screen locking
Unlocking method, including:The screen locking pattern that user draws on screen is received, the screen locking pattern includes at least two nodes of connection
Straight path and at least one of which node sentence circular track centered on the node, the circular track is by predetermined
Sequentially pass through multiple preset coordinate points;Record the track of the screen locking pattern and coordinate letter that the screen locking pattern is each put
Breath, the coordinate information include the sequencing that coordinate position and coordinate occur;Judge the screen locking pattern track and
Whether the coordinate information that the screen locking pattern is each put matches with the screen locking information to prestore;If described, the match is successful, carries out screen
Unblock, if the matching is unsuccessful, prompt unlocking screen failure.
Wherein, the step of coordinate information that the track for recording the screen locking pattern and the screen locking pattern are each put
While, in addition to:It is hidden on screen when often recording the straight path of present node and previous node of the screen locking pattern
Hide the straight path of present node and previous node.
Wherein, it is described to receive user before the step of screen locking pattern drawn on screen, in addition to:User is received to set
The screen locking pattern for screen locking;Record the track of the screen locking pattern and coordinate letter that the screen locking pattern is each put
Breath, as the screen locking information, the coordinate information includes the sequencing that coordinate position and coordinate occur;Preserve the lock
Shield information.
Wherein, the circular track is any one of circular trace, square track, elliptical path, rhombus track.
Wherein, the screen locking information to prestore is acquired by self defined interface.
In order to solve the above technical problems, another technical solution used in the present invention is:One kind is provided and realizes pattern screen locking
Mobile terminal, the mobile terminal includes receiving module, logging modle, judge module and processing module, wherein:It is described to connect
Receive module to be used to receive the screen locking pattern that user draws on screen, the screen locking pattern includes the straight of at least two nodes of connection
Line tracking and at least one of which node sentence the circular track centered on the node, and the circular track is in a predetermined order
By multiple preset coordinate points;The logging modle is used for the track for recording the screen locking pattern and the screen locking pattern is each
The coordinate information of point, the coordinate information include the sequencing that coordinate position and coordinate occur;The judge module is used for
Judge the track of the screen locking pattern and coordinate information that the screen locking pattern is each put and the screen locking information that prestores whether
Match somebody with somebody;The processing module be used for it is described the match is successful when, control carry out unlocking screen, it is described matching it is unsuccessful when, prompt
Unlocking screen fails.
Wherein, the mobile terminal further comprises display module, and the display module often records in the logging modle
During the straight path of the present node of the screen locking pattern and previous node, present node and previous section are hidden on screen
The straight path of point.
Wherein, the mobile terminal also includes setup module, the setup module include receiving unit, recording unit and
Storage unit, wherein:The receiving unit is used for the screen locking pattern for screen locking for receiving user's setting;The record
The coordinate information that member is used for the track for recording the screen locking pattern and the screen locking pattern is each put, believes as the screen locking
Breath, the coordinate information include the sequencing that coordinate position and coordinate occur;The storage unit is used to preserve the lock
Shield information.
Wherein, the circular track is any one of circular trace, square track, elliptical path, rhombus track.
Wherein, the mobile terminal also includes acquisition module, and the acquisition module is used to obtain institute by self defined interface
The screen locking information to prestore is stated, and is exported to the judge module.
The beneficial effects of the invention are as follows:It is different from the situation of prior art, the solution provided by the invention based on pattern screen locking
Locking method and mobile terminal, wherein screen locking pattern include the straight path and at least one of which section of at least two nodes of connection
Circular track at point centered on the node, the circular track case predefined procedure pass through multiple preset coordinate points.Pass through this
The screen locking pattern of sample, the complexity of screen locking pattern is further increased, improve the security performance of screen locking, it is more preferable to user
Usage experience.
Embodiment
Referring to Fig. 1, Fig. 1 is a kind of flow chart of unlocking method based on pattern screen locking provided in an embodiment of the present invention,
The present embodiment is described with mobile terminal realization between the angle of the unlocking method of pattern screen locking, the unblock side of the present embodiment
Method includes:
S101:The screen locking pattern that user draws on screen is received, screen locking pattern includes the straight of at least two nodes of connection
Line tracking and at least one of which node sentence the circular track centered on the node, pass through in a predetermined order around track
Multiple preset coordinate points;
When user needs the setting screen to lock, by presetting screen locking pattern and preserving, subsequently through input screen locking figure
Case is unlocked screen, only can just make unlocking screen when the screen locking pattern of input is consistent with default screen locking pattern, no
Then, unlocking screen fails.
Wherein, referring to Fig. 2, Fig. 2 is the flow chart of setting screen locking pattern provided in an embodiment of the present invention, screen locking figure is set
Case specifically includes following sub-step:
S2011:Mobile terminal receives the screen locking pattern for screen locking that user is set, and the screen locking pattern includes connection at least
The straight path and at least one of which node of two nodes sentence the circular track centered on node, and the circular track is by pre-
Surely multiple preset coordinate points are sequentially passed through;
Wherein, circular track here can be according to predefined procedure by multiple preset coordinate points circular trace, four
Any one of square trace, elliptical path, rhombus track, naturally it is also possible to be other around track, the present invention is to this
Do not limit.Here predefined procedure and preset coordinate point can voluntarily be set as needed.Such as according to clockwise by 4
The circular track of symmetrical coordinate points, or according to counterclockwise by circular track of 4 symmetrical coordinate points etc..It is described to surround
It can also be multiple that track, which can be one,.
For example screen locking pattern can be any two node on connection JiuGongTu, and centered on one of node
Draw the pattern of circle.In order to improve the security of screen locking, screen locking pattern can include the connection of multiple nodes straight path and
Circular track at multiple nodes centered on the node, the complexity of screen locking pattern can be so effectively improved, so as to
Improve the security of screen locking.
S2012:The coordinate information that the track of record screen locking pattern and screen locking pattern are each put, as screen locking information, sit
Marking information includes the sequencing that coordinate position and coordinate occur;
Mobile terminal can record the track of the screen locking pattern of user's setting, and record the coordinate letter each put on screen locking pattern
Breath.Wherein, coordinate information here includes the sequencing that coordinate position and coordinate occur.For example user is setting screen locking figure
During case, circle twice is drawn at some node, then mobile terminal can record on the circle preset coordinate point twice.Such as
(7.9), (6.8), (5.7), (6.6), (7.5), (8.6), (9.7), (8.8), (7.9), (6.8), (5.7), (6.6)
(7.5), (8.6), (9.7), (8.8), and the record of these coordinates are that the order drawn a circle according to user is recorded.
Wherein, in order to further ensure the security of screen locking pattern, often record screen locking pattern present node with it is previous
During the straight path of node, the straight path of present node and previous node is hidden on screen.So, other people can not know
The specific route of set screen locking pattern, it is not easy to remember screen locking pattern, further enhance the security of screen locking pattern.
The coordinate information that the track of the screen locking pattern of record and screen locking pattern are each put, as screen locking information.
S2013:Preserve screen locking information;
Mobile terminal is preserved screen locking information.In specific application, screen locking information is stored in safety zone, mobile whole
End must could read the screen locking information by customized interface from the safety zone.Here customized interface is privately owned
Interface, different from the current solution standardization of lock interface and coming into the open for interface name, it can effectively prevent third party application
Crack or intercept coordinate information.
On the basis of screen locking pattern has been set more than, when user needs unblock, by drawing screen locking pattern on screen,
Mobile terminal receives the screen locking pattern that user draws on screen.
S102:The coordinate information that the track of record screen locking pattern and screen locking pattern are each put, coordinate information include coordinate
The sequencing that position and coordinate occur;
Mobile terminal records are used for track and each point of screen locking pattern for the screen locking pattern drawn when unlocking on screen
Coordinate information, coordinate information here includes the sequencing that coordinate position and coordinate occur.Such as in screen locking pattern
Wherein some node draw circle twice, the order that mobile terminal can draw circle according to user record predetermined point on the circle successively
Coordinate twice.
Wherein, when not recording the perform track of present node and previous node of screen locking pattern, hide and work as on screen
The straight path of front nodal point and previous node.So, other people can not see the complete trajectory of screen locking pattern, it is not easy to crack lock
Shield pattern.
S103:Judge the track of screen locking pattern and coordinate information that screen locking pattern is each put is with the screen locking information to prestore
No matching;
Here the screen locking information to prestore is acquired by self defined interface, can ensure the security of screen locking information.
Judge the track of screen locking pattern and coordinate information that screen locking pattern is each put and the screen locking information that prestores whether
Match somebody with somebody.Here when being matched, only with coordinate information, all the match is successful is just determined as that the match is successful, there is any one for track
With unsuccessful, it is judged to matching unsuccessful.For example all tracks and coordinate points position are all, but coordinate points prospects
Sequencing it is inconsistent, be also judged to matching unsuccessful.When the match is successful, step S104 is carried out, otherwise, carries out step
S105。
S104:Carry out unlocking screen;
In the coordinate information that the track of screen locking pattern and screen locking pattern are each put and the screen locking information matches to prestore success
When, carry out unlocking screen.
S105:Prompt unlocking screen failure;
Coordinate information that the track of screen locking pattern and screen locking pattern are each put and the screen locking information matches to prestore not into
During work(, unlocking screen failure is prompted.
A kind of unlocking method based on pattern screen locking provided in an embodiment of the present invention above, wherein screen locking pattern include connection
The straight path and at least one of which node of at least two nodes sentence the circular track centered on the node, the circular rail
Mark case predefined procedure passes through multiple preset coordinate points.By such screen locking pattern, answering for screen locking pattern is further increased
Miscellaneous degree, the security performance of screen locking is improved, give user more preferable usage experience.
In addition, while the track of the unlocking pattern is recorded, the present node of screen locking pattern and previous node are often recorded
Straight path when, the straight path of present node and previous node is hidden on screen, passes through such mode, Pang Renwu
Method obtains the complete path of screen locking pattern, has further ensured the security of screen locking.
Referring to Fig. 3, Fig. 3 is a kind of structural representation of mobile terminal for realizing pattern screen locking provided in an embodiment of the present invention
Figure, the mobile terminal 100 of the present embodiment include receiving module 11, logging modle 12, judge module 13 and processing module 14, its
In:
Receiving module 11 is used to receive the screen locking pattern that user draws on screen, and screen locking pattern includes connection at least two
The straight path and at least one of which node of node sentence the circular track centered on node, around track in a predetermined order
By multiple preset coordinate points;
When user needs the setting screen to lock, by presetting screen locking pattern and preserving, subsequently through input screen locking figure
Case is unlocked screen, only can just make unlocking screen when the screen locking pattern of input is consistent with default screen locking pattern, no
Then, unlocking screen fails.
Therefore, the mobile terminal of the present embodiment further comprises setup module 15, wherein, further referring to Fig. 4, Fig. 4
Be the embodiment of the present invention mobile terminal in setup module structural representation, setup module 15 include receiving unit 151, record
Unit 152 and storage unit 153, wherein:
Receiving unit 151 is used for the screen locking pattern for screen locking for receiving user's setting;
Screen locking pattern for screen locking includes the straight path and at least one of which node of at least two nodes of connection
The circular track centered on node is sentenced, multiple preset coordinate points are passed through in the circular track in a predetermined order.
Wherein, circular track here can be according to predefined procedure by multiple preset coordinate points circular trace, four
Any one of square trace, elliptical path, rhombus track, naturally it is also possible to be other around track, the present invention is to this
Do not limit.Here predefined procedure and preset coordinate point can voluntarily be set as needed.Such as according to clockwise by 4
The circular track of symmetrical coordinate points, or according to counterclockwise by circular track of 4 symmetrical coordinate points etc..It is described to surround
It can also be multiple that track, which can be one,.
For example screen locking pattern can be any two node on connection JiuGongTu, and centered on one of node
Draw the pattern of circle.In order to improve the security of screen locking, screen locking pattern can include the connection of multiple nodes straight path and
Circular track at multiple nodes centered on the node, the complexity of screen locking pattern can be so effectively improved, so as to
Improve the security of screen locking.
The coordinate information that recording unit 152 is used for the track for recording screen locking pattern and screen locking pattern is each put, as lock
Shield information, coordinate information includes the sequencing that coordinate position and coordinate occur;
Recording unit 152 can record the track of the screen locking pattern of user's setting, and record the seat each put on screen locking pattern
Mark information.Wherein, coordinate information here includes the sequencing that coordinate position and coordinate occur.For example user is setting lock
When shielding pattern, circle twice is drawn at some node, then mobile terminal can record on the circle preset coordinate point twice.Than
Such as (7.9), (6.8), (5.7), (6.6), (7.5), (8.6), (9.7), (8.8), (7.9), (6.8), (5.7), (6.6)
(7.5), (8.6), (9.7), (8.8), and the record of these coordinates are that the order drawn a circle according to user is recorded.
Wherein, in order to further ensure the security of screen locking pattern, often record screen locking pattern present node with it is previous
During the straight path of node, the straight path of present node and previous node is hidden on screen.So, other people can not know
The specific route of set screen locking pattern, it is not easy to remember screen locking pattern, further enhance the security of screen locking pattern.
The coordinate information that the track of the screen locking pattern of record and screen locking pattern are each put, as screen locking information.
Storage unit 153 is used to preserve screen locking information.
Storage unit 153 is preserved screen locking information.In specific application, screen locking information is stored in safety zone, moves
Dynamic terminal must could read the screen locking information by customized interface from the safety zone.Here customized interface is
Privately owned interface, different from the current solution standardization of lock interface and coming into the open for interface name, it can effectively prevent third-party application
Program cracks or intercepted coordinate information.
On the basis of screen locking pattern has been set more than, when user needs unblock, by drawing screen locking pattern on screen,
The screen locking pattern that mobile terminal is drawn by the reception user of receiving module 11 on screen.
The coordinate information that logging modle 12 is used for the track for recording screen locking pattern and screen locking pattern is each put, coordinate information
The sequencing occurred including coordinate position and coordinate;
Mobile terminal recorded by logging modle 12 the screen locking pattern drawn during for unlocking on screen track and
The coordinate information that screen locking pattern is each put, coordinate information here include the sequencing that coordinate position and coordinate occur.Than
Wherein some node such as in screen locking pattern draws circle twice, and the order that mobile terminal can draw circle according to user records successively
The coordinate of predetermined point is twice on the circle.
Wherein, when not recording the perform track of present node and previous node of screen locking pattern, hide and work as on screen
The straight path of front nodal point and previous node.So, other people can not see the complete trajectory of screen locking pattern, it is not easy to crack lock
Shield pattern.
Judge module 13 is used for what is judged the track of screen locking pattern and the screen locking pattern coordinate information each put and prestore
Whether screen locking information matches;
Here the screen locking information to prestore is acquired by self defined interface, can ensure the security of screen locking information.
Judge module 13 judges the track of screen locking pattern and the screen locking pattern coordinate information each put and the screen locking to prestore
Whether information matches.Here when being matched, only with coordinate information, all the match is successful is just determined as that the match is successful, has for track
Any one matching is unsuccessful, is judged to matching unsuccessful.And it will determine that result is exported to processing module 14.
Processing module 14 is used for when the match is successful, and control carries out unlocking screen, when matching unsuccessful, prompts screen solution
Lock failure.
Judge to obtain the track of screen locking pattern and the coordinate information each put of screen locking pattern with prestoring in judge module 13
Screen locking information matches success when, processing module 14 control carry out unlocking screen.Judge to obtain screen locking pattern in judge module 13
Track and when the coordinate information each put of screen locking pattern and the unsuccessful screen locking information matches that prestore, processing module 14 is prompted
Unlocking screen fails.
Unlocking method and mobile terminal provided in an embodiment of the present invention based on pattern screen locking, wherein screen locking more than
Pattern includes the straight path of at least two nodes of connection and at least one of which node sentences surrounding centered on the node
Track, the circular track case predefined procedure pass through multiple preset coordinate points.By such screen locking pattern, further increase
The complexity of screen locking pattern, the security performance of screen locking is improved, give user more preferable usage experience.
Also, while screen locking pattern trace is recorded, often record the present node of screen locking pattern and previous node
During straight path, the straight path of present node and previous node is hidden on screen, by such mode, other people can not
The complete path of screen locking pattern is obtained, so as to further ensure the security of screen locking.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of division of logic function, can there are other dividing mode, such as multiple units when actually realizing
Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the application
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
Embodiments herein is the foregoing is only, not thereby limits the scope of the claims of the application, it is every to utilize this Shen
Please the equivalent structure made of specification and accompanying drawing content or equivalent flow conversion, or be directly or indirectly used in other related skills
Art field, is similarly included in the scope of patent protection of the application.