DEVICE_POWER is a permission at level 2 and a protected permission and, therefore, it is not granted to any of the applications that request it through the manifest, in order to get this permission successfully, we need to have a platform certificate in our make file and the general user identifier specified in manifest as a system ...
LOCAL_CERTIFICATE := platform (makefile entry) android.uid.system (shared user id )
There is no way around this, I looked around, did not find anything ...
source share