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

Is there a similar keyboard shortcut in Android?

  • 3
    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

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 :http://forum.xda-developers.com/showthread.php?t=2588979

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 https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)"

Hope this helps you although this is not a shortcut key

| improve this answer | |

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

| 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.

| improve this answer | |

On my BT Logitech keyboard:

FN + Esc = lock phone

| improve this answer | |

I have a logitech K380 bluetooth keyboard and a Motorola One Action. I can lock the phone by pressing FN + L. The phone has Android One which is near stock Android.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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