We use zebra no sleep app to keep our devices active. When this app is installed via mobicontrol we need to activate 2 options. to start the service and to start the service after reboot.
I checked this via Github and there is the possibility to start this service via a sendintent.
The service respond to two intent actions (both uses the category: android.intent.category.DEFAULT)
-
"com.zebra.nosleepservice.startservice" sent on the component "com.zebra.nosleepservice/com.zebra.nosleepservice.StartServiceBroadcastReceiver":
Start the service.
If the device get rebooted the service will start automatically once the reboot is completed.
But I don't know how to script this.