5

Is there anyway to lock genymotion emulator?

To test new notifications in Android 5.0, lollipop, I need to lock the Genymotion.

Thank you!

4 Answers 4

11

The question turns out to be useless. I would delete this, but I am not allowed to do so because, this question already has an answer.

Sorry

I just had to click on power button twice.

enter image description here

3
  • Wow I didn't even realize that there is a power button
    – TameHog
    Mar 27, 2015 at 2:35
  • @JemshitIskenderov you still have problem? By the way, it should not depend on the android version though
    – Nabin
    Jul 26, 2015 at 4:37
  • @Nabin yes, screen does not go black , it stays same
    – Jemshit
    Jul 26, 2015 at 4:40
6

go to settings>security>screen lock and set it to swipe. then press the power button twice.

1

Try: adb shell input keyevent 26. That should emulate a power button press. See this for more information. Of course you need to do adb connect [device id] first.

5
  • Thank you, having a look at
    – Nabin
    Mar 27, 2015 at 2:06
  • Does that even work on personal edition of genymotion?
    – Nabin
    Mar 27, 2015 at 2:07
  • I have no idea. Try it out. Dont see why it wouldn't
    – TameHog
    Mar 27, 2015 at 2:07
  • Also make sure that the lock screen is disabled in the emulation options.
    – TameHog
    Mar 27, 2015 at 2:16
  • @TameHog worked for me on API 19 device , on API 21+ devices it doesn't work... Tried it on real device with API 21, worked like with no problems
    – Igal
    Oct 11, 2015 at 15:38
1

It's quite simple.

Just press the power button twice in genymotion to lock the screen of emulator.
You can also lock the Android Emulator in same way by just clicking the power button twice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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