How can I open the power menu in Android without pressing the power button?



  • The power button on my Android phone is dodgy and doesn't always work. I think it's on its last legs so I want to avoid pressing it if possible to extend its lifespan!

    I know nothing about coding or how Android works. But I was wondering if it is possible to send the button press event to the system using this sort of code somehow: https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_POWER .

    Is there a way I can open the power menu via the screen only? Is there something I can type into a terminal (how do you get a terminal in Android?) that would open the power menu?



    1. Go to Settings -> Accessibility -> Set Accessibility Menu to On.
    2. Press the Accessibility Menu icon, you should see among the icons, one dedicated to Power.
    3. Press it to show the Power menu.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2