android.permission.DEVICE_POWER
is granted only to system apps, third party apps do not get this permission.
If you are not holding wakelock and if you reduce SCREEN_OFF_TIMEOUT
, then you should be able to achieve going to sleep automatically after 5 mins