CN106845184B - Screen locking method, device and terminal - Google Patents
Screen locking method, device and terminal Download PDFInfo
- Publication number
- CN106845184B CN106845184B CN201710061323.5A CN201710061323A CN106845184B CN 106845184 B CN106845184 B CN 106845184B CN 201710061323 A CN201710061323 A CN 201710061323A CN 106845184 B CN106845184 B CN 106845184B
- Authority
- CN
- China
- Prior art keywords
- screen
- authentication information
- state
- unlock
- user
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04847—Interaction 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)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of screen locking method, device and terminals.Whether the screen locking method is changed using detection User Status, the User Status includes sleep state or non-sleep state, when detecting User Status variation, it obtains target corresponding to current user state and unlocks authentication information, wherein, unlock authentication information is for being unlocked screen, and when screen is in screen lock state, current unlock authentication information is replaced with target unlock authentication information.Unlocking screen authentication information under screen lock state can be replaced with the unlock authentication information under corresponding User Status, improve the safety of end message by the program when User Status changes.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of screen locking methods, device and terminal.
Background technique
The intelligent terminals such as smart phone, tablet computer it is commonly used under, intelligent terminal becomes user and carries
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.For example, existing because of the risk for causing finger to be borrowed progress terminal unlocking of sleeping soundly, causing when user uses unlocked by fingerprint
End message safety is poor.
Summary of the invention
The embodiment of the present invention provides a kind of screen locking method, device and terminal, and the safety of end message can be improved.
The embodiment of the present invention provides a kind of screen locking method, comprising:
Whether detection User Status changes, which includes sleep state or non-sleep state;
When detecting User Status variation, obtains target corresponding to current user state and unlocks authentication information, wherein
Unlock authentication information is for being unlocked screen;
When the screen is in screen lock state, current unlock authentication information is replaced with into the target unlock authentication letter
Breath.
Correspondingly, the embodiment of the invention provides a kind of terminals, comprising:
Detection module, for detecting whether User Status changes, which includes sleep state or non-sleep
State;
Module is obtained, for obtaining corresponding to current user state when detection module detects User Status variation
Target unlocks authentication information, wherein unlock authentication information is for being unlocked screen;
Replacement module, for when the screen is in screen lock state, current unlock authentication information to be replaced with the mesh
Mark unlock authentication information.
Correspondingly, the embodiment of the invention provides a kind of terminal, including memory, processor and it is stored in the memory
Computer program that is upper and can running on the processor, the processor is realized above-mentioned when executing the computer program
Screen locking method.
Whether screen locking method provided in an embodiment of the present invention is changed using detection User Status, the User Status packet
Sleep state or non-sleep state are included, when detecting User Status variation, obtains target solution corresponding to current user state
Lock authentication information, wherein unlock authentication information, when screen is in screen lock state, will be solved currently for being unlocked to screen
Lock authentication information replaces with target unlock authentication information.The program can be when User Status changes, will be under screen lock state
Unlocking screen authentication information replace with the unlock authentication information under corresponding User Status, improve password switching flexibility and
The safety of end message.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of flow diagram 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 of 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 flow diagram of another screen locking method provided in an embodiment of the present invention.
Fig. 9 is a kind of structural schematic diagram of screen locking device provided in an embodiment of the present invention.
Figure 10 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of screen locking method, device and terminal.It will be described in detail respectively below.
In a preferred embodiment, a kind of screen locking method is provided, as shown in Figure 1, process can be such that
101, whether detection User Status changes, which includes sleep state or non-sleep state;If so,
Step 102 is executed, if it is not, terminating process.
In the embodiment of the present invention, sleep state refers to that user is in sleep state, and non-sleep state refers 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, detection the whether changed mode of User Status can there are many.For example, user can be acquired
Sleep characteristics information, collected two neighboring sleep characteristics information is analyzed, according to the variation 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;
The second sleep characteristics information when the first current sleep characteristics information changes, after obtaining variation;
Determine whether User Status changes according to the first sleep characteristics information and the second sleep characteristics information.
Wherein, sleep characteristics information can specifically include the parameters such as the cardiac rate of user, respiratory rate.
It in some embodiments, can be according to different time points, period etc., in advance to collected user's heartbeat
The value of the parameters such as rate, respiratory rate is weighted processing, the integrated value after being weighted.Believe the integrated value as sleep characteristics
Breath, and then determine User Status.That is, sleep characteristics information may include sleep characteristics value, then step is " special according to the first sleep
Reference breath and the second sleep characteristics information determine whether User Status changes " it may include steps of:
First sleep characteristics value is compared with preset threshold, obtains the first comparison result, and compare knot according to first
Fruit determines the first User Status;
Second sleep characteristics value is compared with preset threshold, obtains the second comparison result, and compare knot according to second
Fruit determines second user state;
First User Status 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, which can be acquired by terminal itself, then handled and slept
Dormancy characteristic value.In addition, the sleep characteristics information can also be acquired by other equipment, then terminal receives the number of equipment transmission
According to obtain sleep characteristics information.
For example, user can wear the intelligent wearable devices such as Intelligent bracelet, smartwatch, these intelligent wearable devices can be with
Establish communication connection with terminal in advance (such as bluetooth connection, wifi is connect).Intelligent wearable device can pass through its sensing detection
Function obtains the sleep characteristics information of user, and the information that then will acquire 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 wearable device to collected cardiac rate, respiratory rate etc.
Parameter is handled to obtain.Alternatively, it is also possible to being that the parameters such as collected cardiac rate, respiratory rate are sent to by intelligent wearable device
After terminal, handled to obtain by terminal.The present invention is not especially limited this.
102, obtain current user state corresponding to target unlock authentication information, wherein unlock authentication information for pair
Screen is unlocked.
In embodiments of the present invention, unlock authentication information is unlocking information required when releasing terminal screen lock.Namely
When terminal screen locking, after user need to input the correct unlocking pin based on the unlock authentication information, opening screen can be just unlocked.
In practical application, needs to pre-establish User Status and unlock the mapping relations between authentication information.Namely it need to set
Determine under sleep state corresponding unlock authentication information under corresponding unlock authentication information and non-sleep state.
103, when screen is in screen lock state, current unlock authentication information is replaced with into target unlock authentication information.
Wherein, current unlock authentication information is unlock authentication information corresponding under the User Status before variation.For example, with
Family state is sleep state by non-sleep state variation, then target unlock authentication information is corresponding unlock authentication under sleep state
Information, the current authentication information that unlocks then is corresponding unlock authentication information under non-sleep state.
In some embodiments, unlock authentication information may include unlocking manner item and cryptographic item, and target unlocks authentication information
In the unlocking manner item and cryptographic item of current unlock authentication information, at least one not identical.Can specifically have following several
Situation:
(1) target unlock authentication information is identical as the current unlock unlocking manner of authentication information, and password is not identical.
(2) target unlock authentication information is not identical as the unlocking manner of current unlock authentication information, and password is identical.
(3) target unlock authentication information is not identical as the unlocking manner of current unlock authentication information, and password is not identical.
Wherein, unlocking manner can there are many, for example, figure unlock, unlocked by fingerprint, character unlock, iris unlock etc. side
Formula.
With reference to Fig. 2, Fig. 2 is that User Status changes the unlock interface figure of front and back terminal screen.In some embodiments
In, set unlocking manner Xiang Kewei unlocked by fingerprint corresponding under non-sleep state (such as home screen button A is equipped with fingerprint module,
Home screen button is pressed to unlock), cryptographic item 1234.The unlocking manner item set under sleep state is (such as defeated as character unlock
Enter character password to unlock), cryptographic item 1234.When User Status changes, become with User Status by non-sleep state
For turning to sleep state, unlocking manner is switched to character by unlocked by fingerprint and unlocks, and password is then constant.
In practical application, in order to further increase the safety of end message, the cryptographic item under sleep state can be set
It is set to the password different from non-sleep state, such as 5678.In addition, the unlocking manner item under sleep state may also be set to figure solution
Other unlocking manners such as lock, iris unlock.
With reference to Fig. 3, Fig. 3 is that User Status changes the unlock interface figure of front and back terminal screen.In some embodiments
In, unlock authentication information corresponding under non-sleep state can be set as sky, namely without password screen locking.It sets under sleep state
Unlocking manner item is character unlock, cryptographic item 1234.Then when User Status changes, still with User Status by non-sleep
State change is for sleep state, according to unlocking manner item is character unlock, cryptographic item is that 1234 pairs of screens locked are locked.
With reference to Fig. 4, Fig. 4 is that User Status changes the unlock interface figure of front and back terminal screen.In some embodiments
In, set unlocking manner Xiang Kewei unlocked by fingerprint corresponding under non-sleep state, cryptographic item 1234.It sets under sleep state
Unlocking manner item be character unlock, cryptographic item 1234.When User Status changes, with User Status by sleep state
Variation is for non-sleep state, unlocking manner is switched to unlocked by fingerprint by character unlock, and password is then constant.
Similarly, in order to further increase the safety of end message, the cryptographic item under non-sleep state can be set
For the password different from sleep state, such as 5678.In addition, the unlocking manner item under non-sleep state may also be set to figure solution
Other unlocking manners such as lock, iris unlock.
With reference to Fig. 5, Fig. 5 is that User Status changes the unlock interface figure of front and back terminal screen.Still with User Status by
Sleep state variation is for non-sleep state.It in some embodiments, can in order to facilitate user's more quickly using terminal
Unlock authentication information corresponding under non-sleep state is set as sky, namely without password screen locking.Set the unlock under sleep state
Mode item is character unlock, cryptographic item 1234.Then when User Status changes, still become with User Status by sleep state
For turning to non-sleep state, screen lock is released from.
In some embodiments, if current screen is unlocked, in order to guarantee the safety of end message, can screen from
It is unlocked when replacing with locking, the screen is encrypted by screen locking, while according to current User Status.That is, In
After obtaining the unlock authentication information of target corresponding to current user state, this method can also include:
If screen is in non-locking screen state, when receiving screen locking instruction, instructed in response to screen locking and according to target solution
Lock authentication information locks screen.
With reference to Fig. 6, Fig. 6 is screen when terminal becomes screen lock state from bright screen state before and after User Status changes
The scene figure of unlock interface.In some embodiments, for example, the unlocking manner item corresponding to can setting under non-sleep state can
For unlocked by fingerprint, cryptographic item 1234.The unlocking manner item set under sleep state is unlocked as character, cryptographic item 1234.In
User Status changes (by taking User Status is sleep state by non-sleep state variation as an example) or receives user and is directed to
When the screen locking operation of terminal, triggering terminal receives screen locking instruction, and terminal will instruct lock-screen according to the screen locking, and according to unlock
The screen locking that mode item is character unlock, cryptographic item is 1234 pairs of lockings.
In practical application, in order to further increase the safety of end message, the cryptographic item under sleep state can be set
It is set to the password different from non-sleep state, such as 5678.In addition, the unlocking manner item under sleep state may also be set to figure solution
Other unlocking manners such as lock, iris unlock.
With reference to Fig. 7, Fig. 7 is screen when terminal becomes screen lock state from bright screen state before and after User Status changes
The scene figure of unlock interface.In some embodiments, similarly, unlocking manner item corresponding under non-sleep state can be set
It can be unlocked by fingerprint, cryptographic item 1234.The unlocking manner item set under sleep state is unlocked as character, cryptographic item 5678.
By taking User Status is non-sleep state by sleep state variation as an example, first it is detected that triggering is eventually when user is in sleep state
End receives screen locking instruction, and terminal will instruct lock-screen according to the screen locking, and be character unlock, cryptographic item according to unlocking manner item
For the 1234 pairs of screen locked lockings.Then when detecting that User Status changes, terminal is by unlocking manner item by character
Unlock is switched to unlocked by fingerprint, while cryptographic item 1234 is replaced with 5678.On the one hand it can protect end message safety, separately
Unlock speed can be improved in one side unlocked by fingerprint.
From the foregoing, it will be observed that whether changed the embodiment of the invention provides a kind of screen locking method using detection User Status,
The User Status includes that sleep state or non-sleep state obtain current user state institute when detecting User Status variation
Corresponding target unlocks authentication information, wherein unlock authentication information is in screen lock state in screen for being unlocked to screen
When, current unlock authentication information is replaced with into target unlock authentication information.The program can be when User Status changes, will
Unlocking screen authentication information under screen lock state replaces with the unlock authentication information under corresponding User Status, improves password switching
Flexibility and end message safety.
In a preferred embodiment, another screen locking method is also provided, will be retouched in detail by taking mobile terminal as an example below
It states.As shown in figure 8, process can be such that
201, whether mobile terminal detection User Status changes, which includes sleep state or non-sleep shape
State.
In the embodiment of the present invention, sleep state refers to that user is in sleep state, and non-sleep state refers to that user is in not
The state of sleep.
In the present embodiment, detection the whether changed mode of User Status can there are many.For example, user can be acquired
Sleep characteristics information, collected two neighboring sleep characteristics information is analyzed, according to the variation 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;
The second sleep characteristics information when the first current sleep characteristics information changes, after obtaining variation;
Determine whether User Status changes according to the first sleep characteristics information and the second sleep characteristics information.
Wherein, sleep characteristics information can specifically include the parameters such as the cardiac rate of user, respiratory rate.
It in some embodiments, can be according to different time points, period etc., in advance to collected user's heartbeat
The value of the parameters such as rate, respiratory rate is weighted processing, the integrated value after being weighted.Believe the integrated value as sleep characteristics
Breath, and then determine User Status.That is, sleep characteristics information may include sleep characteristics value, then step is " special according to the first sleep
Reference breath and the second sleep characteristics information determine whether User Status changes " it may include steps of:
First sleep characteristics value is compared with preset threshold, obtains the first comparison result, and compare knot according to first
Fruit determines the first User Status;
Second sleep characteristics value is compared with preset threshold, obtains the second comparison result, and compare knot according to second
Fruit determines second user state;
First User Status 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, which can be acquired by terminal itself, then handled and slept
Dormancy characteristic value.In addition, the sleep characteristics information can also be acquired by other equipment, then terminal receives the number of equipment transmission
According to obtain sleep characteristics information.
For example, user can wear the intelligent wearable devices such as Intelligent bracelet, smartwatch, these intelligent wearable devices can be with
Establish communication connection with terminal in advance (such as bluetooth connection, wifi is connect).Intelligent wearable device can pass through its sensing detection
Function obtains the sleep characteristics information of user, and the information that then will acquire 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 wearable device to collected cardiac rate, respiratory rate etc.
Parameter is handled to obtain.Alternatively, it is also possible to being that the parameters such as collected cardiac rate, respiratory rate are sent to by intelligent wearable device
After terminal, handled to obtain by terminal.The present invention is not especially limited this.
202, mobile terminal obtains the unlock mirror of target corresponding to current user state when detecting User Status variation
Weigh information, wherein unlock authentication information is for being unlocked screen.
In embodiments of the present invention, unlock authentication information is unlocking information required when releasing terminal screen lock.Namely
When terminal screen locking, after user need to input the correct unlocking pin based on the unlock authentication information, opening screen can be just unlocked.
In practical application, needs to pre-establish User Status and unlock the mapping relations between authentication information.Namely it need to set
Determine under sleep state corresponding unlock authentication information under corresponding unlock authentication information and non-sleep state.
203, mobile terminal determines that screen is presently in state.
In the present embodiment, state described in screen may include screen lock state and non-locking screen state.It can set in the terminal
A screen detection module is set, monitoring screen state is used for.
204, when screen is in screen lock state, current unlock authentication information is replaced with target unlock authentication by mobile terminal
Information.
In some embodiments, unlock authentication information may include unlocking manner item and cryptographic item, and target unlocks authentication information
In the unlocking manner item and cryptographic item of current unlock authentication information, at least one not identical.Can specifically have following several
Situation:
(1) target unlock authentication information is identical as the current unlock unlocking manner of authentication information, and password is not identical.
(2) target unlock authentication information is not identical as the unlocking manner of current unlock authentication information, and password is identical.
(3) target unlock authentication information is not identical as the unlocking manner of current unlock authentication information, and password is not identical.
Wherein, unlocking manner can there are many, for example, figure unlock, unlocked by fingerprint, character unlock, iris unlock etc. side
Formula.
In some embodiments, unlocking manner Xiang Kewei unlocked by fingerprint corresponding under non-sleep state, password are set
Item is 1234.The unlocking manner item set under sleep state is unlocked as character, cryptographic item 1234.It changes in User Status
When, by taking User Status is sleep state by non-sleep state variation as an example, unlocking manner replaces with character by unlocked by fingerprint and unlocks,
Password is then constant.
In practical application, in order to further increase the safety of end message, the cryptographic item under sleep state can be set
It is set to the password different from non-sleep state, such as 5678.In addition, the unlocking manner item under sleep state may also be set to figure solution
Other unlocking manners such as lock, iris unlock.
205, when screen is in non-locking screen state, mobile terminal unlocks authentication information according to target and locks to screen
It is fixed.
In some embodiments, if current screen is unlocked, in order to guarantee the safety of end message, can screen from
It is unlocked when replacing with locking, the screen is encrypted by screen locking, while according to current User Status.
In some embodiments, for example, unlocking manner Xiang Kewei fingerprint solution corresponding under non-sleep state can be set
Lock, cryptographic item 1234.The unlocking manner item set under sleep state is unlocked as character, cryptographic item 1234.In User Status
When changing, by taking User Status is sleep state by non-sleep state variation as an example, is unlocked using unlocking manner item as character, is close
Code item is the screen encryption of 1234 pairs of lockings.
In practical application, in order to further increase the safety of end message, the cryptographic item under sleep state can be set
It is set to the password different from non-sleep state, such as 5678.In addition, the unlocking manner item under sleep state may also be set to figure solution
Other unlocking manners such as lock, iris unlock.
From the foregoing, it will be observed that whether detecting User Status by mobile terminal the embodiment of the invention provides a kind of screen locking method
It changes, when detecting User Status variation, obtains target corresponding to current user state and unlock authentication information, then
Determine screen status, when screen is in screen lock state, current unlock authentication information is replaced with target solution by mobile terminal
Authentication information is locked, when screen is in non-locking screen state, mobile terminal unlocks authentication information according to target and locks to screen.
Unlocking screen authentication information under screen lock state can be replaced with corresponding user's shape when User Status changes by the program
Unlock authentication information under state improves the flexibility of password switching and the safety of end message.
In still another embodiment of the process, a kind of screen locking device is also provided, which can be with the shape of software or hardware
Formula is integrated in the terminal, which can specifically include the equipment such as mobile phone, tablet computer, laptop.As shown in figure 9, should
Screen locking device may include detection module 301, obtain module 302, replacement module 303, in which:
Detection module 301, for detecting whether User Status changes, which includes sleep state or non-sleeps
Dormancy state.
In the present embodiment sleep state refers to that user is in sleep state, and non-sleep state refers to that user is in and do not sleep
State (can be regarded as waking state).
In some embodiments, detection module 301 may include:
First acquisition submodule, for obtaining the first current sleep characteristics information of user;
Second acquisition submodule, for when the first current sleep characteristics information changes, after obtaining variation the
Two sleep characteristics information;
Submodule is determined, for whether determining User Status according to the first sleep characteristics information and the second sleep characteristics information
It changes.
Wherein, sleep characteristics information can specifically include the parameters such as the cardiac rate of user, respiratory rate.In some embodiments
In, which can be acquired by terminal itself, then be handled to obtain sleep characteristics value.In addition, the sleep is special
Reference breath can also be acquired by other equipment, and then terminal receives the data of equipment transmission, to obtain sleep characteristics information.
In some embodiments, sleep characteristics information includes sleep characteristics value;Determine that submodule is used for:
First sleep characteristics value is compared with preset threshold, obtains the first comparison result, and compare knot according to first
Fruit determines the first User Status;
Second sleep characteristics value is compared with the preset threshold, obtains the second comparison result, and according to the second ratio
Relatively result determines second user state;
First User Status 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.
It, can be according to different time points, period etc., in advance to collected user's heartbeat in some real modes
The value of the parameters such as rate, respiratory rate is weighted processing, the integrated value after being weighted.Using the integrated value as sleep characteristics value,
And then determine User Status.
Module 302 is obtained, for obtaining corresponding to current user state when detection module detects User Status variation
Target unlock authentication information, wherein unlock authentication information is for being unlocked screen;
In embodiments of the present invention, unlock authentication information is unlocking information required when releasing terminal screen lock.Namely
When terminal screen locking, after user need to input the correct unlocking pin based on the unlock authentication information, opening screen can be just unlocked.
In practical application, needs to pre-establish User Status and unlock the mapping relations between authentication information.Namely it need to set
Determine under sleep state corresponding unlock authentication information under corresponding unlock authentication information and non-sleep state.
Replacement module 303, for when screen is in screen lock state, current unlock authentication information to be replaced with the target
Unlock authentication information.
Wherein, current unlock authentication information is unlock authentication information corresponding under the User Status before variation.For example, with
Family state is sleep state by non-sleep state variation, then target unlock authentication information is corresponding unlock authentication under sleep state
Information, the current authentication information that unlocks then is corresponding unlock authentication information under non-sleep state.
In some embodiments, unlock authentication information may include unlocking manner item and cryptographic item, and target unlocks authentication information
In the unlocking manner item and cryptographic item of current unlock authentication information, at least one not identical.Can specifically have following several
Situation:
(1) target unlock authentication information is identical as the current unlock unlocking manner of authentication information, and password is not identical.
(2) target unlock authentication information is not identical as the unlocking manner of current unlock authentication information, and password is identical.
(3) target unlock authentication information is not identical as the unlocking manner of current unlock authentication information, and password is not identical.
Wherein, unlocking manner can there are many, for example, figure unlock, unlocked by fingerprint, character unlock, iris unlock etc. side
Formula.
In some embodiments, which can also include:
Locking module 304, for being instructed if receiving screen locking, in response to screen locking when screen is in non-locking screen state
It instructs and authentication information is unlocked according to target and the screen is locked.
In specific implementation process, if current screen is unlocked, in order to guarantee the safety of end message, can screen from
It is unlocked when replacing with locking, the screen is encrypted by screen locking, while according to current User Status.
From the foregoing, it will be observed that whether changed the embodiment of the invention provides a kind of screen locking device using detection User Status,
The User Status includes that sleep state or non-sleep state obtain current user state institute when detecting User Status variation
Corresponding target unlocks authentication information, wherein unlock authentication information is in screen lock state in screen for being unlocked to screen
When, current unlock authentication information is replaced with into target unlock authentication information.The program can be when User Status changes, will
Unlocking screen authentication information under screen lock state replaces with the unlock authentication information under corresponding User Status, improves password switching
Flexibility and end message safety.
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, the processor realize any of the above-described screen locking side when executing the computer program
Method.
The terminal can be but be not limited to mobile terminal, be retouched in detail by taking mobile terminal as an example to the terminal below
It states.
For example, referring to FIG. 10, the mobile terminal 400 may include radio frequency (RF, Radio Frequency) circuit 401,
It includes one or more the memory 402 of computer readable storage medium, input module 403, display module 404, pass
Sensor 405, Wireless Fidelity (WiFi, Wireless Fidelity) module 407, includes one or one at voicefrequency circuit 406
The processor 408 of a above processing core with and the components such as power supply 409.It will be understood by those skilled in the art that showing in Figure 10
Mobile terminal structure out does not constitute the restriction to mobile terminal, may include components more more or fewer than diagram, or
Combine certain components or different component layouts.
Radio circuit 401 can be used for receiving and sending messages or communication process in signal send and receive, particularly, by base station
Downlink information receive after, transfer to one or more than one processor 408 processing;In addition, the data for being related to uplink are sent
To base station.
Memory 402 can be used for storing software program and module.Processor 408 is stored in memory 402 by operation
Software program and module, thereby executing various function application and data processing.Memory 402 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to mobile terminal
According to (such as audio data, phone directory etc.) etc..
Input module 403 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.
Display module 404 can be used for showing information input by user or the information and mobile terminal that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.
For example, being started after display module 404 can show that mobile terminal obtains decoding data by scanning recognition code according to decoding data
Target 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 audio interface between user and mobile terminal by loudspeaker, microphone.Audio-frequency electric
The audio data received can be converted into electric signal by road 406, be transferred to loudspeaker, and it is defeated to be converted to voice signal by loudspeaker
Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 406
Data, then by after the processing of audio data output processor 408, such as another mobile terminal is sent to through radio circuit 401, or
Person exports audio data to memory 402 to be further processed.
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 provides wireless broadband internet for user
Access.
Processor 408 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 402, and calls and is stored in storage
Data in device 402 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.It can
Choosing, processor 408 may include one or more processing cores;Preferably, processor 408 can integrate application processor and modulation
Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing
Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 408.
Mobile terminal further includes the power supply 409 (such as battery) powered to all parts.Preferably, power supply can pass through electricity
Management system and processor 408 are logically contiguous, 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 source, recharging system, power supply event
Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile terminal can also packet bluetooth module, camera etc..
Specifically 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 be stored in by processor 408 to run
Application program in memory 402, to realize various functions:
Whether detection User Status changes, which includes sleep state or non-sleep state, is being detected
It when User Status changes, obtains target corresponding to current user state and unlocks authentication information, wherein unlock authentication information is used for
Screen is unlocked, when screen is in screen lock state, current unlock authentication information is replaced with into target unlock authentication information.
From the foregoing, it will be observed that the terminal screen locking method is using detection User Status the embodiment of the invention provides a kind of terminal
Whether change, which includes sleep state or non-sleep state, and when detecting User Status variation, acquisition is worked as
Target corresponding to preceding User Status unlocks authentication information, wherein unlock authentication information is for being unlocked screen, in screen
When in screen lock state, current unlock authentication information is replaced with into target unlock 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 unlock authentication information under corresponding User Status,
Improve the flexibility of password switching and the safety of end message.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, RandomAccess
Memory), disk or CD etc..
It is provided for the embodiments of the invention a kind of screen locking method, device and terminal above to be described in detail, herein
A specific example illustrates the principle and implementation of the invention for middle application program, and the explanation of above embodiments is only used
In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, think of according to the present invention
Think, there will be changes in specific embodiment and range of applications, in conclusion the content of the present specification should not be understood
For limitation of the present invention.
Claims (7)
1. a kind of screen locking method characterized by comprising
Receive the first current sleep characteristics value of the user of intelligent wearable device transmission, wherein sleep characteristics value is by the intelligence
Wearable device handles to obtain according to the sleep characteristics information weighting of the user of its acquisition;
When the first current sleep characteristics value changes, second after receiving the variation that intelligent wearable device is sent sleeps
Dormancy characteristic value;
First sleep characteristics value is compared with preset threshold, obtains the first comparison result, and according to the first comparison result really
Fixed first User Status;
Second sleep characteristics value is compared with the preset threshold, obtains the second comparison result, and compare knot according to second
Fruit determines second user state;
First User Status is compared with second user state to detect whether User Status changes, the User Status
Including sleep state or non-sleep state;
When detecting User Status variation, obtains target corresponding to current user state and unlock authentication information, wherein unlock
For authentication information for being unlocked to screen, the current user state is the User Status after variation;
When the screen is in screen lock state, current unlock authentication information is replaced with into the target and unlocks authentication information,
In, it is described it is current unlock authentication information be change before User Status corresponding to unlock authentication information.
2. screen locking method as described in claim 1, which is characterized in that obtaining the unlock of target corresponding to current user state
After authentication information, the method also includes:
If the screen is in non-locking screen state, when receiving screen locking instruction, instructed in response to the screen locking and according to institute
Target unlock authentication information is stated to lock the screen.
3. screen locking method as claimed in claim 1 or 2, which is characterized in that unlock authentication information includes unlocking manner item and close
In the unlocking manner item and cryptographic item of code item, the target unlock authentication information and the current unlock authentication information, at least
One not identical.
4. a kind of screen locking device characterized by comprising
Detection module, for receiving the first sleep characteristics value of the user of intelligent wearable device transmission currently, wherein sleep characteristics
Value is handled to obtain by the intelligent wearable device according to the sleep characteristics information weighting of the user of its acquisition;And described current
Second sleep characteristics value of first sleep characteristics value when changing, after receiving the variation that intelligent wearable device is sent;By
One sleep characteristics value is compared with preset threshold, obtains the first comparison result, and determines that first uses according to the first comparison result
Family state;Second sleep characteristics value is compared with the preset threshold, obtains the second comparison result, and compare according to second
As a result second user state is determined;First User Status is compared with second user state to detect whether User Status is sent out
Changing, the User Status include sleep state or non-sleep state;
Module is obtained, for obtaining target corresponding to current user state when detection module detects User Status variation
Unlock authentication information, wherein unlock authentication information is used to be unlocked screen, including unlocking manner item and cryptographic item;
Replacement module, for when the screen is in screen lock state, current unlock authentication information to be replaced with the target solution
Lock authentication information, wherein the unlocking manner and password of the target unlock authentication information and the current unlock authentication information are equal
It is different.
5. screen locking device as claimed in claim 4, which is characterized in that described device further include:
Locking module, for being instructed if receiving screen locking, in response to the screen locking when the screen is in non-locking screen state
It instructs and authentication information is unlocked according to the target and the screen is locked.
6. a kind of terminal, which is characterized in that including memory, processor and be stored on the memory and can be in the processing
The computer program run on device, the processor are realized when executing the computer program such as any one of claim 1-3 institute
The screen locking method stated.
7. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program makes
Computer executes the method according to claim 1.
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 CN106845184A (en) | 2017-06-13 |
CN106845184B true 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) |
Families Citing this family (3)
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 |
CN109002340B (en) * | 2018-07-12 | 2021-05-28 | 维沃移动通信有限公司 | Screen locking method and electronic equipment |
CN110012168B (en) * | 2019-04-03 | 2021-06-25 | 广东乐心医疗电子股份有限公司 | Method and equipment for locking intelligent terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
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 |
-
2017
- 2017-01-25 CN CN201710061323.5A patent/CN106845184B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN106845184A (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106055955B (en) | One kind solution lock control method and terminal device | |
CN106845184B (en) | Screen locking method, device and terminal | |
CN107580114B (en) | Biometric identification method, mobile terminal, and computer-readable storage medium | |
US20230370539A1 (en) | Electronic apparatus and method of selectively applying security mode in mobile device | |
CN106020782A (en) | Fingerprint unlocking control method and mobile terminal | |
CN107480489B (en) | unlocking control method and related product | |
CN107852527A (en) | Control the shared method of video and be adapted to the electronic equipment of this method | |
CN103473494A (en) | Application running method, device and terminal device | |
CN108989668A (en) | A kind of working method and mobile terminal of camera | |
CN106250025A (en) | The method of camera, device and mobile terminal is called under screen lock state | |
CN109388925A (en) | A kind of mobile device wakes up and unlocking method | |
CN106303004A (en) | The way of recording, device and mobile terminal under screen lock state | |
CN109284150A (en) | A kind of method and terminal starting application program | |
CN113613197B (en) | Pairing method and device for vehicle and digital key | |
CN106022071A (en) | Fingerprint unlocking method and terminal | |
CN109640347A (en) | Journal file automatically grabs method, apparatus, mobile terminal and readable storage medium storing program for executing | |
CN105812250A (en) | Control method and device for pushing message to wearable device and mobile terminal | |
CN109819506A (en) | Method for intelligent connection, wearable device and computer readable storage medium | |
CN112085872A (en) | NFC-based unlocking method, related device and system | |
CN106940770A (en) | A kind of screen locking method, device and terminal | |
CN109286720A (en) | A kind of the main screen selection method and device of multi-screen mobile terminal | |
CN108989710A (en) | A kind of infrared supplementary lighting module abatement detecting method and terminal device | |
US12034561B2 (en) | Processing method, device and storage medium | |
CN110533800A (en) | Intelligent door lock control method, device, electronic equipment and storage medium | |
CN109145555A (en) | Application method, system, intelligent terminal and storage medium based on intelligent terminal |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |