Summary of the invention
The technical matters that the present invention mainly solves is to provide a kind of unlock method and mobile terminal based on pattern screen locking, can further improve the security performance of screen screen locking.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of unlock method based on pattern screen locking is provided, comprise: receive the screen locking pattern that user draws on screen, described screen locking pattern comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by described node around track, describedly around track, press predefined procedure through a plurality of preset coordinate points; Record the track of described screen locking pattern and the coordinate information of described each point of screen locking pattern, described coordinate information comprises the sequencing that coordinate position and coordinate occur; Judge whether the track of described screen locking pattern and the coordinate information of described each point of screen locking pattern mate with the screen locking information prestoring; If described, the match is successful, carries out unlocking screen, if described coupling is unsuccessful, points out unlocking screen failure.
Wherein, in the time of the described step that records the track of described screen locking pattern and the coordinate information of described each point of screen locking pattern, also comprise: every while recording the present node of described screen locking pattern and the straight path of previous node, on screen, hide the straight path of present node and previous node.
Wherein, before the step of the screen locking pattern that described reception user draws on screen, also comprise: receive the described screen locking pattern for screen locking that user arranges; Record the track of described screen locking pattern and the coordinate information of described each point of screen locking pattern, as described screen locking information, described coordinate information comprises the sequencing that coordinate position and coordinate occur; Preserve described screen locking information.
Wherein, described is any one of circular trace, square track, elliptical path, rhombus track around track.
Wherein, the screen locking information exchange prestoring described in is crossed self defined interface and is acquired.
For solving the problems of the technologies described above, another technical solution used in the present invention is: a kind of mobile terminal of realizing pattern screen locking is provided, described mobile terminal comprises receiver module, logging modle, judge module and processing module, wherein: described receiver module is for receiving the screen locking pattern that user draws on screen, described screen locking pattern comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by described node around track, describedly around track, press predefined procedure through a plurality of preset coordinate points; Described logging modle is for recording the track of described screen locking pattern and the coordinate information of described each point of screen locking pattern, and described coordinate information comprises the sequencing that coordinate position and coordinate occur; Described judge module is for judging whether the track of described screen locking pattern and the coordinate information of described each point of screen locking pattern mate with the screen locking information prestoring; Described processing module is for, controlling and carry out unlocking screen when the match is successful described, when described coupling is unsuccessful, and the failure of prompting unlocking screen.
Wherein, described mobile terminal further comprises display module, and described display module, described logging modle is every while recording the present node of described screen locking pattern and the straight path of previous node, is hidden the straight path of present node and previous node on screen.
Wherein, described mobile terminal also comprises module is set, and the described module that arranges comprises receiving element, record cell and storage unit, wherein: the described screen locking pattern for screen locking that described receiving element arranges for receiving user; Described record cell is for recording the track of described screen locking pattern and the coordinate information of described each point of screen locking pattern, and as described screen locking information, described coordinate information comprises the sequencing that coordinate position and coordinate occur; Described storage unit is used for preserving described screen locking information.
Wherein, described is any one of circular trace, square track, elliptical path, rhombus track around track.
Wherein, described mobile terminal also comprises acquisition module, the screen locking information of described acquisition module for prestoring described in obtaining by self defined interface, and export to described judge module.
The invention has the beneficial effects as follows: the situation that is different from prior art, unlock method and mobile terminal based on pattern screen locking provided by the invention, wherein screen locking pattern comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by this node around track, should be around track case predefined procedure through a plurality of preset coordinate points.By such screen locking pattern, further strengthened the complexity of screen locking pattern, improved the security performance of screen locking, give the better experience of user.
Embodiment
Refer to Fig. 1, Fig. 1 is the process flow diagram of a kind of unlock method based on pattern screen locking of providing of the embodiment of the present invention, and the angle that the present embodiment is realized between the unlock method of pattern screen locking with mobile terminal is described, and the unlock method of the present embodiment comprises:
S101: receive the screen locking pattern that user draws on screen, screen locking pattern comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by described node around track, around track, press predefined procedure through a plurality of preset coordinate points;
When user needs setting screen locking, by presetting screen locking pattern and preserving, follow-uply by input screen locking pattern, carry out unlock screen, only when the screen locking pattern of input is consistent with default screen locking pattern, just can make unlocking screen, otherwise, unlocking screen failure.
Wherein, refer to Fig. 2, Fig. 2 is the process flow diagram of the setting screen locking pattern that provides of the embodiment of the present invention, sets screen locking pattern and specifically comprises following sub-step:
S2011: mobile terminal receives the screen locking pattern for screen locking that user arranges, this screen locking pattern comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by node around track, should press predefined procedure around track and pass through a plurality of preset coordinate points;
Wherein, here around track can be according to predefined procedure through any one of the circular trace of a plurality of preset coordinate points, square track, elliptical path, rhombus track, can certainly be other around track, the present invention does not limit this.The predefined procedure here and preset coordinate point can arrange as required voluntarily.Such as according to clockwise through 4 symmetrical coordinate points around track, or according to counterclockwise through 4 symmetrical coordinate points around track etc.It is described that around track, can be one can be also a plurality of.
Such as, screen locking pattern can be to connect any two nodes on JiuGongTu, and centered by one of them node, draws the pattern of circle.In order to improve the security of screen locking, screen locking pattern can comprise straight path that a plurality of nodes connect and at a plurality of Nodes centered by this node around track, can effectively improve like this complexity of screen locking pattern, thereby improve the security of screen locking.
S2012: record the track of screen locking pattern and the coordinate information of each point of screen locking pattern, as screen locking information, coordinate information comprises the sequencing that coordinate position and coordinate occur;
Mobile terminal is understood the track of the screen locking pattern of recording user setting, and records the coordinate information of each point on screen locking pattern.Wherein, the coordinate information here comprises the sequencing that coordinate position and coordinate occur.Such as user is when arranging screen locking pattern, at certain Nodes, drawn circle twice, mobile terminal can record on this circle preset coordinate point twice so.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 be that the order of drawing a circle according to user records.
Wherein, in order further to ensure the security of screen locking pattern, every while recording the present node of screen locking pattern and the straight path of previous node, the straight path of hiding present node and previous node on screen.Like this, other people cannot know the concrete route of set screen locking pattern, are not easy to remember screen locking pattern, further strengthen the security of screen locking pattern.
By the track of screen locking pattern and the coordinate information of each point of screen locking pattern of record, as screen locking information.
S2013: preserve screen locking information;
Mobile terminal is preserved screen locking information.When concrete application, screen locking information is kept at safety zone, and mobile terminal must could read from this safety zone described screen locking information by self-defining interface.Here self-defining interface is privately owned interface, is different from the standardization of current solution lock interface and coming into the open of interface name, can effectively prevent that third party application from cracking or tackling coordinate information.
Arranging on the basis of screen locking pattern above, when user needs release, by draw screen locking pattern on screen, mobile terminal receives the screen locking pattern that user draws on screen.
S102: record the track of screen locking pattern and the coordinate information of each point of screen locking pattern, coordinate information comprises the sequencing that coordinate position and coordinate occur;
The track of screen locking pattern and the coordinate information of each point of screen locking pattern when mobile terminal records is used for release, on screen, drawn, the coordinate information here comprises the sequencing that coordinate position and coordinate occur.Such as wherein certain node in screen locking pattern is drawn circle twice, the order that mobile terminal can be drawn circle according to user records twice, the coordinate of predetermined point on this circle successively.
Wherein, while not recording the present node of screen locking pattern and the execution track of previous node, on screen, hide the straight path of present node and previous node.Like this, other people cannot see the complete trajectory of screen locking pattern, are not easy to crack screen locking pattern.
S103: judge whether the track of screen locking pattern and the coordinate information of each point of screen locking pattern mate with the screen locking information prestoring;
Here the screen locking information prestoring is to acquire by self defined interface, can guarantee the security of screen locking information.
Judge whether the track of screen locking pattern and the coordinate information of each point of screen locking pattern mate with the screen locking information prestoring.Here when mating, only having track to follow coordinate information, all the match is successful is just judged to be that the match is successful, and having any one coupling, unsuccessful to be judged to be coupling unsuccessful.Such as all tracks and coordinate points position are all the same, but the sequencing of coordinate points prospects is inconsistent, is also judged to be coupling unsuccessful.When the match is successful, carry out step S104, otherwise, carry out step S105.
S104: carry out unlocking screen;
The track of screen locking pattern and the coordinate information of each point of screen locking pattern with prestore the success of screen locking information matches time, carry out unlocking screen.
S105: prompting unlocking screen failure;
When the track of screen locking pattern and the coordinate information of each point of screen locking pattern and the screen locking information matches prestoring are unsuccessful, the failure of prompting unlocking screen.
A kind of unlock method based on pattern screen locking that the above embodiment of the present invention provides, wherein screen locking pattern comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by this node around track, should be around track case predefined procedure through a plurality of preset coordinate points.By such screen locking pattern, further strengthened the complexity of screen locking pattern, improved the security performance of screen locking, give the better experience of user.
In addition, when recording the track of release pattern, every while recording the present node of screen locking pattern and the straight path of previous node, on screen, hide the straight path of present node and previous node, by such mode, other people cannot obtain the complete path of screen locking pattern, have further ensured the security of screen locking.
Refer to Fig. 3, Fig. 3 is a kind of structural representation of realizing the mobile terminal of pattern screen locking that the embodiment of the present invention provides, and the mobile terminal 100 of the present embodiment comprises receiver module 11, logging modle 12, judge module 13 and processing module 14, wherein:
The screen locking pattern that receiver module 11 is drawn on screen for receiving user, screen locking pattern comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by node around track, around track, press predefined procedure through a plurality of preset coordinate points;
When user needs setting screen locking, by presetting screen locking pattern and preserving, follow-uply by input screen locking pattern, carry out unlock screen, only when the screen locking pattern of input is consistent with default screen locking pattern, just can make unlocking screen, otherwise, unlocking screen failure.
Therefore, the mobile terminal of the present embodiment further comprises module 15 is set, wherein, please further consult Fig. 4, Fig. 4 arranges the structural representation of module in the mobile terminal of the embodiment of the present invention, and module 15 is set and comprises receiving element 151, record cell 152 and storage unit 153, wherein:
The screen locking pattern for screen locking that receiving element 151 arranges for receiving user;
For the screen locking pattern of screen locking comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by node around track, should press predefined procedure around track and pass through a plurality of preset coordinate points.
Wherein, here around track can be according to predefined procedure through any one of the circular trace of a plurality of preset coordinate points, square track, elliptical path, rhombus track, can certainly be other around track, the present invention does not limit this.The predefined procedure here and preset coordinate point can arrange as required voluntarily.Such as according to clockwise through 4 symmetrical coordinate points around track, or according to counterclockwise through 4 symmetrical coordinate points around track etc.It is described that around track, can be one can be also a plurality of.
Such as, screen locking pattern can be to connect any two nodes on JiuGongTu, and centered by one of them node, draws the pattern of circle.In order to improve the security of screen locking, screen locking pattern can comprise straight path that a plurality of nodes connect and at a plurality of Nodes centered by this node around track, can effectively improve like this complexity of screen locking pattern, thereby improve the security of screen locking.
Record cell 152 is for recording the track of screen locking pattern and the coordinate information of each point of screen locking pattern, and as screen locking information, coordinate information comprises the sequencing that coordinate position and coordinate occur;
Record cell 152 is understood the track of the screen locking pattern of recording users setting, and records the coordinate information of each point on screen locking pattern.Wherein, the coordinate information here comprises the sequencing that coordinate position and coordinate occur.Such as user is when arranging screen locking pattern, at certain Nodes, drawn circle twice, mobile terminal can record on this circle preset coordinate point twice so.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 be that the order of drawing a circle according to user records.
Wherein, in order further to ensure the security of screen locking pattern, every while recording the present node of screen locking pattern and the straight path of previous node, the straight path of hiding present node and previous node on screen.Like this, other people cannot know the concrete route of set screen locking pattern, are not easy to remember screen locking pattern, further strengthen the security of screen locking pattern.
By the track of screen locking pattern and the coordinate information of each point of screen locking pattern of record, as screen locking information.
Storage unit 153 is for preserving screen locking information.
Storage unit 153 is preserved screen locking information.When concrete application, screen locking information is kept at safety zone, and mobile terminal must could read from this safety zone described screen locking information by self-defining interface.Here self-defining interface is privately owned interface, is different from the standardization of current solution lock interface and coming into the open of interface name, can effectively prevent that third party application from cracking or tackling coordinate information.
Arranging on the basis of screen locking pattern above, when user needs release, by draw screen locking pattern on screen, mobile terminal receives by receiver module 11 the screen locking pattern that user draws on screen.
Logging modle 12 is for recording the track of screen locking pattern and the coordinate information of each point of screen locking pattern, and coordinate information comprises the sequencing that coordinate position and coordinate occur;
The track of screen locking pattern and the coordinate information of each point of screen locking pattern when mobile terminal is used for release by logging modle 12 records, on screen, drawn, the coordinate information here comprises the sequencing that coordinate position and coordinate occur.Such as wherein certain node in screen locking pattern is drawn circle twice, the order that mobile terminal can be drawn circle according to user records twice, the coordinate of predetermined point on this circle successively.
Wherein, while not recording the present node of screen locking pattern and the execution track of previous node, on screen, hide the straight path of present node and previous node.Like this, other people cannot see the complete trajectory of screen locking pattern, are not easy to crack screen locking pattern.
Judge module 13 is for judging whether the track of screen locking pattern and the coordinate information of each point of screen locking pattern mate with the screen locking information prestoring;
Here the screen locking information prestoring is to acquire by self defined interface, can guarantee the security of screen locking information.
Judge module 13 judges whether the track of screen locking pattern and the coordinate information of each point of screen locking pattern mate with the screen locking information prestoring.Here when mating, only having track to follow coordinate information, all the match is successful is just judged to be that the match is successful, and having any one coupling, unsuccessful to be judged to be coupling unsuccessful.And judged result is exported to processing module 14.
Processing module 14, for when the match is successful, is controlled and is carried out unlocking screen, when coupling is unsuccessful, and the failure of prompting unlocking screen.
Judge module 13 judgement obtain the track of screen locking pattern and the coordinate information of each point of screen locking pattern with prestore the success of screen locking information matches time, processing module 14 is controlled and is carried out unlocking screen.In judge module 13 judgement, obtain the track of screen locking pattern and the coordinate information of each point of screen locking pattern when unsuccessful with the screen locking information matches prestoring, processing module 14 prompting unlocking screens failures.
The unlock method based on pattern screen locking and the mobile terminal that by the above embodiment of the present invention, provide, wherein screen locking pattern comprise the straight path of at least two nodes of connection and therein at least one Nodes centered by this node around track, should be around track case predefined procedure through a plurality of preset coordinate points.By such screen locking pattern, further strengthened the complexity of screen locking pattern, improved the security performance of screen locking, give the better experience of user.
And, when recording screen locking pattern trace, every while recording the present node of screen locking pattern and the straight path of previous node, on screen, hide the straight path of present node and previous node, by such mode, other people cannot obtain the complete path of screen locking pattern, thereby can further ensure the security of screen locking.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that the application's technical scheme contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The foregoing is only the application's embodiment; not thereby limit the scope of the claims of the application; every equivalent structure or conversion of equivalent flow process that utilizes present specification and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in the application's scope of patent protection.