CN106845184A - screen locking method, device and terminal - Google Patents

screen locking method, device and terminal Download PDF

Info

Publication number
CN106845184A
CN106845184A CN201710061323.5A CN201710061323A CN106845184A CN 106845184 A CN106845184 A CN 106845184A CN 201710061323 A CN201710061323 A CN 201710061323A CN 106845184 A CN106845184 A CN 106845184A
Authority
CN
China
Prior art keywords
screen
authentication information
state
user
user status
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710061323.5A
Other languages
Chinese (zh)
Other versions
CN106845184B (en
Inventor
张晓璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710061323.5A priority Critical patent/CN106845184B/en
Publication of CN106845184A publication Critical patent/CN106845184A/en
Application granted granted Critical
Publication of CN106845184B publication Critical patent/CN106845184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of screen locking method, device and terminal.Whether the screen locking method is changed using detection User Status, the User Status includes sleep state or non-sleep state, when User Status change is detected, obtain the target unblock authentication information corresponding to current user state, wherein, unblock authentication information is used to be unlocked screen, when screen is in screen lock state, current unblock authentication information is replaced with into target unblock authentication information.Unlocking screen authentication information under screen lock state can be replaced with the unblock authentication information under correspondence User Status by the program when User Status changes, and improve the security of end message.

Description

Screen locking method, device and terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of screen locking method, device and terminal.
Background technology
The intelligent terminals such as smart mobile phone, panel computer it is commonly used under, intelligent terminal becomes user and carries with Article.
In practical application, intelligent terminal is typically provided solution screen-lock password, however can but face that password is cracked at any time can Energy.Such as, when user uses unlocked by fingerprint, exist causes finger to be borrowed the risk for carrying out terminal unlocking because sleeping soundly, and causes End message security is poor.
The content of the invention
The embodiment of the present invention provides a kind of screen locking method, device and terminal, can improve the security of end message.
The embodiment of the present invention provides a kind of screen locking method, including:
Whether detection User Status changes, and the User Status includes sleep state or non-sleep state;
When User Status change is detected, the target unblock authentication information corresponding to current user state is obtained, wherein, Unblock authentication information is used to be unlocked screen;
When the screen is in screen lock state, current unblock authentication information is replaced with into the target unblock authentication letter Breath.
Correspondingly, a kind of terminal is the embodiment of the invention provides, including:
Detection module, for detecting whether User Status changes, the User Status includes sleep state or non-sleep State;
Acquisition module, for when detection module detects User Status and changes, obtaining corresponding to current user state Target unlocks authentication information, wherein, unblock authentication information is used to be unlocked screen;
Replacement module, for when the screen is in screen lock state, current unblock authentication information being replaced with into the mesh Mark unblock authentication information.
Correspondingly, a kind of terminal, including memory, processor and storage be the embodiment of the invention provides in the memory Computer program that is upper and can running on the processor, realizes during computer program above-mentioned described in the computing device Screen locking method.
Whether screen locking method provided in an embodiment of the present invention, changed using detection User Status, the User Status bag Sleep state or non-sleep state are included, when User Status change is detected, the target solution corresponding to current user state is obtained Lock authentication information, wherein, unblock authentication information is used to be unlocked screen, when screen is in screen lock state, will currently solve Lock authentication information replaces with target unblock authentication information.The program can be when User Status changes, by under screen lock state Unlocking screen authentication information replace with correspondence User Status under unblock authentication information, improve password switching flexibility and The security of end message.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, can also obtain other attached according to these accompanying drawings Figure.
Fig. 1 is a kind of schematic flow sheet of screen locking method provided in an embodiment of the present invention.
Fig. 2 is the schematic diagram of a scenario of the first screen locking method provided in an embodiment of the present invention.
Fig. 3 is the schematic diagram of a scenario of second screen locking method provided in an embodiment of the present invention.
Fig. 4 is the schematic diagram of a scenario of the third screen locking method provided in an embodiment of the present invention.
Fig. 5 is the schematic diagram of a scenario of the 4th kind of screen locking method provided in an embodiment of the present invention.
Fig. 6 is the schematic diagram of a scenario of the 5th kind of screen locking method provided in an embodiment of the present invention.
Fig. 7 is the schematic diagram of a scenario of the 6th kind of screen locking method provided in an embodiment of the present invention.
Fig. 8 is the schematic flow sheet of another screen locking method provided in an embodiment of the present invention.
Fig. 9 is a kind of structural representation of screen locking device provided in an embodiment of the present invention.
Figure 10 is the structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of screen locking method, device and terminal.To be described in detail respectively below.
In a preferred embodiment, there is provided a kind of screen locking method, as shown in figure 1, flow can be as follows:
101st, whether detection User Status changes, and the User Status includes sleep state or non-sleep state;If so, Step 102 is performed, if it is not, terminating flow.
In the embodiment of the present invention, sleep state is to refer to that user is in sleep state, and non-sleep state is to refer to that user is in not The state (can be regarded as waking state) of sleep.The present embodiment has formulated a set of User Status criterion, for determining user State.
In the present embodiment, the mode whether detection User Status changes can have various.Such as, user can be gathered Sleep characteristics information, the two neighboring sleep characteristics information to collecting is analyzed, according to the change of sleep characteristics information Determine whether User Status changes.That is, step " whether detection User Status changes " includes:
Obtain the first current sleep characteristics information of user;
When the first current sleep characteristics information changes, the second sleep characteristics information after change is obtained;
Determine whether User Status changes according to the first sleep characteristics information and the second sleep characteristics information.
Wherein, sleep characteristics information specifically can including the cardiac rate of user, respiratory rate etc. parameter.
In certain embodiments, can be according to different time points, time period etc., in advance the user's heartbeat to collecting The isoparametric value of rate, respiratory rate is weighted treatment, the integrated value after being weighted.Believe the integrated value as sleep characteristics Breath, and then determine User Status.That is, sleep characteristics information can include sleep characteristics value, then step is " special according to the first sleep Reference ceases and the second sleep characteristics information determines whether User Status changes " may include steps of:
First sleep characteristics value is compared with predetermined threshold value, the first comparative result is obtained, and compare knot according to first Fruit determines first user state;
Second sleep characteristics value is compared with predetermined threshold value, the second comparative result is obtained, and compare knot according to second Fruit determines second user state;
First user state is compared with second user state, if it is different, then determine that User Status changes, if It is identical, it is determined that User Status does not change.
In some embodiments, the sleep characteristics information can in itself be gathered by terminal, then process being slept Dormancy characteristic value.Additionally, the sleep characteristics information can also be gathered by other equipment, then terminal receives the number of equipment transmission According to obtain sleep characteristics information.
Such as, user can wear the Intelligent worn devices such as Intelligent bracelet, intelligent watch, and these Intelligent worn devices can be with Set up communication connection with terminal in advance (such as bluetooth connection, wifi are connected).Intelligent worn device can be by its sensing detection Function obtains the sleep characteristics information of user, and the information that then will be got is sent to terminal, and terminal is received by monitoring Sleep characteristics information judges whether User Status changes.
In practical application, above-mentioned sleep characteristics value can be by Intelligent worn device to cardiac rate, respiratory rate for collecting etc. Parameter is processed.Alternatively, it is also possible to be that the parameters such as cardiac rate, respiratory rate that Intelligent worn device will be collected are sent to After terminal, processed by terminal.The present invention is not especially limited to this.
102nd, the target unblock authentication information corresponding to current user state is obtained, wherein, it is right that unblock authentication information is used for Screen is unlocked.
In embodiments of the present invention, unlocking information of the unblock authentication information for needed for releasing when terminal screen is locked.Namely During terminal screen locking, after user need to be input into the correct unlocking pin based on the unblock authentication information, opening screen can be just unlocked.
, it is necessary to pre-build the mapping relations between User Status and unblock authentication information in practical application.Namely need to set Determine under sleep state corresponding unblock authentication information under corresponding unblock authentication information and non-sleep state.
103rd, when screen is in screen lock state, current unblock authentication information is replaced with into target unblock authentication information.
Wherein, current unblock authentication information is corresponding unblock authentication information under the User Status before change.Such as, use Family state turns to sleep state by non-sleep state change, then target unblock authentication information is corresponding unblock authentication under sleep state Information, current unblock authentication information is then corresponding unblock authentication information under non-sleep state.
In certain embodiments, unblock authentication information may include unlocking manner and cryptographic item, target unblock authentication information In the unlocking manner and cryptographic item of current unblock authentication information, at least one differs.Can specifically have following several Situation:
(1) target unblock authentication information is identical with the unlocking manner of current unblock authentication information, and password is differed.
(2) target unblock authentication information is differed with the unlocking manner of current unblock authentication information, and password is identical.
(3) target unblock authentication information is differed with the unlocking manner of current unblock authentication information, and password is differed.
Wherein, unlocking manner can have various, such as, and the side such as figure unblock, unlocked by fingerprint, character unblock, iris unblock Formula.
With reference to Fig. 2, the unlock interface figure of Fig. 2 front and rear terminal screens for User Status changes.In some implementation methods In, corresponding unlocking manner Xiang Kewei unlocked by fingerprint under setting non-sleep state (such as Home button A is provided with fingerprint module, Home button is pressed to unlock), cryptographic item is 1234.Unlocking manner under setting sleep state is (such as defeated for character is unlocked Enter character password to unlock), cryptographic item is 1234.When User Status changes, become by non-sleep state with User Status Turn to as a example by sleep state, unlocking manner switches to character to unlock by unlocked by fingerprint, and password is then constant.
In practical application, in order to further improve the security of end message, the cryptographic item under sleep state can be set It is set to the passwords different from non-sleep state, such as 5678.In addition, the unlocking manner under sleep state may also be set to figure solution Other unlocking manners such as lock, iris unblock.
With reference to Fig. 3, the unlock interface figure of Fig. 3 front and rear terminal screens for User Status changes.In some implementation methods In, it is empty that can set corresponding unblock authentication information under non-sleep state, namely without password screen locking.Under setting sleep state Unlocking manner is unlocked for character, and cryptographic item is 1234.Then when User Status changes, still with User Status by non-sleep State change according to unlocking manner as a example by sleep state, to be character unblock, the screens that cryptographic item is 1234 pairs of lockings are locked.
With reference to Fig. 4, the unlock interface figure of Fig. 4 front and rear terminal screens for User Status changes.In some implementation methods In, corresponding unlocking manner Xiang Kewei unlocked by fingerprint under setting non-sleep state, cryptographic item is 1234.Under setting sleep state Unlocking manner be character unblock, cryptographic item is 1234.When User Status changes, with User Status by sleep state Change is turned to as a example by non-sleep state, and unlocking manner switches to unlocked by fingerprint by character unblock, and password is then constant.
Similarly, in order to further improve the security of end message, the cryptographic item under non-sleep state can be set It is the passwords different from sleep state, such as 5678.In addition, the unlocking manner under non-sleep state may also be set to figure solution Other unlocking manners such as lock, iris unblock.
With reference to Fig. 5, the unlock interface figure of Fig. 5 front and rear terminal screens for User Status changes.Still with User Status by Sleep state change is turned to as a example by non-sleep state.In some embodiments, user's more quickly using terminal for convenience, can It is empty to set corresponding unblock authentication information under non-sleep state, namely without password screen locking.Unblock under setting sleep state Mode is unlocked for character, and cryptographic item is 1234.Then when User Status changes, still become by sleep state with User Status Turn to as a example by non-sleep state, screen lock is released from.
In certain embodiments, if current screen non-locking, in order to ensure the security of end message, can screen from When non-locking replaces with locking, by screen locking, while being encrypted to the screen according to current User Status.That is, Obtain after the target unblock authentication information corresponding to current user state, the method can also include:
If screen is in non-screen lock state, when screen locking instruction is received, instructed in response to screen locking and according to target solution Lock authentication information is locked to screen.
With reference to Fig. 6, before and after Fig. 6 changes for User Status, terminal screen when bright screen state is changed into screen lock state The scene graph of unlock interface.In some embodiments, such as, can set corresponding unlocking manner under non-sleep state can It is unlocked by fingerprint, cryptographic item is 1234.Unlocking manner under setting sleep state is character unblock, and cryptographic item is 1234. User Status changes (so that User Status is become by non-sleep state and turns to sleep state as an example) or receives user and is directed to When the screen locking of terminal is operated, triggering terminal receives screen locking instruction, and terminal will instruct lock-screen according to the screen locking, and according to unblock Mode is character unblock, the screen that cryptographic item is 1234 pairs of lockings is locked.
In practical application, in order to further improve the security of end message, the cryptographic item under sleep state can be set It is set to the passwords different from non-sleep state, such as 5678.In addition, the unlocking manner under sleep state may also be set to figure solution Other unlocking manners such as lock, iris unblock.
With reference to Fig. 7, before and after Fig. 7 changes for User Status, terminal screen when bright screen state is changed into screen lock state The scene graph of unlock interface.In some embodiments, similarly, corresponding unlocking manner under non-sleep state can be set Can be unlocked by fingerprint, cryptographic item is 1234.Unlocking manner under setting sleep state is character unblock, and cryptographic item is 5678. So that User Status is become by sleep state and turns to non-sleep state as an example, first it is detected that when user is in sleep state, triggering is eventually End receives screen locking instruction, and terminal will instruct lock-screen, and be character unblock, cryptographic item according to unlocking manner according to the screen locking For the screen of 1234 pairs of lockings is locked.Then when detecting User Status and changing, terminal is by unlocking manner by character Unblock switches to unlocked by fingerprint, while cryptographic item 1234 is replaced with into 5678.On the one hand end message security can be protected, separately One side unlocked by fingerprint can improve unblock speed.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of screen locking method, whether changed using detection User Status, The User Status includes sleep state or non-sleep state, when User Status change is detected, obtains current user state institute Corresponding target unlocks authentication information, wherein, unblock authentication information is used to be unlocked screen, and screen lock state is in screen When, current unblock authentication information is replaced with into target unblock authentication information.The program can be when User Status changes, will Unlocking screen authentication information under screen lock state replaces with the unblock authentication information under correspondence User Status, improves password switching Flexibility and end message security.
In a preferred embodiment, another screen locking method is also provided, will be in detail retouched by taking mobile terminal as an example below State.As shown in figure 8, flow can be as follows:
201st, whether mobile terminal detection User Status changes, and the User Status includes sleep state or non-sleep shape State.
In the embodiment of the present invention, sleep state is to refer to that user is in sleep state, and non-sleep state is to refer to that user is in not The state of sleep.
In the present embodiment, the mode whether detection User Status changes can have various.Such as, user can be gathered Sleep characteristics information, the two neighboring sleep characteristics information to collecting is analyzed, according to the change of sleep characteristics information Determine whether User Status changes.That is, step " whether detection User Status changes " includes:
Obtain the first current sleep characteristics information of user;
When the first current sleep characteristics information changes, the second sleep characteristics information after change is obtained;
Determine whether User Status changes according to the first sleep characteristics information and the second sleep characteristics information.
Wherein, sleep characteristics information specifically can including the cardiac rate of user, respiratory rate etc. parameter.
In certain embodiments, can be according to different time points, time period etc., in advance the user's heartbeat to collecting The isoparametric value of rate, respiratory rate is weighted treatment, the integrated value after being weighted.Believe the integrated value as sleep characteristics Breath, and then determine User Status.That is, sleep characteristics information can include sleep characteristics value, then step is " special according to the first sleep Reference ceases and the second sleep characteristics information determines whether User Status changes " may include steps of:
First sleep characteristics value is compared with predetermined threshold value, the first comparative result is obtained, and compare knot according to first Fruit determines first user state;
Second sleep characteristics value is compared with predetermined threshold value, the second comparative result is obtained, and compare knot according to second Fruit determines second user state;
First user state is compared with second user state, if it is different, then determine that User Status changes, if It is identical, it is determined that User Status does not change.
In some embodiments, the sleep characteristics information can in itself be gathered by terminal, then process being slept Dormancy characteristic value.Additionally, the sleep characteristics information can also be gathered by other equipment, then terminal receives the number of equipment transmission According to obtain sleep characteristics information.
Such as, user can wear the Intelligent worn devices such as Intelligent bracelet, intelligent watch, and these Intelligent worn devices can be with Set up communication connection with terminal in advance (such as bluetooth connection, wifi are connected).Intelligent worn device can be by its sensing detection Function obtains the sleep characteristics information of user, and the information that then will be got is sent to terminal, and terminal is received by monitoring Sleep characteristics information judges whether User Status changes.
In practical application, above-mentioned sleep characteristics value can be by Intelligent worn device to cardiac rate, respiratory rate for collecting etc. Parameter is processed.Alternatively, it is also possible to be that the parameters such as cardiac rate, respiratory rate that Intelligent worn device will be collected are sent to After terminal, processed by terminal.The present invention is not especially limited to this.
202nd, mobile terminal obtains the target unblock mirror corresponding to current user state when User Status change is detected Power information, wherein, unblock authentication information is used to be unlocked screen.
In embodiments of the present invention, unlocking information of the unblock authentication information for needed for releasing when terminal screen is locked.Namely During terminal screen locking, after user need to be input into the correct unlocking pin based on the unblock authentication information, opening screen can be just unlocked.
, it is necessary to pre-build the mapping relations between User Status and unblock authentication information in practical application.Namely need to set Determine under sleep state corresponding unblock authentication information under corresponding unblock authentication information and non-sleep state.
203rd, mobile terminal determines that screen is presently in state.
In the present embodiment, state described in screen can include screen lock state and non-screen lock state.Can set in the terminal A screen detection module is put, for monitoring screen state.
204th, when screen is in screen lock state, current unblock authentication information is replaced with target unblock authentication by mobile terminal Information.
In certain embodiments, unblock authentication information may include unlocking manner and cryptographic item, target unblock authentication information In the unlocking manner and cryptographic item of current unblock authentication information, at least one differs.Can specifically have following several Situation:
(1) target unblock authentication information is identical with the unlocking manner of current unblock authentication information, and password is differed.
(2) target unblock authentication information is differed with the unlocking manner of current unblock authentication information, and password is identical.
(3) target unblock authentication information is differed with the unlocking manner of current unblock authentication information, and password is differed.
Wherein, unlocking manner can have various, such as, and the side such as figure unblock, unlocked by fingerprint, character unblock, iris unblock Formula.
In some embodiments, unlocking manner Xiang Kewei unlocked by fingerprint corresponding under setting non-sleep state, password Item is 1234.Unlocking manner under setting sleep state is character unblock, and cryptographic item is 1234.Changed in User Status When, so that User Status is become by non-sleep state and turns to sleep state as an example, unlocking manner replaces with character and unlocks by unlocked by fingerprint, Password is then constant.
In practical application, in order to further improve the security of end message, the cryptographic item under sleep state can be set It is set to the passwords different from non-sleep state, such as 5678.In addition, the unlocking manner under sleep state may also be set to figure solution Other unlocking manners such as lock, iris unblock.
205th, when screen is in non-screen lock state, mobile terminal unlocks authentication information and screen is locked according to target It is fixed.
In certain embodiments, if current screen non-locking, in order to ensure the security of end message, can screen from When non-locking replaces with locking, by screen locking, while being encrypted to the screen according to current User Status.
In some embodiments, such as, corresponding unlocking manner Xiang Kewei fingerprint solutions under non-sleep state can be set Lock, cryptographic item is 1234.Unlocking manner under setting sleep state is character unblock, and cryptographic item is 1234.In User Status With unlocking manner it is character unblock so that User Status is become by non-sleep state and turns to sleep state as an example, close when changing Code item is 1234 pairs of screen encryptions of locking.
In practical application, in order to further improve the security of end message, the cryptographic item under sleep state can be set It is set to the passwords different from non-sleep state, such as 5678.In addition, the unlocking manner under sleep state may also be set to figure solution Other unlocking manners such as lock, iris unblock.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of screen locking method, whether User Status is detected by mobile terminal Change, when User Status change is detected, obtain the target unblock authentication information corresponding to current user state, then Determine screen status, when screen is in screen lock state, current unblock authentication information is replaced with target solution by mobile terminal Lock authentication information, when screen is in non-screen lock state, mobile terminal unlocks authentication information and screen is locked according to target. Unlocking screen authentication information under screen lock state can be replaced with correspondence user's shape by the program when User Status changes Unblock authentication information under state, improves the flexibility of password switching and the security of end message.
In still another embodiment of the process, a kind of screen locking device is also provided, the screen locking device can be with software or the shape of hardware Formula is integrated in the terminal, the terminal specifically can including mobile phone, panel computer, notebook computer etc. equipment.As shown in figure 9, should Screen locking device can include detection module 301, acquisition module 302, replacement module 303, wherein:
Detection module 301, for detecting whether User Status changes, the User Status includes sleep state or non-sleeps Dormancy state.
Sleep state is to refer to that user is in sleep state in the present embodiment, and non-sleep state is to refer to that user is in not sleeping State (can be regarded as waking state).
In certain embodiments, detection module 301 can include:
First acquisition submodule, the first sleep characteristics information current for obtaining user;
Second acquisition submodule, for when the first current sleep characteristics information changes, obtains the after change Two sleep characteristics information;
Determination sub-module, for whether determining User Status according to the first sleep characteristics information and the second sleep characteristics information Change.
Wherein, sleep characteristics information specifically can including the cardiac rate of user, respiratory rate etc. parameter.In some implementation methods In, the sleep characteristics information can in itself be gathered by terminal, then carried out processing and obtained sleep characteristics value.Additionally, the sleep is special Reference breath can also be gathered by other equipment, and then terminal receives the data of equipment transmission, to obtain sleep characteristics information.
In certain embodiments, sleep characteristics information includes sleep characteristics value;Determination sub-module is used for:
First sleep characteristics value is compared with predetermined threshold value, the first comparative result is obtained, and compare knot according to first Fruit determines first user state;
Second sleep characteristics value and the predetermined threshold value are compared, the second comparative result is obtained, and according to the second ratio Relatively result determines second user state;
First user state is compared with second user state, if it is different, then determine that User Status changes, if It is identical, it is determined that User Status does not change.
In some real modes, can be according to different time points, time period etc., in advance the user's heartbeat to collecting The isoparametric value of rate, respiratory rate is weighted treatment, the integrated value after being weighted.Using the integrated value as sleep characteristics value, And then determine User Status.
Acquisition module 302, for when detection module detects User Status and changes, obtaining corresponding to current user state Target unblock authentication information, wherein, unblock authentication information be used for screen is unlocked;
In embodiments of the present invention, unlocking information of the unblock authentication information for needed for releasing when terminal screen is locked.Namely During terminal screen locking, after user need to be input into the correct unlocking pin based on the unblock authentication information, opening screen can be just unlocked.
, it is necessary to pre-build the mapping relations between User Status and unblock authentication information in practical application.Namely need to set Determine under sleep state corresponding unblock authentication information under corresponding unblock authentication information and non-sleep state.
Replacement module 303, for when screen is in screen lock state, current unblock authentication information being replaced with into the target Unblock authentication information.
Wherein, current unblock authentication information is corresponding unblock authentication information under the User Status before change.Such as, use Family state turns to sleep state by non-sleep state change, then target unblock authentication information is corresponding unblock authentication under sleep state Information, current unblock authentication information is then corresponding unblock authentication information under non-sleep state.
In certain embodiments, unblock authentication information may include unlocking manner and cryptographic item, target unblock authentication information In the unlocking manner and cryptographic item of current unblock authentication information, at least one differs.Can specifically have following several Situation:
(1) target unblock authentication information is identical with the unlocking manner of current unblock authentication information, and password is differed.
(2) target unblock authentication information is differed with the unlocking manner of current unblock authentication information, and password is identical.
(3) target unblock authentication information is differed with the unlocking manner of current unblock authentication information, and password is differed.
Wherein, unlocking manner can have various, such as, and the side such as figure unblock, unlocked by fingerprint, character unblock, iris unblock Formula.
In some embodiments, the screen locking device can also include:
Locking module 304, for when screen is in non-screen lock state, if receiving screen locking instruction, in response to screen locking Instruct and authentication information is unlocked according to target and the screen is locked.
In specific implementation process, if current screen non-locking, in order to ensure the security of end message, can screen from When non-locking replaces with locking, by screen locking, while being encrypted to the screen according to current User Status.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of screen locking device, whether changed using detection User Status, The User Status includes sleep state or non-sleep state, when User Status change is detected, obtains current user state institute Corresponding target unlocks authentication information, wherein, unblock authentication information is used to be unlocked screen, and screen lock state is in screen When, current unblock authentication information is replaced with into target unblock authentication information.The program can be when User Status changes, will Unlocking screen authentication information under screen lock state replaces with the unblock authentication information under correspondence User Status, improves password switching Flexibility and end message security.
A kind of terminal is also provided in still another embodiment of the process, including memory, processor and storage are on a memory And the computer program that can be run on a processor, realize any of the above-described screen locking side during the computing device computer program Method.
The terminal can be but be not limited to mobile terminal, the terminal is retouched in detail by taking mobile terminal as an example below State.
Such as, refer to Figure 10, the mobile terminal 400 can include radio frequency (RF, Radio Frequency) circuit 401, Include memory 402, input module 403, display module 404, the biography of one or more computer-readable recording mediums Sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) module 407, include one or one The processor 408 of individual above processing core with and the part such as power supply 409.It will be understood by those skilled in the art that showing in Figure 10 The mobile terminal structure for going out does not constitute the restriction to mobile terminal, can include part more more or less than diagram, or Combine some parts, or different part arrangements.
Radio circuit 401 can be used to receive and send messages, or in communication process signal reception and transmission, especially, by base station Downlink information receive after, transfer to one or more than one processor 408 processed;In addition, up data is activation will be related to To base station.
Memory 402 can be used to store software program and module.Processor 408 is by running storage in memory 402 Software program and module, so as to perform various function application and data processing.Memory 402 can mainly include storage journey Sequence area and storage data field, wherein, the application program (ratio that storing program area can be needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored and use created number according to mobile terminal According to (such as voice data, phone directory etc.) etc..
Input module 403 can be used to receive the numeral or character information of input, and generation is set and function with user The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.
Display module 404 can be used to showing by user input information or be supplied to the information and mobile terminal of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Such as, display module 404 can show that mobile terminal after scanning recognition code obtains decoding data, starts according to decoding data Intended application respective interface.
Mobile terminal may also include at least one sensor 405, such as gravity sensor, motion sensor and other biographies Sensor.
Voicefrequency circuit 406 can provide the COBBAIF between user and mobile terminal by loudspeaker, microphone.Audio-frequency electric The voice data that road 406 will can receive is converted into electric signal, is transferred to loudspeaker, and it is defeated to be converted to voice signal by loudspeaker Go out;On the other hand, the voice signal of collection is converted to electric signal by microphone, and audio is converted to after being received by voicefrequency circuit 406 Data, then after voice data output processor 408 is processed, through radio circuit 401 being sent to such as another mobile terminal, or Person exports to memory 402 so as to further treatment voice data.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and mobile terminal can be with by wireless fidelity module 407 Help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet Access.
Processor 408 is the control centre of mobile terminal, using each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing software program and/or module of the storage in memory 402, and calls storage in storage Data in device 402, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Can Choosing, processor 408 may include one or more processing cores;Preferably, processor 408 can integrated application processor and modulation Demodulation processor, wherein, application processor mainly processes operating system, user interface and application program etc., modulation /demodulation treatment Device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 408.
Mobile terminal also includes the power supply 409 (such as battery) powered to all parts.Preferably, power supply can be by electricity Management system is logically contiguous with processor 408, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 409 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, mobile terminal can also bag bluetooth module, image it is first-class.
It is specific in the present embodiment, processor 408 in mobile terminal can according to following instruction, by one or one with On the corresponding executable file of process of application program be loaded into memory 402, and storage run by processor 408 exist Application program in memory 402, so as to realize various functions:
Whether detection User Status changes, and the User Status includes sleep state or non-sleep state, is detecting When User Status changes, the target unblock authentication information corresponding to current user state is obtained, wherein, unblock authentication information is used for Screen is unlocked, when screen is in screen lock state, current unblock authentication information target unblock authentication information is replaced with into.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of terminal, the terminal screen locking method is using detection User Status Whether change, the User Status includes sleep state or non-sleep state, when User Status change is detected, obtain and work as Target unblock authentication information corresponding to preceding User Status, wherein, unblock authentication information is used to be unlocked screen, in screen During in screen lock state, current unblock authentication information is replaced with into target unblock authentication information.The program can be in User Status When changing, the unlocking screen authentication information under screen lock state is replaced with into the unblock authentication information under correspondence User Status, Improve the flexibility of password switching and the security of end message.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable recording medium, storage Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, RandomAccess Memory), disk or CD etc..
A kind of screen locking method, device and the terminal for being provided the embodiment of the present invention above are described in detail, herein Middle application program specific case is set forth to principle of the invention and implementation method, and the explanation of above example is use Understand the method for the present invention and its core concept in help;Simultaneously for those skilled in the art, according to think of of the invention Think, be will change in specific embodiment and range of applications, in sum, this specification content should not be understood It is limitation of the present invention.

Claims (10)

1. a kind of screen locking method, it is characterised in that including:
Whether detection User Status changes, and the User Status includes sleep state or non-sleep state;
When User Status change is detected, the target unblock authentication information corresponding to current user state is obtained, wherein, unblock Authentication information is used to be unlocked screen;
When the screen is in screen lock state, current unblock authentication information is replaced with into the target unblock authentication information.
2. screen locking method as claimed in claim 1, it is characterised in that obtaining the unblock of the target corresponding to current user state After authentication information, methods described also includes:
If the screen is in non-screen lock state, when screen locking instruction is received, instructed in response to the screen locking and according to institute Target unblock authentication information is stated to lock the screen.
3. screen locking method as claimed in claim 1, it is characterised in that the step of whether the detection User Status changes Including:
Obtain the first current sleep characteristics information of user;
When the first current sleep characteristics information changes, the second sleep characteristics information after change is obtained;
Determine whether User Status changes according to the first sleep characteristics information and the second sleep characteristics information.
4. screen locking method as claimed in claim 3, it is characterised in that sleep characteristics information includes sleep characteristics value;Described Determine that the step of whether User Status changes includes according to the first sleep characteristics information and the second sleep characteristics information:
First sleep characteristics value is compared with predetermined threshold value, the first comparative result is obtained, and it is true according to the first comparative result Determine first user state;
Second sleep characteristics value and the predetermined threshold value are compared, the second comparative result is obtained, and compare knot according to second Fruit determines second user state;
First user state is compared with second user state, if it is different, then determine that User Status changes, if phase Together, it is determined that User Status does not change.
5. the screen locking method as described in claim any one of 1-4, it is characterised in that unblock authentication information includes unlocking manner And cryptographic item, in target unblock authentication information and the unlocking manner and cryptographic item of the current unblock authentication information, extremely Rare one differs.
6. a kind of screen locking device, it is characterised in that including:
Detection module, for detecting whether User Status changes, the User Status includes sleep state or non-sleep state;
Acquisition module, for when detection module detects User Status and changes, obtaining the target corresponding to current user state Unblock authentication information, wherein, unblock authentication information is used to be unlocked screen;
Replacement module, for when the screen is in screen lock state, current unblock authentication information being replaced with into the target solution Lock authentication information.
7. screen locking device as claimed in claim 6, it is characterised in that described device also includes:
Locking module, for when the screen is in non-screen lock state, if receiving screen locking instruction, in response to the screen locking Instruct and authentication information is unlocked according to the target and the screen is locked.
8. screen locking device as claimed in claim 6, it is characterised in that the detection module includes:
First acquisition submodule, the first sleep characteristics information current for obtaining user;
Second acquisition submodule, for when the first current sleep characteristics information changes, obtaining the after change Two sleep characteristics information;
Determination sub-module, for determining whether User Status occurs according to the first sleep characteristics information and the second sleep characteristics information Change.
9. screen locking device as claimed in claim 8, it is characterised in that sleep characteristics information includes sleep characteristics value;It is described true Stator modules are used for:
First sleep characteristics value is compared with predetermined threshold value, the first comparative result is obtained, and it is true according to the first comparative result Determine first user state;
Second sleep characteristics value and the predetermined threshold value are compared, the second comparative result is obtained, and compare knot according to second Fruit determines second user state;
First user state is compared with second user state, if it is different, then determine that User Status changes, if phase Together, it is determined that User Status does not change.
10. a kind of terminal, it is characterised in that including memory, processor and storage on the memory and can be at the place The computer program run on reason device, realizes such as claim any one of 1-5 during computer program described in the computing device Described screen locking method.
CN201710061323.5A 2017-01-25 2017-01-25 Screen locking method, device and terminal Active CN106845184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710061323.5A CN106845184B (en) 2017-01-25 2017-01-25 Screen locking method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710061323.5A CN106845184B (en) 2017-01-25 2017-01-25 Screen locking method, device and terminal

Publications (2)

Publication Number Publication Date
CN106845184A true CN106845184A (en) 2017-06-13
CN106845184B CN106845184B (en) 2019-12-03

Family

ID=59121153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710061323.5A Active CN106845184B (en) 2017-01-25 2017-01-25 Screen locking method, device and terminal

Country Status (1)

Country Link
CN (1) CN106845184B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107808077A (en) * 2017-10-31 2018-03-16 北京小米移动软件有限公司 For controlling the method, apparatus and storage medium of terminal unlocking function
CN109002340A (en) * 2018-07-12 2018-12-14 维沃移动通信有限公司 A kind of screen locking method and electronic equipment
CN110012168A (en) * 2019-04-03 2019-07-12 广东乐心医疗电子股份有限公司 Method and equipment for locking intelligent terminal
CN115442474A (en) * 2021-06-02 2022-12-06 华为技术有限公司 Information protection method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140002375A1 (en) * 2012-06-29 2014-01-02 Daniel Tobias RYDENHAG System and method for controlling an electronic device
CN104850995A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Operation executing method and device
CN104881121A (en) * 2015-05-28 2015-09-02 小米科技有限责任公司 Prompting method and device
CN105516459A (en) * 2015-11-25 2016-04-20 广东欧珀移动通信有限公司 Antitheft method and apparatus for terminal
CN105611531A (en) * 2015-10-30 2016-05-25 东莞酷派软件技术有限公司 Terminal control method, terminal control device and terminal
CN105678133A (en) * 2016-01-06 2016-06-15 北京小米移动软件有限公司 Terminal unlocking method and device
CN105930700A (en) * 2016-04-13 2016-09-07 广东欧珀移动通信有限公司 Data processing method, electronic terminal and data processing system
CN105975828A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Unlocking method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140002375A1 (en) * 2012-06-29 2014-01-02 Daniel Tobias RYDENHAG System and method for controlling an electronic device
CN104850995A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Operation executing method and device
CN104881121A (en) * 2015-05-28 2015-09-02 小米科技有限责任公司 Prompting method and device
CN105611531A (en) * 2015-10-30 2016-05-25 东莞酷派软件技术有限公司 Terminal control method, terminal control device and terminal
CN105516459A (en) * 2015-11-25 2016-04-20 广东欧珀移动通信有限公司 Antitheft method and apparatus for terminal
CN105678133A (en) * 2016-01-06 2016-06-15 北京小米移动软件有限公司 Terminal unlocking method and device
CN105930700A (en) * 2016-04-13 2016-09-07 广东欧珀移动通信有限公司 Data processing method, electronic terminal and data processing system
CN105975828A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Unlocking method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107808077A (en) * 2017-10-31 2018-03-16 北京小米移动软件有限公司 For controlling the method, apparatus and storage medium of terminal unlocking function
CN109002340A (en) * 2018-07-12 2018-12-14 维沃移动通信有限公司 A kind of screen locking method and electronic equipment
CN110012168A (en) * 2019-04-03 2019-07-12 广东乐心医疗电子股份有限公司 Method and equipment for locking intelligent terminal
CN115442474A (en) * 2021-06-02 2022-12-06 华为技术有限公司 Information protection method and electronic equipment

Also Published As

Publication number Publication date
CN106845184B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN106845184A (en) screen locking method, device and terminal
CN106020782B (en) A kind of unlocked by fingerprint control method and mobile terminal
EP3644203B1 (en) Unlocking control method and related product
CN103488924A (en) Terminal unlocking processing method, device and equipment
CN107426806B (en) Method and device for transmitting data by Internet of things terminal
JP2011259172A (en) Communication device, communication system, mode changeover method and program
US20220078618A1 (en) Electronic apparatus and method of selectively applying security mode in mobile device
CN104901805B (en) A kind of identification authentication methods, devices and systems
CN104767863A (en) Terminal screen unlocking method and terminal
CN109547054A (en) Signal control circuit, terminal device and signal control method
JP2017152947A (en) Portable terminal
CN104919392A (en) Wearable device and data transmission method
CN109284150A (en) A kind of method and terminal starting application program
CN104158790A (en) User login method, device and equipment
CN109388925A (en) A kind of mobile device wakes up and unlocking method
CN113613197B (en) Pairing method and device for vehicle and digital key
CN106055947A (en) Method and apparatus for unlocking mobile terminal through fingerprint, and mobile terminal
CN106886702A (en) A kind of unlocked by fingerprint method and relevant device
CN108985047A (en) A kind of unlocking method, terminal, wearable device and computer readable storage medium
CN106980439A (en) The method and device of hiden application icon
CN109325334A (en) A kind of touch control terminal control method and touch control terminal
CN110312035A (en) A kind of control method of terminal, mobile terminal and computer readable storage medium
CN106940770A (en) A kind of screen locking method, device and terminal
CN108932486B (en) Fingerprint matching method and device and electronic device
CN107705121B (en) Security protection method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant