A:lock screen function,but it still has some bugs.