Patent ID: 9536115
Date: 2017-01-03
CPC Classifications: G06F

Claim:
1. A computer-implemented method for unlocking an electronic device with a touch screen and a distance sensor, the method being performed by at least one processor of the electronic device and comprising: receiving a triggering signal to unlock the electronic device; determining whether an object is within a predetermined distance of the distance sensor; if no object is detected within the predetermined distance of the distance sensor, activating the touch screen to display an unlocking area on a portion of the touch screen; determining whether an unlocking operation is performed according to touch signals received from the unlocking area of the touch screen; determining whether the unlocking operation is performed in the unlocking area of the touch screen within a preset time period from activation of the touch screen; unlocking the electronic device if the unlocking operation has not been performed within the preset time period from activation of the touch screen; and executing a predetermined application when the electronic device is unlocked.