I have a receiver which listens for shutdown intent.
The moment it receives that, i want the phone to restart instead of shutting down.
I have a rooted phone. Is it possible to send Linux commands like "su " & "reboot" when shutdown signal is received.