Embodiments of the present invention relate to the field of terminal technologies, and in particular, to an information entering method for a terminal and a terminal.
With a rise of the Internet finance, entering a password on a terminal is common. More important passwords need to be frequently entered, for example, an online banking password and a payment password. Therefore, security and conveniences of entering a password become more important. At present, a user enters a password by directly using a keyboard on the terminal, but the password is easily peeped by other people in an entering process, and it causes relatively low security when the password is entered.
Embodiments of the present invention provide an information entering method for a terminal and a terminal, and can improve security of entering information on a terminal.
According to a first aspect, an embodiment of the present invention provides an information entering method for a terminal, and the terminal includes a fingerprint sensor and a motion sensor, and the method includes: displaying, by a display interface of the terminal, an information entering box; collecting, by the terminal, a first fingerprint using the fingerprint sensor; after the terminal determines that the first fingerprint matches a preset fingerprint, obtaining, by the terminal, motion data of the terminal collected by the motion sensor in a first time period, where the first time period may be less than or equal to a time period from a moment at which the fingerprint sensor collects the first fingerprint to a moment at which the first fingerprint leaves the fingerprint sensor; obtaining, by the terminal, information corresponding to the first fingerprint and the motion data, or obtaining information corresponding to the motion data; and centering, by the terminal, the obtained information into the information entering box.
According to the information entering method for a terminal provided in this embodiment of the present invention, the first fingerprint is collected, after the first fingerprint matches the preset fingerprint, the motion data of the terminal in the first time period is collected, to obtain the information corresponding to the first fingerprint and the motion data or the information corresponding to the motion data, and further the information is entered into the information entering box, so that the user enters the information without using a keyboard, and security of entering the information on the terminal is ensured.
For example, in this embodiment of the present invention, the first time period may be any one of the following.
(1) The first time period is a time period from a moment at which the fingerprint sensor starts to collect the first fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor.
(2) The first time period is a time period from a moment at which the terminal determines that the first fingerprint matches the preset fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor.
(3) The first time period is a time period from a moment at which the fingerprint sensor starts to collect the first fingerprint to a moment at which the terminal stops moving.
(4) The first time period is a time period from a moment at which the terminal determines that the first fingerprint matches the preset fingerprint to a moment at which the terminal stops moving.
In the foregoing four optional manners, in a manner of determining a start moment of the first time period by detecting a fingerprint, the first time period can be more accurate, thereby improving accuracy of the motion data of the terminal that is obtained by the terminal in the first time period.
(5) The first time period is a time period from a moment at which the terminal starts to move to a moment at which the terminal stops moving, after the fingerprint sensor starts to collect the first fingerprint.
(6) The first time period is a time period from a moment at which the terminal starts to move to a moment at which the terminal stops moving, after the terminal determines that the first fingerprint matches the preset fingerprint.
The fingerprint sensor continuously detects the first fingerprint in the first time period.
Optionally, the display interface of the terminal displays only one information entering box, and in this case, the obtained information is entered into the information entering box.
Optionally, the display interface of the terminal displays only one information entering box, and the terminal is in a state in which information is to be entered. That is, the display interface of the terminal displays only one information entering box, and a cursor is located in the information entering box, that is, the information entering box is in a state in which the information is to be entered. In this case, the obtained information may be entered into the information entering box.
Optionally, the display interface of the terminal displays multiple information entering boxes, for example, a first information entering box and a second information entering box. The terminal is in a state in which the information is to be entered into the first information entering box, that is, a cursor is located in the first information entering box, and the first information entering box is in a state in which the information is to be entered. In this case, the terminal enters the obtained information into the first information entering box.
Optionally, the obtaining, by the terminal, information corresponding to the first fingerprint and the motion data, or obtaining information corresponding to the motion data includes: calculating, by the terminal, a first motion feature vector according to the motion data; and after the terminal determines that the first motion feature vector matches a preset motion feature vector, obtaining, by the terminal according to a preset data correspondence, the information corresponding to the first fingerprint and the motion data, or obtaining the information corresponding to the motion data.
Optionally, the information entering box is a password entering box.
In this embodiment of the present invention, the information entering box may be the password entering box on the terminal and accommodate various scenarios on the terminal in which a password needs to be entered, so that security of entering a password is improved.
Optionally, the motion sensor includes at least one or more of the following: an acceleration sensor, a gyroscope, a magnetometer, or a gravity sensor.
Optionally, the motion data includes any one or more of the following: a speed, an acceleration, an angular velocity, or an angular acceleration of the terminal.
Optionally, the entering, by the terminal, the obtained information into the information entering box includes:
entering, by the terminal, the obtained information into the information entering box in a ciphertext manner; or
entering, by the terminal, the obtained information into the information entering box in a plaintext manner.
The information entering method provided in this embodiment of the present invention does not limit the information entering box, and can accommodate any property of the information entering box, to display the obtained information.
According to a second aspect, an embodiment of the present invention provides a terminal, including:
a display;
a fingerprint sensor, configured to collect a fingerprint;
a motion sensor, configured to collect motion data of the terminal; and
a processor, configured to: display an information entering box on the display; after the fingerprint sensor collects a first fingerprint and determines that the first fingerprint matches a preset fingerprint, obtain motion data of the terminal collected by the motion sensor in a first time period; obtain information corresponding to the first fingerprint and the motion data, or obtain information corresponding to the motion data; and enter the obtained information into the information entering box displayed on the display.
For example, the terminal may determine any one of the following as the first time period.
(1) The first time period is a time period from a moment at which the fingerprint sensor starts to collect the first fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor.
(2) The first time period is a time period from a moment at which the terminal determines that the first fingerprint matches the preset fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor.
(3) The first time period is a time period from a moment at which the fingerprint sensor starts to collect the first fingerprint to a moment at which the terminal stops moving.
(4) The first time period is a time period from a moment at which the terminal determines that the first fingerprint matches the preset fingerprint to a moment at which the terminal stops moving.
(5) The first time period is a time period from a moment at which the terminal starts to move to a moment at which the terminal stops moving, after the fingerprint sensor starts to collect the first fingerprint.
(6) The first time period is a time period from a moment at which the terminal starts to move to a moment at which the terminal stops moving, after the terminal determines that the first fingerprint matches the preset fingerprint.
The fingerprint sensor continuously detects the first fingerprint in the first time period.
Optionally, the display interface of the terminal displays only one information entering box, and in this case, the processor may enter the obtained information into the information entering box.
Optionally, the display interface of the terminal displays only one information entering box, and the terminal is in a state in which information is to be entered. That is, the display interface of the terminal displays only one information entering box, and a cursor is located in the information entering box, that is, the information entering box is in a state in which the information is to be entered. In this case, the processor may enter the obtained information into the information entering box.
Optionally, the display interface of the terminal displays multiple information entering boxes, for example, a first information entering box and a second information entering box. The terminal is in a state in which the information is to be entered into the first information entering box, that is, a cursor is located in the first information entering box, and the first information entering box is in a state in which the information is to be entered. In this case, the processor enters the obtained information into the first information entering box.
Optionally, when obtaining the information corresponding to the first fingerprint and the motion data, or obtaining the information corresponding to the motion data, the processor is specifically configured to:
calculate a first motion feature vector according to the motion data; and
after determining that the first motion feature vector matches a preset motion feature vector, obtain, according to a preset data correspondence, the information corresponding to the first fingerprint and the motion data, or obtain the information corresponding to the motion data.
Optionally, the information entering box displayed on the display is a password entering box.
Optionally, the motion sensor includes at least one or more of the following: an acceleration sensor, a gyroscope, a magnetometer, or a gravity sensor.
Optionally, the motion data collected by the motion sensor includes any one or more of the following: a speed, an acceleration, an angular velocity, or an angular acceleration of the terminal.
Optionally, the processor is specifically configured to enter the obtained information into the information entering box in a ciphertext manner; or
the processor is specifically configured to enter the obtained information into the information entering box in a plaintext manner.
For technical effects of the terminal provided in the embodiments of the present invention, refer to technical effects of the information entering method in the first aspect and each optional manner in the first aspect, and details are not described herein.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention.
The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely some but not all of the embodiments of the present invention.
An information entering method for a terminal provided in the embodiments of the present invention may be applied to various scenarios in which information needs to be entered on the terminal, including various scenarios in which a password and other information need to be entered. According to the information entering method provided in the embodiments of the present invention, after a finger of a user touches a fingerprint sensor of the terminal, and the terminal is shaken on a preset track, the terminal obtains motion data of the terminal that is generated when the user shakes the terminal on the track, so that the terminal identifies, according to a pre-stored data correspondence, information (such as a preset password) corresponding to the motion data of the terminal, and enters the identified information into an information entering box. Because the user enters related information without using a keyboard on the terminal, security of entering information can be ensured.
It should be noted that the terms “first”, “second”, and “third” in the embodiments of the present invention are merely intended for a purpose of description and used to distinguish different objects described, and shall not be understood as an indication or implication of relative importance or implicit indication of the number of indicated technical features.
An embodiment of the present invention provides an information entering method for a terminal, and the terminal includes a fingerprint sensor and a motion sensor. As shown in
S101. A display interface of the terminal displays an information entering box.
When the terminal detects that a user needs to enter information, the display interface of the terminal displays the information entering box such as a password entering box, an address entering box, or another text information entering box, so that the user enters related information. For example,
The display interface may display one or more information entering boxes.
S102. The terminal collects a first fingerprint using the fingerprint sensor.
In this embodiment of the present invention, when the terminal detects that the user needs to enter information, the terminal may collect the first fingerprint using the fingerprint sensor.
A location of the fingerprint sensor on the terminal is not limited in this embodiment of the present invention. The fingerprint sensor may be located on the front, the side, or the back of the terminal. For example, as shown in
S103. After the terminal determines that the first fingerprint matches a preset fingerprint, the terminal obtains motion data of the terminal collected by the motion sensor in a first time period.
In this embodiment of the present invention, after the fingerprint sensor collects the first fingerprint, the terminal may determine whether the first fingerprint matches the preset fingerprint. For example, the terminal may calculate a similarity between a fingerprint feature of the first fingerprint and a fingerprint feature of the preset fingerprint. If the similarity between the fingerprint feature of the first fingerprint and the fingerprint feature of the preset fingerprint is greater than a preset value, the terminal may determine that the first fingerprint matches the preset fingerprint, that is, the first fingerprint collected by the fingerprint sensor is the preset fingerprint.
It should be noted that in this embodiment of the present invention, the terminal may pre-store multiple preset fingerprints. If a similarity between the fingerprint feature of the first fingerprint and a fingerprint feature of one of the multiple preset fingerprints is greater than the preset value, the terminal may determine that the first fingerprint matches the preset fingerprint.
Specifically, for a method for extracting fingerprint features and calculating a similarity between the fingerprint features by the terminal, refer to related descriptions in the prior art. Details are not described herein.
Further, after the terminal determines that the first fingerprint matches the preset fingerprint, the terminal may obtain the motion data of the terminal collected by the motion sensor in the first time period when the user shakes or waves the terminal.
Specifically, in this embodiment of the present invention, after the finger of the user touches the fingerprint sensor of the terminal, the user may maintain a state in which the finger is in touch with the fingerprint sensor, and shake the terminal on the preset track.
For example, as shown in
The first time period may be equal to or less than a time period from a moment at which the fingerprint sensor collects the first fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor. For example, the moment at which the fingerprint sensor collects the first fingerprint is t1, the moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor is t2, and the first time period may be equal to a time period from the moment t1 to the moment t2, or the first time period may be less than a time period from the moment t1 to the moment t2, that is, the first time period may be any time period within the time period from the moment t1 to the moment t2.
For example, to ensure accuracy of the motion data of the terminal that is obtained by the terminal, the first time period may be a time period from a moment at which the fingerprint sensor starts to collect the first fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor. Alternatively, the first time period is a time period from a moment at which the terminal determines that the first fingerprint matches the preset fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor. Alternatively, the first time period is a time period from a moment at which the fingerprint sensor starts to collect the first fingerprint to a moment at which the terminal stops moving. Alternatively, the first time period is a time period from a moment at which the terminal determines that the first fingerprint matches the preset fingerprint to a moment at which the terminal stops moving.
Optionally, the first time period may be a time period from a moment at which the terminal starts to move to a moment at which the terminal stops moving, after the fingerprint sensor starts to collect the first fingerprint. Alternatively, the first time period may be a time period from a moment at which the terminal starts to move to a moment at which the terminal stops moving, after the terminal determines that the first fingerprint matches the preset fingerprint.
It should be noted that after determining to-be-entered information, the terminal may start to monitor the motion data using the motion sensor when the fingerprint sensor detects the first fingerprint, and then capture motion data according to a pre-configured first time period.
Further, in this embodiment of the present invention, the fingerprint sensor continuously detects the first fingerprint in the first time period, that is, in the first time period, the finger of the user constantly keeps in touch with the fingerprint sensor.
It should be noted that in this embodiment of the present invention, the motion sensor may collect the motion data of the terminal in the first time period at a specific frame rate. For example, the frame rate is 60 frames per second (fps), that is, the motion sensor collects the motion data 60 times per second. The motion sensor may always maintain a state of collecting the motion data of the terminal after the terminal is powered on, or may start to collect the motion data of the terminal from the moment at which the terminal starts to collect the first fingerprint, and stop collecting the motion data of the terminal when the first fingerprint leaves the fingerprint sensor. This is not limited in this embodiment of the present invention.
The motion sensor may include but is not limited to any one or more of an acceleration sensor, a gyroscope, a magnetometer, or a gravity sensor.
Correspondingly, the motion data of the terminal may include but is not limited to any one or more of vectors such as a speed, an acceleration, an angular velocity, or an angular acceleration of the terminal.
S104. The terminal obtains information corresponding to the first fingerprint and the motion data, or obtains information corresponding to the motion data.
It should be noted that the terminal pre-stores the information corresponding to the first fingerprint and the motion data, or the information corresponding to the motion data. Therefore, after obtaining the first fingerprint and the motion data, the terminal may obtain the information corresponding to the first fingerprint and the motion data, or obtain the information corresponding to the motion data.
Specifically, in this embodiment of the present invention, after obtaining the motion data in the first time period that is generated when the user shakes the terminal on the preset track, the terminal may first perform a series of operations and processing on the motion data, to calculate a first motion feature vector of the motion data.
For example, the terminal may arrange the motion data of the terminal into a data matrix in a time order, then perform filtering processing on the data matrix, to obtain a change feature of the motion data, and finally simplify the obtained change feature, to obtain the first motion feature vector of the terminal.
For example, it is assumed that the motion data collected by the motion sensor each time includes the speed, the acceleration, the angular velocity, and the angular acceleration of the terminal. In the first time period, the motion sensor collects the motion data of the terminal n times in total. The following shows the data matrix obtained after the terminal arranges the motion data collected by the motion sensor in a time order:
where
a1, a2, . . . , and an respectively represent n speeds of the terminal collected by the motion sensor; b1, b2, . . . , and bn respectively represent n accelerations of the terminal collected by the motion sensor; c1, c2, . . . , and cn respectively represent n angular velocities of the terminal collected by the motion sensor; and d1, d2, . . . , and dn respectively represent n angular accelerations of the terminal collected by the motion sensor.
Further, performing the filtering processing on the data matrix may be performing low-pass filtering processing on the data matrix. Simplifying the change feature of the motion data may be deleting a motion feature vector with an unobvious feature and retaining the first motion feature vector with a most obvious motion feature.
After the terminal calculates the first motion feature vector of the terminal, the terminal may calculate a similarity between the first motion feature vector and a preset motion feature vector in the terminal. If the similarity between the first motion feature vector and the preset motion feature vector is greater than a preset threshold, the terminal may determine that the first motion feature vector matches the preset motion feature vector.
Further, after the terminal determines that the first motion feature vector matches the preset motion feature vector, the terminal may obtain, according to a preset data correspondence, the information corresponding to the first fingerprint and the motion data, or obtain the information corresponding to the motion data.
It should be noted that in this embodiment of the present invention, the preset data correspondence may be a correspondence between a preset fingerprint and a preset motion feature vector and information. For example, Table 1 shows a data correspondence stored in the terminal.
When the terminal determines that the first fingerprint matches the fingerprint 1, and the first motion feature vector of the motion data of the terminal matches the motion feature vector 1, the terminal may determine, according to a data correspondence that “information corresponding to the fingerprint 1 and the motion feature vector 1 is the password 1” shown in Table 1, that the information corresponding to the first fingerprint and the motion data of the terminal is the password 1.
It may be understood that in this embodiment of the present invention, one piece of information is represented by both a fingerprint and a motion feature vector. A same fingerprint and different motion feature vectors may represent different information, and different fingerprints and a same motion feature may also represent different information. Therefore, more information may be flexibly set in a manner in which one piece of information is represented by both a fingerprint and a motion feature vector.
Alternatively, in this embodiment of the present invention, the preset data correspondence may be a correspondence between a motion feature vector and information. For example, Table 2 shows a data correspondence stored in the terminal.
When the terminal determines that the first motion feature vector of the motion data of the terminal matches the motion feature vector 1, the terminal may determine, according to a data correspondence that “information corresponding to the motion feature vector 1 is the password 1” shown in Table 2, that the information corresponding to the motion data of the terminal in the first time period is the password 1.
It may be understood that in this embodiment of the present invention, compared with the manner in which one piece of information is represented by both the fingerprint and the motion feature vector, representing one piece of information by one motion feature vector can reduce system calculation procedures in the terminal.
It should be noted that in a specific implementation process, an order of performing step S101 and steps S102 to S104 is not limited in this embodiment of the present invention. When the terminal learns that information needs to be entered, the terminal may start to perform step S101 and steps S102 to S104. Step S101 may be first performed, and then steps S102 to S104 are performed; or steps S102 to S104 may be first performed, and then step S101 is performed; or step S101 may be performed when steps S102 to S104 are being performed.
S105. The terminal enters the obtained information into the information entering box.
After the terminal obtains the information, if the display interface of the terminal displays the information entering box, the terminal may enter the information into the information entering box.
It should be noted that when one information entering box is displayed, the terminal enters the obtained information into the information entering box in step S105. Alternatively, when one information entering box is displayed, and a cursor is located in the information entering box, the terminal enters the obtained information into the information entering box in step S105.
When multiple information entering boxes are displayed, the terminal enters the obtained information into the information entering box in which the cursor is currently located in step S105. For example, two information entering boxes are displayed: a first information entering box and a second information entering box. The cursor is in the first information entering box, and the terminal enters the obtained information into the first information entering box in step S105.
Further, the terminal may display the information on the information entering box in a plaintext manner or in a ciphertext manner according to a property of the information entering box.
For example, it is assumed that a password obtained by the terminal is abcdef. If the terminal displays the password in the plaintext manner, as shown in
If the terminal displays the password in the ciphertext manner, as shown in
It should be noted that in this embodiment of the present invention, before the terminal performs the information entering method provided in this embodiment of the present invention, the terminal needs to pre-store the preset fingerprint and the preset data correspondence.
For example, the terminal pre-stores the data correspondence shown in Table 1. In a process that the terminal stores the data correspondence shown in Table 1, the user puts the finger on the fingerprint sensor of the terminal, and the fingerprint sensor collects and stores the fingerprint 1. After the terminal prompts the user to confirm that the fingerprint 1 is collected, the user maintains a state in which the finger is in touch with the fingerprint sensor, and shakes the terminal on a specific track, and the motion sensor collects the motion data of the terminal. For example, the user maintains the state in which the finger is in touch with the fingerprint sensor, and shakes the terminal in a shape of circle, or in a shape of “Z” in the air. The terminal obtains the motion data of the terminal that is generated when the user shakes the terminal on the track, and calculates the motion feature vector 1 of the motion data.
Further, after determining that the fingerprint 1 is successfully collected and the motion feature vector 1 is successfully obtained, the terminal receives information that is entered twice by the user. If the information that is entered twice is the password 1, the data correspondence between the fingerprint 1 and the motion feature vector 1 and the password 1 is stored. That is, the user first enters the password 1, and then enters the password 1 again to ensure that the entered information is the password 1.
If the user pre-stores the data correspondence shown in Table 2, after the fingerprint sensor collects and stores the fingerprint 1, and prompts the user to confirm that the fingerprint 1 is collected, the terminal receives information that is entered twice by the user. If the information that is entered twice is the password 1, the data correspondence between the motion feature vector 1 and the password 1 is stored.
It should be noted that, to ensure security of the data correspondence, the terminal may store the data correspondence in a security area of the terminal. If the terminal does not have the security area, the terminal may encrypt the data correspondence according to an encryption algorithm. The encryption algorithm may be an International Data Encryption Algorithm (English: International Data Encryption Algorithm, IDEA for short), an Advanced Encryption Standard (English: Advanced Encryption Standard, AES for short), or the like.
According to the information entering method for a terminal provided in this embodiment of the present invention, the first fingerprint is collected, after the first fingerprint matches the preset fingerprint, the motion data of the terminal in the first time period is collected, to obtain the information corresponding to the first fingerprint and the motion data or the information corresponding to the motion data, and further the information is entered into the information entering box, so that the user enters the information without using a keyboard, and security of entering the information on the terminal is ensured.
As shown in
The terminal may be a terminal device such as a mobile phone, a tablet computer, an ultra-mobile personal computer (English: Ultra-mobile Personal Computer, UMPC for short), or a personal digital assistant (English: Personal Digital Assistant, PDA for short). In this embodiment of the present invention,
As shown in
The following describes each compositional part of the terminal in detail with reference to
The processor 20 may be a central processing unit (English: central processing unit, CPU for short). Alternatively, the processor 20 may be another general purpose processor, a digital signal processor (English: digital signal processing, DSP for short), an application-specific integrated circuit (English: application specific integrated circuit, ASIC for short), a field programmable gate array (English: field-programmable gate array, FPGA for short), or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware assembly, or the like. The general purpose processor may be a microprocessor or this processor may be any normal processor, or the like. The processor 10 is a data processing and control center of the terminal and is connected to all the parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and data processing by running or executing a software program and/or a software module that are/is stored in the memory 12 and by invoking data stored in the memory 12, so as to perform overall control on the terminal.
Optionally, the processor 10 may include one or more processing units. Preferably, an application processor and a modem processor may be integrated into the processor 10. The application processor mainly processes an operating system, a user interface, an application program, and the like; and the modem processor mainly processes radio communications. It may be understood that the foregoing modem processor may be not integrated into the processor 10.
The memory 12 may include a volatile memory (English: volatile memory), for example, a random-access memory (English: random-access memory, RAM for short); or the memory 12 may include a non-volatile memory (English: non-volatile memory), for example, a read-only memory (English: read-only memory, ROM for short), a flash memory (English: flash memory), a hard disk (English: hard disk drive, HDD for short), or a solid-state drive (English: solid-state drive, SSD for short); or the memory 21 may include a combination of the foregoing types of memories.
The memory 12 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, and an application program required by at least one function (such as an application program required by a sound playing function or an application program required by an image playing function), and the like. The data storage area may store data (such as password data, image data, a phonebook, and audio data) created according to use of the terminal, and the like.
The display 11 may be configured to display an information entering box, information entered by a user, information provided for a user, and various menus of the terminal. For example, the display 11 may include a touchscreen and a display panel. A form such as a liquid crystal display (English: Liquid Crystal Display, LCD for short) or an organic light-emitting diode (English: Organic Light-Emitting Diode, OLED for short) may be used to configure the display panel. The touchscreen may cover the display panel. After detecting a touch operation on or near the touchscreen, the touchscreen transmits the touch operation to the processor 10 to determine a type of a touch event, and then the processor 10 displays corresponding information on the display panel according to the type of the touch event.
The motion sensor 13 is configured to collect motion data of the terminal.
The fingerprint sensor 14 is configured to collect a fingerprint.
Further, in this embodiment of the present invention, although not shown in the figure, the terminal further includes a power supply (such as a battery) that supplies power to all the parts. Preferably, the power supply may be logically connected to the processor 10 using a power management system, so as to implement functions such as management of charging, discharging, and power consumption using the power management system.
The terminal may further include a Wireless Fidelity (English: wireless fidelity, WiFi for short) module, an audio circuit, a speaker, a microphone, or another sensor such as a light sensor, a barometer, and a hygrometer, and details are not described herein.
In this embodiment of the present invention, the processor 10 is configured to: after determining that the first fingerprint collected by the fingerprint sensor 14 matches a preset fingerprint, obtain motion data of the terminal collected by the motion sensor 13 in a first time period; obtain information corresponding to the first fingerprint and the motion data, or obtain information corresponding to the motion data; and enter the obtained information into the information entering box displayed on the display, where the first time period is equal to a time period from a moment at which the fingerprint sensor collects the first fingerprint to a moment at which the first fingerprint leaves the fingerprint sensor.
Further, the first time period is a time period from a moment at which the fingerprint sensor starts to collect the first fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor; or the first time period is a time period from a moment at which the terminal determines that the first fingerprint matches the preset fingerprint to a moment at which the terminal detects that the first fingerprint leaves the fingerprint sensor; or the first time period is a time period from a moment at which the fingerprint sensor starts to collect the first fingerprint to a moment at which the terminal stops moving; or the first time period is a time period from a moment at which the terminal determines that the first fingerprint matches the preset fingerprint to a moment at which the terminal stops moving; or the first time period is a time period from a moment at which the terminal starts to move to a moment at which the terminal stops moving, after the fingerprint sensor starts to collect the first fingerprint; or the first time period is a time period from a moment at which the terminal starts to move to a moment at which the terminal stops moving, after the terminal determines that the first fingerprint matches the preset fingerprint.
Further, the fingerprint sensor 14 continuously detects the first fingerprint in the first time period.
Optionally, the display 11 displays one information entering box; or the display 11 displays one information entering box, and the terminal is in a state in which information is to be entered.
Optionally, the display 11 displays a first information entering box and a second information entering box, and the terminal is in a state in which information is to be entered into the first information entering box.
When entering the information into the information entering box, the processor 10 is specifically configured to enter the information into the first information entering box.
Further, when obtaining the information corresponding to the first fingerprint and the motion data, or obtaining the information corresponding to the motion data, the processor 10 is specifically configured to:
calculate a first motion feature vector according to the motion data; and
after determining that the first motion feature vector matches a preset motion feature vector, obtain, according to a preset data correspondence, the information corresponding to the first fingerprint and the motion data, or obtain the information corresponding to the motion data.
Further, the information entering box displayed on the display is a password entering box.
Further, the motion sensor 13 includes at least one or more of the following: an acceleration sensor, a gyroscope, a magnetometer, or a gravity sensor.
Specifically, the acceleration sensor is configured to collect an accelerate speed of the terminal.
The gyroscope may be configured to collect an angular velocity and an angular acceleration of the terminal.
The gravity sensor may detect an acceleration value in each direction (generally, three axes) of the terminal, may detect a value and a direction of gravity in a static mode, and may be used for an application that identifies the terminal gesture (such as screen orientation, a motion track, and magnetometer gesture calibration), a function related to vibration identification (such as a pedometer and a stroke), and the like.
Further, the motion data collected by the motion sensor includes any one or more of the following: a speed, the acceleration, the angular velocity, or the angular acceleration of the terminal.
Further, the processor 10 is specifically configured to enter the obtained information into the information entering box in a ciphertext manner. Alternatively, the processor 10 is specifically configured to enter the obtained information into the information entering box in a plaintext manner.
The terminal provided in this embodiment of the present invention can collect the first fingerprint, after the first fingerprint matches the preset fingerprint, collect the motion data of the terminal in the first time period, to obtain the information corresponding to the first fingerprint and the motion data or the information corresponding to the motion data, and further enter the information into the information entering box displayed on the terminal, so that the user enters the information without using the keyboard, and security of entering the information on the terminal is ensured.
Optionally, the embodiments of the present invention further provide a computer readable storage medium. The computer readable storage medium stores one or more programs, and the one or more programs include an instruction. When at least one processor of a wireless access device executes the instruction, the wireless access device performs the information entering method for a terminal shown in the figure. For a specific information entering method, refer to related description in the embodiments shown in
It may be clearly understood by persons skilled in the art that, for the purpose of convenient and brief description, division of the foregoing function modules is taken as an example for illustration. In actual application, the foregoing functions can be allocated to different function modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different function modules to implement all or part of the functions described above. For a detailed working process of the foregoing system, apparatus, and unit, reference may be made to a corresponding process in the foregoing method embodiments, and details are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed system, terminal, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the module or unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of a software functional unit.
When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, all or some of the technical solutions may be implemented in a form of a software product. The software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the embodiments of the present invention. The storage medium is a non-transitory (English: non-transitory) medium and includes any medium that can store program code, such as a flash memory, a removable hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disc.
The foregoing descriptions are merely specific implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by persons skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
This application claims the benefit of International filing No. PCT/CN2016/076307, filed on 14 Mar. 2016, which application is hereby incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2016/076307 | 3/14/2016 | WO | 00 |