screen-lock
How to lock Android screen via ADB?
Cool, I just found KEYCODE_POWER which is 26. so it works by sending: adb shell input keyevent 26 which locks the screen if the screen is unlocked. If the screen is already locked, it wakes up the device. My guess is that the only way to ensure that the screen is locked (off), is to … Read more