Was reading over Android system application DEVICE_POWER permission error and How to sign Android app with system signature?
I am still unable to sign my application as a system app. I don't know where /build/target/product/security is.
Do I pull the key off my own device to use for signing my app.
I just want my app to be able to call:
private void screenOff(){
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
long time = SystemClock.uptimeMillis() + 1000;
pm.goToSleep(time);
}
Thanks for your answers.