[go: up one dir, main page]

CN107808077A - For controlling the method, apparatus and storage medium of terminal unlocking function - Google Patents

For controlling the method, apparatus and storage medium of terminal unlocking function Download PDF

Info

Publication number
CN107808077A
CN107808077A CN201711051529.6A CN201711051529A CN107808077A CN 107808077 A CN107808077 A CN 107808077A CN 201711051529 A CN201711051529 A CN 201711051529A CN 107808077 A CN107808077 A CN 107808077A
Authority
CN
China
Prior art keywords
terminal
user
information
module
sleep state
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.)
Pending
Application number
CN201711051529.6A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711051529.6A priority Critical patent/CN107808077A/en
Publication of CN107808077A publication Critical patent/CN107808077A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/011Emotion or mood input determined on the basis of sensed human body parameters such as pulse, heart rate or beat, temperature of skin, facial expressions, iris, voice pitch, brain activity patterns

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 present disclosure relates to a method, device and storage medium for controlling the terminal unlocking function. The method includes: obtaining user status information, and determining whether the user's terminal has a security risk according to the user status information. When it is determined that the terminal has a security risk, Disable the terminal's unlock function. Therefore, it is possible to identify scenes with security risks, so as to control whether to disable the unlocking function, thereby improving the security of the user terminal.

Description

用于控制终端解锁功能的方法、装置及存储介质Method, device and storage medium for controlling terminal unlocking function

技术领域technical field

本公开涉及安全技术领域,尤其涉及一种用于控制终端解锁功能的方法、装置及存储介质。The present disclosure relates to the field of security technologies, and in particular, to a method, device and storage medium for controlling an unlocking function of a terminal.

背景技术Background technique

随着经济的发展,手机、平板电脑等终端已经成为人们生活的必须品,人们日常生活中对手机也越来越依赖,因此存储手机上的重要信息也越来越多。目前,基本所有的手机都支持通过密码来解锁,以保护手机中所保存的重要信息,随着手机上的指纹识别技术的快速发展,目前越来约的手机开始支持指纹解锁功能,因此对于目前的多数移动终端而言,用户都可以通过指纹或者解锁密码等方式来解锁手机,因此对于任何用户而言,只要能够获取其指纹或者解锁密钥就可解锁该用户的手机。With the development of the economy, terminals such as mobile phones and tablet computers have become necessities in people's lives, and people are increasingly dependent on mobile phones in their daily lives, so more and more important information is stored on mobile phones. At present, basically all mobile phones support password unlocking to protect the important information stored in the mobile phone. With the rapid development of fingerprint recognition technology on mobile phones, more and more mobile phones now support fingerprint unlocking. For most of the mobile terminals, users can unlock the mobile phone through fingerprints or unlocking passwords. Therefore, for any user, as long as the fingerprint or unlocking key can be obtained, the user's mobile phone can be unlocked.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种用于控制终端解锁功能的方法、装置及存储介质。In order to overcome the problems in the related technologies, the present disclosure provides a method, device and storage medium for controlling the unlocking function of a terminal.

根据本公开实施例的第一方面,提供一种用于控制终端解锁功能的方法,应用于电子设备,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a method for controlling a terminal unlocking function is provided, which is applied to an electronic device, and the method includes:

获取用户状态信息,所述用户状态信息包括用户的睡眠状态信息和所述用户的操作信息中的至少一者;Acquiring user state information, the user state information including at least one of the user's sleep state information and the user's operation information;

根据所述用户状态信息确定所述用户的终端是否具有安全隐患;determining whether the user's terminal has potential safety hazards according to the user state information;

当确定所述终端具有安全隐患时,禁用所述终端的解锁功能。When it is determined that the terminal has potential safety hazards, the unlocking function of the terminal is disabled.

可选的,所述用户状态信息为所述睡眠状态信息,所述获取用户状态信息,包括:Optionally, the user state information is the sleep state information, and the acquiring user state information includes:

通过所述用户使用的可穿戴设备获取所述睡眠状态信息,所述睡眠状态信息包括所述用户已进入睡眠状态和未进入睡眠状态。The sleep state information is acquired through the wearable device used by the user, and the sleep state information includes that the user has entered a sleep state and has not entered a sleep state.

可选的,所述根据所述用户状态信息确定所述用户的终端是否具有安全隐患,包括:Optionally, the determining whether the user's terminal has a security risk according to the user status information includes:

当所述睡眠状态信息为所述用户已进入睡眠状态时,确定所述终端具有安全隐患。When the sleep state information indicates that the user has entered a sleep state, it is determined that the terminal has potential safety hazards.

可选的,所述用户状态信息为所述操作信息,所述获取用户状态信息,包括:Optionally, the user state information is the operation information, and the acquiring user state information includes:

获取用户输入的所述操作信息,所述操作信息包括语音信息或手势信息语音信息为所述终端或所述可穿戴设备接收到的,所述手势信息为对所述终端或所述可穿戴设备进行手势操作产生的。Acquiring the operation information input by the user, the operation information including voice information or gesture information voice information is received by the terminal or the wearable device, and the gesture information is for the terminal or the wearable device Generated by performing gesture operations.

可选的,所述根据所述用户状态信息确定所述用户的终端是否具有安全隐患,包括:Optionally, the determining whether the user's terminal has a security risk according to the user status information includes:

将所述语音信息与预设的语音密钥进行对比;comparing the voice information with a preset voice key;

当所述语音信息与所述语音密钥匹配时,确定所述终端具有安全隐患;When the voice information matches the voice key, determine that the terminal has security risks;

或者,or,

将手势信息与预设手势信息进行对比;Comparing the gesture information with preset gesture information;

当所述手势信息与所述预设手势信息匹配时,确定所述终端具有安全隐患。When the gesture information matches the preset gesture information, it is determined that the terminal has potential security risks.

可选的,所述当确定所述终端具有安全隐患时,禁用所述终端的解锁功能,包括:Optionally, when it is determined that the terminal has a security risk, disabling the unlocking function of the terminal includes:

当确定所述终端具有安全隐患,执行以下至少一者:When it is determined that the terminal has a security risk, perform at least one of the following:

关闭所述终端的密码解锁功能;Turn off the password unlocking function of the terminal;

关闭所述终端的图案解锁功能;Turn off the pattern unlocking function of the terminal;

关闭所述终端的生物特征解锁模块,所述生物特征解锁模块包括:指纹解锁模块、虹膜解锁模块、语音解锁模块中的至少一者。Turn off the biological feature unlocking module of the terminal, the biological feature unlocking module includes: at least one of a fingerprint unlocking module, an iris unlocking module, and a voice unlocking module.

根据本公开实施例的第二方面,提供一种用于控制终端解锁功能的装置,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for controlling a terminal unlocking function, the apparatus comprising:

获取模块,被配置为获取用户状态信息,所述用户状态信息包括用户的睡眠状态信息或所述用户的操作信息;An acquisition module configured to acquire user state information, where the user state information includes user sleep state information or user operation information;

安全识别模块,被配置为根据所述用户状态信息确定所述用户的终端是否具有安全隐患;A security identification module configured to determine whether the user's terminal has potential security risks according to the user status information;

解锁控制模块,被配置为当确定所述终端具有安全隐患时,禁用所述终端的解锁功能。The unlocking control module is configured to disable the unlocking function of the terminal when it is determined that the terminal has a security risk.

可选的,所述用户状态信息为所述睡眠状态信息,所述获取模块,被配置为:Optionally, the user state information is the sleep state information, and the obtaining module is configured to:

通过所述用户使用的与所述终端配对的可穿戴设备获取所述睡眠状态信息,所述睡眠状态信息包括所述用户已进入睡眠状态和未进入睡眠状态。The sleep state information is acquired through the wearable device used by the user and paired with the terminal, and the sleep state information includes that the user has entered a sleep state and has not entered a sleep state.

可选的,所述安全识别模块,被配置为:Optionally, the security identification module is configured to:

当所述睡眠状态信息为所述用户已进入睡眠状态时,确定所述终端具有安全隐患。When the sleep state information indicates that the user has entered a sleep state, it is determined that the terminal has potential safety hazards.

可选的,所述用户状态信息为所述操作信息,所述获取模块,被配置为:Optionally, the user status information is the operation information, and the acquisition module is configured to:

获取用户输入的所述操作信息,所述操作信息包括语音信息或手势信息语音信息为所述终端或所述可穿戴设备接收到的,所述手势信息为对所述终端或所述可穿戴设备进行手势操作产生的。Acquiring the operation information input by the user, the operation information including voice information or gesture information voice information is received by the terminal or the wearable device, and the gesture information is for the terminal or the wearable device Generated by performing gesture operations.

可选的,所述安全识别模块,包括:比对子模块和安全隐患确定子模块;Optionally, the safety identification module includes: a comparison sub-module and a safety hazard determination sub-module;

所述比对子模块,被配置为将所述语音信息与预设的语音密钥进行对比;The comparison submodule is configured to compare the voice information with a preset voice key;

所述安全隐患确定子模块,被配置为当所述语音信息与所述语音密钥匹配时,确定所述终端具有安全隐患;The security risk determining submodule is configured to determine that the terminal has a security risk when the voice information matches the voice key;

或者,or,

所述比对子模块,还被配置为将手势信息与预设手势信息进行对比;The comparison submodule is also configured to compare the gesture information with preset gesture information;

所述安全隐患确定子模块,还被配置为当所述手势信息与所述预设手势信息匹配时,确定所述终端具有安全隐患。The security risk determining submodule is further configured to determine that the terminal has a security risk when the gesture information matches the preset gesture information.

可选的,所述解锁控制模块,被配置为:Optionally, the unlocking control module is configured to:

当确定所述终端具有安全隐患,执行以下至少一者:When it is determined that the terminal has a security risk, perform at least one of the following:

关闭所述终端的密码解锁功能;Turn off the password unlocking function of the terminal;

关闭所述终端的图案解锁功能;Turn off the pattern unlocking function of the terminal;

关闭所述终端的生物特征解锁模块,所述生物特征解锁模块包括:指纹解锁模块、虹膜解锁模块、语音解锁模块中的至少一者。Turn off the biological feature unlocking module of the terminal, the biological feature unlocking module includes: at least one of a fingerprint unlocking module, an iris unlocking module, and a voice unlocking module.

根据本公开实施例的第三方面,提供一种用于控制终端解锁功能的装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for controlling a terminal unlocking function, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:获取用户状态信息,所述用户状态信息包括用户的睡眠状态信息或所述用户的操作信息;根据所述用户状态信息确定所述用户的终端是否具有安全隐患;当确定所述终端具有安全隐患时,禁用所述终端的解锁功能。Wherein, the processor is configured to: obtain user state information, the user state information includes the user's sleep state information or the user's operation information; determine whether the user's terminal has a security risk according to the user state information ; When it is determined that the terminal has a security risk, disabling the unlocking function of the terminal.

根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现第一方面中所提供的用于控制终端解锁功能的方法的步骤。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for controlling terminal unlocking provided in the first aspect is implemented. The steps of the method of the function.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

通过获取用户状态信息,所述用户状态信息包括用户的睡眠状态信息或所述用户的操作信息,再根据所述用户状态信息确定所述用户的终端是否具有安全隐患,当确定所述终端具有安全隐患时,禁用所述终端的解锁功能。能够根据用户的睡眠状态或者用户操作确定用户的终端当前是否存在安全隐患,并在存在安全隐患时禁用解锁功能,从而提高用户终端的安全性。By acquiring the user state information, the user state information includes the user's sleep state information or the user's operation information, and then determining whether the user's terminal has a security risk according to the user state information, when it is determined that the terminal has a security risk When there is a hidden danger, disable the unlocking function of the terminal. It is possible to determine whether the user's terminal currently has a security risk according to the user's sleep state or user operation, and disable the unlocking function when there is a security risk, thereby improving the security of the user terminal.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种用于控制终端解锁功能的方法的流程图;Fig. 1 is a flowchart of a method for controlling an unlocking function of a terminal according to an exemplary embodiment;

图2是根据一示例性实施例示出的另一种用于控制终端解锁功能的方法的流程图;Fig. 2 is a flow chart of another method for controlling an unlocking function of a terminal according to an exemplary embodiment;

图3是根据一示例性实施例示出的又一种用于控制终端解锁功能的方法的流程图;Fig. 3 is a flowchart showing another method for controlling the terminal unlocking function according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种用于控制终端解锁功能的装置的框图;Fig. 4 is a block diagram of an apparatus for controlling a terminal unlocking function according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种安全识别模块的框图;Fig. 5 is a block diagram of a security identification module according to an exemplary embodiment;

图6是根据一示例性实施例示出的另一种用于控制终端解锁功能的装置的框图。Fig. 6 is a block diagram of another apparatus for controlling an unlocking function of a terminal according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

图1是根据一示例性实施例示出的一种用于控制终端解锁功能的方法的流程图,如图1所示,该方法应用于电子设备,包括以下步骤:Fig. 1 is a flowchart of a method for controlling a terminal unlocking function according to an exemplary embodiment. As shown in Fig. 1, the method is applied to an electronic device and includes the following steps:

在步骤101中,获取用户状态信息,该用户状态信息包括用户的睡眠状态信息和用户的操作信息中的至少一者。In step 101, user state information is acquired, and the user state information includes at least one of user sleep state information and user operation information.

示例地,该电子设备和用户的终端可以是同一设备,也可以不同设备。例如该电子设备可以是手机、笔记本电脑、平板电脑,或者可以是下文所述的可穿戴设备等。其中,当电子设备与用户的终端不是同一设备时,用户的终端的解锁功能是通过该电子设备实现控制的;而当电子设备与用户的终端是同一设备时,用户的终端能够通过本实施例提供的方法实现自身解锁功能的控制。睡眠状态信息可以是用于表明用户是否处于睡眠状态的信息,操作信息例如可以是手势操作信息或语音信息等,利用上述两者中至少一者,进行下一步的判断。For example, the electronic device and the user's terminal may be the same device or different devices. For example, the electronic device may be a mobile phone, a notebook computer, a tablet computer, or may be a wearable device described below, etc. Wherein, when the electronic device and the user's terminal are not the same device, the unlocking function of the user's terminal is controlled by the electronic device; and when the electronic device and the user's terminal are the same device, the user's terminal can The method provided realizes the control of the self-unlocking function. The sleep state information may be information indicating whether the user is in a sleep state, and the operation information may be, for example, gesture operation information or voice information, and at least one of the two is used for the next step of judgment.

在步骤102中,根据用户状态信息确定用户的终端是否具有安全隐患。In step 102, it is determined whether the user's terminal has potential security risks according to the user status information.

其中,用户的终端可以是带有锁定/解锁屏幕功能的电子设备,例如是手机,平板电脑等。在根据上述步骤101获取到了用户状态信息了之后,根据该用户状态信息判断此时的终端是否具有安全隐患。Wherein, the user's terminal may be an electronic device with a screen locking/unlocking function, such as a mobile phone, a tablet computer, and the like. After the user state information is obtained according to the above step 101, it is judged according to the user state information whether the terminal at this time has potential security risks.

其中,当用户处于睡眠状态时,此时如果有解锁操作可以确定的是非用户本人进行的,或者说是非本人自愿操作的,说明可能存在安全隐患,因此在用户进入睡眠状态时应禁用解锁功能,保证用户信息的安全。或者,也有可能用户在非睡眠状态下,但是遇到了危险,例如是歹徒挟持或者威胁,强行解锁终端,针对这种场景,用户可以按照预先规定的手势或语音进行操作,该电子设备(或者终端)在识别出这些手势或语音操作后,可以确定存在安全隐患,也可以禁用该终端的解锁功能,从而保证该用户的终端的安全。Among them, when the user is in the sleeping state, if there is an unlocking operation at this time, it can be determined that it is not performed by the user himself, or that the operation is not voluntary by the user, indicating that there may be a potential safety hazard. Therefore, the unlocking function should be disabled when the user enters the sleeping state. Ensure the security of user information. Or, it is also possible that the user is in a non-sleep state, but encounters a danger, such as being held hostage or threatened by a gangster, and forcibly unlocks the terminal. ) after recognizing these gestures or voice operations, it can be determined that there is a security risk, and the unlocking function of the terminal can also be disabled, so as to ensure the security of the user's terminal.

在步骤103中,当确定终端具有安全隐患时,禁用终端的解锁功能。In step 103, when it is determined that the terminal has a security risk, the unlocking function of the terminal is disabled.

因此,能够在确定用户处于睡眠状态,或者在用户输入规定的手势或语音操作时,确定终端具有安全隐患,并禁用终端的解锁功能,从而能够防止用户信息的在用户不知情或者用户被胁迫的情况下被泄露。Therefore, when it is determined that the user is in a sleeping state, or when the user inputs a prescribed gesture or voice operation, it can be determined that the terminal has a security risk, and the unlocking function of the terminal can be disabled, thereby preventing the user information from being stolen without the user's knowledge or under duress. case was leaked.

综上所述,本公开提供的用于控制终端解锁功能的方法,通过获取用户状态信息,再根据用户状态信息确定用户的终端是否具有安全隐患,当确定终端具有安全隐患时,禁用终端的解锁功能。因此,能够根据用户的睡眠状态或者用户操作确定用户的终端当前是否存在安全隐患,并在存在安全隐患时禁用解锁功能,从而提高用户终端的安全性。To sum up, the method for controlling the unlocking function of a terminal provided by the present disclosure obtains user state information, and then determines whether the user's terminal has a security risk according to the user state information, and disables the unlocking of the terminal when it is determined that the terminal has a security risk. Function. Therefore, it can be determined according to the user's sleep state or user operation whether the user's terminal currently has a security risk, and the unlocking function is disabled when there is a security risk, thereby improving the security of the user terminal.

可选的,图2是根据一示例性实施例示出的另一种用于控制终端解锁功能的方法的流程图,如图2所示,当用户状态信息为睡眠状态信息时,该方法包括以下步骤:Optionally, FIG. 2 is a flow chart of another method for controlling the unlocking function of a terminal according to an exemplary embodiment. As shown in FIG. 2 , when the user state information is sleep state information, the method includes the following step:

在步骤201中,通过用户使用的可穿戴设备获取睡眠状态信息,该睡眠状态信息包括用户已进入睡眠状态和未进入睡眠状态。In step 201, sleep state information is acquired through a wearable device used by a user, and the sleep state information includes the user has entered a sleep state and has not entered a sleep state.

示例地,该可穿戴设备可以是智能手环,智能手表等设备,该可穿戴设备能够对穿带该设备的用户进行生命体征参数的检测,例如可以测量心跳,呼吸等参数,并且结合预先输入的其他生理数据,例如身高、体重、年龄等确定用户实时的睡眠状态信息,也就是确定在此时的生命体征参数下用户是否进入睡眠状态,以便根据该睡眠状态信息确定进行步骤202或者步骤203的操作。其中,该可穿戴设备可以与该电子设备预先配对,或建立连接,从而使该电子设备能够获取该用户是否进入睡眠状态。For example, the wearable device can be a smart bracelet, a smart watch, etc. The wearable device can detect the vital sign parameters of the user wearing the device, for example, it can measure parameters such as heartbeat and respiration, and combined with the pre-input other physiological data, such as height, weight, age, etc., to determine the real-time sleep state information of the user, that is, to determine whether the user is in a sleep state under the vital sign parameters at this time, so as to determine to proceed to step 202 or step 203 according to the sleep state information operation. Wherein, the wearable device can be pre-paired with the electronic device, or establish a connection, so that the electronic device can obtain whether the user enters a sleep state.

在步骤202中,当睡眠状态信息为用户已进入睡眠状态时,确定终端具有安全隐患。In step 202, when the sleep state information indicates that the user has entered the sleep state, it is determined that the terminal has security risks.

当根据步骤201所获取的状态信息可以确定用户此时已经进入睡眠状态,并执行步骤204的操作,以防止他人在用户入睡后对该终端进行解锁。When it can be determined according to the state information obtained in step 201 that the user has entered a sleep state at this time, the operation of step 204 is performed to prevent others from unlocking the terminal after the user falls asleep.

在步骤203中,当睡眠状态信息为用户未进入睡眠状态时,确定终端没有安全隐患。In step 203, when the sleep state information indicates that the user has not entered the sleep state, it is determined that the terminal has no security risks.

示例地,若能够确定此时用户并未在睡眠状态,则可以认为该终端存在使用的可能,且该终端的用户是意识清醒的,此时可以认为不存在安全隐患,因此不必禁用终端的解锁功能,可以保持解锁功能开启。For example, if it can be determined that the user is not sleeping at this time, it can be considered that the terminal may be used, and the user of the terminal is conscious. At this time, it can be considered that there is no potential safety hazard, so it is not necessary to disable the unlocking of the terminal function, you can keep the unlock function turned on.

在步骤204中,当确定终端具有安全隐患时,禁用终端的解锁功能。In step 204, when it is determined that the terminal has security risks, the unlocking function of the terminal is disabled.

示例的,禁用所述终端的解锁功能,可以执行以下至少一者:For example, to disable the unlocking function of the terminal, at least one of the following may be performed:

关闭终端的密码解锁功能;Turn off the password unlock function of the terminal;

关闭终端的图案解锁功能;Turn off the pattern unlock function of the terminal;

关闭终端的生物特征解锁模块,该生物特征解锁模块包括:指纹解锁模块、虹膜解锁模块、语音解锁模块中的至少一者。其中,到底关闭上述的哪几种功能,需要根据终端所支持的解锁方式以及用户设置的解锁方式来确定。例如,如果终端支持密码解锁功能、图案解锁功能,并且具有指纹解锁模块、虹膜解锁模块、语音解锁模块,则在确定终端具有安全隐患时,可以将上述的所有解锁功能全部禁用。The biological feature unlocking module of the terminal is turned off, and the biological feature unlocking module includes: at least one of a fingerprint unlocking module, an iris unlocking module, and a voice unlocking module. Among them, which of the above-mentioned functions to be turned off needs to be determined according to the unlocking methods supported by the terminal and the unlocking methods set by the user. For example, if the terminal supports password unlocking function and pattern unlocking function, and has a fingerprint unlocking module, iris unlocking module, and voice unlocking module, all the above unlocking functions can be disabled when it is determined that the terminal has potential security risks.

在另一种实现方式中,图3是根据一示例性实施例示出的又一种用于控制终端解锁功能的方法的流程图,如图3所示,当用户状态信息为操作信息时,该方法包括以下步骤:In another implementation, FIG. 3 is a flowchart of another method for controlling the unlocking function of a terminal according to an exemplary embodiment. As shown in FIG. 3 , when the user status information is operation information, the The method includes the following steps:

在步骤301中,获取用户输入的操作信息,该操作信息包括语音信息或手势信息语音信息为终端或可穿戴设备接收到的,手势信息为对终端或可穿戴设备进行手势操作产生的。In step 301, the operation information input by the user is obtained, the operation information includes voice information or gesture information voice information is received by the terminal or wearable device, and the gesture information is generated by performing gesture operations on the terminal or wearable device.

也就是说,用户可以根据个人偏好预先设置不同形式的操作信息作为是否存在安全隐患的判断条件,例如可以是手势信息,也可以是语音信息。That is to say, the user can pre-set different forms of operation information according to personal preferences as a judgment condition for whether there is a potential safety hazard, such as gesture information or voice information.

当获取用户输入的操作信息后,可以执行步骤302将用户输入的操作信息与上述预先设置的操作信息进行对比,以判断用户是否输入了用于表明存在安全隐患的规定操作。其中,用户输入的操作信息可以通过终端本身获取,或者也可以通过可穿戴设备,例如是手环获取。After the operation information input by the user is obtained, step 302 may be performed to compare the operation information input by the user with the above-mentioned preset operation information, so as to determine whether the user has input a prescribed operation indicating a potential safety hazard. Wherein, the operation information input by the user may be obtained through the terminal itself, or may also be obtained through a wearable device, such as a bracelet.

在步骤302中,将用户输入的操作信息与预设的操作信息进行对比。In step 302, the operation information input by the user is compared with preset operation information.

示例地,当操作信息为语音信息时,预设的操作信息可以是预设的语音密钥,则需要将用户输入的语音信息与预设的语音密钥进行对比。For example, when the operation information is voice information, the preset operation information may be a preset voice key, and then the voice information input by the user needs to be compared with the preset voice key.

当操作信息为手势信息时,预设的操作信息为预设手势,则需要将用户输入的手势信息与预设手势信息进行对比。When the operation information is gesture information, and the preset operation information is a preset gesture, it is necessary to compare the gesture information input by the user with the preset gesture information.

示例的,可以将“禁止解锁操作”作为预设的语音密钥,当用户对着终端或者可穿戴设备说出“禁止解锁操作”时,终端将其与预设的语音密钥进行比对,当二者一致时可以确定用户输入的语音信息与语音密钥匹配(可选的,除了用户说出的语音内容与预设的语音密钥一致外,还可以考虑用户的声纹和预设的语音密钥的声纹是否一致),当然,用户也可以将语音密钥设置为只有用户自己知道的暗语。或者,可以预设一个手势信息,例如是拍击手环、快速甩动手环等作为规定操作,当用户快速甩动手环时,终端在收到手环发送来的操作信息后与预设的手势信息进行比对,当确认用户快速甩动手环的方式与预设的手势信息一致时,可以确定用户输入的手势信息与预设手势信息匹配。For example, "unlocking operation prohibited" can be used as the preset voice key. When the user says "unlocking operation prohibited" to the terminal or wearable device, the terminal will compare it with the preset voice key. When the two are consistent, it can be determined that the voice information input by the user matches the voice key (optionally, in addition to the voice content spoken by the user being consistent with the preset voice key, the voiceprint of the user and the preset voice key can also be considered. Whether the voiceprint of the voice key is consistent), of course, the user can also set the voice key as a code word that only the user knows. Alternatively, a gesture information can be preset, such as slapping the bracelet, shaking the bracelet quickly, etc. as a prescribed operation. When the user shakes the bracelet quickly, the terminal will match the preset gesture information After comparison, when it is confirmed that the way the user quickly shakes the wristband is consistent with the preset gesture information, it can be determined that the gesture information input by the user matches the preset gesture information.

在步骤303中,根据比对结果,确定是否存在安全隐患。In step 303, it is determined whether there is a potential safety hazard according to the comparison result.

示例的,当确定用户输入的语音信息与语音密钥匹配,或者确定用户输入的手势信息与预设手势信息匹配时,确定终端具有安全隐患,则继续执行步骤304的操作。相反的,当用户输入的语音信息与语音密钥不匹配,或者用户输入的手势信息与预设手势信息不匹配,确定终端没有安全隐患,可以继续进行终端的解锁操作。For example, when it is determined that the voice information input by the user matches the voice key, or the gesture information input by the user matches the preset gesture information, it is determined that the terminal has potential security risks, and the operation of step 304 is continued. On the contrary, when the voice information input by the user does not match the voice key, or the gesture information input by the user does not match the preset gesture information, it is determined that the terminal has no security risks, and the unlocking operation of the terminal can be continued.

在步骤304中,当确定终端具有安全隐患时,禁用终端的解锁功能。In step 304, when it is determined that the terminal has a security risk, the unlocking function of the terminal is disabled.

示例的,禁用所述终端的解锁功能,可以执行以下至少一者:For example, to disable the unlocking function of the terminal, at least one of the following may be performed:

关闭终端的密码解锁功能;Turn off the password unlock function of the terminal;

关闭终端的图案解锁功能;Turn off the pattern unlock function of the terminal;

关闭终端的生物特征解锁模块,该生物特征解锁模块包括:指纹解锁模块、虹膜解锁模块、语音解锁模块中的至少一者。其中,到底关闭上述的哪几种功能,需要根据终端所支持的解锁方式以及用户设置的解锁方式来确定。例如,如果终端支持密码解锁功能、图案解锁功能,并且具有指纹解锁模块、虹膜解锁模块、语音解锁模块,则在确定终端具有安全隐患时,可以将上述的所有解锁功能全部禁用。The biological feature unlocking module of the terminal is turned off, and the biological feature unlocking module includes: at least one of a fingerprint unlocking module, an iris unlocking module, and a voice unlocking module. Among them, which of the above-mentioned functions to be turned off needs to be determined according to the unlocking methods supported by the terminal and the unlocking methods set by the user. For example, if the terminal supports password unlocking function and pattern unlocking function, and has a fingerprint unlocking module, iris unlocking module, and voice unlocking module, all the above unlocking functions can be disabled when it is determined that the terminal has potential security risks.

由此可见,当确定终端存在安全隐患时,为了确保终端上用户信息的安全性,可以对终端的解锁功能进行禁用,使得他人无法通过预设的密码、图案或者指纹、虹膜等生物特征进行终端的解锁操作,防止用户在进入睡眠或者被胁迫状态下造成不必要信息泄露。It can be seen that when it is determined that there is a security risk in the terminal, in order to ensure the security of user information on the terminal, the unlocking function of the terminal can be disabled, so that others cannot access the terminal through preset passwords, patterns, or biometric features such as fingerprints and irises. The unlocking operation prevents users from causing unnecessary information leakage when they go to sleep or are under duress.

综上所述,本公开提供的用于控制终端解锁功能的方法,通过获取用户状态信息,再根据用户状态信息确定用户的终端是否具有安全隐患,当确定终端具有安全隐患时,禁用终端的解锁功能。因此,能够根据用户的睡眠状态或者用户操作确定用户的终端当前是否存在安全隐患,并在存在安全隐患时禁用解锁功能,从而提高用户终端的安全性。To sum up, the method for controlling the unlocking function of a terminal provided by the present disclosure obtains user state information, and then determines whether the user's terminal has a security risk according to the user state information, and disables the unlocking of the terminal when it is determined that the terminal has a security risk. Function. Therefore, it can be determined according to the user's sleep state or user operation whether the user's terminal currently has a security risk, and the unlocking function is disabled when there is a security risk, thereby improving the security of the user terminal.

图4是根据一示例性实施例示出的一种用于控制终端解锁功能的装置的框图,参照图4,该用于控制终端解锁功能的装置400应用于电子设备,包括:Fig. 4 is a block diagram of an apparatus for controlling a terminal unlocking function according to an exemplary embodiment. Referring to Fig. 4, the apparatus 400 for controlling a terminal unlocking function is applied to electronic equipment, including:

获取模块410,被配置为获取用户状态信息,用户状态信息包括用户的睡眠状态信息和用户的操作信息中的至少一者。The obtaining module 410 is configured to obtain user state information, where the user state information includes at least one of user sleep state information and user operation information.

安全识别模块420,被配置为根据用户状态信息确定用户的终端是否具有安全隐患。The security identification module 420 is configured to determine whether the user's terminal has potential security risks according to the user status information.

解锁控制模块430,被配置为当确定终端具有安全隐患时,禁用终端的解锁功能。The unlocking control module 430 is configured to disable the unlocking function of the terminal when it is determined that the terminal has security risks.

可选的,用户状态信息为睡眠状态信息,则获取模块410,被配置为:Optionally, if the user state information is sleep state information, the obtaining module 410 is configured to:

通过用户使用的可穿戴设备获取睡眠状态信息,睡眠状态信息包括用户已进入睡眠状态和未进入睡眠状态。The sleep state information is acquired through the wearable device used by the user, and the sleep state information includes the user has entered the sleep state and has not entered the sleep state.

相应的,安全识别模块420,被配置为:Correspondingly, the security identification module 420 is configured to:

当睡眠状态信息为用户已进入睡眠状态时,确定终端具有安全隐患;When the sleep state information indicates that the user has entered the sleep state, it is determined that the terminal has potential safety hazards;

当睡眠状态信息为用户未进入睡眠状态时,确定终端没有安全隐患。When the sleep state information is that the user has not entered the sleep state, it is determined that the terminal has no security risks.

或者,在另一种实现方式中,用户状态信息为操作信息,则获取模块410,被配置为:Or, in another implementation manner, the user state information is operation information, then the obtaining module 410 is configured to:

获取用户输入的操作信息,操作信息包括语音信息或手势信息语音信息为终端或可穿戴设备接收到的,手势信息为对终端或可穿戴设备进行手势操作产生的。Obtain the operation information input by the user. The operation information includes voice information or gesture information. The voice information is received by the terminal or wearable device, and the gesture information is generated by performing gesture operations on the terminal or wearable device.

相应的,图5是根据一示例性实施例示出的一种安全识别模块的框图,参照图5,该安全识别模块420,包括:比对子模块421和安全隐患确定子模块422,其中:Correspondingly, FIG. 5 is a block diagram of a security identification module shown according to an exemplary embodiment. Referring to FIG. 5, the security identification module 420 includes: a comparison sub-module 421 and a security risk determination sub-module 422, wherein:

比对子模块421,被配置为将语音信息与预设的语音密钥进行对比。The comparison sub-module 421 is configured to compare the voice information with the preset voice key.

安全隐患确定子模块422,被配置为当语音信息与语音密钥匹配时,确定终端具有安全隐患;当语音信息与语音密钥不匹配时,确定终端没有安全隐患。或者,The security risk determining sub-module 422 is configured to determine that the terminal has a security risk when the voice information matches the voice key; and when the voice information does not match the voice key, determine that the terminal has no security risk. or,

比对子模块421,还被配置为将手势信息与预设手势信息进行对比。The comparing submodule 421 is further configured to compare the gesture information with preset gesture information.

安全隐患确定子模块422,还被配置为当手势信息与预设手势信息匹配时,确定终端具有安全隐患;当手势信息与预设手势信息不匹配时,确定终端没有安全隐患。The security risk determining sub-module 422 is further configured to determine that the terminal has a security risk when the gesture information matches the preset gesture information; and determine that the terminal has no security risk when the gesture information does not match the preset gesture information.

可选的,解锁控制模块430,被配置为:当确定终端具有安全隐患,执行以下至少一者:Optionally, the unlocking control module 430 is configured to: when it is determined that the terminal has a security risk, perform at least one of the following:

关闭终端的密码解锁功能;Turn off the password unlock function of the terminal;

关闭终端的图案解锁功能;Turn off the pattern unlock function of the terminal;

关闭终端的生物特征解锁模块,生物特征解锁模块包括:指纹解锁模块、虹膜解锁模块、语音解锁模块中的至少一者。The biometric unlocking module of the terminal is turned off, and the biometric unlocking module includes: at least one of a fingerprint unlocking module, an iris unlocking module, and a voice unlocking module.

综上所述,本公开提供的用于控制终端解锁功能的装置,通过获取用户状态信息,再根据用户状态信息确定用户的终端是否具有安全隐患,当确定终端具有安全隐患时,禁用终端的解锁功能。因此,能够根据用户的睡眠状态或者用户操作确定用户的终端当前是否存在安全隐患,并在存在安全隐患时禁用解锁功能,从而提高用户终端的安全性。To sum up, the device for controlling the terminal unlocking function provided by the present disclosure determines whether the user's terminal has a security risk by obtaining user status information, and then disables the unlocking of the terminal when it is determined that the terminal has a security risk. Function. Therefore, it can be determined according to the user's sleep state or user operation whether the user's terminal currently has a security risk, and the unlocking function is disabled when there is a security risk, thereby improving the security of the user terminal.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

本公开还提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开提供的用于控制终端解锁功能的方法的步骤。The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method for controlling the terminal unlocking function provided in the present disclosure are implemented.

图6是根据一示例性实施例示出的另一种用于控制终端解锁功能的装置的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 6 is a block diagram of another apparatus for controlling an unlocking function of a terminal according to an exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电力组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。6, device 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616 .

处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的用于控制终端解锁功能的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。The processing component 602 generally controls the overall operations of the device 600, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method for controlling the terminal unlocking function. Additionally, processing component 602 may include one or more modules that facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602 .

存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 604 is configured to store various types of data to support operations at the device 600 . Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电力组件606为装置600的各种组件提供电力。电力组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。Power component 606 provides power to various components of device 600 . Power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 600 .

多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a microphone (MIC), which is configured to receive external audio signals when the device 600 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 604 or sent via communication component 616 . In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between the processing component 602 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到装置600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 614 includes one or more sensors for providing status assessments of various aspects of device 600 . For example, the sensor component 614 can detect the open/closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor component 614 can also detect a change in the position of the device 600 or a component of the device 600 , the presence or absence of user contact with the device 600 , the device 600 orientation or acceleration/deceleration and the temperature change of the device 600 . The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 614 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 616 is configured to facilitate wired or wireless communication between the apparatus 600 and other devices. The device 600 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述用于控制终端解锁功能的方法。In an exemplary embodiment, apparatus 600 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, used to execute the above method for controlling the unlocking function of the terminal.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述用于控制终端解锁功能的方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 604 including instructions, the instructions can be executed by the processor 620 of the device 600 to complete the above-mentioned function for controlling terminal unlocking Methods. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A method for controlling a terminal unlocking function is applied to an electronic device, and the method comprises the following steps:
acquiring user state information, wherein the user state information comprises at least one of sleep state information of a user and operation information of the user;
determining whether the terminal of the user has potential safety hazard or not according to the user state information;
and when the terminal is determined to have potential safety hazards, disabling the unlocking function of the terminal.
2. The method of claim 1, wherein the user status information is the sleep status information, and wherein the obtaining user status information comprises:
acquiring the sleep state information through the wearable device used by the user, wherein the sleep state information comprises that the user enters a sleep state and does not enter the sleep state.
3. The method of claim 2, wherein the determining whether the terminal of the user has a security risk according to the user status information comprises:
and when the sleep state information indicates that the user enters a sleep state, determining that the terminal has potential safety hazard.
4. The method according to claim 1, wherein the user status information is the operation information, and the obtaining the user status information includes:
the operation information input by a user is obtained, the operation information comprises voice information or gesture information, the voice information is received by the terminal or the wearable device, and the gesture information is generated by performing gesture operation on the terminal or the wearable device.
5. The method of claim 4, wherein the determining whether the terminal of the user has a security risk according to the user status information comprises:
comparing the voice information with a preset voice key;
when the voice information is matched with the voice key, determining that the terminal has potential safety hazards;
or,
comparing the gesture information with preset gesture information;
and when the gesture information is matched with the preset gesture information, determining that the terminal has potential safety hazards.
6. The method according to any one of claims 1 to 5, wherein the disabling of the unlocking function of the terminal when it is determined that the terminal has a potential safety hazard comprises:
when the terminal is determined to have potential safety hazard, executing at least one of the following steps:
closing the password unlocking function of the terminal;
closing a pattern unlocking function of the terminal;
closing a biometric unlocking module of the terminal, the biometric unlocking module comprising: at least one of fingerprint unblock module, iris unblock module, pronunciation unblock module.
7. An apparatus for controlling a terminal unlocking function, applied to an electronic device, the apparatus comprising:
an acquisition module configured to acquire user state information including at least one of sleep state information of a user and operation information of the user;
a safety identification module configured to determine whether the terminal of the user has a safety hazard according to the user state information;
the unlocking control module is configured to disable the unlocking function of the terminal when the terminal is determined to have potential safety hazard.
8. The apparatus of claim 7, wherein the user state information is the sleep state information, and wherein the obtaining module is configured to:
and acquiring the sleep state information through wearable equipment used by the user and paired with the terminal, wherein the sleep state information comprises that the user enters a sleep state and does not enter the sleep state.
9. The apparatus of claim 8, wherein the secure identification module is configured to:
and when the sleep state information indicates that the user enters a sleep state, determining that the terminal has potential safety hazard.
10. The apparatus of claim 7, wherein the user status information is the operation information, and wherein the obtaining module is configured to:
the operation information input by a user is obtained, the operation information comprises voice information or gesture information, the voice information is received by the terminal or the wearable device, and the gesture information is generated by performing gesture operation on the terminal or the wearable device.
11. The apparatus of claim 10, wherein the secure identification module comprises: comparing the sub-module with the potential safety hazard determination sub-module;
the comparison submodule is configured to compare the voice information with a preset voice key;
the potential safety hazard determining submodule is configured to determine that the terminal has potential safety hazard when the voice information is matched with the voice key;
or,
the comparison sub-module is further configured to compare the gesture information with preset gesture information;
the potential safety hazard determining submodule is further configured to determine that the terminal has a potential safety hazard when the gesture information is matched with the preset gesture information.
12. The apparatus according to any one of claims 7 to 11, wherein the unlocking control module is configured to: when the terminal is determined to have potential safety hazard, executing at least one of the following steps:
closing the password unlocking function of the terminal;
closing a pattern unlocking function of the terminal;
closing a biometric unlocking module of the terminal, the biometric unlocking module comprising: at least one of fingerprint unblock module, iris unblock module, pronunciation unblock module.
13. An apparatus for controlling a terminal unlocking function, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring user state information, wherein the user state information comprises sleep state information of a user or operation information of the user;
determining whether the terminal of the user has potential safety hazard or not according to the user state information;
and when the terminal is determined to have potential safety hazards, disabling the unlocking function of the terminal.
14. A non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the steps of the method of any of claims 1-6.
CN201711051529.6A 2017-10-31 2017-10-31 For controlling the method, apparatus and storage medium of terminal unlocking function Pending CN107808077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711051529.6A CN107808077A (en) 2017-10-31 2017-10-31 For controlling the method, apparatus and storage medium of terminal unlocking function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711051529.6A CN107808077A (en) 2017-10-31 2017-10-31 For controlling the method, apparatus and storage medium of terminal unlocking function

Publications (1)

Publication Number Publication Date
CN107808077A true CN107808077A (en) 2018-03-16

Family

ID=61582705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711051529.6A Pending CN107808077A (en) 2017-10-31 2017-10-31 For controlling the method, apparatus and storage medium of terminal unlocking function

Country Status (1)

Country Link
CN (1) CN107808077A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683797A (en) * 2018-04-17 2018-10-19 天门市志远信息科技有限公司 Equipment unlocking method and its system
CN108985031A (en) * 2018-06-06 2018-12-11 宇龙计算机通信科技(深圳)有限公司 A kind of intelligent terminal, close intelligent terminal fingerprint identification function method
CN109286554A (en) * 2018-09-14 2019-01-29 腾讯科技(深圳)有限公司 Social functions unlocking method and device in social application

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130027319A1 (en) * 2011-07-29 2013-01-31 Motorola Mobility, Inc. User interface and method for managing a user interface state between a locked state and an unlocked state
CN104820564A (en) * 2015-05-07 2015-08-05 网易(杭州)网络有限公司 User terminal, status switching method thereof, status switching device, game control method and game control device
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
CN106375533A (en) * 2016-11-29 2017-02-01 惠州Tcl移动通信有限公司 Unlocking method and system of mobile terminal
CN106845184A (en) * 2017-01-25 2017-06-13 广东欧珀移动通信有限公司 Locking method, device and terminal
CN106897079A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 Unlocking method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130027319A1 (en) * 2011-07-29 2013-01-31 Motorola Mobility, Inc. User interface and method for managing a user interface state between a locked state and an unlocked state
CN104820564A (en) * 2015-05-07 2015-08-05 网易(杭州)网络有限公司 User terminal, status switching method thereof, status switching device, game control method and game control device
CN105611531A (en) * 2015-10-30 2016-05-25 东莞酷派软件技术有限公司 Terminal control method, terminal control device and terminal
CN106897079A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 Unlocking method and mobile terminal
CN105678133A (en) * 2016-01-06 2016-06-15 北京小米移动软件有限公司 Terminal unlocking method and device
CN106375533A (en) * 2016-11-29 2017-02-01 惠州Tcl移动通信有限公司 Unlocking method and system of mobile terminal
CN106845184A (en) * 2017-01-25 2017-06-13 广东欧珀移动通信有限公司 Locking method, device and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683797A (en) * 2018-04-17 2018-10-19 天门市志远信息科技有限公司 Equipment unlocking method and its system
CN108985031A (en) * 2018-06-06 2018-12-11 宇龙计算机通信科技(深圳)有限公司 A kind of intelligent terminal, close intelligent terminal fingerprint identification function method
CN109286554A (en) * 2018-09-14 2019-01-29 腾讯科技(深圳)有限公司 Social functions unlocking method and device in social application
CN109286554B (en) * 2018-09-14 2021-07-13 腾讯科技(深圳)有限公司 Social function unlocking method and device in social application

Similar Documents

Publication Publication Date Title
US10129044B2 (en) Method and apparatus for controlling smart device
EP3331226B1 (en) Method and device for reading messages
EP3089065B1 (en) Method and device for permission management
US20150379252A1 (en) Method and device for locking file
CN106357934B (en) Screen locking control method and device
US20180157817A1 (en) Unlocking method and apparatus, and storage medium
CN106022072A (en) Method and device for achieving fingerprint unlocking and electronic equipment
CN108388786A (en) Unlocked by fingerprint method and device
CN106503513A (en) Method for recognizing sound-groove and device
CN105956432A (en) Unlocking method and device for mobile terminal, and mobile terminal
CN108319836A (en) The method and apparatus for executing processing based on fingerprint recognition
CN106557679A (en) Terminal control method and device
CN105678133A (en) Terminal unlocking method and device
CN106203048A (en) A kind of method and apparatus being unlocked
CN106503516A (en) Terminal, unlocked by fingerprint method and device
CN106682463A (en) Unlocking method and device
CN106529253A (en) Unlocking method and apparatus, and terminal device
CN105868709A (en) Method and apparatus for closing fingerprint identifying function
CN107045604A (en) Information processing method and device
CN108710791A (en) The method and device of voice control
CN106066763B (en) Terminal unlocking method and device
CN112437189A (en) Identity recognition method, device and medium
CN107808077A (en) For controlling the method, apparatus and storage medium of terminal unlocking function
CN105046127A (en) Encryption and decryption implementation method and device
CN108388864A (en) Fingerprint collecting method, device 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180316