0

I'm working on an android app related to hibernation and I want to test it using adb commands. I tried searching but was unable to find how to hibernate/unhibernate Samsung Galaxy S3 using command line. Need help with it.

user401445
  • 1,014
  • 1
  • 16
  • 41

1 Answers1

2

If by "hibernate", you mean lock/unlock, you should be able to simulate the power button(KEYCODE_POWER):

adb shell input keyevent 26
Geobits
  • 22,218
  • 6
  • 59
  • 103