








技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种屏幕解锁方法及终端设备。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a screen unlocking method and a terminal device.
背景技术Background technique
随着终端设备(例如,手机)的硬件配置的逐步提高以及功能的扩展,终端设备已经成为人们日常生活必不可缺的必需品,大量的用户也更加习惯将信息直接存储到终端设备上。此时,移动终端中所存储的信息的安全性也变得尤为重要。为了保证终端设备上信息的安全性,用户通常会在终端设备上设置屏幕密码,当用户使用该终端设备时,便需要输入密码进行解锁。With the gradual improvement of hardware configuration and expansion of functions of terminal equipment (eg, mobile phones), terminal equipment has become an indispensable necessity in people's daily life, and a large number of users are more accustomed to storing information directly on the terminal equipment. At this time, the security of the information stored in the mobile terminal also becomes particularly important. In order to ensure the security of the information on the terminal device, the user usually sets a screen password on the terminal device, and when the user uses the terminal device, the user needs to enter the password to unlock.
现有技术中的屏幕解锁方式通常为滑动解锁、图案解锁或者数字密码解锁等。但是,由于这些屏幕解锁方式比较单一,终端设备的锁屏界面中的解锁区域并不会发生变化,当终端设备的非法用户在获取到终端设备后,很容易便可从锁屏界面中确定出解锁区域,并通过多方尝试便可破解密码,安全性较差。Screen unlocking methods in the prior art are generally slide unlocking, pattern unlocking, or digital password unlocking. However, because these screen unlocking methods are relatively simple, the unlocking area in the lock screen interface of the terminal device does not change. When an illegal user of the terminal device obtains the terminal device, it is easy to determine from the lock screen interface Unlock the area and crack the password through multiple attempts, which is less secure.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种屏幕解锁方法及终端设备,用以解决现有的屏幕锁屏方式安全性差的问题。Embodiments of the present invention provide a screen unlocking method and a terminal device, so as to solve the problem of poor security in the existing screen locking method.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供一种屏幕解锁方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for unlocking a screen, the method comprising:
接收用户的第一操作;Receive the user's first operation;
响应于所述第一操作,在锁屏界面的第一位置上显示第一图案;In response to the first operation, displaying the first pattern on the first position of the lock screen interface;
接收所述用户在所述锁屏界面的至少一个目标位置上的第二操作;receiving a second operation of the user on at least one target position of the lock screen interface;
响应于所述第二操作,在所述至少一个目标位置与预设解锁位置匹配的情况下,解锁所述锁屏界面;In response to the second operation, in the case that the at least one target position matches a preset unlocking position, unlocking the lock screen interface;
其中,所述预设解锁位置与所述锁屏界面上显示的锁屏图案或所述第一位置相关联。Wherein, the preset unlocking position is associated with the screen lock pattern displayed on the screen lock interface or the first position.
第二方面,本发明实施例提供了一种终端设备,包括:In a second aspect, an embodiment of the present invention provides a terminal device, including:
接收模块,用于接收用户的第一操作;a receiving module, configured to receive the first operation of the user;
显示模块,用于响应于所述接收模块接收的所述第一操作,在锁屏界面的第一位置上显示第一图案;a display module, configured to display a first pattern on a first position of the lock screen interface in response to the first operation received by the receiving module;
所述接收模块,用于接收所述用户在所述锁屏界面的至少一个目标位置上的第二操作;the receiving module, configured to receive the second operation of the user on at least one target position of the lock screen interface;
解锁模块,用于响应于所述接收模块接收的所述第二操作,在所述至少一个目标位置与预设解锁位置匹配的情况下,解锁所述锁屏界面;an unlocking module, configured to, in response to the second operation received by the receiving module, unlock the lock screen interface when the at least one target position matches a preset unlocking position;
其中,所述预设解锁位置与所述锁屏界面上显示的锁屏图案或所述第一位置相关联。Wherein, the preset unlocking position is associated with the screen lock pattern displayed on the screen lock interface or the first position.
第三方面,本发明实施例提供了一种终端设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的屏幕解锁方法的步骤。In a third aspect, an embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to achieve the The steps of the screen unlocking method described in one aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的屏幕解锁方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the screen unlocking method according to the first aspect are implemented .
在本发明实施例中,终端设备在接收到第一操作后,会在锁屏界面的第一位置上显示第一图案,然后,接收用户在该锁屏界面的至少一个目标位置上的第二操作,并在至少一个目标位置与预设解锁位置匹配的情况下,解锁该锁屏界面。由于上述的预设解锁位置与上述的第一位置或锁屏界面上显示的锁屏图案有关,因此,当终端设备更换锁屏界面上显示的锁屏图案或更换第一图案在锁屏界面上的显示位置时,便可使得预设解锁位置随之发生变化,增加了非法用户从锁屏界面中破解出解锁位置的难度,提高了屏幕解锁的安全性。In this embodiment of the present invention, after receiving the first operation, the terminal device will display the first pattern on the first position of the lock screen interface, and then receive the user's second image on at least one target position of the lock screen interface. operation, and when at least one target position matches the preset unlock position, unlock the lock screen interface. Since the above-mentioned preset unlocking position is related to the above-mentioned first position or the lock screen pattern displayed on the lock screen interface, when the terminal device changes the lock screen pattern displayed on the lock screen interface or replaces the first pattern on the lock screen interface When the display position is displayed, the preset unlocking position can be changed accordingly, which increases the difficulty for illegal users to decipher the unlocking position from the lock screen interface, and improves the security of screen unlocking.
附图说明Description of drawings
图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种屏幕解锁方法的方法流程示意图之一;2 is one of the schematic flow charts of a method for unlocking a screen according to an embodiment of the present invention;
图3为本发明实施例提供的一种屏幕解锁方法所应用的界面的示意图之一;FIG. 3 is one of the schematic diagrams of an interface to which a screen unlocking method provided by an embodiment of the present invention is applied;
图4为本发明实施例提供的一种屏幕解锁方法的方法流程示意图之二;4 is a second schematic flowchart of a method for unlocking a screen according to an embodiment of the present invention;
图5为本发明实施例提供的一种屏幕解锁方法的方法流程示意图之三;FIG. 5 is a third schematic flowchart of a method for unlocking a screen according to an embodiment of the present invention;
图6为本发明实施例提供的一种屏幕解锁方法所应用的界面的示意图之二;6 is a second schematic diagram of an interface to which a screen unlocking method provided by an embodiment of the present invention is applied;
图7为本发明实施例提供的一种屏幕解锁方法所应用的界面的示意图之三;7 is a third schematic diagram of an interface to which a screen unlocking method according to an embodiment of the present invention is applied;
图8为本发明实施例提供的一种终端设备的结构示意图之一;FIG. 8 is one of schematic structural diagrams of a terminal device according to an embodiment of the present invention;
图9为本发明实施例提供的一种终端设备的结构示意图之二。FIG. 9 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“多个”是指两个或多于两个。It should be noted that “/” in this document means or, for example, A/B can mean A or B; “and/or” in this document is only an association relationship that describes an associated object, indicating that there may be three A relationship, for example, A and/or B, can mean the existence of A alone, the existence of both A and B, and the existence of B alone. "Plural" means two or more.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本发明实施例中提及的“位置”可以是一个点,也可以是一个区域,该区域的大小、面积、形状等本发明对此不做限定。例如,锁屏界面的第一位置,可以是锁屏界面上的一个点,也可以是锁屏界面上的一个区域。The "position" mentioned in the embodiments of the present invention may be a point or an area, and the size, area, shape, etc. of the area are not limited in the present invention. For example, the first position of the lock screen interface may be a point on the lock screen interface, or may be an area on the lock screen interface.
本发明实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The terminal device in this embodiment of the present invention may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA) etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiment of the present invention does not make any specific limitation.
本发明实施例提供的屏幕解锁方法的执行主体可以为上述的终端设备(包括移动终端设备和非移动终端设备),也可以为该终端设备中能够实现该屏幕解锁方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以终端设备为例,对本发明实施例提供的屏幕解锁方法进行示例性的说明。The execution body of the screen unlocking method provided by the embodiment of the present invention may be the above-mentioned terminal device (including mobile terminal device and non-mobile terminal device), or may be a functional module and/or function in the terminal device capable of implementing the screen unlocking method The entity can be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present invention. The following takes a terminal device as an example to illustrate the screen unlocking method provided by the embodiment of the present invention.
本发明实施例中的终端可以为具有操作系统的终端。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The terminal in this embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的屏幕解锁方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the screen unlocking method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的屏幕解锁方法的软件程序,从而使得该屏幕解锁方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的屏幕解锁方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the screen unlocking method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The unlocking method may run based on the Android operating system as shown in FIG. 1 . That is, the processor or the terminal device can implement the screen unlocking method provided by the embodiment of the present invention by running the software program in the Android operating system.
下面结合图2所示的屏幕解锁方法的方法流程图对本发明实施例的屏幕解锁方法进行说明,图2为本发明实施例提供的一种屏幕解锁方法流程示意图,包括S201至S204:The following describes a screen unlocking method according to an embodiment of the present invention with reference to the method flowchart of the screen unlocking method shown in FIG. 2 . FIG. 2 is a schematic flowchart of a screen unlocking method provided by an embodiment of the present invention, including S201 to S204:
S201、终端设备接收用户的第一操作。S201. A terminal device receives a first operation of a user.
在本发明实施例中,第一操作用于触发终端设备在锁屏界面的第一位置上显示第一图案。In this embodiment of the present invention, the first operation is used to trigger the terminal device to display the first pattern on the first position of the lock screen interface.
在本发明实施例中,上述的锁屏界面为终端设备处于锁屏状态时终端设备的屏幕显示的界面。In the embodiment of the present invention, the above-mentioned screen-locking interface is an interface displayed on the screen of the terminal device when the terminal device is in a screen-locking state.
可选的,在本发明实施例中,用户输入的第一操作具体可以是:用户在锁屏界面上的点击操作,或者是用户在锁屏界面上的按压操作,或者是用户对锁屏界面的第一位置上的特定手势,或者是用户在锁屏界面的第一位置上绘制图案的操作。Optionally, in this embodiment of the present invention, the first operation input by the user may specifically be: the user's click operation on the lock screen interface, or the user's pressing operation on the lock screen interface, or the user's operation on the lock screen interface. The specific gesture on the first position of the lock screen, or the operation of the user drawing a pattern on the first position of the lock screen interface.
其中,上述点击操作可以为单击、双击或者连续点击预设次数的操作。上述的特定手势可以为单击手势、滑动手势、压力识别手势、长按手势、双按手势、双击手势中的任意一种。The above-mentioned click operation may be a single click, a double click, or an operation of continuously clicking for a preset number of times. The above-mentioned specific gesture may be any one of a single-click gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, a double-press gesture, and a double-click gesture.
S202、响应于第一操作,终端设备在锁屏界面的第一位置上显示第一图案。S202. In response to the first operation, the terminal device displays a first pattern on a first position of the lock screen interface.
在本发明实施例中,上述的第一图案的形状可以为为圆形、矩形、三角形、菱形、圆环或者多边形等任意可能的形状,具体可以根据实际使用需求确定,本发明实施例不作限定。In the embodiment of the present invention, the shape of the above-mentioned first pattern may be any possible shape such as a circle, a rectangle, a triangle, a rhombus, a ring, or a polygon, and the specific shape can be determined according to actual use requirements, which is not limited by the embodiment of the present invention. .
在本发明实施例中,终端设备可以在锁屏界面的第一位置处叠加显示一个第一图案。In this embodiment of the present invention, the terminal device may superimpose and display a first pattern at the first position of the lock screen interface.
可选的,在本发明实施例中,上述的第一图案可以以预设透明度叠加显示在该锁屏界面中,例如,如果预设透明度记为T1,那么T1的取值范围可以为0%<T1<100%。此外,该第一图案还可以高亮度或低亮度显示在锁屏界面上。Optionally, in this embodiment of the present invention, the above-mentioned first pattern may be superimposed and displayed on the lock screen interface with a preset transparency. For example, if the preset transparency is recorded as T1, the value range of T1 may be 0%. <T1<100%. In addition, the first pattern can also be displayed on the lock screen interface with high brightness or low brightness.
进一步可选的,在本发明实施例中,上述的第一图案在用户还未解锁屏幕时,可以随机出现在锁屏界面上的任意位置,并如同气泡一样四处移动。Further optionally, in this embodiment of the present invention, when the user has not unlocked the screen, the above-mentioned first pattern may randomly appear at any position on the lock screen interface, and move around like a bubble.
S203、终端设备接收用户在锁屏界面的至少一个目标位置上的第二操作。S203. The terminal device receives a second operation of the user on at least one target position of the lock screen interface.
在本发明实施例中,上述的第一位置与目标位置不同。In the embodiment of the present invention, the above-mentioned first position is different from the target position.
可选的,在本发明实施例中,用户输入的第二操作具体可以是:用户在锁屏界面的目标位置上的点击操作,或者是用户在锁屏界面的目标位置上的按压操作,或者是用户在锁屏界面的目标位置上的特定手势,或者是用户在锁屏界面的目标位置上绘制图案的操作。其中,上述的点击操作以及特定手势可以参照上文的描述,这里不再赘述。Optionally, in this embodiment of the present invention, the second operation input by the user may specifically be: the user's click operation on the target position of the lock screen interface, or the user's pressing operation on the target position of the lock screen interface, or It is a specific gesture of the user on the target position of the lock screen interface, or the operation of the user drawing a pattern on the target position of the lock screen interface. For the above-mentioned click operation and specific gesture, reference may be made to the above description, which will not be repeated here.
S204、响应于第二操作,终端设备在至少一个目标位置与预设解锁位置匹配的情况下,解锁锁屏界面。S204. In response to the second operation, the terminal device unlocks the lock screen interface under the condition that at least one target position matches the preset unlock position.
在本发明实施例中,上述的预设解锁位置可以与锁屏界面上显示的锁屏图案相关联,也可以与第一图案的显示位置(第一位置)相关联。In this embodiment of the present invention, the above-mentioned preset unlocking position may be associated with a lock screen pattern displayed on the lock screen interface, or may be associated with a display position (first position) of the first pattern.
在本发明实施例中,上述预设解锁位置与第一位置相关联,即终端设备中存储有该预设解锁位置与第一位置间的对应关系,或者,基于第一位置设定预设解锁位置的预设策略。In this embodiment of the present invention, the above-mentioned preset unlocking position is associated with the first position, that is, the terminal device stores a corresponding relationship between the preset unlocking position and the first position, or the preset unlocking position is set based on the first position Preset strategy for location.
在本发明实施例中,上述预设解锁位置与锁屏界面上显示的锁屏图案相关联,也就是说,本发明实施例中的预设解锁位置会随着锁屏界面上显示锁屏图案的不同而发生改变。示例性的,锁屏界面中的锁屏图案可以是用户在后台自定义的,例如,卡通、风景、自拍图像等任何用户想要用来解锁的图案,本发明对图案的内容不做限定。In the embodiment of the present invention, the above-mentioned preset unlocking position is associated with the lock screen pattern displayed on the lock screen interface, that is to say, the preset unlock position in the embodiment of the present invention will follow the lock screen pattern displayed on the lock screen interface. changes according to the difference. Exemplarily, the lock screen pattern in the lock screen interface can be customized by the user in the background, for example, any pattern that the user wants to unlock, such as cartoon, landscape, selfie image, etc. The content of the pattern is not limited in the present invention.
可选的,在本发明实施例中,由于用户在设定预设解锁位置时,会根据具体的锁屏图案中的图像特征来选择用户印象深刻的位置作为预设解锁位置,因此,用户选择出的预设解锁位置便会带有用户自己的个性化特质,从而使得非法用户无法轻易的获取到预设解锁位置。Optionally, in this embodiment of the present invention, when the user sets the preset unlocking position, the user will select a position that is impressive to the user as the preset unlocking position according to the image features in the specific lock screen pattern. Therefore, the user selects The preset unlocking position will have the user's own personalized characteristics, so that the illegal user cannot easily obtain the preset unlocking position.
可选的,在本发明实施例中,上述的预设解锁位置包括N个预设解锁位置,在上述的N个预设解锁位置与锁屏图案相关联的场景下:Optionally, in this embodiment of the present invention, the above-mentioned preset unlocking positions include N preset unlocking positions, and in the scenario where the above-mentioned N preset unlocking positions are associated with a lock screen pattern:
若上述的至少一个目标位置包括:第一目标位置和第二目标位置,且上述的第二操作为用户从第一目标位置滑动至第二目标位置的滑动操作,则上述的S204具体包括如下步骤:If the above-mentioned at least one target position includes: a first target position and a second target position, and the above-mentioned second operation is a sliding operation of the user sliding from the first target position to the second target position, the above-mentioned S204 specifically includes the following steps :
步骤A1、终端设备获取该滑动操作的滑动轨迹。Step A1, the terminal device acquires the sliding track of the sliding operation.
步骤A2、终端设备在滑动轨迹依次经过上述N个预设解锁位置的情况下,解锁锁屏界面。Step A2: The terminal device unlocks the lock screen interface when the sliding track passes through the N preset unlocking positions in sequence.
进一步可选的,在本发明实施例中,当用户在锁屏界面上滑动时,第一图案随着用户的滑动操作同时移动,且当该滑动操作经过预设解锁位置时,高亮度显示该第一图案或者该预设解锁位置处图案,以提示用户解锁正确。Further optionally, in this embodiment of the present invention, when the user slides on the lock screen interface, the first pattern moves simultaneously with the user's sliding operation, and when the sliding operation passes through the preset unlocking position, the display is highlighted. The first pattern or the pattern at the preset unlocking position to prompt the user to unlock correctly.
可选的,在本发明实施例中,上述的预设解锁位置包括N个预设解锁位置,在上述的N个预设解锁位置与锁屏图案相关联的场景下:Optionally, in this embodiment of the present invention, the above-mentioned preset unlocking positions include N preset unlocking positions, and in the scenario where the above-mentioned N preset unlocking positions are associated with a lock screen pattern:
在上述的至少一个目标位置包括N个目标位置,且上述的第二操作为用户在N个目标位置上的触控操作(例如,该触控操作可以为用户依次在N个目标位置上的触控操作)时,上述的S204具体包括如下步骤:The above at least one target position includes N target positions, and the above-mentioned second operation is a touch operation performed by the user on the N target positions (for example, the touch operation may be a user's touch operation on the N target positions in sequence. control operation), the above-mentioned S204 specifically includes the following steps:
步骤B、终端设备在N个目标位置与N个预设解锁位置匹配的情况下,解锁锁屏界面。Step B: The terminal device unlocks the lock screen interface under the condition that the N target positions match the N preset unlocking positions.
在本发明实施例中,上述的触控操作具体可以是:用户在锁屏界面上的点击操作,或者是用户在锁屏界面上的按压操作等。其中,上述点击操作可以为单击、双击或者连续点击预设次数的操作。In the embodiment of the present invention, the above-mentioned touch operation may specifically be: a user's click operation on the lock screen interface, or a user's pressing operation on the lock screen interface, or the like. The above-mentioned click operation may be a single click, a double click, or an operation of continuously clicking for a preset number of times.
在本发明实施例中,上述的N个目标位置与N个预设解锁位置匹配是指N个目标位置与N个预设解锁位置相同,例如,假设预设解锁位置为锁屏界面上的位置A、位置B以及位置C,则只有在第二操作为用户在锁屏界面的三次触控操作的位置分别为:位置A、位置B以及位置C时,才会解锁锁屏界面。In the embodiment of the present invention, the above-mentioned N target positions matching the N preset unlocking positions means that the N target positions are the same as the N preset unlocking positions. For example, it is assumed that the preset unlocking positions are the positions on the lock screen interface A, position B, and position C, the lock screen interface will be unlocked only when the second operation is the user's three touch operations on the lock screen interface, and the positions are: position A, position B, and position C, respectively.
在本发明实施例中,上述的N个目标位置与N个预设解锁位置匹配是指N个目标位置的排布顺序与N个预设解锁位置的排布顺序相同,例如,假设预设解锁位置为锁屏界面上的位置A、位置B以及位置C,且位置的排布顺序为位置A、位置B以及位置C,因此,只有在第一操作为用户在锁屏界面上的三次连续点击操作依次分别对应的位置为:位置A、位置B以及位置C时,终端设备才会解锁屏幕。In the embodiment of the present invention, the above-mentioned N target positions matching the N preset unlocking positions means that the arrangement order of the N target positions is the same as the arrangement order of the N preset unlocking positions. For example, it is assumed that the preset unlocking positions are arranged in the same order. The positions are position A, position B, and position C on the lock screen interface, and the arrangement order of the positions is position A, position B, and position C. Therefore, only when the first operation is the user's three consecutive clicks on the lock screen interface The positions corresponding to the operations in sequence are: position A, position B, and position C, the terminal device will unlock the screen.
进一步可选的,在本发明实施例中,当用户在锁屏界面上点触时,第一图案随着用户的触控操作进行移动,且当该触控操作与预设解锁位置相同时,高亮度显示该第一图案或者该预设解锁位置处图案,以提示用户解锁正确。Further optionally, in this embodiment of the present invention, when the user touches on the lock screen interface, the first pattern moves with the user's touch operation, and when the touch operation is the same as the preset unlocking position, The first pattern or the pattern at the preset unlocking position is displayed with high brightness to prompt the user that the unlocking is correct.
举例说明,假设终端设备的锁屏界面中显示的锁屏图案为米老鼠图案,且锁屏界面上的第一控件以圆圈为例,若预设解锁位置中的解锁起始位置为米老鼠的左耳,如图3中的(a)所示,当用户点击人物左耳时,在锁屏界面内四处移动的圆圈会自动定位到米来书的左耳;若用户点击的并不是米老鼠的左耳,则圆圈并不会有任何响应,用户也不能解锁。如图3中的(b)所示,假设用户设定的预设解锁位置依次分别为:左耳、鼻子以及右脚时,若用户依次在锁屏界面上点击的位置分别为:左耳、鼻子以及右脚时,该圆圈会随着用户的点击依次移动至左耳、鼻子以及右脚,只有圆圈依次通过这三个位置,才可解锁屏幕。For example, assuming that the lock screen pattern displayed in the lock screen interface of the terminal device is a Mickey Mouse pattern, and the first control on the lock screen interface is a circle as an example, if the unlock start position in the preset unlock position is Mickey Mouse's Left ear, as shown in (a) in Figure 3, when the user clicks on the character's left ear, the circle moving around in the lock screen interface will automatically locate the left ear of Mi Laishu; if the user clicks not Mickey Mouse the left ear, the circle does not respond and the user cannot unlock it. As shown in (b) of Figure 3, assuming that the preset unlocking positions set by the user are: left ear, nose and right foot, if the user clicks on the lock screen interface in sequence: left ear, For nose and right foot, the circle will move to the left ear, nose and right foot in sequence with the user's click. Only when the circle passes through these three positions in sequence can the screen be unlocked.
可选的,在上述的N个预设解锁位置与锁屏图案相关联的场景下,下文对预设解锁位置的设置过程进行介绍。Optionally, in the above scenario where the N preset unlocking positions are associated with the screen lock pattern, the following describes the setting process of the preset unlocking positions.
如图4所示,在本发明实施例中,该方法还包括如下S301至S304:As shown in FIG. 4, in this embodiment of the present invention, the method further includes the following S301 to S304:
S301、终端设备接收第三操作。S301. A terminal device receives a third operation.
在本发明实施例中,上述的第三操作用于触发预设解锁位置的设置界面。In the embodiment of the present invention, the above-mentioned third operation is used to trigger the setting interface of the preset unlocking position.
可选的,在本发明实施例中,用户输入的第三操作具体可以是:用户对终端设备的主桌面上的功能控件的按压操作,或对终端设备的主桌面的点击操作,或者是用户输入的语音指令,或者是用户输入的特定手势。其中,上述的点击操作以及特定手势可以参照上文的描述,这里不再赘述。Optionally, in this embodiment of the present invention, the third operation input by the user may specifically be: a user's pressing operation on a function control on the main desktop of the terminal device, or a click operation on the main desktop of the terminal device, or a user operation. An entered voice command, or a specific gesture entered by the user. For the above-mentioned click operation and specific gesture, reference may be made to the above description, which will not be repeated here.
S302、响应于第二操作,终端设备显示设置界面。S302. In response to the second operation, the terminal device displays a setting interface.
在本发明实施例中,上述设置界面上显示的锁屏图案包括X个待选解锁位置。In the embodiment of the present invention, the screen lock pattern displayed on the above-mentioned setting interface includes X unlocking positions to be selected.
S303、终端设备接收第四操作。S303. The terminal device receives the fourth operation.
在本发明实施例中,上述的第四操作为用户在Y第一待选解锁位置上的选择操作,X个待选解锁位置包括:Y个第一待选解锁位置,Y小于或等于X。示例性的,在本发明实施例中用户会在设置界面上显示的锁屏图案中的X个待选解锁位置中选择出Y个第一待选解锁位置作为预设解锁位置。In the embodiment of the present invention, the above-mentioned fourth operation is a user's selection operation on the Y first unlocking position to be selected, and the X unlocking positions to be selected include: Y first unlocking positions to be selected, and Y is less than or equal to X. Exemplarily, in this embodiment of the present invention, the user selects Y first unlocking positions to be selected from among the X unlocking positions to be selected in the lock screen pattern displayed on the setting interface as the preset unlocking positions.
S304、响应于第四操作,终端设备将Y个第一待选解锁位置作为预设解锁位置。S304. In response to the fourth operation, the terminal device uses the Y first unlocking positions to be selected as the preset unlocking positions.
在本发明实施例中,终端设备可以仅存储上述的Y个第一待选解锁位置的位置信息,这样当上述的目标位置与预存的Y个第一待选解锁位置相同,便可解锁屏幕;还可以在存储上述的Y个第一待选解锁位置的位置信息的同时,存储用户在选择上述的Y个第一待选解锁位置的选择顺序,这样当上述的目标位置的点触顺序或滑动顺序与预存的Y个第一待选解锁位置的选择顺序相同,便可解锁屏幕。In the embodiment of the present invention, the terminal device can only store the position information of the above-mentioned Y first candidate unlocking positions, so that when the above-mentioned target position is the same as the pre-stored Y first candidate unlocking positions, the screen can be unlocked; It is also possible to store the position information of the above-mentioned Y first candidate unlocking positions, and store the selection sequence of the user selecting the above-mentioned Y first candidate unlocking positions, so that when the above-mentioned target position touch order or slide The sequence is the same as the selection sequence of the pre-stored Y first candidate unlocking positions, and the screen can be unlocked.
本发明实施例提供的屏幕解锁方法,终端设备在接收到第一操作后,会在锁屏界面的第一位置上显示第一图案,然后,接收用户在该锁屏界面的至少一个目标位置上的第二操作,并在至少一个目标位置与预设解锁位置匹配的情况下,解锁该锁屏界面。由于上述的预设解锁位置与上述的第一位置或锁屏界面上显示的锁屏图案有关,因此,当终端设备更换锁屏界面上显示的锁屏图案或更换第一图案在锁屏界面上的显示位置时,便可使得预设解锁位置随之发生变化,增加了非法用户从锁屏界面中破解出解锁位置的难度,提高了屏幕解锁的安全性。In the screen unlocking method provided by the embodiment of the present invention, after receiving the first operation, the terminal device will display the first pattern on the first position of the lock screen interface, and then receive the user on at least one target position of the lock screen interface. and unlock the lock screen interface when at least one target position matches the preset unlock position. Since the above-mentioned preset unlocking position is related to the above-mentioned first position or the lock screen pattern displayed on the lock screen interface, when the terminal device changes the lock screen pattern displayed on the lock screen interface or replaces the first pattern on the lock screen interface When the display position is displayed, the preset unlocking position can be changed accordingly, which increases the difficulty for illegal users to decipher the unlocking position from the lock screen interface, and improves the security of screen unlocking.
可选的,在本发明实施例中,当上述的第二操作为按压操作时,终端设备可以根据用户的使用习惯,通过判定用户的按压操作对应的按压力度值是否符合用户惯常的按压力度值,来识别出用户是否为本机为机主。Optionally, in this embodiment of the present invention, when the above-mentioned second operation is a pressing operation, the terminal device may, according to the user's usage habits, determine whether the pressing force value corresponding to the pressing operation of the user conforms to the user's usual pressing force value. , to identify whether the user is the machine owner.
示例性的,上述的S204具体包括如下步骤:Exemplarily, the above-mentioned S204 specifically includes the following steps:
步骤C、响应于第二操作,终端设备在至少一个目标位置与预设解锁位置匹配的情况下,获取按压操作对应的按压力度值,在按压力度值与预设按压力度值间的绝对差值小于或等于预定阈值,则解锁锁屏界面。Step C. In response to the second operation, the terminal device obtains the pressing force value corresponding to the pressing operation when at least one target position matches the preset unlocking position, and the absolute difference between the pressing force value and the preset pressing force value If it is less than or equal to the predetermined threshold, the lock screen interface is unlocked.
在本发明实施例中,若至少一个目标位置包括N个目标位置,则上述的第二操作为用户在锁屏界面的N个目标位置上的按压操作,因此,在执行上述步骤C时,用户可以针对用户在每个目标位置上的按压操作进行压力判定,也可以从N个目标位置对应的N个按压操作中任选一个或多个按压操作进行压力判定,本发明对此不作限定。In this embodiment of the present invention, if at least one target position includes N target positions, the above-mentioned second operation is a user's pressing operation on the N target positions on the lock screen interface. Therefore, when performing the above step C, the user The pressure determination may be performed for the user's pressing operations on each target position, or one or more pressing operations may be selected from the N pressing operations corresponding to the N target positions to perform the pressure determination, which is not limited in the present invention.
在本发明实施例中,上述的预设按压力度值是终端设备根据用户历史的按压操作的按压力度值得到的,上述的预定阈值可以根据实际应用场景灵活设定。具体的,终端设备可以将预定时间段内的用户的按压操作的按压力度值取平均,得到一个平均按压力度值,也可以统计预定时间段内的用户的按压操作对应的按压力度值,将出现次数最高的按压力度值作为预设按压力度值。In the embodiment of the present invention, the above-mentioned preset pressing force value is obtained by the terminal device according to the pressing force value of the user's historical pressing operation, and the above-mentioned predetermined threshold value can be flexibly set according to the actual application scenario. Specifically, the terminal device may average the pressing force values of the user's pressing operations within a predetermined period of time to obtain an average pressing force value, or may count the pressing force values corresponding to the user's pressing operations within the predetermined period of time, and a message will appear. The pressing force value with the highest number of times is used as the preset pressing force value.
这样根据用户的使用习惯,通过判定用户解锁屏幕时的按压操作的按压力度值是否符合用户惯常的按压力度值,来识别出当前用户是否为本机为机主,提高了屏幕解锁的安全性。In this way, according to the user's usage habits, by determining whether the pressing force value of the pressing operation when the user unlocks the screen conforms to the user's usual pressing force value, it is recognized whether the current user is the machine owner, which improves the security of screen unlocking.
下面结合图5所示的屏幕解锁方法的方法流程图对本发明实施例的屏幕解锁方法进行说明。如图5所示,该方法包括包括S401至S405:The screen unlocking method according to the embodiment of the present invention will be described below with reference to the method flowchart of the screen unlocking method shown in FIG. 5 . As shown in FIG. 5, the method includes S401 to S405:
S401、终端设备接收用户的第一操作。S401. A terminal device receives a first operation of a user.
在本发明实施例中,上述的第一操作为用户在锁屏界面的第二位置上的操作。In the embodiment of the present invention, the above-mentioned first operation is an operation performed by the user on the second position of the lock screen interface.
S402、响应于第一操作,终端设备在第二位置上显示第二图案。S402. In response to the first operation, the terminal device displays the second pattern on the second position.
S403、终端设备在第二图案的特征信息与预设特征信息匹配的情况下,在第一位置显示第一图案。S403. The terminal device displays the first pattern at the first position when the feature information of the second pattern matches the preset feature information.
在本发明实施例中,上述的图案的特征信息包括该图案的位置信息和形状信息。In the embodiment of the present invention, the feature information of the above-mentioned pattern includes position information and shape information of the pattern.
在本发明实施例中,上述的第二图案的特征信息与预设特征信息匹配是指第二图案的团形状与预设图案的图案形状相同,和/或,第二位置与第二预设解锁位置相同。In this embodiment of the present invention, the above-mentioned matching of the feature information of the second pattern with the preset feature information means that the blob shape of the second pattern is the same as the pattern shape of the preset pattern, and/or the second position is the same as the second preset pattern. The unlock position is the same.
在本发明实施例中,上述的第一图案与第二图案的图案形状可以相同,也可以不相同。示例性的,上述的第一图案和/或第二图案的形状可以为为圆形、矩形、三角形、菱形或者多边形等任意可能的形状,具体可以根据实际使用需求确定,本发明实施例不作限定。In the embodiment of the present invention, the pattern shapes of the first pattern and the second pattern may be the same or different. Exemplarily, the shape of the above-mentioned first pattern and/or the second pattern may be any possible shape such as a circle, a rectangle, a triangle, a rhombus, or a polygon, which may be determined according to actual use requirements, which is not limited in the embodiment of the present invention. .
可选的,本发明实施例中,上述的第一图案和/或第二图案可以叠加显示在锁屏界面上。具体的,上述的第一图案和/或第二图案可以以预设透明度叠加显示在锁屏界面上。例如,若上述预设透明度记为T2,则T2的取值范围可以为0%<T2<100%。Optionally, in this embodiment of the present invention, the above-mentioned first pattern and/or second pattern may be superimposed and displayed on the lock screen interface. Specifically, the above-mentioned first pattern and/or second pattern may be superimposed and displayed on the lock screen interface with preset transparency. For example, if the above-mentioned preset transparency is denoted as T2, the value range of T2 may be 0%<T2<100%.
在本发明实施例中,终端设备在第一位置上显示第一图案,主要用于在锁屏界面上为用户提示第一位置时,此时,终端设备可以直接在锁屏界面的第一位置上显示一个特定图案,或者,高亮显示锁屏界面的第一位置上的图案,或者,在锁屏界面的第一位置上显示一个动态图案,或者,动态显示锁屏界面的第一位置上的图案。In this embodiment of the present invention, the terminal device displays the first pattern on the first position, which is mainly used to prompt the user for the first position on the lock screen interface. At this time, the terminal device can directly display the first position on the lock screen interface. Display a specific pattern on the lock screen, or highlight the pattern on the first position of the lock screen interface, or display a dynamic pattern on the first position of the lock screen interface, or dynamically display the first position of the lock screen interface picture of.
可选的,在本发明实施例中,终端设备在第一位置显示第一图案之前,可以根据第二位置确定出第一位置。Optionally, in this embodiment of the present invention, before displaying the first pattern at the first position, the terminal device may determine the first position according to the second position.
在一种示例中,终端设备在根据第二位置确定第一位置时,可以从位置对应关系表中,查找出与第二位置对应的第一位置。示例性的,上述的位置对应关系表包括至少一个第一位置的位置信息和至少一个第二位置的位置信息,一个第一位置对应一个第二位置。需要说明的是,终端设备可以将整个锁屏界面划分为多个分区,每个分区对应一个第一位置,该分区的划分可以按照实际情况来灵活设定,或者,终端设备也可以根据用户的历史行为记录,将锁屏界面中用户常用的区域划分为多个分区,每个分区对应一个第一位置。本发明对此不作限定。In an example, when determining the first position according to the second position, the terminal device may search out the first position corresponding to the second position from the position correspondence table. Exemplarily, the above-mentioned position correspondence table includes position information of at least one first position and position information of at least one second position, and one first position corresponds to one second position. It should be noted that the terminal device can divide the entire lock screen interface into multiple partitions, each partition corresponds to a first position, and the partitioning of the partition can be flexibly set according to the actual situation, or the terminal device can also be based on the user's preferences. The historical behavior record divides the area commonly used by users in the lock screen interface into multiple partitions, and each partition corresponds to a first position. The present invention is not limited to this.
S404、终端设备接收所述用户在锁屏界面的至少一个目标位置上的第二操作。S404. The terminal device receives the user's second operation on at least one target position on the screen lock interface.
S405、响应于第二操作,终端设备在至少一个目标位置与预设解锁位置匹配的情况下,解锁锁屏界面。S405. In response to the second operation, the terminal device unlocks the lock screen interface under the condition that at least one target position matches the preset unlock position.
在本发明实施例中,上述的预设解锁位置与第一位置和第二位置相关联。上述的目标位置与第一位置和第二位置不同。In the embodiment of the present invention, the above-mentioned preset unlocking position is associated with the first position and the second position. The above-mentioned target position is different from the first position and the second position.
可选的,在本发明实施例中,上述的预设解锁位置可以在第一位置与第二位置的连线上,换句话说,上述的预设解锁位置的中心点在第一位置的中心点与第二位置的中心点的连线上,也可以在以第一位置的中心点和第二位置的中心点为端点的线段的中心垂线上。Optionally, in the embodiment of the present invention, the above-mentioned preset unlocking position may be on the connecting line between the first position and the second position, in other words, the center point of the above-mentioned preset unlocking position is the center of the first position. The line connecting the point and the center point of the second position may also be on the center vertical line of the line segment whose endpoints are the center point of the first position and the center point of the second position.
例如,以上述的预设解锁位置的中心点在第一位置的中心点与第二位置的中心点的连线上为例。如图6中的(a)所示,当用户想要解锁屏幕时,用户在位置A处画了个三角形,若用户预先设定的预设图案的位置也为位置A,此时,如图6中的(b)所示,终端设备会在位置B处自动显示一个三角形。用户在看到这个三角形后,如图6中的(c)所示,用户按压以位置A和位置B中心点处(即图6中的(c)中的位置C),若该位置C符合预先设定的预设解锁位置,则解锁锁屏界面。For example, take the above-mentioned center point of the preset unlocking position on the connecting line between the center point of the first position and the center point of the second position as an example. As shown in (a) in Figure 6, when the user wants to unlock the screen, the user draws a triangle at position A. If the position of the preset pattern preset by the user is also position A, at this time, as shown in the figure As shown in (b) of 6, the terminal device will automatically display a triangle at position B. After the user sees this triangle, as shown in (c) in Figure 6, the user presses the center point of position A and position B (that is, position C in (c) in Figure 6), if the position C meets the The preset preset unlocking position will unlock the lock screen interface.
可选的,在本发明实施例中,上述的S405具体包括如下步骤:Optionally, in this embodiment of the present invention, the foregoing S405 specifically includes the following steps:
步骤E、响应于第二操作,终端设备在至少一个目标位置与预设解锁位置匹配的情况下,将第一位置上显示的第一图案与第二位置上显示的第二图案交换显示。Step E: In response to the second operation, the terminal device displays the first pattern displayed on the first location and the second pattern displayed on the second location interchangeably when at least one target location matches the preset unlock location.
举例说明,以第一操作为用户在第二位置上绘制第二图案的操作为例,如图7中的(a)所示,当用户想要解锁屏幕时,用户在位置A(即第二位置)处画了个三角形,若用户预先设定的预设图案的位置也为位置A,此时,如图7中的(b)所示,终端设备会在位置B(第一位置)处自动显示一个圆形。接着,如图7中的(c)所示,用户按压位置A和位置B的连线上的二分之一处(即图7中的(c)中的位置C),若该位置C符合预设解锁位置,则将位置A处的三角形与位置B处的圆形交换显示,显示后解锁锁屏界面。For example, taking the first operation as an operation in which the user draws a second pattern on the second position, as shown in (a) in FIG. 7 , when the user wants to unlock the screen, the user is in position A (ie the second A triangle is drawn at the position), if the position of the preset pattern preset by the user is also position A, at this time, as shown in (b) in Figure 7, the terminal device will be at position B (the first position). A circle is automatically displayed. Next, as shown in (c) of FIG. 7 , the user presses a half of the line connecting position A and position B (ie, position C in (c) of FIG. 7 ), if the position C meets the In the preset unlock position, the triangle at position A and the circle at position B are displayed interchangeably, and the lock screen interface is unlocked after display.
需要说明的是,本实施例中与上文相关的描述可以直接引用上文的详细描述(例如,S401以及S403至S405中的相关描述可以参照S201至S204中的具体描述),这里不再赘述。It should be noted that, the description related to the above in this embodiment may directly refer to the above detailed description (for example, the relevant description in S401 and S403 to S405 may refer to the specific description in S201 to S204), which will not be repeated here. .
本发明实施例提供的屏幕解锁方法,终端设备在接收到用户在锁屏界面的第二位置上的第一操作后,便在锁屏界面上提示出第一位置,此时,若是本机用户,便可在获知了第一位置后,根据第一位置以及第二位置确定出预设解锁位置,从而解锁锁屏界面,若是非法用户,则由于无法获知第一位置以及第二位置的用途从而无法确定出预设解锁位置,进而无法进行屏幕解锁。In the screen unlocking method provided by the embodiment of the present invention, after receiving the user's first operation on the second position on the screen lock interface, the terminal device prompts the first position on the screen lock interface. , after the first position is known, the preset unlocking position can be determined according to the first position and the second position, so as to unlock the lock screen interface. If it is an illegal user, since the purpose of the first position and the second position cannot be known, The preset unlock position cannot be determined, and the screen cannot be unlocked.
图8为实现本发明实施例提供的一种终端设备的可能的结构示意图,如图8所示,终端设备500包括接收模块501、显示模块502以及解锁模块503,其中:8 is a schematic diagram of a possible structure for implementing a terminal device provided by an embodiment of the present invention. As shown in FIG. 8 , the
接收模块501,用于接收用户的第一操作。The receiving
显示模块502,用于响应于接收模块501接收的第一操作,在锁屏界面的第一位置上显示第一图案。The
接收模块501,用于接收用户在锁屏界面的至少一个目标位置上的第二操作。The receiving
解锁模块503,用于响应于接收模块501接收的第二操作,在至少一个目标位置与预设解锁位置匹配的情况下,解锁锁屏界面。The unlocking
其中,上述的预设解锁位置与锁屏界面上显示的锁屏图案或第一位置相关联。Wherein, the above-mentioned preset unlocking position is associated with the lock screen pattern or the first position displayed on the lock screen interface.
可选的,上述的第一操作为用户在锁屏界面的第二位置上的操作;显示模块502,具体用于:响应于接收模块501接收的第一操作,在第二位置上显示第二图案,在第二图案的特征信息与预设特征信息匹配的情况下,在第一位置显示第一图案;其中,上述的预设解锁位置与第一位置和第二位置相关联,上述的特征信息包括位置信息和形状信息。Optionally, the above-mentioned first operation is an operation performed by the user on the second position of the lock screen interface; the
可选的,显示模块502,还用于:在至少一个目标位置与预设解锁位置匹配的情况下,将第一位置上显示的第一图案与第二位置上显示的第二图案交换显示。Optionally, the
可选的,上述的至少一个目标位置包括:第一目标位置和第二目标位置;上述的预设解锁位置包括N个预设解锁位置,上述的N个预设解锁位置与锁屏图案相关联;上述的第二操作为用户从第一目标位置滑动至第二目标位置的滑动操作;解锁模块503具体用于:获取滑动操作的滑动轨迹;在滑动轨迹依次经过N个预设解锁位置的情况下,解锁锁屏界面。Optionally, the above-mentioned at least one target position includes: a first target position and a second target position; the above-mentioned preset unlocking positions include N preset unlocking positions, and the above-mentioned N preset unlocking positions are associated with the lock screen pattern. The above-mentioned second operation is a sliding operation in which the user slides from the first target position to the second target position; the unlocking
可选的,上述的至少一个目标位置包括N个目标位置;上述的预设解锁位置包括N个预设解锁位置,N个预设解锁位置与锁屏图案相关联;上述的第二操作为用户在N个目标位置上的触控操作。Optionally, the above-mentioned at least one target position includes N target positions; the above-mentioned preset unlocking positions include N preset unlocking positions, and the N preset unlocking positions are associated with the lock screen pattern; the above-mentioned second operation is that the user Touch operations on N target locations.
可选的,上述的第二操作为按压操作;解锁模块503,具体用于:获取按压操作对应的按压力度值;在按压力度值与预设按压力度值间的绝对差值小于或等于预定阈值的情况下,解锁锁屏界面。Optionally, the above-mentioned second operation is a pressing operation; the unlocking
本发明实施例提供的终端设备,该终端设备在接收到第一操作后,会在锁屏界面的第一位置上显示第一图案,然后,接收用户在该锁屏界面的至少一个目标位置上的第二操作,并在至少一个目标位置与预设解锁位置匹配的情况下,解锁该锁屏界面。由于上述的预设解锁位置与上述的第一位置或锁屏界面上显示的锁屏图案有关,因此,当终端设备更换锁屏界面上显示的锁屏图案或更换第一图案在锁屏界面上的显示位置时,便可使得预设解锁位置随之发生变化,增加了非法用户从锁屏界面中破解出解锁位置的难度,提高了屏幕解锁的安全性。In the terminal device provided by the embodiment of the present invention, after receiving the first operation, the terminal device displays the first pattern on the first position of the lock screen interface, and then receives the user on at least one target position of the lock screen interface. and unlock the lock screen interface when at least one target position matches the preset unlock position. Since the above-mentioned preset unlocking position is related to the above-mentioned first position or the lock screen pattern displayed on the lock screen interface, when the terminal device changes the lock screen pattern displayed on the lock screen interface or replaces the first pattern on the lock screen interface When the display position is displayed, the preset unlocking position can be changed accordingly, which increases the difficulty for illegal users to decipher the unlocking position from the lock screen interface, and improves the security of screen unlocking.
本发明实施例提供的终端设备能够实现上述方法中终端设备实现的各个过程,为避免重复,这里不再赘述。The terminal device provided in the embodiment of the present invention can implement each process implemented by the terminal device in the foregoing method, and to avoid repetition, details are not repeated here.
图9为实现本发明各个实施例的一种终端设备的硬件结构示意图,该终端设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图9中示出的终端设备100的结构并不构成对终端设备的限定,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备100包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。9 is a schematic diagram of the hardware structure of a terminal device implementing various embodiments of the present invention. The
其中,用户输入单元107,用于接收第一操作,该第一操作为用户在锁屏界面的第一位置上的操作,处理器110,用于响应于用户输入单元107接收的第一操作,在锁屏界面的第一位置上显示第一图案;用户输入单元107,用于接收用户在锁屏界面的至少一个目标位置上的第二操作;处理器110,用于响应于用户输入单元107接收的第二操作,在至少一个目标位置与预设解锁位置匹配的情况下,解锁锁屏界面;其中,上述的预设解锁位置与锁屏界面上显示的锁屏图案或第一位置相关联。Wherein, the
本发明实施例提供的终端设备,该终端设备在接收到第一操作后,会在锁屏界面的第一位置上显示第一图案,然后,接收用户在该锁屏界面的至少一个目标位置上的第二操作,并在至少一个目标位置与预设解锁位置匹配的情况下,解锁该锁屏界面。由于上述的预设解锁位置与上述的第一位置或锁屏界面上显示的锁屏图案有关,因此,当终端设备更换锁屏界面上显示的锁屏图案或更换第一图案在锁屏界面上的显示位置时,便可使得预设解锁位置随之发生变化,增加了非法用户从锁屏界面中破解出解锁位置的难度,提高了屏幕解锁的安全性。In the terminal device provided by the embodiment of the present invention, after receiving the first operation, the terminal device displays the first pattern on the first position of the lock screen interface, and then receives the user on at least one target position of the lock screen interface. and unlock the lock screen interface when at least one target position matches the preset unlock position. Since the above-mentioned preset unlocking position is related to the above-mentioned first position or the lock screen pattern displayed on the lock screen interface, when the terminal device changes the lock screen pattern displayed on the lock screen interface or replaces the first pattern on the lock screen interface When the display position is displayed, the preset unlocking position can be changed accordingly, which increases the difficulty for illegal users to decipher the unlocking position from the lock screen interface, and improves the security of screen unlocking.
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
终端设备100通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与终端设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The
终端设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The
用户输入单元107可用于接收输入的数字或字符信息,以及产生与终端设备100的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图9中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备100的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备100的输入和输出功能,具体此处不做限定。Further, the
接口单元108为外部装置与终端设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备100内的一个或多个元件或者可以用于在终端设备100和外部装置之间传输数据。The
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器110是终端设备100的控制中心,利用各种接口和线路连接整个终端设备100的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备100的各种功能和处理数据,从而对终端设备100进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The
终端设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,终端设备100包括一些未示出的功能模块,在此不再赘述。In addition, the
可选的,本发明实施例还提供一种终端设备,包括处理器,存储器,存储在存储器上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器执行时实现上述屏幕解锁方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides a terminal device, including a processor, a memory, a computer program stored in the memory and running on the
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述屏幕解锁方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the above-mentioned screen unlocking method can be realized, and the same technical effect can be achieved, In order to avoid repetition, details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810385103.2ACN108762606B (en) | 2018-04-26 | 2018-04-26 | Screen unlocking method and terminal equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810385103.2ACN108762606B (en) | 2018-04-26 | 2018-04-26 | Screen unlocking method and terminal equipment |
| Publication Number | Publication Date |
|---|---|
| CN108762606A CN108762606A (en) | 2018-11-06 |
| CN108762606Btrue CN108762606B (en) | 2020-08-04 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810385103.2AActiveCN108762606B (en) | 2018-04-26 | 2018-04-26 | Screen unlocking method and terminal equipment |
| Country | Link |
|---|---|
| CN (1) | CN108762606B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111176522B (en)* | 2019-12-16 | 2021-07-13 | 维沃移动通信有限公司 | An unlocking method and electronic device |
| CN111552939A (en)* | 2020-04-30 | 2020-08-18 | 绿盟科技集团股份有限公司 | Equipment unlocking method and device |
| CN111752455A (en)* | 2020-06-24 | 2020-10-09 | 北京小米移动软件有限公司 | Lock screen method, device, device and storage medium |
| CN113468502A (en)* | 2021-07-14 | 2021-10-01 | 维沃移动通信有限公司 | Screen unlocking method and device and electronic equipment |
| CN113672895A (en)* | 2021-08-16 | 2021-11-19 | 维沃移动通信(杭州)有限公司 | Screen unlocking method, screen unlocking device and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102902479A (en)* | 2012-09-11 | 2013-01-30 | 苏州佳世达电通有限公司 | Electronic device and control method thereof |
| CN103699858A (en)* | 2013-12-05 | 2014-04-02 | 百度在线网络技术(北京)有限公司 | Method and device for unlocking screen of mobile equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100146437A1 (en)* | 2008-12-04 | 2010-06-10 | Microsoft Corporation | Glanceable animated notifications on a locked device |
| CN103389868B (en)* | 2012-05-08 | 2018-07-06 | 腾讯科技(深圳)有限公司 | A kind of method, apparatus and touch screen terminal of touch-control unlock |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102902479A (en)* | 2012-09-11 | 2013-01-30 | 苏州佳世达电通有限公司 | Electronic device and control method thereof |
| CN103699858A (en)* | 2013-12-05 | 2014-04-02 | 百度在线网络技术(北京)有限公司 | Method and device for unlocking screen of mobile equipment |
| Publication number | Publication date |
|---|---|
| CN108762606A (en) | 2018-11-06 |
| Publication | Publication Date | Title |
|---|---|---|
| CN111107222A (en) | Interface sharing method and electronic device | |
| CN108762606B (en) | Screen unlocking method and terminal equipment | |
| US11658932B2 (en) | Message sending method and terminal device | |
| CN107728923B (en) | An operation processing method and mobile terminal | |
| CN110730298A (en) | Display control method and electronic equipment | |
| CN109857495A (en) | A kind of display control method and terminal device | |
| CN109032486A (en) | A kind of display control method and terminal device | |
| CN110752981A (en) | Information control method and electronic equipment | |
| CN108897473A (en) | A kind of interface display method and terminal | |
| CN108595946A (en) | A kind of method and terminal of protection privacy | |
| CN110012151A (en) | A kind of information display method and terminal device | |
| CN110049486A (en) | A SIM card selection method and terminal device | |
| CN109976611A (en) | The control method and terminal device of terminal device | |
| CN108681427A (en) | A kind of method and terminal device of access privilege control | |
| WO2021057301A1 (en) | File control method and electronic device | |
| CN111459358A (en) | Application program control method and electronic equipment | |
| CN110866465A (en) | Electronic device control method and electronic device | |
| CN110147186A (en) | Applied control method and terminal equipment | |
| CN109933267A (en) | Method for controlling terminal equipment and terminal equipment | |
| CN109992192A (en) | Interface display method and terminal device | |
| CN110647276A (en) | A control method and terminal device | |
| CN111273831A (en) | Method for controlling electronic equipment and electronic equipment | |
| CN108196754B (en) | Method, terminal and server for displaying object | |
| CN110231906A (en) | The display methods and terminal device of people of unread information | |
| CN111010455B (en) | Method for modifying hotspot name and electronic device |
| 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |