Automatic screen unlocking method and device, electronic equipment and readable storage medium
Method for automatically unlocking a screen, which comprises: sending a broadcast carrying a uuid value, when a terminal equipment determines that an equipment to which the broadcast belongs is a connectable equipment according to a signal strength of the broadcast and the uuid value, receiving a Bluetooth connection establishment request sent by the terminal equipment, establishing a Bluetooth connection with the terminal equipment based on the Bluetooth connection establishment request, acquiring to-be-signed data carried in an authentication login instruction, signing the to-be-signed data according to a stored private key to obtain a signature result, and sending the signature result to the terminal equipment, so that the terminal equipment executes an automatic screen unlocking operation according to the signature result. Accordingly, a locked screen can be quickly and automatically unlocked through an automatic unlocking processing based on the Bluetooth connection, so that the method has a relatively high safety.
1 . A method for auto-unlocking a screen, comprising the following steps:
sending a broadcast carrying a uuid (universally unique identifier) value;
receiving a Bluetooth connection building request sent from a terminal device when the terminal device determines a device to which the broadcast belongs is a connectable device according to signal strength and the uuid value of the broadcast;
building a Bluetooth connection with the terminal device based on the Bluetooth connection building request;
sending a notification message that the Bluetooth connection is built successfully to the terminal device;
receiving an authenticating logging-on instruction sent from the terminal device based on the notification message;
acquiring data to be signed and being carried in the authenticating logging-on instruction;
signing the data to be signed according to a stored private key to obtain a signing result; and
sending the signing result to the terminal device, so as to make the terminal device perform operation of auto-unlocking screen according to the signing result; wherein
after receiving the authenticating logging-on instruction sent from the terminal device based on the notification message, the method further comprises:
acquiring an instruction eigenvalue carried in the authenticating logging-on instruction;
determining whether a process of confirming by pressing a key is required to perform according to the instruction eigenvalue;
sending an instruction information for executing the confirming by pressing the key to a user and waiting for receiving a trigger to perform confirming of pressing the key made by the user when processing of confirming by pressing the key is determined to be required; and
performing the signing operation on the data to be signed according to the stored private key when processing of confirming by pressing the key is determined not to be required.
2 . The method of claim 1 , wherein waiting for receiving the trigger to perform confirming of pressing the key made by the user comprises:
when receiving the trigger to perform confirming of pressing the key made by the user, performing the process of signing the data to be signed according to the stored private key;
when not receiving the trigger to perform confirming of pressing the key made by the user, determining whether times for waiting for receiving the trigger to perform confirming of pressing the key made by the user reaches a preset time threshold value; and
if the preset time threshold value is not reached, determining that the trigger of pressing the key made by the user is not overtime, and keeping waiting for receiving the trigger to perform confirming of pressing the key made by the user.
3 . The method of claim 2 , wherein the method further comprises:
if the preset time threshold value is reached, determining that the trigger of pressing key the made by the user is overtime, then sending a result that triggering is overtime to the terminal device.
4 . The method of claim 1 , wherein the method further comprises:
receiving an information acquiring instruction sent from the terminal device; and
sending a corresponding pressing key information according to the information acquiring instruction back to the terminal device.