Sign up ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Somewhat imperfect comparison: in Windows, you can simply press Win+L to lock Windows.

Is there a similar keyboard shortcut in Android?

share|improve this question
No, there is no shortcut, the only way to lock Android, is by pressing the hardware power button which is programmed into the core of Android to do just that, i.e. perform a screen lock. Am sure there's a tasker profile somewhere that would just trigger a screen lock at the tap of the icon :) – t0mm13b Sep 27 '12 at 13:55
And I am sure @t0mm13b wanted to trigger me mentioning Tasker. Same as with Plug'n'play: Works only for 50% (plug works). In fact, there's an option Display -> System Lock to turn the display of and activate keylock. And yes, you can use an icon to trigger that. But there's no "key pressed" event for the keyboard, unfortunately. – Izzy Sep 27 '12 at 14:52
@Izzy : do you by any chance know when have they added that Display -> System Lock option? My 2.3.4 doesn't seem to have it. – C.B. Nov 20 '13 at 16:20
@C.B. You misinterpreted my comment. I was refering to a Tasker activity. – Izzy Nov 20 '13 at 20:13
@Izzy : oh, sorry about that, i'm a "droid noob". However, now that i know more context, i think "you can use an icon to trigger that" qualifies as a good-enough answer, since a shortcut on the touchscreen would be equivalent to a keypress IMO. Thanks for the input (and the clarifying link). – C.B. Nov 20 '13 at 21:47

3 Answers 3

Certain external (bluetooth) keyboards have a function button that does this, but if you haven't found it, it probably isn't there.

share|improve this answer

there is not a way to lock by the keyboard. If you want the same effect that your computer has when it locks on your phone (ie: needing a password next time you log in) then go to settings, lock screen, and set it to require a password(or whatever you use) whenever you wake your phone.

share|improve this answer

You could type in "adb shell input keyevent 26" which in turn will lock your screen

For this you need the usb debugging enabled on your phone and adb should be installed in your machine

A complete adb installer in 15 seconds for windows can be found here

Reference :

And for Linux Machine there is a script which is written by Corbin Davenport. just execute below given line without the quotes in any Linux terminal to install

"bash <(curl"

Hope this helps you although this is not a shortcut key

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.