How to put android in standByMode


#1

Is it possible to put android device in standby mode programmatically in API level 23 and above on a system app ? There was a method goToSleep() in PowerManager class earlier but it seems that now it has been removed. So what i basically want to know that besides signature and permission requirements, is it even possible now to put android device in standby mode.


#2

I do not know of any way to do that. If it exists, I would expect it to reside in the device admin/device owner APIs.