How to shutdown android via ssh command? Is there any toolbox or app that will support issuing shutdown command via ssh to a rooted android smartphone? Note that I'm not asking how to restart Android via command line (remotely) – but to really shut it down / turn it off.
reboot -p


was mentioned here which works for me on a rooted device. But someone mentioned here (see comments as well) that it's a bit harsh to simply shutdown without notice. So try something like this:

su -c 'am broadcast android.intent.action.ACTION_SHUTDOWN &amp;&amp; sleep 5 &amp;&amp; reboot -p'