WO2018107625A1 - 一种移动终端中的解锁方法和移动终端及可读取存储介质 - Google Patents

一种移动终端中的解锁方法和移动终端及可读取存储介质 Download PDF

Info

Publication number
WO2018107625A1
WO2018107625A1 PCT/CN2017/079600 CN2017079600W WO2018107625A1 WO 2018107625 A1 WO2018107625 A1 WO 2018107625A1 CN 2017079600 W CN2017079600 W CN 2017079600W WO 2018107625 A1 WO2018107625 A1 WO 2018107625A1
Authority
WO
WIPO (PCT)
Prior art keywords
graphic
unlocked
color
unlocking
mobile terminal
Prior art date
Application number
PCT/CN2017/079600
Other languages
English (en)
French (fr)
Inventor
丁鹏
Original Assignee
武汉斗鱼网络科技有限公司
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 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2018107625A1 publication Critical patent/WO2018107625A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to an unlocking method in a mobile terminal, and a mobile terminal and a readable storage medium.
  • the present invention provides an unlocking method in a mobile terminal, the method comprising: receiving a number of grid displays in an unlocking interface in a mobile terminal set by a user, unlocking a graphic color and an unlocking graphic; and receiving a user in the moving
  • the step of calculating the size of each grid according to the number of grid displays and the size of the touch screen in the mobile terminal comprises: Calculate the width of each grid, where W is the screen width of the phone, n is the horizontal gesture point of the virtual keyboard, a is the distance between the gesture point and the gesture point, and m is the width of each grid.
  • the method further includes: instructing the user to set the unlocking graphic color again.
  • the graphic is unlocked; it is determined whether the unlocked graphic set again is consistent with the unlocked graphic set last time; if it is consistent, the mesh display number, the unlocked graphic color, and the unlocked graphic are stored.
  • the method further includes: displaying the number according to the grid and The size of the touch screen in the mobile terminal, the size of each grid is calculated, and the grid of the number of grid displays is drawn.
  • the number of the grid display and the unlocking are verified and set according to the number of the grid to be displayed, the color of the graphic to be unlocked, and the graphic to be unlocked.
  • Whether the graphic color and the unlocking pattern match comprising: verifying, according to the number of the grid to be displayed, whether the number of the displayed grids is consistent; if the grid to be displayed is consistent with the grid display number And verifying whether the color of the graphic to be unlocked is consistent with the color of the unlocking graphic; if the color of the graphic to be unlocked is consistent with the color of the unlocking graphic, verifying whether the graphic to be unlocked is consistent with the unlocking graphic; The unlocking graphic is consistent with the unlocking graphic, and the mobile terminal is unlocked.
  • the method further includes: unlocking the mobile terminal by using a PIN pad after the mobile terminal fails to be unlocked and the number of failures exceeds a predetermined number of times.
  • the method further includes: when the number of displays to be displayed is inconsistent with the set number of the grid displays, the color of the graphic to be unlocked is inconsistent with the color of the unlocked graphic or When at least one of the inconsistency of the unlocked graphic and the unlocked graphic occurs, it is determined that the unlocking of the mobile terminal fails.
  • the present invention provides a mobile terminal, comprising: a setting unit configured to receive a grid display number, an unlock graphic color, and an unlocking graphic in an unlocking interface in a mobile terminal set by a user; Configuring to receive the number of grids to be displayed, the color to be unlocked, and the to-be-unlocked graphics input by the user in the interface to be unlocked of the mobile terminal; the verification unit is configured to be unlocked according to the number of to-be-displayed grids a graphic color and the graphic to be unlocked, verifying whether the number of the grid display, the unlocking graphic color, and the unlocking graphic are matched; the unlocking unit is configured to determine the number of the grid display, the The unlocking graphic color and the unlocking graphic unlock the mobile terminal when the grid to be displayed, the graphic color to be unlocked, and the graphic to be unlocked are matched.
  • the mobile terminal further comprising: a computing unit.
  • the calculating unit is configured to calculate a size of each grid according to the number of grid displays and the size of the touch screen in the mobile terminal, and draw a grid of the grid display number.
  • the computing unit is further configured to Calculate the width of each grid, where W is the screen width of the phone, n is the horizontal gesture point of the virtual keyboard, a is the distance between the gesture point and the gesture point, and m is the width of each grid.
  • the method further includes: a verification unit.
  • the checking unit is configured to instruct the user to set the unlocking graphic color again, obtain the unlocking graphic color set by the user again, and determine whether the unlocked graphic color set again is consistent with the last set unlocking graphic color, and when the unlocked graphic color is set again.
  • the unlocked graphics color of the second setting is consistent
  • the user is instructed to set the unlocking graphic again, and it is determined whether the unlocking graphic set again is consistent with the unlocking graphic set last time. If they are consistent, the grid display number, the unlocking graphic color, and the unlocking graphic storage are performed. .
  • the verification unit is further configured to: verify whether the number of the displayed grids is consistent according to the number of grids to be displayed; if the grid is to be Verifying that the number of displays is consistent with the number of grid displays, and verifying whether the color of the graphic to be unlocked is consistent with the color of the unlocking graphic; if the color of the graphic to be unlocked is consistent with the color of the unlocking graphic, verifying the graphic to be unlocked Whether it is consistent with the unlocking graphic; if the graphic to be unlocked is consistent with the unlocking graphic, instructing the unlocking unit to unlock the mobile terminal.
  • the unlocking unit is further configured to: after the unlocking the mobile terminal fails and the number of failures exceeds a predetermined number of times, unlocking the mobile terminal by using a PIN pad.
  • the verification unit is further configured to: when the number of grids to be displayed is inconsistent with the set number of grid displays, the color of the to-be-unlocked graphic and the It is determined that the unlocking of the mobile terminal fails when at least one of the unlocking graphics color is inconsistent or the at least one of the unlocking graphics and the unlocking graphics are inconsistent.
  • an embodiment of the present invention provides a readable storage medium, wherein the readable storage medium is stored in a computer, the readable storage medium includes a plurality of instructions, and the multiple instructions are Configured to cause the computer to perform the above method.
  • unlocking the mobile terminal is realized by setting a combination of the number of grid displays, the unlocking graphics color, and the unlocking graphics, increasing the complexity of the password of the mobile terminal and the security of data in the mobile terminal, and simultaneously making the user's It also becomes interesting when you enter your password.
  • Figure 1 shows a block diagram of a mobile terminal of the present invention
  • FIG. 2 is a flowchart of a method for unlocking in a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a virtual keyboard interface according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a first interface provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a second interface provided by an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 1 is a block diagram showing the structure of a mobile terminal 100.
  • the multi-touch capable mobile terminal 100 can include a memory interface 102, one or more data processors, an image processor and/or central processing unit 104, and a peripheral interface 106.
  • Memory interface 102, one or more processors 104, and/or peripheral interface 106 can be either discrete components or integrated into one or more integrated circuits. In the mobile terminal 100, various components may be coupled by one or more communication buses or signal lines. Sensors, devices, and subsystems can be coupled to the peripheral interface 106 to help implement a variety of functions. For example, motion sensor 110, light sensor 112, and distance sensor 114 can be coupled to peripheral interface 106 to facilitate functions such as orientation, illumination, and ranging. Other sensors 116 may also be coupled to peripheral interface 106, such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, or other sensing device, thereby facilitating the implementation of related functions.
  • a positioning system e.g., a GPS receiver
  • a temperature sensor e.g., a biometric sensor, or other sensing device
  • Camera subsystem 120 and optical sensor 122 may be used to facilitate implementation of camera functions such as recording photos and video clips, where the camera subsystem and optical sensor may be, for example, a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) ) Optical sensor.
  • CCD charge coupled device
  • CMOS complementary metal oxide semiconductor
  • wireless communication subsystems 124 may include radio frequency receivers and transmitters and/or optical (e.g., infrared) receivers and transmitters.
  • the particular design and implementation of wireless communication subsystem 124 may depend on one or more communication networks supported by mobile terminal 100.
  • mobile terminal 100 may include communication subsystem 124 that is designed to support a GSM network, a GPRS network, an EDGE network, a Wi-Fi or WiMax network, and a BlueboothTM network.
  • the audio subsystem 126 can be coupled to the speaker 128 and the microphone 130 to assist in implementing voice-enabled functions such as voice recognition, voice replication, digital recording, and telephony functions.
  • I/O subsystem 140 may include touch screen controller 142 and/or one or more other input controllers 144.
  • Touch screen controller 142 can be coupled to touch screen 146.
  • the touch screen 146 and the touch screen controller 142 can detect contact and movement or pause with any of a variety of touch sensing technologies, including but not limited to capacitive, Resistive, infrared and surface acoustic wave technology.
  • One or more other input controllers 144 may be coupled to other input/control devices 148, such as one or more buttons, rocker switches, thumb wheels, infrared ports, USB ports, and/or pointing devices such as styluses .
  • One or more buttons may include up/down buttons for controlling the volume of the speaker 128 and/or the microphone 130.
  • Memory interface 102 can be coupled to memory 150.
  • the memory 150 can include high speed random access memory and/or nonvolatile memory, such as one or more magnetic disk storage devices, one or more optical storage devices, and/or flash memory (eg, NAND, NOR).
  • nonvolatile memory such as one or more magnetic disk storage devices, one or more optical storage devices, and/or flash memory (eg, NAND, NOR).
  • the memory 150 can store an operating system 152, such as an operating system such as Android, IOS, or Windows Phone.
  • the operating system 152 can include instructions for processing basic system services and performing hardware dependent tasks.
  • the memory 150 can also store various applications 154.
  • the operating system 152 is loaded from the memory 150 and executed by the processor 104 while the mobile device is running.
  • Application 154 is also loaded from memory 150 at runtime and executed by processor 104.
  • the application 154 runs on the operating system and utilizes an interface provided by the operating system and the underlying hardware to implement various functions desired by the user, such as instant messaging, web browsing, and picture management. Applications can be either independent of the operating system or native to the operating system.
  • FIG. 2 is a flowchart of a method for unlocking in a mobile terminal according to an embodiment of the present invention. As shown in FIG. 2, the method is performed in a mobile terminal, and the above method begins in step S210.
  • step S210 the number of grid displays, the unlocking graphic color, and the unlocking graphic in the unlocking interface in the mobile terminal set by the user are received.
  • the mobile terminal may be, for example, a hardware device having various operating systems, such as a mobile phone, a tablet computer, a personal digital assistant, an e-book, or the like.
  • the number of grid displays in the unlocking interface that needs to be unlocked is preset in the mobile phone, that is, the number of gesture points in the virtual keyboard.
  • the simplest number of gesture points is set to 9 gesture points, that is, a virtual keyboard of 3 ⁇ 3, which can be set in a complicated manner.
  • 64 gesture points that is, the 8X8 virtual keyboard
  • the user is given 6 different virtual keyboard selections.
  • the more complicated points the more difficult it is to unlock, the more secure the user is.
  • the size of each grid is calculated based on the number of grid displays and the size of the touch screen in the mobile terminal, and a grid of the number of grid displays is drawn.
  • the Math.sqrt(x) function is used to calculate the number of gesture points in the virtual keyboard length direction and width direction. .
  • the width of the touch screen is fixed, the size of each gesture point As the number of grid displays set by the user is different, it is assumed that the screen width of the mobile phone is W, the number of horizontal gesture points of the virtual keyboard is n, the width of each gesture point is m, and a is the distance between the gesture point and the gesture point.
  • W the screen width of the mobile phone
  • n the number of horizontal gesture points of the virtual keyboard
  • n the width of each gesture point
  • a is the distance between the gesture point and the gesture point.
  • the displayable area of each gesture point is obtained, and the virtual keyboard is started to be drawn.
  • the first drawn point uses 1 To mark, the second to use 2 to mark, and so on to mark 9 points.
  • the color of the unlocked graphics can be selected from one of six colors: red, orange, yellow, green, blue, and purple.
  • the RGB color values corresponding to one color are: red: FF0000, orange: E47833, yellow: FFFF00, green: 00FF00, blue: 0000FF, purple: 9932CD, and save the RGB color values of all colors in the local data of the mobile terminal. Medium and use the set color to draw the unlock gesture.
  • the user After setting the unlock graphic color, the user further inputs the unlocking graphic, that is, the user draws the unlocking graphic, for example, a "Z" graphic.
  • the finger touches the gesture point in the virtual keyboard.
  • the mobile terminal stores the mesh identifier, the number of meshes, and the order of the mesh in the graphic to be unlocked, that is, The mobile terminal records the total number of gesture points in the unlocked graphic, the ID of each gesture point, and the order of the gesture points. For example, the user draws a "Z" type unlocking graphic in the virtual keyboard of the 3X3 (the virtual keyboard refers to FIG.
  • the mobile terminal sequentially records the total number of the gesture points, the ID of each gesture point, and the click order of the user, and stores them in the mobile. In the local file of the terminal.
  • the different unlocking graphic colors correspond to different character strings. For example, if the unlocking graphic color is red, the unlocking graphic color corresponding character string is FF0000, the unlocking graphic color is orange, and the unlocking graphic color corresponding character string is E47833, and determining The color of the unlocked graphic input by the user acquired again is consistent with the color of the unlocked graphic acquired last time.
  • the method is: whether the character string corresponding to the unlocking graphic color input by the user acquired again is consistent with the character string corresponding to the unlocked graphic color acquired last time, and if they are consistent, determining the color of the unlocking graphic input by the user acquired again and the last time
  • the obtained unlocking graphics are inconsistent in color, and the unlocked graphics color input again is incorrect; if they are inconsistent, it is determined that the unlocked graphic color input by the user acquired again is consistent with the color of the unlocked graphic acquired last time, and the unlocked graphic color input again is correct.
  • the manner of determining whether the unlocked graphic input by the user acquired again is consistent with the unlocked graphic acquired last time is: obtaining the value of each gesture point corresponding to the previously acquired unlocked graphic and the order of clicking, according to the last acquisition.
  • the clicked order of each gesture point corresponding to the unlocking pattern sorts each gesture point corresponding to the last acquired unlocking pattern into a first array, according to the clicked order of each gesture point corresponding to the unlocked graphic acquired again.
  • the mobile terminal sequentially records the total number of the gesture points, the ID of each gesture point, and the click order of the user, and stores the local file in the mobile terminal in the following manner:
  • the mobile terminal saves the total number of these gesture points, the ID of each gesture point, and the user's click order to the SharePreference.
  • the save method is a data save method that comes with Android. Before saving, the color value and data are first performed. Stringing, the conversion to a string is to convert the color values and array objects into json data, and then convert the json data into a string. Its form is as follows:
  • color is the color value set by the user
  • pass is an array of user gesture tracks
  • sharedPreference so that the data is also secured.
  • step S220 the receiving user inputs the number of grids to be displayed, the color of the graphic to be unlocked, and the graphic to be unlocked in the interface to be unlocked in the mobile terminal.
  • the size of each grid is calculated according to the number of grids to be displayed and the size of the touch screen in the mobile terminal, and the grid of the number of grids to be displayed is drawn in the interface to be unlocked. For example, when the number of grids to be displayed by the user is 3 ⁇ 3, a grid of 3 ⁇ 3 is displayed in the interface to be unlocked, and FIG. 3 can be referred to.
  • the mobile phone will enter the standby state periodically.
  • the first interface prompts the user to select the number of grids to be displayed.
  • the first interface displays 6 sets of grids to be displayed, which are respectively 3 ⁇ 3. 4X4, 5X5, 6X6, 7X7, 8X8, referring to FIG. 4, the user selects the virtual point number in the suitable virtual keyboard and stores it in the local file of the mobile terminal.
  • the user is prompted to select an image to be unlocked through the second interface.
  • Shape color for example, the second interface displays six colors to be unlocked, namely red, orange, yellow, green, blue, and purple. Referring to FIG. 5, the user selects a suitable color according to the option in the second interface, and stores it in In the local file of the mobile terminal. Subsequently, the user inputs a graphic to unlock the unlocked mobile terminal.
  • step S230 according to the number of grids to be displayed, the color of the graphics to be unlocked, and the graphics to be unlocked, it is verified whether the number of grid displays, the unlocking graphics color, and the unlocking graphics match.
  • step S240 the mobile terminal is unlocked when it is determined that the number of grid displays, the unlocking graphics color, and the unlocking graphics match the number of grids to be displayed, the graphics color to be unlocked, and the graphics to be unlocked.
  • whether the number of grid displays set is consistent is determined according to the number of grids to be displayed. If the number of grids to be displayed is consistent with the number of grid displays, it is verified whether the color of the graphic to be unlocked is consistent with the color of the unlocking graphic. If the color of the graphic to be unlocked is consistent with the color of the unlocking graphic, it is verified whether the graphic to be unlocked is consistent with the unlocking graphic. If the graphic to be unlocked coincides with the unlocked graphic, the mobile terminal is unlocked.
  • the mobile terminal is unlocked and the number of failures exceeds a predetermined number of times, the mobile terminal is unlocked by a PIN pad.
  • the mobile terminal verifies whether the number of grids to be displayed by the user is consistent with the preset number of grid displays, such as 4 ⁇ 4. If the number of grids to be displayed by the user is inconsistent with the number of grid displays, the user is prompted to "enter an error, please re-enter", and the number of times the user can input is 3 times until the user selects the correct grid to be displayed. If the user enters an error three times in a row, the password keyboard is displayed, prompting the user to enter a backup password. If the number of grids to be displayed by the user is consistent with the number of grid displays, the color of the graphic to be unlocked is displayed through the second interface.
  • the preset number of grid displays such as 4 ⁇ 4.
  • the mobile terminal verifies whether the color of the unlocked graphic is consistent with the color of the unlocked graphic stored in advance. If they are inconsistent, the user is prompted to "enter error, please re-enter". At this time, the user can input the number of times 3 times until the user selects the correct graphic color to be unlocked. If the user inputs an error three times in succession, the password keyboard is displayed. Prompt the user to enter a backup password. If the color of the graphic to be unlocked selected by the user is consistent with the color of the unlocked graphic, the user is prompted to input the graphic to be unlocked, and the mobile terminal verifies whether the graphic to be unlocked is consistent with the unlocked graphic.
  • the user is also prompted to "enter an error, please re-enter", the number of times the user can input is 3 times, until the user selects the correct graphic to be unlocked, if the user inputs an error three times in succession, the display is displayed.
  • a password keyboard prompts the user to enter a backup password.
  • the mobile terminal displays the second interface prompting the user to select the color of the graphic to be unlocked, and after the user selects the color of the graphic to be unlocked, the user is prompted to input the graphic to be unlocked.
  • the mobile terminal verifies that the number of the grid to be displayed selected by the user, the color of the graphic to be unlocked, and the graphic to be unlocked are all consistent with the preset number of grid displays, the unlocking graphic color, and the unlocking graphic.
  • the mobile terminal is unlocked. If there are any number of grids to be displayed, the color of the graphics to be unlocked, and the graphics to be unlocked If one or more of the grid display number, the unlocked graphic color, and the unlocked graphic are inconsistent, the user is prompted to "password incorrectly, please re-enter", and the user can re-enter the number of times 3 times until the number of grids to be displayed by the user is to be displayed.
  • the graphic color to be unlocked and the graphic to be unlocked are all correct. If the user inputs an error three times in a row, the password keyboard is displayed, prompting the user to enter the alternate password to unlock.
  • the mobile terminal After the user fails to unlock the mobile terminal through the password keyboard, the mobile terminal automatically clears all stored data, or the mobile terminal automatically shuts down, or the mobile terminal is locked, and the like.
  • unlocking the mobile terminal is realized by setting a combination of the number of grid displays, the unlocking graphics color, and the unlocking graphics, increasing the complexity of the password of the mobile terminal and the security of data in the mobile terminal, and simultaneously making the user's It also becomes interesting when you enter your password.
  • FIG. 6 is a structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 6, the terminal includes: a setting unit 610, a touch screen 620, a verification unit 630, an unlocking unit 640, a calculation unit 650, and a verification unit 660.
  • the setting unit 610 receives the grid display number, the unlock pattern color, and the unlock pattern in the unlock interface in the mobile terminal set by the user.
  • the calculation unit 650 calculates the size of each grid according to the number of grid displays and the size of the touch screen in the mobile terminal, and draws a grid of the grid display number.
  • the calculating unit is configured to calculate a size of each grid according to a width of the touch screen of the mobile terminal, a virtual keyboard lateral gesture point, and a distance between the gesture point and the gesture point.
  • the calculating unit is specifically configured to be used according to Calculate the width of each grid, where W is the screen width of the phone, n is the horizontal gesture point of the virtual keyboard, a is the distance between the gesture point and the gesture point, and m is the width of each grid.
  • the touch screen 620 receives the number of grids to be displayed, the color of the graphics to be unlocked, and the graphics to be unlocked, which are input by the user in the interface to be unlocked in the mobile terminal.
  • the verification unit 630 verifies whether the set number of the grid, the unlocked graphic color, and the unlocked graphic match according to the number of the grid to be displayed, the color of the graphic to be unlocked, and the graphic to be unlocked.
  • the unlocking unit 640 unlocks the mobile terminal when it is determined that the number of grid displays, the unlocking graphics color, and the unlocking graphics match the number of grids to be displayed, the graphics color to be unlocked, and the graphics to be unlocked.
  • the verification unit 630 verifies whether the number of the displayed grids is consistent according to the number of grids to be displayed; and if the number of grids to be displayed is consistent with the number of grid displays, verifying the waiting Whether the unlocking graphic color is consistent with the unlocking graphic color; if the graphic color to be unlocked is consistent with the color of the unlocking graphic, verifying whether the graphic to be unlocked is consistent with the unlocking graphic; if the graphic to be unlocked is When the unlocking pattern is consistent, the unlocking unit 640 is instructed to unlock the mobile terminal.
  • the unlocking unit 640 solves the problem that the mobile terminal fails after the number of failures exceeds a predetermined number of times. Locking the mobile terminal.
  • the verification unit 630 is further configured to: when the number of to-be-displayed grids is different from the set number of grid displays, the color of the to-be-unlocked graphic is inconsistent with the color of the unlocking graphic, or the graphic to be unlocked is When at least one of the inconsistency of the unlocking patterns occurs, it is determined that the unlocking of the mobile terminal fails.
  • the checking unit 660 is configured to instruct the user to set the unlocking graphic color again, obtain the unlocking graphic color set by the user again, and determine whether the unlocked graphic color set again is consistent with the last set unlocking graphic color, and when the unlocked graphic color is set again.
  • the unlocked graphics color of the second setting is consistent
  • the user is instructed to set the unlocking graphic again, and it is determined whether the unlocking graphic set again is consistent with the unlocking graphic set last time. If they are consistent, the grid display number, the unlocking graphic color, and the unlocking graphic storage are performed. .
  • a mobile terminal provided by an embodiment of the present invention may be specific hardware on a device or software or firmware installed on the device.
  • the implementation principle and the technical effects of the device provided by the embodiments of the present invention are the same as those of the foregoing method embodiments.
  • the device embodiment is not mentioned, reference may be made to the corresponding content in the foregoing method embodiments.
  • the specific working processes of the foregoing system, the device and the unit can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种移动终端中的解锁方法和移动终端及可读取存储介质,该方法包括:接收用户设置的解锁界面中的网格显示数目、解锁图形颜色和解锁图形(S210);接收用户在移动终端中的待解锁界面中输入的网格待显示数目、待解锁图形颜色和待解锁图形(S220);根据所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形,验证与设置的所述网格显示数目、所述解锁图形颜色和所述解锁图形是否匹配(S230);在确定所述网格显示数目、所述解锁图形颜色和所述解锁图形与所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形匹配时,解锁所述移动终端(S240)。

Description

一种移动终端中的解锁方法和移动终端及可读取存储介质
本申请要求于2016年12月12日提交中国专利局的申请号为CN201611136506.0、名称为“一种移动终端中的解锁方法和移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动终端技术领域,具体而言,涉及一种移动终端中的解锁方法和移动终端及可读取存储介质。
背景技术
随着科技的发展,移动终端,特别是手机,成了人们寸步不离的生活必备品。随着手机的用途越来越广,用户在使用的过程中,渐渐的就放松了警惕,私人资料也都存放在手机里以便随时查看,那么在手机丢失后,如何保护这些隐私就成了一个很重要的问题。
目前手机的解锁方式多种多样,最常用的是滑动解锁,还有按键解锁,以及手势解锁。传统的按键解锁由于长期解锁的数字密码就是常用的几个,所以小偷根据屏幕上的指纹发现这些常用数字进行组合后,很容易将手机进行解锁,安全性不高。手势解锁包括单点或多点的触碰,在手机内预设解锁手势,在对手机进行解锁的时候,在输入界面输入相同的手势才能顺利解锁,同样手势的解锁是连续的,也可以根据屏幕上留下的痕迹进行破解。所以,现有的解锁方法都相对简单,而比较能轻易的进行解锁,安全性较低。采用输入密码形式的解锁,用户体验不高,缺乏娱乐性和趣味性。
发明内容
有鉴于此,本发明的目的在于提供一种移动终端中的解锁方法和移动终端及可读取存储介质,以力图解决或者至少缓解上面存在的问题。
第一方面,本发明提供一种移动终端中的解锁方法,该方法包括:接收用户设置的移动终端中的解锁界面中的网格显示数目、解锁图形颜色和解锁图形;接收用户在所述移动终端中的待解锁界面中输入的网格待显示数目、待解锁图形颜色和待解锁图形;根据所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形,验证与设置的所述网格显示数目、所述解锁图形颜色和所述解锁图形是否匹配;在确定所述网格显示数目、所述解锁图形颜色和所述解锁图形与所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形匹配时,解锁所述移动终端。
可选地,在根据本发明的方法中,根据所述网格显示数目和所述移动终端中触摸屏的大小,计算每个网格的大小的步骤,包括:根据
Figure PCTCN2017079600-appb-000001
计算每个网格的宽度,其中,W为手机屏幕宽度,n为虚拟键盘横向手势点数,a为手势点与手势点之间的距离, m为每个网格的宽度。
可选地,在根据本发明的方法中,在所述接收用户设置的移动终端中的解锁界面中网格显示数目、解锁图形颜色和解锁图形之后,方法还包括:指示用户再次设置解锁图形颜色;获取用户再次设置的解锁图形颜色;判断再次设置的解锁图形颜色与上次设置的解锁图形颜色是否一致;当再次设置的解锁图形颜色与上次设置的解锁图形颜色一致时,指示用户再次设置解锁图形;判断再次设置的解锁图形与上次设置的解锁图形是否一致;若一致,将所述网格显示数目、解锁图形颜色和解锁图形存储。
可选地,在根据本发明的方法中,在所述接收用户设置的移动终端中的解锁界面中网格显示数目、解锁图形颜色和解锁图形之后,还包括:根据所述网格显示数目和移动终端中触摸屏的大小,计算每个网格的大小,并绘制所述网格显示数目的网格。
可选地,在根据本发明的方法中,所述根据所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形,验证与设置的所述网格显示数目、所述解锁图形颜色和所述解锁图形是否匹配,包括:根据所述网格待显示数目,验证与设置的所述网格显示数目是否一致;如果所述网格待显示数目与所述网格显示数目一致,则验证所述待解锁图形颜色与所述解锁图形颜色是否一致;如果所述待解锁图形颜色与所述解锁图形颜色一致,则验证所述待解锁图形与所述解锁图形是否一致;如果所述待解锁图形与所述解锁图形一致,则解锁所述移动终端。
可选地,在根据本发明的方法中,还包括:在解锁所述移动终端失败且失败次数超过预定次数后,通过密码键盘解锁移动终端。
可选地,在根据本发明的方法中,方法还包括:当所述网格待显示数目与设置的所述网格显示数目不一致、所述待解锁图形颜色与所述解锁图形颜色不一致或所述待解锁图形与所述解锁图形不一致中的至少一种发生时,判定解锁所述移动终端失败。
第二方面,本发明提供一种移动终端,该移动终端包括:设置单元,被配置成接收用户设置的移动终端中的解锁界面中的网格显示数目、解锁图形颜色和解锁图形;触摸屏,被配置成接收用户在所述移动终端的待解锁界面中输入的网格待显示数目、待解锁图形颜色和待解锁图形;验证单元,被配置成根据所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形,验证与设置的所述网格显示数目、所述解锁图形颜色和所述解锁图形是否匹配;解锁单元,被配置成在确定所述网格显示数目、所述解锁图形颜色和所述解锁图形与所述网格待显示数目、待解锁图形颜色以及待解锁图形匹配时,解锁所述移动终端。
可选地,在根据本发明的移动终端中,其中还包括:计算单元。所述计算单元,被配置成根据所述网格显示数目和移动终端中触摸屏的大小,计算每个网格的大小,并绘制所述网格显示数目的网格。
可选地,在根据本发明的移动终端中,其中所述计算单元还被配置成根据
Figure PCTCN2017079600-appb-000002
计算每个网格的宽度,其中,W为手机屏幕宽度,n为虚拟键盘横向手势点数,a为手势点与手势点之间的距离,m为每个网格的宽度。
可选地,在根据本发明的移动终端中,还包括:检验单元。该检验单元被配置成指示用户再次设置解锁图形颜色,获取用户再次设置的解锁图形颜色,判断再次设置的解锁图形颜色与上次设置的解锁图形颜色是否一致,当再次设置的解锁图形颜色与上次设置的解锁图形颜色一致时,指示用户再次设置解锁图形,判断再次设置的解锁图形与上次设置的解锁图形是否一致,若一致,将所述网格显示数目、解锁图形颜色和解锁图形存储。
可选地,在根据本发明的移动终端中,所述验证单元还被配置成:根据所述网格待显示数目,验证与设置的所述网格显示数目是否一致;如果所述网格待显示数目与所述网格显示数目一致,则验证所述待解锁图形颜色与所述解锁图形颜色是否一致;如果所述待解锁图形颜色与所述解锁图形颜色一致,则验证所述待解锁图形与所述解锁图形是否一致;如果所述待解锁图形与所述解锁图形一致,则指示所述解锁单元解锁所述移动终端。
可选地,在根据本发明的移动终端中,所述解锁单元还被配置成:在解锁所述移动终端失败且失败次数超过预定次数后,通过密码键盘解锁所述移动终端。
可选地,在根据本发明的移动终端中,其中,所述验证单元还被配置成当所述网格待显示数目与设置的所述网格显示数目不一致、所述待解锁图形颜色与所述解锁图形颜色不一致或所述待解锁图形与所述解锁图形不一致中的至少一种发生时,判定解锁所述移动终端失败。
第三方面,本发明实施例提供了一种可读取存储介质,其中,所述可读取存储介质存储于计算机内,所述可读取存储介质包括多条指令,所述多条指令被配置成使得计算机执行上述方法。
根据本发明的技术方案,通过设置网格显示数目、解锁图形颜色和解锁图形的组合实现对移动终端的解锁,增加移动终端密码的复杂性和移动终端中数据的安全性,同时,使得用户的在输入密码时也变得有趣味。
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这 些附图获得其他相关的附图。
图1示出了本发明的一种移动终端的框图;
图2示出了本发明实施例所提供的一种移动终端中的解锁方法的流程图;
图3示出了本发明实施例所提供的一种虚拟键盘界面的示意图;
图4示出了本发明实施例所提供的一种第一界面的示意图;
图5示出了本发明实施例所提供的一种第二界面的示意图;
图6示出了本发明实施例所提供的一种移动终端的结构图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1是移动终端100的结构框图。具有多点触摸能力的移动终端100可以包括存储器接口102、一个或多个数据处理器、图像处理器和/或中央处理单元104,以及外围接口106。
存储器接口102、一个或多个处理器104和/或外围接口106既可以是分立元件,也可以集成在一个或多个集成电路中。在移动终端100中,各种元件可以通过一条或多条通信总线或信号线来耦合。传感器、设备和子系统可以耦合到外围接口106,以便帮助实现多种功能。例如,运动传感器110、光传感器112和距离传感器114可以耦合到外围接口106,以方便定向、照明和测距等功能。其他传感器116同样可以与外围接口106相连,例如定位系统(例如GPS接收机)、温度传感器、生物测定传感器或其他感测设备,由此可以帮助实施相关的功能。
相机子系统120和光学传感器122可以用于方便诸如记录照片和视频剪辑的相机功能的实现,其中所述相机子系统和光学传感器例如可以是电荷耦合器件(CCD)或互补金属氧化物半导体(CMOS)光学传感器。
可以通过一个或多个无线通信子系统124来帮助实现通信功能,其中无线通信子系统可以包括射频接收机和发射机和/或光(例如红外)接收机和发射机。无线通信子系统124的特定设计和实施方式可以取决于移动终端100所支持的一个或多个通信网络。例如,移动终端100可以包括被设计成支持GSM网络、GPRS网络、EDGE网络、Wi-Fi或WiMax网络以及BlueboothTM网络的通信子系统124。
音频子系统126可以与扬声器128以及麦克风130相耦合,以便帮助实施启用语音的功能,例如语音识别、语音复制、数字记录和电话功能。
I/O子系统140可以包括触摸屏控制器142和/或一个或多个其他输入控制器144。
触摸屏控制器142可以耦合到触摸屏146。举例来说,该触摸屏146和触摸屏控制器142可以使用多种触摸感测技术中的任何一种来检测与之进行的接触和移动或是暂停,其中感测技术包括但不局限于电容性、电阻性、红外和表面声波技术。
一个或多个其他输入控制器144可以耦合到其他输入/控制设备148,例如一个或多个按钮、摇杆开关、拇指旋轮、红外端口、USB端口、和/或指示笔之类的指点设备。一个或多个按钮(未显示)可以包括用于控制扬声器128和/或麦克风130音量的向上/向下按钮。
存储器接口102可以与存储器150相耦合。该存储器150可以包括高速随机存取存储器和/或非易失性存储器,例如一个或多个磁盘存储设备,一个或多个光学存储设备,和/或闪存存储器(例如NAND,NOR)。
存储器150可以存储操作系统152,例如Android、IOS或是Windows Phone之类的操作系统。该操作系统152可以包括用于处理基本系统服务以及执行依赖于硬件的任务的指令。存储器150还可以存储各种应用154。在移动设备运行时,会从存储器150中加载操作系统152,并且由处理器104执行。应用154在运行时,也会从存储器150中加载,并由处理器104执行。应用154运行在操作系统之上,利用操作系统以及底层硬件提供的接口实现各种用户期望的功能,如即时通信、网页浏览、图片管理等。应用可以是独立于操作系统提供的,也可以是操作系统自带的。
图2示出了根据本发明实施例所提供的一种移动终端中的解锁方法的流程图。如图2所示,该方法在移动终端中执行,上述方法始于步骤S210。
在步骤S210中,接收用户设置的移动终端中的解锁界面中的网格显示数目、解锁图形颜色和解锁图形。其中,移动终端可以例如是手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。
具体地,在手机中预先设置需要解锁的解锁界面中的网格显示数目即虚拟键盘中的手势点数,例如,最简单的手势点数设置为9个手势点即3X3的虚拟键盘,复杂的可以设置为64个手势点即8X8的虚拟键盘,给予用户6种不同的虚拟键盘选择,对于越复杂的点,解锁起来越困难,也越能保护用户的安全性。
在一种实施方式中,根据网格显示数目和移动终端中触摸屏的大小,计算每个网格的大小,并绘制所述网格显示数目的网格。在计算对应网格显示数目的网格时,假设用户选择的3X3的虚拟键盘,网格显示数目x为9,利用Math.sqrt(x)函数来计算虚拟键盘长度方向和宽度方向手势点的数目。对于手机而言,触摸屏的宽度是一定的,每个手势点的大小 随着用户设定的网格显示数目的不同而不同,假设手机屏幕宽度为W,虚拟键盘横向手势点数为n,每个手势点的宽度为m,a为手势点与手势点之间的距离,其中,a的取值范围为5-20个像素点,优选地,a为20像素,计算公式如下:
Figure PCTCN2017079600-appb-000003
根据上述计算公式得到每个手势点的可显示区域,开始绘制虚拟键盘。在绘制虚拟键盘时,按照从左到右,从上到下的顺序绘制,并将每个点分别用数值来标记,也就是每个手势点的ID,如,第一个绘制的点使用1来标记,第二个使用2来标记,依此类推标记完9个点。这些标记将作为以后确定用户滑动手势是否正确的依据,可参考图3。
在设置完网格显示数目后,设置解锁图形的颜色,避免给客户造成混淆影响输入,解锁图形的颜色可以选择红、橙、黄、绿、蓝、紫这6中颜色中的一种,每一种颜色对应的RGB颜色值分别为:红色:FF0000,橙色:E47833,黄色:FFFF00,绿色:00FF00,蓝色:0000FF,紫色:9932CD,将所有颜色的RGB颜色值保存在移动终端的本地数据中,并使用设置的颜色来绘制解锁手势。
设置完解锁图形颜色后,用户进一步输入解锁图形,即用户绘制解锁图形,例如,“Z”图形。在用户设置解锁图形时,手指会接触到虚拟键盘中的手势点,用户每接触到一个网格,移动终端就会存储待解锁图形中的网格标识、网格数目以及网格的顺序,即移动终端记录解锁图形中的手势点总数、每个手势点的ID以及手势点的顺序。例如,用户在3X3的虚拟键盘中绘制“Z”型解锁图形(虚拟键盘参考图3),用户在绘制图形时,利用手机中运行的如安卓操作系统提供的onTouchEvent来检测用户手指的触碰信息,该方法返回MotionEvent.ACTION_DOWN信息时,用户点击虚拟键盘其中,虚拟键盘中的每个手势点都标记有数字,对数字进行透明化处理,当返回MotionEvent.ACTION_MOVE信息时,用户开始移动手指,此时记录开始用户点击的1、2、3、5、7、8、9这7个手势点,当返回是MotionEvent.ACTION_UP信息时,用户手指离开虚拟键盘,移动终端指示用户再次输入解锁图形颜色,判断再次获取的用户输入的解锁图形颜色与上次获取的解锁图形颜色是否一致,如果再次获取的用户输入的解锁图形颜色与上次获取的解锁图形颜色一致,则指示用户再次输入解锁图形,判断再次获取的用户输入的解锁图形与上次获取的解锁图形是否一致,如果再次获取的用户输入的解锁图形与上次获取的解锁图形一致,则移动终端依次记录这些手势点的总数目、每个手势点的ID以及用户的点击顺序,并存储在移动终端的本地文件中。
具体的,不同的解锁图形颜色对应不同的字符串,例如,解锁图形颜色为红色,则解锁图形颜色对应的字符串为FF0000,解锁图形颜色为橙色,解锁图形颜色对应的字符串为E47833,判断再次获取的用户输入的解锁图形颜色与上次获取的解锁图形颜色是否一致的 方式是:比对再次获取的用户输入的解锁图形颜色对应的字符串与上次获取的解锁图形颜色对应的字符串是否一致,如果一致,则判定再次获取的用户输入的解锁图形颜色与上次获取的解锁图形颜色不一致,再次输入的解锁图形颜色不正确;如果不一致,则判定再次获取的用户输入的解锁图形颜色与上次获取的解锁图形颜色一致,再次输入的解锁图形颜色正确。
具体地,判断再次获取的用户输入的解锁图形与上次获取的解锁图形是否一致的方式为:获取上次获取的解锁图形对应的每个手势点的数值和被点击的顺序,按照上次获取的解锁图形对应的每个手势点的被点击的顺序将上次获取的解锁图形对应的每个手势点排序形成第一数组,按照再次获取的解锁图形对应的每个手势点的被点击的顺序将再次获取的解锁图形对应的每个手势点排序形成第二数组,逐位比对第一数组和第二数组中的每个手势点,如果第一数组中的每个手势点和第二数组中的每个手势点均相同,则判定再次获取的用户输入的解锁图形与上次获取的解锁图形一致。
具体地,移动终端依次记录这些手势点的总数目、每个手势点的ID以及用户的点击顺序,并存储在移动终端的本地文件的方式为:
移动终端将这些手势点的总数目、每个手势点的ID以及用户的点击顺序保存到SharePreference中,保存方法是Android中自带的数据保存方法,在保存之前,会首先将颜色值和数据进行字符串化,换成字符串的方案是将颜色数值和数组对象转换为json数据,然后将json数据转换为字符串。其形式如下:
{
“color”:“FF0000”,
“pass”:[1,2,3,4,5,6]
}
上述形式中color为用户设置的颜色值,pass为用户手势轨迹数组,再将上述字符串转换为BASE64存储到SharePreference中,这样,数据也得到了安全保障。
在步骤S220中,接收用户在移动终端中的待解锁界面中输入网格待显示数目、待解锁图形颜色和待解锁图形。在一种实施方式中,根据网格待显示数目和移动终端中触摸屏的大小,计算每个网格的大小,在待解锁界面中绘制网格待显示数目的网格。例如,用户输入的网格待显示数目为3X3时,待解锁界面中显示3X3的网格,可参考图3。
为了节省电池电源,手机会定时进入待机状态,在手机被唤醒时,通过第一界面提示用户选择网格待显示数目,如,第一界面中显示6组网格待显示数目,分别为3X3、4X4、5X5、6X6、7X7、8X8,可参考图4,用户选择适合的虚拟键盘中的虚拟点数,存储在移动终端的本地文件中。在用户选择网格待显示数目后,通过第二界面提示用户选择待解锁图 形颜色,如,第二界面中显示6种待解锁图形颜色,分别为红、橙、黄、绿、蓝、紫,可参考图5,用户根据第二界面中的选项选择适合颜色,存储在移动终端的本地文件中。随后,用户输入解锁移动终端的待解锁图形。
在步骤S230中,根据网格待显示数目、待解锁图形颜色以及待解锁图形,验证与设置的网格显示数目、解锁图形颜色和解锁图形是否匹配。
在步骤S240中,在确定网格显示数目、解锁图形颜色和解锁图形与网格待显示数目、待解锁图形颜色以及待解锁图形匹配时,解锁移动终端。
在一个实施方式中,根据网格待显示数目,验证与设置的所述网格显示数目是否一致。如果网格待显示数目与网格显示数目一致,则验证所述待解锁图形颜色与解锁图形颜色是否一致,如果待解锁图形颜色与解锁图形颜色一致,则验证待解锁图形与解锁图形是否一致,如果待解锁图形与解锁图形一致,则解锁所述移动终端。
在一个实施方式中,在解锁所述移动终端失败且失败次数超过预定次数后,通过密码键盘解锁移动终端。
在一个实施例中,用户在第一界面选择网格待显示数目为3X3后,移动终端验证用户选择的网格待显示数目与预先设置的网格显示数目如4X4是否一致。如果用户选择的网格待显示数目与网格显示数目不一致,则提示用户“输入错误,请重新输入”,此时用户可输入的次数为3次,直到用户选择正确的网格待显示数目,如果用户连续3次均输入错误,则显示密码键盘,提示用户输入备用密码。如果用户选择的网格待显示数目与网格显示数目一致,则通过第二界面显示待解锁图形颜色,在用户选择待解锁图形颜色后,移动终端验证与预先存储的解锁图形颜色是否一致。如果不一致,则提示用户“输入错误,请重新输入”,此时用户可输入的次数为3次,直到用户选择正确的待解锁图形颜色,如果用户连续3次均输入错误,则显示密码键盘,提示用户输入备用密码。如果用户选择的待解锁图形颜色与解锁图形颜色一致,则提示用户输入待解锁图形,移动终端验证待解锁图形与解锁图形是否一致。如果待解锁图形与解锁图形不一致,同样提示用户“输入错误,请重新输入”,用户可输入的次数为3次,直到用户选择正确的待解锁图形,如果用户连续3次均输入错误,则显示密码键盘,提示用户输入备用密码。
在一个实施例中,用户在第一界面选择网格待显示数目为3X3后,移动终端显示第二界面提示用户选择待解锁图形颜色,用户选择待解锁图形颜色后,提示用户输入待解锁图形,用户输入待解锁图形后,移动终端验证用户选择的网格待显示数目、待解锁图形颜色、待解锁图形是否均与预先设置的网格显示数目、解锁图形颜色、解锁图形一致。如果网格待显示数目、待解锁图形颜色、待解锁图形均与网格显示数目、解锁图形颜色、解锁图形一致,则解锁移动终端。如果网格待显示数目、待解锁图形颜色、待解锁图形中有任何一 个或多个与网格显示数目、解锁图形颜色、解锁图形不一致,则提示用户“密码错误,请重新输入”,而用户可重新输入的次数为3次,直到用户选择的网格待显示数目、待解锁图形颜色、待解锁图形全部正确,如果用户连续3次均输入错误,则显示密码键盘,提示用户输入备用密码解锁。
在用户通过密码键盘解锁移动终端失败后,移动终端自动清除存储的所有数据,或者移动终端自动关机,或者移动终端被锁定等等。
设置密码锁的过程:
根据本发明的技术方案,通过设置网格显示数目、解锁图形颜色和解锁图形的组合实现对移动终端的解锁,增加移动终端密码的复杂性和移动终端中数据的安全性,同时,使得用户的在输入密码时也变得有趣味。
图6示出了根据本发明实施例提供的一种移动终端的结构图。如图6所示,该终端中包括:设置单元610、触摸屏620、验证单元630、解锁单元640、计算单元650和检验单元660。
设置单元610接收用户设置的移动终端中的解锁界面中的网格显示数目、解锁图形颜色和解锁图形。其中,计算单元650根据所述网格显示数目和所述移动终端中触摸屏的大小,计算每个网格的大小,并绘制所述网格显示数目的网格。优选地,所述计算单元用于根据所述移动终端的触摸屏的宽度、虚拟键盘横向手势点数以及手势点与手势点之间的距离,计算每个网格的大小。具体地,所述计算单元具体用于根据
Figure PCTCN2017079600-appb-000004
计算每个网格的宽度,其中,W为手机屏幕宽度,n为虚拟键盘横向手势点数,a为手势点与手势点之间的距离,m为每个网格的宽度。
触摸屏620接收用户在移动终端中的待解锁界面中输入的网格待显示数目、待解锁图形颜色和待解锁图形。
验证单元630根据所述网格待显示数目、待解锁图形颜色以及待解锁图形,验证与设置的所述网格显示数目、解锁图形颜色和解锁图形是否匹配。
解锁单元640在确定所述网格显示数目、解锁图形颜色和解锁图形与所述网格待显示数目、待解锁图形颜色以及待解锁图形匹配时,解锁所述移动终端。
具体的,验证单元630根据所述网格待显示数目,验证与设置的所述网格显示数目是否一致;如果所述网格待显示数目与所述网格显示数目一致,则验证所述待解锁图形颜色与所述解锁图形颜色是否一致;如果所述待解锁图形颜色与所述解锁图形颜色一致,则验证所述待解锁图形与所述解锁图形是否一致;如果所述待解锁图形与所述解锁图形一致,则指示解锁单元640解锁所述移动终端。
解锁单元640在解锁所述移动终端失败且失败次数超过预定次数后,通过密码键盘解 锁所述移动终端。
具体的,所述验证单元630还用于当所述网格待显示数目与设置的所述网格显示数目不一致、所述待解锁图形颜色与所述解锁图形颜色不一致或所述待解锁图形与所述解锁图形不一致中的至少一种发生时,判定解锁所述移动终端失败。
检验单元660,用于指示用户再次设置解锁图形颜色,获取用户再次设置的解锁图形颜色,判断再次设置的解锁图形颜色与上次设置的解锁图形颜色是否一致,当再次设置的解锁图形颜色与上次设置的解锁图形颜色一致时,指示用户再次设置解锁图形,判断再次设置的解锁图形与上次设置的解锁图形是否一致,若一致,将所述网格显示数目、解锁图形颜色和解锁图形存储。
本发明实施例所提供的一种移动终端可以为设备上的特定硬件或者安装于设备上的软件或固件等。本发明实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,前述描述的系统、装置和单元的具体工作过程,均可以参考上述方法实施例中的对应过程,在此不再赘述。
在本发明所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明提供的实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的 介质。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释,此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。

Claims (15)

  1. 一种移动终端中的解锁方法,其特征在于,该方法包括:
    接收用户设置的移动终端中的解锁界面中的网格显示数目、解锁图形颜色和解锁图形;
    接收用户在所述移动终端中的待解锁界面中输入的网格待显示数目、待解锁图形颜色和待解锁图形;
    根据所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形,验证与设置的所述网格显示数目、所述解锁图形颜色和所述解锁图形是否匹配;
    在确定所述网格显示数目、所述解锁图形颜色和所述解锁图形与所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形匹配时,解锁所述移动终端。
  2. 如权利要求1所述的方法,其特征在于,在所述接收用户设置的移动终端中的解锁界面中网格显示数目、解锁图形颜色和解锁图形之后,还包括:
    根据所述网格显示数目和所述移动终端中触摸屏的大小,计算每个网格的大小,并绘制所述网格显示数目的网格。
  3. 如权利要求2所述的方法,其特征在于,根据所述网格显示数目和所述移动终端中触摸屏的大小,计算每个网格的大小的步骤,包括:
    根据计算每个网格的宽度,其中,W为手机屏幕宽度,n为虚拟键盘横向手势点数,a为手势点与手势点之间的距离,m为每个网格的宽度。
  4. 如权利要求1所述的方法,其特征在于,在所述接收用户设置的移动终端中的解锁界面中网格显示数目、解锁图形颜色和解锁图形之后,还包括:
    指示用户再次设置解锁图形颜色;
    获取用户再次设置的解锁图形颜色;
    判断再次设置的解锁图形颜色与上次设置的解锁图形颜色是否一致;
    当再次设置的解锁图形颜色与上次设置的解锁图形颜色一致时,指示用户再次设置解锁图形;
    判断再次设置的解锁图形与上次设置的解锁图形是否一致;
    若一致,将所述网格显示数目、解锁图形颜色和解锁图形存储。
  5. 如权利要求1所述的方法,其特征在于,所述根据所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形,验证与设置的所述网格显示数目、所述解锁图形颜色和所述解锁图形是否匹配,包括:
    根据所述网格待显示数目,验证与设置的所述网格显示数目是否一致;
    如果所述网格待显示数目与所述网格显示数目一致,则验证所述待解锁图形颜色与所述解锁图形颜色是否一致;
    如果所述待解锁图形颜色与所述解锁图形颜色一致,则验证所述待解锁图形与所述解锁图形是否一致;
    如果所述待解锁图形与所述解锁图形一致,则解锁所述移动终端。
  6. 如权利要求1所述的方法,其特征在于,还包括:
    在解锁所述移动终端失败且失败次数超过预定次数后,通过密码键盘解锁移动终端。
  7. 如权利要求6所述的方法,其特征在于,所述方法还包括:
    当所述网格待显示数目与设置的所述网格显示数目不一致、所述待解锁图形颜色与所述解锁图形颜色不一致或所述待解锁图形与所述解锁图形不一致中的至少一种发生时,判定解锁所述移动终端失败。
  8. 一种移动终端,其特征在于,该移动终端包括:
    设置单元,被配置成接收用户设置的移动终端中的解锁界面中的网格显示数目、解锁图形颜色和解锁图形;
    触摸屏,被配置成接收用户在所述移动终端中的待解锁界面中输入的网格待显示数目、待解锁图形颜色和待解锁图形;
    验证单元,被配置成根据所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形,验证与设置的所述网格显示数目、所述解锁图形颜色和所述解锁图形是否匹配;
    解锁单元,被配置成在确定所述网格显示数目、所述解锁图形颜色和所述解锁图形与所述网格待显示数目、所述待解锁图形颜色以及所述待解锁图形匹配时,解锁所述移动终端。
  9. 如权利要求8所述的移动终端,其特征在于,其中还包括:计算单元,
    所述计算单元,被配置成根据所述网格显示数目和移动终端中触摸屏的大小,计算每个网格的大小,并绘制所述网格显示数目的网格。
  10. 如权利要求9所述的移动终端,其特征在于:
    所述计算单元还被配置成根据
    Figure PCTCN2017079600-appb-100002
    计算每个网格的宽度,其中,W为手机屏幕宽度,n为虚拟键盘横向手势点数,a为手势点与手势点之间的距离,m为每个网格的宽度。
  11. 如权利要求8所述的移动终端,其特征在于,还包括:
    检验单元,被配置成指示用户再次设置解锁图形颜色,获取用户再次设置的解锁 图形颜色,判断再次设置的解锁图形颜色与上次设置的解锁图形颜色是否一致,当再次设置的解锁图形颜色与上次设置的解锁图形颜色一致时,指示用户再次设置解锁图形,判断再次设置的解锁图形与上次设置的解锁图形是否一致,若一致,将所述网格显示数目、解锁图形颜色和解锁图形存储。
  12. 如权利要求8所述的移动给终端,其特征在于,所述验证单元还被配置成:
    根据所述网格待显示数目,验证与设置的所述网格显示数目是否一致;
    如果所述网格待显示数目与所述网格显示数目一致,则验证所述待解锁图形颜色与所述解锁图形颜色是否一致;
    如果所述待解锁图形颜色与所述解锁图形颜色一致,则验证所述待解锁图形与所述解锁图形是否一致;
    如果所述待解锁图形与所述解锁图形一致,则指示所述解锁单元解锁所述移动终端。
  13. 如权利要求8所述的移动终端,其特征在于,所述解锁单元还被配置成:
    在解锁所述移动终端失败且失败次数超过预定次数后,通过密码键盘解锁所述移动终端。
  14. 如权利要求8所述的移动终端,其特征在于:
    所述验证单元还被配置成当所述网格待显示数目与设置的所述网格显示数目不一致、所述待解锁图形颜色与所述解锁图形颜色不一致或所述待解锁图形与所述解锁图形不一致中的至少一种发生时,判定解锁所述移动终端失败。
  15. 一种可读取存储介质,其特征在于,所述可读取存储介质存储于计算机内,所述可读取存储介质包括多条指令,所述多条指令被配置成使得计算机执行如权利要求1-7任一项所述方法。
PCT/CN2017/079600 2016-12-12 2017-04-06 一种移动终端中的解锁方法和移动终端及可读取存储介质 WO2018107625A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611136506.0 2016-12-12
CN201611136506.0A CN106709316B (zh) 2016-12-12 2016-12-12 一种移动终端中的解锁方法和移动终端

Publications (1)

Publication Number Publication Date
WO2018107625A1 true WO2018107625A1 (zh) 2018-06-21

Family

ID=58936459

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079600 WO2018107625A1 (zh) 2016-12-12 2017-04-06 一种移动终端中的解锁方法和移动终端及可读取存储介质

Country Status (2)

Country Link
CN (1) CN106709316B (zh)
WO (1) WO2018107625A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392003A (zh) * 2016-07-05 2017-11-24 上海斐讯数据通信技术有限公司 一种触摸屏的解锁方法和解锁系统及智能终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253803A (zh) * 2011-07-06 2011-11-23 汉王科技股份有限公司 一种触摸屏的解锁方法及装置
CN104166516A (zh) * 2014-07-31 2014-11-26 宇龙计算机通信科技(深圳)有限公司 滑动解锁的方法及其装置
CN104423873A (zh) * 2013-09-11 2015-03-18 昆达电脑科技(昆山)有限公司 行动装置的解锁方法及行动装置
CN104657655A (zh) * 2015-03-02 2015-05-27 深圳市中兴移动通信有限公司 移动终端的解锁方法和移动终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092500B (zh) * 2011-10-31 2016-08-10 汉王科技股份有限公司 屏幕解锁方法、触摸屏和电子设备
CN102968262B (zh) * 2012-11-29 2016-11-23 华为技术有限公司 一种屏幕解锁的方法、装置及设备
CN103678981B (zh) * 2013-12-06 2017-12-29 北京奇虎科技有限公司 针对不同用户实现不同界面的方法及装置
CN105159591B (zh) * 2015-09-08 2019-04-12 北京元心科技有限公司 智能终端的解锁方法以及智能终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253803A (zh) * 2011-07-06 2011-11-23 汉王科技股份有限公司 一种触摸屏的解锁方法及装置
CN104423873A (zh) * 2013-09-11 2015-03-18 昆达电脑科技(昆山)有限公司 行动装置的解锁方法及行动装置
CN104166516A (zh) * 2014-07-31 2014-11-26 宇龙计算机通信科技(深圳)有限公司 滑动解锁的方法及其装置
CN104657655A (zh) * 2015-03-02 2015-05-27 深圳市中兴移动通信有限公司 移动终端的解锁方法和移动终端

Also Published As

Publication number Publication date
CN106709316B (zh) 2020-02-07
CN106709316A (zh) 2017-05-24

Similar Documents

Publication Publication Date Title
TWI585692B (zh) 使用觸控感測器資料之指紋登錄
KR102277453B1 (ko) 터치 센서를 구비한 전자 장치 및 그 구동 방법
US9710632B2 (en) User-authentication gestures
US10209885B2 (en) Method and device for building virtual keyboard
US9400880B2 (en) Method and apparatus for biometric-based security using capacitive profiles
TWI474263B (zh) 利用偵測生物特徵執行軟體功能的方法和相關電子裝置
WO2017024748A1 (zh) 指纹识别系统及方法、显示装置
EP2682891B1 (en) Electronic device and method for releasing lock using element combining color and symbol
CN109428969A (zh) 双屏终端的边缘触控方法、装置及计算机可读存储介质
US20140189604A1 (en) Method and system for unlocking a touchscreen of an electronic device
CN108139864A (zh) 使用指纹识别的操作方法、装置、移动终端
BR112014028774B1 (pt) Método, dispositivo eletrônico, meio de armazenamento legível por computador e aparelho de processamento de informações
TW201319855A (zh) 行動裝置的解鎖方法,使用該方法的行動裝置及應用程式
WO2017012186A1 (zh) 一种指纹解锁的方法及系统
KR20130133223A (ko) 바이오키네마틱 입력을 이용한 사용자 식별
CN104318186B (zh) 一种密码切换方法、设备和终端
US9864516B2 (en) Universal keyboard
WO2017161824A1 (zh) 一种终端的控制方法及装置
US9223959B2 (en) Systems and methods for authentication based on user preferences
CN107103224B (zh) 一种解锁方法及移动终端
TW201740248A (zh) 使用者介面控制方法及電子裝置
CN107959789B (zh) 一种图像处理方法及移动终端
WO2015131590A1 (zh) 一种控制黑屏手势处理的方法及终端
WO2019071980A1 (zh) 控制方法及装置
WO2016197815A2 (zh) 一种使用指纹操作的方法、装置及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17881773

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17881773

Country of ref document: EP

Kind code of ref document: A1