catchingup
Member
I'm looking for an app that brings up the built-in power menu (the one that pops up when you press the power button.)
Is there such an app?
I'm rooted on CM13.
Is there such an app?
I'm rooted on CM13.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Pretty sure you need to be rooted for an app to do this...or have the app created (signed) as a system app and installed in your /system partition (again, it takes root to do that).
The ShutdownThread() method that would have to be called to do a clean shutdown (called by the stock power menu) is an internal function.
It's interesting to note that root apps (as far as I know, including mine) that can do this, use the "reboot -p" command which does an immediate (i.e., non-clean) shutdown.
You can use button saviour to do this. Long press on the on screen screen off button brings up the power menu. You can have this as the only function if you want.