As the Power On button on my phone stopped working, I decided to make an Android application that could help me Lock the screen and Restart the phone. This app even has a notification with buttons on it. So the action can be performed from the notification panel only.