Speak, I'm trying to automate phone routines with an app I've made and to make it more effective I'm trying to implement a script so it runs whenever the phone's screen is turned off. For example: if the screen is off > run the script, make all updates + run antivirus + other functions that the user chooses to automate. If anyone can give me a light, I'm grateful.